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 cloudidentity
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 = "cloudidentity:v1"
95 const apiName = "cloudidentity"
96 const apiVersion = "v1"
97 const basePath = "https://cloudidentity.googleapis.com/"
98 const basePathTemplate = "https://cloudidentity.UNIVERSE_DOMAIN/"
99 const mtlsBasePath = "https://cloudidentity.mtls.googleapis.com/"
100
101
102 const (
103
104 CloudIdentityDevicesScope = "https://www.googleapis.com/auth/cloud-identity.devices"
105
106
107 CloudIdentityDevicesLookupScope = "https://www.googleapis.com/auth/cloud-identity.devices.lookup"
108
109
110
111 CloudIdentityDevicesReadonlyScope = "https://www.googleapis.com/auth/cloud-identity.devices.readonly"
112
113
114
115 CloudIdentityGroupsScope = "https://www.googleapis.com/auth/cloud-identity.groups"
116
117
118
119 CloudIdentityGroupsReadonlyScope = "https://www.googleapis.com/auth/cloud-identity.groups.readonly"
120
121
122
123 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
124 )
125
126
127 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
128 scopesOption := internaloption.WithDefaultScopes(
129 "https://www.googleapis.com/auth/cloud-identity.devices",
130 "https://www.googleapis.com/auth/cloud-identity.devices.lookup",
131 "https://www.googleapis.com/auth/cloud-identity.devices.readonly",
132 "https://www.googleapis.com/auth/cloud-identity.groups",
133 "https://www.googleapis.com/auth/cloud-identity.groups.readonly",
134 "https://www.googleapis.com/auth/cloud-platform",
135 )
136
137 opts = append([]option.ClientOption{scopesOption}, opts...)
138 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
139 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
140 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
141 opts = append(opts, internaloption.EnableNewAuthLibrary())
142 client, endpoint, err := htransport.NewClient(ctx, opts...)
143 if err != nil {
144 return nil, err
145 }
146 s, err := New(client)
147 if err != nil {
148 return nil, err
149 }
150 if endpoint != "" {
151 s.BasePath = endpoint
152 }
153 return s, nil
154 }
155
156
157
158
159
160
161 func New(client *http.Client) (*Service, error) {
162 if client == nil {
163 return nil, errors.New("client is nil")
164 }
165 s := &Service{client: client, BasePath: basePath}
166 s.Customers = NewCustomersService(s)
167 s.Devices = NewDevicesService(s)
168 s.Groups = NewGroupsService(s)
169 s.InboundSamlSsoProfiles = NewInboundSamlSsoProfilesService(s)
170 s.InboundSsoAssignments = NewInboundSsoAssignmentsService(s)
171 return s, nil
172 }
173
174 type Service struct {
175 client *http.Client
176 BasePath string
177 UserAgent string
178
179 Customers *CustomersService
180
181 Devices *DevicesService
182
183 Groups *GroupsService
184
185 InboundSamlSsoProfiles *InboundSamlSsoProfilesService
186
187 InboundSsoAssignments *InboundSsoAssignmentsService
188 }
189
190 func (s *Service) userAgent() string {
191 if s.UserAgent == "" {
192 return googleapi.UserAgent
193 }
194 return googleapi.UserAgent + " " + s.UserAgent
195 }
196
197 func NewCustomersService(s *Service) *CustomersService {
198 rs := &CustomersService{s: s}
199 rs.Userinvitations = NewCustomersUserinvitationsService(s)
200 return rs
201 }
202
203 type CustomersService struct {
204 s *Service
205
206 Userinvitations *CustomersUserinvitationsService
207 }
208
209 func NewCustomersUserinvitationsService(s *Service) *CustomersUserinvitationsService {
210 rs := &CustomersUserinvitationsService{s: s}
211 return rs
212 }
213
214 type CustomersUserinvitationsService struct {
215 s *Service
216 }
217
218 func NewDevicesService(s *Service) *DevicesService {
219 rs := &DevicesService{s: s}
220 rs.DeviceUsers = NewDevicesDeviceUsersService(s)
221 return rs
222 }
223
224 type DevicesService struct {
225 s *Service
226
227 DeviceUsers *DevicesDeviceUsersService
228 }
229
230 func NewDevicesDeviceUsersService(s *Service) *DevicesDeviceUsersService {
231 rs := &DevicesDeviceUsersService{s: s}
232 rs.ClientStates = NewDevicesDeviceUsersClientStatesService(s)
233 return rs
234 }
235
236 type DevicesDeviceUsersService struct {
237 s *Service
238
239 ClientStates *DevicesDeviceUsersClientStatesService
240 }
241
242 func NewDevicesDeviceUsersClientStatesService(s *Service) *DevicesDeviceUsersClientStatesService {
243 rs := &DevicesDeviceUsersClientStatesService{s: s}
244 return rs
245 }
246
247 type DevicesDeviceUsersClientStatesService struct {
248 s *Service
249 }
250
251 func NewGroupsService(s *Service) *GroupsService {
252 rs := &GroupsService{s: s}
253 rs.Memberships = NewGroupsMembershipsService(s)
254 return rs
255 }
256
257 type GroupsService struct {
258 s *Service
259
260 Memberships *GroupsMembershipsService
261 }
262
263 func NewGroupsMembershipsService(s *Service) *GroupsMembershipsService {
264 rs := &GroupsMembershipsService{s: s}
265 return rs
266 }
267
268 type GroupsMembershipsService struct {
269 s *Service
270 }
271
272 func NewInboundSamlSsoProfilesService(s *Service) *InboundSamlSsoProfilesService {
273 rs := &InboundSamlSsoProfilesService{s: s}
274 rs.IdpCredentials = NewInboundSamlSsoProfilesIdpCredentialsService(s)
275 return rs
276 }
277
278 type InboundSamlSsoProfilesService struct {
279 s *Service
280
281 IdpCredentials *InboundSamlSsoProfilesIdpCredentialsService
282 }
283
284 func NewInboundSamlSsoProfilesIdpCredentialsService(s *Service) *InboundSamlSsoProfilesIdpCredentialsService {
285 rs := &InboundSamlSsoProfilesIdpCredentialsService{s: s}
286 return rs
287 }
288
289 type InboundSamlSsoProfilesIdpCredentialsService struct {
290 s *Service
291 }
292
293 func NewInboundSsoAssignmentsService(s *Service) *InboundSsoAssignmentsService {
294 rs := &InboundSsoAssignmentsService{s: s}
295 return rs
296 }
297
298 type InboundSsoAssignmentsService struct {
299 s *Service
300 }
301
302
303
304 type AddIdpCredentialOperationMetadata struct {
305 }
306
307
308
309 type AddIdpCredentialRequest struct {
310
311
312 PemData string `json:"pemData,omitempty"`
313
314
315
316
317
318 ForceSendFields []string `json:"-"`
319
320
321
322
323 NullFields []string `json:"-"`
324 }
325
326 func (s *AddIdpCredentialRequest) MarshalJSON() ([]byte, error) {
327 type NoMethod AddIdpCredentialRequest
328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
329 }
330
331
332
333 type CancelUserInvitationRequest struct {
334 }
335
336
337
338 type CheckTransitiveMembershipResponse struct {
339
340
341
342
343 HasMembership bool `json:"hasMembership,omitempty"`
344
345
346 googleapi.ServerResponse `json:"-"`
347
348
349
350
351
352 ForceSendFields []string `json:"-"`
353
354
355
356
357 NullFields []string `json:"-"`
358 }
359
360 func (s *CheckTransitiveMembershipResponse) MarshalJSON() ([]byte, error) {
361 type NoMethod CheckTransitiveMembershipResponse
362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
363 }
364
365
366 type CreateGroupMetadata struct {
367 }
368
369
370
371 type CreateInboundSamlSsoProfileOperationMetadata struct {
372 }
373
374
375
376 type CreateInboundSsoAssignmentOperationMetadata struct {
377 }
378
379
380 type CreateMembershipMetadata struct {
381 }
382
383
384 type DeleteGroupMetadata struct {
385 }
386
387
388
389 type DeleteIdpCredentialOperationMetadata struct {
390 }
391
392
393
394 type DeleteInboundSamlSsoProfileOperationMetadata struct {
395 }
396
397
398
399 type DeleteInboundSsoAssignmentOperationMetadata struct {
400 }
401
402
403 type DeleteMembershipMetadata struct {
404 }
405
406
407 type DsaPublicKeyInfo struct {
408
409 KeySize int64 `json:"keySize,omitempty"`
410
411
412
413
414
415 ForceSendFields []string `json:"-"`
416
417
418
419
420 NullFields []string `json:"-"`
421 }
422
423 func (s *DsaPublicKeyInfo) MarshalJSON() ([]byte, error) {
424 type NoMethod DsaPublicKeyInfo
425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
426 }
427
428
429 type DynamicGroupMetadata struct {
430
431
432
433 Queries []*DynamicGroupQuery `json:"queries,omitempty"`
434
435 Status *DynamicGroupStatus `json:"status,omitempty"`
436
437
438
439
440
441 ForceSendFields []string `json:"-"`
442
443
444
445
446 NullFields []string `json:"-"`
447 }
448
449 func (s *DynamicGroupMetadata) MarshalJSON() ([]byte, error) {
450 type NoMethod DynamicGroupMetadata
451 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
452 }
453
454
455 type DynamicGroupQuery struct {
456
457
458
459
460
461
462
463
464 Query string `json:"query,omitempty"`
465
466
467
468
469
470 ResourceType string `json:"resourceType,omitempty"`
471
472
473
474
475
476 ForceSendFields []string `json:"-"`
477
478
479
480
481 NullFields []string `json:"-"`
482 }
483
484 func (s *DynamicGroupQuery) MarshalJSON() ([]byte, error) {
485 type NoMethod DynamicGroupQuery
486 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
487 }
488
489
490
491 type DynamicGroupStatus struct {
492
493
494
495
496
497
498
499
500
501 Status string `json:"status,omitempty"`
502
503
504
505
506 StatusTime string `json:"statusTime,omitempty"`
507
508
509
510
511
512 ForceSendFields []string `json:"-"`
513
514
515
516
517 NullFields []string `json:"-"`
518 }
519
520 func (s *DynamicGroupStatus) MarshalJSON() ([]byte, error) {
521 type NoMethod DynamicGroupStatus
522 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
523 }
524
525
526
527
528
529 type EntityKey struct {
530
531
532
533
534
535
536 Id string `json:"id,omitempty"`
537
538
539
540
541
542
543 Namespace string `json:"namespace,omitempty"`
544
545
546
547
548
549 ForceSendFields []string `json:"-"`
550
551
552
553
554 NullFields []string `json:"-"`
555 }
556
557 func (s *EntityKey) MarshalJSON() ([]byte, error) {
558 type NoMethod EntityKey
559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
560 }
561
562
563 type ExpiryDetail struct {
564
565 ExpireTime string `json:"expireTime,omitempty"`
566
567
568
569
570
571 ForceSendFields []string `json:"-"`
572
573
574
575
576 NullFields []string `json:"-"`
577 }
578
579 func (s *ExpiryDetail) MarshalJSON() ([]byte, error) {
580 type NoMethod ExpiryDetail
581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
582 }
583
584
585
586 type GetMembershipGraphMetadata struct {
587 }
588
589
590
591 type GetMembershipGraphResponse struct {
592
593
594 AdjacencyList []*MembershipAdjacencyList `json:"adjacencyList,omitempty"`
595
596
597
598 Groups []*Group `json:"groups,omitempty"`
599
600
601
602
603
604 ForceSendFields []string `json:"-"`
605
606
607
608
609 NullFields []string `json:"-"`
610 }
611
612 func (s *GetMembershipGraphResponse) MarshalJSON() ([]byte, error) {
613 type NoMethod GetMembershipGraphResponse
614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
615 }
616
617
618
619 type GoogleAppsCloudidentityDevicesV1AndroidAttributes struct {
620
621 CtsProfileMatch bool `json:"ctsProfileMatch,omitempty"`
622
623
624 EnabledUnknownSources bool `json:"enabledUnknownSources,omitempty"`
625
626
627 HasPotentiallyHarmfulApps bool `json:"hasPotentiallyHarmfulApps,omitempty"`
628
629
630
631 OwnerProfileAccount bool `json:"ownerProfileAccount,omitempty"`
632
633
634
635
636
637
638
639
640
641 OwnershipPrivilege string `json:"ownershipPrivilege,omitempty"`
642
643
644
645 SupportsWorkProfile bool `json:"supportsWorkProfile,omitempty"`
646
647 VerifiedBoot bool `json:"verifiedBoot,omitempty"`
648
649 VerifyAppsEnabled bool `json:"verifyAppsEnabled,omitempty"`
650
651
652
653
654
655 ForceSendFields []string `json:"-"`
656
657
658
659
660 NullFields []string `json:"-"`
661 }
662
663 func (s *GoogleAppsCloudidentityDevicesV1AndroidAttributes) MarshalJSON() ([]byte, error) {
664 type NoMethod GoogleAppsCloudidentityDevicesV1AndroidAttributes
665 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
666 }
667
668
669
670 type GoogleAppsCloudidentityDevicesV1ApproveDeviceUserMetadata struct {
671 }
672
673
674
675 type GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest struct {
676
677
678
679
680
681
682 Customer string `json:"customer,omitempty"`
683
684
685
686
687
688 ForceSendFields []string `json:"-"`
689
690
691
692
693 NullFields []string `json:"-"`
694 }
695
696 func (s *GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest) MarshalJSON() ([]byte, error) {
697 type NoMethod GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest
698 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
699 }
700
701
702
703 type GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse struct {
704
705 DeviceUser *GoogleAppsCloudidentityDevicesV1DeviceUser `json:"deviceUser,omitempty"`
706
707
708
709
710
711 ForceSendFields []string `json:"-"`
712
713
714
715
716 NullFields []string `json:"-"`
717 }
718
719 func (s *GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse) MarshalJSON() ([]byte, error) {
720 type NoMethod GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
721 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
722 }
723
724
725
726 type GoogleAppsCloudidentityDevicesV1BlockDeviceUserMetadata struct {
727 }
728
729
730
731 type GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest struct {
732
733
734
735
736
737
738 Customer string `json:"customer,omitempty"`
739
740
741
742
743
744 ForceSendFields []string `json:"-"`
745
746
747
748
749 NullFields []string `json:"-"`
750 }
751
752 func (s *GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest) MarshalJSON() ([]byte, error) {
753 type NoMethod GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest
754 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
755 }
756
757
758
759 type GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse struct {
760
761 DeviceUser *GoogleAppsCloudidentityDevicesV1DeviceUser `json:"deviceUser,omitempty"`
762
763
764
765
766
767 ForceSendFields []string `json:"-"`
768
769
770
771
772 NullFields []string `json:"-"`
773 }
774
775 func (s *GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse) MarshalJSON() ([]byte, error) {
776 type NoMethod GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
778 }
779
780
781
782
783 type GoogleAppsCloudidentityDevicesV1BrowserAttributes struct {
784
785
786
787
788
789 ChromeBrowserInfo *GoogleAppsCloudidentityDevicesV1BrowserInfo `json:"chromeBrowserInfo,omitempty"`
790
791
792 ChromeProfileId string `json:"chromeProfileId,omitempty"`
793
794
795 LastProfileSyncTime string `json:"lastProfileSyncTime,omitempty"`
796
797
798
799
800
801 ForceSendFields []string `json:"-"`
802
803
804
805
806 NullFields []string `json:"-"`
807 }
808
809 func (s *GoogleAppsCloudidentityDevicesV1BrowserAttributes) MarshalJSON() ([]byte, error) {
810 type NoMethod GoogleAppsCloudidentityDevicesV1BrowserAttributes
811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
812 }
813
814
815
816
817
818 type GoogleAppsCloudidentityDevicesV1BrowserInfo struct {
819
820
821
822
823
824
825
826
827
828 BrowserManagementState string `json:"browserManagementState,omitempty"`
829
830 BrowserVersion string `json:"browserVersion,omitempty"`
831
832
833 IsBuiltInDnsClientEnabled bool `json:"isBuiltInDnsClientEnabled,omitempty"`
834
835
836
837 IsBulkDataEntryAnalysisEnabled bool `json:"isBulkDataEntryAnalysisEnabled,omitempty"`
838
839
840 IsChromeCleanupEnabled bool `json:"isChromeCleanupEnabled,omitempty"`
841
842
843 IsChromeRemoteDesktopAppBlocked bool `json:"isChromeRemoteDesktopAppBlocked,omitempty"`
844
845
846
847 IsFileDownloadAnalysisEnabled bool `json:"isFileDownloadAnalysisEnabled,omitempty"`
848
849
850
851 IsFileUploadAnalysisEnabled bool `json:"isFileUploadAnalysisEnabled,omitempty"`
852
853
854
855 IsRealtimeUrlCheckEnabled bool `json:"isRealtimeUrlCheckEnabled,omitempty"`
856
857
858
859 IsSecurityEventAnalysisEnabled bool `json:"isSecurityEventAnalysisEnabled,omitempty"`
860
861
862 IsSiteIsolationEnabled bool `json:"isSiteIsolationEnabled,omitempty"`
863
864
865 IsThirdPartyBlockingEnabled bool `json:"isThirdPartyBlockingEnabled,omitempty"`
866
867
868
869
870
871
872
873
874
875
876
877
878 PasswordProtectionWarningTrigger string `json:"passwordProtectionWarningTrigger,omitempty"`
879
880
881
882
883
884
885
886
887
888
889
890
891 SafeBrowsingProtectionLevel string `json:"safeBrowsingProtectionLevel,omitempty"`
892
893
894
895
896
897 ForceSendFields []string `json:"-"`
898
899
900
901
902 NullFields []string `json:"-"`
903 }
904
905 func (s *GoogleAppsCloudidentityDevicesV1BrowserInfo) MarshalJSON() ([]byte, error) {
906 type NoMethod GoogleAppsCloudidentityDevicesV1BrowserInfo
907 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
908 }
909
910
911
912 type GoogleAppsCloudidentityDevicesV1CancelWipeDeviceMetadata struct {
913 }
914
915
916
917 type GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest struct {
918
919
920
921
922
923
924 Customer string `json:"customer,omitempty"`
925
926
927
928
929
930 ForceSendFields []string `json:"-"`
931
932
933
934
935 NullFields []string `json:"-"`
936 }
937
938 func (s *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest) MarshalJSON() ([]byte, error) {
939 type NoMethod GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest
940 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
941 }
942
943
944
945 type GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse struct {
946
947
948 Device *GoogleAppsCloudidentityDevicesV1Device `json:"device,omitempty"`
949
950
951
952
953
954 ForceSendFields []string `json:"-"`
955
956
957
958
959 NullFields []string `json:"-"`
960 }
961
962 func (s *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse) MarshalJSON() ([]byte, error) {
963 type NoMethod GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
964 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
965 }
966
967
968
969 type GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserMetadata struct {
970 }
971
972
973
974 type GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest struct {
975
976
977
978
979
980
981 Customer string `json:"customer,omitempty"`
982
983
984
985
986
987 ForceSendFields []string `json:"-"`
988
989
990
991
992 NullFields []string `json:"-"`
993 }
994
995 func (s *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest) MarshalJSON() ([]byte, error) {
996 type NoMethod GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest
997 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
998 }
999
1000
1001
1002 type GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse struct {
1003
1004 DeviceUser *GoogleAppsCloudidentityDevicesV1DeviceUser `json:"deviceUser,omitempty"`
1005
1006
1007
1008
1009
1010 ForceSendFields []string `json:"-"`
1011
1012
1013
1014
1015 NullFields []string `json:"-"`
1016 }
1017
1018 func (s *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse) MarshalJSON() ([]byte, error) {
1019 type NoMethod GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
1020 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1021 }
1022
1023
1024
1025 type GoogleAppsCloudidentityDevicesV1CertificateAttributes struct {
1026
1027 CertificateTemplate *GoogleAppsCloudidentityDevicesV1CertificateTemplate `json:"certificateTemplate,omitempty"`
1028
1029 Fingerprint string `json:"fingerprint,omitempty"`
1030
1031 Issuer string `json:"issuer,omitempty"`
1032
1033 SerialNumber string `json:"serialNumber,omitempty"`
1034
1035 Subject string `json:"subject,omitempty"`
1036
1037 Thumbprint string `json:"thumbprint,omitempty"`
1038
1039
1040
1041
1042
1043
1044 ValidationState string `json:"validationState,omitempty"`
1045
1046 ValidityExpirationTime string `json:"validityExpirationTime,omitempty"`
1047
1048 ValidityStartTime string `json:"validityStartTime,omitempty"`
1049
1050
1051
1052
1053
1054 ForceSendFields []string `json:"-"`
1055
1056
1057
1058
1059 NullFields []string `json:"-"`
1060 }
1061
1062 func (s *GoogleAppsCloudidentityDevicesV1CertificateAttributes) MarshalJSON() ([]byte, error) {
1063 type NoMethod GoogleAppsCloudidentityDevicesV1CertificateAttributes
1064 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1065 }
1066
1067
1068
1069 type GoogleAppsCloudidentityDevicesV1CertificateTemplate struct {
1070
1071
1072
1073 Id string `json:"id,omitempty"`
1074
1075 MajorVersion int64 `json:"majorVersion,omitempty"`
1076
1077 MinorVersion int64 `json:"minorVersion,omitempty"`
1078
1079
1080
1081
1082
1083 ForceSendFields []string `json:"-"`
1084
1085
1086
1087
1088 NullFields []string `json:"-"`
1089 }
1090
1091 func (s *GoogleAppsCloudidentityDevicesV1CertificateTemplate) MarshalJSON() ([]byte, error) {
1092 type NoMethod GoogleAppsCloudidentityDevicesV1CertificateTemplate
1093 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1094 }
1095
1096
1097
1098
1099 type GoogleAppsCloudidentityDevicesV1ClientState struct {
1100
1101 AssetTags []string `json:"assetTags,omitempty"`
1102
1103
1104
1105
1106
1107
1108
1109
1110 ComplianceState string `json:"complianceState,omitempty"`
1111
1112 CreateTime string `json:"createTime,omitempty"`
1113
1114
1115 CustomId string `json:"customId,omitempty"`
1116
1117
1118 Etag string `json:"etag,omitempty"`
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132 HealthScore string `json:"healthScore,omitempty"`
1133
1134
1135
1136 KeyValuePairs map[string]GoogleAppsCloudidentityDevicesV1CustomAttributeValue `json:"keyValuePairs,omitempty"`
1137
1138
1139 LastUpdateTime string `json:"lastUpdateTime,omitempty"`
1140
1141
1142
1143
1144
1145
1146
1147
1148 Managed string `json:"managed,omitempty"`
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164 Name string `json:"name,omitempty"`
1165
1166
1167
1168
1169
1170
1171 OwnerType string `json:"ownerType,omitempty"`
1172
1173 ScoreReason string `json:"scoreReason,omitempty"`
1174
1175
1176 googleapi.ServerResponse `json:"-"`
1177
1178
1179
1180
1181
1182 ForceSendFields []string `json:"-"`
1183
1184
1185
1186
1187 NullFields []string `json:"-"`
1188 }
1189
1190 func (s *GoogleAppsCloudidentityDevicesV1ClientState) MarshalJSON() ([]byte, error) {
1191 type NoMethod GoogleAppsCloudidentityDevicesV1ClientState
1192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1193 }
1194
1195
1196
1197 type GoogleAppsCloudidentityDevicesV1CreateDeviceMetadata struct {
1198 }
1199
1200
1201
1202 type GoogleAppsCloudidentityDevicesV1CustomAttributeValue struct {
1203
1204 BoolValue bool `json:"boolValue,omitempty"`
1205
1206 NumberValue float64 `json:"numberValue,omitempty"`
1207
1208 StringValue string `json:"stringValue,omitempty"`
1209
1210
1211
1212
1213
1214 ForceSendFields []string `json:"-"`
1215
1216
1217
1218
1219 NullFields []string `json:"-"`
1220 }
1221
1222 func (s *GoogleAppsCloudidentityDevicesV1CustomAttributeValue) MarshalJSON() ([]byte, error) {
1223 type NoMethod GoogleAppsCloudidentityDevicesV1CustomAttributeValue
1224 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1225 }
1226
1227 func (s *GoogleAppsCloudidentityDevicesV1CustomAttributeValue) UnmarshalJSON(data []byte) error {
1228 type NoMethod GoogleAppsCloudidentityDevicesV1CustomAttributeValue
1229 var s1 struct {
1230 NumberValue gensupport.JSONFloat64 `json:"numberValue"`
1231 *NoMethod
1232 }
1233 s1.NoMethod = (*NoMethod)(s)
1234 if err := json.Unmarshal(data, &s1); err != nil {
1235 return err
1236 }
1237 s.NumberValue = float64(s1.NumberValue)
1238 return nil
1239 }
1240
1241
1242
1243 type GoogleAppsCloudidentityDevicesV1DeleteDeviceMetadata struct {
1244 }
1245
1246
1247
1248 type GoogleAppsCloudidentityDevicesV1DeleteDeviceUserMetadata struct {
1249 }
1250
1251
1252
1253
1254 type GoogleAppsCloudidentityDevicesV1Device struct {
1255
1256
1257 AndroidSpecificAttributes *GoogleAppsCloudidentityDevicesV1AndroidAttributes `json:"androidSpecificAttributes,omitempty"`
1258
1259 AssetTag string `json:"assetTag,omitempty"`
1260
1261 BasebandVersion string `json:"basebandVersion,omitempty"`
1262
1263 BootloaderVersion string `json:"bootloaderVersion,omitempty"`
1264
1265 Brand string `json:"brand,omitempty"`
1266
1267 BuildNumber string `json:"buildNumber,omitempty"`
1268
1269
1270
1271
1272
1273
1274
1275
1276 CompromisedState string `json:"compromisedState,omitempty"`
1277
1278
1279 CreateTime string `json:"createTime,omitempty"`
1280
1281 DeviceId string `json:"deviceId,omitempty"`
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293 DeviceType string `json:"deviceType,omitempty"`
1294
1295
1296 EnabledDeveloperOptions bool `json:"enabledDeveloperOptions,omitempty"`
1297
1298
1299 EnabledUsbDebugging bool `json:"enabledUsbDebugging,omitempty"`
1300
1301
1302
1303
1304
1305
1306
1307 EncryptionState string `json:"encryptionState,omitempty"`
1308
1309
1310
1311 EndpointVerificationSpecificAttributes *GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes `json:"endpointVerificationSpecificAttributes,omitempty"`
1312
1313 Hostname string `json:"hostname,omitempty"`
1314
1315 Imei string `json:"imei,omitempty"`
1316
1317 KernelVersion string `json:"kernelVersion,omitempty"`
1318
1319 LastSyncTime string `json:"lastSyncTime,omitempty"`
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 ManagementState string `json:"managementState,omitempty"`
1332
1333 Manufacturer string `json:"manufacturer,omitempty"`
1334
1335 Meid string `json:"meid,omitempty"`
1336
1337 Model string `json:"model,omitempty"`
1338
1339
1340
1341
1342 Name string `json:"name,omitempty"`
1343
1344
1345 NetworkOperator string `json:"networkOperator,omitempty"`
1346
1347 OsVersion string `json:"osVersion,omitempty"`
1348
1349
1350
1351
1352
1353 OtherAccounts []string `json:"otherAccounts,omitempty"`
1354
1355
1356
1357
1358
1359
1360
1361 OwnerType string `json:"ownerType,omitempty"`
1362
1363 ReleaseVersion string `json:"releaseVersion,omitempty"`
1364
1365 SecurityPatchTime string `json:"securityPatchTime,omitempty"`
1366
1367 SerialNumber string `json:"serialNumber,omitempty"`
1368
1369 UnifiedDeviceId string `json:"unifiedDeviceId,omitempty"`
1370
1371 WifiMacAddresses []string `json:"wifiMacAddresses,omitempty"`
1372
1373
1374 googleapi.ServerResponse `json:"-"`
1375
1376
1377
1378
1379
1380 ForceSendFields []string `json:"-"`
1381
1382
1383
1384
1385 NullFields []string `json:"-"`
1386 }
1387
1388 func (s *GoogleAppsCloudidentityDevicesV1Device) MarshalJSON() ([]byte, error) {
1389 type NoMethod GoogleAppsCloudidentityDevicesV1Device
1390 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1391 }
1392
1393
1394
1395
1396 type GoogleAppsCloudidentityDevicesV1DeviceUser struct {
1397
1398
1399
1400
1401
1402
1403
1404 CompromisedState string `json:"compromisedState,omitempty"`
1405
1406 CreateTime string `json:"createTime,omitempty"`
1407
1408
1409 FirstSyncTime string `json:"firstSyncTime,omitempty"`
1410
1411
1412 LanguageCode string `json:"languageCode,omitempty"`
1413
1414 LastSyncTime string `json:"lastSyncTime,omitempty"`
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426 ManagementState string `json:"managementState,omitempty"`
1427
1428
1429
1430
1431 Name string `json:"name,omitempty"`
1432
1433
1434
1435
1436
1437
1438 PasswordState string `json:"passwordState,omitempty"`
1439
1440 UserAgent string `json:"userAgent,omitempty"`
1441
1442 UserEmail string `json:"userEmail,omitempty"`
1443
1444
1445 googleapi.ServerResponse `json:"-"`
1446
1447
1448
1449
1450
1451 ForceSendFields []string `json:"-"`
1452
1453
1454
1455
1456 NullFields []string `json:"-"`
1457 }
1458
1459 func (s *GoogleAppsCloudidentityDevicesV1DeviceUser) MarshalJSON() ([]byte, error) {
1460 type NoMethod GoogleAppsCloudidentityDevicesV1DeviceUser
1461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1462 }
1463
1464
1465
1466
1467
1468 type GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes struct {
1469
1470
1471
1472
1473
1474
1475
1476
1477 AdditionalSignals googleapi.RawMessage `json:"additionalSignals,omitempty"`
1478
1479
1480 BrowserAttributes []*GoogleAppsCloudidentityDevicesV1BrowserAttributes `json:"browserAttributes,omitempty"`
1481
1482 CertificateAttributes []*GoogleAppsCloudidentityDevicesV1CertificateAttributes `json:"certificateAttributes,omitempty"`
1483
1484
1485
1486
1487
1488 ForceSendFields []string `json:"-"`
1489
1490
1491
1492
1493 NullFields []string `json:"-"`
1494 }
1495
1496 func (s *GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes) MarshalJSON() ([]byte, error) {
1497 type NoMethod GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes
1498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1499 }
1500
1501
1502
1503 type GoogleAppsCloudidentityDevicesV1ListClientStatesResponse struct {
1504
1505 ClientStates []*GoogleAppsCloudidentityDevicesV1ClientState `json:"clientStates,omitempty"`
1506
1507
1508 NextPageToken string `json:"nextPageToken,omitempty"`
1509
1510
1511 googleapi.ServerResponse `json:"-"`
1512
1513
1514
1515
1516
1517 ForceSendFields []string `json:"-"`
1518
1519
1520
1521
1522 NullFields []string `json:"-"`
1523 }
1524
1525 func (s *GoogleAppsCloudidentityDevicesV1ListClientStatesResponse) MarshalJSON() ([]byte, error) {
1526 type NoMethod GoogleAppsCloudidentityDevicesV1ListClientStatesResponse
1527 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1528 }
1529
1530
1531
1532 type GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse struct {
1533
1534 DeviceUsers []*GoogleAppsCloudidentityDevicesV1DeviceUser `json:"deviceUsers,omitempty"`
1535
1536
1537 NextPageToken string `json:"nextPageToken,omitempty"`
1538
1539
1540 googleapi.ServerResponse `json:"-"`
1541
1542
1543
1544
1545
1546 ForceSendFields []string `json:"-"`
1547
1548
1549
1550
1551 NullFields []string `json:"-"`
1552 }
1553
1554 func (s *GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse) MarshalJSON() ([]byte, error) {
1555 type NoMethod GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse
1556 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1557 }
1558
1559
1560
1561 type GoogleAppsCloudidentityDevicesV1ListDevicesResponse struct {
1562
1563 Devices []*GoogleAppsCloudidentityDevicesV1Device `json:"devices,omitempty"`
1564
1565
1566 NextPageToken string `json:"nextPageToken,omitempty"`
1567
1568
1569 googleapi.ServerResponse `json:"-"`
1570
1571
1572
1573
1574
1575 ForceSendFields []string `json:"-"`
1576
1577
1578
1579
1580 NullFields []string `json:"-"`
1581 }
1582
1583 func (s *GoogleAppsCloudidentityDevicesV1ListDevicesResponse) MarshalJSON() ([]byte, error) {
1584 type NoMethod GoogleAppsCloudidentityDevicesV1ListDevicesResponse
1585 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1586 }
1587
1588
1589
1590 type GoogleAppsCloudidentityDevicesV1ListEndpointAppsMetadata struct {
1591 }
1592
1593
1594
1595
1596 type GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse struct {
1597
1598
1599 Customer string `json:"customer,omitempty"`
1600
1601
1602
1603
1604 Names []string `json:"names,omitempty"`
1605
1606
1607 NextPageToken string `json:"nextPageToken,omitempty"`
1608
1609
1610 googleapi.ServerResponse `json:"-"`
1611
1612
1613
1614
1615
1616 ForceSendFields []string `json:"-"`
1617
1618
1619
1620
1621 NullFields []string `json:"-"`
1622 }
1623
1624 func (s *GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse) MarshalJSON() ([]byte, error) {
1625 type NoMethod GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse
1626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1627 }
1628
1629
1630
1631 type GoogleAppsCloudidentityDevicesV1SignoutDeviceUserMetadata struct {
1632 }
1633
1634
1635
1636 type GoogleAppsCloudidentityDevicesV1UpdateClientStateMetadata struct {
1637 }
1638
1639
1640
1641 type GoogleAppsCloudidentityDevicesV1UpdateDeviceMetadata struct {
1642 }
1643
1644
1645
1646 type GoogleAppsCloudidentityDevicesV1WipeDeviceMetadata struct {
1647 }
1648
1649
1650
1651 type GoogleAppsCloudidentityDevicesV1WipeDeviceRequest struct {
1652
1653
1654
1655
1656
1657
1658 Customer string `json:"customer,omitempty"`
1659
1660
1661
1662
1663
1664 RemoveResetLock bool `json:"removeResetLock,omitempty"`
1665
1666
1667
1668
1669
1670 ForceSendFields []string `json:"-"`
1671
1672
1673
1674
1675 NullFields []string `json:"-"`
1676 }
1677
1678 func (s *GoogleAppsCloudidentityDevicesV1WipeDeviceRequest) MarshalJSON() ([]byte, error) {
1679 type NoMethod GoogleAppsCloudidentityDevicesV1WipeDeviceRequest
1680 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1681 }
1682
1683
1684
1685 type GoogleAppsCloudidentityDevicesV1WipeDeviceResponse struct {
1686
1687
1688 Device *GoogleAppsCloudidentityDevicesV1Device `json:"device,omitempty"`
1689
1690
1691
1692
1693
1694 ForceSendFields []string `json:"-"`
1695
1696
1697
1698
1699 NullFields []string `json:"-"`
1700 }
1701
1702 func (s *GoogleAppsCloudidentityDevicesV1WipeDeviceResponse) MarshalJSON() ([]byte, error) {
1703 type NoMethod GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
1704 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1705 }
1706
1707
1708
1709 type GoogleAppsCloudidentityDevicesV1WipeDeviceUserMetadata struct {
1710 }
1711
1712
1713
1714 type GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest struct {
1715
1716
1717
1718
1719
1720
1721 Customer string `json:"customer,omitempty"`
1722
1723
1724
1725
1726
1727 ForceSendFields []string `json:"-"`
1728
1729
1730
1731
1732 NullFields []string `json:"-"`
1733 }
1734
1735 func (s *GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest) MarshalJSON() ([]byte, error) {
1736 type NoMethod GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest
1737 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1738 }
1739
1740
1741
1742 type GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse struct {
1743
1744 DeviceUser *GoogleAppsCloudidentityDevicesV1DeviceUser `json:"deviceUser,omitempty"`
1745
1746
1747
1748
1749
1750 ForceSendFields []string `json:"-"`
1751
1752
1753
1754
1755 NullFields []string `json:"-"`
1756 }
1757
1758 func (s *GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse) MarshalJSON() ([]byte, error) {
1759 type NoMethod GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
1760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1761 }
1762
1763
1764
1765
1766 type Group struct {
1767
1768
1769 AdditionalGroupKeys []*EntityKey `json:"additionalGroupKeys,omitempty"`
1770
1771 CreateTime string `json:"createTime,omitempty"`
1772
1773
1774 Description string `json:"description,omitempty"`
1775
1776 DisplayName string `json:"displayName,omitempty"`
1777
1778
1779 DynamicGroupMetadata *DynamicGroupMetadata `json:"dynamicGroupMetadata,omitempty"`
1780
1781 GroupKey *EntityKey `json:"groupKey,omitempty"`
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793 Labels map[string]string `json:"labels,omitempty"`
1794
1795
1796
1797 Name string `json:"name,omitempty"`
1798
1799
1800
1801
1802
1803
1804
1805 Parent string `json:"parent,omitempty"`
1806
1807 UpdateTime string `json:"updateTime,omitempty"`
1808
1809
1810 googleapi.ServerResponse `json:"-"`
1811
1812
1813
1814
1815
1816 ForceSendFields []string `json:"-"`
1817
1818
1819
1820
1821 NullFields []string `json:"-"`
1822 }
1823
1824 func (s *Group) MarshalJSON() ([]byte, error) {
1825 type NoMethod Group
1826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1827 }
1828
1829
1830 type GroupRelation struct {
1831
1832 DisplayName string `json:"displayName,omitempty"`
1833
1834 Group string `json:"group,omitempty"`
1835
1836
1837 GroupKey *EntityKey `json:"groupKey,omitempty"`
1838
1839 Labels map[string]string `json:"labels,omitempty"`
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850 RelationType string `json:"relationType,omitempty"`
1851
1852 Roles []*TransitiveMembershipRole `json:"roles,omitempty"`
1853
1854
1855
1856
1857
1858 ForceSendFields []string `json:"-"`
1859
1860
1861
1862
1863 NullFields []string `json:"-"`
1864 }
1865
1866 func (s *GroupRelation) MarshalJSON() ([]byte, error) {
1867 type NoMethod GroupRelation
1868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1869 }
1870
1871
1872
1873 type IdpCredential struct {
1874
1875 DsaKeyInfo *DsaPublicKeyInfo `json:"dsaKeyInfo,omitempty"`
1876
1877
1878 Name string `json:"name,omitempty"`
1879
1880 RsaKeyInfo *RsaPublicKeyInfo `json:"rsaKeyInfo,omitempty"`
1881
1882 UpdateTime string `json:"updateTime,omitempty"`
1883
1884
1885 googleapi.ServerResponse `json:"-"`
1886
1887
1888
1889
1890
1891 ForceSendFields []string `json:"-"`
1892
1893
1894
1895
1896 NullFields []string `json:"-"`
1897 }
1898
1899 func (s *IdpCredential) MarshalJSON() ([]byte, error) {
1900 type NoMethod IdpCredential
1901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1902 }
1903
1904
1905
1906
1907 type InboundSamlSsoProfile struct {
1908
1909 Customer string `json:"customer,omitempty"`
1910
1911 DisplayName string `json:"displayName,omitempty"`
1912
1913 IdpConfig *SamlIdpConfig `json:"idpConfig,omitempty"`
1914
1915
1916
1917 Name string `json:"name,omitempty"`
1918
1919
1920
1921 SpConfig *SamlSpConfig `json:"spConfig,omitempty"`
1922
1923
1924 googleapi.ServerResponse `json:"-"`
1925
1926
1927
1928
1929
1930 ForceSendFields []string `json:"-"`
1931
1932
1933
1934
1935 NullFields []string `json:"-"`
1936 }
1937
1938 func (s *InboundSamlSsoProfile) MarshalJSON() ([]byte, error) {
1939 type NoMethod InboundSamlSsoProfile
1940 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1941 }
1942
1943
1944
1945 type InboundSsoAssignment struct {
1946
1947 Customer string `json:"customer,omitempty"`
1948
1949
1950
1951 Name string `json:"name,omitempty"`
1952
1953
1954
1955 Rank int64 `json:"rank,omitempty"`
1956
1957
1958 SamlSsoInfo *SamlSsoInfo `json:"samlSsoInfo,omitempty"`
1959
1960
1961
1962 SignInBehavior *SignInBehavior `json:"signInBehavior,omitempty"`
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976 SsoMode string `json:"ssoMode,omitempty"`
1977
1978 TargetGroup string `json:"targetGroup,omitempty"`
1979
1980 TargetOrgUnit string `json:"targetOrgUnit,omitempty"`
1981
1982
1983 googleapi.ServerResponse `json:"-"`
1984
1985
1986
1987
1988
1989 ForceSendFields []string `json:"-"`
1990
1991
1992
1993
1994 NullFields []string `json:"-"`
1995 }
1996
1997 func (s *InboundSsoAssignment) MarshalJSON() ([]byte, error) {
1998 type NoMethod InboundSsoAssignment
1999 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2000 }
2001
2002
2003 type IsInvitableUserResponse struct {
2004
2005 IsInvitableUser bool `json:"isInvitableUser,omitempty"`
2006
2007
2008 googleapi.ServerResponse `json:"-"`
2009
2010
2011
2012
2013
2014 ForceSendFields []string `json:"-"`
2015
2016
2017
2018
2019 NullFields []string `json:"-"`
2020 }
2021
2022 func (s *IsInvitableUserResponse) MarshalJSON() ([]byte, error) {
2023 type NoMethod IsInvitableUserResponse
2024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2025 }
2026
2027
2028 type ListGroupsResponse struct {
2029
2030
2031 Groups []*Group `json:"groups,omitempty"`
2032
2033
2034 NextPageToken string `json:"nextPageToken,omitempty"`
2035
2036
2037 googleapi.ServerResponse `json:"-"`
2038
2039
2040
2041
2042
2043 ForceSendFields []string `json:"-"`
2044
2045
2046
2047
2048 NullFields []string `json:"-"`
2049 }
2050
2051 func (s *ListGroupsResponse) MarshalJSON() ([]byte, error) {
2052 type NoMethod ListGroupsResponse
2053 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2054 }
2055
2056
2057
2058 type ListIdpCredentialsResponse struct {
2059
2060 IdpCredentials []*IdpCredential `json:"idpCredentials,omitempty"`
2061
2062
2063 NextPageToken string `json:"nextPageToken,omitempty"`
2064
2065
2066 googleapi.ServerResponse `json:"-"`
2067
2068
2069
2070
2071
2072 ForceSendFields []string `json:"-"`
2073
2074
2075
2076
2077 NullFields []string `json:"-"`
2078 }
2079
2080 func (s *ListIdpCredentialsResponse) MarshalJSON() ([]byte, error) {
2081 type NoMethod ListIdpCredentialsResponse
2082 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2083 }
2084
2085
2086
2087 type ListInboundSamlSsoProfilesResponse struct {
2088
2089 InboundSamlSsoProfiles []*InboundSamlSsoProfile `json:"inboundSamlSsoProfiles,omitempty"`
2090
2091
2092 NextPageToken string `json:"nextPageToken,omitempty"`
2093
2094
2095 googleapi.ServerResponse `json:"-"`
2096
2097
2098
2099
2100
2101 ForceSendFields []string `json:"-"`
2102
2103
2104
2105
2106 NullFields []string `json:"-"`
2107 }
2108
2109 func (s *ListInboundSamlSsoProfilesResponse) MarshalJSON() ([]byte, error) {
2110 type NoMethod ListInboundSamlSsoProfilesResponse
2111 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2112 }
2113
2114
2115
2116 type ListInboundSsoAssignmentsResponse struct {
2117
2118 InboundSsoAssignments []*InboundSsoAssignment `json:"inboundSsoAssignments,omitempty"`
2119
2120
2121 NextPageToken string `json:"nextPageToken,omitempty"`
2122
2123
2124 googleapi.ServerResponse `json:"-"`
2125
2126
2127
2128
2129
2130 ForceSendFields []string `json:"-"`
2131
2132
2133
2134
2135 NullFields []string `json:"-"`
2136 }
2137
2138 func (s *ListInboundSsoAssignmentsResponse) MarshalJSON() ([]byte, error) {
2139 type NoMethod ListInboundSsoAssignmentsResponse
2140 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2141 }
2142
2143
2144
2145 type ListMembershipsResponse struct {
2146
2147 Memberships []*Membership `json:"memberships,omitempty"`
2148
2149
2150 NextPageToken string `json:"nextPageToken,omitempty"`
2151
2152
2153 googleapi.ServerResponse `json:"-"`
2154
2155
2156
2157
2158
2159 ForceSendFields []string `json:"-"`
2160
2161
2162
2163
2164 NullFields []string `json:"-"`
2165 }
2166
2167 func (s *ListMembershipsResponse) MarshalJSON() ([]byte, error) {
2168 type NoMethod ListMembershipsResponse
2169 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2170 }
2171
2172
2173
2174 type ListUserInvitationsResponse struct {
2175
2176
2177
2178
2179 NextPageToken string `json:"nextPageToken,omitempty"`
2180
2181 UserInvitations []*UserInvitation `json:"userInvitations,omitempty"`
2182
2183
2184 googleapi.ServerResponse `json:"-"`
2185
2186
2187
2188
2189
2190 ForceSendFields []string `json:"-"`
2191
2192
2193
2194
2195 NullFields []string `json:"-"`
2196 }
2197
2198 func (s *ListUserInvitationsResponse) MarshalJSON() ([]byte, error) {
2199 type NoMethod ListUserInvitationsResponse
2200 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2201 }
2202
2203
2204
2205 type LookupGroupNameResponse struct {
2206
2207
2208
2209 Name string `json:"name,omitempty"`
2210
2211
2212 googleapi.ServerResponse `json:"-"`
2213
2214
2215
2216
2217
2218 ForceSendFields []string `json:"-"`
2219
2220
2221
2222
2223 NullFields []string `json:"-"`
2224 }
2225
2226 func (s *LookupGroupNameResponse) MarshalJSON() ([]byte, error) {
2227 type NoMethod LookupGroupNameResponse
2228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2229 }
2230
2231
2232
2233 type LookupMembershipNameResponse struct {
2234
2235
2236
2237 Name string `json:"name,omitempty"`
2238
2239
2240 googleapi.ServerResponse `json:"-"`
2241
2242
2243
2244
2245
2246 ForceSendFields []string `json:"-"`
2247
2248
2249
2250
2251 NullFields []string `json:"-"`
2252 }
2253
2254 func (s *LookupMembershipNameResponse) MarshalJSON() ([]byte, error) {
2255 type NoMethod LookupMembershipNameResponse
2256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2257 }
2258
2259
2260 type MemberRelation struct {
2261
2262 Member string `json:"member,omitempty"`
2263
2264
2265 PreferredMemberKey []*EntityKey `json:"preferredMemberKey,omitempty"`
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276 RelationType string `json:"relationType,omitempty"`
2277
2278 Roles []*TransitiveMembershipRole `json:"roles,omitempty"`
2279
2280
2281
2282
2283
2284 ForceSendFields []string `json:"-"`
2285
2286
2287
2288
2289 NullFields []string `json:"-"`
2290 }
2291
2292 func (s *MemberRelation) MarshalJSON() ([]byte, error) {
2293 type NoMethod MemberRelation
2294 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2295 }
2296
2297
2298 type MemberRestriction struct {
2299
2300 Evaluation *RestrictionEvaluation `json:"evaluation,omitempty"`
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311 Query string `json:"query,omitempty"`
2312
2313
2314
2315
2316
2317 ForceSendFields []string `json:"-"`
2318
2319
2320
2321
2322 NullFields []string `json:"-"`
2323 }
2324
2325 func (s *MemberRestriction) MarshalJSON() ([]byte, error) {
2326 type NoMethod MemberRestriction
2327 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2328 }
2329
2330
2331
2332
2333 type Membership struct {
2334
2335 CreateTime string `json:"createTime,omitempty"`
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346 DeliverySetting string `json:"deliverySetting,omitempty"`
2347
2348
2349
2350 Name string `json:"name,omitempty"`
2351
2352 PreferredMemberKey *EntityKey `json:"preferredMemberKey,omitempty"`
2353
2354
2355
2356 Roles []*MembershipRole `json:"roles,omitempty"`
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366 Type string `json:"type,omitempty"`
2367
2368 UpdateTime string `json:"updateTime,omitempty"`
2369
2370
2371 googleapi.ServerResponse `json:"-"`
2372
2373
2374
2375
2376
2377 ForceSendFields []string `json:"-"`
2378
2379
2380
2381
2382 NullFields []string `json:"-"`
2383 }
2384
2385 func (s *Membership) MarshalJSON() ([]byte, error) {
2386 type NoMethod Membership
2387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2388 }
2389
2390
2391
2392 type MembershipAdjacencyList struct {
2393
2394
2395
2396
2397 Edges []*Membership `json:"edges,omitempty"`
2398
2399 Group string `json:"group,omitempty"`
2400
2401
2402
2403
2404
2405 ForceSendFields []string `json:"-"`
2406
2407
2408
2409
2410 NullFields []string `json:"-"`
2411 }
2412
2413 func (s *MembershipAdjacencyList) MarshalJSON() ([]byte, error) {
2414 type NoMethod MembershipAdjacencyList
2415 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2416 }
2417
2418
2419 type MembershipRelation struct {
2420
2421
2422 Description string `json:"description,omitempty"`
2423
2424 DisplayName string `json:"displayName,omitempty"`
2425
2426
2427
2428 Group string `json:"group,omitempty"`
2429
2430 GroupKey *EntityKey `json:"groupKey,omitempty"`
2431
2432
2433 Labels map[string]string `json:"labels,omitempty"`
2434
2435
2436
2437 Membership string `json:"membership,omitempty"`
2438
2439 Roles []*MembershipRole `json:"roles,omitempty"`
2440
2441
2442
2443
2444
2445 ForceSendFields []string `json:"-"`
2446
2447
2448
2449
2450 NullFields []string `json:"-"`
2451 }
2452
2453 func (s *MembershipRelation) MarshalJSON() ([]byte, error) {
2454 type NoMethod MembershipRelation
2455 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2456 }
2457
2458
2459
2460 type MembershipRole struct {
2461
2462
2463
2464 ExpiryDetail *ExpiryDetail `json:"expiryDetail,omitempty"`
2465
2466
2467 Name string `json:"name,omitempty"`
2468
2469
2470 RestrictionEvaluations *RestrictionEvaluations `json:"restrictionEvaluations,omitempty"`
2471
2472
2473
2474
2475
2476 ForceSendFields []string `json:"-"`
2477
2478
2479
2480
2481 NullFields []string `json:"-"`
2482 }
2483
2484 func (s *MembershipRole) MarshalJSON() ([]byte, error) {
2485 type NoMethod MembershipRole
2486 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2487 }
2488
2489
2490
2491 type MembershipRoleRestrictionEvaluation struct {
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503 State string `json:"state,omitempty"`
2504
2505
2506
2507
2508
2509 ForceSendFields []string `json:"-"`
2510
2511
2512
2513
2514 NullFields []string `json:"-"`
2515 }
2516
2517 func (s *MembershipRoleRestrictionEvaluation) MarshalJSON() ([]byte, error) {
2518 type NoMethod MembershipRoleRestrictionEvaluation
2519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2520 }
2521
2522
2523
2524 type ModifyMembershipRolesRequest struct {
2525
2526
2527
2528 AddRoles []*MembershipRole `json:"addRoles,omitempty"`
2529
2530
2531
2532
2533
2534 RemoveRoles []string `json:"removeRoles,omitempty"`
2535
2536
2537
2538 UpdateRolesParams []*UpdateMembershipRolesParams `json:"updateRolesParams,omitempty"`
2539
2540
2541
2542
2543
2544 ForceSendFields []string `json:"-"`
2545
2546
2547
2548
2549 NullFields []string `json:"-"`
2550 }
2551
2552 func (s *ModifyMembershipRolesRequest) MarshalJSON() ([]byte, error) {
2553 type NoMethod ModifyMembershipRolesRequest
2554 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2555 }
2556
2557
2558
2559 type ModifyMembershipRolesResponse struct {
2560
2561 Membership *Membership `json:"membership,omitempty"`
2562
2563
2564 googleapi.ServerResponse `json:"-"`
2565
2566
2567
2568
2569
2570 ForceSendFields []string `json:"-"`
2571
2572
2573
2574
2575 NullFields []string `json:"-"`
2576 }
2577
2578 func (s *ModifyMembershipRolesResponse) MarshalJSON() ([]byte, error) {
2579 type NoMethod ModifyMembershipRolesResponse
2580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2581 }
2582
2583
2584
2585 type Operation struct {
2586
2587
2588
2589 Done bool `json:"done,omitempty"`
2590
2591 Error *Status `json:"error,omitempty"`
2592
2593
2594
2595
2596 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2597
2598
2599
2600 Name string `json:"name,omitempty"`
2601
2602
2603
2604
2605
2606
2607
2608 Response googleapi.RawMessage `json:"response,omitempty"`
2609
2610
2611 googleapi.ServerResponse `json:"-"`
2612
2613
2614
2615
2616
2617 ForceSendFields []string `json:"-"`
2618
2619
2620
2621
2622 NullFields []string `json:"-"`
2623 }
2624
2625 func (s *Operation) MarshalJSON() ([]byte, error) {
2626 type NoMethod Operation
2627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2628 }
2629
2630
2631 type RestrictionEvaluation struct {
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643 State string `json:"state,omitempty"`
2644
2645
2646
2647
2648
2649 ForceSendFields []string `json:"-"`
2650
2651
2652
2653
2654 NullFields []string `json:"-"`
2655 }
2656
2657 func (s *RestrictionEvaluation) MarshalJSON() ([]byte, error) {
2658 type NoMethod RestrictionEvaluation
2659 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2660 }
2661
2662
2663
2664 type RestrictionEvaluations struct {
2665
2666
2667
2668 MemberRestrictionEvaluation *MembershipRoleRestrictionEvaluation `json:"memberRestrictionEvaluation,omitempty"`
2669
2670
2671
2672
2673
2674 ForceSendFields []string `json:"-"`
2675
2676
2677
2678
2679 NullFields []string `json:"-"`
2680 }
2681
2682 func (s *RestrictionEvaluations) MarshalJSON() ([]byte, error) {
2683 type NoMethod RestrictionEvaluations
2684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2685 }
2686
2687
2688 type RsaPublicKeyInfo struct {
2689
2690 KeySize int64 `json:"keySize,omitempty"`
2691
2692
2693
2694
2695
2696 ForceSendFields []string `json:"-"`
2697
2698
2699
2700
2701 NullFields []string `json:"-"`
2702 }
2703
2704 func (s *RsaPublicKeyInfo) MarshalJSON() ([]byte, error) {
2705 type NoMethod RsaPublicKeyInfo
2706 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2707 }
2708
2709
2710 type SamlIdpConfig struct {
2711
2712
2713
2714
2715 ChangePasswordUri string `json:"changePasswordUri,omitempty"`
2716
2717 EntityId string `json:"entityId,omitempty"`
2718
2719
2720
2721
2722
2723 LogoutRedirectUri string `json:"logoutRedirectUri,omitempty"`
2724
2725
2726
2727
2728 SingleSignOnServiceUri string `json:"singleSignOnServiceUri,omitempty"`
2729
2730
2731
2732
2733
2734 ForceSendFields []string `json:"-"`
2735
2736
2737
2738
2739 NullFields []string `json:"-"`
2740 }
2741
2742 func (s *SamlIdpConfig) MarshalJSON() ([]byte, error) {
2743 type NoMethod SamlIdpConfig
2744 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2745 }
2746
2747
2748 type SamlSpConfig struct {
2749
2750
2751
2752 AssertionConsumerServiceUri string `json:"assertionConsumerServiceUri,omitempty"`
2753
2754 EntityId string `json:"entityId,omitempty"`
2755
2756
2757
2758
2759
2760 ForceSendFields []string `json:"-"`
2761
2762
2763
2764
2765 NullFields []string `json:"-"`
2766 }
2767
2768 func (s *SamlSpConfig) MarshalJSON() ([]byte, error) {
2769 type NoMethod SamlSpConfig
2770 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2771 }
2772
2773
2774 type SamlSsoInfo struct {
2775
2776
2777 InboundSamlSsoProfile string `json:"inboundSamlSsoProfile,omitempty"`
2778
2779
2780
2781
2782
2783 ForceSendFields []string `json:"-"`
2784
2785
2786
2787
2788 NullFields []string `json:"-"`
2789 }
2790
2791 func (s *SamlSsoInfo) MarshalJSON() ([]byte, error) {
2792 type NoMethod SamlSsoInfo
2793 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2794 }
2795
2796
2797
2798 type SearchDirectGroupsResponse struct {
2799
2800 Memberships []*MembershipRelation `json:"memberships,omitempty"`
2801
2802
2803 NextPageToken string `json:"nextPageToken,omitempty"`
2804
2805
2806 googleapi.ServerResponse `json:"-"`
2807
2808
2809
2810
2811
2812 ForceSendFields []string `json:"-"`
2813
2814
2815
2816
2817 NullFields []string `json:"-"`
2818 }
2819
2820 func (s *SearchDirectGroupsResponse) MarshalJSON() ([]byte, error) {
2821 type NoMethod SearchDirectGroupsResponse
2822 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2823 }
2824
2825
2826 type SearchGroupsResponse struct {
2827
2828 Groups []*Group `json:"groups,omitempty"`
2829
2830
2831 NextPageToken string `json:"nextPageToken,omitempty"`
2832
2833
2834 googleapi.ServerResponse `json:"-"`
2835
2836
2837
2838
2839
2840 ForceSendFields []string `json:"-"`
2841
2842
2843
2844
2845 NullFields []string `json:"-"`
2846 }
2847
2848 func (s *SearchGroupsResponse) MarshalJSON() ([]byte, error) {
2849 type NoMethod SearchGroupsResponse
2850 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2851 }
2852
2853
2854
2855 type SearchTransitiveGroupsResponse struct {
2856
2857 Memberships []*GroupRelation `json:"memberships,omitempty"`
2858
2859
2860 NextPageToken string `json:"nextPageToken,omitempty"`
2861
2862
2863 googleapi.ServerResponse `json:"-"`
2864
2865
2866
2867
2868
2869 ForceSendFields []string `json:"-"`
2870
2871
2872
2873
2874 NullFields []string `json:"-"`
2875 }
2876
2877 func (s *SearchTransitiveGroupsResponse) MarshalJSON() ([]byte, error) {
2878 type NoMethod SearchTransitiveGroupsResponse
2879 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2880 }
2881
2882
2883
2884 type SearchTransitiveMembershipsResponse struct {
2885
2886 Memberships []*MemberRelation `json:"memberships,omitempty"`
2887
2888
2889 NextPageToken string `json:"nextPageToken,omitempty"`
2890
2891
2892 googleapi.ServerResponse `json:"-"`
2893
2894
2895
2896
2897
2898 ForceSendFields []string `json:"-"`
2899
2900
2901
2902
2903 NullFields []string `json:"-"`
2904 }
2905
2906 func (s *SearchTransitiveMembershipsResponse) MarshalJSON() ([]byte, error) {
2907 type NoMethod SearchTransitiveMembershipsResponse
2908 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2909 }
2910
2911
2912 type SecuritySettings struct {
2913
2914 MemberRestriction *MemberRestriction `json:"memberRestriction,omitempty"`
2915
2916
2917 Name string `json:"name,omitempty"`
2918
2919
2920 googleapi.ServerResponse `json:"-"`
2921
2922
2923
2924
2925
2926 ForceSendFields []string `json:"-"`
2927
2928
2929
2930
2931 NullFields []string `json:"-"`
2932 }
2933
2934 func (s *SecuritySettings) MarshalJSON() ([]byte, error) {
2935 type NoMethod SecuritySettings
2936 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2937 }
2938
2939
2940
2941 type SendUserInvitationRequest struct {
2942 }
2943
2944
2945 type SignInBehavior struct {
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955 RedirectCondition string `json:"redirectCondition,omitempty"`
2956
2957
2958
2959
2960
2961 ForceSendFields []string `json:"-"`
2962
2963
2964
2965
2966 NullFields []string `json:"-"`
2967 }
2968
2969 func (s *SignInBehavior) MarshalJSON() ([]byte, error) {
2970 type NoMethod SignInBehavior
2971 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2972 }
2973
2974
2975
2976
2977
2978
2979
2980 type Status struct {
2981
2982 Code int64 `json:"code,omitempty"`
2983
2984
2985 Details []googleapi.RawMessage `json:"details,omitempty"`
2986
2987
2988
2989 Message string `json:"message,omitempty"`
2990
2991
2992
2993
2994
2995 ForceSendFields []string `json:"-"`
2996
2997
2998
2999
3000 NullFields []string `json:"-"`
3001 }
3002
3003 func (s *Status) MarshalJSON() ([]byte, error) {
3004 type NoMethod Status
3005 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3006 }
3007
3008
3009
3010 type TransitiveMembershipRole struct {
3011
3012
3013 Role string `json:"role,omitempty"`
3014
3015
3016
3017
3018
3019 ForceSendFields []string `json:"-"`
3020
3021
3022
3023
3024 NullFields []string `json:"-"`
3025 }
3026
3027 func (s *TransitiveMembershipRole) MarshalJSON() ([]byte, error) {
3028 type NoMethod TransitiveMembershipRole
3029 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3030 }
3031
3032
3033 type UpdateGroupMetadata struct {
3034 }
3035
3036
3037
3038 type UpdateInboundSamlSsoProfileOperationMetadata struct {
3039 }
3040
3041
3042
3043 type UpdateInboundSsoAssignmentOperationMetadata struct {
3044 }
3045
3046
3047 type UpdateMembershipMetadata struct {
3048 }
3049
3050
3051 type UpdateMembershipRolesParams struct {
3052
3053
3054 FieldMask string `json:"fieldMask,omitempty"`
3055
3056
3057 MembershipRole *MembershipRole `json:"membershipRole,omitempty"`
3058
3059
3060
3061
3062
3063 ForceSendFields []string `json:"-"`
3064
3065
3066
3067
3068 NullFields []string `json:"-"`
3069 }
3070
3071 func (s *UpdateMembershipRolesParams) MarshalJSON() ([]byte, error) {
3072 type NoMethod UpdateMembershipRolesParams
3073 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3074 }
3075
3076
3077
3078
3079
3080
3081
3082 type UserInvitation struct {
3083
3084 MailsSentCount int64 `json:"mailsSentCount,omitempty,string"`
3085
3086
3087 Name string `json:"name,omitempty"`
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099 State string `json:"state,omitempty"`
3100
3101 UpdateTime string `json:"updateTime,omitempty"`
3102
3103
3104 googleapi.ServerResponse `json:"-"`
3105
3106
3107
3108
3109
3110 ForceSendFields []string `json:"-"`
3111
3112
3113
3114
3115 NullFields []string `json:"-"`
3116 }
3117
3118 func (s *UserInvitation) MarshalJSON() ([]byte, error) {
3119 type NoMethod UserInvitation
3120 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3121 }
3122
3123 type CustomersUserinvitationsCancelCall struct {
3124 s *Service
3125 name string
3126 canceluserinvitationrequest *CancelUserInvitationRequest
3127 urlParams_ gensupport.URLParams
3128 ctx_ context.Context
3129 header_ http.Header
3130 }
3131
3132
3133
3134
3135
3136 func (r *CustomersUserinvitationsService) Cancel(name string, canceluserinvitationrequest *CancelUserInvitationRequest) *CustomersUserinvitationsCancelCall {
3137 c := &CustomersUserinvitationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3138 c.name = name
3139 c.canceluserinvitationrequest = canceluserinvitationrequest
3140 return c
3141 }
3142
3143
3144
3145
3146 func (c *CustomersUserinvitationsCancelCall) Fields(s ...googleapi.Field) *CustomersUserinvitationsCancelCall {
3147 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3148 return c
3149 }
3150
3151
3152 func (c *CustomersUserinvitationsCancelCall) Context(ctx context.Context) *CustomersUserinvitationsCancelCall {
3153 c.ctx_ = ctx
3154 return c
3155 }
3156
3157
3158
3159 func (c *CustomersUserinvitationsCancelCall) Header() http.Header {
3160 if c.header_ == nil {
3161 c.header_ = make(http.Header)
3162 }
3163 return c.header_
3164 }
3165
3166 func (c *CustomersUserinvitationsCancelCall) doRequest(alt string) (*http.Response, error) {
3167 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3168 var body io.Reader = nil
3169 body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceluserinvitationrequest)
3170 if err != nil {
3171 return nil, err
3172 }
3173 c.urlParams_.Set("alt", alt)
3174 c.urlParams_.Set("prettyPrint", "false")
3175 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
3176 urls += "?" + c.urlParams_.Encode()
3177 req, err := http.NewRequest("POST", urls, body)
3178 if err != nil {
3179 return nil, err
3180 }
3181 req.Header = reqHeaders
3182 googleapi.Expand(req.URL, map[string]string{
3183 "name": c.name,
3184 })
3185 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3186 }
3187
3188
3189
3190
3191
3192
3193 func (c *CustomersUserinvitationsCancelCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
3194 gensupport.SetOptions(c.urlParams_, opts...)
3195 res, err := c.doRequest("json")
3196 if res != nil && res.StatusCode == http.StatusNotModified {
3197 if res.Body != nil {
3198 res.Body.Close()
3199 }
3200 return nil, gensupport.WrapError(&googleapi.Error{
3201 Code: res.StatusCode,
3202 Header: res.Header,
3203 })
3204 }
3205 if err != nil {
3206 return nil, err
3207 }
3208 defer googleapi.CloseBody(res)
3209 if err := googleapi.CheckResponse(res); err != nil {
3210 return nil, gensupport.WrapError(err)
3211 }
3212 ret := &Operation{
3213 ServerResponse: googleapi.ServerResponse{
3214 Header: res.Header,
3215 HTTPStatusCode: res.StatusCode,
3216 },
3217 }
3218 target := &ret
3219 if err := gensupport.DecodeResponse(target, res); err != nil {
3220 return nil, err
3221 }
3222 return ret, nil
3223 }
3224
3225 type CustomersUserinvitationsGetCall struct {
3226 s *Service
3227 name string
3228 urlParams_ gensupport.URLParams
3229 ifNoneMatch_ string
3230 ctx_ context.Context
3231 header_ http.Header
3232 }
3233
3234
3235
3236
3237
3238
3239
3240
3241 func (r *CustomersUserinvitationsService) Get(name string) *CustomersUserinvitationsGetCall {
3242 c := &CustomersUserinvitationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3243 c.name = name
3244 return c
3245 }
3246
3247
3248
3249
3250 func (c *CustomersUserinvitationsGetCall) Fields(s ...googleapi.Field) *CustomersUserinvitationsGetCall {
3251 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3252 return c
3253 }
3254
3255
3256
3257
3258 func (c *CustomersUserinvitationsGetCall) IfNoneMatch(entityTag string) *CustomersUserinvitationsGetCall {
3259 c.ifNoneMatch_ = entityTag
3260 return c
3261 }
3262
3263
3264 func (c *CustomersUserinvitationsGetCall) Context(ctx context.Context) *CustomersUserinvitationsGetCall {
3265 c.ctx_ = ctx
3266 return c
3267 }
3268
3269
3270
3271 func (c *CustomersUserinvitationsGetCall) Header() http.Header {
3272 if c.header_ == nil {
3273 c.header_ = make(http.Header)
3274 }
3275 return c.header_
3276 }
3277
3278 func (c *CustomersUserinvitationsGetCall) doRequest(alt string) (*http.Response, error) {
3279 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3280 if c.ifNoneMatch_ != "" {
3281 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3282 }
3283 var body io.Reader = nil
3284 c.urlParams_.Set("alt", alt)
3285 c.urlParams_.Set("prettyPrint", "false")
3286 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
3287 urls += "?" + c.urlParams_.Encode()
3288 req, err := http.NewRequest("GET", urls, body)
3289 if err != nil {
3290 return nil, err
3291 }
3292 req.Header = reqHeaders
3293 googleapi.Expand(req.URL, map[string]string{
3294 "name": c.name,
3295 })
3296 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3297 }
3298
3299
3300
3301
3302
3303
3304 func (c *CustomersUserinvitationsGetCall) Do(opts ...googleapi.CallOption) (*UserInvitation, error) {
3305 gensupport.SetOptions(c.urlParams_, opts...)
3306 res, err := c.doRequest("json")
3307 if res != nil && res.StatusCode == http.StatusNotModified {
3308 if res.Body != nil {
3309 res.Body.Close()
3310 }
3311 return nil, gensupport.WrapError(&googleapi.Error{
3312 Code: res.StatusCode,
3313 Header: res.Header,
3314 })
3315 }
3316 if err != nil {
3317 return nil, err
3318 }
3319 defer googleapi.CloseBody(res)
3320 if err := googleapi.CheckResponse(res); err != nil {
3321 return nil, gensupport.WrapError(err)
3322 }
3323 ret := &UserInvitation{
3324 ServerResponse: googleapi.ServerResponse{
3325 Header: res.Header,
3326 HTTPStatusCode: res.StatusCode,
3327 },
3328 }
3329 target := &ret
3330 if err := gensupport.DecodeResponse(target, res); err != nil {
3331 return nil, err
3332 }
3333 return ret, nil
3334 }
3335
3336 type CustomersUserinvitationsIsInvitableUserCall struct {
3337 s *Service
3338 name string
3339 urlParams_ gensupport.URLParams
3340 ifNoneMatch_ string
3341 ctx_ context.Context
3342 header_ http.Header
3343 }
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355 func (r *CustomersUserinvitationsService) IsInvitableUser(name string) *CustomersUserinvitationsIsInvitableUserCall {
3356 c := &CustomersUserinvitationsIsInvitableUserCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3357 c.name = name
3358 return c
3359 }
3360
3361
3362
3363
3364 func (c *CustomersUserinvitationsIsInvitableUserCall) Fields(s ...googleapi.Field) *CustomersUserinvitationsIsInvitableUserCall {
3365 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3366 return c
3367 }
3368
3369
3370
3371
3372 func (c *CustomersUserinvitationsIsInvitableUserCall) IfNoneMatch(entityTag string) *CustomersUserinvitationsIsInvitableUserCall {
3373 c.ifNoneMatch_ = entityTag
3374 return c
3375 }
3376
3377
3378 func (c *CustomersUserinvitationsIsInvitableUserCall) Context(ctx context.Context) *CustomersUserinvitationsIsInvitableUserCall {
3379 c.ctx_ = ctx
3380 return c
3381 }
3382
3383
3384
3385 func (c *CustomersUserinvitationsIsInvitableUserCall) Header() http.Header {
3386 if c.header_ == nil {
3387 c.header_ = make(http.Header)
3388 }
3389 return c.header_
3390 }
3391
3392 func (c *CustomersUserinvitationsIsInvitableUserCall) doRequest(alt string) (*http.Response, error) {
3393 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3394 if c.ifNoneMatch_ != "" {
3395 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3396 }
3397 var body io.Reader = nil
3398 c.urlParams_.Set("alt", alt)
3399 c.urlParams_.Set("prettyPrint", "false")
3400 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:isInvitableUser")
3401 urls += "?" + c.urlParams_.Encode()
3402 req, err := http.NewRequest("GET", urls, body)
3403 if err != nil {
3404 return nil, err
3405 }
3406 req.Header = reqHeaders
3407 googleapi.Expand(req.URL, map[string]string{
3408 "name": c.name,
3409 })
3410 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3411 }
3412
3413
3414
3415
3416
3417
3418
3419 func (c *CustomersUserinvitationsIsInvitableUserCall) Do(opts ...googleapi.CallOption) (*IsInvitableUserResponse, error) {
3420 gensupport.SetOptions(c.urlParams_, opts...)
3421 res, err := c.doRequest("json")
3422 if res != nil && res.StatusCode == http.StatusNotModified {
3423 if res.Body != nil {
3424 res.Body.Close()
3425 }
3426 return nil, gensupport.WrapError(&googleapi.Error{
3427 Code: res.StatusCode,
3428 Header: res.Header,
3429 })
3430 }
3431 if err != nil {
3432 return nil, err
3433 }
3434 defer googleapi.CloseBody(res)
3435 if err := googleapi.CheckResponse(res); err != nil {
3436 return nil, gensupport.WrapError(err)
3437 }
3438 ret := &IsInvitableUserResponse{
3439 ServerResponse: googleapi.ServerResponse{
3440 Header: res.Header,
3441 HTTPStatusCode: res.StatusCode,
3442 },
3443 }
3444 target := &ret
3445 if err := gensupport.DecodeResponse(target, res); err != nil {
3446 return nil, err
3447 }
3448 return ret, nil
3449 }
3450
3451 type CustomersUserinvitationsListCall struct {
3452 s *Service
3453 parent string
3454 urlParams_ gensupport.URLParams
3455 ifNoneMatch_ string
3456 ctx_ context.Context
3457 header_ http.Header
3458 }
3459
3460
3461
3462
3463
3464
3465
3466
3467 func (r *CustomersUserinvitationsService) List(parent string) *CustomersUserinvitationsListCall {
3468 c := &CustomersUserinvitationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3469 c.parent = parent
3470 return c
3471 }
3472
3473
3474
3475
3476 func (c *CustomersUserinvitationsListCall) Filter(filter string) *CustomersUserinvitationsListCall {
3477 c.urlParams_.Set("filter", filter)
3478 return c
3479 }
3480
3481
3482
3483
3484
3485
3486
3487 func (c *CustomersUserinvitationsListCall) OrderBy(orderBy string) *CustomersUserinvitationsListCall {
3488 c.urlParams_.Set("orderBy", orderBy)
3489 return c
3490 }
3491
3492
3493
3494
3495
3496 func (c *CustomersUserinvitationsListCall) PageSize(pageSize int64) *CustomersUserinvitationsListCall {
3497 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3498 return c
3499 }
3500
3501
3502
3503
3504
3505 func (c *CustomersUserinvitationsListCall) PageToken(pageToken string) *CustomersUserinvitationsListCall {
3506 c.urlParams_.Set("pageToken", pageToken)
3507 return c
3508 }
3509
3510
3511
3512
3513 func (c *CustomersUserinvitationsListCall) Fields(s ...googleapi.Field) *CustomersUserinvitationsListCall {
3514 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3515 return c
3516 }
3517
3518
3519
3520
3521 func (c *CustomersUserinvitationsListCall) IfNoneMatch(entityTag string) *CustomersUserinvitationsListCall {
3522 c.ifNoneMatch_ = entityTag
3523 return c
3524 }
3525
3526
3527 func (c *CustomersUserinvitationsListCall) Context(ctx context.Context) *CustomersUserinvitationsListCall {
3528 c.ctx_ = ctx
3529 return c
3530 }
3531
3532
3533
3534 func (c *CustomersUserinvitationsListCall) Header() http.Header {
3535 if c.header_ == nil {
3536 c.header_ = make(http.Header)
3537 }
3538 return c.header_
3539 }
3540
3541 func (c *CustomersUserinvitationsListCall) doRequest(alt string) (*http.Response, error) {
3542 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3543 if c.ifNoneMatch_ != "" {
3544 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3545 }
3546 var body io.Reader = nil
3547 c.urlParams_.Set("alt", alt)
3548 c.urlParams_.Set("prettyPrint", "false")
3549 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userinvitations")
3550 urls += "?" + c.urlParams_.Encode()
3551 req, err := http.NewRequest("GET", urls, body)
3552 if err != nil {
3553 return nil, err
3554 }
3555 req.Header = reqHeaders
3556 googleapi.Expand(req.URL, map[string]string{
3557 "parent": c.parent,
3558 })
3559 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3560 }
3561
3562
3563
3564
3565
3566
3567
3568 func (c *CustomersUserinvitationsListCall) Do(opts ...googleapi.CallOption) (*ListUserInvitationsResponse, error) {
3569 gensupport.SetOptions(c.urlParams_, opts...)
3570 res, err := c.doRequest("json")
3571 if res != nil && res.StatusCode == http.StatusNotModified {
3572 if res.Body != nil {
3573 res.Body.Close()
3574 }
3575 return nil, gensupport.WrapError(&googleapi.Error{
3576 Code: res.StatusCode,
3577 Header: res.Header,
3578 })
3579 }
3580 if err != nil {
3581 return nil, err
3582 }
3583 defer googleapi.CloseBody(res)
3584 if err := googleapi.CheckResponse(res); err != nil {
3585 return nil, gensupport.WrapError(err)
3586 }
3587 ret := &ListUserInvitationsResponse{
3588 ServerResponse: googleapi.ServerResponse{
3589 Header: res.Header,
3590 HTTPStatusCode: res.StatusCode,
3591 },
3592 }
3593 target := &ret
3594 if err := gensupport.DecodeResponse(target, res); err != nil {
3595 return nil, err
3596 }
3597 return ret, nil
3598 }
3599
3600
3601
3602
3603 func (c *CustomersUserinvitationsListCall) Pages(ctx context.Context, f func(*ListUserInvitationsResponse) error) error {
3604 c.ctx_ = ctx
3605 defer c.PageToken(c.urlParams_.Get("pageToken"))
3606 for {
3607 x, err := c.Do()
3608 if err != nil {
3609 return err
3610 }
3611 if err := f(x); err != nil {
3612 return err
3613 }
3614 if x.NextPageToken == "" {
3615 return nil
3616 }
3617 c.PageToken(x.NextPageToken)
3618 }
3619 }
3620
3621 type CustomersUserinvitationsSendCall struct {
3622 s *Service
3623 name string
3624 senduserinvitationrequest *SendUserInvitationRequest
3625 urlParams_ gensupport.URLParams
3626 ctx_ context.Context
3627 header_ http.Header
3628 }
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639 func (r *CustomersUserinvitationsService) Send(name string, senduserinvitationrequest *SendUserInvitationRequest) *CustomersUserinvitationsSendCall {
3640 c := &CustomersUserinvitationsSendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3641 c.name = name
3642 c.senduserinvitationrequest = senduserinvitationrequest
3643 return c
3644 }
3645
3646
3647
3648
3649 func (c *CustomersUserinvitationsSendCall) Fields(s ...googleapi.Field) *CustomersUserinvitationsSendCall {
3650 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3651 return c
3652 }
3653
3654
3655 func (c *CustomersUserinvitationsSendCall) Context(ctx context.Context) *CustomersUserinvitationsSendCall {
3656 c.ctx_ = ctx
3657 return c
3658 }
3659
3660
3661
3662 func (c *CustomersUserinvitationsSendCall) Header() http.Header {
3663 if c.header_ == nil {
3664 c.header_ = make(http.Header)
3665 }
3666 return c.header_
3667 }
3668
3669 func (c *CustomersUserinvitationsSendCall) doRequest(alt string) (*http.Response, error) {
3670 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3671 var body io.Reader = nil
3672 body, err := googleapi.WithoutDataWrapper.JSONReader(c.senduserinvitationrequest)
3673 if err != nil {
3674 return nil, err
3675 }
3676 c.urlParams_.Set("alt", alt)
3677 c.urlParams_.Set("prettyPrint", "false")
3678 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:send")
3679 urls += "?" + c.urlParams_.Encode()
3680 req, err := http.NewRequest("POST", urls, body)
3681 if err != nil {
3682 return nil, err
3683 }
3684 req.Header = reqHeaders
3685 googleapi.Expand(req.URL, map[string]string{
3686 "name": c.name,
3687 })
3688 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3689 }
3690
3691
3692
3693
3694
3695
3696 func (c *CustomersUserinvitationsSendCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
3697 gensupport.SetOptions(c.urlParams_, opts...)
3698 res, err := c.doRequest("json")
3699 if res != nil && res.StatusCode == http.StatusNotModified {
3700 if res.Body != nil {
3701 res.Body.Close()
3702 }
3703 return nil, gensupport.WrapError(&googleapi.Error{
3704 Code: res.StatusCode,
3705 Header: res.Header,
3706 })
3707 }
3708 if err != nil {
3709 return nil, err
3710 }
3711 defer googleapi.CloseBody(res)
3712 if err := googleapi.CheckResponse(res); err != nil {
3713 return nil, gensupport.WrapError(err)
3714 }
3715 ret := &Operation{
3716 ServerResponse: googleapi.ServerResponse{
3717 Header: res.Header,
3718 HTTPStatusCode: res.StatusCode,
3719 },
3720 }
3721 target := &ret
3722 if err := gensupport.DecodeResponse(target, res); err != nil {
3723 return nil, err
3724 }
3725 return ret, nil
3726 }
3727
3728 type DevicesCancelWipeCall struct {
3729 s *Service
3730 name string
3731 googleappscloudidentitydevicesv1cancelwipedevicerequest *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest
3732 urlParams_ gensupport.URLParams
3733 ctx_ context.Context
3734 header_ http.Header
3735 }
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 func (r *DevicesService) CancelWipe(name string, googleappscloudidentitydevicesv1cancelwipedevicerequest *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest) *DevicesCancelWipeCall {
3749 c := &DevicesCancelWipeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3750 c.name = name
3751 c.googleappscloudidentitydevicesv1cancelwipedevicerequest = googleappscloudidentitydevicesv1cancelwipedevicerequest
3752 return c
3753 }
3754
3755
3756
3757
3758 func (c *DevicesCancelWipeCall) Fields(s ...googleapi.Field) *DevicesCancelWipeCall {
3759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3760 return c
3761 }
3762
3763
3764 func (c *DevicesCancelWipeCall) Context(ctx context.Context) *DevicesCancelWipeCall {
3765 c.ctx_ = ctx
3766 return c
3767 }
3768
3769
3770
3771 func (c *DevicesCancelWipeCall) Header() http.Header {
3772 if c.header_ == nil {
3773 c.header_ = make(http.Header)
3774 }
3775 return c.header_
3776 }
3777
3778 func (c *DevicesCancelWipeCall) doRequest(alt string) (*http.Response, error) {
3779 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3780 var body io.Reader = nil
3781 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleappscloudidentitydevicesv1cancelwipedevicerequest)
3782 if err != nil {
3783 return nil, err
3784 }
3785 c.urlParams_.Set("alt", alt)
3786 c.urlParams_.Set("prettyPrint", "false")
3787 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancelWipe")
3788 urls += "?" + c.urlParams_.Encode()
3789 req, err := http.NewRequest("POST", urls, body)
3790 if err != nil {
3791 return nil, err
3792 }
3793 req.Header = reqHeaders
3794 googleapi.Expand(req.URL, map[string]string{
3795 "name": c.name,
3796 })
3797 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3798 }
3799
3800
3801
3802
3803
3804
3805 func (c *DevicesCancelWipeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
3806 gensupport.SetOptions(c.urlParams_, opts...)
3807 res, err := c.doRequest("json")
3808 if res != nil && res.StatusCode == http.StatusNotModified {
3809 if res.Body != nil {
3810 res.Body.Close()
3811 }
3812 return nil, gensupport.WrapError(&googleapi.Error{
3813 Code: res.StatusCode,
3814 Header: res.Header,
3815 })
3816 }
3817 if err != nil {
3818 return nil, err
3819 }
3820 defer googleapi.CloseBody(res)
3821 if err := googleapi.CheckResponse(res); err != nil {
3822 return nil, gensupport.WrapError(err)
3823 }
3824 ret := &Operation{
3825 ServerResponse: googleapi.ServerResponse{
3826 Header: res.Header,
3827 HTTPStatusCode: res.StatusCode,
3828 },
3829 }
3830 target := &ret
3831 if err := gensupport.DecodeResponse(target, res); err != nil {
3832 return nil, err
3833 }
3834 return ret, nil
3835 }
3836
3837 type DevicesCreateCall struct {
3838 s *Service
3839 googleappscloudidentitydevicesv1device *GoogleAppsCloudidentityDevicesV1Device
3840 urlParams_ gensupport.URLParams
3841 ctx_ context.Context
3842 header_ http.Header
3843 }
3844
3845
3846
3847
3848
3849 func (r *DevicesService) Create(googleappscloudidentitydevicesv1device *GoogleAppsCloudidentityDevicesV1Device) *DevicesCreateCall {
3850 c := &DevicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3851 c.googleappscloudidentitydevicesv1device = googleappscloudidentitydevicesv1device
3852 return c
3853 }
3854
3855
3856
3857
3858
3859
3860
3861 func (c *DevicesCreateCall) Customer(customer string) *DevicesCreateCall {
3862 c.urlParams_.Set("customer", customer)
3863 return c
3864 }
3865
3866
3867
3868
3869 func (c *DevicesCreateCall) Fields(s ...googleapi.Field) *DevicesCreateCall {
3870 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3871 return c
3872 }
3873
3874
3875 func (c *DevicesCreateCall) Context(ctx context.Context) *DevicesCreateCall {
3876 c.ctx_ = ctx
3877 return c
3878 }
3879
3880
3881
3882 func (c *DevicesCreateCall) Header() http.Header {
3883 if c.header_ == nil {
3884 c.header_ = make(http.Header)
3885 }
3886 return c.header_
3887 }
3888
3889 func (c *DevicesCreateCall) doRequest(alt string) (*http.Response, error) {
3890 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3891 var body io.Reader = nil
3892 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleappscloudidentitydevicesv1device)
3893 if err != nil {
3894 return nil, err
3895 }
3896 c.urlParams_.Set("alt", alt)
3897 c.urlParams_.Set("prettyPrint", "false")
3898 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/devices")
3899 urls += "?" + c.urlParams_.Encode()
3900 req, err := http.NewRequest("POST", urls, body)
3901 if err != nil {
3902 return nil, err
3903 }
3904 req.Header = reqHeaders
3905 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3906 }
3907
3908
3909
3910
3911
3912
3913 func (c *DevicesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
3914 gensupport.SetOptions(c.urlParams_, opts...)
3915 res, err := c.doRequest("json")
3916 if res != nil && res.StatusCode == http.StatusNotModified {
3917 if res.Body != nil {
3918 res.Body.Close()
3919 }
3920 return nil, gensupport.WrapError(&googleapi.Error{
3921 Code: res.StatusCode,
3922 Header: res.Header,
3923 })
3924 }
3925 if err != nil {
3926 return nil, err
3927 }
3928 defer googleapi.CloseBody(res)
3929 if err := googleapi.CheckResponse(res); err != nil {
3930 return nil, gensupport.WrapError(err)
3931 }
3932 ret := &Operation{
3933 ServerResponse: googleapi.ServerResponse{
3934 Header: res.Header,
3935 HTTPStatusCode: res.StatusCode,
3936 },
3937 }
3938 target := &ret
3939 if err := gensupport.DecodeResponse(target, res); err != nil {
3940 return nil, err
3941 }
3942 return ret, nil
3943 }
3944
3945 type DevicesDeleteCall struct {
3946 s *Service
3947 name string
3948 urlParams_ gensupport.URLParams
3949 ctx_ context.Context
3950 header_ http.Header
3951 }
3952
3953
3954
3955
3956
3957
3958 func (r *DevicesService) Delete(name string) *DevicesDeleteCall {
3959 c := &DevicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3960 c.name = name
3961 return c
3962 }
3963
3964
3965
3966
3967
3968
3969
3970 func (c *DevicesDeleteCall) Customer(customer string) *DevicesDeleteCall {
3971 c.urlParams_.Set("customer", customer)
3972 return c
3973 }
3974
3975
3976
3977
3978 func (c *DevicesDeleteCall) Fields(s ...googleapi.Field) *DevicesDeleteCall {
3979 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3980 return c
3981 }
3982
3983
3984 func (c *DevicesDeleteCall) Context(ctx context.Context) *DevicesDeleteCall {
3985 c.ctx_ = ctx
3986 return c
3987 }
3988
3989
3990
3991 func (c *DevicesDeleteCall) Header() http.Header {
3992 if c.header_ == nil {
3993 c.header_ = make(http.Header)
3994 }
3995 return c.header_
3996 }
3997
3998 func (c *DevicesDeleteCall) doRequest(alt string) (*http.Response, error) {
3999 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4000 var body io.Reader = nil
4001 c.urlParams_.Set("alt", alt)
4002 c.urlParams_.Set("prettyPrint", "false")
4003 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4004 urls += "?" + c.urlParams_.Encode()
4005 req, err := http.NewRequest("DELETE", urls, body)
4006 if err != nil {
4007 return nil, err
4008 }
4009 req.Header = reqHeaders
4010 googleapi.Expand(req.URL, map[string]string{
4011 "name": c.name,
4012 })
4013 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4014 }
4015
4016
4017
4018
4019
4020
4021 func (c *DevicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4022 gensupport.SetOptions(c.urlParams_, opts...)
4023 res, err := c.doRequest("json")
4024 if res != nil && res.StatusCode == http.StatusNotModified {
4025 if res.Body != nil {
4026 res.Body.Close()
4027 }
4028 return nil, gensupport.WrapError(&googleapi.Error{
4029 Code: res.StatusCode,
4030 Header: res.Header,
4031 })
4032 }
4033 if err != nil {
4034 return nil, err
4035 }
4036 defer googleapi.CloseBody(res)
4037 if err := googleapi.CheckResponse(res); err != nil {
4038 return nil, gensupport.WrapError(err)
4039 }
4040 ret := &Operation{
4041 ServerResponse: googleapi.ServerResponse{
4042 Header: res.Header,
4043 HTTPStatusCode: res.StatusCode,
4044 },
4045 }
4046 target := &ret
4047 if err := gensupport.DecodeResponse(target, res); err != nil {
4048 return nil, err
4049 }
4050 return ret, nil
4051 }
4052
4053 type DevicesGetCall struct {
4054 s *Service
4055 name string
4056 urlParams_ gensupport.URLParams
4057 ifNoneMatch_ string
4058 ctx_ context.Context
4059 header_ http.Header
4060 }
4061
4062
4063
4064
4065
4066
4067 func (r *DevicesService) Get(name string) *DevicesGetCall {
4068 c := &DevicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4069 c.name = name
4070 return c
4071 }
4072
4073
4074
4075
4076
4077
4078
4079
4080 func (c *DevicesGetCall) Customer(customer string) *DevicesGetCall {
4081 c.urlParams_.Set("customer", customer)
4082 return c
4083 }
4084
4085
4086
4087
4088 func (c *DevicesGetCall) Fields(s ...googleapi.Field) *DevicesGetCall {
4089 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4090 return c
4091 }
4092
4093
4094
4095
4096 func (c *DevicesGetCall) IfNoneMatch(entityTag string) *DevicesGetCall {
4097 c.ifNoneMatch_ = entityTag
4098 return c
4099 }
4100
4101
4102 func (c *DevicesGetCall) Context(ctx context.Context) *DevicesGetCall {
4103 c.ctx_ = ctx
4104 return c
4105 }
4106
4107
4108
4109 func (c *DevicesGetCall) Header() http.Header {
4110 if c.header_ == nil {
4111 c.header_ = make(http.Header)
4112 }
4113 return c.header_
4114 }
4115
4116 func (c *DevicesGetCall) doRequest(alt string) (*http.Response, error) {
4117 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4118 if c.ifNoneMatch_ != "" {
4119 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4120 }
4121 var body io.Reader = nil
4122 c.urlParams_.Set("alt", alt)
4123 c.urlParams_.Set("prettyPrint", "false")
4124 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4125 urls += "?" + c.urlParams_.Encode()
4126 req, err := http.NewRequest("GET", urls, body)
4127 if err != nil {
4128 return nil, err
4129 }
4130 req.Header = reqHeaders
4131 googleapi.Expand(req.URL, map[string]string{
4132 "name": c.name,
4133 })
4134 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4135 }
4136
4137
4138
4139
4140
4141
4142
4143 func (c *DevicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudidentityDevicesV1Device, error) {
4144 gensupport.SetOptions(c.urlParams_, opts...)
4145 res, err := c.doRequest("json")
4146 if res != nil && res.StatusCode == http.StatusNotModified {
4147 if res.Body != nil {
4148 res.Body.Close()
4149 }
4150 return nil, gensupport.WrapError(&googleapi.Error{
4151 Code: res.StatusCode,
4152 Header: res.Header,
4153 })
4154 }
4155 if err != nil {
4156 return nil, err
4157 }
4158 defer googleapi.CloseBody(res)
4159 if err := googleapi.CheckResponse(res); err != nil {
4160 return nil, gensupport.WrapError(err)
4161 }
4162 ret := &GoogleAppsCloudidentityDevicesV1Device{
4163 ServerResponse: googleapi.ServerResponse{
4164 Header: res.Header,
4165 HTTPStatusCode: res.StatusCode,
4166 },
4167 }
4168 target := &ret
4169 if err := gensupport.DecodeResponse(target, res); err != nil {
4170 return nil, err
4171 }
4172 return ret, nil
4173 }
4174
4175 type DevicesListCall struct {
4176 s *Service
4177 urlParams_ gensupport.URLParams
4178 ifNoneMatch_ string
4179 ctx_ context.Context
4180 header_ http.Header
4181 }
4182
4183
4184 func (r *DevicesService) List() *DevicesListCall {
4185 c := &DevicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4186 return c
4187 }
4188
4189
4190
4191
4192
4193
4194
4195
4196 func (c *DevicesListCall) Customer(customer string) *DevicesListCall {
4197 c.urlParams_.Set("customer", customer)
4198 return c
4199 }
4200
4201
4202
4203
4204
4205
4206 func (c *DevicesListCall) Filter(filter string) *DevicesListCall {
4207 c.urlParams_.Set("filter", filter)
4208 return c
4209 }
4210
4211
4212
4213
4214
4215
4216
4217 func (c *DevicesListCall) OrderBy(orderBy string) *DevicesListCall {
4218 c.urlParams_.Set("orderBy", orderBy)
4219 return c
4220 }
4221
4222
4223
4224
4225 func (c *DevicesListCall) PageSize(pageSize int64) *DevicesListCall {
4226 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4227 return c
4228 }
4229
4230
4231
4232
4233
4234 func (c *DevicesListCall) PageToken(pageToken string) *DevicesListCall {
4235 c.urlParams_.Set("pageToken", pageToken)
4236 return c
4237 }
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255 func (c *DevicesListCall) View(view string) *DevicesListCall {
4256 c.urlParams_.Set("view", view)
4257 return c
4258 }
4259
4260
4261
4262
4263 func (c *DevicesListCall) Fields(s ...googleapi.Field) *DevicesListCall {
4264 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4265 return c
4266 }
4267
4268
4269
4270
4271 func (c *DevicesListCall) IfNoneMatch(entityTag string) *DevicesListCall {
4272 c.ifNoneMatch_ = entityTag
4273 return c
4274 }
4275
4276
4277 func (c *DevicesListCall) Context(ctx context.Context) *DevicesListCall {
4278 c.ctx_ = ctx
4279 return c
4280 }
4281
4282
4283
4284 func (c *DevicesListCall) Header() http.Header {
4285 if c.header_ == nil {
4286 c.header_ = make(http.Header)
4287 }
4288 return c.header_
4289 }
4290
4291 func (c *DevicesListCall) doRequest(alt string) (*http.Response, error) {
4292 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4293 if c.ifNoneMatch_ != "" {
4294 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4295 }
4296 var body io.Reader = nil
4297 c.urlParams_.Set("alt", alt)
4298 c.urlParams_.Set("prettyPrint", "false")
4299 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/devices")
4300 urls += "?" + c.urlParams_.Encode()
4301 req, err := http.NewRequest("GET", urls, body)
4302 if err != nil {
4303 return nil, err
4304 }
4305 req.Header = reqHeaders
4306 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4307 }
4308
4309
4310
4311
4312
4313
4314
4315 func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudidentityDevicesV1ListDevicesResponse, error) {
4316 gensupport.SetOptions(c.urlParams_, opts...)
4317 res, err := c.doRequest("json")
4318 if res != nil && res.StatusCode == http.StatusNotModified {
4319 if res.Body != nil {
4320 res.Body.Close()
4321 }
4322 return nil, gensupport.WrapError(&googleapi.Error{
4323 Code: res.StatusCode,
4324 Header: res.Header,
4325 })
4326 }
4327 if err != nil {
4328 return nil, err
4329 }
4330 defer googleapi.CloseBody(res)
4331 if err := googleapi.CheckResponse(res); err != nil {
4332 return nil, gensupport.WrapError(err)
4333 }
4334 ret := &GoogleAppsCloudidentityDevicesV1ListDevicesResponse{
4335 ServerResponse: googleapi.ServerResponse{
4336 Header: res.Header,
4337 HTTPStatusCode: res.StatusCode,
4338 },
4339 }
4340 target := &ret
4341 if err := gensupport.DecodeResponse(target, res); err != nil {
4342 return nil, err
4343 }
4344 return ret, nil
4345 }
4346
4347
4348
4349
4350 func (c *DevicesListCall) Pages(ctx context.Context, f func(*GoogleAppsCloudidentityDevicesV1ListDevicesResponse) error) error {
4351 c.ctx_ = ctx
4352 defer c.PageToken(c.urlParams_.Get("pageToken"))
4353 for {
4354 x, err := c.Do()
4355 if err != nil {
4356 return err
4357 }
4358 if err := f(x); err != nil {
4359 return err
4360 }
4361 if x.NextPageToken == "" {
4362 return nil
4363 }
4364 c.PageToken(x.NextPageToken)
4365 }
4366 }
4367
4368 type DevicesWipeCall struct {
4369 s *Service
4370 name string
4371 googleappscloudidentitydevicesv1wipedevicerequest *GoogleAppsCloudidentityDevicesV1WipeDeviceRequest
4372 urlParams_ gensupport.URLParams
4373 ctx_ context.Context
4374 header_ http.Header
4375 }
4376
4377
4378
4379
4380
4381
4382
4383 func (r *DevicesService) Wipe(name string, googleappscloudidentitydevicesv1wipedevicerequest *GoogleAppsCloudidentityDevicesV1WipeDeviceRequest) *DevicesWipeCall {
4384 c := &DevicesWipeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4385 c.name = name
4386 c.googleappscloudidentitydevicesv1wipedevicerequest = googleappscloudidentitydevicesv1wipedevicerequest
4387 return c
4388 }
4389
4390
4391
4392
4393 func (c *DevicesWipeCall) Fields(s ...googleapi.Field) *DevicesWipeCall {
4394 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4395 return c
4396 }
4397
4398
4399 func (c *DevicesWipeCall) Context(ctx context.Context) *DevicesWipeCall {
4400 c.ctx_ = ctx
4401 return c
4402 }
4403
4404
4405
4406 func (c *DevicesWipeCall) Header() http.Header {
4407 if c.header_ == nil {
4408 c.header_ = make(http.Header)
4409 }
4410 return c.header_
4411 }
4412
4413 func (c *DevicesWipeCall) doRequest(alt string) (*http.Response, error) {
4414 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4415 var body io.Reader = nil
4416 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleappscloudidentitydevicesv1wipedevicerequest)
4417 if err != nil {
4418 return nil, err
4419 }
4420 c.urlParams_.Set("alt", alt)
4421 c.urlParams_.Set("prettyPrint", "false")
4422 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wipe")
4423 urls += "?" + c.urlParams_.Encode()
4424 req, err := http.NewRequest("POST", urls, body)
4425 if err != nil {
4426 return nil, err
4427 }
4428 req.Header = reqHeaders
4429 googleapi.Expand(req.URL, map[string]string{
4430 "name": c.name,
4431 })
4432 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4433 }
4434
4435
4436
4437
4438
4439
4440 func (c *DevicesWipeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4441 gensupport.SetOptions(c.urlParams_, opts...)
4442 res, err := c.doRequest("json")
4443 if res != nil && res.StatusCode == http.StatusNotModified {
4444 if res.Body != nil {
4445 res.Body.Close()
4446 }
4447 return nil, gensupport.WrapError(&googleapi.Error{
4448 Code: res.StatusCode,
4449 Header: res.Header,
4450 })
4451 }
4452 if err != nil {
4453 return nil, err
4454 }
4455 defer googleapi.CloseBody(res)
4456 if err := googleapi.CheckResponse(res); err != nil {
4457 return nil, gensupport.WrapError(err)
4458 }
4459 ret := &Operation{
4460 ServerResponse: googleapi.ServerResponse{
4461 Header: res.Header,
4462 HTTPStatusCode: res.StatusCode,
4463 },
4464 }
4465 target := &ret
4466 if err := gensupport.DecodeResponse(target, res); err != nil {
4467 return nil, err
4468 }
4469 return ret, nil
4470 }
4471
4472 type DevicesDeviceUsersApproveCall struct {
4473 s *Service
4474 name string
4475 googleappscloudidentitydevicesv1approvedeviceuserrequest *GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest
4476 urlParams_ gensupport.URLParams
4477 ctx_ context.Context
4478 header_ http.Header
4479 }
4480
4481
4482
4483
4484
4485
4486
4487 func (r *DevicesDeviceUsersService) Approve(name string, googleappscloudidentitydevicesv1approvedeviceuserrequest *GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest) *DevicesDeviceUsersApproveCall {
4488 c := &DevicesDeviceUsersApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4489 c.name = name
4490 c.googleappscloudidentitydevicesv1approvedeviceuserrequest = googleappscloudidentitydevicesv1approvedeviceuserrequest
4491 return c
4492 }
4493
4494
4495
4496
4497 func (c *DevicesDeviceUsersApproveCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersApproveCall {
4498 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4499 return c
4500 }
4501
4502
4503 func (c *DevicesDeviceUsersApproveCall) Context(ctx context.Context) *DevicesDeviceUsersApproveCall {
4504 c.ctx_ = ctx
4505 return c
4506 }
4507
4508
4509
4510 func (c *DevicesDeviceUsersApproveCall) Header() http.Header {
4511 if c.header_ == nil {
4512 c.header_ = make(http.Header)
4513 }
4514 return c.header_
4515 }
4516
4517 func (c *DevicesDeviceUsersApproveCall) doRequest(alt string) (*http.Response, error) {
4518 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4519 var body io.Reader = nil
4520 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleappscloudidentitydevicesv1approvedeviceuserrequest)
4521 if err != nil {
4522 return nil, err
4523 }
4524 c.urlParams_.Set("alt", alt)
4525 c.urlParams_.Set("prettyPrint", "false")
4526 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:approve")
4527 urls += "?" + c.urlParams_.Encode()
4528 req, err := http.NewRequest("POST", urls, body)
4529 if err != nil {
4530 return nil, err
4531 }
4532 req.Header = reqHeaders
4533 googleapi.Expand(req.URL, map[string]string{
4534 "name": c.name,
4535 })
4536 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4537 }
4538
4539
4540
4541
4542
4543
4544 func (c *DevicesDeviceUsersApproveCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4545 gensupport.SetOptions(c.urlParams_, opts...)
4546 res, err := c.doRequest("json")
4547 if res != nil && res.StatusCode == http.StatusNotModified {
4548 if res.Body != nil {
4549 res.Body.Close()
4550 }
4551 return nil, gensupport.WrapError(&googleapi.Error{
4552 Code: res.StatusCode,
4553 Header: res.Header,
4554 })
4555 }
4556 if err != nil {
4557 return nil, err
4558 }
4559 defer googleapi.CloseBody(res)
4560 if err := googleapi.CheckResponse(res); err != nil {
4561 return nil, gensupport.WrapError(err)
4562 }
4563 ret := &Operation{
4564 ServerResponse: googleapi.ServerResponse{
4565 Header: res.Header,
4566 HTTPStatusCode: res.StatusCode,
4567 },
4568 }
4569 target := &ret
4570 if err := gensupport.DecodeResponse(target, res); err != nil {
4571 return nil, err
4572 }
4573 return ret, nil
4574 }
4575
4576 type DevicesDeviceUsersBlockCall struct {
4577 s *Service
4578 name string
4579 googleappscloudidentitydevicesv1blockdeviceuserrequest *GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest
4580 urlParams_ gensupport.URLParams
4581 ctx_ context.Context
4582 header_ http.Header
4583 }
4584
4585
4586
4587
4588
4589
4590
4591 func (r *DevicesDeviceUsersService) Block(name string, googleappscloudidentitydevicesv1blockdeviceuserrequest *GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest) *DevicesDeviceUsersBlockCall {
4592 c := &DevicesDeviceUsersBlockCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4593 c.name = name
4594 c.googleappscloudidentitydevicesv1blockdeviceuserrequest = googleappscloudidentitydevicesv1blockdeviceuserrequest
4595 return c
4596 }
4597
4598
4599
4600
4601 func (c *DevicesDeviceUsersBlockCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersBlockCall {
4602 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4603 return c
4604 }
4605
4606
4607 func (c *DevicesDeviceUsersBlockCall) Context(ctx context.Context) *DevicesDeviceUsersBlockCall {
4608 c.ctx_ = ctx
4609 return c
4610 }
4611
4612
4613
4614 func (c *DevicesDeviceUsersBlockCall) Header() http.Header {
4615 if c.header_ == nil {
4616 c.header_ = make(http.Header)
4617 }
4618 return c.header_
4619 }
4620
4621 func (c *DevicesDeviceUsersBlockCall) doRequest(alt string) (*http.Response, error) {
4622 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4623 var body io.Reader = nil
4624 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleappscloudidentitydevicesv1blockdeviceuserrequest)
4625 if err != nil {
4626 return nil, err
4627 }
4628 c.urlParams_.Set("alt", alt)
4629 c.urlParams_.Set("prettyPrint", "false")
4630 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:block")
4631 urls += "?" + c.urlParams_.Encode()
4632 req, err := http.NewRequest("POST", urls, body)
4633 if err != nil {
4634 return nil, err
4635 }
4636 req.Header = reqHeaders
4637 googleapi.Expand(req.URL, map[string]string{
4638 "name": c.name,
4639 })
4640 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4641 }
4642
4643
4644
4645
4646
4647
4648 func (c *DevicesDeviceUsersBlockCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4649 gensupport.SetOptions(c.urlParams_, opts...)
4650 res, err := c.doRequest("json")
4651 if res != nil && res.StatusCode == http.StatusNotModified {
4652 if res.Body != nil {
4653 res.Body.Close()
4654 }
4655 return nil, gensupport.WrapError(&googleapi.Error{
4656 Code: res.StatusCode,
4657 Header: res.Header,
4658 })
4659 }
4660 if err != nil {
4661 return nil, err
4662 }
4663 defer googleapi.CloseBody(res)
4664 if err := googleapi.CheckResponse(res); err != nil {
4665 return nil, gensupport.WrapError(err)
4666 }
4667 ret := &Operation{
4668 ServerResponse: googleapi.ServerResponse{
4669 Header: res.Header,
4670 HTTPStatusCode: res.StatusCode,
4671 },
4672 }
4673 target := &ret
4674 if err := gensupport.DecodeResponse(target, res); err != nil {
4675 return nil, err
4676 }
4677 return ret, nil
4678 }
4679
4680 type DevicesDeviceUsersCancelWipeCall struct {
4681 s *Service
4682 name string
4683 googleappscloudidentitydevicesv1cancelwipedeviceuserrequest *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest
4684 urlParams_ gensupport.URLParams
4685 ctx_ context.Context
4686 header_ http.Header
4687 }
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697 func (r *DevicesDeviceUsersService) CancelWipe(name string, googleappscloudidentitydevicesv1cancelwipedeviceuserrequest *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest) *DevicesDeviceUsersCancelWipeCall {
4698 c := &DevicesDeviceUsersCancelWipeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4699 c.name = name
4700 c.googleappscloudidentitydevicesv1cancelwipedeviceuserrequest = googleappscloudidentitydevicesv1cancelwipedeviceuserrequest
4701 return c
4702 }
4703
4704
4705
4706
4707 func (c *DevicesDeviceUsersCancelWipeCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersCancelWipeCall {
4708 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4709 return c
4710 }
4711
4712
4713 func (c *DevicesDeviceUsersCancelWipeCall) Context(ctx context.Context) *DevicesDeviceUsersCancelWipeCall {
4714 c.ctx_ = ctx
4715 return c
4716 }
4717
4718
4719
4720 func (c *DevicesDeviceUsersCancelWipeCall) Header() http.Header {
4721 if c.header_ == nil {
4722 c.header_ = make(http.Header)
4723 }
4724 return c.header_
4725 }
4726
4727 func (c *DevicesDeviceUsersCancelWipeCall) doRequest(alt string) (*http.Response, error) {
4728 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4729 var body io.Reader = nil
4730 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleappscloudidentitydevicesv1cancelwipedeviceuserrequest)
4731 if err != nil {
4732 return nil, err
4733 }
4734 c.urlParams_.Set("alt", alt)
4735 c.urlParams_.Set("prettyPrint", "false")
4736 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancelWipe")
4737 urls += "?" + c.urlParams_.Encode()
4738 req, err := http.NewRequest("POST", urls, body)
4739 if err != nil {
4740 return nil, err
4741 }
4742 req.Header = reqHeaders
4743 googleapi.Expand(req.URL, map[string]string{
4744 "name": c.name,
4745 })
4746 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4747 }
4748
4749
4750
4751
4752
4753
4754 func (c *DevicesDeviceUsersCancelWipeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4755 gensupport.SetOptions(c.urlParams_, opts...)
4756 res, err := c.doRequest("json")
4757 if res != nil && res.StatusCode == http.StatusNotModified {
4758 if res.Body != nil {
4759 res.Body.Close()
4760 }
4761 return nil, gensupport.WrapError(&googleapi.Error{
4762 Code: res.StatusCode,
4763 Header: res.Header,
4764 })
4765 }
4766 if err != nil {
4767 return nil, err
4768 }
4769 defer googleapi.CloseBody(res)
4770 if err := googleapi.CheckResponse(res); err != nil {
4771 return nil, gensupport.WrapError(err)
4772 }
4773 ret := &Operation{
4774 ServerResponse: googleapi.ServerResponse{
4775 Header: res.Header,
4776 HTTPStatusCode: res.StatusCode,
4777 },
4778 }
4779 target := &ret
4780 if err := gensupport.DecodeResponse(target, res); err != nil {
4781 return nil, err
4782 }
4783 return ret, nil
4784 }
4785
4786 type DevicesDeviceUsersDeleteCall struct {
4787 s *Service
4788 name string
4789 urlParams_ gensupport.URLParams
4790 ctx_ context.Context
4791 header_ http.Header
4792 }
4793
4794
4795
4796
4797
4798
4799
4800
4801 func (r *DevicesDeviceUsersService) Delete(name string) *DevicesDeviceUsersDeleteCall {
4802 c := &DevicesDeviceUsersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4803 c.name = name
4804 return c
4805 }
4806
4807
4808
4809
4810
4811
4812
4813 func (c *DevicesDeviceUsersDeleteCall) Customer(customer string) *DevicesDeviceUsersDeleteCall {
4814 c.urlParams_.Set("customer", customer)
4815 return c
4816 }
4817
4818
4819
4820
4821 func (c *DevicesDeviceUsersDeleteCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersDeleteCall {
4822 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4823 return c
4824 }
4825
4826
4827 func (c *DevicesDeviceUsersDeleteCall) Context(ctx context.Context) *DevicesDeviceUsersDeleteCall {
4828 c.ctx_ = ctx
4829 return c
4830 }
4831
4832
4833
4834 func (c *DevicesDeviceUsersDeleteCall) Header() http.Header {
4835 if c.header_ == nil {
4836 c.header_ = make(http.Header)
4837 }
4838 return c.header_
4839 }
4840
4841 func (c *DevicesDeviceUsersDeleteCall) doRequest(alt string) (*http.Response, error) {
4842 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4843 var body io.Reader = nil
4844 c.urlParams_.Set("alt", alt)
4845 c.urlParams_.Set("prettyPrint", "false")
4846 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4847 urls += "?" + c.urlParams_.Encode()
4848 req, err := http.NewRequest("DELETE", urls, body)
4849 if err != nil {
4850 return nil, err
4851 }
4852 req.Header = reqHeaders
4853 googleapi.Expand(req.URL, map[string]string{
4854 "name": c.name,
4855 })
4856 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4857 }
4858
4859
4860
4861
4862
4863
4864 func (c *DevicesDeviceUsersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4865 gensupport.SetOptions(c.urlParams_, opts...)
4866 res, err := c.doRequest("json")
4867 if res != nil && res.StatusCode == http.StatusNotModified {
4868 if res.Body != nil {
4869 res.Body.Close()
4870 }
4871 return nil, gensupport.WrapError(&googleapi.Error{
4872 Code: res.StatusCode,
4873 Header: res.Header,
4874 })
4875 }
4876 if err != nil {
4877 return nil, err
4878 }
4879 defer googleapi.CloseBody(res)
4880 if err := googleapi.CheckResponse(res); err != nil {
4881 return nil, gensupport.WrapError(err)
4882 }
4883 ret := &Operation{
4884 ServerResponse: googleapi.ServerResponse{
4885 Header: res.Header,
4886 HTTPStatusCode: res.StatusCode,
4887 },
4888 }
4889 target := &ret
4890 if err := gensupport.DecodeResponse(target, res); err != nil {
4891 return nil, err
4892 }
4893 return ret, nil
4894 }
4895
4896 type DevicesDeviceUsersGetCall struct {
4897 s *Service
4898 name string
4899 urlParams_ gensupport.URLParams
4900 ifNoneMatch_ string
4901 ctx_ context.Context
4902 header_ http.Header
4903 }
4904
4905
4906
4907
4908
4909
4910
4911 func (r *DevicesDeviceUsersService) Get(name string) *DevicesDeviceUsersGetCall {
4912 c := &DevicesDeviceUsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4913 c.name = name
4914 return c
4915 }
4916
4917
4918
4919
4920
4921
4922
4923 func (c *DevicesDeviceUsersGetCall) Customer(customer string) *DevicesDeviceUsersGetCall {
4924 c.urlParams_.Set("customer", customer)
4925 return c
4926 }
4927
4928
4929
4930
4931 func (c *DevicesDeviceUsersGetCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersGetCall {
4932 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4933 return c
4934 }
4935
4936
4937
4938
4939 func (c *DevicesDeviceUsersGetCall) IfNoneMatch(entityTag string) *DevicesDeviceUsersGetCall {
4940 c.ifNoneMatch_ = entityTag
4941 return c
4942 }
4943
4944
4945 func (c *DevicesDeviceUsersGetCall) Context(ctx context.Context) *DevicesDeviceUsersGetCall {
4946 c.ctx_ = ctx
4947 return c
4948 }
4949
4950
4951
4952 func (c *DevicesDeviceUsersGetCall) Header() http.Header {
4953 if c.header_ == nil {
4954 c.header_ = make(http.Header)
4955 }
4956 return c.header_
4957 }
4958
4959 func (c *DevicesDeviceUsersGetCall) doRequest(alt string) (*http.Response, error) {
4960 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4961 if c.ifNoneMatch_ != "" {
4962 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4963 }
4964 var body io.Reader = nil
4965 c.urlParams_.Set("alt", alt)
4966 c.urlParams_.Set("prettyPrint", "false")
4967 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4968 urls += "?" + c.urlParams_.Encode()
4969 req, err := http.NewRequest("GET", urls, body)
4970 if err != nil {
4971 return nil, err
4972 }
4973 req.Header = reqHeaders
4974 googleapi.Expand(req.URL, map[string]string{
4975 "name": c.name,
4976 })
4977 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4978 }
4979
4980
4981
4982
4983
4984
4985
4986 func (c *DevicesDeviceUsersGetCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudidentityDevicesV1DeviceUser, error) {
4987 gensupport.SetOptions(c.urlParams_, opts...)
4988 res, err := c.doRequest("json")
4989 if res != nil && res.StatusCode == http.StatusNotModified {
4990 if res.Body != nil {
4991 res.Body.Close()
4992 }
4993 return nil, gensupport.WrapError(&googleapi.Error{
4994 Code: res.StatusCode,
4995 Header: res.Header,
4996 })
4997 }
4998 if err != nil {
4999 return nil, err
5000 }
5001 defer googleapi.CloseBody(res)
5002 if err := googleapi.CheckResponse(res); err != nil {
5003 return nil, gensupport.WrapError(err)
5004 }
5005 ret := &GoogleAppsCloudidentityDevicesV1DeviceUser{
5006 ServerResponse: googleapi.ServerResponse{
5007 Header: res.Header,
5008 HTTPStatusCode: res.StatusCode,
5009 },
5010 }
5011 target := &ret
5012 if err := gensupport.DecodeResponse(target, res); err != nil {
5013 return nil, err
5014 }
5015 return ret, nil
5016 }
5017
5018 type DevicesDeviceUsersListCall struct {
5019 s *Service
5020 parent string
5021 urlParams_ gensupport.URLParams
5022 ifNoneMatch_ string
5023 ctx_ context.Context
5024 header_ http.Header
5025 }
5026
5027
5028
5029
5030
5031
5032 func (r *DevicesDeviceUsersService) List(parent string) *DevicesDeviceUsersListCall {
5033 c := &DevicesDeviceUsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5034 c.parent = parent
5035 return c
5036 }
5037
5038
5039
5040
5041
5042
5043
5044 func (c *DevicesDeviceUsersListCall) Customer(customer string) *DevicesDeviceUsersListCall {
5045 c.urlParams_.Set("customer", customer)
5046 return c
5047 }
5048
5049
5050
5051
5052
5053
5054 func (c *DevicesDeviceUsersListCall) Filter(filter string) *DevicesDeviceUsersListCall {
5055 c.urlParams_.Set("filter", filter)
5056 return c
5057 }
5058
5059
5060
5061 func (c *DevicesDeviceUsersListCall) OrderBy(orderBy string) *DevicesDeviceUsersListCall {
5062 c.urlParams_.Set("orderBy", orderBy)
5063 return c
5064 }
5065
5066
5067
5068
5069 func (c *DevicesDeviceUsersListCall) PageSize(pageSize int64) *DevicesDeviceUsersListCall {
5070 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5071 return c
5072 }
5073
5074
5075
5076
5077
5078 func (c *DevicesDeviceUsersListCall) PageToken(pageToken string) *DevicesDeviceUsersListCall {
5079 c.urlParams_.Set("pageToken", pageToken)
5080 return c
5081 }
5082
5083
5084
5085
5086 func (c *DevicesDeviceUsersListCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersListCall {
5087 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5088 return c
5089 }
5090
5091
5092
5093
5094 func (c *DevicesDeviceUsersListCall) IfNoneMatch(entityTag string) *DevicesDeviceUsersListCall {
5095 c.ifNoneMatch_ = entityTag
5096 return c
5097 }
5098
5099
5100 func (c *DevicesDeviceUsersListCall) Context(ctx context.Context) *DevicesDeviceUsersListCall {
5101 c.ctx_ = ctx
5102 return c
5103 }
5104
5105
5106
5107 func (c *DevicesDeviceUsersListCall) Header() http.Header {
5108 if c.header_ == nil {
5109 c.header_ = make(http.Header)
5110 }
5111 return c.header_
5112 }
5113
5114 func (c *DevicesDeviceUsersListCall) doRequest(alt string) (*http.Response, error) {
5115 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5116 if c.ifNoneMatch_ != "" {
5117 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5118 }
5119 var body io.Reader = nil
5120 c.urlParams_.Set("alt", alt)
5121 c.urlParams_.Set("prettyPrint", "false")
5122 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deviceUsers")
5123 urls += "?" + c.urlParams_.Encode()
5124 req, err := http.NewRequest("GET", urls, body)
5125 if err != nil {
5126 return nil, err
5127 }
5128 req.Header = reqHeaders
5129 googleapi.Expand(req.URL, map[string]string{
5130 "parent": c.parent,
5131 })
5132 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5133 }
5134
5135
5136
5137
5138
5139
5140
5141 func (c *DevicesDeviceUsersListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse, error) {
5142 gensupport.SetOptions(c.urlParams_, opts...)
5143 res, err := c.doRequest("json")
5144 if res != nil && res.StatusCode == http.StatusNotModified {
5145 if res.Body != nil {
5146 res.Body.Close()
5147 }
5148 return nil, gensupport.WrapError(&googleapi.Error{
5149 Code: res.StatusCode,
5150 Header: res.Header,
5151 })
5152 }
5153 if err != nil {
5154 return nil, err
5155 }
5156 defer googleapi.CloseBody(res)
5157 if err := googleapi.CheckResponse(res); err != nil {
5158 return nil, gensupport.WrapError(err)
5159 }
5160 ret := &GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse{
5161 ServerResponse: googleapi.ServerResponse{
5162 Header: res.Header,
5163 HTTPStatusCode: res.StatusCode,
5164 },
5165 }
5166 target := &ret
5167 if err := gensupport.DecodeResponse(target, res); err != nil {
5168 return nil, err
5169 }
5170 return ret, nil
5171 }
5172
5173
5174
5175
5176 func (c *DevicesDeviceUsersListCall) Pages(ctx context.Context, f func(*GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse) error) error {
5177 c.ctx_ = ctx
5178 defer c.PageToken(c.urlParams_.Get("pageToken"))
5179 for {
5180 x, err := c.Do()
5181 if err != nil {
5182 return err
5183 }
5184 if err := f(x); err != nil {
5185 return err
5186 }
5187 if x.NextPageToken == "" {
5188 return nil
5189 }
5190 c.PageToken(x.NextPageToken)
5191 }
5192 }
5193
5194 type DevicesDeviceUsersLookupCall struct {
5195 s *Service
5196 parent string
5197 urlParams_ gensupport.URLParams
5198 ifNoneMatch_ string
5199 ctx_ context.Context
5200 header_ http.Header
5201 }
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217 func (r *DevicesDeviceUsersService) Lookup(parent string) *DevicesDeviceUsersLookupCall {
5218 c := &DevicesDeviceUsersLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5219 c.parent = parent
5220 return c
5221 }
5222
5223
5224
5225
5226 func (c *DevicesDeviceUsersLookupCall) AndroidId(androidId string) *DevicesDeviceUsersLookupCall {
5227 c.urlParams_.Set("androidId", androidId)
5228 return c
5229 }
5230
5231
5232
5233
5234 func (c *DevicesDeviceUsersLookupCall) PageSize(pageSize int64) *DevicesDeviceUsersLookupCall {
5235 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5236 return c
5237 }
5238
5239
5240
5241
5242
5243 func (c *DevicesDeviceUsersLookupCall) PageToken(pageToken string) *DevicesDeviceUsersLookupCall {
5244 c.urlParams_.Set("pageToken", pageToken)
5245 return c
5246 }
5247
5248
5249
5250
5251
5252
5253
5254
5255 func (c *DevicesDeviceUsersLookupCall) RawResourceId(rawResourceId string) *DevicesDeviceUsersLookupCall {
5256 c.urlParams_.Set("rawResourceId", rawResourceId)
5257 return c
5258 }
5259
5260
5261
5262
5263 func (c *DevicesDeviceUsersLookupCall) UserId(userId string) *DevicesDeviceUsersLookupCall {
5264 c.urlParams_.Set("userId", userId)
5265 return c
5266 }
5267
5268
5269
5270
5271 func (c *DevicesDeviceUsersLookupCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersLookupCall {
5272 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5273 return c
5274 }
5275
5276
5277
5278
5279 func (c *DevicesDeviceUsersLookupCall) IfNoneMatch(entityTag string) *DevicesDeviceUsersLookupCall {
5280 c.ifNoneMatch_ = entityTag
5281 return c
5282 }
5283
5284
5285 func (c *DevicesDeviceUsersLookupCall) Context(ctx context.Context) *DevicesDeviceUsersLookupCall {
5286 c.ctx_ = ctx
5287 return c
5288 }
5289
5290
5291
5292 func (c *DevicesDeviceUsersLookupCall) Header() http.Header {
5293 if c.header_ == nil {
5294 c.header_ = make(http.Header)
5295 }
5296 return c.header_
5297 }
5298
5299 func (c *DevicesDeviceUsersLookupCall) doRequest(alt string) (*http.Response, error) {
5300 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5301 if c.ifNoneMatch_ != "" {
5302 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5303 }
5304 var body io.Reader = nil
5305 c.urlParams_.Set("alt", alt)
5306 c.urlParams_.Set("prettyPrint", "false")
5307 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:lookup")
5308 urls += "?" + c.urlParams_.Encode()
5309 req, err := http.NewRequest("GET", urls, body)
5310 if err != nil {
5311 return nil, err
5312 }
5313 req.Header = reqHeaders
5314 googleapi.Expand(req.URL, map[string]string{
5315 "parent": c.parent,
5316 })
5317 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5318 }
5319
5320
5321
5322
5323
5324
5325
5326 func (c *DevicesDeviceUsersLookupCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse, error) {
5327 gensupport.SetOptions(c.urlParams_, opts...)
5328 res, err := c.doRequest("json")
5329 if res != nil && res.StatusCode == http.StatusNotModified {
5330 if res.Body != nil {
5331 res.Body.Close()
5332 }
5333 return nil, gensupport.WrapError(&googleapi.Error{
5334 Code: res.StatusCode,
5335 Header: res.Header,
5336 })
5337 }
5338 if err != nil {
5339 return nil, err
5340 }
5341 defer googleapi.CloseBody(res)
5342 if err := googleapi.CheckResponse(res); err != nil {
5343 return nil, gensupport.WrapError(err)
5344 }
5345 ret := &GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse{
5346 ServerResponse: googleapi.ServerResponse{
5347 Header: res.Header,
5348 HTTPStatusCode: res.StatusCode,
5349 },
5350 }
5351 target := &ret
5352 if err := gensupport.DecodeResponse(target, res); err != nil {
5353 return nil, err
5354 }
5355 return ret, nil
5356 }
5357
5358
5359
5360
5361 func (c *DevicesDeviceUsersLookupCall) Pages(ctx context.Context, f func(*GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse) error) error {
5362 c.ctx_ = ctx
5363 defer c.PageToken(c.urlParams_.Get("pageToken"))
5364 for {
5365 x, err := c.Do()
5366 if err != nil {
5367 return err
5368 }
5369 if err := f(x); err != nil {
5370 return err
5371 }
5372 if x.NextPageToken == "" {
5373 return nil
5374 }
5375 c.PageToken(x.NextPageToken)
5376 }
5377 }
5378
5379 type DevicesDeviceUsersWipeCall struct {
5380 s *Service
5381 name string
5382 googleappscloudidentitydevicesv1wipedeviceuserrequest *GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest
5383 urlParams_ gensupport.URLParams
5384 ctx_ context.Context
5385 header_ http.Header
5386 }
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 func (r *DevicesDeviceUsersService) Wipe(name string, googleappscloudidentitydevicesv1wipedeviceuserrequest *GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest) *DevicesDeviceUsersWipeCall {
5401 c := &DevicesDeviceUsersWipeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5402 c.name = name
5403 c.googleappscloudidentitydevicesv1wipedeviceuserrequest = googleappscloudidentitydevicesv1wipedeviceuserrequest
5404 return c
5405 }
5406
5407
5408
5409
5410 func (c *DevicesDeviceUsersWipeCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersWipeCall {
5411 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5412 return c
5413 }
5414
5415
5416 func (c *DevicesDeviceUsersWipeCall) Context(ctx context.Context) *DevicesDeviceUsersWipeCall {
5417 c.ctx_ = ctx
5418 return c
5419 }
5420
5421
5422
5423 func (c *DevicesDeviceUsersWipeCall) Header() http.Header {
5424 if c.header_ == nil {
5425 c.header_ = make(http.Header)
5426 }
5427 return c.header_
5428 }
5429
5430 func (c *DevicesDeviceUsersWipeCall) doRequest(alt string) (*http.Response, error) {
5431 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5432 var body io.Reader = nil
5433 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleappscloudidentitydevicesv1wipedeviceuserrequest)
5434 if err != nil {
5435 return nil, err
5436 }
5437 c.urlParams_.Set("alt", alt)
5438 c.urlParams_.Set("prettyPrint", "false")
5439 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wipe")
5440 urls += "?" + c.urlParams_.Encode()
5441 req, err := http.NewRequest("POST", urls, body)
5442 if err != nil {
5443 return nil, err
5444 }
5445 req.Header = reqHeaders
5446 googleapi.Expand(req.URL, map[string]string{
5447 "name": c.name,
5448 })
5449 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5450 }
5451
5452
5453
5454
5455
5456
5457 func (c *DevicesDeviceUsersWipeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5458 gensupport.SetOptions(c.urlParams_, opts...)
5459 res, err := c.doRequest("json")
5460 if res != nil && res.StatusCode == http.StatusNotModified {
5461 if res.Body != nil {
5462 res.Body.Close()
5463 }
5464 return nil, gensupport.WrapError(&googleapi.Error{
5465 Code: res.StatusCode,
5466 Header: res.Header,
5467 })
5468 }
5469 if err != nil {
5470 return nil, err
5471 }
5472 defer googleapi.CloseBody(res)
5473 if err := googleapi.CheckResponse(res); err != nil {
5474 return nil, gensupport.WrapError(err)
5475 }
5476 ret := &Operation{
5477 ServerResponse: googleapi.ServerResponse{
5478 Header: res.Header,
5479 HTTPStatusCode: res.StatusCode,
5480 },
5481 }
5482 target := &ret
5483 if err := gensupport.DecodeResponse(target, res); err != nil {
5484 return nil, err
5485 }
5486 return ret, nil
5487 }
5488
5489 type DevicesDeviceUsersClientStatesGetCall struct {
5490 s *Service
5491 name string
5492 urlParams_ gensupport.URLParams
5493 ifNoneMatch_ string
5494 ctx_ context.Context
5495 header_ http.Header
5496 }
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514 func (r *DevicesDeviceUsersClientStatesService) Get(name string) *DevicesDeviceUsersClientStatesGetCall {
5515 c := &DevicesDeviceUsersClientStatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5516 c.name = name
5517 return c
5518 }
5519
5520
5521
5522
5523
5524
5525
5526 func (c *DevicesDeviceUsersClientStatesGetCall) Customer(customer string) *DevicesDeviceUsersClientStatesGetCall {
5527 c.urlParams_.Set("customer", customer)
5528 return c
5529 }
5530
5531
5532
5533
5534 func (c *DevicesDeviceUsersClientStatesGetCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersClientStatesGetCall {
5535 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5536 return c
5537 }
5538
5539
5540
5541
5542 func (c *DevicesDeviceUsersClientStatesGetCall) IfNoneMatch(entityTag string) *DevicesDeviceUsersClientStatesGetCall {
5543 c.ifNoneMatch_ = entityTag
5544 return c
5545 }
5546
5547
5548 func (c *DevicesDeviceUsersClientStatesGetCall) Context(ctx context.Context) *DevicesDeviceUsersClientStatesGetCall {
5549 c.ctx_ = ctx
5550 return c
5551 }
5552
5553
5554
5555 func (c *DevicesDeviceUsersClientStatesGetCall) Header() http.Header {
5556 if c.header_ == nil {
5557 c.header_ = make(http.Header)
5558 }
5559 return c.header_
5560 }
5561
5562 func (c *DevicesDeviceUsersClientStatesGetCall) doRequest(alt string) (*http.Response, error) {
5563 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5564 if c.ifNoneMatch_ != "" {
5565 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5566 }
5567 var body io.Reader = nil
5568 c.urlParams_.Set("alt", alt)
5569 c.urlParams_.Set("prettyPrint", "false")
5570 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
5571 urls += "?" + c.urlParams_.Encode()
5572 req, err := http.NewRequest("GET", urls, body)
5573 if err != nil {
5574 return nil, err
5575 }
5576 req.Header = reqHeaders
5577 googleapi.Expand(req.URL, map[string]string{
5578 "name": c.name,
5579 })
5580 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5581 }
5582
5583
5584
5585
5586
5587
5588
5589 func (c *DevicesDeviceUsersClientStatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudidentityDevicesV1ClientState, error) {
5590 gensupport.SetOptions(c.urlParams_, opts...)
5591 res, err := c.doRequest("json")
5592 if res != nil && res.StatusCode == http.StatusNotModified {
5593 if res.Body != nil {
5594 res.Body.Close()
5595 }
5596 return nil, gensupport.WrapError(&googleapi.Error{
5597 Code: res.StatusCode,
5598 Header: res.Header,
5599 })
5600 }
5601 if err != nil {
5602 return nil, err
5603 }
5604 defer googleapi.CloseBody(res)
5605 if err := googleapi.CheckResponse(res); err != nil {
5606 return nil, gensupport.WrapError(err)
5607 }
5608 ret := &GoogleAppsCloudidentityDevicesV1ClientState{
5609 ServerResponse: googleapi.ServerResponse{
5610 Header: res.Header,
5611 HTTPStatusCode: res.StatusCode,
5612 },
5613 }
5614 target := &ret
5615 if err := gensupport.DecodeResponse(target, res); err != nil {
5616 return nil, err
5617 }
5618 return ret, nil
5619 }
5620
5621 type DevicesDeviceUsersClientStatesListCall struct {
5622 s *Service
5623 parent string
5624 urlParams_ gensupport.URLParams
5625 ifNoneMatch_ string
5626 ctx_ context.Context
5627 header_ http.Header
5628 }
5629
5630
5631
5632
5633
5634
5635 func (r *DevicesDeviceUsersClientStatesService) List(parent string) *DevicesDeviceUsersClientStatesListCall {
5636 c := &DevicesDeviceUsersClientStatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5637 c.parent = parent
5638 return c
5639 }
5640
5641
5642
5643
5644
5645
5646
5647 func (c *DevicesDeviceUsersClientStatesListCall) Customer(customer string) *DevicesDeviceUsersClientStatesListCall {
5648 c.urlParams_.Set("customer", customer)
5649 return c
5650 }
5651
5652
5653
5654 func (c *DevicesDeviceUsersClientStatesListCall) Filter(filter string) *DevicesDeviceUsersClientStatesListCall {
5655 c.urlParams_.Set("filter", filter)
5656 return c
5657 }
5658
5659
5660
5661 func (c *DevicesDeviceUsersClientStatesListCall) OrderBy(orderBy string) *DevicesDeviceUsersClientStatesListCall {
5662 c.urlParams_.Set("orderBy", orderBy)
5663 return c
5664 }
5665
5666
5667
5668
5669
5670 func (c *DevicesDeviceUsersClientStatesListCall) PageToken(pageToken string) *DevicesDeviceUsersClientStatesListCall {
5671 c.urlParams_.Set("pageToken", pageToken)
5672 return c
5673 }
5674
5675
5676
5677
5678 func (c *DevicesDeviceUsersClientStatesListCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersClientStatesListCall {
5679 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5680 return c
5681 }
5682
5683
5684
5685
5686 func (c *DevicesDeviceUsersClientStatesListCall) IfNoneMatch(entityTag string) *DevicesDeviceUsersClientStatesListCall {
5687 c.ifNoneMatch_ = entityTag
5688 return c
5689 }
5690
5691
5692 func (c *DevicesDeviceUsersClientStatesListCall) Context(ctx context.Context) *DevicesDeviceUsersClientStatesListCall {
5693 c.ctx_ = ctx
5694 return c
5695 }
5696
5697
5698
5699 func (c *DevicesDeviceUsersClientStatesListCall) Header() http.Header {
5700 if c.header_ == nil {
5701 c.header_ = make(http.Header)
5702 }
5703 return c.header_
5704 }
5705
5706 func (c *DevicesDeviceUsersClientStatesListCall) doRequest(alt string) (*http.Response, error) {
5707 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5708 if c.ifNoneMatch_ != "" {
5709 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5710 }
5711 var body io.Reader = nil
5712 c.urlParams_.Set("alt", alt)
5713 c.urlParams_.Set("prettyPrint", "false")
5714 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clientStates")
5715 urls += "?" + c.urlParams_.Encode()
5716 req, err := http.NewRequest("GET", urls, body)
5717 if err != nil {
5718 return nil, err
5719 }
5720 req.Header = reqHeaders
5721 googleapi.Expand(req.URL, map[string]string{
5722 "parent": c.parent,
5723 })
5724 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5725 }
5726
5727
5728
5729
5730
5731
5732
5733 func (c *DevicesDeviceUsersClientStatesListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudidentityDevicesV1ListClientStatesResponse, error) {
5734 gensupport.SetOptions(c.urlParams_, opts...)
5735 res, err := c.doRequest("json")
5736 if res != nil && res.StatusCode == http.StatusNotModified {
5737 if res.Body != nil {
5738 res.Body.Close()
5739 }
5740 return nil, gensupport.WrapError(&googleapi.Error{
5741 Code: res.StatusCode,
5742 Header: res.Header,
5743 })
5744 }
5745 if err != nil {
5746 return nil, err
5747 }
5748 defer googleapi.CloseBody(res)
5749 if err := googleapi.CheckResponse(res); err != nil {
5750 return nil, gensupport.WrapError(err)
5751 }
5752 ret := &GoogleAppsCloudidentityDevicesV1ListClientStatesResponse{
5753 ServerResponse: googleapi.ServerResponse{
5754 Header: res.Header,
5755 HTTPStatusCode: res.StatusCode,
5756 },
5757 }
5758 target := &ret
5759 if err := gensupport.DecodeResponse(target, res); err != nil {
5760 return nil, err
5761 }
5762 return ret, nil
5763 }
5764
5765
5766
5767
5768 func (c *DevicesDeviceUsersClientStatesListCall) Pages(ctx context.Context, f func(*GoogleAppsCloudidentityDevicesV1ListClientStatesResponse) error) error {
5769 c.ctx_ = ctx
5770 defer c.PageToken(c.urlParams_.Get("pageToken"))
5771 for {
5772 x, err := c.Do()
5773 if err != nil {
5774 return err
5775 }
5776 if err := f(x); err != nil {
5777 return err
5778 }
5779 if x.NextPageToken == "" {
5780 return nil
5781 }
5782 c.PageToken(x.NextPageToken)
5783 }
5784 }
5785
5786 type DevicesDeviceUsersClientStatesPatchCall struct {
5787 s *Service
5788 name string
5789 googleappscloudidentitydevicesv1clientstate *GoogleAppsCloudidentityDevicesV1ClientState
5790 urlParams_ gensupport.URLParams
5791 ctx_ context.Context
5792 header_ http.Header
5793 }
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816 func (r *DevicesDeviceUsersClientStatesService) Patch(name string, googleappscloudidentitydevicesv1clientstate *GoogleAppsCloudidentityDevicesV1ClientState) *DevicesDeviceUsersClientStatesPatchCall {
5817 c := &DevicesDeviceUsersClientStatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5818 c.name = name
5819 c.googleappscloudidentitydevicesv1clientstate = googleappscloudidentitydevicesv1clientstate
5820 return c
5821 }
5822
5823
5824
5825
5826
5827
5828
5829 func (c *DevicesDeviceUsersClientStatesPatchCall) Customer(customer string) *DevicesDeviceUsersClientStatesPatchCall {
5830 c.urlParams_.Set("customer", customer)
5831 return c
5832 }
5833
5834
5835
5836
5837 func (c *DevicesDeviceUsersClientStatesPatchCall) UpdateMask(updateMask string) *DevicesDeviceUsersClientStatesPatchCall {
5838 c.urlParams_.Set("updateMask", updateMask)
5839 return c
5840 }
5841
5842
5843
5844
5845 func (c *DevicesDeviceUsersClientStatesPatchCall) Fields(s ...googleapi.Field) *DevicesDeviceUsersClientStatesPatchCall {
5846 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5847 return c
5848 }
5849
5850
5851 func (c *DevicesDeviceUsersClientStatesPatchCall) Context(ctx context.Context) *DevicesDeviceUsersClientStatesPatchCall {
5852 c.ctx_ = ctx
5853 return c
5854 }
5855
5856
5857
5858 func (c *DevicesDeviceUsersClientStatesPatchCall) Header() http.Header {
5859 if c.header_ == nil {
5860 c.header_ = make(http.Header)
5861 }
5862 return c.header_
5863 }
5864
5865 func (c *DevicesDeviceUsersClientStatesPatchCall) doRequest(alt string) (*http.Response, error) {
5866 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5867 var body io.Reader = nil
5868 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleappscloudidentitydevicesv1clientstate)
5869 if err != nil {
5870 return nil, err
5871 }
5872 c.urlParams_.Set("alt", alt)
5873 c.urlParams_.Set("prettyPrint", "false")
5874 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
5875 urls += "?" + c.urlParams_.Encode()
5876 req, err := http.NewRequest("PATCH", urls, body)
5877 if err != nil {
5878 return nil, err
5879 }
5880 req.Header = reqHeaders
5881 googleapi.Expand(req.URL, map[string]string{
5882 "name": c.name,
5883 })
5884 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5885 }
5886
5887
5888
5889
5890
5891
5892 func (c *DevicesDeviceUsersClientStatesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5893 gensupport.SetOptions(c.urlParams_, opts...)
5894 res, err := c.doRequest("json")
5895 if res != nil && res.StatusCode == http.StatusNotModified {
5896 if res.Body != nil {
5897 res.Body.Close()
5898 }
5899 return nil, gensupport.WrapError(&googleapi.Error{
5900 Code: res.StatusCode,
5901 Header: res.Header,
5902 })
5903 }
5904 if err != nil {
5905 return nil, err
5906 }
5907 defer googleapi.CloseBody(res)
5908 if err := googleapi.CheckResponse(res); err != nil {
5909 return nil, gensupport.WrapError(err)
5910 }
5911 ret := &Operation{
5912 ServerResponse: googleapi.ServerResponse{
5913 Header: res.Header,
5914 HTTPStatusCode: res.StatusCode,
5915 },
5916 }
5917 target := &ret
5918 if err := gensupport.DecodeResponse(target, res); err != nil {
5919 return nil, err
5920 }
5921 return ret, nil
5922 }
5923
5924 type GroupsCreateCall struct {
5925 s *Service
5926 group *Group
5927 urlParams_ gensupport.URLParams
5928 ctx_ context.Context
5929 header_ http.Header
5930 }
5931
5932
5933 func (r *GroupsService) Create(group *Group) *GroupsCreateCall {
5934 c := &GroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5935 c.group = group
5936 return c
5937 }
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 func (c *GroupsCreateCall) InitialGroupConfig(initialGroupConfig string) *GroupsCreateCall {
5953 c.urlParams_.Set("initialGroupConfig", initialGroupConfig)
5954 return c
5955 }
5956
5957
5958
5959
5960 func (c *GroupsCreateCall) Fields(s ...googleapi.Field) *GroupsCreateCall {
5961 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5962 return c
5963 }
5964
5965
5966 func (c *GroupsCreateCall) Context(ctx context.Context) *GroupsCreateCall {
5967 c.ctx_ = ctx
5968 return c
5969 }
5970
5971
5972
5973 func (c *GroupsCreateCall) Header() http.Header {
5974 if c.header_ == nil {
5975 c.header_ = make(http.Header)
5976 }
5977 return c.header_
5978 }
5979
5980 func (c *GroupsCreateCall) doRequest(alt string) (*http.Response, error) {
5981 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5982 var body io.Reader = nil
5983 body, err := googleapi.WithoutDataWrapper.JSONReader(c.group)
5984 if err != nil {
5985 return nil, err
5986 }
5987 c.urlParams_.Set("alt", alt)
5988 c.urlParams_.Set("prettyPrint", "false")
5989 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/groups")
5990 urls += "?" + c.urlParams_.Encode()
5991 req, err := http.NewRequest("POST", urls, body)
5992 if err != nil {
5993 return nil, err
5994 }
5995 req.Header = reqHeaders
5996 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5997 }
5998
5999
6000
6001
6002
6003
6004 func (c *GroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6005 gensupport.SetOptions(c.urlParams_, opts...)
6006 res, err := c.doRequest("json")
6007 if res != nil && res.StatusCode == http.StatusNotModified {
6008 if res.Body != nil {
6009 res.Body.Close()
6010 }
6011 return nil, gensupport.WrapError(&googleapi.Error{
6012 Code: res.StatusCode,
6013 Header: res.Header,
6014 })
6015 }
6016 if err != nil {
6017 return nil, err
6018 }
6019 defer googleapi.CloseBody(res)
6020 if err := googleapi.CheckResponse(res); err != nil {
6021 return nil, gensupport.WrapError(err)
6022 }
6023 ret := &Operation{
6024 ServerResponse: googleapi.ServerResponse{
6025 Header: res.Header,
6026 HTTPStatusCode: res.StatusCode,
6027 },
6028 }
6029 target := &ret
6030 if err := gensupport.DecodeResponse(target, res); err != nil {
6031 return nil, err
6032 }
6033 return ret, nil
6034 }
6035
6036 type GroupsDeleteCall struct {
6037 s *Service
6038 name string
6039 urlParams_ gensupport.URLParams
6040 ctx_ context.Context
6041 header_ http.Header
6042 }
6043
6044
6045
6046
6047
6048
6049 func (r *GroupsService) Delete(name string) *GroupsDeleteCall {
6050 c := &GroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6051 c.name = name
6052 return c
6053 }
6054
6055
6056
6057
6058 func (c *GroupsDeleteCall) Fields(s ...googleapi.Field) *GroupsDeleteCall {
6059 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6060 return c
6061 }
6062
6063
6064 func (c *GroupsDeleteCall) Context(ctx context.Context) *GroupsDeleteCall {
6065 c.ctx_ = ctx
6066 return c
6067 }
6068
6069
6070
6071 func (c *GroupsDeleteCall) Header() http.Header {
6072 if c.header_ == nil {
6073 c.header_ = make(http.Header)
6074 }
6075 return c.header_
6076 }
6077
6078 func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
6079 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6080 var body io.Reader = nil
6081 c.urlParams_.Set("alt", alt)
6082 c.urlParams_.Set("prettyPrint", "false")
6083 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6084 urls += "?" + c.urlParams_.Encode()
6085 req, err := http.NewRequest("DELETE", urls, body)
6086 if err != nil {
6087 return nil, err
6088 }
6089 req.Header = reqHeaders
6090 googleapi.Expand(req.URL, map[string]string{
6091 "name": c.name,
6092 })
6093 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6094 }
6095
6096
6097
6098
6099
6100
6101 func (c *GroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{
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 GroupsGetCall struct {
6134 s *Service
6135 name string
6136 urlParams_ gensupport.URLParams
6137 ifNoneMatch_ string
6138 ctx_ context.Context
6139 header_ http.Header
6140 }
6141
6142
6143
6144
6145
6146
6147 func (r *GroupsService) Get(name string) *GroupsGetCall {
6148 c := &GroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6149 c.name = name
6150 return c
6151 }
6152
6153
6154
6155
6156 func (c *GroupsGetCall) Fields(s ...googleapi.Field) *GroupsGetCall {
6157 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6158 return c
6159 }
6160
6161
6162
6163
6164 func (c *GroupsGetCall) IfNoneMatch(entityTag string) *GroupsGetCall {
6165 c.ifNoneMatch_ = entityTag
6166 return c
6167 }
6168
6169
6170 func (c *GroupsGetCall) Context(ctx context.Context) *GroupsGetCall {
6171 c.ctx_ = ctx
6172 return c
6173 }
6174
6175
6176
6177 func (c *GroupsGetCall) Header() http.Header {
6178 if c.header_ == nil {
6179 c.header_ = make(http.Header)
6180 }
6181 return c.header_
6182 }
6183
6184 func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) {
6185 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6186 if c.ifNoneMatch_ != "" {
6187 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6188 }
6189 var body io.Reader = nil
6190 c.urlParams_.Set("alt", alt)
6191 c.urlParams_.Set("prettyPrint", "false")
6192 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6193 urls += "?" + c.urlParams_.Encode()
6194 req, err := http.NewRequest("GET", urls, body)
6195 if err != nil {
6196 return nil, err
6197 }
6198 req.Header = reqHeaders
6199 googleapi.Expand(req.URL, map[string]string{
6200 "name": c.name,
6201 })
6202 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6203 }
6204
6205
6206
6207
6208
6209
6210 func (c *GroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error) {
6211 gensupport.SetOptions(c.urlParams_, opts...)
6212 res, err := c.doRequest("json")
6213 if res != nil && res.StatusCode == http.StatusNotModified {
6214 if res.Body != nil {
6215 res.Body.Close()
6216 }
6217 return nil, gensupport.WrapError(&googleapi.Error{
6218 Code: res.StatusCode,
6219 Header: res.Header,
6220 })
6221 }
6222 if err != nil {
6223 return nil, err
6224 }
6225 defer googleapi.CloseBody(res)
6226 if err := googleapi.CheckResponse(res); err != nil {
6227 return nil, gensupport.WrapError(err)
6228 }
6229 ret := &Group{
6230 ServerResponse: googleapi.ServerResponse{
6231 Header: res.Header,
6232 HTTPStatusCode: res.StatusCode,
6233 },
6234 }
6235 target := &ret
6236 if err := gensupport.DecodeResponse(target, res); err != nil {
6237 return nil, err
6238 }
6239 return ret, nil
6240 }
6241
6242 type GroupsGetSecuritySettingsCall struct {
6243 s *Service
6244 name string
6245 urlParams_ gensupport.URLParams
6246 ifNoneMatch_ string
6247 ctx_ context.Context
6248 header_ http.Header
6249 }
6250
6251
6252
6253
6254
6255 func (r *GroupsService) GetSecuritySettings(name string) *GroupsGetSecuritySettingsCall {
6256 c := &GroupsGetSecuritySettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6257 c.name = name
6258 return c
6259 }
6260
6261
6262
6263
6264
6265 func (c *GroupsGetSecuritySettingsCall) ReadMask(readMask string) *GroupsGetSecuritySettingsCall {
6266 c.urlParams_.Set("readMask", readMask)
6267 return c
6268 }
6269
6270
6271
6272
6273 func (c *GroupsGetSecuritySettingsCall) Fields(s ...googleapi.Field) *GroupsGetSecuritySettingsCall {
6274 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6275 return c
6276 }
6277
6278
6279
6280
6281 func (c *GroupsGetSecuritySettingsCall) IfNoneMatch(entityTag string) *GroupsGetSecuritySettingsCall {
6282 c.ifNoneMatch_ = entityTag
6283 return c
6284 }
6285
6286
6287 func (c *GroupsGetSecuritySettingsCall) Context(ctx context.Context) *GroupsGetSecuritySettingsCall {
6288 c.ctx_ = ctx
6289 return c
6290 }
6291
6292
6293
6294 func (c *GroupsGetSecuritySettingsCall) Header() http.Header {
6295 if c.header_ == nil {
6296 c.header_ = make(http.Header)
6297 }
6298 return c.header_
6299 }
6300
6301 func (c *GroupsGetSecuritySettingsCall) doRequest(alt string) (*http.Response, error) {
6302 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6303 if c.ifNoneMatch_ != "" {
6304 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6305 }
6306 var body io.Reader = nil
6307 c.urlParams_.Set("alt", alt)
6308 c.urlParams_.Set("prettyPrint", "false")
6309 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6310 urls += "?" + c.urlParams_.Encode()
6311 req, err := http.NewRequest("GET", urls, body)
6312 if err != nil {
6313 return nil, err
6314 }
6315 req.Header = reqHeaders
6316 googleapi.Expand(req.URL, map[string]string{
6317 "name": c.name,
6318 })
6319 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6320 }
6321
6322
6323
6324
6325
6326
6327
6328 func (c *GroupsGetSecuritySettingsCall) Do(opts ...googleapi.CallOption) (*SecuritySettings, error) {
6329 gensupport.SetOptions(c.urlParams_, opts...)
6330 res, err := c.doRequest("json")
6331 if res != nil && res.StatusCode == http.StatusNotModified {
6332 if res.Body != nil {
6333 res.Body.Close()
6334 }
6335 return nil, gensupport.WrapError(&googleapi.Error{
6336 Code: res.StatusCode,
6337 Header: res.Header,
6338 })
6339 }
6340 if err != nil {
6341 return nil, err
6342 }
6343 defer googleapi.CloseBody(res)
6344 if err := googleapi.CheckResponse(res); err != nil {
6345 return nil, gensupport.WrapError(err)
6346 }
6347 ret := &SecuritySettings{
6348 ServerResponse: googleapi.ServerResponse{
6349 Header: res.Header,
6350 HTTPStatusCode: res.StatusCode,
6351 },
6352 }
6353 target := &ret
6354 if err := gensupport.DecodeResponse(target, res); err != nil {
6355 return nil, err
6356 }
6357 return ret, nil
6358 }
6359
6360 type GroupsListCall struct {
6361 s *Service
6362 urlParams_ gensupport.URLParams
6363 ifNoneMatch_ string
6364 ctx_ context.Context
6365 header_ http.Header
6366 }
6367
6368
6369 func (r *GroupsService) List() *GroupsListCall {
6370 c := &GroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6371 return c
6372 }
6373
6374
6375
6376
6377
6378
6379
6380
6381 func (c *GroupsListCall) PageSize(pageSize int64) *GroupsListCall {
6382 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6383 return c
6384 }
6385
6386
6387
6388 func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall {
6389 c.urlParams_.Set("pageToken", pageToken)
6390 return c
6391 }
6392
6393
6394
6395
6396
6397
6398
6399 func (c *GroupsListCall) Parent(parent string) *GroupsListCall {
6400 c.urlParams_.Set("parent", parent)
6401 return c
6402 }
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412 func (c *GroupsListCall) View(view string) *GroupsListCall {
6413 c.urlParams_.Set("view", view)
6414 return c
6415 }
6416
6417
6418
6419
6420 func (c *GroupsListCall) Fields(s ...googleapi.Field) *GroupsListCall {
6421 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6422 return c
6423 }
6424
6425
6426
6427
6428 func (c *GroupsListCall) IfNoneMatch(entityTag string) *GroupsListCall {
6429 c.ifNoneMatch_ = entityTag
6430 return c
6431 }
6432
6433
6434 func (c *GroupsListCall) Context(ctx context.Context) *GroupsListCall {
6435 c.ctx_ = ctx
6436 return c
6437 }
6438
6439
6440
6441 func (c *GroupsListCall) Header() http.Header {
6442 if c.header_ == nil {
6443 c.header_ = make(http.Header)
6444 }
6445 return c.header_
6446 }
6447
6448 func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) {
6449 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6450 if c.ifNoneMatch_ != "" {
6451 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6452 }
6453 var body io.Reader = nil
6454 c.urlParams_.Set("alt", alt)
6455 c.urlParams_.Set("prettyPrint", "false")
6456 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/groups")
6457 urls += "?" + c.urlParams_.Encode()
6458 req, err := http.NewRequest("GET", urls, body)
6459 if err != nil {
6460 return nil, err
6461 }
6462 req.Header = reqHeaders
6463 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6464 }
6465
6466
6467
6468
6469
6470
6471
6472 func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, error) {
6473 gensupport.SetOptions(c.urlParams_, opts...)
6474 res, err := c.doRequest("json")
6475 if res != nil && res.StatusCode == http.StatusNotModified {
6476 if res.Body != nil {
6477 res.Body.Close()
6478 }
6479 return nil, gensupport.WrapError(&googleapi.Error{
6480 Code: res.StatusCode,
6481 Header: res.Header,
6482 })
6483 }
6484 if err != nil {
6485 return nil, err
6486 }
6487 defer googleapi.CloseBody(res)
6488 if err := googleapi.CheckResponse(res); err != nil {
6489 return nil, gensupport.WrapError(err)
6490 }
6491 ret := &ListGroupsResponse{
6492 ServerResponse: googleapi.ServerResponse{
6493 Header: res.Header,
6494 HTTPStatusCode: res.StatusCode,
6495 },
6496 }
6497 target := &ret
6498 if err := gensupport.DecodeResponse(target, res); err != nil {
6499 return nil, err
6500 }
6501 return ret, nil
6502 }
6503
6504
6505
6506
6507 func (c *GroupsListCall) Pages(ctx context.Context, f func(*ListGroupsResponse) error) error {
6508 c.ctx_ = ctx
6509 defer c.PageToken(c.urlParams_.Get("pageToken"))
6510 for {
6511 x, err := c.Do()
6512 if err != nil {
6513 return err
6514 }
6515 if err := f(x); err != nil {
6516 return err
6517 }
6518 if x.NextPageToken == "" {
6519 return nil
6520 }
6521 c.PageToken(x.NextPageToken)
6522 }
6523 }
6524
6525 type GroupsLookupCall struct {
6526 s *Service
6527 urlParams_ gensupport.URLParams
6528 ifNoneMatch_ string
6529 ctx_ context.Context
6530 header_ http.Header
6531 }
6532
6533
6534
6535
6536 func (r *GroupsService) Lookup() *GroupsLookupCall {
6537 c := &GroupsLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6538 return c
6539 }
6540
6541
6542
6543
6544
6545
6546
6547 func (c *GroupsLookupCall) GroupKeyId(groupKeyId string) *GroupsLookupCall {
6548 c.urlParams_.Set("groupKey.id", groupKeyId)
6549 return c
6550 }
6551
6552
6553
6554
6555
6556
6557
6558 func (c *GroupsLookupCall) GroupKeyNamespace(groupKeyNamespace string) *GroupsLookupCall {
6559 c.urlParams_.Set("groupKey.namespace", groupKeyNamespace)
6560 return c
6561 }
6562
6563
6564
6565
6566 func (c *GroupsLookupCall) Fields(s ...googleapi.Field) *GroupsLookupCall {
6567 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6568 return c
6569 }
6570
6571
6572
6573
6574 func (c *GroupsLookupCall) IfNoneMatch(entityTag string) *GroupsLookupCall {
6575 c.ifNoneMatch_ = entityTag
6576 return c
6577 }
6578
6579
6580 func (c *GroupsLookupCall) Context(ctx context.Context) *GroupsLookupCall {
6581 c.ctx_ = ctx
6582 return c
6583 }
6584
6585
6586
6587 func (c *GroupsLookupCall) Header() http.Header {
6588 if c.header_ == nil {
6589 c.header_ = make(http.Header)
6590 }
6591 return c.header_
6592 }
6593
6594 func (c *GroupsLookupCall) doRequest(alt string) (*http.Response, error) {
6595 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6596 if c.ifNoneMatch_ != "" {
6597 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6598 }
6599 var body io.Reader = nil
6600 c.urlParams_.Set("alt", alt)
6601 c.urlParams_.Set("prettyPrint", "false")
6602 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/groups:lookup")
6603 urls += "?" + c.urlParams_.Encode()
6604 req, err := http.NewRequest("GET", urls, body)
6605 if err != nil {
6606 return nil, err
6607 }
6608 req.Header = reqHeaders
6609 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6610 }
6611
6612
6613
6614
6615
6616
6617
6618 func (c *GroupsLookupCall) Do(opts ...googleapi.CallOption) (*LookupGroupNameResponse, error) {
6619 gensupport.SetOptions(c.urlParams_, opts...)
6620 res, err := c.doRequest("json")
6621 if res != nil && res.StatusCode == http.StatusNotModified {
6622 if res.Body != nil {
6623 res.Body.Close()
6624 }
6625 return nil, gensupport.WrapError(&googleapi.Error{
6626 Code: res.StatusCode,
6627 Header: res.Header,
6628 })
6629 }
6630 if err != nil {
6631 return nil, err
6632 }
6633 defer googleapi.CloseBody(res)
6634 if err := googleapi.CheckResponse(res); err != nil {
6635 return nil, gensupport.WrapError(err)
6636 }
6637 ret := &LookupGroupNameResponse{
6638 ServerResponse: googleapi.ServerResponse{
6639 Header: res.Header,
6640 HTTPStatusCode: res.StatusCode,
6641 },
6642 }
6643 target := &ret
6644 if err := gensupport.DecodeResponse(target, res); err != nil {
6645 return nil, err
6646 }
6647 return ret, nil
6648 }
6649
6650 type GroupsPatchCall struct {
6651 s *Service
6652 name string
6653 group *Group
6654 urlParams_ gensupport.URLParams
6655 ctx_ context.Context
6656 header_ http.Header
6657 }
6658
6659
6660
6661
6662
6663
6664 func (r *GroupsService) Patch(name string, group *Group) *GroupsPatchCall {
6665 c := &GroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6666 c.name = name
6667 c.group = group
6668 return c
6669 }
6670
6671
6672
6673
6674 func (c *GroupsPatchCall) UpdateMask(updateMask string) *GroupsPatchCall {
6675 c.urlParams_.Set("updateMask", updateMask)
6676 return c
6677 }
6678
6679
6680
6681
6682 func (c *GroupsPatchCall) Fields(s ...googleapi.Field) *GroupsPatchCall {
6683 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6684 return c
6685 }
6686
6687
6688 func (c *GroupsPatchCall) Context(ctx context.Context) *GroupsPatchCall {
6689 c.ctx_ = ctx
6690 return c
6691 }
6692
6693
6694
6695 func (c *GroupsPatchCall) Header() http.Header {
6696 if c.header_ == nil {
6697 c.header_ = make(http.Header)
6698 }
6699 return c.header_
6700 }
6701
6702 func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) {
6703 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6704 var body io.Reader = nil
6705 body, err := googleapi.WithoutDataWrapper.JSONReader(c.group)
6706 if err != nil {
6707 return nil, err
6708 }
6709 c.urlParams_.Set("alt", alt)
6710 c.urlParams_.Set("prettyPrint", "false")
6711 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6712 urls += "?" + c.urlParams_.Encode()
6713 req, err := http.NewRequest("PATCH", urls, body)
6714 if err != nil {
6715 return nil, err
6716 }
6717 req.Header = reqHeaders
6718 googleapi.Expand(req.URL, map[string]string{
6719 "name": c.name,
6720 })
6721 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6722 }
6723
6724
6725
6726
6727
6728
6729 func (c *GroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6730 gensupport.SetOptions(c.urlParams_, opts...)
6731 res, err := c.doRequest("json")
6732 if res != nil && res.StatusCode == http.StatusNotModified {
6733 if res.Body != nil {
6734 res.Body.Close()
6735 }
6736 return nil, gensupport.WrapError(&googleapi.Error{
6737 Code: res.StatusCode,
6738 Header: res.Header,
6739 })
6740 }
6741 if err != nil {
6742 return nil, err
6743 }
6744 defer googleapi.CloseBody(res)
6745 if err := googleapi.CheckResponse(res); err != nil {
6746 return nil, gensupport.WrapError(err)
6747 }
6748 ret := &Operation{
6749 ServerResponse: googleapi.ServerResponse{
6750 Header: res.Header,
6751 HTTPStatusCode: res.StatusCode,
6752 },
6753 }
6754 target := &ret
6755 if err := gensupport.DecodeResponse(target, res); err != nil {
6756 return nil, err
6757 }
6758 return ret, nil
6759 }
6760
6761 type GroupsSearchCall struct {
6762 s *Service
6763 urlParams_ gensupport.URLParams
6764 ifNoneMatch_ string
6765 ctx_ context.Context
6766 header_ http.Header
6767 }
6768
6769
6770 func (r *GroupsService) Search() *GroupsSearchCall {
6771 c := &GroupsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6772 return c
6773 }
6774
6775
6776
6777
6778
6779
6780
6781
6782 func (c *GroupsSearchCall) PageSize(pageSize int64) *GroupsSearchCall {
6783 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6784 return c
6785 }
6786
6787
6788
6789 func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall {
6790 c.urlParams_.Set("pageToken", pageToken)
6791 return c
6792 }
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809 func (c *GroupsSearchCall) Query(query string) *GroupsSearchCall {
6810 c.urlParams_.Set("query", query)
6811 return c
6812 }
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822 func (c *GroupsSearchCall) View(view string) *GroupsSearchCall {
6823 c.urlParams_.Set("view", view)
6824 return c
6825 }
6826
6827
6828
6829
6830 func (c *GroupsSearchCall) Fields(s ...googleapi.Field) *GroupsSearchCall {
6831 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6832 return c
6833 }
6834
6835
6836
6837
6838 func (c *GroupsSearchCall) IfNoneMatch(entityTag string) *GroupsSearchCall {
6839 c.ifNoneMatch_ = entityTag
6840 return c
6841 }
6842
6843
6844 func (c *GroupsSearchCall) Context(ctx context.Context) *GroupsSearchCall {
6845 c.ctx_ = ctx
6846 return c
6847 }
6848
6849
6850
6851 func (c *GroupsSearchCall) Header() http.Header {
6852 if c.header_ == nil {
6853 c.header_ = make(http.Header)
6854 }
6855 return c.header_
6856 }
6857
6858 func (c *GroupsSearchCall) doRequest(alt string) (*http.Response, error) {
6859 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6860 if c.ifNoneMatch_ != "" {
6861 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6862 }
6863 var body io.Reader = nil
6864 c.urlParams_.Set("alt", alt)
6865 c.urlParams_.Set("prettyPrint", "false")
6866 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/groups:search")
6867 urls += "?" + c.urlParams_.Encode()
6868 req, err := http.NewRequest("GET", urls, body)
6869 if err != nil {
6870 return nil, err
6871 }
6872 req.Header = reqHeaders
6873 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6874 }
6875
6876
6877
6878
6879
6880
6881
6882 func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsResponse, error) {
6883 gensupport.SetOptions(c.urlParams_, opts...)
6884 res, err := c.doRequest("json")
6885 if res != nil && res.StatusCode == http.StatusNotModified {
6886 if res.Body != nil {
6887 res.Body.Close()
6888 }
6889 return nil, gensupport.WrapError(&googleapi.Error{
6890 Code: res.StatusCode,
6891 Header: res.Header,
6892 })
6893 }
6894 if err != nil {
6895 return nil, err
6896 }
6897 defer googleapi.CloseBody(res)
6898 if err := googleapi.CheckResponse(res); err != nil {
6899 return nil, gensupport.WrapError(err)
6900 }
6901 ret := &SearchGroupsResponse{
6902 ServerResponse: googleapi.ServerResponse{
6903 Header: res.Header,
6904 HTTPStatusCode: res.StatusCode,
6905 },
6906 }
6907 target := &ret
6908 if err := gensupport.DecodeResponse(target, res); err != nil {
6909 return nil, err
6910 }
6911 return ret, nil
6912 }
6913
6914
6915
6916
6917 func (c *GroupsSearchCall) Pages(ctx context.Context, f func(*SearchGroupsResponse) error) error {
6918 c.ctx_ = ctx
6919 defer c.PageToken(c.urlParams_.Get("pageToken"))
6920 for {
6921 x, err := c.Do()
6922 if err != nil {
6923 return err
6924 }
6925 if err := f(x); err != nil {
6926 return err
6927 }
6928 if x.NextPageToken == "" {
6929 return nil
6930 }
6931 c.PageToken(x.NextPageToken)
6932 }
6933 }
6934
6935 type GroupsUpdateSecuritySettingsCall struct {
6936 s *Service
6937 name string
6938 securitysettings *SecuritySettings
6939 urlParams_ gensupport.URLParams
6940 ctx_ context.Context
6941 header_ http.Header
6942 }
6943
6944
6945
6946
6947
6948 func (r *GroupsService) UpdateSecuritySettings(name string, securitysettings *SecuritySettings) *GroupsUpdateSecuritySettingsCall {
6949 c := &GroupsUpdateSecuritySettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6950 c.name = name
6951 c.securitysettings = securitysettings
6952 return c
6953 }
6954
6955
6956
6957
6958 func (c *GroupsUpdateSecuritySettingsCall) UpdateMask(updateMask string) *GroupsUpdateSecuritySettingsCall {
6959 c.urlParams_.Set("updateMask", updateMask)
6960 return c
6961 }
6962
6963
6964
6965
6966 func (c *GroupsUpdateSecuritySettingsCall) Fields(s ...googleapi.Field) *GroupsUpdateSecuritySettingsCall {
6967 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6968 return c
6969 }
6970
6971
6972 func (c *GroupsUpdateSecuritySettingsCall) Context(ctx context.Context) *GroupsUpdateSecuritySettingsCall {
6973 c.ctx_ = ctx
6974 return c
6975 }
6976
6977
6978
6979 func (c *GroupsUpdateSecuritySettingsCall) Header() http.Header {
6980 if c.header_ == nil {
6981 c.header_ = make(http.Header)
6982 }
6983 return c.header_
6984 }
6985
6986 func (c *GroupsUpdateSecuritySettingsCall) doRequest(alt string) (*http.Response, error) {
6987 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6988 var body io.Reader = nil
6989 body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitysettings)
6990 if err != nil {
6991 return nil, err
6992 }
6993 c.urlParams_.Set("alt", alt)
6994 c.urlParams_.Set("prettyPrint", "false")
6995 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6996 urls += "?" + c.urlParams_.Encode()
6997 req, err := http.NewRequest("PATCH", urls, body)
6998 if err != nil {
6999 return nil, err
7000 }
7001 req.Header = reqHeaders
7002 googleapi.Expand(req.URL, map[string]string{
7003 "name": c.name,
7004 })
7005 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7006 }
7007
7008
7009
7010
7011
7012
7013 func (c *GroupsUpdateSecuritySettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7014 gensupport.SetOptions(c.urlParams_, opts...)
7015 res, err := c.doRequest("json")
7016 if res != nil && res.StatusCode == http.StatusNotModified {
7017 if res.Body != nil {
7018 res.Body.Close()
7019 }
7020 return nil, gensupport.WrapError(&googleapi.Error{
7021 Code: res.StatusCode,
7022 Header: res.Header,
7023 })
7024 }
7025 if err != nil {
7026 return nil, err
7027 }
7028 defer googleapi.CloseBody(res)
7029 if err := googleapi.CheckResponse(res); err != nil {
7030 return nil, gensupport.WrapError(err)
7031 }
7032 ret := &Operation{
7033 ServerResponse: googleapi.ServerResponse{
7034 Header: res.Header,
7035 HTTPStatusCode: res.StatusCode,
7036 },
7037 }
7038 target := &ret
7039 if err := gensupport.DecodeResponse(target, res); err != nil {
7040 return nil, err
7041 }
7042 return ret, nil
7043 }
7044
7045 type GroupsMembershipsCheckTransitiveMembershipCall struct {
7046 s *Service
7047 parent string
7048 urlParams_ gensupport.URLParams
7049 ifNoneMatch_ string
7050 ctx_ context.Context
7051 header_ http.Header
7052 }
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069 func (r *GroupsMembershipsService) CheckTransitiveMembership(parent string) *GroupsMembershipsCheckTransitiveMembershipCall {
7070 c := &GroupsMembershipsCheckTransitiveMembershipCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7071 c.parent = parent
7072 return c
7073 }
7074
7075
7076
7077
7078
7079
7080
7081 func (c *GroupsMembershipsCheckTransitiveMembershipCall) Query(query string) *GroupsMembershipsCheckTransitiveMembershipCall {
7082 c.urlParams_.Set("query", query)
7083 return c
7084 }
7085
7086
7087
7088
7089 func (c *GroupsMembershipsCheckTransitiveMembershipCall) Fields(s ...googleapi.Field) *GroupsMembershipsCheckTransitiveMembershipCall {
7090 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7091 return c
7092 }
7093
7094
7095
7096
7097 func (c *GroupsMembershipsCheckTransitiveMembershipCall) IfNoneMatch(entityTag string) *GroupsMembershipsCheckTransitiveMembershipCall {
7098 c.ifNoneMatch_ = entityTag
7099 return c
7100 }
7101
7102
7103 func (c *GroupsMembershipsCheckTransitiveMembershipCall) Context(ctx context.Context) *GroupsMembershipsCheckTransitiveMembershipCall {
7104 c.ctx_ = ctx
7105 return c
7106 }
7107
7108
7109
7110 func (c *GroupsMembershipsCheckTransitiveMembershipCall) Header() http.Header {
7111 if c.header_ == nil {
7112 c.header_ = make(http.Header)
7113 }
7114 return c.header_
7115 }
7116
7117 func (c *GroupsMembershipsCheckTransitiveMembershipCall) doRequest(alt string) (*http.Response, error) {
7118 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7119 if c.ifNoneMatch_ != "" {
7120 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7121 }
7122 var body io.Reader = nil
7123 c.urlParams_.Set("alt", alt)
7124 c.urlParams_.Set("prettyPrint", "false")
7125 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships:checkTransitiveMembership")
7126 urls += "?" + c.urlParams_.Encode()
7127 req, err := http.NewRequest("GET", urls, body)
7128 if err != nil {
7129 return nil, err
7130 }
7131 req.Header = reqHeaders
7132 googleapi.Expand(req.URL, map[string]string{
7133 "parent": c.parent,
7134 })
7135 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7136 }
7137
7138
7139
7140
7141
7142
7143
7144 func (c *GroupsMembershipsCheckTransitiveMembershipCall) Do(opts ...googleapi.CallOption) (*CheckTransitiveMembershipResponse, error) {
7145 gensupport.SetOptions(c.urlParams_, opts...)
7146 res, err := c.doRequest("json")
7147 if res != nil && res.StatusCode == http.StatusNotModified {
7148 if res.Body != nil {
7149 res.Body.Close()
7150 }
7151 return nil, gensupport.WrapError(&googleapi.Error{
7152 Code: res.StatusCode,
7153 Header: res.Header,
7154 })
7155 }
7156 if err != nil {
7157 return nil, err
7158 }
7159 defer googleapi.CloseBody(res)
7160 if err := googleapi.CheckResponse(res); err != nil {
7161 return nil, gensupport.WrapError(err)
7162 }
7163 ret := &CheckTransitiveMembershipResponse{
7164 ServerResponse: googleapi.ServerResponse{
7165 Header: res.Header,
7166 HTTPStatusCode: res.StatusCode,
7167 },
7168 }
7169 target := &ret
7170 if err := gensupport.DecodeResponse(target, res); err != nil {
7171 return nil, err
7172 }
7173 return ret, nil
7174 }
7175
7176 type GroupsMembershipsCreateCall struct {
7177 s *Service
7178 parent string
7179 membership *Membership
7180 urlParams_ gensupport.URLParams
7181 ctx_ context.Context
7182 header_ http.Header
7183 }
7184
7185
7186
7187
7188
7189 func (r *GroupsMembershipsService) Create(parent string, membership *Membership) *GroupsMembershipsCreateCall {
7190 c := &GroupsMembershipsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7191 c.parent = parent
7192 c.membership = membership
7193 return c
7194 }
7195
7196
7197
7198
7199 func (c *GroupsMembershipsCreateCall) Fields(s ...googleapi.Field) *GroupsMembershipsCreateCall {
7200 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7201 return c
7202 }
7203
7204
7205 func (c *GroupsMembershipsCreateCall) Context(ctx context.Context) *GroupsMembershipsCreateCall {
7206 c.ctx_ = ctx
7207 return c
7208 }
7209
7210
7211
7212 func (c *GroupsMembershipsCreateCall) Header() http.Header {
7213 if c.header_ == nil {
7214 c.header_ = make(http.Header)
7215 }
7216 return c.header_
7217 }
7218
7219 func (c *GroupsMembershipsCreateCall) doRequest(alt string) (*http.Response, error) {
7220 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7221 var body io.Reader = nil
7222 body, err := googleapi.WithoutDataWrapper.JSONReader(c.membership)
7223 if err != nil {
7224 return nil, err
7225 }
7226 c.urlParams_.Set("alt", alt)
7227 c.urlParams_.Set("prettyPrint", "false")
7228 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships")
7229 urls += "?" + c.urlParams_.Encode()
7230 req, err := http.NewRequest("POST", urls, body)
7231 if err != nil {
7232 return nil, err
7233 }
7234 req.Header = reqHeaders
7235 googleapi.Expand(req.URL, map[string]string{
7236 "parent": c.parent,
7237 })
7238 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7239 }
7240
7241
7242
7243
7244
7245
7246 func (c *GroupsMembershipsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7247 gensupport.SetOptions(c.urlParams_, opts...)
7248 res, err := c.doRequest("json")
7249 if res != nil && res.StatusCode == http.StatusNotModified {
7250 if res.Body != nil {
7251 res.Body.Close()
7252 }
7253 return nil, gensupport.WrapError(&googleapi.Error{
7254 Code: res.StatusCode,
7255 Header: res.Header,
7256 })
7257 }
7258 if err != nil {
7259 return nil, err
7260 }
7261 defer googleapi.CloseBody(res)
7262 if err := googleapi.CheckResponse(res); err != nil {
7263 return nil, gensupport.WrapError(err)
7264 }
7265 ret := &Operation{
7266 ServerResponse: googleapi.ServerResponse{
7267 Header: res.Header,
7268 HTTPStatusCode: res.StatusCode,
7269 },
7270 }
7271 target := &ret
7272 if err := gensupport.DecodeResponse(target, res); err != nil {
7273 return nil, err
7274 }
7275 return ret, nil
7276 }
7277
7278 type GroupsMembershipsDeleteCall struct {
7279 s *Service
7280 name string
7281 urlParams_ gensupport.URLParams
7282 ctx_ context.Context
7283 header_ http.Header
7284 }
7285
7286
7287
7288
7289
7290
7291 func (r *GroupsMembershipsService) Delete(name string) *GroupsMembershipsDeleteCall {
7292 c := &GroupsMembershipsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7293 c.name = name
7294 return c
7295 }
7296
7297
7298
7299
7300 func (c *GroupsMembershipsDeleteCall) Fields(s ...googleapi.Field) *GroupsMembershipsDeleteCall {
7301 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7302 return c
7303 }
7304
7305
7306 func (c *GroupsMembershipsDeleteCall) Context(ctx context.Context) *GroupsMembershipsDeleteCall {
7307 c.ctx_ = ctx
7308 return c
7309 }
7310
7311
7312
7313 func (c *GroupsMembershipsDeleteCall) Header() http.Header {
7314 if c.header_ == nil {
7315 c.header_ = make(http.Header)
7316 }
7317 return c.header_
7318 }
7319
7320 func (c *GroupsMembershipsDeleteCall) doRequest(alt string) (*http.Response, error) {
7321 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7322 var body io.Reader = nil
7323 c.urlParams_.Set("alt", alt)
7324 c.urlParams_.Set("prettyPrint", "false")
7325 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7326 urls += "?" + c.urlParams_.Encode()
7327 req, err := http.NewRequest("DELETE", urls, body)
7328 if err != nil {
7329 return nil, err
7330 }
7331 req.Header = reqHeaders
7332 googleapi.Expand(req.URL, map[string]string{
7333 "name": c.name,
7334 })
7335 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7336 }
7337
7338
7339
7340
7341
7342
7343 func (c *GroupsMembershipsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7344 gensupport.SetOptions(c.urlParams_, opts...)
7345 res, err := c.doRequest("json")
7346 if res != nil && res.StatusCode == http.StatusNotModified {
7347 if res.Body != nil {
7348 res.Body.Close()
7349 }
7350 return nil, gensupport.WrapError(&googleapi.Error{
7351 Code: res.StatusCode,
7352 Header: res.Header,
7353 })
7354 }
7355 if err != nil {
7356 return nil, err
7357 }
7358 defer googleapi.CloseBody(res)
7359 if err := googleapi.CheckResponse(res); err != nil {
7360 return nil, gensupport.WrapError(err)
7361 }
7362 ret := &Operation{
7363 ServerResponse: googleapi.ServerResponse{
7364 Header: res.Header,
7365 HTTPStatusCode: res.StatusCode,
7366 },
7367 }
7368 target := &ret
7369 if err := gensupport.DecodeResponse(target, res); err != nil {
7370 return nil, err
7371 }
7372 return ret, nil
7373 }
7374
7375 type GroupsMembershipsGetCall struct {
7376 s *Service
7377 name string
7378 urlParams_ gensupport.URLParams
7379 ifNoneMatch_ string
7380 ctx_ context.Context
7381 header_ http.Header
7382 }
7383
7384
7385
7386
7387
7388
7389
7390 func (r *GroupsMembershipsService) Get(name string) *GroupsMembershipsGetCall {
7391 c := &GroupsMembershipsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7392 c.name = name
7393 return c
7394 }
7395
7396
7397
7398
7399 func (c *GroupsMembershipsGetCall) Fields(s ...googleapi.Field) *GroupsMembershipsGetCall {
7400 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7401 return c
7402 }
7403
7404
7405
7406
7407 func (c *GroupsMembershipsGetCall) IfNoneMatch(entityTag string) *GroupsMembershipsGetCall {
7408 c.ifNoneMatch_ = entityTag
7409 return c
7410 }
7411
7412
7413 func (c *GroupsMembershipsGetCall) Context(ctx context.Context) *GroupsMembershipsGetCall {
7414 c.ctx_ = ctx
7415 return c
7416 }
7417
7418
7419
7420 func (c *GroupsMembershipsGetCall) Header() http.Header {
7421 if c.header_ == nil {
7422 c.header_ = make(http.Header)
7423 }
7424 return c.header_
7425 }
7426
7427 func (c *GroupsMembershipsGetCall) doRequest(alt string) (*http.Response, error) {
7428 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7429 if c.ifNoneMatch_ != "" {
7430 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7431 }
7432 var body io.Reader = nil
7433 c.urlParams_.Set("alt", alt)
7434 c.urlParams_.Set("prettyPrint", "false")
7435 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7436 urls += "?" + c.urlParams_.Encode()
7437 req, err := http.NewRequest("GET", urls, body)
7438 if err != nil {
7439 return nil, err
7440 }
7441 req.Header = reqHeaders
7442 googleapi.Expand(req.URL, map[string]string{
7443 "name": c.name,
7444 })
7445 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7446 }
7447
7448
7449
7450
7451
7452
7453 func (c *GroupsMembershipsGetCall) Do(opts ...googleapi.CallOption) (*Membership, error) {
7454 gensupport.SetOptions(c.urlParams_, opts...)
7455 res, err := c.doRequest("json")
7456 if res != nil && res.StatusCode == http.StatusNotModified {
7457 if res.Body != nil {
7458 res.Body.Close()
7459 }
7460 return nil, gensupport.WrapError(&googleapi.Error{
7461 Code: res.StatusCode,
7462 Header: res.Header,
7463 })
7464 }
7465 if err != nil {
7466 return nil, err
7467 }
7468 defer googleapi.CloseBody(res)
7469 if err := googleapi.CheckResponse(res); err != nil {
7470 return nil, gensupport.WrapError(err)
7471 }
7472 ret := &Membership{
7473 ServerResponse: googleapi.ServerResponse{
7474 Header: res.Header,
7475 HTTPStatusCode: res.StatusCode,
7476 },
7477 }
7478 target := &ret
7479 if err := gensupport.DecodeResponse(target, res); err != nil {
7480 return nil, err
7481 }
7482 return ret, nil
7483 }
7484
7485 type GroupsMembershipsGetMembershipGraphCall struct {
7486 s *Service
7487 parent string
7488 urlParams_ gensupport.URLParams
7489 ifNoneMatch_ string
7490 ctx_ context.Context
7491 header_ http.Header
7492 }
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 func (r *GroupsMembershipsService) GetMembershipGraph(parent string) *GroupsMembershipsGetMembershipGraphCall {
7512 c := &GroupsMembershipsGetMembershipGraphCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7513 c.parent = parent
7514 return c
7515 }
7516
7517
7518
7519
7520
7521
7522 func (c *GroupsMembershipsGetMembershipGraphCall) Query(query string) *GroupsMembershipsGetMembershipGraphCall {
7523 c.urlParams_.Set("query", query)
7524 return c
7525 }
7526
7527
7528
7529
7530 func (c *GroupsMembershipsGetMembershipGraphCall) Fields(s ...googleapi.Field) *GroupsMembershipsGetMembershipGraphCall {
7531 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7532 return c
7533 }
7534
7535
7536
7537
7538 func (c *GroupsMembershipsGetMembershipGraphCall) IfNoneMatch(entityTag string) *GroupsMembershipsGetMembershipGraphCall {
7539 c.ifNoneMatch_ = entityTag
7540 return c
7541 }
7542
7543
7544 func (c *GroupsMembershipsGetMembershipGraphCall) Context(ctx context.Context) *GroupsMembershipsGetMembershipGraphCall {
7545 c.ctx_ = ctx
7546 return c
7547 }
7548
7549
7550
7551 func (c *GroupsMembershipsGetMembershipGraphCall) Header() http.Header {
7552 if c.header_ == nil {
7553 c.header_ = make(http.Header)
7554 }
7555 return c.header_
7556 }
7557
7558 func (c *GroupsMembershipsGetMembershipGraphCall) doRequest(alt string) (*http.Response, error) {
7559 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7560 if c.ifNoneMatch_ != "" {
7561 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7562 }
7563 var body io.Reader = nil
7564 c.urlParams_.Set("alt", alt)
7565 c.urlParams_.Set("prettyPrint", "false")
7566 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships:getMembershipGraph")
7567 urls += "?" + c.urlParams_.Encode()
7568 req, err := http.NewRequest("GET", urls, body)
7569 if err != nil {
7570 return nil, err
7571 }
7572 req.Header = reqHeaders
7573 googleapi.Expand(req.URL, map[string]string{
7574 "parent": c.parent,
7575 })
7576 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7577 }
7578
7579
7580
7581
7582
7583
7584 func (c *GroupsMembershipsGetMembershipGraphCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7585 gensupport.SetOptions(c.urlParams_, opts...)
7586 res, err := c.doRequest("json")
7587 if res != nil && res.StatusCode == http.StatusNotModified {
7588 if res.Body != nil {
7589 res.Body.Close()
7590 }
7591 return nil, gensupport.WrapError(&googleapi.Error{
7592 Code: res.StatusCode,
7593 Header: res.Header,
7594 })
7595 }
7596 if err != nil {
7597 return nil, err
7598 }
7599 defer googleapi.CloseBody(res)
7600 if err := googleapi.CheckResponse(res); err != nil {
7601 return nil, gensupport.WrapError(err)
7602 }
7603 ret := &Operation{
7604 ServerResponse: googleapi.ServerResponse{
7605 Header: res.Header,
7606 HTTPStatusCode: res.StatusCode,
7607 },
7608 }
7609 target := &ret
7610 if err := gensupport.DecodeResponse(target, res); err != nil {
7611 return nil, err
7612 }
7613 return ret, nil
7614 }
7615
7616 type GroupsMembershipsListCall struct {
7617 s *Service
7618 parent string
7619 urlParams_ gensupport.URLParams
7620 ifNoneMatch_ string
7621 ctx_ context.Context
7622 header_ http.Header
7623 }
7624
7625
7626
7627
7628
7629 func (r *GroupsMembershipsService) List(parent string) *GroupsMembershipsListCall {
7630 c := &GroupsMembershipsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7631 c.parent = parent
7632 return c
7633 }
7634
7635
7636
7637
7638
7639
7640
7641
7642 func (c *GroupsMembershipsListCall) PageSize(pageSize int64) *GroupsMembershipsListCall {
7643 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7644 return c
7645 }
7646
7647
7648
7649 func (c *GroupsMembershipsListCall) PageToken(pageToken string) *GroupsMembershipsListCall {
7650 c.urlParams_.Set("pageToken", pageToken)
7651 return c
7652 }
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662 func (c *GroupsMembershipsListCall) View(view string) *GroupsMembershipsListCall {
7663 c.urlParams_.Set("view", view)
7664 return c
7665 }
7666
7667
7668
7669
7670 func (c *GroupsMembershipsListCall) Fields(s ...googleapi.Field) *GroupsMembershipsListCall {
7671 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7672 return c
7673 }
7674
7675
7676
7677
7678 func (c *GroupsMembershipsListCall) IfNoneMatch(entityTag string) *GroupsMembershipsListCall {
7679 c.ifNoneMatch_ = entityTag
7680 return c
7681 }
7682
7683
7684 func (c *GroupsMembershipsListCall) Context(ctx context.Context) *GroupsMembershipsListCall {
7685 c.ctx_ = ctx
7686 return c
7687 }
7688
7689
7690
7691 func (c *GroupsMembershipsListCall) Header() http.Header {
7692 if c.header_ == nil {
7693 c.header_ = make(http.Header)
7694 }
7695 return c.header_
7696 }
7697
7698 func (c *GroupsMembershipsListCall) doRequest(alt string) (*http.Response, error) {
7699 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7700 if c.ifNoneMatch_ != "" {
7701 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7702 }
7703 var body io.Reader = nil
7704 c.urlParams_.Set("alt", alt)
7705 c.urlParams_.Set("prettyPrint", "false")
7706 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships")
7707 urls += "?" + c.urlParams_.Encode()
7708 req, err := http.NewRequest("GET", urls, body)
7709 if err != nil {
7710 return nil, err
7711 }
7712 req.Header = reqHeaders
7713 googleapi.Expand(req.URL, map[string]string{
7714 "parent": c.parent,
7715 })
7716 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7717 }
7718
7719
7720
7721
7722
7723
7724
7725 func (c *GroupsMembershipsListCall) Do(opts ...googleapi.CallOption) (*ListMembershipsResponse, error) {
7726 gensupport.SetOptions(c.urlParams_, opts...)
7727 res, err := c.doRequest("json")
7728 if res != nil && res.StatusCode == http.StatusNotModified {
7729 if res.Body != nil {
7730 res.Body.Close()
7731 }
7732 return nil, gensupport.WrapError(&googleapi.Error{
7733 Code: res.StatusCode,
7734 Header: res.Header,
7735 })
7736 }
7737 if err != nil {
7738 return nil, err
7739 }
7740 defer googleapi.CloseBody(res)
7741 if err := googleapi.CheckResponse(res); err != nil {
7742 return nil, gensupport.WrapError(err)
7743 }
7744 ret := &ListMembershipsResponse{
7745 ServerResponse: googleapi.ServerResponse{
7746 Header: res.Header,
7747 HTTPStatusCode: res.StatusCode,
7748 },
7749 }
7750 target := &ret
7751 if err := gensupport.DecodeResponse(target, res); err != nil {
7752 return nil, err
7753 }
7754 return ret, nil
7755 }
7756
7757
7758
7759
7760 func (c *GroupsMembershipsListCall) Pages(ctx context.Context, f func(*ListMembershipsResponse) error) error {
7761 c.ctx_ = ctx
7762 defer c.PageToken(c.urlParams_.Get("pageToken"))
7763 for {
7764 x, err := c.Do()
7765 if err != nil {
7766 return err
7767 }
7768 if err := f(x); err != nil {
7769 return err
7770 }
7771 if x.NextPageToken == "" {
7772 return nil
7773 }
7774 c.PageToken(x.NextPageToken)
7775 }
7776 }
7777
7778 type GroupsMembershipsLookupCall struct {
7779 s *Service
7780 parent string
7781 urlParams_ gensupport.URLParams
7782 ifNoneMatch_ string
7783 ctx_ context.Context
7784 header_ http.Header
7785 }
7786
7787
7788
7789
7790
7791
7792
7793 func (r *GroupsMembershipsService) Lookup(parent string) *GroupsMembershipsLookupCall {
7794 c := &GroupsMembershipsLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7795 c.parent = parent
7796 return c
7797 }
7798
7799
7800
7801
7802
7803
7804
7805 func (c *GroupsMembershipsLookupCall) MemberKeyId(memberKeyId string) *GroupsMembershipsLookupCall {
7806 c.urlParams_.Set("memberKey.id", memberKeyId)
7807 return c
7808 }
7809
7810
7811
7812
7813
7814
7815
7816 func (c *GroupsMembershipsLookupCall) MemberKeyNamespace(memberKeyNamespace string) *GroupsMembershipsLookupCall {
7817 c.urlParams_.Set("memberKey.namespace", memberKeyNamespace)
7818 return c
7819 }
7820
7821
7822
7823
7824 func (c *GroupsMembershipsLookupCall) Fields(s ...googleapi.Field) *GroupsMembershipsLookupCall {
7825 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7826 return c
7827 }
7828
7829
7830
7831
7832 func (c *GroupsMembershipsLookupCall) IfNoneMatch(entityTag string) *GroupsMembershipsLookupCall {
7833 c.ifNoneMatch_ = entityTag
7834 return c
7835 }
7836
7837
7838 func (c *GroupsMembershipsLookupCall) Context(ctx context.Context) *GroupsMembershipsLookupCall {
7839 c.ctx_ = ctx
7840 return c
7841 }
7842
7843
7844
7845 func (c *GroupsMembershipsLookupCall) Header() http.Header {
7846 if c.header_ == nil {
7847 c.header_ = make(http.Header)
7848 }
7849 return c.header_
7850 }
7851
7852 func (c *GroupsMembershipsLookupCall) doRequest(alt string) (*http.Response, error) {
7853 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7854 if c.ifNoneMatch_ != "" {
7855 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7856 }
7857 var body io.Reader = nil
7858 c.urlParams_.Set("alt", alt)
7859 c.urlParams_.Set("prettyPrint", "false")
7860 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships:lookup")
7861 urls += "?" + c.urlParams_.Encode()
7862 req, err := http.NewRequest("GET", urls, body)
7863 if err != nil {
7864 return nil, err
7865 }
7866 req.Header = reqHeaders
7867 googleapi.Expand(req.URL, map[string]string{
7868 "parent": c.parent,
7869 })
7870 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7871 }
7872
7873
7874
7875
7876
7877
7878
7879 func (c *GroupsMembershipsLookupCall) Do(opts ...googleapi.CallOption) (*LookupMembershipNameResponse, error) {
7880 gensupport.SetOptions(c.urlParams_, opts...)
7881 res, err := c.doRequest("json")
7882 if res != nil && res.StatusCode == http.StatusNotModified {
7883 if res.Body != nil {
7884 res.Body.Close()
7885 }
7886 return nil, gensupport.WrapError(&googleapi.Error{
7887 Code: res.StatusCode,
7888 Header: res.Header,
7889 })
7890 }
7891 if err != nil {
7892 return nil, err
7893 }
7894 defer googleapi.CloseBody(res)
7895 if err := googleapi.CheckResponse(res); err != nil {
7896 return nil, gensupport.WrapError(err)
7897 }
7898 ret := &LookupMembershipNameResponse{
7899 ServerResponse: googleapi.ServerResponse{
7900 Header: res.Header,
7901 HTTPStatusCode: res.StatusCode,
7902 },
7903 }
7904 target := &ret
7905 if err := gensupport.DecodeResponse(target, res); err != nil {
7906 return nil, err
7907 }
7908 return ret, nil
7909 }
7910
7911 type GroupsMembershipsModifyMembershipRolesCall struct {
7912 s *Service
7913 name string
7914 modifymembershiprolesrequest *ModifyMembershipRolesRequest
7915 urlParams_ gensupport.URLParams
7916 ctx_ context.Context
7917 header_ http.Header
7918 }
7919
7920
7921
7922
7923
7924
7925
7926 func (r *GroupsMembershipsService) ModifyMembershipRoles(name string, modifymembershiprolesrequest *ModifyMembershipRolesRequest) *GroupsMembershipsModifyMembershipRolesCall {
7927 c := &GroupsMembershipsModifyMembershipRolesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7928 c.name = name
7929 c.modifymembershiprolesrequest = modifymembershiprolesrequest
7930 return c
7931 }
7932
7933
7934
7935
7936 func (c *GroupsMembershipsModifyMembershipRolesCall) Fields(s ...googleapi.Field) *GroupsMembershipsModifyMembershipRolesCall {
7937 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7938 return c
7939 }
7940
7941
7942 func (c *GroupsMembershipsModifyMembershipRolesCall) Context(ctx context.Context) *GroupsMembershipsModifyMembershipRolesCall {
7943 c.ctx_ = ctx
7944 return c
7945 }
7946
7947
7948
7949 func (c *GroupsMembershipsModifyMembershipRolesCall) Header() http.Header {
7950 if c.header_ == nil {
7951 c.header_ = make(http.Header)
7952 }
7953 return c.header_
7954 }
7955
7956 func (c *GroupsMembershipsModifyMembershipRolesCall) doRequest(alt string) (*http.Response, error) {
7957 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7958 var body io.Reader = nil
7959 body, err := googleapi.WithoutDataWrapper.JSONReader(c.modifymembershiprolesrequest)
7960 if err != nil {
7961 return nil, err
7962 }
7963 c.urlParams_.Set("alt", alt)
7964 c.urlParams_.Set("prettyPrint", "false")
7965 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:modifyMembershipRoles")
7966 urls += "?" + c.urlParams_.Encode()
7967 req, err := http.NewRequest("POST", urls, body)
7968 if err != nil {
7969 return nil, err
7970 }
7971 req.Header = reqHeaders
7972 googleapi.Expand(req.URL, map[string]string{
7973 "name": c.name,
7974 })
7975 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7976 }
7977
7978
7979
7980
7981
7982
7983
7984 func (c *GroupsMembershipsModifyMembershipRolesCall) Do(opts ...googleapi.CallOption) (*ModifyMembershipRolesResponse, error) {
7985 gensupport.SetOptions(c.urlParams_, opts...)
7986 res, err := c.doRequest("json")
7987 if res != nil && res.StatusCode == http.StatusNotModified {
7988 if res.Body != nil {
7989 res.Body.Close()
7990 }
7991 return nil, gensupport.WrapError(&googleapi.Error{
7992 Code: res.StatusCode,
7993 Header: res.Header,
7994 })
7995 }
7996 if err != nil {
7997 return nil, err
7998 }
7999 defer googleapi.CloseBody(res)
8000 if err := googleapi.CheckResponse(res); err != nil {
8001 return nil, gensupport.WrapError(err)
8002 }
8003 ret := &ModifyMembershipRolesResponse{
8004 ServerResponse: googleapi.ServerResponse{
8005 Header: res.Header,
8006 HTTPStatusCode: res.StatusCode,
8007 },
8008 }
8009 target := &ret
8010 if err := gensupport.DecodeResponse(target, res); err != nil {
8011 return nil, err
8012 }
8013 return ret, nil
8014 }
8015
8016 type GroupsMembershipsSearchDirectGroupsCall struct {
8017 s *Service
8018 parent string
8019 urlParams_ gensupport.URLParams
8020 ifNoneMatch_ string
8021 ctx_ context.Context
8022 header_ http.Header
8023 }
8024
8025
8026
8027
8028
8029
8030
8031
8032 func (r *GroupsMembershipsService) SearchDirectGroups(parent string) *GroupsMembershipsSearchDirectGroupsCall {
8033 c := &GroupsMembershipsSearchDirectGroupsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8034 c.parent = parent
8035 return c
8036 }
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047 func (c *GroupsMembershipsSearchDirectGroupsCall) OrderBy(orderBy string) *GroupsMembershipsSearchDirectGroupsCall {
8048 c.urlParams_.Set("orderBy", orderBy)
8049 return c
8050 }
8051
8052
8053
8054 func (c *GroupsMembershipsSearchDirectGroupsCall) PageSize(pageSize int64) *GroupsMembershipsSearchDirectGroupsCall {
8055 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8056 return c
8057 }
8058
8059
8060
8061 func (c *GroupsMembershipsSearchDirectGroupsCall) PageToken(pageToken string) *GroupsMembershipsSearchDirectGroupsCall {
8062 c.urlParams_.Set("pageToken", pageToken)
8063 return c
8064 }
8065
8066
8067
8068
8069
8070
8071
8072
8073 func (c *GroupsMembershipsSearchDirectGroupsCall) Query(query string) *GroupsMembershipsSearchDirectGroupsCall {
8074 c.urlParams_.Set("query", query)
8075 return c
8076 }
8077
8078
8079
8080
8081 func (c *GroupsMembershipsSearchDirectGroupsCall) Fields(s ...googleapi.Field) *GroupsMembershipsSearchDirectGroupsCall {
8082 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8083 return c
8084 }
8085
8086
8087
8088
8089 func (c *GroupsMembershipsSearchDirectGroupsCall) IfNoneMatch(entityTag string) *GroupsMembershipsSearchDirectGroupsCall {
8090 c.ifNoneMatch_ = entityTag
8091 return c
8092 }
8093
8094
8095 func (c *GroupsMembershipsSearchDirectGroupsCall) Context(ctx context.Context) *GroupsMembershipsSearchDirectGroupsCall {
8096 c.ctx_ = ctx
8097 return c
8098 }
8099
8100
8101
8102 func (c *GroupsMembershipsSearchDirectGroupsCall) Header() http.Header {
8103 if c.header_ == nil {
8104 c.header_ = make(http.Header)
8105 }
8106 return c.header_
8107 }
8108
8109 func (c *GroupsMembershipsSearchDirectGroupsCall) doRequest(alt string) (*http.Response, error) {
8110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8111 if c.ifNoneMatch_ != "" {
8112 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8113 }
8114 var body io.Reader = nil
8115 c.urlParams_.Set("alt", alt)
8116 c.urlParams_.Set("prettyPrint", "false")
8117 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships:searchDirectGroups")
8118 urls += "?" + c.urlParams_.Encode()
8119 req, err := http.NewRequest("GET", urls, body)
8120 if err != nil {
8121 return nil, err
8122 }
8123 req.Header = reqHeaders
8124 googleapi.Expand(req.URL, map[string]string{
8125 "parent": c.parent,
8126 })
8127 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8128 }
8129
8130
8131
8132
8133
8134
8135
8136 func (c *GroupsMembershipsSearchDirectGroupsCall) Do(opts ...googleapi.CallOption) (*SearchDirectGroupsResponse, error) {
8137 gensupport.SetOptions(c.urlParams_, opts...)
8138 res, err := c.doRequest("json")
8139 if res != nil && res.StatusCode == http.StatusNotModified {
8140 if res.Body != nil {
8141 res.Body.Close()
8142 }
8143 return nil, gensupport.WrapError(&googleapi.Error{
8144 Code: res.StatusCode,
8145 Header: res.Header,
8146 })
8147 }
8148 if err != nil {
8149 return nil, err
8150 }
8151 defer googleapi.CloseBody(res)
8152 if err := googleapi.CheckResponse(res); err != nil {
8153 return nil, gensupport.WrapError(err)
8154 }
8155 ret := &SearchDirectGroupsResponse{
8156 ServerResponse: googleapi.ServerResponse{
8157 Header: res.Header,
8158 HTTPStatusCode: res.StatusCode,
8159 },
8160 }
8161 target := &ret
8162 if err := gensupport.DecodeResponse(target, res); err != nil {
8163 return nil, err
8164 }
8165 return ret, nil
8166 }
8167
8168
8169
8170
8171 func (c *GroupsMembershipsSearchDirectGroupsCall) Pages(ctx context.Context, f func(*SearchDirectGroupsResponse) error) error {
8172 c.ctx_ = ctx
8173 defer c.PageToken(c.urlParams_.Get("pageToken"))
8174 for {
8175 x, err := c.Do()
8176 if err != nil {
8177 return err
8178 }
8179 if err := f(x); err != nil {
8180 return err
8181 }
8182 if x.NextPageToken == "" {
8183 return nil
8184 }
8185 c.PageToken(x.NextPageToken)
8186 }
8187 }
8188
8189 type GroupsMembershipsSearchTransitiveGroupsCall struct {
8190 s *Service
8191 parent string
8192 urlParams_ gensupport.URLParams
8193 ifNoneMatch_ string
8194 ctx_ context.Context
8195 header_ http.Header
8196 }
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211 func (r *GroupsMembershipsService) SearchTransitiveGroups(parent string) *GroupsMembershipsSearchTransitiveGroupsCall {
8212 c := &GroupsMembershipsSearchTransitiveGroupsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8213 c.parent = parent
8214 return c
8215 }
8216
8217
8218
8219 func (c *GroupsMembershipsSearchTransitiveGroupsCall) PageSize(pageSize int64) *GroupsMembershipsSearchTransitiveGroupsCall {
8220 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8221 return c
8222 }
8223
8224
8225
8226 func (c *GroupsMembershipsSearchTransitiveGroupsCall) PageToken(pageToken string) *GroupsMembershipsSearchTransitiveGroupsCall {
8227 c.urlParams_.Set("pageToken", pageToken)
8228 return c
8229 }
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244 func (c *GroupsMembershipsSearchTransitiveGroupsCall) Query(query string) *GroupsMembershipsSearchTransitiveGroupsCall {
8245 c.urlParams_.Set("query", query)
8246 return c
8247 }
8248
8249
8250
8251
8252 func (c *GroupsMembershipsSearchTransitiveGroupsCall) Fields(s ...googleapi.Field) *GroupsMembershipsSearchTransitiveGroupsCall {
8253 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8254 return c
8255 }
8256
8257
8258
8259
8260 func (c *GroupsMembershipsSearchTransitiveGroupsCall) IfNoneMatch(entityTag string) *GroupsMembershipsSearchTransitiveGroupsCall {
8261 c.ifNoneMatch_ = entityTag
8262 return c
8263 }
8264
8265
8266 func (c *GroupsMembershipsSearchTransitiveGroupsCall) Context(ctx context.Context) *GroupsMembershipsSearchTransitiveGroupsCall {
8267 c.ctx_ = ctx
8268 return c
8269 }
8270
8271
8272
8273 func (c *GroupsMembershipsSearchTransitiveGroupsCall) Header() http.Header {
8274 if c.header_ == nil {
8275 c.header_ = make(http.Header)
8276 }
8277 return c.header_
8278 }
8279
8280 func (c *GroupsMembershipsSearchTransitiveGroupsCall) doRequest(alt string) (*http.Response, error) {
8281 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8282 if c.ifNoneMatch_ != "" {
8283 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8284 }
8285 var body io.Reader = nil
8286 c.urlParams_.Set("alt", alt)
8287 c.urlParams_.Set("prettyPrint", "false")
8288 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships:searchTransitiveGroups")
8289 urls += "?" + c.urlParams_.Encode()
8290 req, err := http.NewRequest("GET", urls, body)
8291 if err != nil {
8292 return nil, err
8293 }
8294 req.Header = reqHeaders
8295 googleapi.Expand(req.URL, map[string]string{
8296 "parent": c.parent,
8297 })
8298 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8299 }
8300
8301
8302
8303
8304
8305
8306
8307 func (c *GroupsMembershipsSearchTransitiveGroupsCall) Do(opts ...googleapi.CallOption) (*SearchTransitiveGroupsResponse, error) {
8308 gensupport.SetOptions(c.urlParams_, opts...)
8309 res, err := c.doRequest("json")
8310 if res != nil && res.StatusCode == http.StatusNotModified {
8311 if res.Body != nil {
8312 res.Body.Close()
8313 }
8314 return nil, gensupport.WrapError(&googleapi.Error{
8315 Code: res.StatusCode,
8316 Header: res.Header,
8317 })
8318 }
8319 if err != nil {
8320 return nil, err
8321 }
8322 defer googleapi.CloseBody(res)
8323 if err := googleapi.CheckResponse(res); err != nil {
8324 return nil, gensupport.WrapError(err)
8325 }
8326 ret := &SearchTransitiveGroupsResponse{
8327 ServerResponse: googleapi.ServerResponse{
8328 Header: res.Header,
8329 HTTPStatusCode: res.StatusCode,
8330 },
8331 }
8332 target := &ret
8333 if err := gensupport.DecodeResponse(target, res); err != nil {
8334 return nil, err
8335 }
8336 return ret, nil
8337 }
8338
8339
8340
8341
8342 func (c *GroupsMembershipsSearchTransitiveGroupsCall) Pages(ctx context.Context, f func(*SearchTransitiveGroupsResponse) error) error {
8343 c.ctx_ = ctx
8344 defer c.PageToken(c.urlParams_.Get("pageToken"))
8345 for {
8346 x, err := c.Do()
8347 if err != nil {
8348 return err
8349 }
8350 if err := f(x); err != nil {
8351 return err
8352 }
8353 if x.NextPageToken == "" {
8354 return nil
8355 }
8356 c.PageToken(x.NextPageToken)
8357 }
8358 }
8359
8360 type GroupsMembershipsSearchTransitiveMembershipsCall struct {
8361 s *Service
8362 parent string
8363 urlParams_ gensupport.URLParams
8364 ifNoneMatch_ string
8365 ctx_ context.Context
8366 header_ http.Header
8367 }
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381 func (r *GroupsMembershipsService) SearchTransitiveMemberships(parent string) *GroupsMembershipsSearchTransitiveMembershipsCall {
8382 c := &GroupsMembershipsSearchTransitiveMembershipsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8383 c.parent = parent
8384 return c
8385 }
8386
8387
8388
8389 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) PageSize(pageSize int64) *GroupsMembershipsSearchTransitiveMembershipsCall {
8390 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8391 return c
8392 }
8393
8394
8395
8396 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) PageToken(pageToken string) *GroupsMembershipsSearchTransitiveMembershipsCall {
8397 c.urlParams_.Set("pageToken", pageToken)
8398 return c
8399 }
8400
8401
8402
8403
8404 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) Fields(s ...googleapi.Field) *GroupsMembershipsSearchTransitiveMembershipsCall {
8405 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8406 return c
8407 }
8408
8409
8410
8411
8412 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) IfNoneMatch(entityTag string) *GroupsMembershipsSearchTransitiveMembershipsCall {
8413 c.ifNoneMatch_ = entityTag
8414 return c
8415 }
8416
8417
8418 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) Context(ctx context.Context) *GroupsMembershipsSearchTransitiveMembershipsCall {
8419 c.ctx_ = ctx
8420 return c
8421 }
8422
8423
8424
8425 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) Header() http.Header {
8426 if c.header_ == nil {
8427 c.header_ = make(http.Header)
8428 }
8429 return c.header_
8430 }
8431
8432 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) doRequest(alt string) (*http.Response, error) {
8433 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8434 if c.ifNoneMatch_ != "" {
8435 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8436 }
8437 var body io.Reader = nil
8438 c.urlParams_.Set("alt", alt)
8439 c.urlParams_.Set("prettyPrint", "false")
8440 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships:searchTransitiveMemberships")
8441 urls += "?" + c.urlParams_.Encode()
8442 req, err := http.NewRequest("GET", urls, body)
8443 if err != nil {
8444 return nil, err
8445 }
8446 req.Header = reqHeaders
8447 googleapi.Expand(req.URL, map[string]string{
8448 "parent": c.parent,
8449 })
8450 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8451 }
8452
8453
8454
8455
8456
8457
8458
8459 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) Do(opts ...googleapi.CallOption) (*SearchTransitiveMembershipsResponse, error) {
8460 gensupport.SetOptions(c.urlParams_, opts...)
8461 res, err := c.doRequest("json")
8462 if res != nil && res.StatusCode == http.StatusNotModified {
8463 if res.Body != nil {
8464 res.Body.Close()
8465 }
8466 return nil, gensupport.WrapError(&googleapi.Error{
8467 Code: res.StatusCode,
8468 Header: res.Header,
8469 })
8470 }
8471 if err != nil {
8472 return nil, err
8473 }
8474 defer googleapi.CloseBody(res)
8475 if err := googleapi.CheckResponse(res); err != nil {
8476 return nil, gensupport.WrapError(err)
8477 }
8478 ret := &SearchTransitiveMembershipsResponse{
8479 ServerResponse: googleapi.ServerResponse{
8480 Header: res.Header,
8481 HTTPStatusCode: res.StatusCode,
8482 },
8483 }
8484 target := &ret
8485 if err := gensupport.DecodeResponse(target, res); err != nil {
8486 return nil, err
8487 }
8488 return ret, nil
8489 }
8490
8491
8492
8493
8494 func (c *GroupsMembershipsSearchTransitiveMembershipsCall) Pages(ctx context.Context, f func(*SearchTransitiveMembershipsResponse) error) error {
8495 c.ctx_ = ctx
8496 defer c.PageToken(c.urlParams_.Get("pageToken"))
8497 for {
8498 x, err := c.Do()
8499 if err != nil {
8500 return err
8501 }
8502 if err := f(x); err != nil {
8503 return err
8504 }
8505 if x.NextPageToken == "" {
8506 return nil
8507 }
8508 c.PageToken(x.NextPageToken)
8509 }
8510 }
8511
8512 type InboundSamlSsoProfilesCreateCall struct {
8513 s *Service
8514 inboundsamlssoprofile *InboundSamlSsoProfile
8515 urlParams_ gensupport.URLParams
8516 ctx_ context.Context
8517 header_ http.Header
8518 }
8519
8520
8521 func (r *InboundSamlSsoProfilesService) Create(inboundsamlssoprofile *InboundSamlSsoProfile) *InboundSamlSsoProfilesCreateCall {
8522 c := &InboundSamlSsoProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8523 c.inboundsamlssoprofile = inboundsamlssoprofile
8524 return c
8525 }
8526
8527
8528
8529
8530 func (c *InboundSamlSsoProfilesCreateCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesCreateCall {
8531 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8532 return c
8533 }
8534
8535
8536 func (c *InboundSamlSsoProfilesCreateCall) Context(ctx context.Context) *InboundSamlSsoProfilesCreateCall {
8537 c.ctx_ = ctx
8538 return c
8539 }
8540
8541
8542
8543 func (c *InboundSamlSsoProfilesCreateCall) Header() http.Header {
8544 if c.header_ == nil {
8545 c.header_ = make(http.Header)
8546 }
8547 return c.header_
8548 }
8549
8550 func (c *InboundSamlSsoProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
8551 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8552 var body io.Reader = nil
8553 body, err := googleapi.WithoutDataWrapper.JSONReader(c.inboundsamlssoprofile)
8554 if err != nil {
8555 return nil, err
8556 }
8557 c.urlParams_.Set("alt", alt)
8558 c.urlParams_.Set("prettyPrint", "false")
8559 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inboundSamlSsoProfiles")
8560 urls += "?" + c.urlParams_.Encode()
8561 req, err := http.NewRequest("POST", urls, body)
8562 if err != nil {
8563 return nil, err
8564 }
8565 req.Header = reqHeaders
8566 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8567 }
8568
8569
8570
8571
8572
8573
8574 func (c *InboundSamlSsoProfilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8575 gensupport.SetOptions(c.urlParams_, opts...)
8576 res, err := c.doRequest("json")
8577 if res != nil && res.StatusCode == http.StatusNotModified {
8578 if res.Body != nil {
8579 res.Body.Close()
8580 }
8581 return nil, gensupport.WrapError(&googleapi.Error{
8582 Code: res.StatusCode,
8583 Header: res.Header,
8584 })
8585 }
8586 if err != nil {
8587 return nil, err
8588 }
8589 defer googleapi.CloseBody(res)
8590 if err := googleapi.CheckResponse(res); err != nil {
8591 return nil, gensupport.WrapError(err)
8592 }
8593 ret := &Operation{
8594 ServerResponse: googleapi.ServerResponse{
8595 Header: res.Header,
8596 HTTPStatusCode: res.StatusCode,
8597 },
8598 }
8599 target := &ret
8600 if err := gensupport.DecodeResponse(target, res); err != nil {
8601 return nil, err
8602 }
8603 return ret, nil
8604 }
8605
8606 type InboundSamlSsoProfilesDeleteCall struct {
8607 s *Service
8608 name string
8609 urlParams_ gensupport.URLParams
8610 ctx_ context.Context
8611 header_ http.Header
8612 }
8613
8614
8615
8616
8617
8618
8619
8620 func (r *InboundSamlSsoProfilesService) Delete(name string) *InboundSamlSsoProfilesDeleteCall {
8621 c := &InboundSamlSsoProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8622 c.name = name
8623 return c
8624 }
8625
8626
8627
8628
8629 func (c *InboundSamlSsoProfilesDeleteCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesDeleteCall {
8630 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8631 return c
8632 }
8633
8634
8635 func (c *InboundSamlSsoProfilesDeleteCall) Context(ctx context.Context) *InboundSamlSsoProfilesDeleteCall {
8636 c.ctx_ = ctx
8637 return c
8638 }
8639
8640
8641
8642 func (c *InboundSamlSsoProfilesDeleteCall) Header() http.Header {
8643 if c.header_ == nil {
8644 c.header_ = make(http.Header)
8645 }
8646 return c.header_
8647 }
8648
8649 func (c *InboundSamlSsoProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
8650 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8651 var body io.Reader = nil
8652 c.urlParams_.Set("alt", alt)
8653 c.urlParams_.Set("prettyPrint", "false")
8654 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8655 urls += "?" + c.urlParams_.Encode()
8656 req, err := http.NewRequest("DELETE", urls, body)
8657 if err != nil {
8658 return nil, err
8659 }
8660 req.Header = reqHeaders
8661 googleapi.Expand(req.URL, map[string]string{
8662 "name": c.name,
8663 })
8664 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8665 }
8666
8667
8668
8669
8670
8671
8672 func (c *InboundSamlSsoProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8673 gensupport.SetOptions(c.urlParams_, opts...)
8674 res, err := c.doRequest("json")
8675 if res != nil && res.StatusCode == http.StatusNotModified {
8676 if res.Body != nil {
8677 res.Body.Close()
8678 }
8679 return nil, gensupport.WrapError(&googleapi.Error{
8680 Code: res.StatusCode,
8681 Header: res.Header,
8682 })
8683 }
8684 if err != nil {
8685 return nil, err
8686 }
8687 defer googleapi.CloseBody(res)
8688 if err := googleapi.CheckResponse(res); err != nil {
8689 return nil, gensupport.WrapError(err)
8690 }
8691 ret := &Operation{
8692 ServerResponse: googleapi.ServerResponse{
8693 Header: res.Header,
8694 HTTPStatusCode: res.StatusCode,
8695 },
8696 }
8697 target := &ret
8698 if err := gensupport.DecodeResponse(target, res); err != nil {
8699 return nil, err
8700 }
8701 return ret, nil
8702 }
8703
8704 type InboundSamlSsoProfilesGetCall struct {
8705 s *Service
8706 name string
8707 urlParams_ gensupport.URLParams
8708 ifNoneMatch_ string
8709 ctx_ context.Context
8710 header_ http.Header
8711 }
8712
8713
8714
8715
8716
8717
8718
8719 func (r *InboundSamlSsoProfilesService) Get(name string) *InboundSamlSsoProfilesGetCall {
8720 c := &InboundSamlSsoProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8721 c.name = name
8722 return c
8723 }
8724
8725
8726
8727
8728 func (c *InboundSamlSsoProfilesGetCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesGetCall {
8729 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8730 return c
8731 }
8732
8733
8734
8735
8736 func (c *InboundSamlSsoProfilesGetCall) IfNoneMatch(entityTag string) *InboundSamlSsoProfilesGetCall {
8737 c.ifNoneMatch_ = entityTag
8738 return c
8739 }
8740
8741
8742 func (c *InboundSamlSsoProfilesGetCall) Context(ctx context.Context) *InboundSamlSsoProfilesGetCall {
8743 c.ctx_ = ctx
8744 return c
8745 }
8746
8747
8748
8749 func (c *InboundSamlSsoProfilesGetCall) Header() http.Header {
8750 if c.header_ == nil {
8751 c.header_ = make(http.Header)
8752 }
8753 return c.header_
8754 }
8755
8756 func (c *InboundSamlSsoProfilesGetCall) doRequest(alt string) (*http.Response, error) {
8757 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8758 if c.ifNoneMatch_ != "" {
8759 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8760 }
8761 var body io.Reader = nil
8762 c.urlParams_.Set("alt", alt)
8763 c.urlParams_.Set("prettyPrint", "false")
8764 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8765 urls += "?" + c.urlParams_.Encode()
8766 req, err := http.NewRequest("GET", urls, body)
8767 if err != nil {
8768 return nil, err
8769 }
8770 req.Header = reqHeaders
8771 googleapi.Expand(req.URL, map[string]string{
8772 "name": c.name,
8773 })
8774 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8775 }
8776
8777
8778
8779
8780
8781
8782
8783 func (c *InboundSamlSsoProfilesGetCall) Do(opts ...googleapi.CallOption) (*InboundSamlSsoProfile, error) {
8784 gensupport.SetOptions(c.urlParams_, opts...)
8785 res, err := c.doRequest("json")
8786 if res != nil && res.StatusCode == http.StatusNotModified {
8787 if res.Body != nil {
8788 res.Body.Close()
8789 }
8790 return nil, gensupport.WrapError(&googleapi.Error{
8791 Code: res.StatusCode,
8792 Header: res.Header,
8793 })
8794 }
8795 if err != nil {
8796 return nil, err
8797 }
8798 defer googleapi.CloseBody(res)
8799 if err := googleapi.CheckResponse(res); err != nil {
8800 return nil, gensupport.WrapError(err)
8801 }
8802 ret := &InboundSamlSsoProfile{
8803 ServerResponse: googleapi.ServerResponse{
8804 Header: res.Header,
8805 HTTPStatusCode: res.StatusCode,
8806 },
8807 }
8808 target := &ret
8809 if err := gensupport.DecodeResponse(target, res); err != nil {
8810 return nil, err
8811 }
8812 return ret, nil
8813 }
8814
8815 type InboundSamlSsoProfilesListCall struct {
8816 s *Service
8817 urlParams_ gensupport.URLParams
8818 ifNoneMatch_ string
8819 ctx_ context.Context
8820 header_ http.Header
8821 }
8822
8823
8824 func (r *InboundSamlSsoProfilesService) List() *InboundSamlSsoProfilesListCall {
8825 c := &InboundSamlSsoProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8826 return c
8827 }
8828
8829
8830
8831
8832
8833
8834
8835 func (c *InboundSamlSsoProfilesListCall) Filter(filter string) *InboundSamlSsoProfilesListCall {
8836 c.urlParams_.Set("filter", filter)
8837 return c
8838 }
8839
8840
8841
8842
8843
8844
8845
8846 func (c *InboundSamlSsoProfilesListCall) PageSize(pageSize int64) *InboundSamlSsoProfilesListCall {
8847 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8848 return c
8849 }
8850
8851
8852
8853
8854
8855
8856 func (c *InboundSamlSsoProfilesListCall) PageToken(pageToken string) *InboundSamlSsoProfilesListCall {
8857 c.urlParams_.Set("pageToken", pageToken)
8858 return c
8859 }
8860
8861
8862
8863
8864 func (c *InboundSamlSsoProfilesListCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesListCall {
8865 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8866 return c
8867 }
8868
8869
8870
8871
8872 func (c *InboundSamlSsoProfilesListCall) IfNoneMatch(entityTag string) *InboundSamlSsoProfilesListCall {
8873 c.ifNoneMatch_ = entityTag
8874 return c
8875 }
8876
8877
8878 func (c *InboundSamlSsoProfilesListCall) Context(ctx context.Context) *InboundSamlSsoProfilesListCall {
8879 c.ctx_ = ctx
8880 return c
8881 }
8882
8883
8884
8885 func (c *InboundSamlSsoProfilesListCall) Header() http.Header {
8886 if c.header_ == nil {
8887 c.header_ = make(http.Header)
8888 }
8889 return c.header_
8890 }
8891
8892 func (c *InboundSamlSsoProfilesListCall) doRequest(alt string) (*http.Response, error) {
8893 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8894 if c.ifNoneMatch_ != "" {
8895 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8896 }
8897 var body io.Reader = nil
8898 c.urlParams_.Set("alt", alt)
8899 c.urlParams_.Set("prettyPrint", "false")
8900 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inboundSamlSsoProfiles")
8901 urls += "?" + c.urlParams_.Encode()
8902 req, err := http.NewRequest("GET", urls, body)
8903 if err != nil {
8904 return nil, err
8905 }
8906 req.Header = reqHeaders
8907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8908 }
8909
8910
8911
8912
8913
8914
8915
8916 func (c *InboundSamlSsoProfilesListCall) Do(opts ...googleapi.CallOption) (*ListInboundSamlSsoProfilesResponse, error) {
8917 gensupport.SetOptions(c.urlParams_, opts...)
8918 res, err := c.doRequest("json")
8919 if res != nil && res.StatusCode == http.StatusNotModified {
8920 if res.Body != nil {
8921 res.Body.Close()
8922 }
8923 return nil, gensupport.WrapError(&googleapi.Error{
8924 Code: res.StatusCode,
8925 Header: res.Header,
8926 })
8927 }
8928 if err != nil {
8929 return nil, err
8930 }
8931 defer googleapi.CloseBody(res)
8932 if err := googleapi.CheckResponse(res); err != nil {
8933 return nil, gensupport.WrapError(err)
8934 }
8935 ret := &ListInboundSamlSsoProfilesResponse{
8936 ServerResponse: googleapi.ServerResponse{
8937 Header: res.Header,
8938 HTTPStatusCode: res.StatusCode,
8939 },
8940 }
8941 target := &ret
8942 if err := gensupport.DecodeResponse(target, res); err != nil {
8943 return nil, err
8944 }
8945 return ret, nil
8946 }
8947
8948
8949
8950
8951 func (c *InboundSamlSsoProfilesListCall) Pages(ctx context.Context, f func(*ListInboundSamlSsoProfilesResponse) error) error {
8952 c.ctx_ = ctx
8953 defer c.PageToken(c.urlParams_.Get("pageToken"))
8954 for {
8955 x, err := c.Do()
8956 if err != nil {
8957 return err
8958 }
8959 if err := f(x); err != nil {
8960 return err
8961 }
8962 if x.NextPageToken == "" {
8963 return nil
8964 }
8965 c.PageToken(x.NextPageToken)
8966 }
8967 }
8968
8969 type InboundSamlSsoProfilesPatchCall struct {
8970 s *Service
8971 name string
8972 inboundsamlssoprofile *InboundSamlSsoProfile
8973 urlParams_ gensupport.URLParams
8974 ctx_ context.Context
8975 header_ http.Header
8976 }
8977
8978
8979
8980
8981
8982
8983 func (r *InboundSamlSsoProfilesService) Patch(name string, inboundsamlssoprofile *InboundSamlSsoProfile) *InboundSamlSsoProfilesPatchCall {
8984 c := &InboundSamlSsoProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8985 c.name = name
8986 c.inboundsamlssoprofile = inboundsamlssoprofile
8987 return c
8988 }
8989
8990
8991
8992 func (c *InboundSamlSsoProfilesPatchCall) UpdateMask(updateMask string) *InboundSamlSsoProfilesPatchCall {
8993 c.urlParams_.Set("updateMask", updateMask)
8994 return c
8995 }
8996
8997
8998
8999
9000 func (c *InboundSamlSsoProfilesPatchCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesPatchCall {
9001 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9002 return c
9003 }
9004
9005
9006 func (c *InboundSamlSsoProfilesPatchCall) Context(ctx context.Context) *InboundSamlSsoProfilesPatchCall {
9007 c.ctx_ = ctx
9008 return c
9009 }
9010
9011
9012
9013 func (c *InboundSamlSsoProfilesPatchCall) Header() http.Header {
9014 if c.header_ == nil {
9015 c.header_ = make(http.Header)
9016 }
9017 return c.header_
9018 }
9019
9020 func (c *InboundSamlSsoProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
9021 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9022 var body io.Reader = nil
9023 body, err := googleapi.WithoutDataWrapper.JSONReader(c.inboundsamlssoprofile)
9024 if err != nil {
9025 return nil, err
9026 }
9027 c.urlParams_.Set("alt", alt)
9028 c.urlParams_.Set("prettyPrint", "false")
9029 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9030 urls += "?" + c.urlParams_.Encode()
9031 req, err := http.NewRequest("PATCH", urls, body)
9032 if err != nil {
9033 return nil, err
9034 }
9035 req.Header = reqHeaders
9036 googleapi.Expand(req.URL, map[string]string{
9037 "name": c.name,
9038 })
9039 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9040 }
9041
9042
9043
9044
9045
9046
9047 func (c *InboundSamlSsoProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9048 gensupport.SetOptions(c.urlParams_, opts...)
9049 res, err := c.doRequest("json")
9050 if res != nil && res.StatusCode == http.StatusNotModified {
9051 if res.Body != nil {
9052 res.Body.Close()
9053 }
9054 return nil, gensupport.WrapError(&googleapi.Error{
9055 Code: res.StatusCode,
9056 Header: res.Header,
9057 })
9058 }
9059 if err != nil {
9060 return nil, err
9061 }
9062 defer googleapi.CloseBody(res)
9063 if err := googleapi.CheckResponse(res); err != nil {
9064 return nil, gensupport.WrapError(err)
9065 }
9066 ret := &Operation{
9067 ServerResponse: googleapi.ServerResponse{
9068 Header: res.Header,
9069 HTTPStatusCode: res.StatusCode,
9070 },
9071 }
9072 target := &ret
9073 if err := gensupport.DecodeResponse(target, res); err != nil {
9074 return nil, err
9075 }
9076 return ret, nil
9077 }
9078
9079 type InboundSamlSsoProfilesIdpCredentialsAddCall struct {
9080 s *Service
9081 parent string
9082 addidpcredentialrequest *AddIdpCredentialRequest
9083 urlParams_ gensupport.URLParams
9084 ctx_ context.Context
9085 header_ http.Header
9086 }
9087
9088
9089
9090
9091
9092 func (r *InboundSamlSsoProfilesIdpCredentialsService) Add(parent string, addidpcredentialrequest *AddIdpCredentialRequest) *InboundSamlSsoProfilesIdpCredentialsAddCall {
9093 c := &InboundSamlSsoProfilesIdpCredentialsAddCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9094 c.parent = parent
9095 c.addidpcredentialrequest = addidpcredentialrequest
9096 return c
9097 }
9098
9099
9100
9101
9102 func (c *InboundSamlSsoProfilesIdpCredentialsAddCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesIdpCredentialsAddCall {
9103 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9104 return c
9105 }
9106
9107
9108 func (c *InboundSamlSsoProfilesIdpCredentialsAddCall) Context(ctx context.Context) *InboundSamlSsoProfilesIdpCredentialsAddCall {
9109 c.ctx_ = ctx
9110 return c
9111 }
9112
9113
9114
9115 func (c *InboundSamlSsoProfilesIdpCredentialsAddCall) Header() http.Header {
9116 if c.header_ == nil {
9117 c.header_ = make(http.Header)
9118 }
9119 return c.header_
9120 }
9121
9122 func (c *InboundSamlSsoProfilesIdpCredentialsAddCall) doRequest(alt string) (*http.Response, error) {
9123 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9124 var body io.Reader = nil
9125 body, err := googleapi.WithoutDataWrapper.JSONReader(c.addidpcredentialrequest)
9126 if err != nil {
9127 return nil, err
9128 }
9129 c.urlParams_.Set("alt", alt)
9130 c.urlParams_.Set("prettyPrint", "false")
9131 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/idpCredentials:add")
9132 urls += "?" + c.urlParams_.Encode()
9133 req, err := http.NewRequest("POST", urls, body)
9134 if err != nil {
9135 return nil, err
9136 }
9137 req.Header = reqHeaders
9138 googleapi.Expand(req.URL, map[string]string{
9139 "parent": c.parent,
9140 })
9141 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9142 }
9143
9144
9145
9146
9147
9148
9149 func (c *InboundSamlSsoProfilesIdpCredentialsAddCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9150 gensupport.SetOptions(c.urlParams_, opts...)
9151 res, err := c.doRequest("json")
9152 if res != nil && res.StatusCode == http.StatusNotModified {
9153 if res.Body != nil {
9154 res.Body.Close()
9155 }
9156 return nil, gensupport.WrapError(&googleapi.Error{
9157 Code: res.StatusCode,
9158 Header: res.Header,
9159 })
9160 }
9161 if err != nil {
9162 return nil, err
9163 }
9164 defer googleapi.CloseBody(res)
9165 if err := googleapi.CheckResponse(res); err != nil {
9166 return nil, gensupport.WrapError(err)
9167 }
9168 ret := &Operation{
9169 ServerResponse: googleapi.ServerResponse{
9170 Header: res.Header,
9171 HTTPStatusCode: res.StatusCode,
9172 },
9173 }
9174 target := &ret
9175 if err := gensupport.DecodeResponse(target, res); err != nil {
9176 return nil, err
9177 }
9178 return ret, nil
9179 }
9180
9181 type InboundSamlSsoProfilesIdpCredentialsDeleteCall struct {
9182 s *Service
9183 name string
9184 urlParams_ gensupport.URLParams
9185 ctx_ context.Context
9186 header_ http.Header
9187 }
9188
9189
9190
9191
9192
9193
9194
9195
9196 func (r *InboundSamlSsoProfilesIdpCredentialsService) Delete(name string) *InboundSamlSsoProfilesIdpCredentialsDeleteCall {
9197 c := &InboundSamlSsoProfilesIdpCredentialsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9198 c.name = name
9199 return c
9200 }
9201
9202
9203
9204
9205 func (c *InboundSamlSsoProfilesIdpCredentialsDeleteCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesIdpCredentialsDeleteCall {
9206 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9207 return c
9208 }
9209
9210
9211 func (c *InboundSamlSsoProfilesIdpCredentialsDeleteCall) Context(ctx context.Context) *InboundSamlSsoProfilesIdpCredentialsDeleteCall {
9212 c.ctx_ = ctx
9213 return c
9214 }
9215
9216
9217
9218 func (c *InboundSamlSsoProfilesIdpCredentialsDeleteCall) Header() http.Header {
9219 if c.header_ == nil {
9220 c.header_ = make(http.Header)
9221 }
9222 return c.header_
9223 }
9224
9225 func (c *InboundSamlSsoProfilesIdpCredentialsDeleteCall) doRequest(alt string) (*http.Response, error) {
9226 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9227 var body io.Reader = nil
9228 c.urlParams_.Set("alt", alt)
9229 c.urlParams_.Set("prettyPrint", "false")
9230 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9231 urls += "?" + c.urlParams_.Encode()
9232 req, err := http.NewRequest("DELETE", urls, body)
9233 if err != nil {
9234 return nil, err
9235 }
9236 req.Header = reqHeaders
9237 googleapi.Expand(req.URL, map[string]string{
9238 "name": c.name,
9239 })
9240 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9241 }
9242
9243
9244
9245
9246
9247
9248 func (c *InboundSamlSsoProfilesIdpCredentialsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9249 gensupport.SetOptions(c.urlParams_, opts...)
9250 res, err := c.doRequest("json")
9251 if res != nil && res.StatusCode == http.StatusNotModified {
9252 if res.Body != nil {
9253 res.Body.Close()
9254 }
9255 return nil, gensupport.WrapError(&googleapi.Error{
9256 Code: res.StatusCode,
9257 Header: res.Header,
9258 })
9259 }
9260 if err != nil {
9261 return nil, err
9262 }
9263 defer googleapi.CloseBody(res)
9264 if err := googleapi.CheckResponse(res); err != nil {
9265 return nil, gensupport.WrapError(err)
9266 }
9267 ret := &Operation{
9268 ServerResponse: googleapi.ServerResponse{
9269 Header: res.Header,
9270 HTTPStatusCode: res.StatusCode,
9271 },
9272 }
9273 target := &ret
9274 if err := gensupport.DecodeResponse(target, res); err != nil {
9275 return nil, err
9276 }
9277 return ret, nil
9278 }
9279
9280 type InboundSamlSsoProfilesIdpCredentialsGetCall struct {
9281 s *Service
9282 name string
9283 urlParams_ gensupport.URLParams
9284 ifNoneMatch_ string
9285 ctx_ context.Context
9286 header_ http.Header
9287 }
9288
9289
9290
9291
9292
9293
9294
9295
9296 func (r *InboundSamlSsoProfilesIdpCredentialsService) Get(name string) *InboundSamlSsoProfilesIdpCredentialsGetCall {
9297 c := &InboundSamlSsoProfilesIdpCredentialsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9298 c.name = name
9299 return c
9300 }
9301
9302
9303
9304
9305 func (c *InboundSamlSsoProfilesIdpCredentialsGetCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesIdpCredentialsGetCall {
9306 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9307 return c
9308 }
9309
9310
9311
9312
9313 func (c *InboundSamlSsoProfilesIdpCredentialsGetCall) IfNoneMatch(entityTag string) *InboundSamlSsoProfilesIdpCredentialsGetCall {
9314 c.ifNoneMatch_ = entityTag
9315 return c
9316 }
9317
9318
9319 func (c *InboundSamlSsoProfilesIdpCredentialsGetCall) Context(ctx context.Context) *InboundSamlSsoProfilesIdpCredentialsGetCall {
9320 c.ctx_ = ctx
9321 return c
9322 }
9323
9324
9325
9326 func (c *InboundSamlSsoProfilesIdpCredentialsGetCall) Header() http.Header {
9327 if c.header_ == nil {
9328 c.header_ = make(http.Header)
9329 }
9330 return c.header_
9331 }
9332
9333 func (c *InboundSamlSsoProfilesIdpCredentialsGetCall) doRequest(alt string) (*http.Response, error) {
9334 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9335 if c.ifNoneMatch_ != "" {
9336 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9337 }
9338 var body io.Reader = nil
9339 c.urlParams_.Set("alt", alt)
9340 c.urlParams_.Set("prettyPrint", "false")
9341 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9342 urls += "?" + c.urlParams_.Encode()
9343 req, err := http.NewRequest("GET", urls, body)
9344 if err != nil {
9345 return nil, err
9346 }
9347 req.Header = reqHeaders
9348 googleapi.Expand(req.URL, map[string]string{
9349 "name": c.name,
9350 })
9351 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9352 }
9353
9354
9355
9356
9357
9358
9359 func (c *InboundSamlSsoProfilesIdpCredentialsGetCall) Do(opts ...googleapi.CallOption) (*IdpCredential, error) {
9360 gensupport.SetOptions(c.urlParams_, opts...)
9361 res, err := c.doRequest("json")
9362 if res != nil && res.StatusCode == http.StatusNotModified {
9363 if res.Body != nil {
9364 res.Body.Close()
9365 }
9366 return nil, gensupport.WrapError(&googleapi.Error{
9367 Code: res.StatusCode,
9368 Header: res.Header,
9369 })
9370 }
9371 if err != nil {
9372 return nil, err
9373 }
9374 defer googleapi.CloseBody(res)
9375 if err := googleapi.CheckResponse(res); err != nil {
9376 return nil, gensupport.WrapError(err)
9377 }
9378 ret := &IdpCredential{
9379 ServerResponse: googleapi.ServerResponse{
9380 Header: res.Header,
9381 HTTPStatusCode: res.StatusCode,
9382 },
9383 }
9384 target := &ret
9385 if err := gensupport.DecodeResponse(target, res); err != nil {
9386 return nil, err
9387 }
9388 return ret, nil
9389 }
9390
9391 type InboundSamlSsoProfilesIdpCredentialsListCall struct {
9392 s *Service
9393 parent string
9394 urlParams_ gensupport.URLParams
9395 ifNoneMatch_ string
9396 ctx_ context.Context
9397 header_ http.Header
9398 }
9399
9400
9401
9402
9403
9404 func (r *InboundSamlSsoProfilesIdpCredentialsService) List(parent string) *InboundSamlSsoProfilesIdpCredentialsListCall {
9405 c := &InboundSamlSsoProfilesIdpCredentialsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9406 c.parent = parent
9407 return c
9408 }
9409
9410
9411
9412 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) PageSize(pageSize int64) *InboundSamlSsoProfilesIdpCredentialsListCall {
9413 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9414 return c
9415 }
9416
9417
9418
9419
9420
9421 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) PageToken(pageToken string) *InboundSamlSsoProfilesIdpCredentialsListCall {
9422 c.urlParams_.Set("pageToken", pageToken)
9423 return c
9424 }
9425
9426
9427
9428
9429 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) Fields(s ...googleapi.Field) *InboundSamlSsoProfilesIdpCredentialsListCall {
9430 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9431 return c
9432 }
9433
9434
9435
9436
9437 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) IfNoneMatch(entityTag string) *InboundSamlSsoProfilesIdpCredentialsListCall {
9438 c.ifNoneMatch_ = entityTag
9439 return c
9440 }
9441
9442
9443 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) Context(ctx context.Context) *InboundSamlSsoProfilesIdpCredentialsListCall {
9444 c.ctx_ = ctx
9445 return c
9446 }
9447
9448
9449
9450 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) Header() http.Header {
9451 if c.header_ == nil {
9452 c.header_ = make(http.Header)
9453 }
9454 return c.header_
9455 }
9456
9457 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) doRequest(alt string) (*http.Response, error) {
9458 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9459 if c.ifNoneMatch_ != "" {
9460 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9461 }
9462 var body io.Reader = nil
9463 c.urlParams_.Set("alt", alt)
9464 c.urlParams_.Set("prettyPrint", "false")
9465 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/idpCredentials")
9466 urls += "?" + c.urlParams_.Encode()
9467 req, err := http.NewRequest("GET", urls, body)
9468 if err != nil {
9469 return nil, err
9470 }
9471 req.Header = reqHeaders
9472 googleapi.Expand(req.URL, map[string]string{
9473 "parent": c.parent,
9474 })
9475 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9476 }
9477
9478
9479
9480
9481
9482
9483
9484 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) Do(opts ...googleapi.CallOption) (*ListIdpCredentialsResponse, error) {
9485 gensupport.SetOptions(c.urlParams_, opts...)
9486 res, err := c.doRequest("json")
9487 if res != nil && res.StatusCode == http.StatusNotModified {
9488 if res.Body != nil {
9489 res.Body.Close()
9490 }
9491 return nil, gensupport.WrapError(&googleapi.Error{
9492 Code: res.StatusCode,
9493 Header: res.Header,
9494 })
9495 }
9496 if err != nil {
9497 return nil, err
9498 }
9499 defer googleapi.CloseBody(res)
9500 if err := googleapi.CheckResponse(res); err != nil {
9501 return nil, gensupport.WrapError(err)
9502 }
9503 ret := &ListIdpCredentialsResponse{
9504 ServerResponse: googleapi.ServerResponse{
9505 Header: res.Header,
9506 HTTPStatusCode: res.StatusCode,
9507 },
9508 }
9509 target := &ret
9510 if err := gensupport.DecodeResponse(target, res); err != nil {
9511 return nil, err
9512 }
9513 return ret, nil
9514 }
9515
9516
9517
9518
9519 func (c *InboundSamlSsoProfilesIdpCredentialsListCall) Pages(ctx context.Context, f func(*ListIdpCredentialsResponse) error) error {
9520 c.ctx_ = ctx
9521 defer c.PageToken(c.urlParams_.Get("pageToken"))
9522 for {
9523 x, err := c.Do()
9524 if err != nil {
9525 return err
9526 }
9527 if err := f(x); err != nil {
9528 return err
9529 }
9530 if x.NextPageToken == "" {
9531 return nil
9532 }
9533 c.PageToken(x.NextPageToken)
9534 }
9535 }
9536
9537 type InboundSsoAssignmentsCreateCall struct {
9538 s *Service
9539 inboundssoassignment *InboundSsoAssignment
9540 urlParams_ gensupport.URLParams
9541 ctx_ context.Context
9542 header_ http.Header
9543 }
9544
9545
9546
9547 func (r *InboundSsoAssignmentsService) Create(inboundssoassignment *InboundSsoAssignment) *InboundSsoAssignmentsCreateCall {
9548 c := &InboundSsoAssignmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9549 c.inboundssoassignment = inboundssoassignment
9550 return c
9551 }
9552
9553
9554
9555
9556 func (c *InboundSsoAssignmentsCreateCall) Fields(s ...googleapi.Field) *InboundSsoAssignmentsCreateCall {
9557 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9558 return c
9559 }
9560
9561
9562 func (c *InboundSsoAssignmentsCreateCall) Context(ctx context.Context) *InboundSsoAssignmentsCreateCall {
9563 c.ctx_ = ctx
9564 return c
9565 }
9566
9567
9568
9569 func (c *InboundSsoAssignmentsCreateCall) Header() http.Header {
9570 if c.header_ == nil {
9571 c.header_ = make(http.Header)
9572 }
9573 return c.header_
9574 }
9575
9576 func (c *InboundSsoAssignmentsCreateCall) doRequest(alt string) (*http.Response, error) {
9577 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9578 var body io.Reader = nil
9579 body, err := googleapi.WithoutDataWrapper.JSONReader(c.inboundssoassignment)
9580 if err != nil {
9581 return nil, err
9582 }
9583 c.urlParams_.Set("alt", alt)
9584 c.urlParams_.Set("prettyPrint", "false")
9585 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inboundSsoAssignments")
9586 urls += "?" + c.urlParams_.Encode()
9587 req, err := http.NewRequest("POST", urls, body)
9588 if err != nil {
9589 return nil, err
9590 }
9591 req.Header = reqHeaders
9592 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9593 }
9594
9595
9596
9597
9598
9599
9600 func (c *InboundSsoAssignmentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9601 gensupport.SetOptions(c.urlParams_, opts...)
9602 res, err := c.doRequest("json")
9603 if res != nil && res.StatusCode == http.StatusNotModified {
9604 if res.Body != nil {
9605 res.Body.Close()
9606 }
9607 return nil, gensupport.WrapError(&googleapi.Error{
9608 Code: res.StatusCode,
9609 Header: res.Header,
9610 })
9611 }
9612 if err != nil {
9613 return nil, err
9614 }
9615 defer googleapi.CloseBody(res)
9616 if err := googleapi.CheckResponse(res); err != nil {
9617 return nil, gensupport.WrapError(err)
9618 }
9619 ret := &Operation{
9620 ServerResponse: googleapi.ServerResponse{
9621 Header: res.Header,
9622 HTTPStatusCode: res.StatusCode,
9623 },
9624 }
9625 target := &ret
9626 if err := gensupport.DecodeResponse(target, res); err != nil {
9627 return nil, err
9628 }
9629 return ret, nil
9630 }
9631
9632 type InboundSsoAssignmentsDeleteCall struct {
9633 s *Service
9634 name string
9635 urlParams_ gensupport.URLParams
9636 ctx_ context.Context
9637 header_ http.Header
9638 }
9639
9640
9641
9642
9643
9644
9645
9646
9647 func (r *InboundSsoAssignmentsService) Delete(name string) *InboundSsoAssignmentsDeleteCall {
9648 c := &InboundSsoAssignmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9649 c.name = name
9650 return c
9651 }
9652
9653
9654
9655
9656 func (c *InboundSsoAssignmentsDeleteCall) Fields(s ...googleapi.Field) *InboundSsoAssignmentsDeleteCall {
9657 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9658 return c
9659 }
9660
9661
9662 func (c *InboundSsoAssignmentsDeleteCall) Context(ctx context.Context) *InboundSsoAssignmentsDeleteCall {
9663 c.ctx_ = ctx
9664 return c
9665 }
9666
9667
9668
9669 func (c *InboundSsoAssignmentsDeleteCall) Header() http.Header {
9670 if c.header_ == nil {
9671 c.header_ = make(http.Header)
9672 }
9673 return c.header_
9674 }
9675
9676 func (c *InboundSsoAssignmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
9677 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9678 var body io.Reader = nil
9679 c.urlParams_.Set("alt", alt)
9680 c.urlParams_.Set("prettyPrint", "false")
9681 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9682 urls += "?" + c.urlParams_.Encode()
9683 req, err := http.NewRequest("DELETE", urls, body)
9684 if err != nil {
9685 return nil, err
9686 }
9687 req.Header = reqHeaders
9688 googleapi.Expand(req.URL, map[string]string{
9689 "name": c.name,
9690 })
9691 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9692 }
9693
9694
9695
9696
9697
9698
9699 func (c *InboundSsoAssignmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9700 gensupport.SetOptions(c.urlParams_, opts...)
9701 res, err := c.doRequest("json")
9702 if res != nil && res.StatusCode == http.StatusNotModified {
9703 if res.Body != nil {
9704 res.Body.Close()
9705 }
9706 return nil, gensupport.WrapError(&googleapi.Error{
9707 Code: res.StatusCode,
9708 Header: res.Header,
9709 })
9710 }
9711 if err != nil {
9712 return nil, err
9713 }
9714 defer googleapi.CloseBody(res)
9715 if err := googleapi.CheckResponse(res); err != nil {
9716 return nil, gensupport.WrapError(err)
9717 }
9718 ret := &Operation{
9719 ServerResponse: googleapi.ServerResponse{
9720 Header: res.Header,
9721 HTTPStatusCode: res.StatusCode,
9722 },
9723 }
9724 target := &ret
9725 if err := gensupport.DecodeResponse(target, res); err != nil {
9726 return nil, err
9727 }
9728 return ret, nil
9729 }
9730
9731 type InboundSsoAssignmentsGetCall struct {
9732 s *Service
9733 name string
9734 urlParams_ gensupport.URLParams
9735 ifNoneMatch_ string
9736 ctx_ context.Context
9737 header_ http.Header
9738 }
9739
9740
9741
9742
9743
9744
9745
9746 func (r *InboundSsoAssignmentsService) Get(name string) *InboundSsoAssignmentsGetCall {
9747 c := &InboundSsoAssignmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9748 c.name = name
9749 return c
9750 }
9751
9752
9753
9754
9755 func (c *InboundSsoAssignmentsGetCall) Fields(s ...googleapi.Field) *InboundSsoAssignmentsGetCall {
9756 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9757 return c
9758 }
9759
9760
9761
9762
9763 func (c *InboundSsoAssignmentsGetCall) IfNoneMatch(entityTag string) *InboundSsoAssignmentsGetCall {
9764 c.ifNoneMatch_ = entityTag
9765 return c
9766 }
9767
9768
9769 func (c *InboundSsoAssignmentsGetCall) Context(ctx context.Context) *InboundSsoAssignmentsGetCall {
9770 c.ctx_ = ctx
9771 return c
9772 }
9773
9774
9775
9776 func (c *InboundSsoAssignmentsGetCall) Header() http.Header {
9777 if c.header_ == nil {
9778 c.header_ = make(http.Header)
9779 }
9780 return c.header_
9781 }
9782
9783 func (c *InboundSsoAssignmentsGetCall) doRequest(alt string) (*http.Response, error) {
9784 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9785 if c.ifNoneMatch_ != "" {
9786 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9787 }
9788 var body io.Reader = nil
9789 c.urlParams_.Set("alt", alt)
9790 c.urlParams_.Set("prettyPrint", "false")
9791 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9792 urls += "?" + c.urlParams_.Encode()
9793 req, err := http.NewRequest("GET", urls, body)
9794 if err != nil {
9795 return nil, err
9796 }
9797 req.Header = reqHeaders
9798 googleapi.Expand(req.URL, map[string]string{
9799 "name": c.name,
9800 })
9801 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9802 }
9803
9804
9805
9806
9807
9808
9809
9810 func (c *InboundSsoAssignmentsGetCall) Do(opts ...googleapi.CallOption) (*InboundSsoAssignment, error) {
9811 gensupport.SetOptions(c.urlParams_, opts...)
9812 res, err := c.doRequest("json")
9813 if res != nil && res.StatusCode == http.StatusNotModified {
9814 if res.Body != nil {
9815 res.Body.Close()
9816 }
9817 return nil, gensupport.WrapError(&googleapi.Error{
9818 Code: res.StatusCode,
9819 Header: res.Header,
9820 })
9821 }
9822 if err != nil {
9823 return nil, err
9824 }
9825 defer googleapi.CloseBody(res)
9826 if err := googleapi.CheckResponse(res); err != nil {
9827 return nil, gensupport.WrapError(err)
9828 }
9829 ret := &InboundSsoAssignment{
9830 ServerResponse: googleapi.ServerResponse{
9831 Header: res.Header,
9832 HTTPStatusCode: res.StatusCode,
9833 },
9834 }
9835 target := &ret
9836 if err := gensupport.DecodeResponse(target, res); err != nil {
9837 return nil, err
9838 }
9839 return ret, nil
9840 }
9841
9842 type InboundSsoAssignmentsListCall struct {
9843 s *Service
9844 urlParams_ gensupport.URLParams
9845 ifNoneMatch_ string
9846 ctx_ context.Context
9847 header_ http.Header
9848 }
9849
9850
9851 func (r *InboundSsoAssignmentsService) List() *InboundSsoAssignmentsListCall {
9852 c := &InboundSsoAssignmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9853 return c
9854 }
9855
9856
9857
9858
9859
9860
9861 func (c *InboundSsoAssignmentsListCall) Filter(filter string) *InboundSsoAssignmentsListCall {
9862 c.urlParams_.Set("filter", filter)
9863 return c
9864 }
9865
9866
9867
9868
9869
9870
9871
9872 func (c *InboundSsoAssignmentsListCall) PageSize(pageSize int64) *InboundSsoAssignmentsListCall {
9873 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9874 return c
9875 }
9876
9877
9878
9879
9880
9881
9882 func (c *InboundSsoAssignmentsListCall) PageToken(pageToken string) *InboundSsoAssignmentsListCall {
9883 c.urlParams_.Set("pageToken", pageToken)
9884 return c
9885 }
9886
9887
9888
9889
9890 func (c *InboundSsoAssignmentsListCall) Fields(s ...googleapi.Field) *InboundSsoAssignmentsListCall {
9891 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9892 return c
9893 }
9894
9895
9896
9897
9898 func (c *InboundSsoAssignmentsListCall) IfNoneMatch(entityTag string) *InboundSsoAssignmentsListCall {
9899 c.ifNoneMatch_ = entityTag
9900 return c
9901 }
9902
9903
9904 func (c *InboundSsoAssignmentsListCall) Context(ctx context.Context) *InboundSsoAssignmentsListCall {
9905 c.ctx_ = ctx
9906 return c
9907 }
9908
9909
9910
9911 func (c *InboundSsoAssignmentsListCall) Header() http.Header {
9912 if c.header_ == nil {
9913 c.header_ = make(http.Header)
9914 }
9915 return c.header_
9916 }
9917
9918 func (c *InboundSsoAssignmentsListCall) doRequest(alt string) (*http.Response, error) {
9919 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9920 if c.ifNoneMatch_ != "" {
9921 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9922 }
9923 var body io.Reader = nil
9924 c.urlParams_.Set("alt", alt)
9925 c.urlParams_.Set("prettyPrint", "false")
9926 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inboundSsoAssignments")
9927 urls += "?" + c.urlParams_.Encode()
9928 req, err := http.NewRequest("GET", urls, body)
9929 if err != nil {
9930 return nil, err
9931 }
9932 req.Header = reqHeaders
9933 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9934 }
9935
9936
9937
9938
9939
9940
9941
9942 func (c *InboundSsoAssignmentsListCall) Do(opts ...googleapi.CallOption) (*ListInboundSsoAssignmentsResponse, error) {
9943 gensupport.SetOptions(c.urlParams_, opts...)
9944 res, err := c.doRequest("json")
9945 if res != nil && res.StatusCode == http.StatusNotModified {
9946 if res.Body != nil {
9947 res.Body.Close()
9948 }
9949 return nil, gensupport.WrapError(&googleapi.Error{
9950 Code: res.StatusCode,
9951 Header: res.Header,
9952 })
9953 }
9954 if err != nil {
9955 return nil, err
9956 }
9957 defer googleapi.CloseBody(res)
9958 if err := googleapi.CheckResponse(res); err != nil {
9959 return nil, gensupport.WrapError(err)
9960 }
9961 ret := &ListInboundSsoAssignmentsResponse{
9962 ServerResponse: googleapi.ServerResponse{
9963 Header: res.Header,
9964 HTTPStatusCode: res.StatusCode,
9965 },
9966 }
9967 target := &ret
9968 if err := gensupport.DecodeResponse(target, res); err != nil {
9969 return nil, err
9970 }
9971 return ret, nil
9972 }
9973
9974
9975
9976
9977 func (c *InboundSsoAssignmentsListCall) Pages(ctx context.Context, f func(*ListInboundSsoAssignmentsResponse) error) error {
9978 c.ctx_ = ctx
9979 defer c.PageToken(c.urlParams_.Get("pageToken"))
9980 for {
9981 x, err := c.Do()
9982 if err != nil {
9983 return err
9984 }
9985 if err := f(x); err != nil {
9986 return err
9987 }
9988 if x.NextPageToken == "" {
9989 return nil
9990 }
9991 c.PageToken(x.NextPageToken)
9992 }
9993 }
9994
9995 type InboundSsoAssignmentsPatchCall struct {
9996 s *Service
9997 name string
9998 inboundssoassignment *InboundSsoAssignment
9999 urlParams_ gensupport.URLParams
10000 ctx_ context.Context
10001 header_ http.Header
10002 }
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015 func (r *InboundSsoAssignmentsService) Patch(name string, inboundssoassignment *InboundSsoAssignment) *InboundSsoAssignmentsPatchCall {
10016 c := &InboundSsoAssignmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10017 c.name = name
10018 c.inboundssoassignment = inboundssoassignment
10019 return c
10020 }
10021
10022
10023
10024 func (c *InboundSsoAssignmentsPatchCall) UpdateMask(updateMask string) *InboundSsoAssignmentsPatchCall {
10025 c.urlParams_.Set("updateMask", updateMask)
10026 return c
10027 }
10028
10029
10030
10031
10032 func (c *InboundSsoAssignmentsPatchCall) Fields(s ...googleapi.Field) *InboundSsoAssignmentsPatchCall {
10033 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10034 return c
10035 }
10036
10037
10038 func (c *InboundSsoAssignmentsPatchCall) Context(ctx context.Context) *InboundSsoAssignmentsPatchCall {
10039 c.ctx_ = ctx
10040 return c
10041 }
10042
10043
10044
10045 func (c *InboundSsoAssignmentsPatchCall) Header() http.Header {
10046 if c.header_ == nil {
10047 c.header_ = make(http.Header)
10048 }
10049 return c.header_
10050 }
10051
10052 func (c *InboundSsoAssignmentsPatchCall) doRequest(alt string) (*http.Response, error) {
10053 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10054 var body io.Reader = nil
10055 body, err := googleapi.WithoutDataWrapper.JSONReader(c.inboundssoassignment)
10056 if err != nil {
10057 return nil, err
10058 }
10059 c.urlParams_.Set("alt", alt)
10060 c.urlParams_.Set("prettyPrint", "false")
10061 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10062 urls += "?" + c.urlParams_.Encode()
10063 req, err := http.NewRequest("PATCH", urls, body)
10064 if err != nil {
10065 return nil, err
10066 }
10067 req.Header = reqHeaders
10068 googleapi.Expand(req.URL, map[string]string{
10069 "name": c.name,
10070 })
10071 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10072 }
10073
10074
10075
10076
10077
10078
10079 func (c *InboundSsoAssignmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10080 gensupport.SetOptions(c.urlParams_, opts...)
10081 res, err := c.doRequest("json")
10082 if res != nil && res.StatusCode == http.StatusNotModified {
10083 if res.Body != nil {
10084 res.Body.Close()
10085 }
10086 return nil, gensupport.WrapError(&googleapi.Error{
10087 Code: res.StatusCode,
10088 Header: res.Header,
10089 })
10090 }
10091 if err != nil {
10092 return nil, err
10093 }
10094 defer googleapi.CloseBody(res)
10095 if err := googleapi.CheckResponse(res); err != nil {
10096 return nil, gensupport.WrapError(err)
10097 }
10098 ret := &Operation{
10099 ServerResponse: googleapi.ServerResponse{
10100 Header: res.Header,
10101 HTTPStatusCode: res.StatusCode,
10102 },
10103 }
10104 target := &ret
10105 if err := gensupport.DecodeResponse(target, res); err != nil {
10106 return nil, err
10107 }
10108 return ret, nil
10109 }
10110
View as plain text