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