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 package gkehub
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "gkehub:v1"
90 const apiName = "gkehub"
91 const apiVersion = "v1"
92 const basePath = "https://gkehub.googleapis.com/"
93 const basePathTemplate = "https://gkehub.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://gkehub.mtls.googleapis.com/"
95
96
97 const (
98
99
100 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
101 )
102
103
104 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
105 scopesOption := internaloption.WithDefaultScopes(
106 "https://www.googleapis.com/auth/cloud-platform",
107 )
108
109 opts = append([]option.ClientOption{scopesOption}, opts...)
110 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
111 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
112 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
113 opts = append(opts, internaloption.EnableNewAuthLibrary())
114 client, endpoint, err := htransport.NewClient(ctx, opts...)
115 if err != nil {
116 return nil, err
117 }
118 s, err := New(client)
119 if err != nil {
120 return nil, err
121 }
122 if endpoint != "" {
123 s.BasePath = endpoint
124 }
125 return s, nil
126 }
127
128
129
130
131
132
133 func New(client *http.Client) (*Service, error) {
134 if client == nil {
135 return nil, errors.New("client is nil")
136 }
137 s := &Service{client: client, BasePath: basePath}
138 s.Organizations = NewOrganizationsService(s)
139 s.Projects = NewProjectsService(s)
140 return s, nil
141 }
142
143 type Service struct {
144 client *http.Client
145 BasePath string
146 UserAgent string
147
148 Organizations *OrganizationsService
149
150 Projects *ProjectsService
151 }
152
153 func (s *Service) userAgent() string {
154 if s.UserAgent == "" {
155 return googleapi.UserAgent
156 }
157 return googleapi.UserAgent + " " + s.UserAgent
158 }
159
160 func NewOrganizationsService(s *Service) *OrganizationsService {
161 rs := &OrganizationsService{s: s}
162 rs.Locations = NewOrganizationsLocationsService(s)
163 return rs
164 }
165
166 type OrganizationsService struct {
167 s *Service
168
169 Locations *OrganizationsLocationsService
170 }
171
172 func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService {
173 rs := &OrganizationsLocationsService{s: s}
174 rs.Fleets = NewOrganizationsLocationsFleetsService(s)
175 return rs
176 }
177
178 type OrganizationsLocationsService struct {
179 s *Service
180
181 Fleets *OrganizationsLocationsFleetsService
182 }
183
184 func NewOrganizationsLocationsFleetsService(s *Service) *OrganizationsLocationsFleetsService {
185 rs := &OrganizationsLocationsFleetsService{s: s}
186 return rs
187 }
188
189 type OrganizationsLocationsFleetsService struct {
190 s *Service
191 }
192
193 func NewProjectsService(s *Service) *ProjectsService {
194 rs := &ProjectsService{s: s}
195 rs.Locations = NewProjectsLocationsService(s)
196 return rs
197 }
198
199 type ProjectsService struct {
200 s *Service
201
202 Locations *ProjectsLocationsService
203 }
204
205 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
206 rs := &ProjectsLocationsService{s: s}
207 rs.Features = NewProjectsLocationsFeaturesService(s)
208 rs.Fleets = NewProjectsLocationsFleetsService(s)
209 rs.Memberships = NewProjectsLocationsMembershipsService(s)
210 rs.Operations = NewProjectsLocationsOperationsService(s)
211 rs.Scopes = NewProjectsLocationsScopesService(s)
212 return rs
213 }
214
215 type ProjectsLocationsService struct {
216 s *Service
217
218 Features *ProjectsLocationsFeaturesService
219
220 Fleets *ProjectsLocationsFleetsService
221
222 Memberships *ProjectsLocationsMembershipsService
223
224 Operations *ProjectsLocationsOperationsService
225
226 Scopes *ProjectsLocationsScopesService
227 }
228
229 func NewProjectsLocationsFeaturesService(s *Service) *ProjectsLocationsFeaturesService {
230 rs := &ProjectsLocationsFeaturesService{s: s}
231 return rs
232 }
233
234 type ProjectsLocationsFeaturesService struct {
235 s *Service
236 }
237
238 func NewProjectsLocationsFleetsService(s *Service) *ProjectsLocationsFleetsService {
239 rs := &ProjectsLocationsFleetsService{s: s}
240 return rs
241 }
242
243 type ProjectsLocationsFleetsService struct {
244 s *Service
245 }
246
247 func NewProjectsLocationsMembershipsService(s *Service) *ProjectsLocationsMembershipsService {
248 rs := &ProjectsLocationsMembershipsService{s: s}
249 rs.Bindings = NewProjectsLocationsMembershipsBindingsService(s)
250 return rs
251 }
252
253 type ProjectsLocationsMembershipsService struct {
254 s *Service
255
256 Bindings *ProjectsLocationsMembershipsBindingsService
257 }
258
259 func NewProjectsLocationsMembershipsBindingsService(s *Service) *ProjectsLocationsMembershipsBindingsService {
260 rs := &ProjectsLocationsMembershipsBindingsService{s: s}
261 return rs
262 }
263
264 type ProjectsLocationsMembershipsBindingsService struct {
265 s *Service
266 }
267
268 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
269 rs := &ProjectsLocationsOperationsService{s: s}
270 return rs
271 }
272
273 type ProjectsLocationsOperationsService struct {
274 s *Service
275 }
276
277 func NewProjectsLocationsScopesService(s *Service) *ProjectsLocationsScopesService {
278 rs := &ProjectsLocationsScopesService{s: s}
279 rs.Namespaces = NewProjectsLocationsScopesNamespacesService(s)
280 rs.Rbacrolebindings = NewProjectsLocationsScopesRbacrolebindingsService(s)
281 return rs
282 }
283
284 type ProjectsLocationsScopesService struct {
285 s *Service
286
287 Namespaces *ProjectsLocationsScopesNamespacesService
288
289 Rbacrolebindings *ProjectsLocationsScopesRbacrolebindingsService
290 }
291
292 func NewProjectsLocationsScopesNamespacesService(s *Service) *ProjectsLocationsScopesNamespacesService {
293 rs := &ProjectsLocationsScopesNamespacesService{s: s}
294 return rs
295 }
296
297 type ProjectsLocationsScopesNamespacesService struct {
298 s *Service
299 }
300
301 func NewProjectsLocationsScopesRbacrolebindingsService(s *Service) *ProjectsLocationsScopesRbacrolebindingsService {
302 rs := &ProjectsLocationsScopesRbacrolebindingsService{s: s}
303 return rs
304 }
305
306 type ProjectsLocationsScopesRbacrolebindingsService struct {
307 s *Service
308 }
309
310
311 type AppDevExperienceFeatureSpec struct {
312 }
313
314
315 type AppDevExperienceFeatureState struct {
316
317
318 NetworkingInstallSucceeded *Status `json:"networkingInstallSucceeded,omitempty"`
319
320
321
322
323
324 ForceSendFields []string `json:"-"`
325
326
327
328
329 NullFields []string `json:"-"`
330 }
331
332 func (s *AppDevExperienceFeatureState) MarshalJSON() ([]byte, error) {
333 type NoMethod AppDevExperienceFeatureState
334 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
335 }
336
337
338
339 type ApplianceCluster struct {
340
341
342
343
344 ResourceLink string `json:"resourceLink,omitempty"`
345
346
347
348
349
350 ForceSendFields []string `json:"-"`
351
352
353
354
355 NullFields []string `json:"-"`
356 }
357
358 func (s *ApplianceCluster) MarshalJSON() ([]byte, error) {
359 type NoMethod ApplianceCluster
360 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
361 }
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379 type AuditConfig struct {
380
381 AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
382
383
384
385 Service string `json:"service,omitempty"`
386
387
388
389
390
391 ForceSendFields []string `json:"-"`
392
393
394
395
396 NullFields []string `json:"-"`
397 }
398
399 func (s *AuditConfig) MarshalJSON() ([]byte, error) {
400 type NoMethod AuditConfig
401 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
402 }
403
404
405
406
407
408
409 type AuditLogConfig struct {
410
411
412 ExemptedMembers []string `json:"exemptedMembers,omitempty"`
413
414
415
416
417
418
419
420 LogType string `json:"logType,omitempty"`
421
422
423
424
425
426 ForceSendFields []string `json:"-"`
427
428
429
430
431 NullFields []string `json:"-"`
432 }
433
434 func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
435 type NoMethod AuditLogConfig
436 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
437 }
438
439
440
441
442 type Authority struct {
443
444
445 IdentityProvider string `json:"identityProvider,omitempty"`
446
447
448
449
450
451
452
453
454
455 Issuer string `json:"issuer,omitempty"`
456
457
458
459
460 OidcJwks string `json:"oidcJwks,omitempty"`
461
462
463
464
465
466
467 WorkloadIdentityPool string `json:"workloadIdentityPool,omitempty"`
468
469
470
471
472
473 ForceSendFields []string `json:"-"`
474
475
476
477
478 NullFields []string `json:"-"`
479 }
480
481 func (s *Authority) MarshalJSON() ([]byte, error) {
482 type NoMethod Authority
483 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
484 }
485
486
487
488 type BinaryAuthorizationConfig struct {
489
490
491
492
493
494
495
496 EvaluationMode string `json:"evaluationMode,omitempty"`
497
498 PolicyBindings []*PolicyBinding `json:"policyBindings,omitempty"`
499
500
501
502
503
504 ForceSendFields []string `json:"-"`
505
506
507
508
509 NullFields []string `json:"-"`
510 }
511
512 func (s *BinaryAuthorizationConfig) MarshalJSON() ([]byte, error) {
513 type NoMethod BinaryAuthorizationConfig
514 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
515 }
516
517
518 type Binding struct {
519
520
521
522
523
524
525
526
527 Condition *Expr `json:"condition,omitempty"`
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590 Members []string `json:"members,omitempty"`
591
592
593
594
595
596
597 Role string `json:"role,omitempty"`
598
599
600
601
602
603 ForceSendFields []string `json:"-"`
604
605
606
607
608 NullFields []string `json:"-"`
609 }
610
611 func (s *Binding) MarshalJSON() ([]byte, error) {
612 type NoMethod Binding
613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
614 }
615
616
617 type CancelOperationRequest struct {
618 }
619
620
621
622 type ClusterUpgradeFleetSpec struct {
623
624
625 GkeUpgradeOverrides []*ClusterUpgradeGKEUpgradeOverride `json:"gkeUpgradeOverrides,omitempty"`
626
627
628 PostConditions *ClusterUpgradePostConditions `json:"postConditions,omitempty"`
629
630
631
632
633
634 UpstreamFleets []string `json:"upstreamFleets,omitempty"`
635
636
637
638
639
640 ForceSendFields []string `json:"-"`
641
642
643
644
645 NullFields []string `json:"-"`
646 }
647
648 func (s *ClusterUpgradeFleetSpec) MarshalJSON() ([]byte, error) {
649 type NoMethod ClusterUpgradeFleetSpec
650 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
651 }
652
653
654
655 type ClusterUpgradeFleetState struct {
656
657
658 DownstreamFleets []string `json:"downstreamFleets,omitempty"`
659
660 GkeState *ClusterUpgradeGKEUpgradeFeatureState `json:"gkeState,omitempty"`
661
662
663
664
665 Ignored map[string]ClusterUpgradeIgnoredMembership `json:"ignored,omitempty"`
666
667
668
669
670
671 ForceSendFields []string `json:"-"`
672
673
674
675
676 NullFields []string `json:"-"`
677 }
678
679 func (s *ClusterUpgradeFleetState) MarshalJSON() ([]byte, error) {
680 type NoMethod ClusterUpgradeFleetState
681 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
682 }
683
684
685
686 type ClusterUpgradeGKEUpgrade struct {
687
688
689 Name string `json:"name,omitempty"`
690
691
692 Version string `json:"version,omitempty"`
693
694
695
696
697
698 ForceSendFields []string `json:"-"`
699
700
701
702
703 NullFields []string `json:"-"`
704 }
705
706 func (s *ClusterUpgradeGKEUpgrade) MarshalJSON() ([]byte, error) {
707 type NoMethod ClusterUpgradeGKEUpgrade
708 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
709 }
710
711
712
713
714 type ClusterUpgradeGKEUpgradeFeatureCondition struct {
715
716 Reason string `json:"reason,omitempty"`
717
718 Status string `json:"status,omitempty"`
719
720 Type string `json:"type,omitempty"`
721
722 UpdateTime string `json:"updateTime,omitempty"`
723
724
725
726
727
728 ForceSendFields []string `json:"-"`
729
730
731
732
733 NullFields []string `json:"-"`
734 }
735
736 func (s *ClusterUpgradeGKEUpgradeFeatureCondition) MarshalJSON() ([]byte, error) {
737 type NoMethod ClusterUpgradeGKEUpgradeFeatureCondition
738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
739 }
740
741
742
743 type ClusterUpgradeGKEUpgradeFeatureState struct {
744
745 Conditions []*ClusterUpgradeGKEUpgradeFeatureCondition `json:"conditions,omitempty"`
746
747 UpgradeState []*ClusterUpgradeGKEUpgradeState `json:"upgradeState,omitempty"`
748
749
750
751
752
753 ForceSendFields []string `json:"-"`
754
755
756
757
758 NullFields []string `json:"-"`
759 }
760
761 func (s *ClusterUpgradeGKEUpgradeFeatureState) MarshalJSON() ([]byte, error) {
762 type NoMethod ClusterUpgradeGKEUpgradeFeatureState
763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
764 }
765
766
767
768
769 type ClusterUpgradeGKEUpgradeOverride struct {
770
771
772 PostConditions *ClusterUpgradePostConditions `json:"postConditions,omitempty"`
773
774 Upgrade *ClusterUpgradeGKEUpgrade `json:"upgrade,omitempty"`
775
776
777
778
779
780 ForceSendFields []string `json:"-"`
781
782
783
784
785 NullFields []string `json:"-"`
786 }
787
788 func (s *ClusterUpgradeGKEUpgradeOverride) MarshalJSON() ([]byte, error) {
789 type NoMethod ClusterUpgradeGKEUpgradeOverride
790 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
791 }
792
793
794
795 type ClusterUpgradeGKEUpgradeState struct {
796
797 Stats map[string]string `json:"stats,omitempty"`
798
799 Status *ClusterUpgradeUpgradeStatus `json:"status,omitempty"`
800
801 Upgrade *ClusterUpgradeGKEUpgrade `json:"upgrade,omitempty"`
802
803
804
805
806
807 ForceSendFields []string `json:"-"`
808
809
810
811
812 NullFields []string `json:"-"`
813 }
814
815 func (s *ClusterUpgradeGKEUpgradeState) MarshalJSON() ([]byte, error) {
816 type NoMethod ClusterUpgradeGKEUpgradeState
817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
818 }
819
820
821
822
823 type ClusterUpgradeIgnoredMembership struct {
824
825 IgnoredTime string `json:"ignoredTime,omitempty"`
826
827 Reason string `json:"reason,omitempty"`
828
829
830
831
832
833 ForceSendFields []string `json:"-"`
834
835
836
837
838 NullFields []string `json:"-"`
839 }
840
841 func (s *ClusterUpgradeIgnoredMembership) MarshalJSON() ([]byte, error) {
842 type NoMethod ClusterUpgradeIgnoredMembership
843 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
844 }
845
846
847
848 type ClusterUpgradeMembershipGKEUpgradeState struct {
849
850 Status *ClusterUpgradeUpgradeStatus `json:"status,omitempty"`
851
852 Upgrade *ClusterUpgradeGKEUpgrade `json:"upgrade,omitempty"`
853
854
855
856
857
858 ForceSendFields []string `json:"-"`
859
860
861
862
863 NullFields []string `json:"-"`
864 }
865
866 func (s *ClusterUpgradeMembershipGKEUpgradeState) MarshalJSON() ([]byte, error) {
867 type NoMethod ClusterUpgradeMembershipGKEUpgradeState
868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
869 }
870
871
872 type ClusterUpgradeMembershipState struct {
873
874
875
876 Ignored *ClusterUpgradeIgnoredMembership `json:"ignored,omitempty"`
877
878 Upgrades []*ClusterUpgradeMembershipGKEUpgradeState `json:"upgrades,omitempty"`
879
880
881
882
883
884 ForceSendFields []string `json:"-"`
885
886
887
888
889 NullFields []string `json:"-"`
890 }
891
892 func (s *ClusterUpgradeMembershipState) MarshalJSON() ([]byte, error) {
893 type NoMethod ClusterUpgradeMembershipState
894 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
895 }
896
897
898
899 type ClusterUpgradePostConditions struct {
900
901
902 Soaking string `json:"soaking,omitempty"`
903
904
905
906
907
908 ForceSendFields []string `json:"-"`
909
910
911
912
913 NullFields []string `json:"-"`
914 }
915
916 func (s *ClusterUpgradePostConditions) MarshalJSON() ([]byte, error) {
917 type NoMethod ClusterUpgradePostConditions
918 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
919 }
920
921
922
923 type ClusterUpgradeUpgradeStatus struct {
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941 Code string `json:"code,omitempty"`
942
943 Reason string `json:"reason,omitempty"`
944
945 UpdateTime string `json:"updateTime,omitempty"`
946
947
948
949
950
951 ForceSendFields []string `json:"-"`
952
953
954
955
956 NullFields []string `json:"-"`
957 }
958
959 func (s *ClusterUpgradeUpgradeStatus) MarshalJSON() ([]byte, error) {
960 type NoMethod ClusterUpgradeUpgradeStatus
961 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
962 }
963
964
965
966 type CommonFeatureSpec struct {
967
968 Appdevexperience *AppDevExperienceFeatureSpec `json:"appdevexperience,omitempty"`
969
970 Clusterupgrade *ClusterUpgradeFleetSpec `json:"clusterupgrade,omitempty"`
971
972 Dataplanev2 *DataplaneV2FeatureSpec `json:"dataplanev2,omitempty"`
973
974 Fleetobservability *FleetObservabilityFeatureSpec `json:"fleetobservability,omitempty"`
975
976 Multiclusteringress *MultiClusterIngressFeatureSpec `json:"multiclusteringress,omitempty"`
977
978
979
980
981
982 ForceSendFields []string `json:"-"`
983
984
985
986
987 NullFields []string `json:"-"`
988 }
989
990 func (s *CommonFeatureSpec) MarshalJSON() ([]byte, error) {
991 type NoMethod CommonFeatureSpec
992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
993 }
994
995
996
997 type CommonFeatureState struct {
998
999 Appdevexperience *AppDevExperienceFeatureState `json:"appdevexperience,omitempty"`
1000
1001 Clusterupgrade *ClusterUpgradeFleetState `json:"clusterupgrade,omitempty"`
1002
1003 Fleetobservability *FleetObservabilityFeatureState `json:"fleetobservability,omitempty"`
1004
1005 State *FeatureState `json:"state,omitempty"`
1006
1007
1008
1009
1010
1011 ForceSendFields []string `json:"-"`
1012
1013
1014
1015
1016 NullFields []string `json:"-"`
1017 }
1018
1019 func (s *CommonFeatureState) MarshalJSON() ([]byte, error) {
1020 type NoMethod CommonFeatureState
1021 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1022 }
1023
1024
1025
1026 type CommonFleetDefaultMemberConfigSpec struct {
1027
1028 Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"`
1029
1030 Identityservice *IdentityServiceMembershipSpec `json:"identityservice,omitempty"`
1031
1032 Mesh *ServiceMeshMembershipSpec `json:"mesh,omitempty"`
1033
1034 Policycontroller *PolicyControllerMembershipSpec `json:"policycontroller,omitempty"`
1035
1036
1037
1038
1039
1040 ForceSendFields []string `json:"-"`
1041
1042
1043
1044
1045 NullFields []string `json:"-"`
1046 }
1047
1048 func (s *CommonFleetDefaultMemberConfigSpec) MarshalJSON() ([]byte, error) {
1049 type NoMethod CommonFleetDefaultMemberConfigSpec
1050 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1051 }
1052
1053
1054 type ConfigManagementConfigSync struct {
1055
1056
1057 AllowVerticalScale bool `json:"allowVerticalScale,omitempty"`
1058
1059
1060
1061
1062
1063 Enabled bool `json:"enabled,omitempty"`
1064
1065 Git *ConfigManagementGitConfig `json:"git,omitempty"`
1066
1067
1068
1069
1070
1071
1072 MetricsGcpServiceAccountEmail string `json:"metricsGcpServiceAccountEmail,omitempty"`
1073
1074 Oci *ConfigManagementOciConfig `json:"oci,omitempty"`
1075
1076
1077
1078 PreventDrift bool `json:"preventDrift,omitempty"`
1079
1080
1081 SourceFormat string `json:"sourceFormat,omitempty"`
1082
1083
1084
1085
1086
1087 ForceSendFields []string `json:"-"`
1088
1089
1090
1091
1092 NullFields []string `json:"-"`
1093 }
1094
1095 func (s *ConfigManagementConfigSync) MarshalJSON() ([]byte, error) {
1096 type NoMethod ConfigManagementConfigSync
1097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1098 }
1099
1100
1101
1102 type ConfigManagementConfigSyncDeploymentState struct {
1103
1104
1105
1106
1107
1108
1109
1110
1111 AdmissionWebhook string `json:"admissionWebhook,omitempty"`
1112
1113
1114
1115
1116
1117
1118
1119
1120 GitSync string `json:"gitSync,omitempty"`
1121
1122
1123
1124
1125
1126
1127
1128
1129 Importer string `json:"importer,omitempty"`
1130
1131
1132
1133
1134
1135
1136
1137
1138 Monitor string `json:"monitor,omitempty"`
1139
1140
1141
1142
1143
1144
1145
1146
1147 ReconcilerManager string `json:"reconcilerManager,omitempty"`
1148
1149
1150
1151
1152
1153
1154
1155
1156 RootReconciler string `json:"rootReconciler,omitempty"`
1157
1158
1159
1160
1161
1162
1163
1164
1165 Syncer string `json:"syncer,omitempty"`
1166
1167
1168
1169
1170
1171 ForceSendFields []string `json:"-"`
1172
1173
1174
1175
1176 NullFields []string `json:"-"`
1177 }
1178
1179 func (s *ConfigManagementConfigSyncDeploymentState) MarshalJSON() ([]byte, error) {
1180 type NoMethod ConfigManagementConfigSyncDeploymentState
1181 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1182 }
1183
1184
1185
1186 type ConfigManagementConfigSyncError struct {
1187
1188 ErrorMessage string `json:"errorMessage,omitempty"`
1189
1190
1191
1192
1193
1194 ForceSendFields []string `json:"-"`
1195
1196
1197
1198
1199 NullFields []string `json:"-"`
1200 }
1201
1202 func (s *ConfigManagementConfigSyncError) MarshalJSON() ([]byte, error) {
1203 type NoMethod ConfigManagementConfigSyncError
1204 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1205 }
1206
1207
1208 type ConfigManagementConfigSyncState struct {
1209
1210
1211 DeploymentState *ConfigManagementConfigSyncDeploymentState `json:"deploymentState,omitempty"`
1212
1213 Errors []*ConfigManagementConfigSyncError `json:"errors,omitempty"`
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223 ReposyncCrd string `json:"reposyncCrd,omitempty"`
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233 RootsyncCrd string `json:"rootsyncCrd,omitempty"`
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244 State string `json:"state,omitempty"`
1245
1246 SyncState *ConfigManagementSyncState `json:"syncState,omitempty"`
1247
1248 Version *ConfigManagementConfigSyncVersion `json:"version,omitempty"`
1249
1250
1251
1252
1253
1254 ForceSendFields []string `json:"-"`
1255
1256
1257
1258
1259 NullFields []string `json:"-"`
1260 }
1261
1262 func (s *ConfigManagementConfigSyncState) MarshalJSON() ([]byte, error) {
1263 type NoMethod ConfigManagementConfigSyncState
1264 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1265 }
1266
1267
1268
1269 type ConfigManagementConfigSyncVersion struct {
1270
1271 AdmissionWebhook string `json:"admissionWebhook,omitempty"`
1272
1273 GitSync string `json:"gitSync,omitempty"`
1274
1275 Importer string `json:"importer,omitempty"`
1276
1277 Monitor string `json:"monitor,omitempty"`
1278
1279 ReconcilerManager string `json:"reconcilerManager,omitempty"`
1280
1281
1282 RootReconciler string `json:"rootReconciler,omitempty"`
1283
1284 Syncer string `json:"syncer,omitempty"`
1285
1286
1287
1288
1289
1290 ForceSendFields []string `json:"-"`
1291
1292
1293
1294
1295 NullFields []string `json:"-"`
1296 }
1297
1298 func (s *ConfigManagementConfigSyncVersion) MarshalJSON() ([]byte, error) {
1299 type NoMethod ConfigManagementConfigSyncVersion
1300 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1301 }
1302
1303
1304
1305 type ConfigManagementErrorResource struct {
1306
1307 ResourceGvk *ConfigManagementGroupVersionKind `json:"resourceGvk,omitempty"`
1308
1309 ResourceName string `json:"resourceName,omitempty"`
1310
1311 ResourceNamespace string `json:"resourceNamespace,omitempty"`
1312
1313 SourcePath string `json:"sourcePath,omitempty"`
1314
1315
1316
1317
1318
1319 ForceSendFields []string `json:"-"`
1320
1321
1322
1323
1324 NullFields []string `json:"-"`
1325 }
1326
1327 func (s *ConfigManagementErrorResource) MarshalJSON() ([]byte, error) {
1328 type NoMethod ConfigManagementErrorResource
1329 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1330 }
1331
1332
1333
1334 type ConfigManagementGatekeeperDeploymentState struct {
1335
1336
1337
1338
1339
1340
1341
1342
1343 GatekeeperAudit string `json:"gatekeeperAudit,omitempty"`
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353 GatekeeperControllerManagerState string `json:"gatekeeperControllerManagerState,omitempty"`
1354
1355
1356
1357
1358
1359
1360
1361
1362 GatekeeperMutation string `json:"gatekeeperMutation,omitempty"`
1363
1364
1365
1366
1367
1368 ForceSendFields []string `json:"-"`
1369
1370
1371
1372
1373 NullFields []string `json:"-"`
1374 }
1375
1376 func (s *ConfigManagementGatekeeperDeploymentState) MarshalJSON() ([]byte, error) {
1377 type NoMethod ConfigManagementGatekeeperDeploymentState
1378 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1379 }
1380
1381
1382 type ConfigManagementGitConfig struct {
1383
1384
1385 GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"`
1386
1387
1388 HttpsProxy string `json:"httpsProxy,omitempty"`
1389
1390
1391 PolicyDir string `json:"policyDir,omitempty"`
1392
1393
1394
1395 SecretType string `json:"secretType,omitempty"`
1396
1397 SyncBranch string `json:"syncBranch,omitempty"`
1398
1399 SyncRepo string `json:"syncRepo,omitempty"`
1400
1401 SyncRev string `json:"syncRev,omitempty"`
1402
1403 SyncWaitSecs int64 `json:"syncWaitSecs,omitempty,string"`
1404
1405
1406
1407
1408
1409 ForceSendFields []string `json:"-"`
1410
1411
1412
1413
1414 NullFields []string `json:"-"`
1415 }
1416
1417 func (s *ConfigManagementGitConfig) MarshalJSON() ([]byte, error) {
1418 type NoMethod ConfigManagementGitConfig
1419 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1420 }
1421
1422
1423 type ConfigManagementGroupVersionKind struct {
1424
1425 Group string `json:"group,omitempty"`
1426
1427 Kind string `json:"kind,omitempty"`
1428
1429 Version string `json:"version,omitempty"`
1430
1431
1432
1433
1434
1435 ForceSendFields []string `json:"-"`
1436
1437
1438
1439
1440 NullFields []string `json:"-"`
1441 }
1442
1443 func (s *ConfigManagementGroupVersionKind) MarshalJSON() ([]byte, error) {
1444 type NoMethod ConfigManagementGroupVersionKind
1445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1446 }
1447
1448
1449
1450 type ConfigManagementHierarchyControllerConfig struct {
1451
1452
1453 EnableHierarchicalResourceQuota bool `json:"enableHierarchicalResourceQuota,omitempty"`
1454
1455 EnablePodTreeLabels bool `json:"enablePodTreeLabels,omitempty"`
1456
1457 Enabled bool `json:"enabled,omitempty"`
1458
1459
1460
1461
1462
1463
1464 ForceSendFields []string `json:"-"`
1465
1466
1467
1468
1469 NullFields []string `json:"-"`
1470 }
1471
1472 func (s *ConfigManagementHierarchyControllerConfig) MarshalJSON() ([]byte, error) {
1473 type NoMethod ConfigManagementHierarchyControllerConfig
1474 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1475 }
1476
1477
1478
1479 type ConfigManagementHierarchyControllerDeploymentState struct {
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489 Extension string `json:"extension,omitempty"`
1490
1491
1492
1493
1494
1495
1496
1497
1498 Hnc string `json:"hnc,omitempty"`
1499
1500
1501
1502
1503
1504 ForceSendFields []string `json:"-"`
1505
1506
1507
1508
1509 NullFields []string `json:"-"`
1510 }
1511
1512 func (s *ConfigManagementHierarchyControllerDeploymentState) MarshalJSON() ([]byte, error) {
1513 type NoMethod ConfigManagementHierarchyControllerDeploymentState
1514 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1515 }
1516
1517
1518 type ConfigManagementHierarchyControllerState struct {
1519
1520 State *ConfigManagementHierarchyControllerDeploymentState `json:"state,omitempty"`
1521
1522 Version *ConfigManagementHierarchyControllerVersion `json:"version,omitempty"`
1523
1524
1525
1526
1527
1528 ForceSendFields []string `json:"-"`
1529
1530
1531
1532
1533 NullFields []string `json:"-"`
1534 }
1535
1536 func (s *ConfigManagementHierarchyControllerState) MarshalJSON() ([]byte, error) {
1537 type NoMethod ConfigManagementHierarchyControllerState
1538 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1539 }
1540
1541
1542 type ConfigManagementHierarchyControllerVersion struct {
1543
1544 Extension string `json:"extension,omitempty"`
1545
1546 Hnc string `json:"hnc,omitempty"`
1547
1548
1549
1550
1551
1552 ForceSendFields []string `json:"-"`
1553
1554
1555
1556
1557 NullFields []string `json:"-"`
1558 }
1559
1560 func (s *ConfigManagementHierarchyControllerVersion) MarshalJSON() ([]byte, error) {
1561 type NoMethod ConfigManagementHierarchyControllerVersion
1562 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1563 }
1564
1565
1566 type ConfigManagementInstallError struct {
1567
1568 ErrorMessage string `json:"errorMessage,omitempty"`
1569
1570
1571
1572
1573
1574 ForceSendFields []string `json:"-"`
1575
1576
1577
1578
1579 NullFields []string `json:"-"`
1580 }
1581
1582 func (s *ConfigManagementInstallError) MarshalJSON() ([]byte, error) {
1583 type NoMethod ConfigManagementInstallError
1584 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1585 }
1586
1587
1588
1589 type ConfigManagementMembershipSpec struct {
1590
1591
1592
1593
1594
1595
1596
1597 Cluster string `json:"cluster,omitempty"`
1598
1599 ConfigSync *ConfigManagementConfigSync `json:"configSync,omitempty"`
1600
1601 HierarchyController *ConfigManagementHierarchyControllerConfig `json:"hierarchyController,omitempty"`
1602
1603
1604
1605
1606
1607
1608
1609 Management string `json:"management,omitempty"`
1610
1611 PolicyController *ConfigManagementPolicyController `json:"policyController,omitempty"`
1612
1613 Version string `json:"version,omitempty"`
1614
1615
1616
1617
1618
1619 ForceSendFields []string `json:"-"`
1620
1621
1622
1623
1624 NullFields []string `json:"-"`
1625 }
1626
1627 func (s *ConfigManagementMembershipSpec) MarshalJSON() ([]byte, error) {
1628 type NoMethod ConfigManagementMembershipSpec
1629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1630 }
1631
1632
1633
1634 type ConfigManagementMembershipState struct {
1635
1636
1637
1638 ClusterName string `json:"clusterName,omitempty"`
1639
1640 ConfigSyncState *ConfigManagementConfigSyncState `json:"configSyncState,omitempty"`
1641
1642 HierarchyControllerState *ConfigManagementHierarchyControllerState `json:"hierarchyControllerState,omitempty"`
1643
1644
1645
1646 MembershipSpec *ConfigManagementMembershipSpec `json:"membershipSpec,omitempty"`
1647
1648 OperatorState *ConfigManagementOperatorState `json:"operatorState,omitempty"`
1649
1650 PolicyControllerState *ConfigManagementPolicyControllerState `json:"policyControllerState,omitempty"`
1651
1652
1653
1654
1655
1656 ForceSendFields []string `json:"-"`
1657
1658
1659
1660
1661 NullFields []string `json:"-"`
1662 }
1663
1664 func (s *ConfigManagementMembershipState) MarshalJSON() ([]byte, error) {
1665 type NoMethod ConfigManagementMembershipState
1666 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1667 }
1668
1669
1670 type ConfigManagementOciConfig struct {
1671
1672
1673 GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"`
1674
1675
1676 PolicyDir string `json:"policyDir,omitempty"`
1677
1678 SecretType string `json:"secretType,omitempty"`
1679
1680
1681 SyncRepo string `json:"syncRepo,omitempty"`
1682
1683 SyncWaitSecs int64 `json:"syncWaitSecs,omitempty,string"`
1684
1685
1686
1687
1688
1689 ForceSendFields []string `json:"-"`
1690
1691
1692
1693
1694 NullFields []string `json:"-"`
1695 }
1696
1697 func (s *ConfigManagementOciConfig) MarshalJSON() ([]byte, error) {
1698 type NoMethod ConfigManagementOciConfig
1699 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1700 }
1701
1702
1703 type ConfigManagementOperatorState struct {
1704
1705
1706
1707
1708
1709
1710
1711
1712 DeploymentState string `json:"deploymentState,omitempty"`
1713
1714 Errors []*ConfigManagementInstallError `json:"errors,omitempty"`
1715
1716 Version string `json:"version,omitempty"`
1717
1718
1719
1720
1721
1722 ForceSendFields []string `json:"-"`
1723
1724
1725
1726
1727 NullFields []string `json:"-"`
1728 }
1729
1730 func (s *ConfigManagementOperatorState) MarshalJSON() ([]byte, error) {
1731 type NoMethod ConfigManagementOperatorState
1732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1733 }
1734
1735
1736 type ConfigManagementPolicyController struct {
1737
1738
1739 AuditIntervalSeconds int64 `json:"auditIntervalSeconds,omitempty,string"`
1740
1741
1742 Enabled bool `json:"enabled,omitempty"`
1743
1744
1745 ExemptableNamespaces []string `json:"exemptableNamespaces,omitempty"`
1746
1747 LogDeniesEnabled bool `json:"logDeniesEnabled,omitempty"`
1748
1749 Monitoring *ConfigManagementPolicyControllerMonitoring `json:"monitoring,omitempty"`
1750
1751
1752
1753 MutationEnabled bool `json:"mutationEnabled,omitempty"`
1754
1755
1756 ReferentialRulesEnabled bool `json:"referentialRulesEnabled,omitempty"`
1757
1758
1759 TemplateLibraryInstalled bool `json:"templateLibraryInstalled,omitempty"`
1760
1761 UpdateTime string `json:"updateTime,omitempty"`
1762
1763
1764
1765
1766
1767 ForceSendFields []string `json:"-"`
1768
1769
1770
1771
1772 NullFields []string `json:"-"`
1773 }
1774
1775 func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) {
1776 type NoMethod ConfigManagementPolicyController
1777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1778 }
1779
1780
1781
1782 type ConfigManagementPolicyControllerMigration struct {
1783
1784 CopyTime string `json:"copyTime,omitempty"`
1785
1786
1787
1788
1789
1790
1791
1792
1793 Stage string `json:"stage,omitempty"`
1794
1795
1796
1797
1798
1799 ForceSendFields []string `json:"-"`
1800
1801
1802
1803
1804 NullFields []string `json:"-"`
1805 }
1806
1807 func (s *ConfigManagementPolicyControllerMigration) MarshalJSON() ([]byte, error) {
1808 type NoMethod ConfigManagementPolicyControllerMigration
1809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1810 }
1811
1812
1813
1814
1815
1816 type ConfigManagementPolicyControllerMonitoring struct {
1817
1818
1819
1820
1821
1822
1823
1824 Backends []string `json:"backends,omitempty"`
1825
1826
1827
1828
1829
1830 ForceSendFields []string `json:"-"`
1831
1832
1833
1834
1835 NullFields []string `json:"-"`
1836 }
1837
1838 func (s *ConfigManagementPolicyControllerMonitoring) MarshalJSON() ([]byte, error) {
1839 type NoMethod ConfigManagementPolicyControllerMonitoring
1840 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1841 }
1842
1843
1844 type ConfigManagementPolicyControllerState struct {
1845
1846 DeploymentState *ConfigManagementGatekeeperDeploymentState `json:"deploymentState,omitempty"`
1847
1848 Migration *ConfigManagementPolicyControllerMigration `json:"migration,omitempty"`
1849
1850 Version *ConfigManagementPolicyControllerVersion `json:"version,omitempty"`
1851
1852
1853
1854
1855
1856 ForceSendFields []string `json:"-"`
1857
1858
1859
1860
1861 NullFields []string `json:"-"`
1862 }
1863
1864 func (s *ConfigManagementPolicyControllerState) MarshalJSON() ([]byte, error) {
1865 type NoMethod ConfigManagementPolicyControllerState
1866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1867 }
1868
1869
1870
1871 type ConfigManagementPolicyControllerVersion struct {
1872
1873
1874 Version string `json:"version,omitempty"`
1875
1876
1877
1878
1879
1880 ForceSendFields []string `json:"-"`
1881
1882
1883
1884
1885 NullFields []string `json:"-"`
1886 }
1887
1888 func (s *ConfigManagementPolicyControllerVersion) MarshalJSON() ([]byte, error) {
1889 type NoMethod ConfigManagementPolicyControllerVersion
1890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1891 }
1892
1893
1894
1895 type ConfigManagementSyncError struct {
1896
1897 Code string `json:"code,omitempty"`
1898
1899 ErrorMessage string `json:"errorMessage,omitempty"`
1900
1901 ErrorResources []*ConfigManagementErrorResource `json:"errorResources,omitempty"`
1902
1903
1904
1905
1906
1907 ForceSendFields []string `json:"-"`
1908
1909
1910
1911
1912 NullFields []string `json:"-"`
1913 }
1914
1915 func (s *ConfigManagementSyncError) MarshalJSON() ([]byte, error) {
1916 type NoMethod ConfigManagementSyncError
1917 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1918 }
1919
1920
1921
1922 type ConfigManagementSyncState struct {
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935 Code string `json:"code,omitempty"`
1936
1937
1938
1939 Errors []*ConfigManagementSyncError `json:"errors,omitempty"`
1940
1941 ImportToken string `json:"importToken,omitempty"`
1942
1943
1944
1945 LastSync string `json:"lastSync,omitempty"`
1946
1947 LastSyncTime string `json:"lastSyncTime,omitempty"`
1948
1949 SourceToken string `json:"sourceToken,omitempty"`
1950
1951 SyncToken string `json:"syncToken,omitempty"`
1952
1953
1954
1955
1956
1957 ForceSendFields []string `json:"-"`
1958
1959
1960
1961
1962 NullFields []string `json:"-"`
1963 }
1964
1965 func (s *ConfigManagementSyncState) MarshalJSON() ([]byte, error) {
1966 type NoMethod ConfigManagementSyncState
1967 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1968 }
1969
1970
1971
1972 type ConnectAgentResource struct {
1973
1974 Manifest string `json:"manifest,omitempty"`
1975
1976 Type *TypeMeta `json:"type,omitempty"`
1977
1978
1979
1980
1981
1982 ForceSendFields []string `json:"-"`
1983
1984
1985
1986
1987 NullFields []string `json:"-"`
1988 }
1989
1990 func (s *ConnectAgentResource) MarshalJSON() ([]byte, error) {
1991 type NoMethod ConnectAgentResource
1992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1993 }
1994
1995
1996 type DataplaneV2FeatureSpec struct {
1997
1998
1999 EnableEncryption bool `json:"enableEncryption,omitempty"`
2000
2001
2002
2003
2004
2005 ForceSendFields []string `json:"-"`
2006
2007
2008
2009
2010 NullFields []string `json:"-"`
2011 }
2012
2013 func (s *DataplaneV2FeatureSpec) MarshalJSON() ([]byte, error) {
2014 type NoMethod DataplaneV2FeatureSpec
2015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2016 }
2017
2018
2019
2020 type DefaultClusterConfig struct {
2021
2022
2023 BinaryAuthorizationConfig *BinaryAuthorizationConfig `json:"binaryAuthorizationConfig,omitempty"`
2024
2025
2026 SecurityPostureConfig *SecurityPostureConfig `json:"securityPostureConfig,omitempty"`
2027
2028
2029
2030
2031
2032 ForceSendFields []string `json:"-"`
2033
2034
2035
2036
2037 NullFields []string `json:"-"`
2038 }
2039
2040 func (s *DefaultClusterConfig) MarshalJSON() ([]byte, error) {
2041 type NoMethod DefaultClusterConfig
2042 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2043 }
2044
2045
2046
2047 type EdgeCluster struct {
2048
2049
2050
2051
2052 ResourceLink string `json:"resourceLink,omitempty"`
2053
2054
2055
2056
2057
2058 ForceSendFields []string `json:"-"`
2059
2060
2061
2062
2063 NullFields []string `json:"-"`
2064 }
2065
2066 func (s *EdgeCluster) MarshalJSON() ([]byte, error) {
2067 type NoMethod EdgeCluster
2068 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2069 }
2070
2071
2072
2073
2074
2075 type Empty struct {
2076
2077 googleapi.ServerResponse `json:"-"`
2078 }
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096 type Expr struct {
2097
2098
2099 Description string `json:"description,omitempty"`
2100
2101
2102 Expression string `json:"expression,omitempty"`
2103
2104
2105 Location string `json:"location,omitempty"`
2106
2107
2108
2109 Title string `json:"title,omitempty"`
2110
2111
2112
2113
2114
2115 ForceSendFields []string `json:"-"`
2116
2117
2118
2119
2120 NullFields []string `json:"-"`
2121 }
2122
2123 func (s *Expr) MarshalJSON() ([]byte, error) {
2124 type NoMethod Expr
2125 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2126 }
2127
2128
2129 type Feature struct {
2130
2131 CreateTime string `json:"createTime,omitempty"`
2132
2133 DeleteTime string `json:"deleteTime,omitempty"`
2134
2135
2136 FleetDefaultMemberConfig *CommonFleetDefaultMemberConfigSpec `json:"fleetDefaultMemberConfig,omitempty"`
2137
2138 Labels map[string]string `json:"labels,omitempty"`
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151 MembershipSpecs map[string]MembershipFeatureSpec `json:"membershipSpecs,omitempty"`
2152
2153
2154
2155
2156
2157
2158 MembershipStates map[string]MembershipFeatureState `json:"membershipStates,omitempty"`
2159
2160
2161 Name string `json:"name,omitempty"`
2162
2163 ResourceState *FeatureResourceState `json:"resourceState,omitempty"`
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175 ScopeSpecs map[string]ScopeFeatureSpec `json:"scopeSpecs,omitempty"`
2176
2177
2178
2179
2180
2181 ScopeStates map[string]ScopeFeatureState `json:"scopeStates,omitempty"`
2182
2183
2184 Spec *CommonFeatureSpec `json:"spec,omitempty"`
2185
2186 State *CommonFeatureState `json:"state,omitempty"`
2187
2188 UpdateTime string `json:"updateTime,omitempty"`
2189
2190
2191 googleapi.ServerResponse `json:"-"`
2192
2193
2194
2195
2196
2197 ForceSendFields []string `json:"-"`
2198
2199
2200
2201
2202 NullFields []string `json:"-"`
2203 }
2204
2205 func (s *Feature) MarshalJSON() ([]byte, error) {
2206 type NoMethod Feature
2207 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2208 }
2209
2210
2211
2212
2213 type FeatureResourceState struct {
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228 State string `json:"state,omitempty"`
2229
2230
2231
2232
2233
2234 ForceSendFields []string `json:"-"`
2235
2236
2237
2238
2239 NullFields []string `json:"-"`
2240 }
2241
2242 func (s *FeatureResourceState) MarshalJSON() ([]byte, error) {
2243 type NoMethod FeatureResourceState
2244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2245 }
2246
2247
2248
2249
2250 type FeatureState struct {
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264 Code string `json:"code,omitempty"`
2265
2266 Description string `json:"description,omitempty"`
2267
2268
2269 UpdateTime string `json:"updateTime,omitempty"`
2270
2271
2272
2273
2274
2275 ForceSendFields []string `json:"-"`
2276
2277
2278
2279
2280 NullFields []string `json:"-"`
2281 }
2282
2283 func (s *FeatureState) MarshalJSON() ([]byte, error) {
2284 type NoMethod FeatureState
2285 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2286 }
2287
2288
2289 type Fleet struct {
2290
2291 CreateTime string `json:"createTime,omitempty"`
2292
2293
2294 DefaultClusterConfig *DefaultClusterConfig `json:"defaultClusterConfig,omitempty"`
2295
2296 DeleteTime string `json:"deleteTime,omitempty"`
2297
2298
2299
2300
2301 DisplayName string `json:"displayName,omitempty"`
2302
2303 Labels map[string]string `json:"labels,omitempty"`
2304
2305
2306
2307 Name string `json:"name,omitempty"`
2308
2309 State *FleetLifecycleState `json:"state,omitempty"`
2310
2311
2312
2313 Uid string `json:"uid,omitempty"`
2314
2315 UpdateTime string `json:"updateTime,omitempty"`
2316
2317
2318 googleapi.ServerResponse `json:"-"`
2319
2320
2321
2322
2323
2324 ForceSendFields []string `json:"-"`
2325
2326
2327
2328
2329 NullFields []string `json:"-"`
2330 }
2331
2332 func (s *Fleet) MarshalJSON() ([]byte, error) {
2333 type NoMethod Fleet
2334 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2335 }
2336
2337
2338
2339 type FleetLifecycleState struct {
2340
2341
2342
2343
2344
2345
2346
2347
2348 Code string `json:"code,omitempty"`
2349
2350
2351
2352
2353
2354 ForceSendFields []string `json:"-"`
2355
2356
2357
2358
2359 NullFields []string `json:"-"`
2360 }
2361
2362 func (s *FleetLifecycleState) MarshalJSON() ([]byte, error) {
2363 type NoMethod FleetLifecycleState
2364 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2365 }
2366
2367
2368
2369 type FleetObservabilityFeatureError struct {
2370
2371 Code string `json:"code,omitempty"`
2372
2373 Description string `json:"description,omitempty"`
2374
2375
2376
2377
2378
2379 ForceSendFields []string `json:"-"`
2380
2381
2382
2383
2384 NullFields []string `json:"-"`
2385 }
2386
2387 func (s *FleetObservabilityFeatureError) MarshalJSON() ([]byte, error) {
2388 type NoMethod FleetObservabilityFeatureError
2389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2390 }
2391
2392
2393
2394 type FleetObservabilityFeatureSpec struct {
2395
2396
2397
2398 LoggingConfig *FleetObservabilityLoggingConfig `json:"loggingConfig,omitempty"`
2399
2400
2401
2402
2403
2404 ForceSendFields []string `json:"-"`
2405
2406
2407
2408
2409 NullFields []string `json:"-"`
2410 }
2411
2412 func (s *FleetObservabilityFeatureSpec) MarshalJSON() ([]byte, error) {
2413 type NoMethod FleetObservabilityFeatureSpec
2414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2415 }
2416
2417
2418
2419 type FleetObservabilityFeatureState struct {
2420
2421 Logging *FleetObservabilityFleetObservabilityLoggingState `json:"logging,omitempty"`
2422
2423 Monitoring *FleetObservabilityFleetObservabilityMonitoringState `json:"monitoring,omitempty"`
2424
2425
2426
2427
2428
2429 ForceSendFields []string `json:"-"`
2430
2431
2432
2433
2434 NullFields []string `json:"-"`
2435 }
2436
2437 func (s *FleetObservabilityFeatureState) MarshalJSON() ([]byte, error) {
2438 type NoMethod FleetObservabilityFeatureState
2439 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2440 }
2441
2442
2443
2444 type FleetObservabilityFleetObservabilityBaseFeatureState struct {
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454 Code string `json:"code,omitempty"`
2455
2456
2457 Errors []*FleetObservabilityFeatureError `json:"errors,omitempty"`
2458
2459
2460
2461
2462
2463 ForceSendFields []string `json:"-"`
2464
2465
2466
2467
2468 NullFields []string `json:"-"`
2469 }
2470
2471 func (s *FleetObservabilityFleetObservabilityBaseFeatureState) MarshalJSON() ([]byte, error) {
2472 type NoMethod FleetObservabilityFleetObservabilityBaseFeatureState
2473 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2474 }
2475
2476
2477
2478 type FleetObservabilityFleetObservabilityLoggingState struct {
2479
2480 DefaultLog *FleetObservabilityFleetObservabilityBaseFeatureState `json:"defaultLog,omitempty"`
2481
2482 ScopeLog *FleetObservabilityFleetObservabilityBaseFeatureState `json:"scopeLog,omitempty"`
2483
2484
2485
2486
2487
2488 ForceSendFields []string `json:"-"`
2489
2490
2491
2492
2493 NullFields []string `json:"-"`
2494 }
2495
2496 func (s *FleetObservabilityFleetObservabilityLoggingState) MarshalJSON() ([]byte, error) {
2497 type NoMethod FleetObservabilityFleetObservabilityLoggingState
2498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2499 }
2500
2501
2502
2503 type FleetObservabilityFleetObservabilityMonitoringState struct {
2504
2505 State *FleetObservabilityFleetObservabilityBaseFeatureState `json:"state,omitempty"`
2506
2507
2508
2509
2510
2511 ForceSendFields []string `json:"-"`
2512
2513
2514
2515
2516 NullFields []string `json:"-"`
2517 }
2518
2519 func (s *FleetObservabilityFleetObservabilityMonitoringState) MarshalJSON() ([]byte, error) {
2520 type NoMethod FleetObservabilityFleetObservabilityMonitoringState
2521 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2522 }
2523
2524
2525
2526 type FleetObservabilityLoggingConfig struct {
2527
2528
2529 DefaultConfig *FleetObservabilityRoutingConfig `json:"defaultConfig,omitempty"`
2530
2531
2532 FleetScopeLogsConfig *FleetObservabilityRoutingConfig `json:"fleetScopeLogsConfig,omitempty"`
2533
2534
2535
2536
2537
2538 ForceSendFields []string `json:"-"`
2539
2540
2541
2542
2543 NullFields []string `json:"-"`
2544 }
2545
2546 func (s *FleetObservabilityLoggingConfig) MarshalJSON() ([]byte, error) {
2547 type NoMethod FleetObservabilityLoggingConfig
2548 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2549 }
2550
2551
2552
2553 type FleetObservabilityMembershipSpec struct {
2554 }
2555
2556
2557
2558 type FleetObservabilityMembershipState struct {
2559 }
2560
2561
2562
2563 type FleetObservabilityRoutingConfig struct {
2564
2565
2566
2567
2568
2569
2570 Mode string `json:"mode,omitempty"`
2571
2572
2573
2574
2575
2576 ForceSendFields []string `json:"-"`
2577
2578
2579
2580
2581 NullFields []string `json:"-"`
2582 }
2583
2584 func (s *FleetObservabilityRoutingConfig) MarshalJSON() ([]byte, error) {
2585 type NoMethod FleetObservabilityRoutingConfig
2586 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2587 }
2588
2589
2590
2591 type GenerateConnectManifestResponse struct {
2592
2593
2594 Manifest []*ConnectAgentResource `json:"manifest,omitempty"`
2595
2596
2597 googleapi.ServerResponse `json:"-"`
2598
2599
2600
2601
2602
2603 ForceSendFields []string `json:"-"`
2604
2605
2606
2607
2608 NullFields []string `json:"-"`
2609 }
2610
2611 func (s *GenerateConnectManifestResponse) MarshalJSON() ([]byte, error) {
2612 type NoMethod GenerateConnectManifestResponse
2613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2614 }
2615
2616
2617 type GkeCluster struct {
2618
2619
2620 ClusterMissing bool `json:"clusterMissing,omitempty"`
2621
2622
2623
2624
2625 ResourceLink string `json:"resourceLink,omitempty"`
2626
2627
2628
2629
2630
2631 ForceSendFields []string `json:"-"`
2632
2633
2634
2635
2636 NullFields []string `json:"-"`
2637 }
2638
2639 func (s *GkeCluster) MarshalJSON() ([]byte, error) {
2640 type NoMethod GkeCluster
2641 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2642 }
2643
2644
2645
2646
2647
2648
2649
2650 type GoogleRpcStatus struct {
2651
2652 Code int64 `json:"code,omitempty"`
2653
2654
2655 Details []googleapi.RawMessage `json:"details,omitempty"`
2656
2657
2658
2659 Message string `json:"message,omitempty"`
2660
2661
2662
2663
2664
2665 ForceSendFields []string `json:"-"`
2666
2667
2668
2669
2670 NullFields []string `json:"-"`
2671 }
2672
2673 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
2674 type NoMethod GoogleRpcStatus
2675 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2676 }
2677
2678
2679
2680
2681 type IdentityServiceAuthMethod struct {
2682
2683 AzureadConfig *IdentityServiceAzureADConfig `json:"azureadConfig,omitempty"`
2684
2685 GoogleConfig *IdentityServiceGoogleConfig `json:"googleConfig,omitempty"`
2686
2687 LdapConfig *IdentityServiceLdapConfig `json:"ldapConfig,omitempty"`
2688
2689 Name string `json:"name,omitempty"`
2690
2691 OidcConfig *IdentityServiceOidcConfig `json:"oidcConfig,omitempty"`
2692
2693 Proxy string `json:"proxy,omitempty"`
2694
2695 SamlConfig *IdentityServiceSamlConfig `json:"samlConfig,omitempty"`
2696
2697
2698
2699
2700
2701 ForceSendFields []string `json:"-"`
2702
2703
2704
2705
2706 NullFields []string `json:"-"`
2707 }
2708
2709 func (s *IdentityServiceAuthMethod) MarshalJSON() ([]byte, error) {
2710 type NoMethod IdentityServiceAuthMethod
2711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2712 }
2713
2714
2715 type IdentityServiceAzureADConfig struct {
2716
2717
2718 ClientId string `json:"clientId,omitempty"`
2719
2720
2721 ClientSecret string `json:"clientSecret,omitempty"`
2722
2723 EncryptedClientSecret string `json:"encryptedClientSecret,omitempty"`
2724
2725
2726 GroupFormat string `json:"groupFormat,omitempty"`
2727
2728 KubectlRedirectUri string `json:"kubectlRedirectUri,omitempty"`
2729
2730
2731 Tenant string `json:"tenant,omitempty"`
2732
2733
2734 UserClaim string `json:"userClaim,omitempty"`
2735
2736
2737
2738
2739
2740 ForceSendFields []string `json:"-"`
2741
2742
2743
2744
2745 NullFields []string `json:"-"`
2746 }
2747
2748 func (s *IdentityServiceAzureADConfig) MarshalJSON() ([]byte, error) {
2749 type NoMethod IdentityServiceAzureADConfig
2750 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2751 }
2752
2753
2754 type IdentityServiceGoogleConfig struct {
2755
2756
2757 Disable bool `json:"disable,omitempty"`
2758
2759
2760
2761
2762
2763 ForceSendFields []string `json:"-"`
2764
2765
2766
2767
2768 NullFields []string `json:"-"`
2769 }
2770
2771 func (s *IdentityServiceGoogleConfig) MarshalJSON() ([]byte, error) {
2772 type NoMethod IdentityServiceGoogleConfig
2773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2774 }
2775
2776
2777
2778 type IdentityServiceGroupConfig struct {
2779
2780
2781 BaseDn string `json:"baseDn,omitempty"`
2782
2783
2784
2785
2786 Filter string `json:"filter,omitempty"`
2787
2788
2789
2790
2791 IdAttribute string `json:"idAttribute,omitempty"`
2792
2793
2794
2795
2796
2797 ForceSendFields []string `json:"-"`
2798
2799
2800
2801
2802 NullFields []string `json:"-"`
2803 }
2804
2805 func (s *IdentityServiceGroupConfig) MarshalJSON() ([]byte, error) {
2806 type NoMethod IdentityServiceGroupConfig
2807 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2808 }
2809
2810
2811
2812 type IdentityServiceIdentityServiceOptions struct {
2813
2814
2815 SessionDuration string `json:"sessionDuration,omitempty"`
2816
2817
2818
2819
2820
2821 ForceSendFields []string `json:"-"`
2822
2823
2824
2825
2826 NullFields []string `json:"-"`
2827 }
2828
2829 func (s *IdentityServiceIdentityServiceOptions) MarshalJSON() ([]byte, error) {
2830 type NoMethod IdentityServiceIdentityServiceOptions
2831 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2832 }
2833
2834
2835 type IdentityServiceLdapConfig struct {
2836
2837
2838 Group *IdentityServiceGroupConfig `json:"group,omitempty"`
2839
2840 Server *IdentityServiceServerConfig `json:"server,omitempty"`
2841
2842
2843
2844
2845 ServiceAccount *IdentityServiceServiceAccountConfig `json:"serviceAccount,omitempty"`
2846
2847 User *IdentityServiceUserConfig `json:"user,omitempty"`
2848
2849
2850
2851
2852
2853 ForceSendFields []string `json:"-"`
2854
2855
2856
2857
2858 NullFields []string `json:"-"`
2859 }
2860
2861 func (s *IdentityServiceLdapConfig) MarshalJSON() ([]byte, error) {
2862 type NoMethod IdentityServiceLdapConfig
2863 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2864 }
2865
2866
2867
2868 type IdentityServiceMembershipSpec struct {
2869
2870 AuthMethods []*IdentityServiceAuthMethod `json:"authMethods,omitempty"`
2871
2872
2873 IdentityServiceOptions *IdentityServiceIdentityServiceOptions `json:"identityServiceOptions,omitempty"`
2874
2875
2876
2877
2878
2879 ForceSendFields []string `json:"-"`
2880
2881
2882
2883
2884 NullFields []string `json:"-"`
2885 }
2886
2887 func (s *IdentityServiceMembershipSpec) MarshalJSON() ([]byte, error) {
2888 type NoMethod IdentityServiceMembershipSpec
2889 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2890 }
2891
2892
2893
2894 type IdentityServiceMembershipState struct {
2895
2896 FailureReason string `json:"failureReason,omitempty"`
2897
2898
2899 InstalledVersion string `json:"installedVersion,omitempty"`
2900
2901 MemberConfig *IdentityServiceMembershipSpec `json:"memberConfig,omitempty"`
2902
2903
2904
2905
2906
2907
2908 State string `json:"state,omitempty"`
2909
2910
2911
2912
2913
2914 ForceSendFields []string `json:"-"`
2915
2916
2917
2918
2919 NullFields []string `json:"-"`
2920 }
2921
2922 func (s *IdentityServiceMembershipState) MarshalJSON() ([]byte, error) {
2923 type NoMethod IdentityServiceMembershipState
2924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2925 }
2926
2927
2928 type IdentityServiceOidcConfig struct {
2929
2930 CertificateAuthorityData string `json:"certificateAuthorityData,omitempty"`
2931
2932 ClientId string `json:"clientId,omitempty"`
2933
2934
2935 ClientSecret string `json:"clientSecret,omitempty"`
2936
2937
2938
2939 DeployCloudConsoleProxy bool `json:"deployCloudConsoleProxy,omitempty"`
2940
2941 EnableAccessToken bool `json:"enableAccessToken,omitempty"`
2942
2943 EncryptedClientSecret string `json:"encryptedClientSecret,omitempty"`
2944
2945 ExtraParams string `json:"extraParams,omitempty"`
2946
2947 GroupPrefix string `json:"groupPrefix,omitempty"`
2948
2949 GroupsClaim string `json:"groupsClaim,omitempty"`
2950
2951
2952 IssuerUri string `json:"issuerUri,omitempty"`
2953
2954
2955 KubectlRedirectUri string `json:"kubectlRedirectUri,omitempty"`
2956
2957 Scopes string `json:"scopes,omitempty"`
2958
2959 UserClaim string `json:"userClaim,omitempty"`
2960
2961 UserPrefix string `json:"userPrefix,omitempty"`
2962
2963
2964
2965
2966
2967 ForceSendFields []string `json:"-"`
2968
2969
2970
2971
2972 NullFields []string `json:"-"`
2973 }
2974
2975 func (s *IdentityServiceOidcConfig) MarshalJSON() ([]byte, error) {
2976 type NoMethod IdentityServiceOidcConfig
2977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2978 }
2979
2980
2981 type IdentityServiceSamlConfig struct {
2982
2983
2984
2985
2986
2987
2988 AttributeMapping map[string]string `json:"attributeMapping,omitempty"`
2989
2990 GroupPrefix string `json:"groupPrefix,omitempty"`
2991
2992
2993
2994 GroupsAttribute string `json:"groupsAttribute,omitempty"`
2995
2996
2997 IdentityProviderCertificates []string `json:"identityProviderCertificates,omitempty"`
2998
2999 IdentityProviderId string `json:"identityProviderId,omitempty"`
3000
3001
3002 IdentityProviderSsoUri string `json:"identityProviderSsoUri,omitempty"`
3003
3004
3005
3006
3007
3008 UserAttribute string `json:"userAttribute,omitempty"`
3009
3010 UserPrefix string `json:"userPrefix,omitempty"`
3011
3012
3013
3014
3015
3016 ForceSendFields []string `json:"-"`
3017
3018
3019
3020
3021 NullFields []string `json:"-"`
3022 }
3023
3024 func (s *IdentityServiceSamlConfig) MarshalJSON() ([]byte, error) {
3025 type NoMethod IdentityServiceSamlConfig
3026 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3027 }
3028
3029
3030 type IdentityServiceServerConfig struct {
3031
3032
3033
3034 CertificateAuthorityData string `json:"certificateAuthorityData,omitempty"`
3035
3036
3037
3038 ConnectionType string `json:"connectionType,omitempty"`
3039
3040
3041
3042 Host string `json:"host,omitempty"`
3043
3044
3045
3046
3047
3048 ForceSendFields []string `json:"-"`
3049
3050
3051
3052
3053 NullFields []string `json:"-"`
3054 }
3055
3056 func (s *IdentityServiceServerConfig) MarshalJSON() ([]byte, error) {
3057 type NoMethod IdentityServiceServerConfig
3058 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3059 }
3060
3061
3062
3063
3064
3065 type IdentityServiceServiceAccountConfig struct {
3066
3067 SimpleBindCredentials *IdentityServiceSimpleBindCredentials `json:"simpleBindCredentials,omitempty"`
3068
3069
3070
3071
3072
3073 ForceSendFields []string `json:"-"`
3074
3075
3076
3077
3078 NullFields []string `json:"-"`
3079 }
3080
3081 func (s *IdentityServiceServiceAccountConfig) MarshalJSON() ([]byte, error) {
3082 type NoMethod IdentityServiceServiceAccountConfig
3083 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3084 }
3085
3086
3087
3088 type IdentityServiceSimpleBindCredentials struct {
3089
3090 Dn string `json:"dn,omitempty"`
3091
3092
3093 EncryptedPassword string `json:"encryptedPassword,omitempty"`
3094
3095
3096 Password string `json:"password,omitempty"`
3097
3098
3099
3100
3101
3102 ForceSendFields []string `json:"-"`
3103
3104
3105
3106
3107 NullFields []string `json:"-"`
3108 }
3109
3110 func (s *IdentityServiceSimpleBindCredentials) MarshalJSON() ([]byte, error) {
3111 type NoMethod IdentityServiceSimpleBindCredentials
3112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3113 }
3114
3115
3116 type IdentityServiceUserConfig struct {
3117
3118
3119 BaseDn string `json:"baseDn,omitempty"`
3120
3121
3122
3123 Filter string `json:"filter,omitempty"`
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133 IdAttribute string `json:"idAttribute,omitempty"`
3134
3135
3136
3137
3138 LoginAttribute string `json:"loginAttribute,omitempty"`
3139
3140
3141
3142
3143
3144 ForceSendFields []string `json:"-"`
3145
3146
3147
3148
3149 NullFields []string `json:"-"`
3150 }
3151
3152 func (s *IdentityServiceUserConfig) MarshalJSON() ([]byte, error) {
3153 type NoMethod IdentityServiceUserConfig
3154 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3155 }
3156
3157
3158
3159 type KubernetesMetadata struct {
3160
3161
3162 KubernetesApiServerVersion string `json:"kubernetesApiServerVersion,omitempty"`
3163
3164
3165 MemoryMb int64 `json:"memoryMb,omitempty"`
3166
3167
3168 NodeCount int64 `json:"nodeCount,omitempty"`
3169
3170
3171
3172
3173 NodeProviderId string `json:"nodeProviderId,omitempty"`
3174
3175
3176
3177 UpdateTime string `json:"updateTime,omitempty"`
3178
3179
3180 VcpuCount int64 `json:"vcpuCount,omitempty"`
3181
3182
3183
3184
3185
3186 ForceSendFields []string `json:"-"`
3187
3188
3189
3190
3191 NullFields []string `json:"-"`
3192 }
3193
3194 func (s *KubernetesMetadata) MarshalJSON() ([]byte, error) {
3195 type NoMethod KubernetesMetadata
3196 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3197 }
3198
3199
3200
3201
3202
3203 type KubernetesResource struct {
3204
3205
3206
3207
3208
3209
3210
3211 ConnectResources []*ResourceManifest `json:"connectResources,omitempty"`
3212
3213
3214
3215
3216
3217
3218 MembershipCrManifest string `json:"membershipCrManifest,omitempty"`
3219
3220
3221
3222
3223
3224
3225
3226 MembershipResources []*ResourceManifest `json:"membershipResources,omitempty"`
3227
3228 ResourceOptions *ResourceOptions `json:"resourceOptions,omitempty"`
3229
3230
3231
3232
3233
3234 ForceSendFields []string `json:"-"`
3235
3236
3237
3238
3239 NullFields []string `json:"-"`
3240 }
3241
3242 func (s *KubernetesResource) MarshalJSON() ([]byte, error) {
3243 type NoMethod KubernetesResource
3244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3245 }
3246
3247
3248 type ListBoundMembershipsResponse struct {
3249
3250 Memberships []*Membership `json:"memberships,omitempty"`
3251
3252
3253
3254 NextPageToken string `json:"nextPageToken,omitempty"`
3255
3256
3257 Unreachable []string `json:"unreachable,omitempty"`
3258
3259
3260 googleapi.ServerResponse `json:"-"`
3261
3262
3263
3264
3265
3266 ForceSendFields []string `json:"-"`
3267
3268
3269
3270
3271 NullFields []string `json:"-"`
3272 }
3273
3274 func (s *ListBoundMembershipsResponse) MarshalJSON() ([]byte, error) {
3275 type NoMethod ListBoundMembershipsResponse
3276 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3277 }
3278
3279
3280 type ListFeaturesResponse struct {
3281
3282
3283
3284 NextPageToken string `json:"nextPageToken,omitempty"`
3285
3286 Resources []*Feature `json:"resources,omitempty"`
3287
3288
3289 googleapi.ServerResponse `json:"-"`
3290
3291
3292
3293
3294
3295 ForceSendFields []string `json:"-"`
3296
3297
3298
3299
3300 NullFields []string `json:"-"`
3301 }
3302
3303 func (s *ListFeaturesResponse) MarshalJSON() ([]byte, error) {
3304 type NoMethod ListFeaturesResponse
3305 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3306 }
3307
3308
3309
3310 type ListFleetsResponse struct {
3311
3312 Fleets []*Fleet `json:"fleets,omitempty"`
3313
3314
3315
3316 NextPageToken string `json:"nextPageToken,omitempty"`
3317
3318
3319 googleapi.ServerResponse `json:"-"`
3320
3321
3322
3323
3324
3325 ForceSendFields []string `json:"-"`
3326
3327
3328
3329
3330 NullFields []string `json:"-"`
3331 }
3332
3333 func (s *ListFleetsResponse) MarshalJSON() ([]byte, error) {
3334 type NoMethod ListFleetsResponse
3335 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3336 }
3337
3338
3339 type ListLocationsResponse struct {
3340
3341
3342 Locations []*Location `json:"locations,omitempty"`
3343
3344 NextPageToken string `json:"nextPageToken,omitempty"`
3345
3346
3347 googleapi.ServerResponse `json:"-"`
3348
3349
3350
3351
3352
3353 ForceSendFields []string `json:"-"`
3354
3355
3356
3357
3358 NullFields []string `json:"-"`
3359 }
3360
3361 func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
3362 type NoMethod ListLocationsResponse
3363 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3364 }
3365
3366
3367 type ListMembershipBindingsResponse struct {
3368
3369 MembershipBindings []*MembershipBinding `json:"membershipBindings,omitempty"`
3370
3371
3372
3373 NextPageToken string `json:"nextPageToken,omitempty"`
3374
3375
3376 googleapi.ServerResponse `json:"-"`
3377
3378
3379
3380
3381
3382 ForceSendFields []string `json:"-"`
3383
3384
3385
3386
3387 NullFields []string `json:"-"`
3388 }
3389
3390 func (s *ListMembershipBindingsResponse) MarshalJSON() ([]byte, error) {
3391 type NoMethod ListMembershipBindingsResponse
3392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3393 }
3394
3395
3396
3397 type ListMembershipsResponse struct {
3398
3399
3400
3401 NextPageToken string `json:"nextPageToken,omitempty"`
3402
3403 Resources []*Membership `json:"resources,omitempty"`
3404
3405
3406 Unreachable []string `json:"unreachable,omitempty"`
3407
3408
3409 googleapi.ServerResponse `json:"-"`
3410
3411
3412
3413
3414
3415 ForceSendFields []string `json:"-"`
3416
3417
3418
3419
3420 NullFields []string `json:"-"`
3421 }
3422
3423 func (s *ListMembershipsResponse) MarshalJSON() ([]byte, error) {
3424 type NoMethod ListMembershipsResponse
3425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3426 }
3427
3428
3429 type ListOperationsResponse struct {
3430
3431 NextPageToken string `json:"nextPageToken,omitempty"`
3432
3433
3434 Operations []*Operation `json:"operations,omitempty"`
3435
3436
3437 googleapi.ServerResponse `json:"-"`
3438
3439
3440
3441
3442
3443 ForceSendFields []string `json:"-"`
3444
3445
3446
3447
3448 NullFields []string `json:"-"`
3449 }
3450
3451 func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
3452 type NoMethod ListOperationsResponse
3453 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3454 }
3455
3456
3457 type ListPermittedScopesResponse struct {
3458
3459
3460
3461 NextPageToken string `json:"nextPageToken,omitempty"`
3462
3463 Scopes []*Scope `json:"scopes,omitempty"`
3464
3465
3466 googleapi.ServerResponse `json:"-"`
3467
3468
3469
3470
3471
3472 ForceSendFields []string `json:"-"`
3473
3474
3475
3476
3477 NullFields []string `json:"-"`
3478 }
3479
3480 func (s *ListPermittedScopesResponse) MarshalJSON() ([]byte, error) {
3481 type NoMethod ListPermittedScopesResponse
3482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3483 }
3484
3485
3486 type ListScopeNamespacesResponse struct {
3487
3488
3489
3490 NextPageToken string `json:"nextPageToken,omitempty"`
3491
3492 ScopeNamespaces []*Namespace `json:"scopeNamespaces,omitempty"`
3493
3494
3495 googleapi.ServerResponse `json:"-"`
3496
3497
3498
3499
3500
3501 ForceSendFields []string `json:"-"`
3502
3503
3504
3505
3506 NullFields []string `json:"-"`
3507 }
3508
3509 func (s *ListScopeNamespacesResponse) MarshalJSON() ([]byte, error) {
3510 type NoMethod ListScopeNamespacesResponse
3511 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3512 }
3513
3514
3515 type ListScopeRBACRoleBindingsResponse struct {
3516
3517
3518
3519 NextPageToken string `json:"nextPageToken,omitempty"`
3520
3521 Rbacrolebindings []*RBACRoleBinding `json:"rbacrolebindings,omitempty"`
3522
3523
3524 googleapi.ServerResponse `json:"-"`
3525
3526
3527
3528
3529
3530 ForceSendFields []string `json:"-"`
3531
3532
3533
3534
3535 NullFields []string `json:"-"`
3536 }
3537
3538 func (s *ListScopeRBACRoleBindingsResponse) MarshalJSON() ([]byte, error) {
3539 type NoMethod ListScopeRBACRoleBindingsResponse
3540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3541 }
3542
3543
3544 type ListScopesResponse struct {
3545
3546
3547
3548 NextPageToken string `json:"nextPageToken,omitempty"`
3549
3550 Scopes []*Scope `json:"scopes,omitempty"`
3551
3552
3553 googleapi.ServerResponse `json:"-"`
3554
3555
3556
3557
3558
3559 ForceSendFields []string `json:"-"`
3560
3561
3562
3563
3564 NullFields []string `json:"-"`
3565 }
3566
3567 func (s *ListScopesResponse) MarshalJSON() ([]byte, error) {
3568 type NoMethod ListScopesResponse
3569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3570 }
3571
3572
3573 type Location struct {
3574
3575
3576 DisplayName string `json:"displayName,omitempty"`
3577
3578
3579 Labels map[string]string `json:"labels,omitempty"`
3580
3581 LocationId string `json:"locationId,omitempty"`
3582
3583
3584 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3585
3586
3587
3588 Name string `json:"name,omitempty"`
3589
3590
3591 googleapi.ServerResponse `json:"-"`
3592
3593
3594
3595
3596
3597 ForceSendFields []string `json:"-"`
3598
3599
3600
3601
3602 NullFields []string `json:"-"`
3603 }
3604
3605 func (s *Location) MarshalJSON() ([]byte, error) {
3606 type NoMethod Location
3607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3608 }
3609
3610
3611 type Membership struct {
3612
3613
3614
3615 Authority *Authority `json:"authority,omitempty"`
3616
3617 CreateTime string `json:"createTime,omitempty"`
3618
3619 DeleteTime string `json:"deleteTime,omitempty"`
3620
3621
3622
3623 Description string `json:"description,omitempty"`
3624
3625 Endpoint *MembershipEndpoint `json:"endpoint,omitempty"`
3626
3627
3628
3629
3630
3631 ExternalId string `json:"externalId,omitempty"`
3632
3633 Labels map[string]string `json:"labels,omitempty"`
3634
3635
3636
3637
3638
3639 LastConnectionTime string `json:"lastConnectionTime,omitempty"`
3640
3641
3642 MonitoringConfig *MonitoringConfig `json:"monitoringConfig,omitempty"`
3643
3644
3645
3646
3647
3648
3649
3650 Name string `json:"name,omitempty"`
3651
3652 State *MembershipState `json:"state,omitempty"`
3653
3654
3655
3656
3657 UniqueId string `json:"uniqueId,omitempty"`
3658
3659 UpdateTime string `json:"updateTime,omitempty"`
3660
3661
3662 googleapi.ServerResponse `json:"-"`
3663
3664
3665
3666
3667
3668 ForceSendFields []string `json:"-"`
3669
3670
3671
3672
3673 NullFields []string `json:"-"`
3674 }
3675
3676 func (s *Membership) MarshalJSON() ([]byte, error) {
3677 type NoMethod Membership
3678 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3679 }
3680
3681
3682
3683
3684 type MembershipBinding struct {
3685
3686 CreateTime string `json:"createTime,omitempty"`
3687
3688 DeleteTime string `json:"deleteTime,omitempty"`
3689
3690 Labels map[string]string `json:"labels,omitempty"`
3691
3692
3693
3694 Name string `json:"name,omitempty"`
3695
3696
3697 Scope string `json:"scope,omitempty"`
3698
3699 State *MembershipBindingLifecycleState `json:"state,omitempty"`
3700
3701
3702
3703
3704 Uid string `json:"uid,omitempty"`
3705
3706 UpdateTime string `json:"updateTime,omitempty"`
3707
3708
3709 googleapi.ServerResponse `json:"-"`
3710
3711
3712
3713
3714
3715 ForceSendFields []string `json:"-"`
3716
3717
3718
3719
3720 NullFields []string `json:"-"`
3721 }
3722
3723 func (s *MembershipBinding) MarshalJSON() ([]byte, error) {
3724 type NoMethod MembershipBinding
3725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3726 }
3727
3728
3729
3730 type MembershipBindingLifecycleState struct {
3731
3732
3733
3734
3735
3736
3737
3738
3739 Code string `json:"code,omitempty"`
3740
3741
3742
3743
3744
3745 ForceSendFields []string `json:"-"`
3746
3747
3748
3749
3750 NullFields []string `json:"-"`
3751 }
3752
3753 func (s *MembershipBindingLifecycleState) MarshalJSON() ([]byte, error) {
3754 type NoMethod MembershipBindingLifecycleState
3755 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3756 }
3757
3758
3759
3760 type MembershipEndpoint struct {
3761
3762
3763 ApplianceCluster *ApplianceCluster `json:"applianceCluster,omitempty"`
3764
3765 EdgeCluster *EdgeCluster `json:"edgeCluster,omitempty"`
3766
3767 GkeCluster *GkeCluster `json:"gkeCluster,omitempty"`
3768
3769
3770 GoogleManaged bool `json:"googleManaged,omitempty"`
3771
3772 KubernetesMetadata *KubernetesMetadata `json:"kubernetesMetadata,omitempty"`
3773
3774
3775
3776
3777
3778
3779 KubernetesResource *KubernetesResource `json:"kubernetesResource,omitempty"`
3780
3781
3782 MultiCloudCluster *MultiCloudCluster `json:"multiCloudCluster,omitempty"`
3783
3784
3785
3786 OnPremCluster *OnPremCluster `json:"onPremCluster,omitempty"`
3787
3788
3789
3790
3791
3792 ForceSendFields []string `json:"-"`
3793
3794
3795
3796
3797 NullFields []string `json:"-"`
3798 }
3799
3800 func (s *MembershipEndpoint) MarshalJSON() ([]byte, error) {
3801 type NoMethod MembershipEndpoint
3802 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3803 }
3804
3805
3806
3807
3808 type MembershipFeatureSpec struct {
3809
3810 Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"`
3811
3812 Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"`
3813
3814 Identityservice *IdentityServiceMembershipSpec `json:"identityservice,omitempty"`
3815
3816 Mesh *ServiceMeshMembershipSpec `json:"mesh,omitempty"`
3817
3818
3819
3820
3821 Origin *Origin `json:"origin,omitempty"`
3822
3823 Policycontroller *PolicyControllerMembershipSpec `json:"policycontroller,omitempty"`
3824
3825
3826
3827
3828
3829 ForceSendFields []string `json:"-"`
3830
3831
3832
3833
3834 NullFields []string `json:"-"`
3835 }
3836
3837 func (s *MembershipFeatureSpec) MarshalJSON() ([]byte, error) {
3838 type NoMethod MembershipFeatureSpec
3839 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3840 }
3841
3842
3843
3844 type MembershipFeatureState struct {
3845
3846 Appdevexperience *AppDevExperienceFeatureState `json:"appdevexperience,omitempty"`
3847
3848 Clusterupgrade *ClusterUpgradeMembershipState `json:"clusterupgrade,omitempty"`
3849
3850 Configmanagement *ConfigManagementMembershipState `json:"configmanagement,omitempty"`
3851
3852 Fleetobservability *FleetObservabilityMembershipState `json:"fleetobservability,omitempty"`
3853
3854 Identityservice *IdentityServiceMembershipState `json:"identityservice,omitempty"`
3855
3856 Policycontroller *PolicyControllerMembershipState `json:"policycontroller,omitempty"`
3857
3858 Servicemesh *ServiceMeshMembershipState `json:"servicemesh,omitempty"`
3859
3860 State *FeatureState `json:"state,omitempty"`
3861
3862
3863
3864
3865
3866 ForceSendFields []string `json:"-"`
3867
3868
3869
3870
3871 NullFields []string `json:"-"`
3872 }
3873
3874 func (s *MembershipFeatureState) MarshalJSON() ([]byte, error) {
3875 type NoMethod MembershipFeatureState
3876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3877 }
3878
3879
3880
3881 type MembershipState struct {
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891 Code string `json:"code,omitempty"`
3892
3893
3894
3895
3896
3897 ForceSendFields []string `json:"-"`
3898
3899
3900
3901
3902 NullFields []string `json:"-"`
3903 }
3904
3905 func (s *MembershipState) MarshalJSON() ([]byte, error) {
3906 type NoMethod MembershipState
3907 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3908 }
3909
3910
3911
3912
3913
3914
3915 type MonitoringConfig struct {
3916
3917
3918
3919 Cluster string `json:"cluster,omitempty"`
3920
3921
3922
3923 ClusterHash string `json:"clusterHash,omitempty"`
3924
3925
3926
3927
3928
3929 KubernetesMetricsPrefix string `json:"kubernetesMetricsPrefix,omitempty"`
3930
3931 Location string `json:"location,omitempty"`
3932
3933 ProjectId string `json:"projectId,omitempty"`
3934
3935
3936
3937
3938
3939 ForceSendFields []string `json:"-"`
3940
3941
3942
3943
3944 NullFields []string `json:"-"`
3945 }
3946
3947 func (s *MonitoringConfig) MarshalJSON() ([]byte, error) {
3948 type NoMethod MonitoringConfig
3949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3950 }
3951
3952
3953
3954 type MultiCloudCluster struct {
3955
3956
3957
3958 ClusterMissing bool `json:"clusterMissing,omitempty"`
3959
3960
3961
3962
3963
3964
3965
3966
3967 ResourceLink string `json:"resourceLink,omitempty"`
3968
3969
3970
3971
3972
3973 ForceSendFields []string `json:"-"`
3974
3975
3976
3977
3978 NullFields []string `json:"-"`
3979 }
3980
3981 func (s *MultiCloudCluster) MarshalJSON() ([]byte, error) {
3982 type NoMethod MultiCloudCluster
3983 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3984 }
3985
3986
3987
3988 type MultiClusterIngressFeatureSpec struct {
3989
3990
3991
3992 ConfigMembership string `json:"configMembership,omitempty"`
3993
3994
3995
3996
3997
3998 ForceSendFields []string `json:"-"`
3999
4000
4001
4002
4003 NullFields []string `json:"-"`
4004 }
4005
4006 func (s *MultiClusterIngressFeatureSpec) MarshalJSON() ([]byte, error) {
4007 type NoMethod MultiClusterIngressFeatureSpec
4008 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4009 }
4010
4011
4012 type Namespace struct {
4013
4014 CreateTime string `json:"createTime,omitempty"`
4015
4016 DeleteTime string `json:"deleteTime,omitempty"`
4017
4018 Labels map[string]string `json:"labels,omitempty"`
4019
4020
4021 Name string `json:"name,omitempty"`
4022
4023
4024
4025
4026
4027 NamespaceLabels map[string]string `json:"namespaceLabels,omitempty"`
4028
4029 Scope string `json:"scope,omitempty"`
4030
4031 State *NamespaceLifecycleState `json:"state,omitempty"`
4032
4033
4034
4035 Uid string `json:"uid,omitempty"`
4036
4037 UpdateTime string `json:"updateTime,omitempty"`
4038
4039
4040 googleapi.ServerResponse `json:"-"`
4041
4042
4043
4044
4045
4046 ForceSendFields []string `json:"-"`
4047
4048
4049
4050
4051 NullFields []string `json:"-"`
4052 }
4053
4054 func (s *Namespace) MarshalJSON() ([]byte, error) {
4055 type NoMethod Namespace
4056 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4057 }
4058
4059
4060
4061 type NamespaceLifecycleState struct {
4062
4063
4064
4065
4066
4067
4068
4069
4070 Code string `json:"code,omitempty"`
4071
4072
4073
4074
4075
4076 ForceSendFields []string `json:"-"`
4077
4078
4079
4080
4081 NullFields []string `json:"-"`
4082 }
4083
4084 func (s *NamespaceLifecycleState) MarshalJSON() ([]byte, error) {
4085 type NoMethod NamespaceLifecycleState
4086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4087 }
4088
4089
4090
4091 type OnPremCluster struct {
4092
4093 AdminCluster bool `json:"adminCluster,omitempty"`
4094
4095
4096
4097 ClusterMissing bool `json:"clusterMissing,omitempty"`
4098
4099
4100
4101
4102
4103
4104
4105
4106 ClusterType string `json:"clusterType,omitempty"`
4107
4108
4109
4110
4111
4112
4113 ResourceLink string `json:"resourceLink,omitempty"`
4114
4115
4116
4117
4118
4119 ForceSendFields []string `json:"-"`
4120
4121
4122
4123
4124 NullFields []string `json:"-"`
4125 }
4126
4127 func (s *OnPremCluster) MarshalJSON() ([]byte, error) {
4128 type NoMethod OnPremCluster
4129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4130 }
4131
4132
4133
4134 type Operation struct {
4135
4136
4137
4138 Done bool `json:"done,omitempty"`
4139
4140 Error *GoogleRpcStatus `json:"error,omitempty"`
4141
4142
4143
4144
4145 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
4146
4147
4148
4149 Name string `json:"name,omitempty"`
4150
4151
4152
4153
4154
4155
4156
4157 Response googleapi.RawMessage `json:"response,omitempty"`
4158
4159
4160 googleapi.ServerResponse `json:"-"`
4161
4162
4163
4164
4165
4166 ForceSendFields []string `json:"-"`
4167
4168
4169
4170
4171 NullFields []string `json:"-"`
4172 }
4173
4174 func (s *Operation) MarshalJSON() ([]byte, error) {
4175 type NoMethod Operation
4176 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4177 }
4178
4179
4180 type OperationMetadata struct {
4181
4182 ApiVersion string `json:"apiVersion,omitempty"`
4183
4184
4185
4186
4187 CancelRequested bool `json:"cancelRequested,omitempty"`
4188
4189 CreateTime string `json:"createTime,omitempty"`
4190
4191 EndTime string `json:"endTime,omitempty"`
4192
4193 StatusDetail string `json:"statusDetail,omitempty"`
4194
4195
4196 Target string `json:"target,omitempty"`
4197
4198 Verb string `json:"verb,omitempty"`
4199
4200
4201
4202
4203
4204 ForceSendFields []string `json:"-"`
4205
4206
4207
4208
4209 NullFields []string `json:"-"`
4210 }
4211
4212 func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
4213 type NoMethod OperationMetadata
4214 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4215 }
4216
4217
4218 type Origin struct {
4219
4220
4221
4222
4223
4224
4225
4226
4227 Type string `json:"type,omitempty"`
4228
4229
4230
4231
4232
4233 ForceSendFields []string `json:"-"`
4234
4235
4236
4237
4238 NullFields []string `json:"-"`
4239 }
4240
4241 func (s *Origin) MarshalJSON() ([]byte, error) {
4242 type NoMethod Origin
4243 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4244 }
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276 type Policy struct {
4277
4278 AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288 Bindings []*Binding `json:"bindings,omitempty"`
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300 Etag string `json:"etag,omitempty"`
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316 Version int64 `json:"version,omitempty"`
4317
4318
4319 googleapi.ServerResponse `json:"-"`
4320
4321
4322
4323
4324
4325 ForceSendFields []string `json:"-"`
4326
4327
4328
4329
4330 NullFields []string `json:"-"`
4331 }
4332
4333 func (s *Policy) MarshalJSON() ([]byte, error) {
4334 type NoMethod Policy
4335 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4336 }
4337
4338
4339 type PolicyBinding struct {
4340
4341
4342
4343 Name string `json:"name,omitempty"`
4344
4345
4346
4347
4348
4349 ForceSendFields []string `json:"-"`
4350
4351
4352
4353
4354 NullFields []string `json:"-"`
4355 }
4356
4357 func (s *PolicyBinding) MarshalJSON() ([]byte, error) {
4358 type NoMethod PolicyBinding
4359 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4360 }
4361
4362
4363
4364 type PolicyControllerBundleInstallSpec struct {
4365
4366 ExemptedNamespaces []string `json:"exemptedNamespaces,omitempty"`
4367
4368
4369
4370
4371
4372 ForceSendFields []string `json:"-"`
4373
4374
4375
4376
4377 NullFields []string `json:"-"`
4378 }
4379
4380 func (s *PolicyControllerBundleInstallSpec) MarshalJSON() ([]byte, error) {
4381 type NoMethod PolicyControllerBundleInstallSpec
4382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4383 }
4384
4385
4386 type PolicyControllerHubConfig struct {
4387
4388
4389 AuditIntervalSeconds int64 `json:"auditIntervalSeconds,omitempty,string"`
4390
4391
4392
4393 ConstraintViolationLimit int64 `json:"constraintViolationLimit,omitempty,string"`
4394
4395
4396 DeploymentConfigs map[string]PolicyControllerPolicyControllerDeploymentConfig `json:"deploymentConfigs,omitempty"`
4397
4398
4399 ExemptableNamespaces []string `json:"exemptableNamespaces,omitempty"`
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415 InstallSpec string `json:"installSpec,omitempty"`
4416
4417 LogDeniesEnabled bool `json:"logDeniesEnabled,omitempty"`
4418
4419 Monitoring *PolicyControllerMonitoringConfig `json:"monitoring,omitempty"`
4420
4421
4422 MutationEnabled bool `json:"mutationEnabled,omitempty"`
4423
4424 PolicyContent *PolicyControllerPolicyContentSpec `json:"policyContent,omitempty"`
4425
4426
4427 ReferentialRulesEnabled bool `json:"referentialRulesEnabled,omitempty"`
4428
4429
4430
4431
4432
4433 ForceSendFields []string `json:"-"`
4434
4435
4436
4437
4438 NullFields []string `json:"-"`
4439 }
4440
4441 func (s *PolicyControllerHubConfig) MarshalJSON() ([]byte, error) {
4442 type NoMethod PolicyControllerHubConfig
4443 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4444 }
4445
4446
4447
4448 type PolicyControllerMembershipSpec struct {
4449
4450 PolicyControllerHubConfig *PolicyControllerHubConfig `json:"policyControllerHubConfig,omitempty"`
4451
4452 Version string `json:"version,omitempty"`
4453
4454
4455
4456
4457
4458 ForceSendFields []string `json:"-"`
4459
4460
4461
4462
4463 NullFields []string `json:"-"`
4464 }
4465
4466 func (s *PolicyControllerMembershipSpec) MarshalJSON() ([]byte, error) {
4467 type NoMethod PolicyControllerMembershipSpec
4468 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4469 }
4470
4471
4472
4473 type PolicyControllerMembershipState struct {
4474
4475
4476 ComponentStates map[string]PolicyControllerOnClusterState `json:"componentStates,omitempty"`
4477
4478
4479 PolicyContentState *PolicyControllerPolicyContentState `json:"policyContentState,omitempty"`
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521 State string `json:"state,omitempty"`
4522
4523
4524
4525
4526
4527 ForceSendFields []string `json:"-"`
4528
4529
4530
4531
4532 NullFields []string `json:"-"`
4533 }
4534
4535 func (s *PolicyControllerMembershipState) MarshalJSON() ([]byte, error) {
4536 type NoMethod PolicyControllerMembershipState
4537 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4538 }
4539
4540
4541
4542
4543
4544 type PolicyControllerMonitoringConfig struct {
4545
4546
4547
4548
4549
4550
4551
4552 Backends []string `json:"backends,omitempty"`
4553
4554
4555
4556
4557
4558 ForceSendFields []string `json:"-"`
4559
4560
4561
4562
4563 NullFields []string `json:"-"`
4564 }
4565
4566 func (s *PolicyControllerMonitoringConfig) MarshalJSON() ([]byte, error) {
4567 type NoMethod PolicyControllerMonitoringConfig
4568 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4569 }
4570
4571
4572
4573 type PolicyControllerOnClusterState struct {
4574
4575 Details string `json:"details,omitempty"`
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616 State string `json:"state,omitempty"`
4617
4618
4619
4620
4621
4622 ForceSendFields []string `json:"-"`
4623
4624
4625
4626
4627 NullFields []string `json:"-"`
4628 }
4629
4630 func (s *PolicyControllerOnClusterState) MarshalJSON() ([]byte, error) {
4631 type NoMethod PolicyControllerOnClusterState
4632 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4633 }
4634
4635
4636
4637 type PolicyControllerPolicyContentSpec struct {
4638
4639
4640
4641 Bundles map[string]PolicyControllerBundleInstallSpec `json:"bundles,omitempty"`
4642
4643 TemplateLibrary *PolicyControllerTemplateLibraryConfig `json:"templateLibrary,omitempty"`
4644
4645
4646
4647
4648
4649 ForceSendFields []string `json:"-"`
4650
4651
4652
4653
4654 NullFields []string `json:"-"`
4655 }
4656
4657 func (s *PolicyControllerPolicyContentSpec) MarshalJSON() ([]byte, error) {
4658 type NoMethod PolicyControllerPolicyContentSpec
4659 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4660 }
4661
4662
4663
4664 type PolicyControllerPolicyContentState struct {
4665
4666
4667 BundleStates map[string]PolicyControllerOnClusterState `json:"bundleStates,omitempty"`
4668
4669
4670
4671
4672 ReferentialSyncConfigState *PolicyControllerOnClusterState `json:"referentialSyncConfigState,omitempty"`
4673
4674 TemplateLibraryState *PolicyControllerOnClusterState `json:"templateLibraryState,omitempty"`
4675
4676
4677
4678
4679
4680 ForceSendFields []string `json:"-"`
4681
4682
4683
4684
4685 NullFields []string `json:"-"`
4686 }
4687
4688 func (s *PolicyControllerPolicyContentState) MarshalJSON() ([]byte, error) {
4689 type NoMethod PolicyControllerPolicyContentState
4690 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4691 }
4692
4693
4694
4695 type PolicyControllerPolicyControllerDeploymentConfig struct {
4696
4697 ContainerResources *PolicyControllerResourceRequirements `json:"containerResources,omitempty"`
4698
4699
4700
4701
4702
4703
4704
4705
4706 PodAffinity string `json:"podAffinity,omitempty"`
4707
4708
4709 PodAntiAffinity bool `json:"podAntiAffinity,omitempty"`
4710
4711 PodTolerations []*PolicyControllerToleration `json:"podTolerations,omitempty"`
4712
4713 ReplicaCount int64 `json:"replicaCount,omitempty,string"`
4714
4715
4716
4717
4718
4719 ForceSendFields []string `json:"-"`
4720
4721
4722
4723
4724 NullFields []string `json:"-"`
4725 }
4726
4727 func (s *PolicyControllerPolicyControllerDeploymentConfig) MarshalJSON() ([]byte, error) {
4728 type NoMethod PolicyControllerPolicyControllerDeploymentConfig
4729 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4730 }
4731
4732
4733
4734 type PolicyControllerResourceList struct {
4735
4736 Cpu string `json:"cpu,omitempty"`
4737
4738 Memory string `json:"memory,omitempty"`
4739
4740
4741
4742
4743
4744 ForceSendFields []string `json:"-"`
4745
4746
4747
4748
4749 NullFields []string `json:"-"`
4750 }
4751
4752 func (s *PolicyControllerResourceList) MarshalJSON() ([]byte, error) {
4753 type NoMethod PolicyControllerResourceList
4754 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4755 }
4756
4757
4758
4759 type PolicyControllerResourceRequirements struct {
4760
4761
4762 Limits *PolicyControllerResourceList `json:"limits,omitempty"`
4763
4764
4765 Requests *PolicyControllerResourceList `json:"requests,omitempty"`
4766
4767
4768
4769
4770
4771 ForceSendFields []string `json:"-"`
4772
4773
4774
4775
4776 NullFields []string `json:"-"`
4777 }
4778
4779 func (s *PolicyControllerResourceRequirements) MarshalJSON() ([]byte, error) {
4780 type NoMethod PolicyControllerResourceRequirements
4781 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4782 }
4783
4784
4785
4786 type PolicyControllerTemplateLibraryConfig struct {
4787
4788
4789
4790
4791
4792
4793
4794 Installation string `json:"installation,omitempty"`
4795
4796
4797
4798
4799
4800 ForceSendFields []string `json:"-"`
4801
4802
4803
4804
4805 NullFields []string `json:"-"`
4806 }
4807
4808 func (s *PolicyControllerTemplateLibraryConfig) MarshalJSON() ([]byte, error) {
4809 type NoMethod PolicyControllerTemplateLibraryConfig
4810 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4811 }
4812
4813
4814 type PolicyControllerToleration struct {
4815
4816 Effect string `json:"effect,omitempty"`
4817
4818 Key string `json:"key,omitempty"`
4819
4820 Operator string `json:"operator,omitempty"`
4821
4822 Value string `json:"value,omitempty"`
4823
4824
4825
4826
4827
4828 ForceSendFields []string `json:"-"`
4829
4830
4831
4832
4833 NullFields []string `json:"-"`
4834 }
4835
4836 func (s *PolicyControllerToleration) MarshalJSON() ([]byte, error) {
4837 type NoMethod PolicyControllerToleration
4838 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4839 }
4840
4841
4842
4843 type RBACRoleBinding struct {
4844
4845 CreateTime string `json:"createTime,omitempty"`
4846
4847 DeleteTime string `json:"deleteTime,omitempty"`
4848
4849 Group string `json:"group,omitempty"`
4850
4851 Labels map[string]string `json:"labels,omitempty"`
4852
4853
4854
4855
4856
4857 Name string `json:"name,omitempty"`
4858
4859 Role *Role `json:"role,omitempty"`
4860
4861 State *RBACRoleBindingLifecycleState `json:"state,omitempty"`
4862
4863
4864
4865
4866 Uid string `json:"uid,omitempty"`
4867
4868 UpdateTime string `json:"updateTime,omitempty"`
4869
4870
4871 User string `json:"user,omitempty"`
4872
4873
4874 googleapi.ServerResponse `json:"-"`
4875
4876
4877
4878
4879
4880 ForceSendFields []string `json:"-"`
4881
4882
4883
4884
4885 NullFields []string `json:"-"`
4886 }
4887
4888 func (s *RBACRoleBinding) MarshalJSON() ([]byte, error) {
4889 type NoMethod RBACRoleBinding
4890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4891 }
4892
4893
4894
4895 type RBACRoleBindingLifecycleState struct {
4896
4897
4898
4899
4900
4901
4902
4903
4904 Code string `json:"code,omitempty"`
4905
4906
4907
4908
4909
4910 ForceSendFields []string `json:"-"`
4911
4912
4913
4914
4915 NullFields []string `json:"-"`
4916 }
4917
4918 func (s *RBACRoleBindingLifecycleState) MarshalJSON() ([]byte, error) {
4919 type NoMethod RBACRoleBindingLifecycleState
4920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4921 }
4922
4923
4924
4925 type ResourceManifest struct {
4926
4927
4928
4929 ClusterScoped bool `json:"clusterScoped,omitempty"`
4930
4931 Manifest string `json:"manifest,omitempty"`
4932
4933
4934
4935
4936
4937 ForceSendFields []string `json:"-"`
4938
4939
4940
4941
4942 NullFields []string `json:"-"`
4943 }
4944
4945 func (s *ResourceManifest) MarshalJSON() ([]byte, error) {
4946 type NoMethod ResourceManifest
4947 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4948 }
4949
4950
4951
4952 type ResourceOptions struct {
4953
4954
4955
4956 ConnectVersion string `json:"connectVersion,omitempty"`
4957
4958
4959
4960 K8sVersion string `json:"k8sVersion,omitempty"`
4961
4962
4963
4964 V1beta1Crd bool `json:"v1beta1Crd,omitempty"`
4965
4966
4967
4968
4969
4970 ForceSendFields []string `json:"-"`
4971
4972
4973
4974
4975 NullFields []string `json:"-"`
4976 }
4977
4978 func (s *ResourceOptions) MarshalJSON() ([]byte, error) {
4979 type NoMethod ResourceOptions
4980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4981 }
4982
4983
4984 type Role struct {
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 PredefinedRole string `json:"predefinedRole,omitempty"`
4995
4996
4997
4998
4999
5000 ForceSendFields []string `json:"-"`
5001
5002
5003
5004
5005 NullFields []string `json:"-"`
5006 }
5007
5008 func (s *Role) MarshalJSON() ([]byte, error) {
5009 type NoMethod Role
5010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5011 }
5012
5013
5014 type Scope struct {
5015
5016 CreateTime string `json:"createTime,omitempty"`
5017
5018 DeleteTime string `json:"deleteTime,omitempty"`
5019
5020 Labels map[string]string `json:"labels,omitempty"`
5021
5022
5023 Name string `json:"name,omitempty"`
5024
5025
5026
5027
5028
5029 NamespaceLabels map[string]string `json:"namespaceLabels,omitempty"`
5030
5031 State *ScopeLifecycleState `json:"state,omitempty"`
5032
5033
5034
5035 Uid string `json:"uid,omitempty"`
5036
5037 UpdateTime string `json:"updateTime,omitempty"`
5038
5039
5040 googleapi.ServerResponse `json:"-"`
5041
5042
5043
5044
5045
5046 ForceSendFields []string `json:"-"`
5047
5048
5049
5050
5051 NullFields []string `json:"-"`
5052 }
5053
5054 func (s *Scope) MarshalJSON() ([]byte, error) {
5055 type NoMethod Scope
5056 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5057 }
5058
5059
5060 type ScopeFeatureSpec struct {
5061 }
5062
5063
5064
5065 type ScopeFeatureState struct {
5066
5067 State *FeatureState `json:"state,omitempty"`
5068
5069
5070
5071
5072
5073 ForceSendFields []string `json:"-"`
5074
5075
5076
5077
5078 NullFields []string `json:"-"`
5079 }
5080
5081 func (s *ScopeFeatureState) MarshalJSON() ([]byte, error) {
5082 type NoMethod ScopeFeatureState
5083 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5084 }
5085
5086
5087
5088 type ScopeLifecycleState struct {
5089
5090
5091
5092
5093
5094
5095
5096
5097 Code string `json:"code,omitempty"`
5098
5099
5100
5101
5102
5103 ForceSendFields []string `json:"-"`
5104
5105
5106
5107
5108 NullFields []string `json:"-"`
5109 }
5110
5111 func (s *ScopeLifecycleState) MarshalJSON() ([]byte, error) {
5112 type NoMethod ScopeLifecycleState
5113 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5114 }
5115
5116
5117
5118 type SecurityPostureConfig struct {
5119
5120
5121
5122
5123
5124
5125 Mode string `json:"mode,omitempty"`
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135 VulnerabilityMode string `json:"vulnerabilityMode,omitempty"`
5136
5137
5138
5139
5140
5141 ForceSendFields []string `json:"-"`
5142
5143
5144
5145
5146 NullFields []string `json:"-"`
5147 }
5148
5149 func (s *SecurityPostureConfig) MarshalJSON() ([]byte, error) {
5150 type NoMethod SecurityPostureConfig
5151 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5152 }
5153
5154
5155 type ServiceMeshCondition struct {
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 Code string `json:"code,omitempty"`
5201
5202 Details string `json:"details,omitempty"`
5203
5204 DocumentationLink string `json:"documentationLink,omitempty"`
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 Severity string `json:"severity,omitempty"`
5215
5216
5217
5218
5219
5220 ForceSendFields []string `json:"-"`
5221
5222
5223
5224
5225 NullFields []string `json:"-"`
5226 }
5227
5228 func (s *ServiceMeshCondition) MarshalJSON() ([]byte, error) {
5229 type NoMethod ServiceMeshCondition
5230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5231 }
5232
5233
5234 type ServiceMeshControlPlaneManagement struct {
5235
5236 Details []*ServiceMeshStatusDetails `json:"details,omitempty"`
5237
5238
5239
5240
5241
5242
5243
5244
5245 Implementation string `json:"implementation,omitempty"`
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 State string `json:"state,omitempty"`
5262
5263
5264
5265
5266
5267 ForceSendFields []string `json:"-"`
5268
5269
5270
5271
5272 NullFields []string `json:"-"`
5273 }
5274
5275 func (s *ServiceMeshControlPlaneManagement) MarshalJSON() ([]byte, error) {
5276 type NoMethod ServiceMeshControlPlaneManagement
5277 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5278 }
5279
5280
5281
5282 type ServiceMeshDataPlaneManagement struct {
5283
5284 Details []*ServiceMeshStatusDetails `json:"details,omitempty"`
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 State string `json:"state,omitempty"`
5301
5302
5303
5304
5305
5306 ForceSendFields []string `json:"-"`
5307
5308
5309
5310
5311 NullFields []string `json:"-"`
5312 }
5313
5314 func (s *ServiceMeshDataPlaneManagement) MarshalJSON() ([]byte, error) {
5315 type NoMethod ServiceMeshDataPlaneManagement
5316 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5317 }
5318
5319
5320
5321 type ServiceMeshMembershipSpec struct {
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 ControlPlane string `json:"controlPlane,omitempty"`
5334
5335
5336
5337
5338
5339
5340
5341
5342 Management string `json:"management,omitempty"`
5343
5344
5345
5346
5347
5348 ForceSendFields []string `json:"-"`
5349
5350
5351
5352
5353 NullFields []string `json:"-"`
5354 }
5355
5356 func (s *ServiceMeshMembershipSpec) MarshalJSON() ([]byte, error) {
5357 type NoMethod ServiceMeshMembershipSpec
5358 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5359 }
5360
5361
5362
5363 type ServiceMeshMembershipState struct {
5364
5365 Conditions []*ServiceMeshCondition `json:"conditions,omitempty"`
5366
5367 ControlPlaneManagement *ServiceMeshControlPlaneManagement `json:"controlPlaneManagement,omitempty"`
5368
5369 DataPlaneManagement *ServiceMeshDataPlaneManagement `json:"dataPlaneManagement,omitempty"`
5370
5371
5372
5373
5374
5375 ForceSendFields []string `json:"-"`
5376
5377
5378
5379
5380 NullFields []string `json:"-"`
5381 }
5382
5383 func (s *ServiceMeshMembershipState) MarshalJSON() ([]byte, error) {
5384 type NoMethod ServiceMeshMembershipState
5385 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5386 }
5387
5388
5389
5390 type ServiceMeshStatusDetails struct {
5391
5392 Code string `json:"code,omitempty"`
5393
5394 Details string `json:"details,omitempty"`
5395
5396
5397
5398
5399
5400 ForceSendFields []string `json:"-"`
5401
5402
5403
5404
5405 NullFields []string `json:"-"`
5406 }
5407
5408 func (s *ServiceMeshStatusDetails) MarshalJSON() ([]byte, error) {
5409 type NoMethod ServiceMeshStatusDetails
5410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5411 }
5412
5413
5414 type SetIamPolicyRequest struct {
5415
5416
5417
5418
5419 Policy *Policy `json:"policy,omitempty"`
5420
5421
5422
5423 UpdateMask string `json:"updateMask,omitempty"`
5424
5425
5426
5427
5428
5429 ForceSendFields []string `json:"-"`
5430
5431
5432
5433
5434 NullFields []string `json:"-"`
5435 }
5436
5437 func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
5438 type NoMethod SetIamPolicyRequest
5439 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5440 }
5441
5442
5443 type Status struct {
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455 Code string `json:"code,omitempty"`
5456
5457
5458 Description string `json:"description,omitempty"`
5459
5460
5461
5462
5463
5464 ForceSendFields []string `json:"-"`
5465
5466
5467
5468
5469 NullFields []string `json:"-"`
5470 }
5471
5472 func (s *Status) MarshalJSON() ([]byte, error) {
5473 type NoMethod Status
5474 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5475 }
5476
5477
5478 type TestIamPermissionsRequest struct {
5479
5480
5481
5482
5483 Permissions []string `json:"permissions,omitempty"`
5484
5485
5486
5487
5488
5489 ForceSendFields []string `json:"-"`
5490
5491
5492
5493
5494 NullFields []string `json:"-"`
5495 }
5496
5497 func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
5498 type NoMethod TestIamPermissionsRequest
5499 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5500 }
5501
5502
5503
5504 type TestIamPermissionsResponse struct {
5505
5506
5507 Permissions []string `json:"permissions,omitempty"`
5508
5509
5510 googleapi.ServerResponse `json:"-"`
5511
5512
5513
5514
5515
5516 ForceSendFields []string `json:"-"`
5517
5518
5519
5520
5521 NullFields []string `json:"-"`
5522 }
5523
5524 func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
5525 type NoMethod TestIamPermissionsResponse
5526 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5527 }
5528
5529
5530
5531 type TypeMeta struct {
5532
5533 ApiVersion string `json:"apiVersion,omitempty"`
5534
5535 Kind string `json:"kind,omitempty"`
5536
5537
5538
5539
5540
5541 ForceSendFields []string `json:"-"`
5542
5543
5544
5545
5546 NullFields []string `json:"-"`
5547 }
5548
5549 func (s *TypeMeta) MarshalJSON() ([]byte, error) {
5550 type NoMethod TypeMeta
5551 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5552 }
5553
5554 type OrganizationsLocationsFleetsListCall struct {
5555 s *Service
5556 parent string
5557 urlParams_ gensupport.URLParams
5558 ifNoneMatch_ string
5559 ctx_ context.Context
5560 header_ http.Header
5561 }
5562
5563
5564
5565
5566
5567
5568 func (r *OrganizationsLocationsFleetsService) List(parent string) *OrganizationsLocationsFleetsListCall {
5569 c := &OrganizationsLocationsFleetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5570 c.parent = parent
5571 return c
5572 }
5573
5574
5575
5576
5577
5578 func (c *OrganizationsLocationsFleetsListCall) PageSize(pageSize int64) *OrganizationsLocationsFleetsListCall {
5579 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5580 return c
5581 }
5582
5583
5584
5585
5586
5587 func (c *OrganizationsLocationsFleetsListCall) PageToken(pageToken string) *OrganizationsLocationsFleetsListCall {
5588 c.urlParams_.Set("pageToken", pageToken)
5589 return c
5590 }
5591
5592
5593
5594
5595 func (c *OrganizationsLocationsFleetsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFleetsListCall {
5596 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5597 return c
5598 }
5599
5600
5601
5602
5603 func (c *OrganizationsLocationsFleetsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsFleetsListCall {
5604 c.ifNoneMatch_ = entityTag
5605 return c
5606 }
5607
5608
5609 func (c *OrganizationsLocationsFleetsListCall) Context(ctx context.Context) *OrganizationsLocationsFleetsListCall {
5610 c.ctx_ = ctx
5611 return c
5612 }
5613
5614
5615
5616 func (c *OrganizationsLocationsFleetsListCall) Header() http.Header {
5617 if c.header_ == nil {
5618 c.header_ = make(http.Header)
5619 }
5620 return c.header_
5621 }
5622
5623 func (c *OrganizationsLocationsFleetsListCall) doRequest(alt string) (*http.Response, error) {
5624 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5625 if c.ifNoneMatch_ != "" {
5626 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5627 }
5628 var body io.Reader = nil
5629 c.urlParams_.Set("alt", alt)
5630 c.urlParams_.Set("prettyPrint", "false")
5631 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fleets")
5632 urls += "?" + c.urlParams_.Encode()
5633 req, err := http.NewRequest("GET", urls, body)
5634 if err != nil {
5635 return nil, err
5636 }
5637 req.Header = reqHeaders
5638 googleapi.Expand(req.URL, map[string]string{
5639 "parent": c.parent,
5640 })
5641 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5642 }
5643
5644
5645
5646
5647
5648
5649
5650 func (c *OrganizationsLocationsFleetsListCall) Do(opts ...googleapi.CallOption) (*ListFleetsResponse, error) {
5651 gensupport.SetOptions(c.urlParams_, opts...)
5652 res, err := c.doRequest("json")
5653 if res != nil && res.StatusCode == http.StatusNotModified {
5654 if res.Body != nil {
5655 res.Body.Close()
5656 }
5657 return nil, gensupport.WrapError(&googleapi.Error{
5658 Code: res.StatusCode,
5659 Header: res.Header,
5660 })
5661 }
5662 if err != nil {
5663 return nil, err
5664 }
5665 defer googleapi.CloseBody(res)
5666 if err := googleapi.CheckResponse(res); err != nil {
5667 return nil, gensupport.WrapError(err)
5668 }
5669 ret := &ListFleetsResponse{
5670 ServerResponse: googleapi.ServerResponse{
5671 Header: res.Header,
5672 HTTPStatusCode: res.StatusCode,
5673 },
5674 }
5675 target := &ret
5676 if err := gensupport.DecodeResponse(target, res); err != nil {
5677 return nil, err
5678 }
5679 return ret, nil
5680 }
5681
5682
5683
5684
5685 func (c *OrganizationsLocationsFleetsListCall) Pages(ctx context.Context, f func(*ListFleetsResponse) error) error {
5686 c.ctx_ = ctx
5687 defer c.PageToken(c.urlParams_.Get("pageToken"))
5688 for {
5689 x, err := c.Do()
5690 if err != nil {
5691 return err
5692 }
5693 if err := f(x); err != nil {
5694 return err
5695 }
5696 if x.NextPageToken == "" {
5697 return nil
5698 }
5699 c.PageToken(x.NextPageToken)
5700 }
5701 }
5702
5703 type ProjectsLocationsGetCall struct {
5704 s *Service
5705 name string
5706 urlParams_ gensupport.URLParams
5707 ifNoneMatch_ string
5708 ctx_ context.Context
5709 header_ http.Header
5710 }
5711
5712
5713
5714
5715 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
5716 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5717 c.name = name
5718 return c
5719 }
5720
5721
5722
5723
5724 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
5725 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5726 return c
5727 }
5728
5729
5730
5731
5732 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
5733 c.ifNoneMatch_ = entityTag
5734 return c
5735 }
5736
5737
5738 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
5739 c.ctx_ = ctx
5740 return c
5741 }
5742
5743
5744
5745 func (c *ProjectsLocationsGetCall) Header() http.Header {
5746 if c.header_ == nil {
5747 c.header_ = make(http.Header)
5748 }
5749 return c.header_
5750 }
5751
5752 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
5753 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5754 if c.ifNoneMatch_ != "" {
5755 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5756 }
5757 var body io.Reader = nil
5758 c.urlParams_.Set("alt", alt)
5759 c.urlParams_.Set("prettyPrint", "false")
5760 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
5761 urls += "?" + c.urlParams_.Encode()
5762 req, err := http.NewRequest("GET", urls, body)
5763 if err != nil {
5764 return nil, err
5765 }
5766 req.Header = reqHeaders
5767 googleapi.Expand(req.URL, map[string]string{
5768 "name": c.name,
5769 })
5770 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5771 }
5772
5773
5774
5775
5776
5777
5778 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
5779 gensupport.SetOptions(c.urlParams_, opts...)
5780 res, err := c.doRequest("json")
5781 if res != nil && res.StatusCode == http.StatusNotModified {
5782 if res.Body != nil {
5783 res.Body.Close()
5784 }
5785 return nil, gensupport.WrapError(&googleapi.Error{
5786 Code: res.StatusCode,
5787 Header: res.Header,
5788 })
5789 }
5790 if err != nil {
5791 return nil, err
5792 }
5793 defer googleapi.CloseBody(res)
5794 if err := googleapi.CheckResponse(res); err != nil {
5795 return nil, gensupport.WrapError(err)
5796 }
5797 ret := &Location{
5798 ServerResponse: googleapi.ServerResponse{
5799 Header: res.Header,
5800 HTTPStatusCode: res.StatusCode,
5801 },
5802 }
5803 target := &ret
5804 if err := gensupport.DecodeResponse(target, res); err != nil {
5805 return nil, err
5806 }
5807 return ret, nil
5808 }
5809
5810 type ProjectsLocationsListCall struct {
5811 s *Service
5812 name string
5813 urlParams_ gensupport.URLParams
5814 ifNoneMatch_ string
5815 ctx_ context.Context
5816 header_ http.Header
5817 }
5818
5819
5820
5821
5822 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
5823 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5824 c.name = name
5825 return c
5826 }
5827
5828
5829
5830
5831
5832 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
5833 c.urlParams_.Set("filter", filter)
5834 return c
5835 }
5836
5837
5838
5839 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
5840 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5841 return c
5842 }
5843
5844
5845
5846
5847 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
5848 c.urlParams_.Set("pageToken", pageToken)
5849 return c
5850 }
5851
5852
5853
5854
5855 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
5856 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5857 return c
5858 }
5859
5860
5861
5862
5863 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
5864 c.ifNoneMatch_ = entityTag
5865 return c
5866 }
5867
5868
5869 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
5870 c.ctx_ = ctx
5871 return c
5872 }
5873
5874
5875
5876 func (c *ProjectsLocationsListCall) Header() http.Header {
5877 if c.header_ == nil {
5878 c.header_ = make(http.Header)
5879 }
5880 return c.header_
5881 }
5882
5883 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
5884 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5885 if c.ifNoneMatch_ != "" {
5886 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5887 }
5888 var body io.Reader = nil
5889 c.urlParams_.Set("alt", alt)
5890 c.urlParams_.Set("prettyPrint", "false")
5891 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
5892 urls += "?" + c.urlParams_.Encode()
5893 req, err := http.NewRequest("GET", urls, body)
5894 if err != nil {
5895 return nil, err
5896 }
5897 req.Header = reqHeaders
5898 googleapi.Expand(req.URL, map[string]string{
5899 "name": c.name,
5900 })
5901 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5902 }
5903
5904
5905
5906
5907
5908
5909
5910 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
5911 gensupport.SetOptions(c.urlParams_, opts...)
5912 res, err := c.doRequest("json")
5913 if res != nil && res.StatusCode == http.StatusNotModified {
5914 if res.Body != nil {
5915 res.Body.Close()
5916 }
5917 return nil, gensupport.WrapError(&googleapi.Error{
5918 Code: res.StatusCode,
5919 Header: res.Header,
5920 })
5921 }
5922 if err != nil {
5923 return nil, err
5924 }
5925 defer googleapi.CloseBody(res)
5926 if err := googleapi.CheckResponse(res); err != nil {
5927 return nil, gensupport.WrapError(err)
5928 }
5929 ret := &ListLocationsResponse{
5930 ServerResponse: googleapi.ServerResponse{
5931 Header: res.Header,
5932 HTTPStatusCode: res.StatusCode,
5933 },
5934 }
5935 target := &ret
5936 if err := gensupport.DecodeResponse(target, res); err != nil {
5937 return nil, err
5938 }
5939 return ret, nil
5940 }
5941
5942
5943
5944
5945 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
5946 c.ctx_ = ctx
5947 defer c.PageToken(c.urlParams_.Get("pageToken"))
5948 for {
5949 x, err := c.Do()
5950 if err != nil {
5951 return err
5952 }
5953 if err := f(x); err != nil {
5954 return err
5955 }
5956 if x.NextPageToken == "" {
5957 return nil
5958 }
5959 c.PageToken(x.NextPageToken)
5960 }
5961 }
5962
5963 type ProjectsLocationsFeaturesCreateCall struct {
5964 s *Service
5965 parent string
5966 feature *Feature
5967 urlParams_ gensupport.URLParams
5968 ctx_ context.Context
5969 header_ http.Header
5970 }
5971
5972
5973
5974
5975
5976 func (r *ProjectsLocationsFeaturesService) Create(parent string, feature *Feature) *ProjectsLocationsFeaturesCreateCall {
5977 c := &ProjectsLocationsFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5978 c.parent = parent
5979 c.feature = feature
5980 return c
5981 }
5982
5983
5984
5985 func (c *ProjectsLocationsFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeaturesCreateCall {
5986 c.urlParams_.Set("featureId", featureId)
5987 return c
5988 }
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 func (c *ProjectsLocationsFeaturesCreateCall) RequestId(requestId string) *ProjectsLocationsFeaturesCreateCall {
6002 c.urlParams_.Set("requestId", requestId)
6003 return c
6004 }
6005
6006
6007
6008
6009 func (c *ProjectsLocationsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesCreateCall {
6010 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6011 return c
6012 }
6013
6014
6015 func (c *ProjectsLocationsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturesCreateCall {
6016 c.ctx_ = ctx
6017 return c
6018 }
6019
6020
6021
6022 func (c *ProjectsLocationsFeaturesCreateCall) Header() http.Header {
6023 if c.header_ == nil {
6024 c.header_ = make(http.Header)
6025 }
6026 return c.header_
6027 }
6028
6029 func (c *ProjectsLocationsFeaturesCreateCall) doRequest(alt string) (*http.Response, error) {
6030 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6031 var body io.Reader = nil
6032 body, err := googleapi.WithoutDataWrapper.JSONReader(c.feature)
6033 if err != nil {
6034 return nil, err
6035 }
6036 c.urlParams_.Set("alt", alt)
6037 c.urlParams_.Set("prettyPrint", "false")
6038 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features")
6039 urls += "?" + c.urlParams_.Encode()
6040 req, err := http.NewRequest("POST", urls, body)
6041 if err != nil {
6042 return nil, err
6043 }
6044 req.Header = reqHeaders
6045 googleapi.Expand(req.URL, map[string]string{
6046 "parent": c.parent,
6047 })
6048 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6049 }
6050
6051
6052
6053
6054
6055
6056 func (c *ProjectsLocationsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6057 gensupport.SetOptions(c.urlParams_, opts...)
6058 res, err := c.doRequest("json")
6059 if res != nil && res.StatusCode == http.StatusNotModified {
6060 if res.Body != nil {
6061 res.Body.Close()
6062 }
6063 return nil, gensupport.WrapError(&googleapi.Error{
6064 Code: res.StatusCode,
6065 Header: res.Header,
6066 })
6067 }
6068 if err != nil {
6069 return nil, err
6070 }
6071 defer googleapi.CloseBody(res)
6072 if err := googleapi.CheckResponse(res); err != nil {
6073 return nil, gensupport.WrapError(err)
6074 }
6075 ret := &Operation{
6076 ServerResponse: googleapi.ServerResponse{
6077 Header: res.Header,
6078 HTTPStatusCode: res.StatusCode,
6079 },
6080 }
6081 target := &ret
6082 if err := gensupport.DecodeResponse(target, res); err != nil {
6083 return nil, err
6084 }
6085 return ret, nil
6086 }
6087
6088 type ProjectsLocationsFeaturesDeleteCall struct {
6089 s *Service
6090 name string
6091 urlParams_ gensupport.URLParams
6092 ctx_ context.Context
6093 header_ http.Header
6094 }
6095
6096
6097
6098
6099
6100 func (r *ProjectsLocationsFeaturesService) Delete(name string) *ProjectsLocationsFeaturesDeleteCall {
6101 c := &ProjectsLocationsFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6102 c.name = name
6103 return c
6104 }
6105
6106
6107
6108
6109
6110 func (c *ProjectsLocationsFeaturesDeleteCall) Force(force bool) *ProjectsLocationsFeaturesDeleteCall {
6111 c.urlParams_.Set("force", fmt.Sprint(force))
6112 return c
6113 }
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126 func (c *ProjectsLocationsFeaturesDeleteCall) RequestId(requestId string) *ProjectsLocationsFeaturesDeleteCall {
6127 c.urlParams_.Set("requestId", requestId)
6128 return c
6129 }
6130
6131
6132
6133
6134 func (c *ProjectsLocationsFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesDeleteCall {
6135 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6136 return c
6137 }
6138
6139
6140 func (c *ProjectsLocationsFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturesDeleteCall {
6141 c.ctx_ = ctx
6142 return c
6143 }
6144
6145
6146
6147 func (c *ProjectsLocationsFeaturesDeleteCall) Header() http.Header {
6148 if c.header_ == nil {
6149 c.header_ = make(http.Header)
6150 }
6151 return c.header_
6152 }
6153
6154 func (c *ProjectsLocationsFeaturesDeleteCall) doRequest(alt string) (*http.Response, error) {
6155 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6156 var body io.Reader = nil
6157 c.urlParams_.Set("alt", alt)
6158 c.urlParams_.Set("prettyPrint", "false")
6159 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6160 urls += "?" + c.urlParams_.Encode()
6161 req, err := http.NewRequest("DELETE", urls, body)
6162 if err != nil {
6163 return nil, err
6164 }
6165 req.Header = reqHeaders
6166 googleapi.Expand(req.URL, map[string]string{
6167 "name": c.name,
6168 })
6169 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6170 }
6171
6172
6173
6174
6175
6176
6177 func (c *ProjectsLocationsFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6178 gensupport.SetOptions(c.urlParams_, opts...)
6179 res, err := c.doRequest("json")
6180 if res != nil && res.StatusCode == http.StatusNotModified {
6181 if res.Body != nil {
6182 res.Body.Close()
6183 }
6184 return nil, gensupport.WrapError(&googleapi.Error{
6185 Code: res.StatusCode,
6186 Header: res.Header,
6187 })
6188 }
6189 if err != nil {
6190 return nil, err
6191 }
6192 defer googleapi.CloseBody(res)
6193 if err := googleapi.CheckResponse(res); err != nil {
6194 return nil, gensupport.WrapError(err)
6195 }
6196 ret := &Operation{
6197 ServerResponse: googleapi.ServerResponse{
6198 Header: res.Header,
6199 HTTPStatusCode: res.StatusCode,
6200 },
6201 }
6202 target := &ret
6203 if err := gensupport.DecodeResponse(target, res); err != nil {
6204 return nil, err
6205 }
6206 return ret, nil
6207 }
6208
6209 type ProjectsLocationsFeaturesGetCall struct {
6210 s *Service
6211 name string
6212 urlParams_ gensupport.URLParams
6213 ifNoneMatch_ string
6214 ctx_ context.Context
6215 header_ http.Header
6216 }
6217
6218
6219
6220
6221
6222 func (r *ProjectsLocationsFeaturesService) Get(name string) *ProjectsLocationsFeaturesGetCall {
6223 c := &ProjectsLocationsFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6224 c.name = name
6225 return c
6226 }
6227
6228
6229
6230
6231 func (c *ProjectsLocationsFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesGetCall {
6232 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6233 return c
6234 }
6235
6236
6237
6238
6239 func (c *ProjectsLocationsFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturesGetCall {
6240 c.ifNoneMatch_ = entityTag
6241 return c
6242 }
6243
6244
6245 func (c *ProjectsLocationsFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturesGetCall {
6246 c.ctx_ = ctx
6247 return c
6248 }
6249
6250
6251
6252 func (c *ProjectsLocationsFeaturesGetCall) Header() http.Header {
6253 if c.header_ == nil {
6254 c.header_ = make(http.Header)
6255 }
6256 return c.header_
6257 }
6258
6259 func (c *ProjectsLocationsFeaturesGetCall) doRequest(alt string) (*http.Response, error) {
6260 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6261 if c.ifNoneMatch_ != "" {
6262 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6263 }
6264 var body io.Reader = nil
6265 c.urlParams_.Set("alt", alt)
6266 c.urlParams_.Set("prettyPrint", "false")
6267 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6268 urls += "?" + c.urlParams_.Encode()
6269 req, err := http.NewRequest("GET", urls, body)
6270 if err != nil {
6271 return nil, err
6272 }
6273 req.Header = reqHeaders
6274 googleapi.Expand(req.URL, map[string]string{
6275 "name": c.name,
6276 })
6277 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6278 }
6279
6280
6281
6282
6283
6284
6285 func (c *ProjectsLocationsFeaturesGetCall) Do(opts ...googleapi.CallOption) (*Feature, error) {
6286 gensupport.SetOptions(c.urlParams_, opts...)
6287 res, err := c.doRequest("json")
6288 if res != nil && res.StatusCode == http.StatusNotModified {
6289 if res.Body != nil {
6290 res.Body.Close()
6291 }
6292 return nil, gensupport.WrapError(&googleapi.Error{
6293 Code: res.StatusCode,
6294 Header: res.Header,
6295 })
6296 }
6297 if err != nil {
6298 return nil, err
6299 }
6300 defer googleapi.CloseBody(res)
6301 if err := googleapi.CheckResponse(res); err != nil {
6302 return nil, gensupport.WrapError(err)
6303 }
6304 ret := &Feature{
6305 ServerResponse: googleapi.ServerResponse{
6306 Header: res.Header,
6307 HTTPStatusCode: res.StatusCode,
6308 },
6309 }
6310 target := &ret
6311 if err := gensupport.DecodeResponse(target, res); err != nil {
6312 return nil, err
6313 }
6314 return ret, nil
6315 }
6316
6317 type ProjectsLocationsFeaturesGetIamPolicyCall struct {
6318 s *Service
6319 resource string
6320 urlParams_ gensupport.URLParams
6321 ifNoneMatch_ string
6322 ctx_ context.Context
6323 header_ http.Header
6324 }
6325
6326
6327
6328
6329
6330
6331
6332 func (r *ProjectsLocationsFeaturesService) GetIamPolicy(resource string) *ProjectsLocationsFeaturesGetIamPolicyCall {
6333 c := &ProjectsLocationsFeaturesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6334 c.resource = resource
6335 return c
6336 }
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 func (c *ProjectsLocationsFeaturesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeaturesGetIamPolicyCall {
6351 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
6352 return c
6353 }
6354
6355
6356
6357
6358 func (c *ProjectsLocationsFeaturesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesGetIamPolicyCall {
6359 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6360 return c
6361 }
6362
6363
6364
6365
6366 func (c *ProjectsLocationsFeaturesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturesGetIamPolicyCall {
6367 c.ifNoneMatch_ = entityTag
6368 return c
6369 }
6370
6371
6372 func (c *ProjectsLocationsFeaturesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturesGetIamPolicyCall {
6373 c.ctx_ = ctx
6374 return c
6375 }
6376
6377
6378
6379 func (c *ProjectsLocationsFeaturesGetIamPolicyCall) Header() http.Header {
6380 if c.header_ == nil {
6381 c.header_ = make(http.Header)
6382 }
6383 return c.header_
6384 }
6385
6386 func (c *ProjectsLocationsFeaturesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
6387 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6388 if c.ifNoneMatch_ != "" {
6389 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6390 }
6391 var body io.Reader = nil
6392 c.urlParams_.Set("alt", alt)
6393 c.urlParams_.Set("prettyPrint", "false")
6394 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
6395 urls += "?" + c.urlParams_.Encode()
6396 req, err := http.NewRequest("GET", urls, body)
6397 if err != nil {
6398 return nil, err
6399 }
6400 req.Header = reqHeaders
6401 googleapi.Expand(req.URL, map[string]string{
6402 "resource": c.resource,
6403 })
6404 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6405 }
6406
6407
6408
6409
6410
6411
6412 func (c *ProjectsLocationsFeaturesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
6413 gensupport.SetOptions(c.urlParams_, opts...)
6414 res, err := c.doRequest("json")
6415 if res != nil && res.StatusCode == http.StatusNotModified {
6416 if res.Body != nil {
6417 res.Body.Close()
6418 }
6419 return nil, gensupport.WrapError(&googleapi.Error{
6420 Code: res.StatusCode,
6421 Header: res.Header,
6422 })
6423 }
6424 if err != nil {
6425 return nil, err
6426 }
6427 defer googleapi.CloseBody(res)
6428 if err := googleapi.CheckResponse(res); err != nil {
6429 return nil, gensupport.WrapError(err)
6430 }
6431 ret := &Policy{
6432 ServerResponse: googleapi.ServerResponse{
6433 Header: res.Header,
6434 HTTPStatusCode: res.StatusCode,
6435 },
6436 }
6437 target := &ret
6438 if err := gensupport.DecodeResponse(target, res); err != nil {
6439 return nil, err
6440 }
6441 return ret, nil
6442 }
6443
6444 type ProjectsLocationsFeaturesListCall struct {
6445 s *Service
6446 parent string
6447 urlParams_ gensupport.URLParams
6448 ifNoneMatch_ string
6449 ctx_ context.Context
6450 header_ http.Header
6451 }
6452
6453
6454
6455
6456
6457 func (r *ProjectsLocationsFeaturesService) List(parent string) *ProjectsLocationsFeaturesListCall {
6458 c := &ProjectsLocationsFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6459 c.parent = parent
6460 return c
6461 }
6462
6463
6464
6465
6466
6467
6468
6469
6470 func (c *ProjectsLocationsFeaturesListCall) Filter(filter string) *ProjectsLocationsFeaturesListCall {
6471 c.urlParams_.Set("filter", filter)
6472 return c
6473 }
6474
6475
6476
6477 func (c *ProjectsLocationsFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturesListCall {
6478 c.urlParams_.Set("orderBy", orderBy)
6479 return c
6480 }
6481
6482
6483
6484
6485 func (c *ProjectsLocationsFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturesListCall {
6486 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6487 return c
6488 }
6489
6490
6491
6492
6493 func (c *ProjectsLocationsFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturesListCall {
6494 c.urlParams_.Set("pageToken", pageToken)
6495 return c
6496 }
6497
6498
6499
6500
6501 func (c *ProjectsLocationsFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesListCall {
6502 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6503 return c
6504 }
6505
6506
6507
6508
6509 func (c *ProjectsLocationsFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturesListCall {
6510 c.ifNoneMatch_ = entityTag
6511 return c
6512 }
6513
6514
6515 func (c *ProjectsLocationsFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturesListCall {
6516 c.ctx_ = ctx
6517 return c
6518 }
6519
6520
6521
6522 func (c *ProjectsLocationsFeaturesListCall) Header() http.Header {
6523 if c.header_ == nil {
6524 c.header_ = make(http.Header)
6525 }
6526 return c.header_
6527 }
6528
6529 func (c *ProjectsLocationsFeaturesListCall) doRequest(alt string) (*http.Response, error) {
6530 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6531 if c.ifNoneMatch_ != "" {
6532 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6533 }
6534 var body io.Reader = nil
6535 c.urlParams_.Set("alt", alt)
6536 c.urlParams_.Set("prettyPrint", "false")
6537 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features")
6538 urls += "?" + c.urlParams_.Encode()
6539 req, err := http.NewRequest("GET", urls, body)
6540 if err != nil {
6541 return nil, err
6542 }
6543 req.Header = reqHeaders
6544 googleapi.Expand(req.URL, map[string]string{
6545 "parent": c.parent,
6546 })
6547 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6548 }
6549
6550
6551
6552
6553
6554
6555
6556 func (c *ProjectsLocationsFeaturesListCall) Do(opts ...googleapi.CallOption) (*ListFeaturesResponse, error) {
6557 gensupport.SetOptions(c.urlParams_, opts...)
6558 res, err := c.doRequest("json")
6559 if res != nil && res.StatusCode == http.StatusNotModified {
6560 if res.Body != nil {
6561 res.Body.Close()
6562 }
6563 return nil, gensupport.WrapError(&googleapi.Error{
6564 Code: res.StatusCode,
6565 Header: res.Header,
6566 })
6567 }
6568 if err != nil {
6569 return nil, err
6570 }
6571 defer googleapi.CloseBody(res)
6572 if err := googleapi.CheckResponse(res); err != nil {
6573 return nil, gensupport.WrapError(err)
6574 }
6575 ret := &ListFeaturesResponse{
6576 ServerResponse: googleapi.ServerResponse{
6577 Header: res.Header,
6578 HTTPStatusCode: res.StatusCode,
6579 },
6580 }
6581 target := &ret
6582 if err := gensupport.DecodeResponse(target, res); err != nil {
6583 return nil, err
6584 }
6585 return ret, nil
6586 }
6587
6588
6589
6590
6591 func (c *ProjectsLocationsFeaturesListCall) Pages(ctx context.Context, f func(*ListFeaturesResponse) error) error {
6592 c.ctx_ = ctx
6593 defer c.PageToken(c.urlParams_.Get("pageToken"))
6594 for {
6595 x, err := c.Do()
6596 if err != nil {
6597 return err
6598 }
6599 if err := f(x); err != nil {
6600 return err
6601 }
6602 if x.NextPageToken == "" {
6603 return nil
6604 }
6605 c.PageToken(x.NextPageToken)
6606 }
6607 }
6608
6609 type ProjectsLocationsFeaturesPatchCall struct {
6610 s *Service
6611 name string
6612 feature *Feature
6613 urlParams_ gensupport.URLParams
6614 ctx_ context.Context
6615 header_ http.Header
6616 }
6617
6618
6619
6620
6621
6622 func (r *ProjectsLocationsFeaturesService) Patch(name string, feature *Feature) *ProjectsLocationsFeaturesPatchCall {
6623 c := &ProjectsLocationsFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6624 c.name = name
6625 c.feature = feature
6626 return c
6627 }
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640 func (c *ProjectsLocationsFeaturesPatchCall) RequestId(requestId string) *ProjectsLocationsFeaturesPatchCall {
6641 c.urlParams_.Set("requestId", requestId)
6642 return c
6643 }
6644
6645
6646
6647 func (c *ProjectsLocationsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturesPatchCall {
6648 c.urlParams_.Set("updateMask", updateMask)
6649 return c
6650 }
6651
6652
6653
6654
6655 func (c *ProjectsLocationsFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesPatchCall {
6656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6657 return c
6658 }
6659
6660
6661 func (c *ProjectsLocationsFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturesPatchCall {
6662 c.ctx_ = ctx
6663 return c
6664 }
6665
6666
6667
6668 func (c *ProjectsLocationsFeaturesPatchCall) Header() http.Header {
6669 if c.header_ == nil {
6670 c.header_ = make(http.Header)
6671 }
6672 return c.header_
6673 }
6674
6675 func (c *ProjectsLocationsFeaturesPatchCall) doRequest(alt string) (*http.Response, error) {
6676 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6677 var body io.Reader = nil
6678 body, err := googleapi.WithoutDataWrapper.JSONReader(c.feature)
6679 if err != nil {
6680 return nil, err
6681 }
6682 c.urlParams_.Set("alt", alt)
6683 c.urlParams_.Set("prettyPrint", "false")
6684 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6685 urls += "?" + c.urlParams_.Encode()
6686 req, err := http.NewRequest("PATCH", urls, body)
6687 if err != nil {
6688 return nil, err
6689 }
6690 req.Header = reqHeaders
6691 googleapi.Expand(req.URL, map[string]string{
6692 "name": c.name,
6693 })
6694 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6695 }
6696
6697
6698
6699
6700
6701
6702 func (c *ProjectsLocationsFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6703 gensupport.SetOptions(c.urlParams_, opts...)
6704 res, err := c.doRequest("json")
6705 if res != nil && res.StatusCode == http.StatusNotModified {
6706 if res.Body != nil {
6707 res.Body.Close()
6708 }
6709 return nil, gensupport.WrapError(&googleapi.Error{
6710 Code: res.StatusCode,
6711 Header: res.Header,
6712 })
6713 }
6714 if err != nil {
6715 return nil, err
6716 }
6717 defer googleapi.CloseBody(res)
6718 if err := googleapi.CheckResponse(res); err != nil {
6719 return nil, gensupport.WrapError(err)
6720 }
6721 ret := &Operation{
6722 ServerResponse: googleapi.ServerResponse{
6723 Header: res.Header,
6724 HTTPStatusCode: res.StatusCode,
6725 },
6726 }
6727 target := &ret
6728 if err := gensupport.DecodeResponse(target, res); err != nil {
6729 return nil, err
6730 }
6731 return ret, nil
6732 }
6733
6734 type ProjectsLocationsFeaturesSetIamPolicyCall struct {
6735 s *Service
6736 resource string
6737 setiampolicyrequest *SetIamPolicyRequest
6738 urlParams_ gensupport.URLParams
6739 ctx_ context.Context
6740 header_ http.Header
6741 }
6742
6743
6744
6745
6746
6747
6748
6749
6750 func (r *ProjectsLocationsFeaturesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsFeaturesSetIamPolicyCall {
6751 c := &ProjectsLocationsFeaturesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6752 c.resource = resource
6753 c.setiampolicyrequest = setiampolicyrequest
6754 return c
6755 }
6756
6757
6758
6759
6760 func (c *ProjectsLocationsFeaturesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesSetIamPolicyCall {
6761 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6762 return c
6763 }
6764
6765
6766 func (c *ProjectsLocationsFeaturesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturesSetIamPolicyCall {
6767 c.ctx_ = ctx
6768 return c
6769 }
6770
6771
6772
6773 func (c *ProjectsLocationsFeaturesSetIamPolicyCall) Header() http.Header {
6774 if c.header_ == nil {
6775 c.header_ = make(http.Header)
6776 }
6777 return c.header_
6778 }
6779
6780 func (c *ProjectsLocationsFeaturesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
6781 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6782 var body io.Reader = nil
6783 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
6784 if err != nil {
6785 return nil, err
6786 }
6787 c.urlParams_.Set("alt", alt)
6788 c.urlParams_.Set("prettyPrint", "false")
6789 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
6790 urls += "?" + c.urlParams_.Encode()
6791 req, err := http.NewRequest("POST", urls, body)
6792 if err != nil {
6793 return nil, err
6794 }
6795 req.Header = reqHeaders
6796 googleapi.Expand(req.URL, map[string]string{
6797 "resource": c.resource,
6798 })
6799 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6800 }
6801
6802
6803
6804
6805
6806
6807 func (c *ProjectsLocationsFeaturesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
6808 gensupport.SetOptions(c.urlParams_, opts...)
6809 res, err := c.doRequest("json")
6810 if res != nil && res.StatusCode == http.StatusNotModified {
6811 if res.Body != nil {
6812 res.Body.Close()
6813 }
6814 return nil, gensupport.WrapError(&googleapi.Error{
6815 Code: res.StatusCode,
6816 Header: res.Header,
6817 })
6818 }
6819 if err != nil {
6820 return nil, err
6821 }
6822 defer googleapi.CloseBody(res)
6823 if err := googleapi.CheckResponse(res); err != nil {
6824 return nil, gensupport.WrapError(err)
6825 }
6826 ret := &Policy{
6827 ServerResponse: googleapi.ServerResponse{
6828 Header: res.Header,
6829 HTTPStatusCode: res.StatusCode,
6830 },
6831 }
6832 target := &ret
6833 if err := gensupport.DecodeResponse(target, res); err != nil {
6834 return nil, err
6835 }
6836 return ret, nil
6837 }
6838
6839 type ProjectsLocationsFeaturesTestIamPermissionsCall struct {
6840 s *Service
6841 resource string
6842 testiampermissionsrequest *TestIamPermissionsRequest
6843 urlParams_ gensupport.URLParams
6844 ctx_ context.Context
6845 header_ http.Header
6846 }
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 func (r *ProjectsLocationsFeaturesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsFeaturesTestIamPermissionsCall {
6859 c := &ProjectsLocationsFeaturesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6860 c.resource = resource
6861 c.testiampermissionsrequest = testiampermissionsrequest
6862 return c
6863 }
6864
6865
6866
6867
6868 func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesTestIamPermissionsCall {
6869 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6870 return c
6871 }
6872
6873
6874 func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturesTestIamPermissionsCall {
6875 c.ctx_ = ctx
6876 return c
6877 }
6878
6879
6880
6881 func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Header() http.Header {
6882 if c.header_ == nil {
6883 c.header_ = make(http.Header)
6884 }
6885 return c.header_
6886 }
6887
6888 func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
6889 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6890 var body io.Reader = nil
6891 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
6892 if err != nil {
6893 return nil, err
6894 }
6895 c.urlParams_.Set("alt", alt)
6896 c.urlParams_.Set("prettyPrint", "false")
6897 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
6898 urls += "?" + c.urlParams_.Encode()
6899 req, err := http.NewRequest("POST", urls, body)
6900 if err != nil {
6901 return nil, err
6902 }
6903 req.Header = reqHeaders
6904 googleapi.Expand(req.URL, map[string]string{
6905 "resource": c.resource,
6906 })
6907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6908 }
6909
6910
6911
6912
6913
6914
6915
6916 func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
6917 gensupport.SetOptions(c.urlParams_, opts...)
6918 res, err := c.doRequest("json")
6919 if res != nil && res.StatusCode == http.StatusNotModified {
6920 if res.Body != nil {
6921 res.Body.Close()
6922 }
6923 return nil, gensupport.WrapError(&googleapi.Error{
6924 Code: res.StatusCode,
6925 Header: res.Header,
6926 })
6927 }
6928 if err != nil {
6929 return nil, err
6930 }
6931 defer googleapi.CloseBody(res)
6932 if err := googleapi.CheckResponse(res); err != nil {
6933 return nil, gensupport.WrapError(err)
6934 }
6935 ret := &TestIamPermissionsResponse{
6936 ServerResponse: googleapi.ServerResponse{
6937 Header: res.Header,
6938 HTTPStatusCode: res.StatusCode,
6939 },
6940 }
6941 target := &ret
6942 if err := gensupport.DecodeResponse(target, res); err != nil {
6943 return nil, err
6944 }
6945 return ret, nil
6946 }
6947
6948 type ProjectsLocationsFleetsCreateCall struct {
6949 s *Service
6950 parent string
6951 fleet *Fleet
6952 urlParams_ gensupport.URLParams
6953 ctx_ context.Context
6954 header_ http.Header
6955 }
6956
6957
6958
6959
6960
6961 func (r *ProjectsLocationsFleetsService) Create(parent string, fleet *Fleet) *ProjectsLocationsFleetsCreateCall {
6962 c := &ProjectsLocationsFleetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6963 c.parent = parent
6964 c.fleet = fleet
6965 return c
6966 }
6967
6968
6969
6970
6971 func (c *ProjectsLocationsFleetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsCreateCall {
6972 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6973 return c
6974 }
6975
6976
6977 func (c *ProjectsLocationsFleetsCreateCall) Context(ctx context.Context) *ProjectsLocationsFleetsCreateCall {
6978 c.ctx_ = ctx
6979 return c
6980 }
6981
6982
6983
6984 func (c *ProjectsLocationsFleetsCreateCall) Header() http.Header {
6985 if c.header_ == nil {
6986 c.header_ = make(http.Header)
6987 }
6988 return c.header_
6989 }
6990
6991 func (c *ProjectsLocationsFleetsCreateCall) doRequest(alt string) (*http.Response, error) {
6992 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6993 var body io.Reader = nil
6994 body, err := googleapi.WithoutDataWrapper.JSONReader(c.fleet)
6995 if err != nil {
6996 return nil, err
6997 }
6998 c.urlParams_.Set("alt", alt)
6999 c.urlParams_.Set("prettyPrint", "false")
7000 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fleets")
7001 urls += "?" + c.urlParams_.Encode()
7002 req, err := http.NewRequest("POST", urls, body)
7003 if err != nil {
7004 return nil, err
7005 }
7006 req.Header = reqHeaders
7007 googleapi.Expand(req.URL, map[string]string{
7008 "parent": c.parent,
7009 })
7010 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7011 }
7012
7013
7014
7015
7016
7017
7018 func (c *ProjectsLocationsFleetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7019 gensupport.SetOptions(c.urlParams_, opts...)
7020 res, err := c.doRequest("json")
7021 if res != nil && res.StatusCode == http.StatusNotModified {
7022 if res.Body != nil {
7023 res.Body.Close()
7024 }
7025 return nil, gensupport.WrapError(&googleapi.Error{
7026 Code: res.StatusCode,
7027 Header: res.Header,
7028 })
7029 }
7030 if err != nil {
7031 return nil, err
7032 }
7033 defer googleapi.CloseBody(res)
7034 if err := googleapi.CheckResponse(res); err != nil {
7035 return nil, gensupport.WrapError(err)
7036 }
7037 ret := &Operation{
7038 ServerResponse: googleapi.ServerResponse{
7039 Header: res.Header,
7040 HTTPStatusCode: res.StatusCode,
7041 },
7042 }
7043 target := &ret
7044 if err := gensupport.DecodeResponse(target, res); err != nil {
7045 return nil, err
7046 }
7047 return ret, nil
7048 }
7049
7050 type ProjectsLocationsFleetsDeleteCall struct {
7051 s *Service
7052 name string
7053 urlParams_ gensupport.URLParams
7054 ctx_ context.Context
7055 header_ http.Header
7056 }
7057
7058
7059
7060
7061
7062
7063 func (r *ProjectsLocationsFleetsService) Delete(name string) *ProjectsLocationsFleetsDeleteCall {
7064 c := &ProjectsLocationsFleetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7065 c.name = name
7066 return c
7067 }
7068
7069
7070
7071
7072 func (c *ProjectsLocationsFleetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsDeleteCall {
7073 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7074 return c
7075 }
7076
7077
7078 func (c *ProjectsLocationsFleetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFleetsDeleteCall {
7079 c.ctx_ = ctx
7080 return c
7081 }
7082
7083
7084
7085 func (c *ProjectsLocationsFleetsDeleteCall) Header() http.Header {
7086 if c.header_ == nil {
7087 c.header_ = make(http.Header)
7088 }
7089 return c.header_
7090 }
7091
7092 func (c *ProjectsLocationsFleetsDeleteCall) doRequest(alt string) (*http.Response, error) {
7093 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7094 var body io.Reader = nil
7095 c.urlParams_.Set("alt", alt)
7096 c.urlParams_.Set("prettyPrint", "false")
7097 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7098 urls += "?" + c.urlParams_.Encode()
7099 req, err := http.NewRequest("DELETE", urls, body)
7100 if err != nil {
7101 return nil, err
7102 }
7103 req.Header = reqHeaders
7104 googleapi.Expand(req.URL, map[string]string{
7105 "name": c.name,
7106 })
7107 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7108 }
7109
7110
7111
7112
7113
7114
7115 func (c *ProjectsLocationsFleetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7116 gensupport.SetOptions(c.urlParams_, opts...)
7117 res, err := c.doRequest("json")
7118 if res != nil && res.StatusCode == http.StatusNotModified {
7119 if res.Body != nil {
7120 res.Body.Close()
7121 }
7122 return nil, gensupport.WrapError(&googleapi.Error{
7123 Code: res.StatusCode,
7124 Header: res.Header,
7125 })
7126 }
7127 if err != nil {
7128 return nil, err
7129 }
7130 defer googleapi.CloseBody(res)
7131 if err := googleapi.CheckResponse(res); err != nil {
7132 return nil, gensupport.WrapError(err)
7133 }
7134 ret := &Operation{
7135 ServerResponse: googleapi.ServerResponse{
7136 Header: res.Header,
7137 HTTPStatusCode: res.StatusCode,
7138 },
7139 }
7140 target := &ret
7141 if err := gensupport.DecodeResponse(target, res); err != nil {
7142 return nil, err
7143 }
7144 return ret, nil
7145 }
7146
7147 type ProjectsLocationsFleetsGetCall struct {
7148 s *Service
7149 name string
7150 urlParams_ gensupport.URLParams
7151 ifNoneMatch_ string
7152 ctx_ context.Context
7153 header_ http.Header
7154 }
7155
7156
7157
7158
7159
7160 func (r *ProjectsLocationsFleetsService) Get(name string) *ProjectsLocationsFleetsGetCall {
7161 c := &ProjectsLocationsFleetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7162 c.name = name
7163 return c
7164 }
7165
7166
7167
7168
7169 func (c *ProjectsLocationsFleetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsGetCall {
7170 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7171 return c
7172 }
7173
7174
7175
7176
7177 func (c *ProjectsLocationsFleetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFleetsGetCall {
7178 c.ifNoneMatch_ = entityTag
7179 return c
7180 }
7181
7182
7183 func (c *ProjectsLocationsFleetsGetCall) Context(ctx context.Context) *ProjectsLocationsFleetsGetCall {
7184 c.ctx_ = ctx
7185 return c
7186 }
7187
7188
7189
7190 func (c *ProjectsLocationsFleetsGetCall) Header() http.Header {
7191 if c.header_ == nil {
7192 c.header_ = make(http.Header)
7193 }
7194 return c.header_
7195 }
7196
7197 func (c *ProjectsLocationsFleetsGetCall) doRequest(alt string) (*http.Response, error) {
7198 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7199 if c.ifNoneMatch_ != "" {
7200 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7201 }
7202 var body io.Reader = nil
7203 c.urlParams_.Set("alt", alt)
7204 c.urlParams_.Set("prettyPrint", "false")
7205 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7206 urls += "?" + c.urlParams_.Encode()
7207 req, err := http.NewRequest("GET", urls, body)
7208 if err != nil {
7209 return nil, err
7210 }
7211 req.Header = reqHeaders
7212 googleapi.Expand(req.URL, map[string]string{
7213 "name": c.name,
7214 })
7215 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7216 }
7217
7218
7219
7220
7221
7222
7223 func (c *ProjectsLocationsFleetsGetCall) Do(opts ...googleapi.CallOption) (*Fleet, error) {
7224 gensupport.SetOptions(c.urlParams_, opts...)
7225 res, err := c.doRequest("json")
7226 if res != nil && res.StatusCode == http.StatusNotModified {
7227 if res.Body != nil {
7228 res.Body.Close()
7229 }
7230 return nil, gensupport.WrapError(&googleapi.Error{
7231 Code: res.StatusCode,
7232 Header: res.Header,
7233 })
7234 }
7235 if err != nil {
7236 return nil, err
7237 }
7238 defer googleapi.CloseBody(res)
7239 if err := googleapi.CheckResponse(res); err != nil {
7240 return nil, gensupport.WrapError(err)
7241 }
7242 ret := &Fleet{
7243 ServerResponse: googleapi.ServerResponse{
7244 Header: res.Header,
7245 HTTPStatusCode: res.StatusCode,
7246 },
7247 }
7248 target := &ret
7249 if err := gensupport.DecodeResponse(target, res); err != nil {
7250 return nil, err
7251 }
7252 return ret, nil
7253 }
7254
7255 type ProjectsLocationsFleetsListCall struct {
7256 s *Service
7257 parent string
7258 urlParams_ gensupport.URLParams
7259 ifNoneMatch_ string
7260 ctx_ context.Context
7261 header_ http.Header
7262 }
7263
7264
7265
7266
7267
7268
7269 func (r *ProjectsLocationsFleetsService) List(parent string) *ProjectsLocationsFleetsListCall {
7270 c := &ProjectsLocationsFleetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7271 c.parent = parent
7272 return c
7273 }
7274
7275
7276
7277
7278
7279 func (c *ProjectsLocationsFleetsListCall) PageSize(pageSize int64) *ProjectsLocationsFleetsListCall {
7280 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7281 return c
7282 }
7283
7284
7285
7286
7287
7288 func (c *ProjectsLocationsFleetsListCall) PageToken(pageToken string) *ProjectsLocationsFleetsListCall {
7289 c.urlParams_.Set("pageToken", pageToken)
7290 return c
7291 }
7292
7293
7294
7295
7296 func (c *ProjectsLocationsFleetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsListCall {
7297 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7298 return c
7299 }
7300
7301
7302
7303
7304 func (c *ProjectsLocationsFleetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFleetsListCall {
7305 c.ifNoneMatch_ = entityTag
7306 return c
7307 }
7308
7309
7310 func (c *ProjectsLocationsFleetsListCall) Context(ctx context.Context) *ProjectsLocationsFleetsListCall {
7311 c.ctx_ = ctx
7312 return c
7313 }
7314
7315
7316
7317 func (c *ProjectsLocationsFleetsListCall) Header() http.Header {
7318 if c.header_ == nil {
7319 c.header_ = make(http.Header)
7320 }
7321 return c.header_
7322 }
7323
7324 func (c *ProjectsLocationsFleetsListCall) doRequest(alt string) (*http.Response, error) {
7325 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7326 if c.ifNoneMatch_ != "" {
7327 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7328 }
7329 var body io.Reader = nil
7330 c.urlParams_.Set("alt", alt)
7331 c.urlParams_.Set("prettyPrint", "false")
7332 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fleets")
7333 urls += "?" + c.urlParams_.Encode()
7334 req, err := http.NewRequest("GET", urls, body)
7335 if err != nil {
7336 return nil, err
7337 }
7338 req.Header = reqHeaders
7339 googleapi.Expand(req.URL, map[string]string{
7340 "parent": c.parent,
7341 })
7342 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7343 }
7344
7345
7346
7347
7348
7349
7350
7351 func (c *ProjectsLocationsFleetsListCall) Do(opts ...googleapi.CallOption) (*ListFleetsResponse, error) {
7352 gensupport.SetOptions(c.urlParams_, opts...)
7353 res, err := c.doRequest("json")
7354 if res != nil && res.StatusCode == http.StatusNotModified {
7355 if res.Body != nil {
7356 res.Body.Close()
7357 }
7358 return nil, gensupport.WrapError(&googleapi.Error{
7359 Code: res.StatusCode,
7360 Header: res.Header,
7361 })
7362 }
7363 if err != nil {
7364 return nil, err
7365 }
7366 defer googleapi.CloseBody(res)
7367 if err := googleapi.CheckResponse(res); err != nil {
7368 return nil, gensupport.WrapError(err)
7369 }
7370 ret := &ListFleetsResponse{
7371 ServerResponse: googleapi.ServerResponse{
7372 Header: res.Header,
7373 HTTPStatusCode: res.StatusCode,
7374 },
7375 }
7376 target := &ret
7377 if err := gensupport.DecodeResponse(target, res); err != nil {
7378 return nil, err
7379 }
7380 return ret, nil
7381 }
7382
7383
7384
7385
7386 func (c *ProjectsLocationsFleetsListCall) Pages(ctx context.Context, f func(*ListFleetsResponse) error) error {
7387 c.ctx_ = ctx
7388 defer c.PageToken(c.urlParams_.Get("pageToken"))
7389 for {
7390 x, err := c.Do()
7391 if err != nil {
7392 return err
7393 }
7394 if err := f(x); err != nil {
7395 return err
7396 }
7397 if x.NextPageToken == "" {
7398 return nil
7399 }
7400 c.PageToken(x.NextPageToken)
7401 }
7402 }
7403
7404 type ProjectsLocationsFleetsPatchCall struct {
7405 s *Service
7406 name string
7407 fleet *Fleet
7408 urlParams_ gensupport.URLParams
7409 ctx_ context.Context
7410 header_ http.Header
7411 }
7412
7413
7414
7415
7416
7417
7418 func (r *ProjectsLocationsFleetsService) Patch(name string, fleet *Fleet) *ProjectsLocationsFleetsPatchCall {
7419 c := &ProjectsLocationsFleetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7420 c.name = name
7421 c.fleet = fleet
7422 return c
7423 }
7424
7425
7426
7427 func (c *ProjectsLocationsFleetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFleetsPatchCall {
7428 c.urlParams_.Set("updateMask", updateMask)
7429 return c
7430 }
7431
7432
7433
7434
7435 func (c *ProjectsLocationsFleetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsPatchCall {
7436 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7437 return c
7438 }
7439
7440
7441 func (c *ProjectsLocationsFleetsPatchCall) Context(ctx context.Context) *ProjectsLocationsFleetsPatchCall {
7442 c.ctx_ = ctx
7443 return c
7444 }
7445
7446
7447
7448 func (c *ProjectsLocationsFleetsPatchCall) Header() http.Header {
7449 if c.header_ == nil {
7450 c.header_ = make(http.Header)
7451 }
7452 return c.header_
7453 }
7454
7455 func (c *ProjectsLocationsFleetsPatchCall) doRequest(alt string) (*http.Response, error) {
7456 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7457 var body io.Reader = nil
7458 body, err := googleapi.WithoutDataWrapper.JSONReader(c.fleet)
7459 if err != nil {
7460 return nil, err
7461 }
7462 c.urlParams_.Set("alt", alt)
7463 c.urlParams_.Set("prettyPrint", "false")
7464 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7465 urls += "?" + c.urlParams_.Encode()
7466 req, err := http.NewRequest("PATCH", urls, body)
7467 if err != nil {
7468 return nil, err
7469 }
7470 req.Header = reqHeaders
7471 googleapi.Expand(req.URL, map[string]string{
7472 "name": c.name,
7473 })
7474 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7475 }
7476
7477
7478
7479
7480
7481
7482 func (c *ProjectsLocationsFleetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7483 gensupport.SetOptions(c.urlParams_, opts...)
7484 res, err := c.doRequest("json")
7485 if res != nil && res.StatusCode == http.StatusNotModified {
7486 if res.Body != nil {
7487 res.Body.Close()
7488 }
7489 return nil, gensupport.WrapError(&googleapi.Error{
7490 Code: res.StatusCode,
7491 Header: res.Header,
7492 })
7493 }
7494 if err != nil {
7495 return nil, err
7496 }
7497 defer googleapi.CloseBody(res)
7498 if err := googleapi.CheckResponse(res); err != nil {
7499 return nil, gensupport.WrapError(err)
7500 }
7501 ret := &Operation{
7502 ServerResponse: googleapi.ServerResponse{
7503 Header: res.Header,
7504 HTTPStatusCode: res.StatusCode,
7505 },
7506 }
7507 target := &ret
7508 if err := gensupport.DecodeResponse(target, res); err != nil {
7509 return nil, err
7510 }
7511 return ret, nil
7512 }
7513
7514 type ProjectsLocationsMembershipsCreateCall struct {
7515 s *Service
7516 parent string
7517 membership *Membership
7518 urlParams_ gensupport.URLParams
7519 ctx_ context.Context
7520 header_ http.Header
7521 }
7522
7523
7524
7525
7526
7527
7528
7529
7530 func (r *ProjectsLocationsMembershipsService) Create(parent string, membership *Membership) *ProjectsLocationsMembershipsCreateCall {
7531 c := &ProjectsLocationsMembershipsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7532 c.parent = parent
7533 c.membership = membership
7534 return c
7535 }
7536
7537
7538
7539
7540
7541
7542
7543 func (c *ProjectsLocationsMembershipsCreateCall) MembershipId(membershipId string) *ProjectsLocationsMembershipsCreateCall {
7544 c.urlParams_.Set("membershipId", membershipId)
7545 return c
7546 }
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 func (c *ProjectsLocationsMembershipsCreateCall) RequestId(requestId string) *ProjectsLocationsMembershipsCreateCall {
7560 c.urlParams_.Set("requestId", requestId)
7561 return c
7562 }
7563
7564
7565
7566
7567 func (c *ProjectsLocationsMembershipsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsCreateCall {
7568 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7569 return c
7570 }
7571
7572
7573 func (c *ProjectsLocationsMembershipsCreateCall) Context(ctx context.Context) *ProjectsLocationsMembershipsCreateCall {
7574 c.ctx_ = ctx
7575 return c
7576 }
7577
7578
7579
7580 func (c *ProjectsLocationsMembershipsCreateCall) Header() http.Header {
7581 if c.header_ == nil {
7582 c.header_ = make(http.Header)
7583 }
7584 return c.header_
7585 }
7586
7587 func (c *ProjectsLocationsMembershipsCreateCall) doRequest(alt string) (*http.Response, error) {
7588 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7589 var body io.Reader = nil
7590 body, err := googleapi.WithoutDataWrapper.JSONReader(c.membership)
7591 if err != nil {
7592 return nil, err
7593 }
7594 c.urlParams_.Set("alt", alt)
7595 c.urlParams_.Set("prettyPrint", "false")
7596 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships")
7597 urls += "?" + c.urlParams_.Encode()
7598 req, err := http.NewRequest("POST", urls, body)
7599 if err != nil {
7600 return nil, err
7601 }
7602 req.Header = reqHeaders
7603 googleapi.Expand(req.URL, map[string]string{
7604 "parent": c.parent,
7605 })
7606 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7607 }
7608
7609
7610
7611
7612
7613
7614 func (c *ProjectsLocationsMembershipsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7615 gensupport.SetOptions(c.urlParams_, opts...)
7616 res, err := c.doRequest("json")
7617 if res != nil && res.StatusCode == http.StatusNotModified {
7618 if res.Body != nil {
7619 res.Body.Close()
7620 }
7621 return nil, gensupport.WrapError(&googleapi.Error{
7622 Code: res.StatusCode,
7623 Header: res.Header,
7624 })
7625 }
7626 if err != nil {
7627 return nil, err
7628 }
7629 defer googleapi.CloseBody(res)
7630 if err := googleapi.CheckResponse(res); err != nil {
7631 return nil, gensupport.WrapError(err)
7632 }
7633 ret := &Operation{
7634 ServerResponse: googleapi.ServerResponse{
7635 Header: res.Header,
7636 HTTPStatusCode: res.StatusCode,
7637 },
7638 }
7639 target := &ret
7640 if err := gensupport.DecodeResponse(target, res); err != nil {
7641 return nil, err
7642 }
7643 return ret, nil
7644 }
7645
7646 type ProjectsLocationsMembershipsDeleteCall struct {
7647 s *Service
7648 name string
7649 urlParams_ gensupport.URLParams
7650 ctx_ context.Context
7651 header_ http.Header
7652 }
7653
7654
7655
7656
7657
7658
7659
7660
7661 func (r *ProjectsLocationsMembershipsService) Delete(name string) *ProjectsLocationsMembershipsDeleteCall {
7662 c := &ProjectsLocationsMembershipsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7663 c.name = name
7664 return c
7665 }
7666
7667
7668
7669
7670 func (c *ProjectsLocationsMembershipsDeleteCall) Force(force bool) *ProjectsLocationsMembershipsDeleteCall {
7671 c.urlParams_.Set("force", fmt.Sprint(force))
7672 return c
7673 }
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686 func (c *ProjectsLocationsMembershipsDeleteCall) RequestId(requestId string) *ProjectsLocationsMembershipsDeleteCall {
7687 c.urlParams_.Set("requestId", requestId)
7688 return c
7689 }
7690
7691
7692
7693
7694 func (c *ProjectsLocationsMembershipsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsDeleteCall {
7695 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7696 return c
7697 }
7698
7699
7700 func (c *ProjectsLocationsMembershipsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMembershipsDeleteCall {
7701 c.ctx_ = ctx
7702 return c
7703 }
7704
7705
7706
7707 func (c *ProjectsLocationsMembershipsDeleteCall) Header() http.Header {
7708 if c.header_ == nil {
7709 c.header_ = make(http.Header)
7710 }
7711 return c.header_
7712 }
7713
7714 func (c *ProjectsLocationsMembershipsDeleteCall) doRequest(alt string) (*http.Response, error) {
7715 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7716 var body io.Reader = nil
7717 c.urlParams_.Set("alt", alt)
7718 c.urlParams_.Set("prettyPrint", "false")
7719 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7720 urls += "?" + c.urlParams_.Encode()
7721 req, err := http.NewRequest("DELETE", urls, body)
7722 if err != nil {
7723 return nil, err
7724 }
7725 req.Header = reqHeaders
7726 googleapi.Expand(req.URL, map[string]string{
7727 "name": c.name,
7728 })
7729 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7730 }
7731
7732
7733
7734
7735
7736
7737 func (c *ProjectsLocationsMembershipsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7738 gensupport.SetOptions(c.urlParams_, opts...)
7739 res, err := c.doRequest("json")
7740 if res != nil && res.StatusCode == http.StatusNotModified {
7741 if res.Body != nil {
7742 res.Body.Close()
7743 }
7744 return nil, gensupport.WrapError(&googleapi.Error{
7745 Code: res.StatusCode,
7746 Header: res.Header,
7747 })
7748 }
7749 if err != nil {
7750 return nil, err
7751 }
7752 defer googleapi.CloseBody(res)
7753 if err := googleapi.CheckResponse(res); err != nil {
7754 return nil, gensupport.WrapError(err)
7755 }
7756 ret := &Operation{
7757 ServerResponse: googleapi.ServerResponse{
7758 Header: res.Header,
7759 HTTPStatusCode: res.StatusCode,
7760 },
7761 }
7762 target := &ret
7763 if err := gensupport.DecodeResponse(target, res); err != nil {
7764 return nil, err
7765 }
7766 return ret, nil
7767 }
7768
7769 type ProjectsLocationsMembershipsGenerateConnectManifestCall struct {
7770 s *Service
7771 name string
7772 urlParams_ gensupport.URLParams
7773 ifNoneMatch_ string
7774 ctx_ context.Context
7775 header_ http.Header
7776 }
7777
7778
7779
7780
7781
7782
7783
7784 func (r *ProjectsLocationsMembershipsService) GenerateConnectManifest(name string) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7785 c := &ProjectsLocationsMembershipsGenerateConnectManifestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7786 c.name = name
7787 return c
7788 }
7789
7790
7791
7792 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) ImagePullSecretContent(imagePullSecretContent string) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7793 c.urlParams_.Set("imagePullSecretContent", imagePullSecretContent)
7794 return c
7795 }
7796
7797
7798
7799
7800 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) IsUpgrade(isUpgrade bool) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7801 c.urlParams_.Set("isUpgrade", fmt.Sprint(isUpgrade))
7802 return c
7803 }
7804
7805
7806
7807
7808
7809 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Namespace(namespace string) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7810 c.urlParams_.Set("namespace", namespace)
7811 return c
7812 }
7813
7814
7815
7816
7817
7818
7819 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Proxy(proxy string) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7820 c.urlParams_.Set("proxy", proxy)
7821 return c
7822 }
7823
7824
7825
7826 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Registry(registry string) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7827 c.urlParams_.Set("registry", registry)
7828 return c
7829 }
7830
7831
7832
7833 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Version(version string) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7834 c.urlParams_.Set("version", version)
7835 return c
7836 }
7837
7838
7839
7840
7841 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7842 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7843 return c
7844 }
7845
7846
7847
7848
7849 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7850 c.ifNoneMatch_ = entityTag
7851 return c
7852 }
7853
7854
7855 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Context(ctx context.Context) *ProjectsLocationsMembershipsGenerateConnectManifestCall {
7856 c.ctx_ = ctx
7857 return c
7858 }
7859
7860
7861
7862 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Header() http.Header {
7863 if c.header_ == nil {
7864 c.header_ = make(http.Header)
7865 }
7866 return c.header_
7867 }
7868
7869 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) doRequest(alt string) (*http.Response, error) {
7870 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7871 if c.ifNoneMatch_ != "" {
7872 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7873 }
7874 var body io.Reader = nil
7875 c.urlParams_.Set("alt", alt)
7876 c.urlParams_.Set("prettyPrint", "false")
7877 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateConnectManifest")
7878 urls += "?" + c.urlParams_.Encode()
7879 req, err := http.NewRequest("GET", urls, body)
7880 if err != nil {
7881 return nil, err
7882 }
7883 req.Header = reqHeaders
7884 googleapi.Expand(req.URL, map[string]string{
7885 "name": c.name,
7886 })
7887 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7888 }
7889
7890
7891
7892
7893
7894
7895
7896 func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Do(opts ...googleapi.CallOption) (*GenerateConnectManifestResponse, error) {
7897 gensupport.SetOptions(c.urlParams_, opts...)
7898 res, err := c.doRequest("json")
7899 if res != nil && res.StatusCode == http.StatusNotModified {
7900 if res.Body != nil {
7901 res.Body.Close()
7902 }
7903 return nil, gensupport.WrapError(&googleapi.Error{
7904 Code: res.StatusCode,
7905 Header: res.Header,
7906 })
7907 }
7908 if err != nil {
7909 return nil, err
7910 }
7911 defer googleapi.CloseBody(res)
7912 if err := googleapi.CheckResponse(res); err != nil {
7913 return nil, gensupport.WrapError(err)
7914 }
7915 ret := &GenerateConnectManifestResponse{
7916 ServerResponse: googleapi.ServerResponse{
7917 Header: res.Header,
7918 HTTPStatusCode: res.StatusCode,
7919 },
7920 }
7921 target := &ret
7922 if err := gensupport.DecodeResponse(target, res); err != nil {
7923 return nil, err
7924 }
7925 return ret, nil
7926 }
7927
7928 type ProjectsLocationsMembershipsGetCall struct {
7929 s *Service
7930 name string
7931 urlParams_ gensupport.URLParams
7932 ifNoneMatch_ string
7933 ctx_ context.Context
7934 header_ http.Header
7935 }
7936
7937
7938
7939
7940
7941 func (r *ProjectsLocationsMembershipsService) Get(name string) *ProjectsLocationsMembershipsGetCall {
7942 c := &ProjectsLocationsMembershipsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7943 c.name = name
7944 return c
7945 }
7946
7947
7948
7949
7950 func (c *ProjectsLocationsMembershipsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsGetCall {
7951 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7952 return c
7953 }
7954
7955
7956
7957
7958 func (c *ProjectsLocationsMembershipsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsGetCall {
7959 c.ifNoneMatch_ = entityTag
7960 return c
7961 }
7962
7963
7964 func (c *ProjectsLocationsMembershipsGetCall) Context(ctx context.Context) *ProjectsLocationsMembershipsGetCall {
7965 c.ctx_ = ctx
7966 return c
7967 }
7968
7969
7970
7971 func (c *ProjectsLocationsMembershipsGetCall) Header() http.Header {
7972 if c.header_ == nil {
7973 c.header_ = make(http.Header)
7974 }
7975 return c.header_
7976 }
7977
7978 func (c *ProjectsLocationsMembershipsGetCall) doRequest(alt string) (*http.Response, error) {
7979 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7980 if c.ifNoneMatch_ != "" {
7981 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7982 }
7983 var body io.Reader = nil
7984 c.urlParams_.Set("alt", alt)
7985 c.urlParams_.Set("prettyPrint", "false")
7986 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7987 urls += "?" + c.urlParams_.Encode()
7988 req, err := http.NewRequest("GET", urls, body)
7989 if err != nil {
7990 return nil, err
7991 }
7992 req.Header = reqHeaders
7993 googleapi.Expand(req.URL, map[string]string{
7994 "name": c.name,
7995 })
7996 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7997 }
7998
7999
8000
8001
8002
8003
8004 func (c *ProjectsLocationsMembershipsGetCall) Do(opts ...googleapi.CallOption) (*Membership, error) {
8005 gensupport.SetOptions(c.urlParams_, opts...)
8006 res, err := c.doRequest("json")
8007 if res != nil && res.StatusCode == http.StatusNotModified {
8008 if res.Body != nil {
8009 res.Body.Close()
8010 }
8011 return nil, gensupport.WrapError(&googleapi.Error{
8012 Code: res.StatusCode,
8013 Header: res.Header,
8014 })
8015 }
8016 if err != nil {
8017 return nil, err
8018 }
8019 defer googleapi.CloseBody(res)
8020 if err := googleapi.CheckResponse(res); err != nil {
8021 return nil, gensupport.WrapError(err)
8022 }
8023 ret := &Membership{
8024 ServerResponse: googleapi.ServerResponse{
8025 Header: res.Header,
8026 HTTPStatusCode: res.StatusCode,
8027 },
8028 }
8029 target := &ret
8030 if err := gensupport.DecodeResponse(target, res); err != nil {
8031 return nil, err
8032 }
8033 return ret, nil
8034 }
8035
8036 type ProjectsLocationsMembershipsGetIamPolicyCall struct {
8037 s *Service
8038 resource string
8039 urlParams_ gensupport.URLParams
8040 ifNoneMatch_ string
8041 ctx_ context.Context
8042 header_ http.Header
8043 }
8044
8045
8046
8047
8048
8049
8050
8051 func (r *ProjectsLocationsMembershipsService) GetIamPolicy(resource string) *ProjectsLocationsMembershipsGetIamPolicyCall {
8052 c := &ProjectsLocationsMembershipsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8053 c.resource = resource
8054 return c
8055 }
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 func (c *ProjectsLocationsMembershipsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsMembershipsGetIamPolicyCall {
8070 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
8071 return c
8072 }
8073
8074
8075
8076
8077 func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsGetIamPolicyCall {
8078 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8079 return c
8080 }
8081
8082
8083
8084
8085 func (c *ProjectsLocationsMembershipsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsGetIamPolicyCall {
8086 c.ifNoneMatch_ = entityTag
8087 return c
8088 }
8089
8090
8091 func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMembershipsGetIamPolicyCall {
8092 c.ctx_ = ctx
8093 return c
8094 }
8095
8096
8097
8098 func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Header() http.Header {
8099 if c.header_ == nil {
8100 c.header_ = make(http.Header)
8101 }
8102 return c.header_
8103 }
8104
8105 func (c *ProjectsLocationsMembershipsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8106 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8107 if c.ifNoneMatch_ != "" {
8108 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8109 }
8110 var body io.Reader = nil
8111 c.urlParams_.Set("alt", alt)
8112 c.urlParams_.Set("prettyPrint", "false")
8113 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
8114 urls += "?" + c.urlParams_.Encode()
8115 req, err := http.NewRequest("GET", urls, body)
8116 if err != nil {
8117 return nil, err
8118 }
8119 req.Header = reqHeaders
8120 googleapi.Expand(req.URL, map[string]string{
8121 "resource": c.resource,
8122 })
8123 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8124 }
8125
8126
8127
8128
8129
8130
8131 func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
8132 gensupport.SetOptions(c.urlParams_, opts...)
8133 res, err := c.doRequest("json")
8134 if res != nil && res.StatusCode == http.StatusNotModified {
8135 if res.Body != nil {
8136 res.Body.Close()
8137 }
8138 return nil, gensupport.WrapError(&googleapi.Error{
8139 Code: res.StatusCode,
8140 Header: res.Header,
8141 })
8142 }
8143 if err != nil {
8144 return nil, err
8145 }
8146 defer googleapi.CloseBody(res)
8147 if err := googleapi.CheckResponse(res); err != nil {
8148 return nil, gensupport.WrapError(err)
8149 }
8150 ret := &Policy{
8151 ServerResponse: googleapi.ServerResponse{
8152 Header: res.Header,
8153 HTTPStatusCode: res.StatusCode,
8154 },
8155 }
8156 target := &ret
8157 if err := gensupport.DecodeResponse(target, res); err != nil {
8158 return nil, err
8159 }
8160 return ret, nil
8161 }
8162
8163 type ProjectsLocationsMembershipsListCall struct {
8164 s *Service
8165 parent string
8166 urlParams_ gensupport.URLParams
8167 ifNoneMatch_ string
8168 ctx_ context.Context
8169 header_ http.Header
8170 }
8171
8172
8173
8174
8175
8176
8177 func (r *ProjectsLocationsMembershipsService) List(parent string) *ProjectsLocationsMembershipsListCall {
8178 c := &ProjectsLocationsMembershipsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8179 c.parent = parent
8180 return c
8181 }
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191 func (c *ProjectsLocationsMembershipsListCall) Filter(filter string) *ProjectsLocationsMembershipsListCall {
8192 c.urlParams_.Set("filter", filter)
8193 return c
8194 }
8195
8196
8197
8198 func (c *ProjectsLocationsMembershipsListCall) OrderBy(orderBy string) *ProjectsLocationsMembershipsListCall {
8199 c.urlParams_.Set("orderBy", orderBy)
8200 return c
8201 }
8202
8203
8204
8205
8206 func (c *ProjectsLocationsMembershipsListCall) PageSize(pageSize int64) *ProjectsLocationsMembershipsListCall {
8207 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8208 return c
8209 }
8210
8211
8212
8213
8214 func (c *ProjectsLocationsMembershipsListCall) PageToken(pageToken string) *ProjectsLocationsMembershipsListCall {
8215 c.urlParams_.Set("pageToken", pageToken)
8216 return c
8217 }
8218
8219
8220
8221
8222 func (c *ProjectsLocationsMembershipsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsListCall {
8223 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8224 return c
8225 }
8226
8227
8228
8229
8230 func (c *ProjectsLocationsMembershipsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsListCall {
8231 c.ifNoneMatch_ = entityTag
8232 return c
8233 }
8234
8235
8236 func (c *ProjectsLocationsMembershipsListCall) Context(ctx context.Context) *ProjectsLocationsMembershipsListCall {
8237 c.ctx_ = ctx
8238 return c
8239 }
8240
8241
8242
8243 func (c *ProjectsLocationsMembershipsListCall) Header() http.Header {
8244 if c.header_ == nil {
8245 c.header_ = make(http.Header)
8246 }
8247 return c.header_
8248 }
8249
8250 func (c *ProjectsLocationsMembershipsListCall) doRequest(alt string) (*http.Response, error) {
8251 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8252 if c.ifNoneMatch_ != "" {
8253 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8254 }
8255 var body io.Reader = nil
8256 c.urlParams_.Set("alt", alt)
8257 c.urlParams_.Set("prettyPrint", "false")
8258 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships")
8259 urls += "?" + c.urlParams_.Encode()
8260 req, err := http.NewRequest("GET", urls, body)
8261 if err != nil {
8262 return nil, err
8263 }
8264 req.Header = reqHeaders
8265 googleapi.Expand(req.URL, map[string]string{
8266 "parent": c.parent,
8267 })
8268 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8269 }
8270
8271
8272
8273
8274
8275
8276
8277 func (c *ProjectsLocationsMembershipsListCall) Do(opts ...googleapi.CallOption) (*ListMembershipsResponse, error) {
8278 gensupport.SetOptions(c.urlParams_, opts...)
8279 res, err := c.doRequest("json")
8280 if res != nil && res.StatusCode == http.StatusNotModified {
8281 if res.Body != nil {
8282 res.Body.Close()
8283 }
8284 return nil, gensupport.WrapError(&googleapi.Error{
8285 Code: res.StatusCode,
8286 Header: res.Header,
8287 })
8288 }
8289 if err != nil {
8290 return nil, err
8291 }
8292 defer googleapi.CloseBody(res)
8293 if err := googleapi.CheckResponse(res); err != nil {
8294 return nil, gensupport.WrapError(err)
8295 }
8296 ret := &ListMembershipsResponse{
8297 ServerResponse: googleapi.ServerResponse{
8298 Header: res.Header,
8299 HTTPStatusCode: res.StatusCode,
8300 },
8301 }
8302 target := &ret
8303 if err := gensupport.DecodeResponse(target, res); err != nil {
8304 return nil, err
8305 }
8306 return ret, nil
8307 }
8308
8309
8310
8311
8312 func (c *ProjectsLocationsMembershipsListCall) Pages(ctx context.Context, f func(*ListMembershipsResponse) error) error {
8313 c.ctx_ = ctx
8314 defer c.PageToken(c.urlParams_.Get("pageToken"))
8315 for {
8316 x, err := c.Do()
8317 if err != nil {
8318 return err
8319 }
8320 if err := f(x); err != nil {
8321 return err
8322 }
8323 if x.NextPageToken == "" {
8324 return nil
8325 }
8326 c.PageToken(x.NextPageToken)
8327 }
8328 }
8329
8330 type ProjectsLocationsMembershipsPatchCall struct {
8331 s *Service
8332 name string
8333 membership *Membership
8334 urlParams_ gensupport.URLParams
8335 ctx_ context.Context
8336 header_ http.Header
8337 }
8338
8339
8340
8341
8342
8343 func (r *ProjectsLocationsMembershipsService) Patch(name string, membership *Membership) *ProjectsLocationsMembershipsPatchCall {
8344 c := &ProjectsLocationsMembershipsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8345 c.name = name
8346 c.membership = membership
8347 return c
8348 }
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361 func (c *ProjectsLocationsMembershipsPatchCall) RequestId(requestId string) *ProjectsLocationsMembershipsPatchCall {
8362 c.urlParams_.Set("requestId", requestId)
8363 return c
8364 }
8365
8366
8367
8368 func (c *ProjectsLocationsMembershipsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMembershipsPatchCall {
8369 c.urlParams_.Set("updateMask", updateMask)
8370 return c
8371 }
8372
8373
8374
8375
8376 func (c *ProjectsLocationsMembershipsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsPatchCall {
8377 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8378 return c
8379 }
8380
8381
8382 func (c *ProjectsLocationsMembershipsPatchCall) Context(ctx context.Context) *ProjectsLocationsMembershipsPatchCall {
8383 c.ctx_ = ctx
8384 return c
8385 }
8386
8387
8388
8389 func (c *ProjectsLocationsMembershipsPatchCall) Header() http.Header {
8390 if c.header_ == nil {
8391 c.header_ = make(http.Header)
8392 }
8393 return c.header_
8394 }
8395
8396 func (c *ProjectsLocationsMembershipsPatchCall) doRequest(alt string) (*http.Response, error) {
8397 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8398 var body io.Reader = nil
8399 body, err := googleapi.WithoutDataWrapper.JSONReader(c.membership)
8400 if err != nil {
8401 return nil, err
8402 }
8403 c.urlParams_.Set("alt", alt)
8404 c.urlParams_.Set("prettyPrint", "false")
8405 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8406 urls += "?" + c.urlParams_.Encode()
8407 req, err := http.NewRequest("PATCH", urls, body)
8408 if err != nil {
8409 return nil, err
8410 }
8411 req.Header = reqHeaders
8412 googleapi.Expand(req.URL, map[string]string{
8413 "name": c.name,
8414 })
8415 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8416 }
8417
8418
8419
8420
8421
8422
8423 func (c *ProjectsLocationsMembershipsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8424 gensupport.SetOptions(c.urlParams_, opts...)
8425 res, err := c.doRequest("json")
8426 if res != nil && res.StatusCode == http.StatusNotModified {
8427 if res.Body != nil {
8428 res.Body.Close()
8429 }
8430 return nil, gensupport.WrapError(&googleapi.Error{
8431 Code: res.StatusCode,
8432 Header: res.Header,
8433 })
8434 }
8435 if err != nil {
8436 return nil, err
8437 }
8438 defer googleapi.CloseBody(res)
8439 if err := googleapi.CheckResponse(res); err != nil {
8440 return nil, gensupport.WrapError(err)
8441 }
8442 ret := &Operation{
8443 ServerResponse: googleapi.ServerResponse{
8444 Header: res.Header,
8445 HTTPStatusCode: res.StatusCode,
8446 },
8447 }
8448 target := &ret
8449 if err := gensupport.DecodeResponse(target, res); err != nil {
8450 return nil, err
8451 }
8452 return ret, nil
8453 }
8454
8455 type ProjectsLocationsMembershipsSetIamPolicyCall struct {
8456 s *Service
8457 resource string
8458 setiampolicyrequest *SetIamPolicyRequest
8459 urlParams_ gensupport.URLParams
8460 ctx_ context.Context
8461 header_ http.Header
8462 }
8463
8464
8465
8466
8467
8468
8469
8470
8471 func (r *ProjectsLocationsMembershipsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsMembershipsSetIamPolicyCall {
8472 c := &ProjectsLocationsMembershipsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8473 c.resource = resource
8474 c.setiampolicyrequest = setiampolicyrequest
8475 return c
8476 }
8477
8478
8479
8480
8481 func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsSetIamPolicyCall {
8482 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8483 return c
8484 }
8485
8486
8487 func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMembershipsSetIamPolicyCall {
8488 c.ctx_ = ctx
8489 return c
8490 }
8491
8492
8493
8494 func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Header() http.Header {
8495 if c.header_ == nil {
8496 c.header_ = make(http.Header)
8497 }
8498 return c.header_
8499 }
8500
8501 func (c *ProjectsLocationsMembershipsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8502 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8503 var body io.Reader = nil
8504 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
8505 if err != nil {
8506 return nil, err
8507 }
8508 c.urlParams_.Set("alt", alt)
8509 c.urlParams_.Set("prettyPrint", "false")
8510 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
8511 urls += "?" + c.urlParams_.Encode()
8512 req, err := http.NewRequest("POST", urls, body)
8513 if err != nil {
8514 return nil, err
8515 }
8516 req.Header = reqHeaders
8517 googleapi.Expand(req.URL, map[string]string{
8518 "resource": c.resource,
8519 })
8520 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8521 }
8522
8523
8524
8525
8526
8527
8528 func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
8529 gensupport.SetOptions(c.urlParams_, opts...)
8530 res, err := c.doRequest("json")
8531 if res != nil && res.StatusCode == http.StatusNotModified {
8532 if res.Body != nil {
8533 res.Body.Close()
8534 }
8535 return nil, gensupport.WrapError(&googleapi.Error{
8536 Code: res.StatusCode,
8537 Header: res.Header,
8538 })
8539 }
8540 if err != nil {
8541 return nil, err
8542 }
8543 defer googleapi.CloseBody(res)
8544 if err := googleapi.CheckResponse(res); err != nil {
8545 return nil, gensupport.WrapError(err)
8546 }
8547 ret := &Policy{
8548 ServerResponse: googleapi.ServerResponse{
8549 Header: res.Header,
8550 HTTPStatusCode: res.StatusCode,
8551 },
8552 }
8553 target := &ret
8554 if err := gensupport.DecodeResponse(target, res); err != nil {
8555 return nil, err
8556 }
8557 return ret, nil
8558 }
8559
8560 type ProjectsLocationsMembershipsTestIamPermissionsCall struct {
8561 s *Service
8562 resource string
8563 testiampermissionsrequest *TestIamPermissionsRequest
8564 urlParams_ gensupport.URLParams
8565 ctx_ context.Context
8566 header_ http.Header
8567 }
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579 func (r *ProjectsLocationsMembershipsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsMembershipsTestIamPermissionsCall {
8580 c := &ProjectsLocationsMembershipsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8581 c.resource = resource
8582 c.testiampermissionsrequest = testiampermissionsrequest
8583 return c
8584 }
8585
8586
8587
8588
8589 func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsTestIamPermissionsCall {
8590 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8591 return c
8592 }
8593
8594
8595 func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsMembershipsTestIamPermissionsCall {
8596 c.ctx_ = ctx
8597 return c
8598 }
8599
8600
8601
8602 func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Header() http.Header {
8603 if c.header_ == nil {
8604 c.header_ = make(http.Header)
8605 }
8606 return c.header_
8607 }
8608
8609 func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
8610 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8611 var body io.Reader = nil
8612 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
8613 if err != nil {
8614 return nil, err
8615 }
8616 c.urlParams_.Set("alt", alt)
8617 c.urlParams_.Set("prettyPrint", "false")
8618 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
8619 urls += "?" + c.urlParams_.Encode()
8620 req, err := http.NewRequest("POST", urls, body)
8621 if err != nil {
8622 return nil, err
8623 }
8624 req.Header = reqHeaders
8625 googleapi.Expand(req.URL, map[string]string{
8626 "resource": c.resource,
8627 })
8628 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8629 }
8630
8631
8632
8633
8634
8635
8636
8637 func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
8638 gensupport.SetOptions(c.urlParams_, opts...)
8639 res, err := c.doRequest("json")
8640 if res != nil && res.StatusCode == http.StatusNotModified {
8641 if res.Body != nil {
8642 res.Body.Close()
8643 }
8644 return nil, gensupport.WrapError(&googleapi.Error{
8645 Code: res.StatusCode,
8646 Header: res.Header,
8647 })
8648 }
8649 if err != nil {
8650 return nil, err
8651 }
8652 defer googleapi.CloseBody(res)
8653 if err := googleapi.CheckResponse(res); err != nil {
8654 return nil, gensupport.WrapError(err)
8655 }
8656 ret := &TestIamPermissionsResponse{
8657 ServerResponse: googleapi.ServerResponse{
8658 Header: res.Header,
8659 HTTPStatusCode: res.StatusCode,
8660 },
8661 }
8662 target := &ret
8663 if err := gensupport.DecodeResponse(target, res); err != nil {
8664 return nil, err
8665 }
8666 return ret, nil
8667 }
8668
8669 type ProjectsLocationsMembershipsBindingsCreateCall struct {
8670 s *Service
8671 parent string
8672 membershipbinding *MembershipBinding
8673 urlParams_ gensupport.URLParams
8674 ctx_ context.Context
8675 header_ http.Header
8676 }
8677
8678
8679
8680
8681
8682
8683 func (r *ProjectsLocationsMembershipsBindingsService) Create(parent string, membershipbinding *MembershipBinding) *ProjectsLocationsMembershipsBindingsCreateCall {
8684 c := &ProjectsLocationsMembershipsBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8685 c.parent = parent
8686 c.membershipbinding = membershipbinding
8687 return c
8688 }
8689
8690
8691
8692 func (c *ProjectsLocationsMembershipsBindingsCreateCall) MembershipBindingId(membershipBindingId string) *ProjectsLocationsMembershipsBindingsCreateCall {
8693 c.urlParams_.Set("membershipBindingId", membershipBindingId)
8694 return c
8695 }
8696
8697
8698
8699
8700 func (c *ProjectsLocationsMembershipsBindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsBindingsCreateCall {
8701 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8702 return c
8703 }
8704
8705
8706 func (c *ProjectsLocationsMembershipsBindingsCreateCall) Context(ctx context.Context) *ProjectsLocationsMembershipsBindingsCreateCall {
8707 c.ctx_ = ctx
8708 return c
8709 }
8710
8711
8712
8713 func (c *ProjectsLocationsMembershipsBindingsCreateCall) Header() http.Header {
8714 if c.header_ == nil {
8715 c.header_ = make(http.Header)
8716 }
8717 return c.header_
8718 }
8719
8720 func (c *ProjectsLocationsMembershipsBindingsCreateCall) doRequest(alt string) (*http.Response, error) {
8721 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8722 var body io.Reader = nil
8723 body, err := googleapi.WithoutDataWrapper.JSONReader(c.membershipbinding)
8724 if err != nil {
8725 return nil, err
8726 }
8727 c.urlParams_.Set("alt", alt)
8728 c.urlParams_.Set("prettyPrint", "false")
8729 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/bindings")
8730 urls += "?" + c.urlParams_.Encode()
8731 req, err := http.NewRequest("POST", urls, body)
8732 if err != nil {
8733 return nil, err
8734 }
8735 req.Header = reqHeaders
8736 googleapi.Expand(req.URL, map[string]string{
8737 "parent": c.parent,
8738 })
8739 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8740 }
8741
8742
8743
8744
8745
8746
8747 func (c *ProjectsLocationsMembershipsBindingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8748 gensupport.SetOptions(c.urlParams_, opts...)
8749 res, err := c.doRequest("json")
8750 if res != nil && res.StatusCode == http.StatusNotModified {
8751 if res.Body != nil {
8752 res.Body.Close()
8753 }
8754 return nil, gensupport.WrapError(&googleapi.Error{
8755 Code: res.StatusCode,
8756 Header: res.Header,
8757 })
8758 }
8759 if err != nil {
8760 return nil, err
8761 }
8762 defer googleapi.CloseBody(res)
8763 if err := googleapi.CheckResponse(res); err != nil {
8764 return nil, gensupport.WrapError(err)
8765 }
8766 ret := &Operation{
8767 ServerResponse: googleapi.ServerResponse{
8768 Header: res.Header,
8769 HTTPStatusCode: res.StatusCode,
8770 },
8771 }
8772 target := &ret
8773 if err := gensupport.DecodeResponse(target, res); err != nil {
8774 return nil, err
8775 }
8776 return ret, nil
8777 }
8778
8779 type ProjectsLocationsMembershipsBindingsDeleteCall struct {
8780 s *Service
8781 name string
8782 urlParams_ gensupport.URLParams
8783 ctx_ context.Context
8784 header_ http.Header
8785 }
8786
8787
8788
8789
8790
8791 func (r *ProjectsLocationsMembershipsBindingsService) Delete(name string) *ProjectsLocationsMembershipsBindingsDeleteCall {
8792 c := &ProjectsLocationsMembershipsBindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8793 c.name = name
8794 return c
8795 }
8796
8797
8798
8799
8800 func (c *ProjectsLocationsMembershipsBindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsBindingsDeleteCall {
8801 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8802 return c
8803 }
8804
8805
8806 func (c *ProjectsLocationsMembershipsBindingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMembershipsBindingsDeleteCall {
8807 c.ctx_ = ctx
8808 return c
8809 }
8810
8811
8812
8813 func (c *ProjectsLocationsMembershipsBindingsDeleteCall) Header() http.Header {
8814 if c.header_ == nil {
8815 c.header_ = make(http.Header)
8816 }
8817 return c.header_
8818 }
8819
8820 func (c *ProjectsLocationsMembershipsBindingsDeleteCall) doRequest(alt string) (*http.Response, error) {
8821 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8822 var body io.Reader = nil
8823 c.urlParams_.Set("alt", alt)
8824 c.urlParams_.Set("prettyPrint", "false")
8825 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8826 urls += "?" + c.urlParams_.Encode()
8827 req, err := http.NewRequest("DELETE", urls, body)
8828 if err != nil {
8829 return nil, err
8830 }
8831 req.Header = reqHeaders
8832 googleapi.Expand(req.URL, map[string]string{
8833 "name": c.name,
8834 })
8835 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8836 }
8837
8838
8839
8840
8841
8842
8843 func (c *ProjectsLocationsMembershipsBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8844 gensupport.SetOptions(c.urlParams_, opts...)
8845 res, err := c.doRequest("json")
8846 if res != nil && res.StatusCode == http.StatusNotModified {
8847 if res.Body != nil {
8848 res.Body.Close()
8849 }
8850 return nil, gensupport.WrapError(&googleapi.Error{
8851 Code: res.StatusCode,
8852 Header: res.Header,
8853 })
8854 }
8855 if err != nil {
8856 return nil, err
8857 }
8858 defer googleapi.CloseBody(res)
8859 if err := googleapi.CheckResponse(res); err != nil {
8860 return nil, gensupport.WrapError(err)
8861 }
8862 ret := &Operation{
8863 ServerResponse: googleapi.ServerResponse{
8864 Header: res.Header,
8865 HTTPStatusCode: res.StatusCode,
8866 },
8867 }
8868 target := &ret
8869 if err := gensupport.DecodeResponse(target, res); err != nil {
8870 return nil, err
8871 }
8872 return ret, nil
8873 }
8874
8875 type ProjectsLocationsMembershipsBindingsGetCall struct {
8876 s *Service
8877 name string
8878 urlParams_ gensupport.URLParams
8879 ifNoneMatch_ string
8880 ctx_ context.Context
8881 header_ http.Header
8882 }
8883
8884
8885
8886
8887
8888 func (r *ProjectsLocationsMembershipsBindingsService) Get(name string) *ProjectsLocationsMembershipsBindingsGetCall {
8889 c := &ProjectsLocationsMembershipsBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8890 c.name = name
8891 return c
8892 }
8893
8894
8895
8896
8897 func (c *ProjectsLocationsMembershipsBindingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsBindingsGetCall {
8898 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8899 return c
8900 }
8901
8902
8903
8904
8905 func (c *ProjectsLocationsMembershipsBindingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsBindingsGetCall {
8906 c.ifNoneMatch_ = entityTag
8907 return c
8908 }
8909
8910
8911 func (c *ProjectsLocationsMembershipsBindingsGetCall) Context(ctx context.Context) *ProjectsLocationsMembershipsBindingsGetCall {
8912 c.ctx_ = ctx
8913 return c
8914 }
8915
8916
8917
8918 func (c *ProjectsLocationsMembershipsBindingsGetCall) Header() http.Header {
8919 if c.header_ == nil {
8920 c.header_ = make(http.Header)
8921 }
8922 return c.header_
8923 }
8924
8925 func (c *ProjectsLocationsMembershipsBindingsGetCall) doRequest(alt string) (*http.Response, error) {
8926 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8927 if c.ifNoneMatch_ != "" {
8928 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8929 }
8930 var body io.Reader = nil
8931 c.urlParams_.Set("alt", alt)
8932 c.urlParams_.Set("prettyPrint", "false")
8933 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8934 urls += "?" + c.urlParams_.Encode()
8935 req, err := http.NewRequest("GET", urls, body)
8936 if err != nil {
8937 return nil, err
8938 }
8939 req.Header = reqHeaders
8940 googleapi.Expand(req.URL, map[string]string{
8941 "name": c.name,
8942 })
8943 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8944 }
8945
8946
8947
8948
8949
8950
8951
8952 func (c *ProjectsLocationsMembershipsBindingsGetCall) Do(opts ...googleapi.CallOption) (*MembershipBinding, error) {
8953 gensupport.SetOptions(c.urlParams_, opts...)
8954 res, err := c.doRequest("json")
8955 if res != nil && res.StatusCode == http.StatusNotModified {
8956 if res.Body != nil {
8957 res.Body.Close()
8958 }
8959 return nil, gensupport.WrapError(&googleapi.Error{
8960 Code: res.StatusCode,
8961 Header: res.Header,
8962 })
8963 }
8964 if err != nil {
8965 return nil, err
8966 }
8967 defer googleapi.CloseBody(res)
8968 if err := googleapi.CheckResponse(res); err != nil {
8969 return nil, gensupport.WrapError(err)
8970 }
8971 ret := &MembershipBinding{
8972 ServerResponse: googleapi.ServerResponse{
8973 Header: res.Header,
8974 HTTPStatusCode: res.StatusCode,
8975 },
8976 }
8977 target := &ret
8978 if err := gensupport.DecodeResponse(target, res); err != nil {
8979 return nil, err
8980 }
8981 return ret, nil
8982 }
8983
8984 type ProjectsLocationsMembershipsBindingsListCall struct {
8985 s *Service
8986 parent string
8987 urlParams_ gensupport.URLParams
8988 ifNoneMatch_ string
8989 ctx_ context.Context
8990 header_ http.Header
8991 }
8992
8993
8994
8995
8996
8997 func (r *ProjectsLocationsMembershipsBindingsService) List(parent string) *ProjectsLocationsMembershipsBindingsListCall {
8998 c := &ProjectsLocationsMembershipsBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8999 c.parent = parent
9000 return c
9001 }
9002
9003
9004
9005
9006 func (c *ProjectsLocationsMembershipsBindingsListCall) Filter(filter string) *ProjectsLocationsMembershipsBindingsListCall {
9007 c.urlParams_.Set("filter", filter)
9008 return c
9009 }
9010
9011
9012
9013
9014 func (c *ProjectsLocationsMembershipsBindingsListCall) PageSize(pageSize int64) *ProjectsLocationsMembershipsBindingsListCall {
9015 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9016 return c
9017 }
9018
9019
9020
9021
9022 func (c *ProjectsLocationsMembershipsBindingsListCall) PageToken(pageToken string) *ProjectsLocationsMembershipsBindingsListCall {
9023 c.urlParams_.Set("pageToken", pageToken)
9024 return c
9025 }
9026
9027
9028
9029
9030 func (c *ProjectsLocationsMembershipsBindingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsBindingsListCall {
9031 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9032 return c
9033 }
9034
9035
9036
9037
9038 func (c *ProjectsLocationsMembershipsBindingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsBindingsListCall {
9039 c.ifNoneMatch_ = entityTag
9040 return c
9041 }
9042
9043
9044 func (c *ProjectsLocationsMembershipsBindingsListCall) Context(ctx context.Context) *ProjectsLocationsMembershipsBindingsListCall {
9045 c.ctx_ = ctx
9046 return c
9047 }
9048
9049
9050
9051 func (c *ProjectsLocationsMembershipsBindingsListCall) Header() http.Header {
9052 if c.header_ == nil {
9053 c.header_ = make(http.Header)
9054 }
9055 return c.header_
9056 }
9057
9058 func (c *ProjectsLocationsMembershipsBindingsListCall) doRequest(alt string) (*http.Response, error) {
9059 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9060 if c.ifNoneMatch_ != "" {
9061 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9062 }
9063 var body io.Reader = nil
9064 c.urlParams_.Set("alt", alt)
9065 c.urlParams_.Set("prettyPrint", "false")
9066 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/bindings")
9067 urls += "?" + c.urlParams_.Encode()
9068 req, err := http.NewRequest("GET", urls, body)
9069 if err != nil {
9070 return nil, err
9071 }
9072 req.Header = reqHeaders
9073 googleapi.Expand(req.URL, map[string]string{
9074 "parent": c.parent,
9075 })
9076 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9077 }
9078
9079
9080
9081
9082
9083
9084
9085 func (c *ProjectsLocationsMembershipsBindingsListCall) Do(opts ...googleapi.CallOption) (*ListMembershipBindingsResponse, error) {
9086 gensupport.SetOptions(c.urlParams_, opts...)
9087 res, err := c.doRequest("json")
9088 if res != nil && res.StatusCode == http.StatusNotModified {
9089 if res.Body != nil {
9090 res.Body.Close()
9091 }
9092 return nil, gensupport.WrapError(&googleapi.Error{
9093 Code: res.StatusCode,
9094 Header: res.Header,
9095 })
9096 }
9097 if err != nil {
9098 return nil, err
9099 }
9100 defer googleapi.CloseBody(res)
9101 if err := googleapi.CheckResponse(res); err != nil {
9102 return nil, gensupport.WrapError(err)
9103 }
9104 ret := &ListMembershipBindingsResponse{
9105 ServerResponse: googleapi.ServerResponse{
9106 Header: res.Header,
9107 HTTPStatusCode: res.StatusCode,
9108 },
9109 }
9110 target := &ret
9111 if err := gensupport.DecodeResponse(target, res); err != nil {
9112 return nil, err
9113 }
9114 return ret, nil
9115 }
9116
9117
9118
9119
9120 func (c *ProjectsLocationsMembershipsBindingsListCall) Pages(ctx context.Context, f func(*ListMembershipBindingsResponse) error) error {
9121 c.ctx_ = ctx
9122 defer c.PageToken(c.urlParams_.Get("pageToken"))
9123 for {
9124 x, err := c.Do()
9125 if err != nil {
9126 return err
9127 }
9128 if err := f(x); err != nil {
9129 return err
9130 }
9131 if x.NextPageToken == "" {
9132 return nil
9133 }
9134 c.PageToken(x.NextPageToken)
9135 }
9136 }
9137
9138 type ProjectsLocationsMembershipsBindingsPatchCall struct {
9139 s *Service
9140 name string
9141 membershipbinding *MembershipBinding
9142 urlParams_ gensupport.URLParams
9143 ctx_ context.Context
9144 header_ http.Header
9145 }
9146
9147
9148
9149
9150
9151
9152 func (r *ProjectsLocationsMembershipsBindingsService) Patch(name string, membershipbinding *MembershipBinding) *ProjectsLocationsMembershipsBindingsPatchCall {
9153 c := &ProjectsLocationsMembershipsBindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9154 c.name = name
9155 c.membershipbinding = membershipbinding
9156 return c
9157 }
9158
9159
9160
9161 func (c *ProjectsLocationsMembershipsBindingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMembershipsBindingsPatchCall {
9162 c.urlParams_.Set("updateMask", updateMask)
9163 return c
9164 }
9165
9166
9167
9168
9169 func (c *ProjectsLocationsMembershipsBindingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsBindingsPatchCall {
9170 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9171 return c
9172 }
9173
9174
9175 func (c *ProjectsLocationsMembershipsBindingsPatchCall) Context(ctx context.Context) *ProjectsLocationsMembershipsBindingsPatchCall {
9176 c.ctx_ = ctx
9177 return c
9178 }
9179
9180
9181
9182 func (c *ProjectsLocationsMembershipsBindingsPatchCall) Header() http.Header {
9183 if c.header_ == nil {
9184 c.header_ = make(http.Header)
9185 }
9186 return c.header_
9187 }
9188
9189 func (c *ProjectsLocationsMembershipsBindingsPatchCall) doRequest(alt string) (*http.Response, error) {
9190 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9191 var body io.Reader = nil
9192 body, err := googleapi.WithoutDataWrapper.JSONReader(c.membershipbinding)
9193 if err != nil {
9194 return nil, err
9195 }
9196 c.urlParams_.Set("alt", alt)
9197 c.urlParams_.Set("prettyPrint", "false")
9198 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9199 urls += "?" + c.urlParams_.Encode()
9200 req, err := http.NewRequest("PATCH", urls, body)
9201 if err != nil {
9202 return nil, err
9203 }
9204 req.Header = reqHeaders
9205 googleapi.Expand(req.URL, map[string]string{
9206 "name": c.name,
9207 })
9208 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9209 }
9210
9211
9212
9213
9214
9215
9216 func (c *ProjectsLocationsMembershipsBindingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9217 gensupport.SetOptions(c.urlParams_, opts...)
9218 res, err := c.doRequest("json")
9219 if res != nil && res.StatusCode == http.StatusNotModified {
9220 if res.Body != nil {
9221 res.Body.Close()
9222 }
9223 return nil, gensupport.WrapError(&googleapi.Error{
9224 Code: res.StatusCode,
9225 Header: res.Header,
9226 })
9227 }
9228 if err != nil {
9229 return nil, err
9230 }
9231 defer googleapi.CloseBody(res)
9232 if err := googleapi.CheckResponse(res); err != nil {
9233 return nil, gensupport.WrapError(err)
9234 }
9235 ret := &Operation{
9236 ServerResponse: googleapi.ServerResponse{
9237 Header: res.Header,
9238 HTTPStatusCode: res.StatusCode,
9239 },
9240 }
9241 target := &ret
9242 if err := gensupport.DecodeResponse(target, res); err != nil {
9243 return nil, err
9244 }
9245 return ret, nil
9246 }
9247
9248 type ProjectsLocationsOperationsCancelCall struct {
9249 s *Service
9250 name string
9251 canceloperationrequest *CancelOperationRequest
9252 urlParams_ gensupport.URLParams
9253 ctx_ context.Context
9254 header_ http.Header
9255 }
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268 func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
9269 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9270 c.name = name
9271 c.canceloperationrequest = canceloperationrequest
9272 return c
9273 }
9274
9275
9276
9277
9278 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
9279 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9280 return c
9281 }
9282
9283
9284 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
9285 c.ctx_ = ctx
9286 return c
9287 }
9288
9289
9290
9291 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
9292 if c.header_ == nil {
9293 c.header_ = make(http.Header)
9294 }
9295 return c.header_
9296 }
9297
9298 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
9299 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9300 var body io.Reader = nil
9301 body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
9302 if err != nil {
9303 return nil, err
9304 }
9305 c.urlParams_.Set("alt", alt)
9306 c.urlParams_.Set("prettyPrint", "false")
9307 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
9308 urls += "?" + c.urlParams_.Encode()
9309 req, err := http.NewRequest("POST", urls, body)
9310 if err != nil {
9311 return nil, err
9312 }
9313 req.Header = reqHeaders
9314 googleapi.Expand(req.URL, map[string]string{
9315 "name": c.name,
9316 })
9317 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9318 }
9319
9320
9321
9322
9323
9324
9325 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
9326 gensupport.SetOptions(c.urlParams_, opts...)
9327 res, err := c.doRequest("json")
9328 if res != nil && res.StatusCode == http.StatusNotModified {
9329 if res.Body != nil {
9330 res.Body.Close()
9331 }
9332 return nil, gensupport.WrapError(&googleapi.Error{
9333 Code: res.StatusCode,
9334 Header: res.Header,
9335 })
9336 }
9337 if err != nil {
9338 return nil, err
9339 }
9340 defer googleapi.CloseBody(res)
9341 if err := googleapi.CheckResponse(res); err != nil {
9342 return nil, gensupport.WrapError(err)
9343 }
9344 ret := &Empty{
9345 ServerResponse: googleapi.ServerResponse{
9346 Header: res.Header,
9347 HTTPStatusCode: res.StatusCode,
9348 },
9349 }
9350 target := &ret
9351 if err := gensupport.DecodeResponse(target, res); err != nil {
9352 return nil, err
9353 }
9354 return ret, nil
9355 }
9356
9357 type ProjectsLocationsOperationsDeleteCall struct {
9358 s *Service
9359 name string
9360 urlParams_ gensupport.URLParams
9361 ctx_ context.Context
9362 header_ http.Header
9363 }
9364
9365
9366
9367
9368
9369
9370
9371 func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
9372 c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9373 c.name = name
9374 return c
9375 }
9376
9377
9378
9379
9380 func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
9381 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9382 return c
9383 }
9384
9385
9386 func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
9387 c.ctx_ = ctx
9388 return c
9389 }
9390
9391
9392
9393 func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
9394 if c.header_ == nil {
9395 c.header_ = make(http.Header)
9396 }
9397 return c.header_
9398 }
9399
9400 func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
9401 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9402 var body io.Reader = nil
9403 c.urlParams_.Set("alt", alt)
9404 c.urlParams_.Set("prettyPrint", "false")
9405 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9406 urls += "?" + c.urlParams_.Encode()
9407 req, err := http.NewRequest("DELETE", urls, body)
9408 if err != nil {
9409 return nil, err
9410 }
9411 req.Header = reqHeaders
9412 googleapi.Expand(req.URL, map[string]string{
9413 "name": c.name,
9414 })
9415 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9416 }
9417
9418
9419
9420
9421
9422
9423 func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
9424 gensupport.SetOptions(c.urlParams_, opts...)
9425 res, err := c.doRequest("json")
9426 if res != nil && res.StatusCode == http.StatusNotModified {
9427 if res.Body != nil {
9428 res.Body.Close()
9429 }
9430 return nil, gensupport.WrapError(&googleapi.Error{
9431 Code: res.StatusCode,
9432 Header: res.Header,
9433 })
9434 }
9435 if err != nil {
9436 return nil, err
9437 }
9438 defer googleapi.CloseBody(res)
9439 if err := googleapi.CheckResponse(res); err != nil {
9440 return nil, gensupport.WrapError(err)
9441 }
9442 ret := &Empty{
9443 ServerResponse: googleapi.ServerResponse{
9444 Header: res.Header,
9445 HTTPStatusCode: res.StatusCode,
9446 },
9447 }
9448 target := &ret
9449 if err := gensupport.DecodeResponse(target, res); err != nil {
9450 return nil, err
9451 }
9452 return ret, nil
9453 }
9454
9455 type ProjectsLocationsOperationsGetCall struct {
9456 s *Service
9457 name string
9458 urlParams_ gensupport.URLParams
9459 ifNoneMatch_ string
9460 ctx_ context.Context
9461 header_ http.Header
9462 }
9463
9464
9465
9466
9467
9468
9469 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
9470 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9471 c.name = name
9472 return c
9473 }
9474
9475
9476
9477
9478 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
9479 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9480 return c
9481 }
9482
9483
9484
9485
9486 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
9487 c.ifNoneMatch_ = entityTag
9488 return c
9489 }
9490
9491
9492 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
9493 c.ctx_ = ctx
9494 return c
9495 }
9496
9497
9498
9499 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
9500 if c.header_ == nil {
9501 c.header_ = make(http.Header)
9502 }
9503 return c.header_
9504 }
9505
9506 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
9507 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9508 if c.ifNoneMatch_ != "" {
9509 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9510 }
9511 var body io.Reader = nil
9512 c.urlParams_.Set("alt", alt)
9513 c.urlParams_.Set("prettyPrint", "false")
9514 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9515 urls += "?" + c.urlParams_.Encode()
9516 req, err := http.NewRequest("GET", urls, body)
9517 if err != nil {
9518 return nil, err
9519 }
9520 req.Header = reqHeaders
9521 googleapi.Expand(req.URL, map[string]string{
9522 "name": c.name,
9523 })
9524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9525 }
9526
9527
9528
9529
9530
9531
9532 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9533 gensupport.SetOptions(c.urlParams_, opts...)
9534 res, err := c.doRequest("json")
9535 if res != nil && res.StatusCode == http.StatusNotModified {
9536 if res.Body != nil {
9537 res.Body.Close()
9538 }
9539 return nil, gensupport.WrapError(&googleapi.Error{
9540 Code: res.StatusCode,
9541 Header: res.Header,
9542 })
9543 }
9544 if err != nil {
9545 return nil, err
9546 }
9547 defer googleapi.CloseBody(res)
9548 if err := googleapi.CheckResponse(res); err != nil {
9549 return nil, gensupport.WrapError(err)
9550 }
9551 ret := &Operation{
9552 ServerResponse: googleapi.ServerResponse{
9553 Header: res.Header,
9554 HTTPStatusCode: res.StatusCode,
9555 },
9556 }
9557 target := &ret
9558 if err := gensupport.DecodeResponse(target, res); err != nil {
9559 return nil, err
9560 }
9561 return ret, nil
9562 }
9563
9564 type ProjectsLocationsOperationsListCall struct {
9565 s *Service
9566 name string
9567 urlParams_ gensupport.URLParams
9568 ifNoneMatch_ string
9569 ctx_ context.Context
9570 header_ http.Header
9571 }
9572
9573
9574
9575
9576
9577 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
9578 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9579 c.name = name
9580 return c
9581 }
9582
9583
9584 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
9585 c.urlParams_.Set("filter", filter)
9586 return c
9587 }
9588
9589
9590
9591 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
9592 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9593 return c
9594 }
9595
9596
9597
9598 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
9599 c.urlParams_.Set("pageToken", pageToken)
9600 return c
9601 }
9602
9603
9604
9605
9606 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
9607 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9608 return c
9609 }
9610
9611
9612
9613
9614 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
9615 c.ifNoneMatch_ = entityTag
9616 return c
9617 }
9618
9619
9620 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
9621 c.ctx_ = ctx
9622 return c
9623 }
9624
9625
9626
9627 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
9628 if c.header_ == nil {
9629 c.header_ = make(http.Header)
9630 }
9631 return c.header_
9632 }
9633
9634 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
9635 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9636 if c.ifNoneMatch_ != "" {
9637 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9638 }
9639 var body io.Reader = nil
9640 c.urlParams_.Set("alt", alt)
9641 c.urlParams_.Set("prettyPrint", "false")
9642 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
9643 urls += "?" + c.urlParams_.Encode()
9644 req, err := http.NewRequest("GET", urls, body)
9645 if err != nil {
9646 return nil, err
9647 }
9648 req.Header = reqHeaders
9649 googleapi.Expand(req.URL, map[string]string{
9650 "name": c.name,
9651 })
9652 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9653 }
9654
9655
9656
9657
9658
9659
9660
9661 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
9662 gensupport.SetOptions(c.urlParams_, opts...)
9663 res, err := c.doRequest("json")
9664 if res != nil && res.StatusCode == http.StatusNotModified {
9665 if res.Body != nil {
9666 res.Body.Close()
9667 }
9668 return nil, gensupport.WrapError(&googleapi.Error{
9669 Code: res.StatusCode,
9670 Header: res.Header,
9671 })
9672 }
9673 if err != nil {
9674 return nil, err
9675 }
9676 defer googleapi.CloseBody(res)
9677 if err := googleapi.CheckResponse(res); err != nil {
9678 return nil, gensupport.WrapError(err)
9679 }
9680 ret := &ListOperationsResponse{
9681 ServerResponse: googleapi.ServerResponse{
9682 Header: res.Header,
9683 HTTPStatusCode: res.StatusCode,
9684 },
9685 }
9686 target := &ret
9687 if err := gensupport.DecodeResponse(target, res); err != nil {
9688 return nil, err
9689 }
9690 return ret, nil
9691 }
9692
9693
9694
9695
9696 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
9697 c.ctx_ = ctx
9698 defer c.PageToken(c.urlParams_.Get("pageToken"))
9699 for {
9700 x, err := c.Do()
9701 if err != nil {
9702 return err
9703 }
9704 if err := f(x); err != nil {
9705 return err
9706 }
9707 if x.NextPageToken == "" {
9708 return nil
9709 }
9710 c.PageToken(x.NextPageToken)
9711 }
9712 }
9713
9714 type ProjectsLocationsScopesCreateCall struct {
9715 s *Service
9716 parent string
9717 scope *Scope
9718 urlParams_ gensupport.URLParams
9719 ctx_ context.Context
9720 header_ http.Header
9721 }
9722
9723
9724
9725
9726
9727 func (r *ProjectsLocationsScopesService) Create(parent string, scope *Scope) *ProjectsLocationsScopesCreateCall {
9728 c := &ProjectsLocationsScopesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9729 c.parent = parent
9730 c.scope = scope
9731 return c
9732 }
9733
9734
9735
9736 func (c *ProjectsLocationsScopesCreateCall) ScopeId(scopeId string) *ProjectsLocationsScopesCreateCall {
9737 c.urlParams_.Set("scopeId", scopeId)
9738 return c
9739 }
9740
9741
9742
9743
9744 func (c *ProjectsLocationsScopesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesCreateCall {
9745 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9746 return c
9747 }
9748
9749
9750 func (c *ProjectsLocationsScopesCreateCall) Context(ctx context.Context) *ProjectsLocationsScopesCreateCall {
9751 c.ctx_ = ctx
9752 return c
9753 }
9754
9755
9756
9757 func (c *ProjectsLocationsScopesCreateCall) Header() http.Header {
9758 if c.header_ == nil {
9759 c.header_ = make(http.Header)
9760 }
9761 return c.header_
9762 }
9763
9764 func (c *ProjectsLocationsScopesCreateCall) doRequest(alt string) (*http.Response, error) {
9765 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9766 var body io.Reader = nil
9767 body, err := googleapi.WithoutDataWrapper.JSONReader(c.scope)
9768 if err != nil {
9769 return nil, err
9770 }
9771 c.urlParams_.Set("alt", alt)
9772 c.urlParams_.Set("prettyPrint", "false")
9773 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/scopes")
9774 urls += "?" + c.urlParams_.Encode()
9775 req, err := http.NewRequest("POST", urls, body)
9776 if err != nil {
9777 return nil, err
9778 }
9779 req.Header = reqHeaders
9780 googleapi.Expand(req.URL, map[string]string{
9781 "parent": c.parent,
9782 })
9783 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9784 }
9785
9786
9787
9788
9789
9790
9791 func (c *ProjectsLocationsScopesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9792 gensupport.SetOptions(c.urlParams_, opts...)
9793 res, err := c.doRequest("json")
9794 if res != nil && res.StatusCode == http.StatusNotModified {
9795 if res.Body != nil {
9796 res.Body.Close()
9797 }
9798 return nil, gensupport.WrapError(&googleapi.Error{
9799 Code: res.StatusCode,
9800 Header: res.Header,
9801 })
9802 }
9803 if err != nil {
9804 return nil, err
9805 }
9806 defer googleapi.CloseBody(res)
9807 if err := googleapi.CheckResponse(res); err != nil {
9808 return nil, gensupport.WrapError(err)
9809 }
9810 ret := &Operation{
9811 ServerResponse: googleapi.ServerResponse{
9812 Header: res.Header,
9813 HTTPStatusCode: res.StatusCode,
9814 },
9815 }
9816 target := &ret
9817 if err := gensupport.DecodeResponse(target, res); err != nil {
9818 return nil, err
9819 }
9820 return ret, nil
9821 }
9822
9823 type ProjectsLocationsScopesDeleteCall struct {
9824 s *Service
9825 name string
9826 urlParams_ gensupport.URLParams
9827 ctx_ context.Context
9828 header_ http.Header
9829 }
9830
9831
9832
9833
9834
9835 func (r *ProjectsLocationsScopesService) Delete(name string) *ProjectsLocationsScopesDeleteCall {
9836 c := &ProjectsLocationsScopesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9837 c.name = name
9838 return c
9839 }
9840
9841
9842
9843
9844 func (c *ProjectsLocationsScopesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesDeleteCall {
9845 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9846 return c
9847 }
9848
9849
9850 func (c *ProjectsLocationsScopesDeleteCall) Context(ctx context.Context) *ProjectsLocationsScopesDeleteCall {
9851 c.ctx_ = ctx
9852 return c
9853 }
9854
9855
9856
9857 func (c *ProjectsLocationsScopesDeleteCall) Header() http.Header {
9858 if c.header_ == nil {
9859 c.header_ = make(http.Header)
9860 }
9861 return c.header_
9862 }
9863
9864 func (c *ProjectsLocationsScopesDeleteCall) doRequest(alt string) (*http.Response, error) {
9865 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9866 var body io.Reader = nil
9867 c.urlParams_.Set("alt", alt)
9868 c.urlParams_.Set("prettyPrint", "false")
9869 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9870 urls += "?" + c.urlParams_.Encode()
9871 req, err := http.NewRequest("DELETE", urls, body)
9872 if err != nil {
9873 return nil, err
9874 }
9875 req.Header = reqHeaders
9876 googleapi.Expand(req.URL, map[string]string{
9877 "name": c.name,
9878 })
9879 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9880 }
9881
9882
9883
9884
9885
9886
9887 func (c *ProjectsLocationsScopesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9888 gensupport.SetOptions(c.urlParams_, opts...)
9889 res, err := c.doRequest("json")
9890 if res != nil && res.StatusCode == http.StatusNotModified {
9891 if res.Body != nil {
9892 res.Body.Close()
9893 }
9894 return nil, gensupport.WrapError(&googleapi.Error{
9895 Code: res.StatusCode,
9896 Header: res.Header,
9897 })
9898 }
9899 if err != nil {
9900 return nil, err
9901 }
9902 defer googleapi.CloseBody(res)
9903 if err := googleapi.CheckResponse(res); err != nil {
9904 return nil, gensupport.WrapError(err)
9905 }
9906 ret := &Operation{
9907 ServerResponse: googleapi.ServerResponse{
9908 Header: res.Header,
9909 HTTPStatusCode: res.StatusCode,
9910 },
9911 }
9912 target := &ret
9913 if err := gensupport.DecodeResponse(target, res); err != nil {
9914 return nil, err
9915 }
9916 return ret, nil
9917 }
9918
9919 type ProjectsLocationsScopesGetCall struct {
9920 s *Service
9921 name string
9922 urlParams_ gensupport.URLParams
9923 ifNoneMatch_ string
9924 ctx_ context.Context
9925 header_ http.Header
9926 }
9927
9928
9929
9930
9931
9932 func (r *ProjectsLocationsScopesService) Get(name string) *ProjectsLocationsScopesGetCall {
9933 c := &ProjectsLocationsScopesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9934 c.name = name
9935 return c
9936 }
9937
9938
9939
9940
9941 func (c *ProjectsLocationsScopesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesGetCall {
9942 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9943 return c
9944 }
9945
9946
9947
9948
9949 func (c *ProjectsLocationsScopesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesGetCall {
9950 c.ifNoneMatch_ = entityTag
9951 return c
9952 }
9953
9954
9955 func (c *ProjectsLocationsScopesGetCall) Context(ctx context.Context) *ProjectsLocationsScopesGetCall {
9956 c.ctx_ = ctx
9957 return c
9958 }
9959
9960
9961
9962 func (c *ProjectsLocationsScopesGetCall) Header() http.Header {
9963 if c.header_ == nil {
9964 c.header_ = make(http.Header)
9965 }
9966 return c.header_
9967 }
9968
9969 func (c *ProjectsLocationsScopesGetCall) doRequest(alt string) (*http.Response, error) {
9970 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9971 if c.ifNoneMatch_ != "" {
9972 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9973 }
9974 var body io.Reader = nil
9975 c.urlParams_.Set("alt", alt)
9976 c.urlParams_.Set("prettyPrint", "false")
9977 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9978 urls += "?" + c.urlParams_.Encode()
9979 req, err := http.NewRequest("GET", urls, body)
9980 if err != nil {
9981 return nil, err
9982 }
9983 req.Header = reqHeaders
9984 googleapi.Expand(req.URL, map[string]string{
9985 "name": c.name,
9986 })
9987 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9988 }
9989
9990
9991
9992
9993
9994
9995 func (c *ProjectsLocationsScopesGetCall) Do(opts ...googleapi.CallOption) (*Scope, error) {
9996 gensupport.SetOptions(c.urlParams_, opts...)
9997 res, err := c.doRequest("json")
9998 if res != nil && res.StatusCode == http.StatusNotModified {
9999 if res.Body != nil {
10000 res.Body.Close()
10001 }
10002 return nil, gensupport.WrapError(&googleapi.Error{
10003 Code: res.StatusCode,
10004 Header: res.Header,
10005 })
10006 }
10007 if err != nil {
10008 return nil, err
10009 }
10010 defer googleapi.CloseBody(res)
10011 if err := googleapi.CheckResponse(res); err != nil {
10012 return nil, gensupport.WrapError(err)
10013 }
10014 ret := &Scope{
10015 ServerResponse: googleapi.ServerResponse{
10016 Header: res.Header,
10017 HTTPStatusCode: res.StatusCode,
10018 },
10019 }
10020 target := &ret
10021 if err := gensupport.DecodeResponse(target, res); err != nil {
10022 return nil, err
10023 }
10024 return ret, nil
10025 }
10026
10027 type ProjectsLocationsScopesGetIamPolicyCall struct {
10028 s *Service
10029 resource string
10030 urlParams_ gensupport.URLParams
10031 ifNoneMatch_ string
10032 ctx_ context.Context
10033 header_ http.Header
10034 }
10035
10036
10037
10038
10039
10040
10041
10042 func (r *ProjectsLocationsScopesService) GetIamPolicy(resource string) *ProjectsLocationsScopesGetIamPolicyCall {
10043 c := &ProjectsLocationsScopesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10044 c.resource = resource
10045 return c
10046 }
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060 func (c *ProjectsLocationsScopesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsScopesGetIamPolicyCall {
10061 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
10062 return c
10063 }
10064
10065
10066
10067
10068 func (c *ProjectsLocationsScopesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesGetIamPolicyCall {
10069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10070 return c
10071 }
10072
10073
10074
10075
10076 func (c *ProjectsLocationsScopesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesGetIamPolicyCall {
10077 c.ifNoneMatch_ = entityTag
10078 return c
10079 }
10080
10081
10082 func (c *ProjectsLocationsScopesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsScopesGetIamPolicyCall {
10083 c.ctx_ = ctx
10084 return c
10085 }
10086
10087
10088
10089 func (c *ProjectsLocationsScopesGetIamPolicyCall) Header() http.Header {
10090 if c.header_ == nil {
10091 c.header_ = make(http.Header)
10092 }
10093 return c.header_
10094 }
10095
10096 func (c *ProjectsLocationsScopesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
10097 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10098 if c.ifNoneMatch_ != "" {
10099 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10100 }
10101 var body io.Reader = nil
10102 c.urlParams_.Set("alt", alt)
10103 c.urlParams_.Set("prettyPrint", "false")
10104 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
10105 urls += "?" + c.urlParams_.Encode()
10106 req, err := http.NewRequest("GET", urls, body)
10107 if err != nil {
10108 return nil, err
10109 }
10110 req.Header = reqHeaders
10111 googleapi.Expand(req.URL, map[string]string{
10112 "resource": c.resource,
10113 })
10114 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10115 }
10116
10117
10118
10119
10120
10121
10122 func (c *ProjectsLocationsScopesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
10123 gensupport.SetOptions(c.urlParams_, opts...)
10124 res, err := c.doRequest("json")
10125 if res != nil && res.StatusCode == http.StatusNotModified {
10126 if res.Body != nil {
10127 res.Body.Close()
10128 }
10129 return nil, gensupport.WrapError(&googleapi.Error{
10130 Code: res.StatusCode,
10131 Header: res.Header,
10132 })
10133 }
10134 if err != nil {
10135 return nil, err
10136 }
10137 defer googleapi.CloseBody(res)
10138 if err := googleapi.CheckResponse(res); err != nil {
10139 return nil, gensupport.WrapError(err)
10140 }
10141 ret := &Policy{
10142 ServerResponse: googleapi.ServerResponse{
10143 Header: res.Header,
10144 HTTPStatusCode: res.StatusCode,
10145 },
10146 }
10147 target := &ret
10148 if err := gensupport.DecodeResponse(target, res); err != nil {
10149 return nil, err
10150 }
10151 return ret, nil
10152 }
10153
10154 type ProjectsLocationsScopesListCall struct {
10155 s *Service
10156 parent string
10157 urlParams_ gensupport.URLParams
10158 ifNoneMatch_ string
10159 ctx_ context.Context
10160 header_ http.Header
10161 }
10162
10163
10164
10165
10166
10167 func (r *ProjectsLocationsScopesService) List(parent string) *ProjectsLocationsScopesListCall {
10168 c := &ProjectsLocationsScopesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10169 c.parent = parent
10170 return c
10171 }
10172
10173
10174
10175
10176 func (c *ProjectsLocationsScopesListCall) PageSize(pageSize int64) *ProjectsLocationsScopesListCall {
10177 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10178 return c
10179 }
10180
10181
10182
10183
10184 func (c *ProjectsLocationsScopesListCall) PageToken(pageToken string) *ProjectsLocationsScopesListCall {
10185 c.urlParams_.Set("pageToken", pageToken)
10186 return c
10187 }
10188
10189
10190
10191
10192 func (c *ProjectsLocationsScopesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesListCall {
10193 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10194 return c
10195 }
10196
10197
10198
10199
10200 func (c *ProjectsLocationsScopesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesListCall {
10201 c.ifNoneMatch_ = entityTag
10202 return c
10203 }
10204
10205
10206 func (c *ProjectsLocationsScopesListCall) Context(ctx context.Context) *ProjectsLocationsScopesListCall {
10207 c.ctx_ = ctx
10208 return c
10209 }
10210
10211
10212
10213 func (c *ProjectsLocationsScopesListCall) Header() http.Header {
10214 if c.header_ == nil {
10215 c.header_ = make(http.Header)
10216 }
10217 return c.header_
10218 }
10219
10220 func (c *ProjectsLocationsScopesListCall) doRequest(alt string) (*http.Response, error) {
10221 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10222 if c.ifNoneMatch_ != "" {
10223 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10224 }
10225 var body io.Reader = nil
10226 c.urlParams_.Set("alt", alt)
10227 c.urlParams_.Set("prettyPrint", "false")
10228 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/scopes")
10229 urls += "?" + c.urlParams_.Encode()
10230 req, err := http.NewRequest("GET", urls, body)
10231 if err != nil {
10232 return nil, err
10233 }
10234 req.Header = reqHeaders
10235 googleapi.Expand(req.URL, map[string]string{
10236 "parent": c.parent,
10237 })
10238 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10239 }
10240
10241
10242
10243
10244
10245
10246
10247 func (c *ProjectsLocationsScopesListCall) Do(opts ...googleapi.CallOption) (*ListScopesResponse, error) {
10248 gensupport.SetOptions(c.urlParams_, opts...)
10249 res, err := c.doRequest("json")
10250 if res != nil && res.StatusCode == http.StatusNotModified {
10251 if res.Body != nil {
10252 res.Body.Close()
10253 }
10254 return nil, gensupport.WrapError(&googleapi.Error{
10255 Code: res.StatusCode,
10256 Header: res.Header,
10257 })
10258 }
10259 if err != nil {
10260 return nil, err
10261 }
10262 defer googleapi.CloseBody(res)
10263 if err := googleapi.CheckResponse(res); err != nil {
10264 return nil, gensupport.WrapError(err)
10265 }
10266 ret := &ListScopesResponse{
10267 ServerResponse: googleapi.ServerResponse{
10268 Header: res.Header,
10269 HTTPStatusCode: res.StatusCode,
10270 },
10271 }
10272 target := &ret
10273 if err := gensupport.DecodeResponse(target, res); err != nil {
10274 return nil, err
10275 }
10276 return ret, nil
10277 }
10278
10279
10280
10281
10282 func (c *ProjectsLocationsScopesListCall) Pages(ctx context.Context, f func(*ListScopesResponse) error) error {
10283 c.ctx_ = ctx
10284 defer c.PageToken(c.urlParams_.Get("pageToken"))
10285 for {
10286 x, err := c.Do()
10287 if err != nil {
10288 return err
10289 }
10290 if err := f(x); err != nil {
10291 return err
10292 }
10293 if x.NextPageToken == "" {
10294 return nil
10295 }
10296 c.PageToken(x.NextPageToken)
10297 }
10298 }
10299
10300 type ProjectsLocationsScopesListMembershipsCall struct {
10301 s *Service
10302 scopeName string
10303 urlParams_ gensupport.URLParams
10304 ifNoneMatch_ string
10305 ctx_ context.Context
10306 header_ http.Header
10307 }
10308
10309
10310
10311
10312
10313
10314
10315 func (r *ProjectsLocationsScopesService) ListMemberships(scopeName string) *ProjectsLocationsScopesListMembershipsCall {
10316 c := &ProjectsLocationsScopesListMembershipsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10317 c.scopeName = scopeName
10318 return c
10319 }
10320
10321
10322
10323
10324
10325
10326 func (c *ProjectsLocationsScopesListMembershipsCall) Filter(filter string) *ProjectsLocationsScopesListMembershipsCall {
10327 c.urlParams_.Set("filter", filter)
10328 return c
10329 }
10330
10331
10332
10333
10334
10335
10336 func (c *ProjectsLocationsScopesListMembershipsCall) PageSize(pageSize int64) *ProjectsLocationsScopesListMembershipsCall {
10337 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10338 return c
10339 }
10340
10341
10342
10343
10344 func (c *ProjectsLocationsScopesListMembershipsCall) PageToken(pageToken string) *ProjectsLocationsScopesListMembershipsCall {
10345 c.urlParams_.Set("pageToken", pageToken)
10346 return c
10347 }
10348
10349
10350
10351
10352 func (c *ProjectsLocationsScopesListMembershipsCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesListMembershipsCall {
10353 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10354 return c
10355 }
10356
10357
10358
10359
10360 func (c *ProjectsLocationsScopesListMembershipsCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesListMembershipsCall {
10361 c.ifNoneMatch_ = entityTag
10362 return c
10363 }
10364
10365
10366 func (c *ProjectsLocationsScopesListMembershipsCall) Context(ctx context.Context) *ProjectsLocationsScopesListMembershipsCall {
10367 c.ctx_ = ctx
10368 return c
10369 }
10370
10371
10372
10373 func (c *ProjectsLocationsScopesListMembershipsCall) Header() http.Header {
10374 if c.header_ == nil {
10375 c.header_ = make(http.Header)
10376 }
10377 return c.header_
10378 }
10379
10380 func (c *ProjectsLocationsScopesListMembershipsCall) doRequest(alt string) (*http.Response, error) {
10381 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10382 if c.ifNoneMatch_ != "" {
10383 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10384 }
10385 var body io.Reader = nil
10386 c.urlParams_.Set("alt", alt)
10387 c.urlParams_.Set("prettyPrint", "false")
10388 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+scopeName}:listMemberships")
10389 urls += "?" + c.urlParams_.Encode()
10390 req, err := http.NewRequest("GET", urls, body)
10391 if err != nil {
10392 return nil, err
10393 }
10394 req.Header = reqHeaders
10395 googleapi.Expand(req.URL, map[string]string{
10396 "scopeName": c.scopeName,
10397 })
10398 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10399 }
10400
10401
10402
10403
10404
10405
10406
10407 func (c *ProjectsLocationsScopesListMembershipsCall) Do(opts ...googleapi.CallOption) (*ListBoundMembershipsResponse, error) {
10408 gensupport.SetOptions(c.urlParams_, opts...)
10409 res, err := c.doRequest("json")
10410 if res != nil && res.StatusCode == http.StatusNotModified {
10411 if res.Body != nil {
10412 res.Body.Close()
10413 }
10414 return nil, gensupport.WrapError(&googleapi.Error{
10415 Code: res.StatusCode,
10416 Header: res.Header,
10417 })
10418 }
10419 if err != nil {
10420 return nil, err
10421 }
10422 defer googleapi.CloseBody(res)
10423 if err := googleapi.CheckResponse(res); err != nil {
10424 return nil, gensupport.WrapError(err)
10425 }
10426 ret := &ListBoundMembershipsResponse{
10427 ServerResponse: googleapi.ServerResponse{
10428 Header: res.Header,
10429 HTTPStatusCode: res.StatusCode,
10430 },
10431 }
10432 target := &ret
10433 if err := gensupport.DecodeResponse(target, res); err != nil {
10434 return nil, err
10435 }
10436 return ret, nil
10437 }
10438
10439
10440
10441
10442 func (c *ProjectsLocationsScopesListMembershipsCall) Pages(ctx context.Context, f func(*ListBoundMembershipsResponse) error) error {
10443 c.ctx_ = ctx
10444 defer c.PageToken(c.urlParams_.Get("pageToken"))
10445 for {
10446 x, err := c.Do()
10447 if err != nil {
10448 return err
10449 }
10450 if err := f(x); err != nil {
10451 return err
10452 }
10453 if x.NextPageToken == "" {
10454 return nil
10455 }
10456 c.PageToken(x.NextPageToken)
10457 }
10458 }
10459
10460 type ProjectsLocationsScopesListPermittedCall struct {
10461 s *Service
10462 parent string
10463 urlParams_ gensupport.URLParams
10464 ifNoneMatch_ string
10465 ctx_ context.Context
10466 header_ http.Header
10467 }
10468
10469
10470
10471
10472
10473 func (r *ProjectsLocationsScopesService) ListPermitted(parent string) *ProjectsLocationsScopesListPermittedCall {
10474 c := &ProjectsLocationsScopesListPermittedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10475 c.parent = parent
10476 return c
10477 }
10478
10479
10480
10481
10482 func (c *ProjectsLocationsScopesListPermittedCall) PageSize(pageSize int64) *ProjectsLocationsScopesListPermittedCall {
10483 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10484 return c
10485 }
10486
10487
10488
10489
10490 func (c *ProjectsLocationsScopesListPermittedCall) PageToken(pageToken string) *ProjectsLocationsScopesListPermittedCall {
10491 c.urlParams_.Set("pageToken", pageToken)
10492 return c
10493 }
10494
10495
10496
10497
10498 func (c *ProjectsLocationsScopesListPermittedCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesListPermittedCall {
10499 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10500 return c
10501 }
10502
10503
10504
10505
10506 func (c *ProjectsLocationsScopesListPermittedCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesListPermittedCall {
10507 c.ifNoneMatch_ = entityTag
10508 return c
10509 }
10510
10511
10512 func (c *ProjectsLocationsScopesListPermittedCall) Context(ctx context.Context) *ProjectsLocationsScopesListPermittedCall {
10513 c.ctx_ = ctx
10514 return c
10515 }
10516
10517
10518
10519 func (c *ProjectsLocationsScopesListPermittedCall) Header() http.Header {
10520 if c.header_ == nil {
10521 c.header_ = make(http.Header)
10522 }
10523 return c.header_
10524 }
10525
10526 func (c *ProjectsLocationsScopesListPermittedCall) doRequest(alt string) (*http.Response, error) {
10527 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10528 if c.ifNoneMatch_ != "" {
10529 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10530 }
10531 var body io.Reader = nil
10532 c.urlParams_.Set("alt", alt)
10533 c.urlParams_.Set("prettyPrint", "false")
10534 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/scopes:listPermitted")
10535 urls += "?" + c.urlParams_.Encode()
10536 req, err := http.NewRequest("GET", urls, body)
10537 if err != nil {
10538 return nil, err
10539 }
10540 req.Header = reqHeaders
10541 googleapi.Expand(req.URL, map[string]string{
10542 "parent": c.parent,
10543 })
10544 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10545 }
10546
10547
10548
10549
10550
10551
10552
10553 func (c *ProjectsLocationsScopesListPermittedCall) Do(opts ...googleapi.CallOption) (*ListPermittedScopesResponse, error) {
10554 gensupport.SetOptions(c.urlParams_, opts...)
10555 res, err := c.doRequest("json")
10556 if res != nil && res.StatusCode == http.StatusNotModified {
10557 if res.Body != nil {
10558 res.Body.Close()
10559 }
10560 return nil, gensupport.WrapError(&googleapi.Error{
10561 Code: res.StatusCode,
10562 Header: res.Header,
10563 })
10564 }
10565 if err != nil {
10566 return nil, err
10567 }
10568 defer googleapi.CloseBody(res)
10569 if err := googleapi.CheckResponse(res); err != nil {
10570 return nil, gensupport.WrapError(err)
10571 }
10572 ret := &ListPermittedScopesResponse{
10573 ServerResponse: googleapi.ServerResponse{
10574 Header: res.Header,
10575 HTTPStatusCode: res.StatusCode,
10576 },
10577 }
10578 target := &ret
10579 if err := gensupport.DecodeResponse(target, res); err != nil {
10580 return nil, err
10581 }
10582 return ret, nil
10583 }
10584
10585
10586
10587
10588 func (c *ProjectsLocationsScopesListPermittedCall) Pages(ctx context.Context, f func(*ListPermittedScopesResponse) error) error {
10589 c.ctx_ = ctx
10590 defer c.PageToken(c.urlParams_.Get("pageToken"))
10591 for {
10592 x, err := c.Do()
10593 if err != nil {
10594 return err
10595 }
10596 if err := f(x); err != nil {
10597 return err
10598 }
10599 if x.NextPageToken == "" {
10600 return nil
10601 }
10602 c.PageToken(x.NextPageToken)
10603 }
10604 }
10605
10606 type ProjectsLocationsScopesPatchCall struct {
10607 s *Service
10608 name string
10609 scope *Scope
10610 urlParams_ gensupport.URLParams
10611 ctx_ context.Context
10612 header_ http.Header
10613 }
10614
10615
10616
10617
10618
10619 func (r *ProjectsLocationsScopesService) Patch(name string, scope *Scope) *ProjectsLocationsScopesPatchCall {
10620 c := &ProjectsLocationsScopesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10621 c.name = name
10622 c.scope = scope
10623 return c
10624 }
10625
10626
10627
10628 func (c *ProjectsLocationsScopesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsScopesPatchCall {
10629 c.urlParams_.Set("updateMask", updateMask)
10630 return c
10631 }
10632
10633
10634
10635
10636 func (c *ProjectsLocationsScopesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesPatchCall {
10637 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10638 return c
10639 }
10640
10641
10642 func (c *ProjectsLocationsScopesPatchCall) Context(ctx context.Context) *ProjectsLocationsScopesPatchCall {
10643 c.ctx_ = ctx
10644 return c
10645 }
10646
10647
10648
10649 func (c *ProjectsLocationsScopesPatchCall) Header() http.Header {
10650 if c.header_ == nil {
10651 c.header_ = make(http.Header)
10652 }
10653 return c.header_
10654 }
10655
10656 func (c *ProjectsLocationsScopesPatchCall) doRequest(alt string) (*http.Response, error) {
10657 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10658 var body io.Reader = nil
10659 body, err := googleapi.WithoutDataWrapper.JSONReader(c.scope)
10660 if err != nil {
10661 return nil, err
10662 }
10663 c.urlParams_.Set("alt", alt)
10664 c.urlParams_.Set("prettyPrint", "false")
10665 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10666 urls += "?" + c.urlParams_.Encode()
10667 req, err := http.NewRequest("PATCH", urls, body)
10668 if err != nil {
10669 return nil, err
10670 }
10671 req.Header = reqHeaders
10672 googleapi.Expand(req.URL, map[string]string{
10673 "name": c.name,
10674 })
10675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10676 }
10677
10678
10679
10680
10681
10682
10683 func (c *ProjectsLocationsScopesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10684 gensupport.SetOptions(c.urlParams_, opts...)
10685 res, err := c.doRequest("json")
10686 if res != nil && res.StatusCode == http.StatusNotModified {
10687 if res.Body != nil {
10688 res.Body.Close()
10689 }
10690 return nil, gensupport.WrapError(&googleapi.Error{
10691 Code: res.StatusCode,
10692 Header: res.Header,
10693 })
10694 }
10695 if err != nil {
10696 return nil, err
10697 }
10698 defer googleapi.CloseBody(res)
10699 if err := googleapi.CheckResponse(res); err != nil {
10700 return nil, gensupport.WrapError(err)
10701 }
10702 ret := &Operation{
10703 ServerResponse: googleapi.ServerResponse{
10704 Header: res.Header,
10705 HTTPStatusCode: res.StatusCode,
10706 },
10707 }
10708 target := &ret
10709 if err := gensupport.DecodeResponse(target, res); err != nil {
10710 return nil, err
10711 }
10712 return ret, nil
10713 }
10714
10715 type ProjectsLocationsScopesSetIamPolicyCall struct {
10716 s *Service
10717 resource string
10718 setiampolicyrequest *SetIamPolicyRequest
10719 urlParams_ gensupport.URLParams
10720 ctx_ context.Context
10721 header_ http.Header
10722 }
10723
10724
10725
10726
10727
10728
10729
10730
10731 func (r *ProjectsLocationsScopesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsScopesSetIamPolicyCall {
10732 c := &ProjectsLocationsScopesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10733 c.resource = resource
10734 c.setiampolicyrequest = setiampolicyrequest
10735 return c
10736 }
10737
10738
10739
10740
10741 func (c *ProjectsLocationsScopesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesSetIamPolicyCall {
10742 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10743 return c
10744 }
10745
10746
10747 func (c *ProjectsLocationsScopesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsScopesSetIamPolicyCall {
10748 c.ctx_ = ctx
10749 return c
10750 }
10751
10752
10753
10754 func (c *ProjectsLocationsScopesSetIamPolicyCall) Header() http.Header {
10755 if c.header_ == nil {
10756 c.header_ = make(http.Header)
10757 }
10758 return c.header_
10759 }
10760
10761 func (c *ProjectsLocationsScopesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
10762 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10763 var body io.Reader = nil
10764 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
10765 if err != nil {
10766 return nil, err
10767 }
10768 c.urlParams_.Set("alt", alt)
10769 c.urlParams_.Set("prettyPrint", "false")
10770 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
10771 urls += "?" + c.urlParams_.Encode()
10772 req, err := http.NewRequest("POST", urls, body)
10773 if err != nil {
10774 return nil, err
10775 }
10776 req.Header = reqHeaders
10777 googleapi.Expand(req.URL, map[string]string{
10778 "resource": c.resource,
10779 })
10780 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10781 }
10782
10783
10784
10785
10786
10787
10788 func (c *ProjectsLocationsScopesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
10789 gensupport.SetOptions(c.urlParams_, opts...)
10790 res, err := c.doRequest("json")
10791 if res != nil && res.StatusCode == http.StatusNotModified {
10792 if res.Body != nil {
10793 res.Body.Close()
10794 }
10795 return nil, gensupport.WrapError(&googleapi.Error{
10796 Code: res.StatusCode,
10797 Header: res.Header,
10798 })
10799 }
10800 if err != nil {
10801 return nil, err
10802 }
10803 defer googleapi.CloseBody(res)
10804 if err := googleapi.CheckResponse(res); err != nil {
10805 return nil, gensupport.WrapError(err)
10806 }
10807 ret := &Policy{
10808 ServerResponse: googleapi.ServerResponse{
10809 Header: res.Header,
10810 HTTPStatusCode: res.StatusCode,
10811 },
10812 }
10813 target := &ret
10814 if err := gensupport.DecodeResponse(target, res); err != nil {
10815 return nil, err
10816 }
10817 return ret, nil
10818 }
10819
10820 type ProjectsLocationsScopesTestIamPermissionsCall struct {
10821 s *Service
10822 resource string
10823 testiampermissionsrequest *TestIamPermissionsRequest
10824 urlParams_ gensupport.URLParams
10825 ctx_ context.Context
10826 header_ http.Header
10827 }
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839 func (r *ProjectsLocationsScopesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsScopesTestIamPermissionsCall {
10840 c := &ProjectsLocationsScopesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10841 c.resource = resource
10842 c.testiampermissionsrequest = testiampermissionsrequest
10843 return c
10844 }
10845
10846
10847
10848
10849 func (c *ProjectsLocationsScopesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesTestIamPermissionsCall {
10850 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10851 return c
10852 }
10853
10854
10855 func (c *ProjectsLocationsScopesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsScopesTestIamPermissionsCall {
10856 c.ctx_ = ctx
10857 return c
10858 }
10859
10860
10861
10862 func (c *ProjectsLocationsScopesTestIamPermissionsCall) Header() http.Header {
10863 if c.header_ == nil {
10864 c.header_ = make(http.Header)
10865 }
10866 return c.header_
10867 }
10868
10869 func (c *ProjectsLocationsScopesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
10870 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10871 var body io.Reader = nil
10872 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
10873 if err != nil {
10874 return nil, err
10875 }
10876 c.urlParams_.Set("alt", alt)
10877 c.urlParams_.Set("prettyPrint", "false")
10878 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
10879 urls += "?" + c.urlParams_.Encode()
10880 req, err := http.NewRequest("POST", urls, body)
10881 if err != nil {
10882 return nil, err
10883 }
10884 req.Header = reqHeaders
10885 googleapi.Expand(req.URL, map[string]string{
10886 "resource": c.resource,
10887 })
10888 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10889 }
10890
10891
10892
10893
10894
10895
10896
10897 func (c *ProjectsLocationsScopesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
10898 gensupport.SetOptions(c.urlParams_, opts...)
10899 res, err := c.doRequest("json")
10900 if res != nil && res.StatusCode == http.StatusNotModified {
10901 if res.Body != nil {
10902 res.Body.Close()
10903 }
10904 return nil, gensupport.WrapError(&googleapi.Error{
10905 Code: res.StatusCode,
10906 Header: res.Header,
10907 })
10908 }
10909 if err != nil {
10910 return nil, err
10911 }
10912 defer googleapi.CloseBody(res)
10913 if err := googleapi.CheckResponse(res); err != nil {
10914 return nil, gensupport.WrapError(err)
10915 }
10916 ret := &TestIamPermissionsResponse{
10917 ServerResponse: googleapi.ServerResponse{
10918 Header: res.Header,
10919 HTTPStatusCode: res.StatusCode,
10920 },
10921 }
10922 target := &ret
10923 if err := gensupport.DecodeResponse(target, res); err != nil {
10924 return nil, err
10925 }
10926 return ret, nil
10927 }
10928
10929 type ProjectsLocationsScopesNamespacesCreateCall struct {
10930 s *Service
10931 parent string
10932 namespace *Namespace
10933 urlParams_ gensupport.URLParams
10934 ctx_ context.Context
10935 header_ http.Header
10936 }
10937
10938
10939
10940
10941
10942 func (r *ProjectsLocationsScopesNamespacesService) Create(parent string, namespace *Namespace) *ProjectsLocationsScopesNamespacesCreateCall {
10943 c := &ProjectsLocationsScopesNamespacesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10944 c.parent = parent
10945 c.namespace = namespace
10946 return c
10947 }
10948
10949
10950
10951
10952
10953
10954
10955 func (c *ProjectsLocationsScopesNamespacesCreateCall) ScopeNamespaceId(scopeNamespaceId string) *ProjectsLocationsScopesNamespacesCreateCall {
10956 c.urlParams_.Set("scopeNamespaceId", scopeNamespaceId)
10957 return c
10958 }
10959
10960
10961
10962
10963 func (c *ProjectsLocationsScopesNamespacesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesNamespacesCreateCall {
10964 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10965 return c
10966 }
10967
10968
10969 func (c *ProjectsLocationsScopesNamespacesCreateCall) Context(ctx context.Context) *ProjectsLocationsScopesNamespacesCreateCall {
10970 c.ctx_ = ctx
10971 return c
10972 }
10973
10974
10975
10976 func (c *ProjectsLocationsScopesNamespacesCreateCall) Header() http.Header {
10977 if c.header_ == nil {
10978 c.header_ = make(http.Header)
10979 }
10980 return c.header_
10981 }
10982
10983 func (c *ProjectsLocationsScopesNamespacesCreateCall) doRequest(alt string) (*http.Response, error) {
10984 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10985 var body io.Reader = nil
10986 body, err := googleapi.WithoutDataWrapper.JSONReader(c.namespace)
10987 if err != nil {
10988 return nil, err
10989 }
10990 c.urlParams_.Set("alt", alt)
10991 c.urlParams_.Set("prettyPrint", "false")
10992 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/namespaces")
10993 urls += "?" + c.urlParams_.Encode()
10994 req, err := http.NewRequest("POST", urls, body)
10995 if err != nil {
10996 return nil, err
10997 }
10998 req.Header = reqHeaders
10999 googleapi.Expand(req.URL, map[string]string{
11000 "parent": c.parent,
11001 })
11002 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11003 }
11004
11005
11006
11007
11008
11009
11010 func (c *ProjectsLocationsScopesNamespacesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11011 gensupport.SetOptions(c.urlParams_, opts...)
11012 res, err := c.doRequest("json")
11013 if res != nil && res.StatusCode == http.StatusNotModified {
11014 if res.Body != nil {
11015 res.Body.Close()
11016 }
11017 return nil, gensupport.WrapError(&googleapi.Error{
11018 Code: res.StatusCode,
11019 Header: res.Header,
11020 })
11021 }
11022 if err != nil {
11023 return nil, err
11024 }
11025 defer googleapi.CloseBody(res)
11026 if err := googleapi.CheckResponse(res); err != nil {
11027 return nil, gensupport.WrapError(err)
11028 }
11029 ret := &Operation{
11030 ServerResponse: googleapi.ServerResponse{
11031 Header: res.Header,
11032 HTTPStatusCode: res.StatusCode,
11033 },
11034 }
11035 target := &ret
11036 if err := gensupport.DecodeResponse(target, res); err != nil {
11037 return nil, err
11038 }
11039 return ret, nil
11040 }
11041
11042 type ProjectsLocationsScopesNamespacesDeleteCall struct {
11043 s *Service
11044 name string
11045 urlParams_ gensupport.URLParams
11046 ctx_ context.Context
11047 header_ http.Header
11048 }
11049
11050
11051
11052
11053
11054 func (r *ProjectsLocationsScopesNamespacesService) Delete(name string) *ProjectsLocationsScopesNamespacesDeleteCall {
11055 c := &ProjectsLocationsScopesNamespacesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11056 c.name = name
11057 return c
11058 }
11059
11060
11061
11062
11063 func (c *ProjectsLocationsScopesNamespacesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesNamespacesDeleteCall {
11064 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11065 return c
11066 }
11067
11068
11069 func (c *ProjectsLocationsScopesNamespacesDeleteCall) Context(ctx context.Context) *ProjectsLocationsScopesNamespacesDeleteCall {
11070 c.ctx_ = ctx
11071 return c
11072 }
11073
11074
11075
11076 func (c *ProjectsLocationsScopesNamespacesDeleteCall) Header() http.Header {
11077 if c.header_ == nil {
11078 c.header_ = make(http.Header)
11079 }
11080 return c.header_
11081 }
11082
11083 func (c *ProjectsLocationsScopesNamespacesDeleteCall) doRequest(alt string) (*http.Response, error) {
11084 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11085 var body io.Reader = nil
11086 c.urlParams_.Set("alt", alt)
11087 c.urlParams_.Set("prettyPrint", "false")
11088 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11089 urls += "?" + c.urlParams_.Encode()
11090 req, err := http.NewRequest("DELETE", urls, body)
11091 if err != nil {
11092 return nil, err
11093 }
11094 req.Header = reqHeaders
11095 googleapi.Expand(req.URL, map[string]string{
11096 "name": c.name,
11097 })
11098 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11099 }
11100
11101
11102
11103
11104
11105
11106 func (c *ProjectsLocationsScopesNamespacesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11107 gensupport.SetOptions(c.urlParams_, opts...)
11108 res, err := c.doRequest("json")
11109 if res != nil && res.StatusCode == http.StatusNotModified {
11110 if res.Body != nil {
11111 res.Body.Close()
11112 }
11113 return nil, gensupport.WrapError(&googleapi.Error{
11114 Code: res.StatusCode,
11115 Header: res.Header,
11116 })
11117 }
11118 if err != nil {
11119 return nil, err
11120 }
11121 defer googleapi.CloseBody(res)
11122 if err := googleapi.CheckResponse(res); err != nil {
11123 return nil, gensupport.WrapError(err)
11124 }
11125 ret := &Operation{
11126 ServerResponse: googleapi.ServerResponse{
11127 Header: res.Header,
11128 HTTPStatusCode: res.StatusCode,
11129 },
11130 }
11131 target := &ret
11132 if err := gensupport.DecodeResponse(target, res); err != nil {
11133 return nil, err
11134 }
11135 return ret, nil
11136 }
11137
11138 type ProjectsLocationsScopesNamespacesGetCall struct {
11139 s *Service
11140 name string
11141 urlParams_ gensupport.URLParams
11142 ifNoneMatch_ string
11143 ctx_ context.Context
11144 header_ http.Header
11145 }
11146
11147
11148
11149
11150
11151 func (r *ProjectsLocationsScopesNamespacesService) Get(name string) *ProjectsLocationsScopesNamespacesGetCall {
11152 c := &ProjectsLocationsScopesNamespacesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11153 c.name = name
11154 return c
11155 }
11156
11157
11158
11159
11160 func (c *ProjectsLocationsScopesNamespacesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesNamespacesGetCall {
11161 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11162 return c
11163 }
11164
11165
11166
11167
11168 func (c *ProjectsLocationsScopesNamespacesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesNamespacesGetCall {
11169 c.ifNoneMatch_ = entityTag
11170 return c
11171 }
11172
11173
11174 func (c *ProjectsLocationsScopesNamespacesGetCall) Context(ctx context.Context) *ProjectsLocationsScopesNamespacesGetCall {
11175 c.ctx_ = ctx
11176 return c
11177 }
11178
11179
11180
11181 func (c *ProjectsLocationsScopesNamespacesGetCall) Header() http.Header {
11182 if c.header_ == nil {
11183 c.header_ = make(http.Header)
11184 }
11185 return c.header_
11186 }
11187
11188 func (c *ProjectsLocationsScopesNamespacesGetCall) doRequest(alt string) (*http.Response, error) {
11189 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11190 if c.ifNoneMatch_ != "" {
11191 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11192 }
11193 var body io.Reader = nil
11194 c.urlParams_.Set("alt", alt)
11195 c.urlParams_.Set("prettyPrint", "false")
11196 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11197 urls += "?" + c.urlParams_.Encode()
11198 req, err := http.NewRequest("GET", urls, body)
11199 if err != nil {
11200 return nil, err
11201 }
11202 req.Header = reqHeaders
11203 googleapi.Expand(req.URL, map[string]string{
11204 "name": c.name,
11205 })
11206 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11207 }
11208
11209
11210
11211
11212
11213
11214 func (c *ProjectsLocationsScopesNamespacesGetCall) Do(opts ...googleapi.CallOption) (*Namespace, error) {
11215 gensupport.SetOptions(c.urlParams_, opts...)
11216 res, err := c.doRequest("json")
11217 if res != nil && res.StatusCode == http.StatusNotModified {
11218 if res.Body != nil {
11219 res.Body.Close()
11220 }
11221 return nil, gensupport.WrapError(&googleapi.Error{
11222 Code: res.StatusCode,
11223 Header: res.Header,
11224 })
11225 }
11226 if err != nil {
11227 return nil, err
11228 }
11229 defer googleapi.CloseBody(res)
11230 if err := googleapi.CheckResponse(res); err != nil {
11231 return nil, gensupport.WrapError(err)
11232 }
11233 ret := &Namespace{
11234 ServerResponse: googleapi.ServerResponse{
11235 Header: res.Header,
11236 HTTPStatusCode: res.StatusCode,
11237 },
11238 }
11239 target := &ret
11240 if err := gensupport.DecodeResponse(target, res); err != nil {
11241 return nil, err
11242 }
11243 return ret, nil
11244 }
11245
11246 type ProjectsLocationsScopesNamespacesListCall struct {
11247 s *Service
11248 parent string
11249 urlParams_ gensupport.URLParams
11250 ifNoneMatch_ string
11251 ctx_ context.Context
11252 header_ http.Header
11253 }
11254
11255
11256
11257
11258
11259 func (r *ProjectsLocationsScopesNamespacesService) List(parent string) *ProjectsLocationsScopesNamespacesListCall {
11260 c := &ProjectsLocationsScopesNamespacesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11261 c.parent = parent
11262 return c
11263 }
11264
11265
11266
11267
11268 func (c *ProjectsLocationsScopesNamespacesListCall) PageSize(pageSize int64) *ProjectsLocationsScopesNamespacesListCall {
11269 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11270 return c
11271 }
11272
11273
11274
11275
11276 func (c *ProjectsLocationsScopesNamespacesListCall) PageToken(pageToken string) *ProjectsLocationsScopesNamespacesListCall {
11277 c.urlParams_.Set("pageToken", pageToken)
11278 return c
11279 }
11280
11281
11282
11283
11284 func (c *ProjectsLocationsScopesNamespacesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesNamespacesListCall {
11285 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11286 return c
11287 }
11288
11289
11290
11291
11292 func (c *ProjectsLocationsScopesNamespacesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesNamespacesListCall {
11293 c.ifNoneMatch_ = entityTag
11294 return c
11295 }
11296
11297
11298 func (c *ProjectsLocationsScopesNamespacesListCall) Context(ctx context.Context) *ProjectsLocationsScopesNamespacesListCall {
11299 c.ctx_ = ctx
11300 return c
11301 }
11302
11303
11304
11305 func (c *ProjectsLocationsScopesNamespacesListCall) Header() http.Header {
11306 if c.header_ == nil {
11307 c.header_ = make(http.Header)
11308 }
11309 return c.header_
11310 }
11311
11312 func (c *ProjectsLocationsScopesNamespacesListCall) doRequest(alt string) (*http.Response, error) {
11313 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11314 if c.ifNoneMatch_ != "" {
11315 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11316 }
11317 var body io.Reader = nil
11318 c.urlParams_.Set("alt", alt)
11319 c.urlParams_.Set("prettyPrint", "false")
11320 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/namespaces")
11321 urls += "?" + c.urlParams_.Encode()
11322 req, err := http.NewRequest("GET", urls, body)
11323 if err != nil {
11324 return nil, err
11325 }
11326 req.Header = reqHeaders
11327 googleapi.Expand(req.URL, map[string]string{
11328 "parent": c.parent,
11329 })
11330 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11331 }
11332
11333
11334
11335
11336
11337
11338
11339 func (c *ProjectsLocationsScopesNamespacesListCall) Do(opts ...googleapi.CallOption) (*ListScopeNamespacesResponse, error) {
11340 gensupport.SetOptions(c.urlParams_, opts...)
11341 res, err := c.doRequest("json")
11342 if res != nil && res.StatusCode == http.StatusNotModified {
11343 if res.Body != nil {
11344 res.Body.Close()
11345 }
11346 return nil, gensupport.WrapError(&googleapi.Error{
11347 Code: res.StatusCode,
11348 Header: res.Header,
11349 })
11350 }
11351 if err != nil {
11352 return nil, err
11353 }
11354 defer googleapi.CloseBody(res)
11355 if err := googleapi.CheckResponse(res); err != nil {
11356 return nil, gensupport.WrapError(err)
11357 }
11358 ret := &ListScopeNamespacesResponse{
11359 ServerResponse: googleapi.ServerResponse{
11360 Header: res.Header,
11361 HTTPStatusCode: res.StatusCode,
11362 },
11363 }
11364 target := &ret
11365 if err := gensupport.DecodeResponse(target, res); err != nil {
11366 return nil, err
11367 }
11368 return ret, nil
11369 }
11370
11371
11372
11373
11374 func (c *ProjectsLocationsScopesNamespacesListCall) Pages(ctx context.Context, f func(*ListScopeNamespacesResponse) error) error {
11375 c.ctx_ = ctx
11376 defer c.PageToken(c.urlParams_.Get("pageToken"))
11377 for {
11378 x, err := c.Do()
11379 if err != nil {
11380 return err
11381 }
11382 if err := f(x); err != nil {
11383 return err
11384 }
11385 if x.NextPageToken == "" {
11386 return nil
11387 }
11388 c.PageToken(x.NextPageToken)
11389 }
11390 }
11391
11392 type ProjectsLocationsScopesNamespacesPatchCall struct {
11393 s *Service
11394 name string
11395 namespace *Namespace
11396 urlParams_ gensupport.URLParams
11397 ctx_ context.Context
11398 header_ http.Header
11399 }
11400
11401
11402
11403
11404
11405 func (r *ProjectsLocationsScopesNamespacesService) Patch(name string, namespace *Namespace) *ProjectsLocationsScopesNamespacesPatchCall {
11406 c := &ProjectsLocationsScopesNamespacesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11407 c.name = name
11408 c.namespace = namespace
11409 return c
11410 }
11411
11412
11413
11414 func (c *ProjectsLocationsScopesNamespacesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsScopesNamespacesPatchCall {
11415 c.urlParams_.Set("updateMask", updateMask)
11416 return c
11417 }
11418
11419
11420
11421
11422 func (c *ProjectsLocationsScopesNamespacesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesNamespacesPatchCall {
11423 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11424 return c
11425 }
11426
11427
11428 func (c *ProjectsLocationsScopesNamespacesPatchCall) Context(ctx context.Context) *ProjectsLocationsScopesNamespacesPatchCall {
11429 c.ctx_ = ctx
11430 return c
11431 }
11432
11433
11434
11435 func (c *ProjectsLocationsScopesNamespacesPatchCall) Header() http.Header {
11436 if c.header_ == nil {
11437 c.header_ = make(http.Header)
11438 }
11439 return c.header_
11440 }
11441
11442 func (c *ProjectsLocationsScopesNamespacesPatchCall) doRequest(alt string) (*http.Response, error) {
11443 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11444 var body io.Reader = nil
11445 body, err := googleapi.WithoutDataWrapper.JSONReader(c.namespace)
11446 if err != nil {
11447 return nil, err
11448 }
11449 c.urlParams_.Set("alt", alt)
11450 c.urlParams_.Set("prettyPrint", "false")
11451 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11452 urls += "?" + c.urlParams_.Encode()
11453 req, err := http.NewRequest("PATCH", urls, body)
11454 if err != nil {
11455 return nil, err
11456 }
11457 req.Header = reqHeaders
11458 googleapi.Expand(req.URL, map[string]string{
11459 "name": c.name,
11460 })
11461 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11462 }
11463
11464
11465
11466
11467
11468
11469 func (c *ProjectsLocationsScopesNamespacesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11470 gensupport.SetOptions(c.urlParams_, opts...)
11471 res, err := c.doRequest("json")
11472 if res != nil && res.StatusCode == http.StatusNotModified {
11473 if res.Body != nil {
11474 res.Body.Close()
11475 }
11476 return nil, gensupport.WrapError(&googleapi.Error{
11477 Code: res.StatusCode,
11478 Header: res.Header,
11479 })
11480 }
11481 if err != nil {
11482 return nil, err
11483 }
11484 defer googleapi.CloseBody(res)
11485 if err := googleapi.CheckResponse(res); err != nil {
11486 return nil, gensupport.WrapError(err)
11487 }
11488 ret := &Operation{
11489 ServerResponse: googleapi.ServerResponse{
11490 Header: res.Header,
11491 HTTPStatusCode: res.StatusCode,
11492 },
11493 }
11494 target := &ret
11495 if err := gensupport.DecodeResponse(target, res); err != nil {
11496 return nil, err
11497 }
11498 return ret, nil
11499 }
11500
11501 type ProjectsLocationsScopesRbacrolebindingsCreateCall struct {
11502 s *Service
11503 parent string
11504 rbacrolebinding *RBACRoleBinding
11505 urlParams_ gensupport.URLParams
11506 ctx_ context.Context
11507 header_ http.Header
11508 }
11509
11510
11511
11512
11513
11514 func (r *ProjectsLocationsScopesRbacrolebindingsService) Create(parent string, rbacrolebinding *RBACRoleBinding) *ProjectsLocationsScopesRbacrolebindingsCreateCall {
11515 c := &ProjectsLocationsScopesRbacrolebindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11516 c.parent = parent
11517 c.rbacrolebinding = rbacrolebinding
11518 return c
11519 }
11520
11521
11522
11523
11524
11525
11526
11527 func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) RbacrolebindingId(rbacrolebindingId string) *ProjectsLocationsScopesRbacrolebindingsCreateCall {
11528 c.urlParams_.Set("rbacrolebindingId", rbacrolebindingId)
11529 return c
11530 }
11531
11532
11533
11534
11535 func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesRbacrolebindingsCreateCall {
11536 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11537 return c
11538 }
11539
11540
11541 func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) Context(ctx context.Context) *ProjectsLocationsScopesRbacrolebindingsCreateCall {
11542 c.ctx_ = ctx
11543 return c
11544 }
11545
11546
11547
11548 func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) Header() http.Header {
11549 if c.header_ == nil {
11550 c.header_ = make(http.Header)
11551 }
11552 return c.header_
11553 }
11554
11555 func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) doRequest(alt string) (*http.Response, error) {
11556 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11557 var body io.Reader = nil
11558 body, err := googleapi.WithoutDataWrapper.JSONReader(c.rbacrolebinding)
11559 if err != nil {
11560 return nil, err
11561 }
11562 c.urlParams_.Set("alt", alt)
11563 c.urlParams_.Set("prettyPrint", "false")
11564 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rbacrolebindings")
11565 urls += "?" + c.urlParams_.Encode()
11566 req, err := http.NewRequest("POST", urls, body)
11567 if err != nil {
11568 return nil, err
11569 }
11570 req.Header = reqHeaders
11571 googleapi.Expand(req.URL, map[string]string{
11572 "parent": c.parent,
11573 })
11574 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11575 }
11576
11577
11578
11579
11580
11581
11582 func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11583 gensupport.SetOptions(c.urlParams_, opts...)
11584 res, err := c.doRequest("json")
11585 if res != nil && res.StatusCode == http.StatusNotModified {
11586 if res.Body != nil {
11587 res.Body.Close()
11588 }
11589 return nil, gensupport.WrapError(&googleapi.Error{
11590 Code: res.StatusCode,
11591 Header: res.Header,
11592 })
11593 }
11594 if err != nil {
11595 return nil, err
11596 }
11597 defer googleapi.CloseBody(res)
11598 if err := googleapi.CheckResponse(res); err != nil {
11599 return nil, gensupport.WrapError(err)
11600 }
11601 ret := &Operation{
11602 ServerResponse: googleapi.ServerResponse{
11603 Header: res.Header,
11604 HTTPStatusCode: res.StatusCode,
11605 },
11606 }
11607 target := &ret
11608 if err := gensupport.DecodeResponse(target, res); err != nil {
11609 return nil, err
11610 }
11611 return ret, nil
11612 }
11613
11614 type ProjectsLocationsScopesRbacrolebindingsDeleteCall struct {
11615 s *Service
11616 name string
11617 urlParams_ gensupport.URLParams
11618 ctx_ context.Context
11619 header_ http.Header
11620 }
11621
11622
11623
11624
11625
11626 func (r *ProjectsLocationsScopesRbacrolebindingsService) Delete(name string) *ProjectsLocationsScopesRbacrolebindingsDeleteCall {
11627 c := &ProjectsLocationsScopesRbacrolebindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11628 c.name = name
11629 return c
11630 }
11631
11632
11633
11634
11635 func (c *ProjectsLocationsScopesRbacrolebindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesRbacrolebindingsDeleteCall {
11636 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11637 return c
11638 }
11639
11640
11641 func (c *ProjectsLocationsScopesRbacrolebindingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsScopesRbacrolebindingsDeleteCall {
11642 c.ctx_ = ctx
11643 return c
11644 }
11645
11646
11647
11648 func (c *ProjectsLocationsScopesRbacrolebindingsDeleteCall) Header() http.Header {
11649 if c.header_ == nil {
11650 c.header_ = make(http.Header)
11651 }
11652 return c.header_
11653 }
11654
11655 func (c *ProjectsLocationsScopesRbacrolebindingsDeleteCall) doRequest(alt string) (*http.Response, error) {
11656 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11657 var body io.Reader = nil
11658 c.urlParams_.Set("alt", alt)
11659 c.urlParams_.Set("prettyPrint", "false")
11660 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11661 urls += "?" + c.urlParams_.Encode()
11662 req, err := http.NewRequest("DELETE", urls, body)
11663 if err != nil {
11664 return nil, err
11665 }
11666 req.Header = reqHeaders
11667 googleapi.Expand(req.URL, map[string]string{
11668 "name": c.name,
11669 })
11670 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11671 }
11672
11673
11674
11675
11676
11677
11678 func (c *ProjectsLocationsScopesRbacrolebindingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11679 gensupport.SetOptions(c.urlParams_, opts...)
11680 res, err := c.doRequest("json")
11681 if res != nil && res.StatusCode == http.StatusNotModified {
11682 if res.Body != nil {
11683 res.Body.Close()
11684 }
11685 return nil, gensupport.WrapError(&googleapi.Error{
11686 Code: res.StatusCode,
11687 Header: res.Header,
11688 })
11689 }
11690 if err != nil {
11691 return nil, err
11692 }
11693 defer googleapi.CloseBody(res)
11694 if err := googleapi.CheckResponse(res); err != nil {
11695 return nil, gensupport.WrapError(err)
11696 }
11697 ret := &Operation{
11698 ServerResponse: googleapi.ServerResponse{
11699 Header: res.Header,
11700 HTTPStatusCode: res.StatusCode,
11701 },
11702 }
11703 target := &ret
11704 if err := gensupport.DecodeResponse(target, res); err != nil {
11705 return nil, err
11706 }
11707 return ret, nil
11708 }
11709
11710 type ProjectsLocationsScopesRbacrolebindingsGetCall struct {
11711 s *Service
11712 name string
11713 urlParams_ gensupport.URLParams
11714 ifNoneMatch_ string
11715 ctx_ context.Context
11716 header_ http.Header
11717 }
11718
11719
11720
11721
11722
11723 func (r *ProjectsLocationsScopesRbacrolebindingsService) Get(name string) *ProjectsLocationsScopesRbacrolebindingsGetCall {
11724 c := &ProjectsLocationsScopesRbacrolebindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11725 c.name = name
11726 return c
11727 }
11728
11729
11730
11731
11732 func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesRbacrolebindingsGetCall {
11733 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11734 return c
11735 }
11736
11737
11738
11739
11740 func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesRbacrolebindingsGetCall {
11741 c.ifNoneMatch_ = entityTag
11742 return c
11743 }
11744
11745
11746 func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) Context(ctx context.Context) *ProjectsLocationsScopesRbacrolebindingsGetCall {
11747 c.ctx_ = ctx
11748 return c
11749 }
11750
11751
11752
11753 func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) Header() http.Header {
11754 if c.header_ == nil {
11755 c.header_ = make(http.Header)
11756 }
11757 return c.header_
11758 }
11759
11760 func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) doRequest(alt string) (*http.Response, error) {
11761 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11762 if c.ifNoneMatch_ != "" {
11763 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11764 }
11765 var body io.Reader = nil
11766 c.urlParams_.Set("alt", alt)
11767 c.urlParams_.Set("prettyPrint", "false")
11768 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11769 urls += "?" + c.urlParams_.Encode()
11770 req, err := http.NewRequest("GET", urls, body)
11771 if err != nil {
11772 return nil, err
11773 }
11774 req.Header = reqHeaders
11775 googleapi.Expand(req.URL, map[string]string{
11776 "name": c.name,
11777 })
11778 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11779 }
11780
11781
11782
11783
11784
11785
11786
11787 func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) Do(opts ...googleapi.CallOption) (*RBACRoleBinding, error) {
11788 gensupport.SetOptions(c.urlParams_, opts...)
11789 res, err := c.doRequest("json")
11790 if res != nil && res.StatusCode == http.StatusNotModified {
11791 if res.Body != nil {
11792 res.Body.Close()
11793 }
11794 return nil, gensupport.WrapError(&googleapi.Error{
11795 Code: res.StatusCode,
11796 Header: res.Header,
11797 })
11798 }
11799 if err != nil {
11800 return nil, err
11801 }
11802 defer googleapi.CloseBody(res)
11803 if err := googleapi.CheckResponse(res); err != nil {
11804 return nil, gensupport.WrapError(err)
11805 }
11806 ret := &RBACRoleBinding{
11807 ServerResponse: googleapi.ServerResponse{
11808 Header: res.Header,
11809 HTTPStatusCode: res.StatusCode,
11810 },
11811 }
11812 target := &ret
11813 if err := gensupport.DecodeResponse(target, res); err != nil {
11814 return nil, err
11815 }
11816 return ret, nil
11817 }
11818
11819 type ProjectsLocationsScopesRbacrolebindingsListCall struct {
11820 s *Service
11821 parent string
11822 urlParams_ gensupport.URLParams
11823 ifNoneMatch_ string
11824 ctx_ context.Context
11825 header_ http.Header
11826 }
11827
11828
11829
11830
11831
11832 func (r *ProjectsLocationsScopesRbacrolebindingsService) List(parent string) *ProjectsLocationsScopesRbacrolebindingsListCall {
11833 c := &ProjectsLocationsScopesRbacrolebindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11834 c.parent = parent
11835 return c
11836 }
11837
11838
11839
11840
11841 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) PageSize(pageSize int64) *ProjectsLocationsScopesRbacrolebindingsListCall {
11842 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11843 return c
11844 }
11845
11846
11847
11848
11849 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) PageToken(pageToken string) *ProjectsLocationsScopesRbacrolebindingsListCall {
11850 c.urlParams_.Set("pageToken", pageToken)
11851 return c
11852 }
11853
11854
11855
11856
11857 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesRbacrolebindingsListCall {
11858 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11859 return c
11860 }
11861
11862
11863
11864
11865 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsScopesRbacrolebindingsListCall {
11866 c.ifNoneMatch_ = entityTag
11867 return c
11868 }
11869
11870
11871 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) Context(ctx context.Context) *ProjectsLocationsScopesRbacrolebindingsListCall {
11872 c.ctx_ = ctx
11873 return c
11874 }
11875
11876
11877
11878 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) Header() http.Header {
11879 if c.header_ == nil {
11880 c.header_ = make(http.Header)
11881 }
11882 return c.header_
11883 }
11884
11885 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) doRequest(alt string) (*http.Response, error) {
11886 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11887 if c.ifNoneMatch_ != "" {
11888 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11889 }
11890 var body io.Reader = nil
11891 c.urlParams_.Set("alt", alt)
11892 c.urlParams_.Set("prettyPrint", "false")
11893 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rbacrolebindings")
11894 urls += "?" + c.urlParams_.Encode()
11895 req, err := http.NewRequest("GET", urls, body)
11896 if err != nil {
11897 return nil, err
11898 }
11899 req.Header = reqHeaders
11900 googleapi.Expand(req.URL, map[string]string{
11901 "parent": c.parent,
11902 })
11903 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11904 }
11905
11906
11907
11908
11909
11910
11911
11912 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) Do(opts ...googleapi.CallOption) (*ListScopeRBACRoleBindingsResponse, error) {
11913 gensupport.SetOptions(c.urlParams_, opts...)
11914 res, err := c.doRequest("json")
11915 if res != nil && res.StatusCode == http.StatusNotModified {
11916 if res.Body != nil {
11917 res.Body.Close()
11918 }
11919 return nil, gensupport.WrapError(&googleapi.Error{
11920 Code: res.StatusCode,
11921 Header: res.Header,
11922 })
11923 }
11924 if err != nil {
11925 return nil, err
11926 }
11927 defer googleapi.CloseBody(res)
11928 if err := googleapi.CheckResponse(res); err != nil {
11929 return nil, gensupport.WrapError(err)
11930 }
11931 ret := &ListScopeRBACRoleBindingsResponse{
11932 ServerResponse: googleapi.ServerResponse{
11933 Header: res.Header,
11934 HTTPStatusCode: res.StatusCode,
11935 },
11936 }
11937 target := &ret
11938 if err := gensupport.DecodeResponse(target, res); err != nil {
11939 return nil, err
11940 }
11941 return ret, nil
11942 }
11943
11944
11945
11946
11947 func (c *ProjectsLocationsScopesRbacrolebindingsListCall) Pages(ctx context.Context, f func(*ListScopeRBACRoleBindingsResponse) error) error {
11948 c.ctx_ = ctx
11949 defer c.PageToken(c.urlParams_.Get("pageToken"))
11950 for {
11951 x, err := c.Do()
11952 if err != nil {
11953 return err
11954 }
11955 if err := f(x); err != nil {
11956 return err
11957 }
11958 if x.NextPageToken == "" {
11959 return nil
11960 }
11961 c.PageToken(x.NextPageToken)
11962 }
11963 }
11964
11965 type ProjectsLocationsScopesRbacrolebindingsPatchCall struct {
11966 s *Service
11967 name string
11968 rbacrolebinding *RBACRoleBinding
11969 urlParams_ gensupport.URLParams
11970 ctx_ context.Context
11971 header_ http.Header
11972 }
11973
11974
11975
11976
11977
11978
11979
11980
11981 func (r *ProjectsLocationsScopesRbacrolebindingsService) Patch(name string, rbacrolebinding *RBACRoleBinding) *ProjectsLocationsScopesRbacrolebindingsPatchCall {
11982 c := &ProjectsLocationsScopesRbacrolebindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11983 c.name = name
11984 c.rbacrolebinding = rbacrolebinding
11985 return c
11986 }
11987
11988
11989
11990 func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsScopesRbacrolebindingsPatchCall {
11991 c.urlParams_.Set("updateMask", updateMask)
11992 return c
11993 }
11994
11995
11996
11997
11998 func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesRbacrolebindingsPatchCall {
11999 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12000 return c
12001 }
12002
12003
12004 func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) Context(ctx context.Context) *ProjectsLocationsScopesRbacrolebindingsPatchCall {
12005 c.ctx_ = ctx
12006 return c
12007 }
12008
12009
12010
12011 func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) Header() http.Header {
12012 if c.header_ == nil {
12013 c.header_ = make(http.Header)
12014 }
12015 return c.header_
12016 }
12017
12018 func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) doRequest(alt string) (*http.Response, error) {
12019 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12020 var body io.Reader = nil
12021 body, err := googleapi.WithoutDataWrapper.JSONReader(c.rbacrolebinding)
12022 if err != nil {
12023 return nil, err
12024 }
12025 c.urlParams_.Set("alt", alt)
12026 c.urlParams_.Set("prettyPrint", "false")
12027 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12028 urls += "?" + c.urlParams_.Encode()
12029 req, err := http.NewRequest("PATCH", urls, body)
12030 if err != nil {
12031 return nil, err
12032 }
12033 req.Header = reqHeaders
12034 googleapi.Expand(req.URL, map[string]string{
12035 "name": c.name,
12036 })
12037 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12038 }
12039
12040
12041
12042
12043
12044
12045 func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12046 gensupport.SetOptions(c.urlParams_, opts...)
12047 res, err := c.doRequest("json")
12048 if res != nil && res.StatusCode == http.StatusNotModified {
12049 if res.Body != nil {
12050 res.Body.Close()
12051 }
12052 return nil, gensupport.WrapError(&googleapi.Error{
12053 Code: res.StatusCode,
12054 Header: res.Header,
12055 })
12056 }
12057 if err != nil {
12058 return nil, err
12059 }
12060 defer googleapi.CloseBody(res)
12061 if err := googleapi.CheckResponse(res); err != nil {
12062 return nil, gensupport.WrapError(err)
12063 }
12064 ret := &Operation{
12065 ServerResponse: googleapi.ServerResponse{
12066 Header: res.Header,
12067 HTTPStatusCode: res.StatusCode,
12068 },
12069 }
12070 target := &ret
12071 if err := gensupport.DecodeResponse(target, res); err != nil {
12072 return nil, err
12073 }
12074 return ret, nil
12075 }
12076
View as plain text