1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 package appengine
57
58 import (
59 "bytes"
60 "context"
61 "encoding/json"
62 "errors"
63 "fmt"
64 "io"
65 "net/http"
66 "net/url"
67 "strconv"
68 "strings"
69
70 googleapi "google.golang.org/api/googleapi"
71 internal "google.golang.org/api/internal"
72 gensupport "google.golang.org/api/internal/gensupport"
73 option "google.golang.org/api/option"
74 internaloption "google.golang.org/api/option/internaloption"
75 htransport "google.golang.org/api/transport/http"
76 )
77
78
79
80 var _ = bytes.NewBuffer
81 var _ = strconv.Itoa
82 var _ = fmt.Sprintf
83 var _ = json.NewDecoder
84 var _ = io.Copy
85 var _ = url.Parse
86 var _ = gensupport.MarshalJSON
87 var _ = googleapi.Version
88 var _ = errors.New
89 var _ = strings.Replace
90 var _ = context.Canceled
91 var _ = internaloption.WithDefaultEndpoint
92 var _ = internal.Version
93
94 const apiId = "appengine:v1alpha"
95 const apiName = "appengine"
96 const apiVersion = "v1alpha"
97 const basePath = "https://appengine.googleapis.com/"
98 const basePathTemplate = "https://appengine.UNIVERSE_DOMAIN/"
99 const mtlsBasePath = "https://appengine.mtls.googleapis.com/"
100
101
102 const (
103
104 AppengineAdminScope = "https://www.googleapis.com/auth/appengine.admin"
105
106
107
108 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
109
110
111
112 CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"
113 )
114
115
116 func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
117 scopesOption := internaloption.WithDefaultScopes(
118 "https://www.googleapis.com/auth/appengine.admin",
119 "https://www.googleapis.com/auth/cloud-platform",
120 "https://www.googleapis.com/auth/cloud-platform.read-only",
121 )
122
123 opts = append([]option.ClientOption{scopesOption}, opts...)
124 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
125 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
126 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
127 opts = append(opts, internaloption.EnableNewAuthLibrary())
128 client, endpoint, err := htransport.NewClient(ctx, opts...)
129 if err != nil {
130 return nil, err
131 }
132 s, err := New(client)
133 if err != nil {
134 return nil, err
135 }
136 if endpoint != "" {
137 s.BasePath = endpoint
138 }
139 return s, nil
140 }
141
142
143
144
145
146
147 func New(client *http.Client) (*APIService, error) {
148 if client == nil {
149 return nil, errors.New("client is nil")
150 }
151 s := &APIService{client: client, BasePath: basePath}
152 s.Apps = NewAppsService(s)
153 s.Projects = NewProjectsService(s)
154 return s, nil
155 }
156
157 type APIService struct {
158 client *http.Client
159 BasePath string
160 UserAgent string
161
162 Apps *AppsService
163
164 Projects *ProjectsService
165 }
166
167 func (s *APIService) userAgent() string {
168 if s.UserAgent == "" {
169 return googleapi.UserAgent
170 }
171 return googleapi.UserAgent + " " + s.UserAgent
172 }
173
174 func NewAppsService(s *APIService) *AppsService {
175 rs := &AppsService{s: s}
176 rs.AuthorizedCertificates = NewAppsAuthorizedCertificatesService(s)
177 rs.AuthorizedDomains = NewAppsAuthorizedDomainsService(s)
178 rs.DomainMappings = NewAppsDomainMappingsService(s)
179 rs.Locations = NewAppsLocationsService(s)
180 rs.Operations = NewAppsOperationsService(s)
181 return rs
182 }
183
184 type AppsService struct {
185 s *APIService
186
187 AuthorizedCertificates *AppsAuthorizedCertificatesService
188
189 AuthorizedDomains *AppsAuthorizedDomainsService
190
191 DomainMappings *AppsDomainMappingsService
192
193 Locations *AppsLocationsService
194
195 Operations *AppsOperationsService
196 }
197
198 func NewAppsAuthorizedCertificatesService(s *APIService) *AppsAuthorizedCertificatesService {
199 rs := &AppsAuthorizedCertificatesService{s: s}
200 return rs
201 }
202
203 type AppsAuthorizedCertificatesService struct {
204 s *APIService
205 }
206
207 func NewAppsAuthorizedDomainsService(s *APIService) *AppsAuthorizedDomainsService {
208 rs := &AppsAuthorizedDomainsService{s: s}
209 return rs
210 }
211
212 type AppsAuthorizedDomainsService struct {
213 s *APIService
214 }
215
216 func NewAppsDomainMappingsService(s *APIService) *AppsDomainMappingsService {
217 rs := &AppsDomainMappingsService{s: s}
218 return rs
219 }
220
221 type AppsDomainMappingsService struct {
222 s *APIService
223 }
224
225 func NewAppsLocationsService(s *APIService) *AppsLocationsService {
226 rs := &AppsLocationsService{s: s}
227 return rs
228 }
229
230 type AppsLocationsService struct {
231 s *APIService
232 }
233
234 func NewAppsOperationsService(s *APIService) *AppsOperationsService {
235 rs := &AppsOperationsService{s: s}
236 return rs
237 }
238
239 type AppsOperationsService struct {
240 s *APIService
241 }
242
243 func NewProjectsService(s *APIService) *ProjectsService {
244 rs := &ProjectsService{s: s}
245 rs.Locations = NewProjectsLocationsService(s)
246 return rs
247 }
248
249 type ProjectsService struct {
250 s *APIService
251
252 Locations *ProjectsLocationsService
253 }
254
255 func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService {
256 rs := &ProjectsLocationsService{s: s}
257 rs.Applications = NewProjectsLocationsApplicationsService(s)
258 rs.Operations = NewProjectsLocationsOperationsService(s)
259 return rs
260 }
261
262 type ProjectsLocationsService struct {
263 s *APIService
264
265 Applications *ProjectsLocationsApplicationsService
266
267 Operations *ProjectsLocationsOperationsService
268 }
269
270 func NewProjectsLocationsApplicationsService(s *APIService) *ProjectsLocationsApplicationsService {
271 rs := &ProjectsLocationsApplicationsService{s: s}
272 rs.AuthorizedDomains = NewProjectsLocationsApplicationsAuthorizedDomainsService(s)
273 return rs
274 }
275
276 type ProjectsLocationsApplicationsService struct {
277 s *APIService
278
279 AuthorizedDomains *ProjectsLocationsApplicationsAuthorizedDomainsService
280 }
281
282 func NewProjectsLocationsApplicationsAuthorizedDomainsService(s *APIService) *ProjectsLocationsApplicationsAuthorizedDomainsService {
283 rs := &ProjectsLocationsApplicationsAuthorizedDomainsService{s: s}
284 return rs
285 }
286
287 type ProjectsLocationsApplicationsAuthorizedDomainsService struct {
288 s *APIService
289 }
290
291 func NewProjectsLocationsOperationsService(s *APIService) *ProjectsLocationsOperationsService {
292 rs := &ProjectsLocationsOperationsService{s: s}
293 return rs
294 }
295
296 type ProjectsLocationsOperationsService struct {
297 s *APIService
298 }
299
300
301
302
303 type AuthorizedCertificate struct {
304
305
306 CertificateRawData *CertificateRawData `json:"certificateRawData,omitempty"`
307
308
309 DisplayName string `json:"displayName,omitempty"`
310
311
312
313
314
315 DomainMappingsCount int64 `json:"domainMappingsCount,omitempty"`
316
317
318
319 DomainNames []string `json:"domainNames,omitempty"`
320
321
322
323
324 ExpireTime string `json:"expireTime,omitempty"`
325
326
327 Id string `json:"id,omitempty"`
328
329
330
331
332
333 ManagedCertificate *ManagedCertificate `json:"managedCertificate,omitempty"`
334
335
336 Name string `json:"name,omitempty"`
337
338
339
340
341
342
343
344
345 VisibleDomainMappings []string `json:"visibleDomainMappings,omitempty"`
346
347
348 googleapi.ServerResponse `json:"-"`
349
350
351
352
353
354 ForceSendFields []string `json:"-"`
355
356
357
358
359 NullFields []string `json:"-"`
360 }
361
362 func (s *AuthorizedCertificate) MarshalJSON() ([]byte, error) {
363 type NoMethod AuthorizedCertificate
364 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
365 }
366
367
368
369
370 type AuthorizedDomain struct {
371
372
373 Id string `json:"id,omitempty"`
374
375
376 Name string `json:"name,omitempty"`
377
378
379
380
381
382 ForceSendFields []string `json:"-"`
383
384
385
386
387 NullFields []string `json:"-"`
388 }
389
390 func (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
391 type NoMethod AuthorizedDomain
392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
393 }
394
395
396
397 type CertificateRawData struct {
398
399
400
401
402 PrivateKey string `json:"privateKey,omitempty"`
403
404
405
406 PublicCertificate string `json:"publicCertificate,omitempty"`
407
408
409
410
411
412 ForceSendFields []string `json:"-"`
413
414
415
416
417 NullFields []string `json:"-"`
418 }
419
420 func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
421 type NoMethod CertificateRawData
422 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
423 }
424
425
426
427
428
429 type ContainerState struct {
430 CurrentReasons *Reasons `json:"currentReasons,omitempty"`
431
432
433
434
435
436
437
438
439
440 PreviousReasons *Reasons `json:"previousReasons,omitempty"`
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465 State string `json:"state,omitempty"`
466
467
468
469
470
471 ForceSendFields []string `json:"-"`
472
473
474
475
476 NullFields []string `json:"-"`
477 }
478
479 func (s *ContainerState) MarshalJSON() ([]byte, error) {
480 type NoMethod ContainerState
481 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
482 }
483
484
485
486 type CreateVersionMetadataV1 struct {
487
488
489 CloudBuildId string `json:"cloudBuildId,omitempty"`
490
491
492
493
494
495 ForceSendFields []string `json:"-"`
496
497
498
499
500 NullFields []string `json:"-"`
501 }
502
503 func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
504 type NoMethod CreateVersionMetadataV1
505 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
506 }
507
508
509
510
511 type CreateVersionMetadataV1Alpha struct {
512
513
514 CloudBuildId string `json:"cloudBuildId,omitempty"`
515
516
517
518
519
520 ForceSendFields []string `json:"-"`
521
522
523
524
525 NullFields []string `json:"-"`
526 }
527
528 func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) {
529 type NoMethod CreateVersionMetadataV1Alpha
530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
531 }
532
533
534
535
536 type CreateVersionMetadataV1Beta struct {
537
538
539 CloudBuildId string `json:"cloudBuildId,omitempty"`
540
541
542
543
544
545 ForceSendFields []string `json:"-"`
546
547
548
549
550 NullFields []string `json:"-"`
551 }
552
553 func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
554 type NoMethod CreateVersionMetadataV1Beta
555 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
556 }
557
558
559 type DomainMapping struct {
560
561
562 Id string `json:"id,omitempty"`
563
564
565 Name string `json:"name,omitempty"`
566
567
568
569 ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"`
570
571
572 SslSettings *SslSettings `json:"sslSettings,omitempty"`
573
574
575 googleapi.ServerResponse `json:"-"`
576
577
578
579
580
581 ForceSendFields []string `json:"-"`
582
583
584
585
586 NullFields []string `json:"-"`
587 }
588
589 func (s *DomainMapping) MarshalJSON() ([]byte, error) {
590 type NoMethod DomainMapping
591 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
592 }
593
594
595
596
597
598 type Empty struct {
599
600 googleapi.ServerResponse `json:"-"`
601 }
602
603
604
605 type GoogleAppengineV1betaLocationMetadata struct {
606
607
608 FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
609
610
611
612 SearchApiAvailable bool `json:"searchApiAvailable,omitempty"`
613
614
615 StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
616
617
618
619
620
621 ForceSendFields []string `json:"-"`
622
623
624
625
626 NullFields []string `json:"-"`
627 }
628
629 func (s *GoogleAppengineV1betaLocationMetadata) MarshalJSON() ([]byte, error) {
630 type NoMethod GoogleAppengineV1betaLocationMetadata
631 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
632 }
633
634
635
636 type ListAuthorizedCertificatesResponse struct {
637
638 Certificates []*AuthorizedCertificate `json:"certificates,omitempty"`
639
640 NextPageToken string `json:"nextPageToken,omitempty"`
641
642
643 googleapi.ServerResponse `json:"-"`
644
645
646
647
648
649 ForceSendFields []string `json:"-"`
650
651
652
653
654 NullFields []string `json:"-"`
655 }
656
657 func (s *ListAuthorizedCertificatesResponse) MarshalJSON() ([]byte, error) {
658 type NoMethod ListAuthorizedCertificatesResponse
659 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
660 }
661
662
663
664 type ListAuthorizedDomainsResponse struct {
665
666 Domains []*AuthorizedDomain `json:"domains,omitempty"`
667
668 NextPageToken string `json:"nextPageToken,omitempty"`
669
670
671 googleapi.ServerResponse `json:"-"`
672
673
674
675
676
677 ForceSendFields []string `json:"-"`
678
679
680
681
682 NullFields []string `json:"-"`
683 }
684
685 func (s *ListAuthorizedDomainsResponse) MarshalJSON() ([]byte, error) {
686 type NoMethod ListAuthorizedDomainsResponse
687 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
688 }
689
690
691
692 type ListDomainMappingsResponse struct {
693
694 DomainMappings []*DomainMapping `json:"domainMappings,omitempty"`
695
696 NextPageToken string `json:"nextPageToken,omitempty"`
697
698
699 googleapi.ServerResponse `json:"-"`
700
701
702
703
704
705 ForceSendFields []string `json:"-"`
706
707
708
709
710 NullFields []string `json:"-"`
711 }
712
713 func (s *ListDomainMappingsResponse) MarshalJSON() ([]byte, error) {
714 type NoMethod ListDomainMappingsResponse
715 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
716 }
717
718
719 type ListLocationsResponse struct {
720
721
722 Locations []*Location `json:"locations,omitempty"`
723
724 NextPageToken string `json:"nextPageToken,omitempty"`
725
726
727 googleapi.ServerResponse `json:"-"`
728
729
730
731
732
733 ForceSendFields []string `json:"-"`
734
735
736
737
738 NullFields []string `json:"-"`
739 }
740
741 func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
742 type NoMethod ListLocationsResponse
743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
744 }
745
746
747 type ListOperationsResponse struct {
748
749 NextPageToken string `json:"nextPageToken,omitempty"`
750
751
752 Operations []*Operation `json:"operations,omitempty"`
753
754
755 googleapi.ServerResponse `json:"-"`
756
757
758
759
760
761 ForceSendFields []string `json:"-"`
762
763
764
765
766 NullFields []string `json:"-"`
767 }
768
769 func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
770 type NoMethod ListOperationsResponse
771 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
772 }
773
774
775 type Location struct {
776
777
778 DisplayName string `json:"displayName,omitempty"`
779
780
781 Labels map[string]string `json:"labels,omitempty"`
782
783 LocationId string `json:"locationId,omitempty"`
784
785
786 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
787
788
789 Name string `json:"name,omitempty"`
790
791
792 googleapi.ServerResponse `json:"-"`
793
794
795
796
797
798 ForceSendFields []string `json:"-"`
799
800
801
802
803 NullFields []string `json:"-"`
804 }
805
806 func (s *Location) MarshalJSON() ([]byte, error) {
807 type NoMethod Location
808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
809 }
810
811
812 type LocationMetadata struct {
813
814
815 FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
816
817
818
819 SearchApiAvailable bool `json:"searchApiAvailable,omitempty"`
820
821
822 StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
823
824
825
826
827
828 ForceSendFields []string `json:"-"`
829
830
831
832
833 NullFields []string `json:"-"`
834 }
835
836 func (s *LocationMetadata) MarshalJSON() ([]byte, error) {
837 type NoMethod LocationMetadata
838 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
839 }
840
841
842 type ManagedCertificate struct {
843
844
845
846
847 LastRenewalTime string `json:"lastRenewalTime,omitempty"`
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879 Status string `json:"status,omitempty"`
880
881
882
883
884
885 ForceSendFields []string `json:"-"`
886
887
888
889
890 NullFields []string `json:"-"`
891 }
892
893 func (s *ManagedCertificate) MarshalJSON() ([]byte, error) {
894 type NoMethod ManagedCertificate
895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
896 }
897
898
899
900 type Operation struct {
901
902
903 Done bool `json:"done,omitempty"`
904
905 Error *Status `json:"error,omitempty"`
906
907
908
909
910 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
911
912
913
914 Name string `json:"name,omitempty"`
915
916
917
918
919
920
921
922 Response googleapi.RawMessage `json:"response,omitempty"`
923
924
925 googleapi.ServerResponse `json:"-"`
926
927
928
929
930
931 ForceSendFields []string `json:"-"`
932
933
934
935
936 NullFields []string `json:"-"`
937 }
938
939 func (s *Operation) MarshalJSON() ([]byte, error) {
940 type NoMethod Operation
941 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
942 }
943
944
945 type OperationMetadataV1 struct {
946 CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
947
948 EndTime string `json:"endTime,omitempty"`
949
950
951 EphemeralMessage string `json:"ephemeralMessage,omitempty"`
952
953 InsertTime string `json:"insertTime,omitempty"`
954
955
956 Method string `json:"method,omitempty"`
957
958
959 Target string `json:"target,omitempty"`
960
961 User string `json:"user,omitempty"`
962
963 Warning []string `json:"warning,omitempty"`
964
965
966
967
968
969 ForceSendFields []string `json:"-"`
970
971
972
973
974 NullFields []string `json:"-"`
975 }
976
977 func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) {
978 type NoMethod OperationMetadataV1
979 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
980 }
981
982
983
984 type OperationMetadataV1Alpha struct {
985 CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"`
986
987 EndTime string `json:"endTime,omitempty"`
988
989
990 EphemeralMessage string `json:"ephemeralMessage,omitempty"`
991
992 InsertTime string `json:"insertTime,omitempty"`
993
994
995 Method string `json:"method,omitempty"`
996
997
998 Target string `json:"target,omitempty"`
999
1000 User string `json:"user,omitempty"`
1001
1002 Warning []string `json:"warning,omitempty"`
1003
1004
1005
1006
1007
1008 ForceSendFields []string `json:"-"`
1009
1010
1011
1012
1013 NullFields []string `json:"-"`
1014 }
1015
1016 func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) {
1017 type NoMethod OperationMetadataV1Alpha
1018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1019 }
1020
1021
1022
1023 type OperationMetadataV1Beta struct {
1024 CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"`
1025
1026 EndTime string `json:"endTime,omitempty"`
1027
1028
1029 EphemeralMessage string `json:"ephemeralMessage,omitempty"`
1030
1031 InsertTime string `json:"insertTime,omitempty"`
1032
1033
1034 Method string `json:"method,omitempty"`
1035
1036
1037 Target string `json:"target,omitempty"`
1038
1039 User string `json:"user,omitempty"`
1040
1041 Warning []string `json:"warning,omitempty"`
1042
1043
1044
1045
1046
1047 ForceSendFields []string `json:"-"`
1048
1049
1050
1051
1052 NullFields []string `json:"-"`
1053 }
1054
1055 func (s *OperationMetadataV1Beta) MarshalJSON() ([]byte, error) {
1056 type NoMethod OperationMetadataV1Beta
1057 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1058 }
1059
1060
1061 type ProjectEvent struct {
1062
1063
1064 EventId string `json:"eventId,omitempty"`
1065
1066
1067
1068
1069
1070
1071
1072
1073 Phase string `json:"phase,omitempty"`
1074
1075 ProjectMetadata *ProjectsMetadata `json:"projectMetadata,omitempty"`
1076
1077 State *ContainerState `json:"state,omitempty"`
1078
1079
1080
1081
1082
1083 ForceSendFields []string `json:"-"`
1084
1085
1086
1087
1088 NullFields []string `json:"-"`
1089 }
1090
1091 func (s *ProjectEvent) MarshalJSON() ([]byte, error) {
1092 type NoMethod ProjectEvent
1093 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1094 }
1095
1096
1097
1098 type ProjectsMetadata struct {
1099
1100 ConsumerProjectId string `json:"consumerProjectId,omitempty"`
1101
1102 ConsumerProjectNumber int64 `json:"consumerProjectNumber,omitempty,string"`
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128 ConsumerProjectState string `json:"consumerProjectState,omitempty"`
1129
1130
1131 P4ServiceAccount string `json:"p4ServiceAccount,omitempty"`
1132
1133 ProducerProjectId string `json:"producerProjectId,omitempty"`
1134
1135 ProducerProjectNumber int64 `json:"producerProjectNumber,omitempty,string"`
1136
1137 TenantProjectId string `json:"tenantProjectId,omitempty"`
1138
1139 TenantProjectNumber int64 `json:"tenantProjectNumber,omitempty,string"`
1140
1141
1142
1143
1144
1145 ForceSendFields []string `json:"-"`
1146
1147
1148
1149
1150 NullFields []string `json:"-"`
1151 }
1152
1153 func (s *ProjectsMetadata) MarshalJSON() ([]byte, error) {
1154 type NoMethod ProjectsMetadata
1155 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1156 }
1157
1158
1159
1160
1161
1162
1163 type Reasons struct {
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175 Abuse string `json:"abuse,omitempty"`
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194 Billing string `json:"billing,omitempty"`
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214 DataGovernance string `json:"dataGovernance,omitempty"`
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230 ServiceActivation string `json:"serviceActivation,omitempty"`
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252 ServiceManagement string `json:"serviceManagement,omitempty"`
1253
1254
1255
1256
1257
1258 ForceSendFields []string `json:"-"`
1259
1260
1261
1262
1263 NullFields []string `json:"-"`
1264 }
1265
1266 func (s *Reasons) MarshalJSON() ([]byte, error) {
1267 type NoMethod Reasons
1268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1269 }
1270
1271
1272 type ResourceRecord struct {
1273
1274
1275 Name string `json:"name,omitempty"`
1276
1277
1278 Rrdata string `json:"rrdata,omitempty"`
1279
1280
1281
1282
1283
1284
1285 Type string `json:"type,omitempty"`
1286
1287
1288
1289
1290
1291 ForceSendFields []string `json:"-"`
1292
1293
1294
1295
1296 NullFields []string `json:"-"`
1297 }
1298
1299 func (s *ResourceRecord) MarshalJSON() ([]byte, error) {
1300 type NoMethod ResourceRecord
1301 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1302 }
1303
1304
1305 type SslSettings struct {
1306
1307
1308
1309
1310
1311
1312
1313 CertificateId string `json:"certificateId,omitempty"`
1314
1315
1316
1317
1318 IsManagedCertificate bool `json:"isManagedCertificate,omitempty"`
1319
1320
1321
1322
1323
1324 ForceSendFields []string `json:"-"`
1325
1326
1327
1328
1329 NullFields []string `json:"-"`
1330 }
1331
1332 func (s *SslSettings) MarshalJSON() ([]byte, error) {
1333 type NoMethod SslSettings
1334 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1335 }
1336
1337
1338
1339
1340
1341
1342
1343 type Status struct {
1344
1345 Code int64 `json:"code,omitempty"`
1346
1347
1348 Details []googleapi.RawMessage `json:"details,omitempty"`
1349
1350
1351
1352 Message string `json:"message,omitempty"`
1353
1354
1355
1356
1357
1358 ForceSendFields []string `json:"-"`
1359
1360
1361
1362
1363 NullFields []string `json:"-"`
1364 }
1365
1366 func (s *Status) MarshalJSON() ([]byte, error) {
1367 type NoMethod Status
1368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1369 }
1370
1371 type AppsAuthorizedCertificatesCreateCall struct {
1372 s *APIService
1373 appsId string
1374 authorizedcertificate *AuthorizedCertificate
1375 urlParams_ gensupport.URLParams
1376 ctx_ context.Context
1377 header_ http.Header
1378 }
1379
1380
1381
1382
1383
1384 func (r *AppsAuthorizedCertificatesService) Create(appsId string, authorizedcertificate *AuthorizedCertificate) *AppsAuthorizedCertificatesCreateCall {
1385 c := &AppsAuthorizedCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1386 c.appsId = appsId
1387 c.authorizedcertificate = authorizedcertificate
1388 return c
1389 }
1390
1391
1392
1393
1394 func (c *AppsAuthorizedCertificatesCreateCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesCreateCall {
1395 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1396 return c
1397 }
1398
1399
1400 func (c *AppsAuthorizedCertificatesCreateCall) Context(ctx context.Context) *AppsAuthorizedCertificatesCreateCall {
1401 c.ctx_ = ctx
1402 return c
1403 }
1404
1405
1406
1407 func (c *AppsAuthorizedCertificatesCreateCall) Header() http.Header {
1408 if c.header_ == nil {
1409 c.header_ = make(http.Header)
1410 }
1411 return c.header_
1412 }
1413
1414 func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Response, error) {
1415 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
1416 var body io.Reader = nil
1417 body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizedcertificate)
1418 if err != nil {
1419 return nil, err
1420 }
1421 c.urlParams_.Set("alt", alt)
1422 c.urlParams_.Set("prettyPrint", "false")
1423 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates")
1424 urls += "?" + c.urlParams_.Encode()
1425 req, err := http.NewRequest("POST", urls, body)
1426 if err != nil {
1427 return nil, err
1428 }
1429 req.Header = reqHeaders
1430 googleapi.Expand(req.URL, map[string]string{
1431 "appsId": c.appsId,
1432 })
1433 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1434 }
1435
1436
1437
1438
1439
1440
1441
1442 func (c *AppsAuthorizedCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
1443 gensupport.SetOptions(c.urlParams_, opts...)
1444 res, err := c.doRequest("json")
1445 if res != nil && res.StatusCode == http.StatusNotModified {
1446 if res.Body != nil {
1447 res.Body.Close()
1448 }
1449 return nil, gensupport.WrapError(&googleapi.Error{
1450 Code: res.StatusCode,
1451 Header: res.Header,
1452 })
1453 }
1454 if err != nil {
1455 return nil, err
1456 }
1457 defer googleapi.CloseBody(res)
1458 if err := googleapi.CheckResponse(res); err != nil {
1459 return nil, gensupport.WrapError(err)
1460 }
1461 ret := &AuthorizedCertificate{
1462 ServerResponse: googleapi.ServerResponse{
1463 Header: res.Header,
1464 HTTPStatusCode: res.StatusCode,
1465 },
1466 }
1467 target := &ret
1468 if err := gensupport.DecodeResponse(target, res); err != nil {
1469 return nil, err
1470 }
1471 return ret, nil
1472 }
1473
1474 type AppsAuthorizedCertificatesDeleteCall struct {
1475 s *APIService
1476 appsId string
1477 authorizedCertificatesId string
1478 urlParams_ gensupport.URLParams
1479 ctx_ context.Context
1480 header_ http.Header
1481 }
1482
1483
1484
1485
1486
1487
1488 func (r *AppsAuthorizedCertificatesService) Delete(appsId string, authorizedCertificatesId string) *AppsAuthorizedCertificatesDeleteCall {
1489 c := &AppsAuthorizedCertificatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1490 c.appsId = appsId
1491 c.authorizedCertificatesId = authorizedCertificatesId
1492 return c
1493 }
1494
1495
1496
1497
1498 func (c *AppsAuthorizedCertificatesDeleteCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesDeleteCall {
1499 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1500 return c
1501 }
1502
1503
1504 func (c *AppsAuthorizedCertificatesDeleteCall) Context(ctx context.Context) *AppsAuthorizedCertificatesDeleteCall {
1505 c.ctx_ = ctx
1506 return c
1507 }
1508
1509
1510
1511 func (c *AppsAuthorizedCertificatesDeleteCall) Header() http.Header {
1512 if c.header_ == nil {
1513 c.header_ = make(http.Header)
1514 }
1515 return c.header_
1516 }
1517
1518 func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) {
1519 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1520 var body io.Reader = nil
1521 c.urlParams_.Set("alt", alt)
1522 c.urlParams_.Set("prettyPrint", "false")
1523 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
1524 urls += "?" + c.urlParams_.Encode()
1525 req, err := http.NewRequest("DELETE", urls, body)
1526 if err != nil {
1527 return nil, err
1528 }
1529 req.Header = reqHeaders
1530 googleapi.Expand(req.URL, map[string]string{
1531 "appsId": c.appsId,
1532 "authorizedCertificatesId": c.authorizedCertificatesId,
1533 })
1534 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1535 }
1536
1537
1538
1539
1540
1541
1542 func (c *AppsAuthorizedCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
1543 gensupport.SetOptions(c.urlParams_, opts...)
1544 res, err := c.doRequest("json")
1545 if res != nil && res.StatusCode == http.StatusNotModified {
1546 if res.Body != nil {
1547 res.Body.Close()
1548 }
1549 return nil, gensupport.WrapError(&googleapi.Error{
1550 Code: res.StatusCode,
1551 Header: res.Header,
1552 })
1553 }
1554 if err != nil {
1555 return nil, err
1556 }
1557 defer googleapi.CloseBody(res)
1558 if err := googleapi.CheckResponse(res); err != nil {
1559 return nil, gensupport.WrapError(err)
1560 }
1561 ret := &Empty{
1562 ServerResponse: googleapi.ServerResponse{
1563 Header: res.Header,
1564 HTTPStatusCode: res.StatusCode,
1565 },
1566 }
1567 target := &ret
1568 if err := gensupport.DecodeResponse(target, res); err != nil {
1569 return nil, err
1570 }
1571 return ret, nil
1572 }
1573
1574 type AppsAuthorizedCertificatesGetCall struct {
1575 s *APIService
1576 appsId string
1577 authorizedCertificatesId string
1578 urlParams_ gensupport.URLParams
1579 ifNoneMatch_ string
1580 ctx_ context.Context
1581 header_ http.Header
1582 }
1583
1584
1585
1586
1587
1588
1589 func (r *AppsAuthorizedCertificatesService) Get(appsId string, authorizedCertificatesId string) *AppsAuthorizedCertificatesGetCall {
1590 c := &AppsAuthorizedCertificatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1591 c.appsId = appsId
1592 c.authorizedCertificatesId = authorizedCertificatesId
1593 return c
1594 }
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608 func (c *AppsAuthorizedCertificatesGetCall) View(view string) *AppsAuthorizedCertificatesGetCall {
1609 c.urlParams_.Set("view", view)
1610 return c
1611 }
1612
1613
1614
1615
1616 func (c *AppsAuthorizedCertificatesGetCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesGetCall {
1617 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1618 return c
1619 }
1620
1621
1622
1623
1624 func (c *AppsAuthorizedCertificatesGetCall) IfNoneMatch(entityTag string) *AppsAuthorizedCertificatesGetCall {
1625 c.ifNoneMatch_ = entityTag
1626 return c
1627 }
1628
1629
1630 func (c *AppsAuthorizedCertificatesGetCall) Context(ctx context.Context) *AppsAuthorizedCertificatesGetCall {
1631 c.ctx_ = ctx
1632 return c
1633 }
1634
1635
1636
1637 func (c *AppsAuthorizedCertificatesGetCall) Header() http.Header {
1638 if c.header_ == nil {
1639 c.header_ = make(http.Header)
1640 }
1641 return c.header_
1642 }
1643
1644 func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Response, error) {
1645 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1646 if c.ifNoneMatch_ != "" {
1647 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1648 }
1649 var body io.Reader = nil
1650 c.urlParams_.Set("alt", alt)
1651 c.urlParams_.Set("prettyPrint", "false")
1652 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
1653 urls += "?" + c.urlParams_.Encode()
1654 req, err := http.NewRequest("GET", urls, body)
1655 if err != nil {
1656 return nil, err
1657 }
1658 req.Header = reqHeaders
1659 googleapi.Expand(req.URL, map[string]string{
1660 "appsId": c.appsId,
1661 "authorizedCertificatesId": c.authorizedCertificatesId,
1662 })
1663 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1664 }
1665
1666
1667
1668
1669
1670
1671
1672 func (c *AppsAuthorizedCertificatesGetCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
1673 gensupport.SetOptions(c.urlParams_, opts...)
1674 res, err := c.doRequest("json")
1675 if res != nil && res.StatusCode == http.StatusNotModified {
1676 if res.Body != nil {
1677 res.Body.Close()
1678 }
1679 return nil, gensupport.WrapError(&googleapi.Error{
1680 Code: res.StatusCode,
1681 Header: res.Header,
1682 })
1683 }
1684 if err != nil {
1685 return nil, err
1686 }
1687 defer googleapi.CloseBody(res)
1688 if err := googleapi.CheckResponse(res); err != nil {
1689 return nil, gensupport.WrapError(err)
1690 }
1691 ret := &AuthorizedCertificate{
1692 ServerResponse: googleapi.ServerResponse{
1693 Header: res.Header,
1694 HTTPStatusCode: res.StatusCode,
1695 },
1696 }
1697 target := &ret
1698 if err := gensupport.DecodeResponse(target, res); err != nil {
1699 return nil, err
1700 }
1701 return ret, nil
1702 }
1703
1704 type AppsAuthorizedCertificatesListCall struct {
1705 s *APIService
1706 appsId string
1707 urlParams_ gensupport.URLParams
1708 ifNoneMatch_ string
1709 ctx_ context.Context
1710 header_ http.Header
1711 }
1712
1713
1714
1715
1716
1717 func (r *AppsAuthorizedCertificatesService) List(appsId string) *AppsAuthorizedCertificatesListCall {
1718 c := &AppsAuthorizedCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1719 c.appsId = appsId
1720 return c
1721 }
1722
1723
1724
1725 func (c *AppsAuthorizedCertificatesListCall) PageSize(pageSize int64) *AppsAuthorizedCertificatesListCall {
1726 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
1727 return c
1728 }
1729
1730
1731
1732 func (c *AppsAuthorizedCertificatesListCall) PageToken(pageToken string) *AppsAuthorizedCertificatesListCall {
1733 c.urlParams_.Set("pageToken", pageToken)
1734 return c
1735 }
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749 func (c *AppsAuthorizedCertificatesListCall) View(view string) *AppsAuthorizedCertificatesListCall {
1750 c.urlParams_.Set("view", view)
1751 return c
1752 }
1753
1754
1755
1756
1757 func (c *AppsAuthorizedCertificatesListCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesListCall {
1758 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1759 return c
1760 }
1761
1762
1763
1764
1765 func (c *AppsAuthorizedCertificatesListCall) IfNoneMatch(entityTag string) *AppsAuthorizedCertificatesListCall {
1766 c.ifNoneMatch_ = entityTag
1767 return c
1768 }
1769
1770
1771 func (c *AppsAuthorizedCertificatesListCall) Context(ctx context.Context) *AppsAuthorizedCertificatesListCall {
1772 c.ctx_ = ctx
1773 return c
1774 }
1775
1776
1777
1778 func (c *AppsAuthorizedCertificatesListCall) Header() http.Header {
1779 if c.header_ == nil {
1780 c.header_ = make(http.Header)
1781 }
1782 return c.header_
1783 }
1784
1785 func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Response, error) {
1786 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1787 if c.ifNoneMatch_ != "" {
1788 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1789 }
1790 var body io.Reader = nil
1791 c.urlParams_.Set("alt", alt)
1792 c.urlParams_.Set("prettyPrint", "false")
1793 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates")
1794 urls += "?" + c.urlParams_.Encode()
1795 req, err := http.NewRequest("GET", urls, body)
1796 if err != nil {
1797 return nil, err
1798 }
1799 req.Header = reqHeaders
1800 googleapi.Expand(req.URL, map[string]string{
1801 "appsId": c.appsId,
1802 })
1803 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1804 }
1805
1806
1807
1808
1809
1810
1811
1812 func (c *AppsAuthorizedCertificatesListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedCertificatesResponse, error) {
1813 gensupport.SetOptions(c.urlParams_, opts...)
1814 res, err := c.doRequest("json")
1815 if res != nil && res.StatusCode == http.StatusNotModified {
1816 if res.Body != nil {
1817 res.Body.Close()
1818 }
1819 return nil, gensupport.WrapError(&googleapi.Error{
1820 Code: res.StatusCode,
1821 Header: res.Header,
1822 })
1823 }
1824 if err != nil {
1825 return nil, err
1826 }
1827 defer googleapi.CloseBody(res)
1828 if err := googleapi.CheckResponse(res); err != nil {
1829 return nil, gensupport.WrapError(err)
1830 }
1831 ret := &ListAuthorizedCertificatesResponse{
1832 ServerResponse: googleapi.ServerResponse{
1833 Header: res.Header,
1834 HTTPStatusCode: res.StatusCode,
1835 },
1836 }
1837 target := &ret
1838 if err := gensupport.DecodeResponse(target, res); err != nil {
1839 return nil, err
1840 }
1841 return ret, nil
1842 }
1843
1844
1845
1846
1847 func (c *AppsAuthorizedCertificatesListCall) Pages(ctx context.Context, f func(*ListAuthorizedCertificatesResponse) error) error {
1848 c.ctx_ = ctx
1849 defer c.PageToken(c.urlParams_.Get("pageToken"))
1850 for {
1851 x, err := c.Do()
1852 if err != nil {
1853 return err
1854 }
1855 if err := f(x); err != nil {
1856 return err
1857 }
1858 if x.NextPageToken == "" {
1859 return nil
1860 }
1861 c.PageToken(x.NextPageToken)
1862 }
1863 }
1864
1865 type AppsAuthorizedCertificatesPatchCall struct {
1866 s *APIService
1867 appsId string
1868 authorizedCertificatesId string
1869 authorizedcertificate *AuthorizedCertificate
1870 urlParams_ gensupport.URLParams
1871 ctx_ context.Context
1872 header_ http.Header
1873 }
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883 func (r *AppsAuthorizedCertificatesService) Patch(appsId string, authorizedCertificatesId string, authorizedcertificate *AuthorizedCertificate) *AppsAuthorizedCertificatesPatchCall {
1884 c := &AppsAuthorizedCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1885 c.appsId = appsId
1886 c.authorizedCertificatesId = authorizedCertificatesId
1887 c.authorizedcertificate = authorizedcertificate
1888 return c
1889 }
1890
1891
1892
1893
1894 func (c *AppsAuthorizedCertificatesPatchCall) UpdateMask(updateMask string) *AppsAuthorizedCertificatesPatchCall {
1895 c.urlParams_.Set("updateMask", updateMask)
1896 return c
1897 }
1898
1899
1900
1901
1902 func (c *AppsAuthorizedCertificatesPatchCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesPatchCall {
1903 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1904 return c
1905 }
1906
1907
1908 func (c *AppsAuthorizedCertificatesPatchCall) Context(ctx context.Context) *AppsAuthorizedCertificatesPatchCall {
1909 c.ctx_ = ctx
1910 return c
1911 }
1912
1913
1914
1915 func (c *AppsAuthorizedCertificatesPatchCall) Header() http.Header {
1916 if c.header_ == nil {
1917 c.header_ = make(http.Header)
1918 }
1919 return c.header_
1920 }
1921
1922 func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Response, error) {
1923 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
1924 var body io.Reader = nil
1925 body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizedcertificate)
1926 if err != nil {
1927 return nil, err
1928 }
1929 c.urlParams_.Set("alt", alt)
1930 c.urlParams_.Set("prettyPrint", "false")
1931 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
1932 urls += "?" + c.urlParams_.Encode()
1933 req, err := http.NewRequest("PATCH", urls, body)
1934 if err != nil {
1935 return nil, err
1936 }
1937 req.Header = reqHeaders
1938 googleapi.Expand(req.URL, map[string]string{
1939 "appsId": c.appsId,
1940 "authorizedCertificatesId": c.authorizedCertificatesId,
1941 })
1942 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1943 }
1944
1945
1946
1947
1948
1949
1950
1951 func (c *AppsAuthorizedCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
1952 gensupport.SetOptions(c.urlParams_, opts...)
1953 res, err := c.doRequest("json")
1954 if res != nil && res.StatusCode == http.StatusNotModified {
1955 if res.Body != nil {
1956 res.Body.Close()
1957 }
1958 return nil, gensupport.WrapError(&googleapi.Error{
1959 Code: res.StatusCode,
1960 Header: res.Header,
1961 })
1962 }
1963 if err != nil {
1964 return nil, err
1965 }
1966 defer googleapi.CloseBody(res)
1967 if err := googleapi.CheckResponse(res); err != nil {
1968 return nil, gensupport.WrapError(err)
1969 }
1970 ret := &AuthorizedCertificate{
1971 ServerResponse: googleapi.ServerResponse{
1972 Header: res.Header,
1973 HTTPStatusCode: res.StatusCode,
1974 },
1975 }
1976 target := &ret
1977 if err := gensupport.DecodeResponse(target, res); err != nil {
1978 return nil, err
1979 }
1980 return ret, nil
1981 }
1982
1983 type AppsAuthorizedDomainsListCall struct {
1984 s *APIService
1985 appsId string
1986 urlParams_ gensupport.URLParams
1987 ifNoneMatch_ string
1988 ctx_ context.Context
1989 header_ http.Header
1990 }
1991
1992
1993
1994
1995
1996 func (r *AppsAuthorizedDomainsService) List(appsId string) *AppsAuthorizedDomainsListCall {
1997 c := &AppsAuthorizedDomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1998 c.appsId = appsId
1999 return c
2000 }
2001
2002
2003
2004 func (c *AppsAuthorizedDomainsListCall) PageSize(pageSize int64) *AppsAuthorizedDomainsListCall {
2005 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
2006 return c
2007 }
2008
2009
2010
2011 func (c *AppsAuthorizedDomainsListCall) PageToken(pageToken string) *AppsAuthorizedDomainsListCall {
2012 c.urlParams_.Set("pageToken", pageToken)
2013 return c
2014 }
2015
2016
2017
2018
2019 func (c *AppsAuthorizedDomainsListCall) Fields(s ...googleapi.Field) *AppsAuthorizedDomainsListCall {
2020 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2021 return c
2022 }
2023
2024
2025
2026
2027 func (c *AppsAuthorizedDomainsListCall) IfNoneMatch(entityTag string) *AppsAuthorizedDomainsListCall {
2028 c.ifNoneMatch_ = entityTag
2029 return c
2030 }
2031
2032
2033 func (c *AppsAuthorizedDomainsListCall) Context(ctx context.Context) *AppsAuthorizedDomainsListCall {
2034 c.ctx_ = ctx
2035 return c
2036 }
2037
2038
2039
2040 func (c *AppsAuthorizedDomainsListCall) Header() http.Header {
2041 if c.header_ == nil {
2042 c.header_ = make(http.Header)
2043 }
2044 return c.header_
2045 }
2046
2047 func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) {
2048 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2049 if c.ifNoneMatch_ != "" {
2050 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2051 }
2052 var body io.Reader = nil
2053 c.urlParams_.Set("alt", alt)
2054 c.urlParams_.Set("prettyPrint", "false")
2055 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedDomains")
2056 urls += "?" + c.urlParams_.Encode()
2057 req, err := http.NewRequest("GET", urls, body)
2058 if err != nil {
2059 return nil, err
2060 }
2061 req.Header = reqHeaders
2062 googleapi.Expand(req.URL, map[string]string{
2063 "appsId": c.appsId,
2064 })
2065 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2066 }
2067
2068
2069
2070
2071
2072
2073
2074 func (c *AppsAuthorizedDomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
2075 gensupport.SetOptions(c.urlParams_, opts...)
2076 res, err := c.doRequest("json")
2077 if res != nil && res.StatusCode == http.StatusNotModified {
2078 if res.Body != nil {
2079 res.Body.Close()
2080 }
2081 return nil, gensupport.WrapError(&googleapi.Error{
2082 Code: res.StatusCode,
2083 Header: res.Header,
2084 })
2085 }
2086 if err != nil {
2087 return nil, err
2088 }
2089 defer googleapi.CloseBody(res)
2090 if err := googleapi.CheckResponse(res); err != nil {
2091 return nil, gensupport.WrapError(err)
2092 }
2093 ret := &ListAuthorizedDomainsResponse{
2094 ServerResponse: googleapi.ServerResponse{
2095 Header: res.Header,
2096 HTTPStatusCode: res.StatusCode,
2097 },
2098 }
2099 target := &ret
2100 if err := gensupport.DecodeResponse(target, res); err != nil {
2101 return nil, err
2102 }
2103 return ret, nil
2104 }
2105
2106
2107
2108
2109 func (c *AppsAuthorizedDomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
2110 c.ctx_ = ctx
2111 defer c.PageToken(c.urlParams_.Get("pageToken"))
2112 for {
2113 x, err := c.Do()
2114 if err != nil {
2115 return err
2116 }
2117 if err := f(x); err != nil {
2118 return err
2119 }
2120 if x.NextPageToken == "" {
2121 return nil
2122 }
2123 c.PageToken(x.NextPageToken)
2124 }
2125 }
2126
2127 type AppsDomainMappingsCreateCall struct {
2128 s *APIService
2129 appsId string
2130 domainmapping *DomainMapping
2131 urlParams_ gensupport.URLParams
2132 ctx_ context.Context
2133 header_ http.Header
2134 }
2135
2136
2137
2138
2139
2140
2141
2142 func (r *AppsDomainMappingsService) Create(appsId string, domainmapping *DomainMapping) *AppsDomainMappingsCreateCall {
2143 c := &AppsDomainMappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2144 c.appsId = appsId
2145 c.domainmapping = domainmapping
2146 return c
2147 }
2148
2149
2150
2151
2152
2153
2154 func (c *AppsDomainMappingsCreateCall) NoManagedCertificate(noManagedCertificate bool) *AppsDomainMappingsCreateCall {
2155 c.urlParams_.Set("noManagedCertificate", fmt.Sprint(noManagedCertificate))
2156 return c
2157 }
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179 func (c *AppsDomainMappingsCreateCall) OverrideStrategy(overrideStrategy string) *AppsDomainMappingsCreateCall {
2180 c.urlParams_.Set("overrideStrategy", overrideStrategy)
2181 return c
2182 }
2183
2184
2185
2186
2187 func (c *AppsDomainMappingsCreateCall) Fields(s ...googleapi.Field) *AppsDomainMappingsCreateCall {
2188 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2189 return c
2190 }
2191
2192
2193 func (c *AppsDomainMappingsCreateCall) Context(ctx context.Context) *AppsDomainMappingsCreateCall {
2194 c.ctx_ = ctx
2195 return c
2196 }
2197
2198
2199
2200 func (c *AppsDomainMappingsCreateCall) Header() http.Header {
2201 if c.header_ == nil {
2202 c.header_ = make(http.Header)
2203 }
2204 return c.header_
2205 }
2206
2207 func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, error) {
2208 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
2209 var body io.Reader = nil
2210 body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
2211 if err != nil {
2212 return nil, err
2213 }
2214 c.urlParams_.Set("alt", alt)
2215 c.urlParams_.Set("prettyPrint", "false")
2216 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings")
2217 urls += "?" + c.urlParams_.Encode()
2218 req, err := http.NewRequest("POST", urls, body)
2219 if err != nil {
2220 return nil, err
2221 }
2222 req.Header = reqHeaders
2223 googleapi.Expand(req.URL, map[string]string{
2224 "appsId": c.appsId,
2225 })
2226 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2227 }
2228
2229
2230
2231
2232
2233
2234 func (c *AppsDomainMappingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
2235 gensupport.SetOptions(c.urlParams_, opts...)
2236 res, err := c.doRequest("json")
2237 if res != nil && res.StatusCode == http.StatusNotModified {
2238 if res.Body != nil {
2239 res.Body.Close()
2240 }
2241 return nil, gensupport.WrapError(&googleapi.Error{
2242 Code: res.StatusCode,
2243 Header: res.Header,
2244 })
2245 }
2246 if err != nil {
2247 return nil, err
2248 }
2249 defer googleapi.CloseBody(res)
2250 if err := googleapi.CheckResponse(res); err != nil {
2251 return nil, gensupport.WrapError(err)
2252 }
2253 ret := &Operation{
2254 ServerResponse: googleapi.ServerResponse{
2255 Header: res.Header,
2256 HTTPStatusCode: res.StatusCode,
2257 },
2258 }
2259 target := &ret
2260 if err := gensupport.DecodeResponse(target, res); err != nil {
2261 return nil, err
2262 }
2263 return ret, nil
2264 }
2265
2266 type AppsDomainMappingsDeleteCall struct {
2267 s *APIService
2268 appsId string
2269 domainMappingsId string
2270 urlParams_ gensupport.URLParams
2271 ctx_ context.Context
2272 header_ http.Header
2273 }
2274
2275
2276
2277
2278
2279
2280
2281
2282 func (r *AppsDomainMappingsService) Delete(appsId string, domainMappingsId string) *AppsDomainMappingsDeleteCall {
2283 c := &AppsDomainMappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2284 c.appsId = appsId
2285 c.domainMappingsId = domainMappingsId
2286 return c
2287 }
2288
2289
2290
2291
2292 func (c *AppsDomainMappingsDeleteCall) Fields(s ...googleapi.Field) *AppsDomainMappingsDeleteCall {
2293 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2294 return c
2295 }
2296
2297
2298 func (c *AppsDomainMappingsDeleteCall) Context(ctx context.Context) *AppsDomainMappingsDeleteCall {
2299 c.ctx_ = ctx
2300 return c
2301 }
2302
2303
2304
2305 func (c *AppsDomainMappingsDeleteCall) Header() http.Header {
2306 if c.header_ == nil {
2307 c.header_ = make(http.Header)
2308 }
2309 return c.header_
2310 }
2311
2312 func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
2313 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2314 var body io.Reader = nil
2315 c.urlParams_.Set("alt", alt)
2316 c.urlParams_.Set("prettyPrint", "false")
2317 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}")
2318 urls += "?" + c.urlParams_.Encode()
2319 req, err := http.NewRequest("DELETE", urls, body)
2320 if err != nil {
2321 return nil, err
2322 }
2323 req.Header = reqHeaders
2324 googleapi.Expand(req.URL, map[string]string{
2325 "appsId": c.appsId,
2326 "domainMappingsId": c.domainMappingsId,
2327 })
2328 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2329 }
2330
2331
2332
2333
2334
2335
2336 func (c *AppsDomainMappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
2337 gensupport.SetOptions(c.urlParams_, opts...)
2338 res, err := c.doRequest("json")
2339 if res != nil && res.StatusCode == http.StatusNotModified {
2340 if res.Body != nil {
2341 res.Body.Close()
2342 }
2343 return nil, gensupport.WrapError(&googleapi.Error{
2344 Code: res.StatusCode,
2345 Header: res.Header,
2346 })
2347 }
2348 if err != nil {
2349 return nil, err
2350 }
2351 defer googleapi.CloseBody(res)
2352 if err := googleapi.CheckResponse(res); err != nil {
2353 return nil, gensupport.WrapError(err)
2354 }
2355 ret := &Operation{
2356 ServerResponse: googleapi.ServerResponse{
2357 Header: res.Header,
2358 HTTPStatusCode: res.StatusCode,
2359 },
2360 }
2361 target := &ret
2362 if err := gensupport.DecodeResponse(target, res); err != nil {
2363 return nil, err
2364 }
2365 return ret, nil
2366 }
2367
2368 type AppsDomainMappingsGetCall struct {
2369 s *APIService
2370 appsId string
2371 domainMappingsId string
2372 urlParams_ gensupport.URLParams
2373 ifNoneMatch_ string
2374 ctx_ context.Context
2375 header_ http.Header
2376 }
2377
2378
2379
2380
2381
2382
2383 func (r *AppsDomainMappingsService) Get(appsId string, domainMappingsId string) *AppsDomainMappingsGetCall {
2384 c := &AppsDomainMappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2385 c.appsId = appsId
2386 c.domainMappingsId = domainMappingsId
2387 return c
2388 }
2389
2390
2391
2392
2393 func (c *AppsDomainMappingsGetCall) Fields(s ...googleapi.Field) *AppsDomainMappingsGetCall {
2394 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2395 return c
2396 }
2397
2398
2399
2400
2401 func (c *AppsDomainMappingsGetCall) IfNoneMatch(entityTag string) *AppsDomainMappingsGetCall {
2402 c.ifNoneMatch_ = entityTag
2403 return c
2404 }
2405
2406
2407 func (c *AppsDomainMappingsGetCall) Context(ctx context.Context) *AppsDomainMappingsGetCall {
2408 c.ctx_ = ctx
2409 return c
2410 }
2411
2412
2413
2414 func (c *AppsDomainMappingsGetCall) Header() http.Header {
2415 if c.header_ == nil {
2416 c.header_ = make(http.Header)
2417 }
2418 return c.header_
2419 }
2420
2421 func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error) {
2422 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2423 if c.ifNoneMatch_ != "" {
2424 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2425 }
2426 var body io.Reader = nil
2427 c.urlParams_.Set("alt", alt)
2428 c.urlParams_.Set("prettyPrint", "false")
2429 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}")
2430 urls += "?" + c.urlParams_.Encode()
2431 req, err := http.NewRequest("GET", urls, body)
2432 if err != nil {
2433 return nil, err
2434 }
2435 req.Header = reqHeaders
2436 googleapi.Expand(req.URL, map[string]string{
2437 "appsId": c.appsId,
2438 "domainMappingsId": c.domainMappingsId,
2439 })
2440 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2441 }
2442
2443
2444
2445
2446
2447
2448 func (c *AppsDomainMappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
2449 gensupport.SetOptions(c.urlParams_, opts...)
2450 res, err := c.doRequest("json")
2451 if res != nil && res.StatusCode == http.StatusNotModified {
2452 if res.Body != nil {
2453 res.Body.Close()
2454 }
2455 return nil, gensupport.WrapError(&googleapi.Error{
2456 Code: res.StatusCode,
2457 Header: res.Header,
2458 })
2459 }
2460 if err != nil {
2461 return nil, err
2462 }
2463 defer googleapi.CloseBody(res)
2464 if err := googleapi.CheckResponse(res); err != nil {
2465 return nil, gensupport.WrapError(err)
2466 }
2467 ret := &DomainMapping{
2468 ServerResponse: googleapi.ServerResponse{
2469 Header: res.Header,
2470 HTTPStatusCode: res.StatusCode,
2471 },
2472 }
2473 target := &ret
2474 if err := gensupport.DecodeResponse(target, res); err != nil {
2475 return nil, err
2476 }
2477 return ret, nil
2478 }
2479
2480 type AppsDomainMappingsListCall struct {
2481 s *APIService
2482 appsId string
2483 urlParams_ gensupport.URLParams
2484 ifNoneMatch_ string
2485 ctx_ context.Context
2486 header_ http.Header
2487 }
2488
2489
2490
2491
2492
2493 func (r *AppsDomainMappingsService) List(appsId string) *AppsDomainMappingsListCall {
2494 c := &AppsDomainMappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2495 c.appsId = appsId
2496 return c
2497 }
2498
2499
2500
2501 func (c *AppsDomainMappingsListCall) PageSize(pageSize int64) *AppsDomainMappingsListCall {
2502 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
2503 return c
2504 }
2505
2506
2507
2508 func (c *AppsDomainMappingsListCall) PageToken(pageToken string) *AppsDomainMappingsListCall {
2509 c.urlParams_.Set("pageToken", pageToken)
2510 return c
2511 }
2512
2513
2514
2515
2516 func (c *AppsDomainMappingsListCall) Fields(s ...googleapi.Field) *AppsDomainMappingsListCall {
2517 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2518 return c
2519 }
2520
2521
2522
2523
2524 func (c *AppsDomainMappingsListCall) IfNoneMatch(entityTag string) *AppsDomainMappingsListCall {
2525 c.ifNoneMatch_ = entityTag
2526 return c
2527 }
2528
2529
2530 func (c *AppsDomainMappingsListCall) Context(ctx context.Context) *AppsDomainMappingsListCall {
2531 c.ctx_ = ctx
2532 return c
2533 }
2534
2535
2536
2537 func (c *AppsDomainMappingsListCall) Header() http.Header {
2538 if c.header_ == nil {
2539 c.header_ = make(http.Header)
2540 }
2541 return c.header_
2542 }
2543
2544 func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, error) {
2545 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2546 if c.ifNoneMatch_ != "" {
2547 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2548 }
2549 var body io.Reader = nil
2550 c.urlParams_.Set("alt", alt)
2551 c.urlParams_.Set("prettyPrint", "false")
2552 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings")
2553 urls += "?" + c.urlParams_.Encode()
2554 req, err := http.NewRequest("GET", urls, body)
2555 if err != nil {
2556 return nil, err
2557 }
2558 req.Header = reqHeaders
2559 googleapi.Expand(req.URL, map[string]string{
2560 "appsId": c.appsId,
2561 })
2562 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2563 }
2564
2565
2566
2567
2568
2569
2570
2571 func (c *AppsDomainMappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
2572 gensupport.SetOptions(c.urlParams_, opts...)
2573 res, err := c.doRequest("json")
2574 if res != nil && res.StatusCode == http.StatusNotModified {
2575 if res.Body != nil {
2576 res.Body.Close()
2577 }
2578 return nil, gensupport.WrapError(&googleapi.Error{
2579 Code: res.StatusCode,
2580 Header: res.Header,
2581 })
2582 }
2583 if err != nil {
2584 return nil, err
2585 }
2586 defer googleapi.CloseBody(res)
2587 if err := googleapi.CheckResponse(res); err != nil {
2588 return nil, gensupport.WrapError(err)
2589 }
2590 ret := &ListDomainMappingsResponse{
2591 ServerResponse: googleapi.ServerResponse{
2592 Header: res.Header,
2593 HTTPStatusCode: res.StatusCode,
2594 },
2595 }
2596 target := &ret
2597 if err := gensupport.DecodeResponse(target, res); err != nil {
2598 return nil, err
2599 }
2600 return ret, nil
2601 }
2602
2603
2604
2605
2606 func (c *AppsDomainMappingsListCall) Pages(ctx context.Context, f func(*ListDomainMappingsResponse) error) error {
2607 c.ctx_ = ctx
2608 defer c.PageToken(c.urlParams_.Get("pageToken"))
2609 for {
2610 x, err := c.Do()
2611 if err != nil {
2612 return err
2613 }
2614 if err := f(x); err != nil {
2615 return err
2616 }
2617 if x.NextPageToken == "" {
2618 return nil
2619 }
2620 c.PageToken(x.NextPageToken)
2621 }
2622 }
2623
2624 type AppsDomainMappingsPatchCall struct {
2625 s *APIService
2626 appsId string
2627 domainMappingsId string
2628 domainmapping *DomainMapping
2629 urlParams_ gensupport.URLParams
2630 ctx_ context.Context
2631 header_ http.Header
2632 }
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642 func (r *AppsDomainMappingsService) Patch(appsId string, domainMappingsId string, domainmapping *DomainMapping) *AppsDomainMappingsPatchCall {
2643 c := &AppsDomainMappingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2644 c.appsId = appsId
2645 c.domainMappingsId = domainMappingsId
2646 c.domainmapping = domainmapping
2647 return c
2648 }
2649
2650
2651
2652
2653
2654
2655
2656 func (c *AppsDomainMappingsPatchCall) NoManagedCertificate(noManagedCertificate bool) *AppsDomainMappingsPatchCall {
2657 c.urlParams_.Set("noManagedCertificate", fmt.Sprint(noManagedCertificate))
2658 return c
2659 }
2660
2661
2662
2663 func (c *AppsDomainMappingsPatchCall) UpdateMask(updateMask string) *AppsDomainMappingsPatchCall {
2664 c.urlParams_.Set("updateMask", updateMask)
2665 return c
2666 }
2667
2668
2669
2670
2671 func (c *AppsDomainMappingsPatchCall) Fields(s ...googleapi.Field) *AppsDomainMappingsPatchCall {
2672 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2673 return c
2674 }
2675
2676
2677 func (c *AppsDomainMappingsPatchCall) Context(ctx context.Context) *AppsDomainMappingsPatchCall {
2678 c.ctx_ = ctx
2679 return c
2680 }
2681
2682
2683
2684 func (c *AppsDomainMappingsPatchCall) Header() http.Header {
2685 if c.header_ == nil {
2686 c.header_ = make(http.Header)
2687 }
2688 return c.header_
2689 }
2690
2691 func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, error) {
2692 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
2693 var body io.Reader = nil
2694 body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
2695 if err != nil {
2696 return nil, err
2697 }
2698 c.urlParams_.Set("alt", alt)
2699 c.urlParams_.Set("prettyPrint", "false")
2700 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}")
2701 urls += "?" + c.urlParams_.Encode()
2702 req, err := http.NewRequest("PATCH", urls, body)
2703 if err != nil {
2704 return nil, err
2705 }
2706 req.Header = reqHeaders
2707 googleapi.Expand(req.URL, map[string]string{
2708 "appsId": c.appsId,
2709 "domainMappingsId": c.domainMappingsId,
2710 })
2711 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2712 }
2713
2714
2715
2716
2717
2718
2719 func (c *AppsDomainMappingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
2720 gensupport.SetOptions(c.urlParams_, opts...)
2721 res, err := c.doRequest("json")
2722 if res != nil && res.StatusCode == http.StatusNotModified {
2723 if res.Body != nil {
2724 res.Body.Close()
2725 }
2726 return nil, gensupport.WrapError(&googleapi.Error{
2727 Code: res.StatusCode,
2728 Header: res.Header,
2729 })
2730 }
2731 if err != nil {
2732 return nil, err
2733 }
2734 defer googleapi.CloseBody(res)
2735 if err := googleapi.CheckResponse(res); err != nil {
2736 return nil, gensupport.WrapError(err)
2737 }
2738 ret := &Operation{
2739 ServerResponse: googleapi.ServerResponse{
2740 Header: res.Header,
2741 HTTPStatusCode: res.StatusCode,
2742 },
2743 }
2744 target := &ret
2745 if err := gensupport.DecodeResponse(target, res); err != nil {
2746 return nil, err
2747 }
2748 return ret, nil
2749 }
2750
2751 type AppsLocationsGetCall struct {
2752 s *APIService
2753 appsId string
2754 locationsId string
2755 urlParams_ gensupport.URLParams
2756 ifNoneMatch_ string
2757 ctx_ context.Context
2758 header_ http.Header
2759 }
2760
2761
2762
2763
2764
2765 func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
2766 c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2767 c.appsId = appsId
2768 c.locationsId = locationsId
2769 return c
2770 }
2771
2772
2773
2774
2775 func (c *AppsLocationsGetCall) Fields(s ...googleapi.Field) *AppsLocationsGetCall {
2776 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2777 return c
2778 }
2779
2780
2781
2782
2783 func (c *AppsLocationsGetCall) IfNoneMatch(entityTag string) *AppsLocationsGetCall {
2784 c.ifNoneMatch_ = entityTag
2785 return c
2786 }
2787
2788
2789 func (c *AppsLocationsGetCall) Context(ctx context.Context) *AppsLocationsGetCall {
2790 c.ctx_ = ctx
2791 return c
2792 }
2793
2794
2795
2796 func (c *AppsLocationsGetCall) Header() http.Header {
2797 if c.header_ == nil {
2798 c.header_ = make(http.Header)
2799 }
2800 return c.header_
2801 }
2802
2803 func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
2804 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2805 if c.ifNoneMatch_ != "" {
2806 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2807 }
2808 var body io.Reader = nil
2809 c.urlParams_.Set("alt", alt)
2810 c.urlParams_.Set("prettyPrint", "false")
2811 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/locations/{locationsId}")
2812 urls += "?" + c.urlParams_.Encode()
2813 req, err := http.NewRequest("GET", urls, body)
2814 if err != nil {
2815 return nil, err
2816 }
2817 req.Header = reqHeaders
2818 googleapi.Expand(req.URL, map[string]string{
2819 "appsId": c.appsId,
2820 "locationsId": c.locationsId,
2821 })
2822 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2823 }
2824
2825
2826
2827
2828
2829
2830 func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
2831 gensupport.SetOptions(c.urlParams_, opts...)
2832 res, err := c.doRequest("json")
2833 if res != nil && res.StatusCode == http.StatusNotModified {
2834 if res.Body != nil {
2835 res.Body.Close()
2836 }
2837 return nil, gensupport.WrapError(&googleapi.Error{
2838 Code: res.StatusCode,
2839 Header: res.Header,
2840 })
2841 }
2842 if err != nil {
2843 return nil, err
2844 }
2845 defer googleapi.CloseBody(res)
2846 if err := googleapi.CheckResponse(res); err != nil {
2847 return nil, gensupport.WrapError(err)
2848 }
2849 ret := &Location{
2850 ServerResponse: googleapi.ServerResponse{
2851 Header: res.Header,
2852 HTTPStatusCode: res.StatusCode,
2853 },
2854 }
2855 target := &ret
2856 if err := gensupport.DecodeResponse(target, res); err != nil {
2857 return nil, err
2858 }
2859 return ret, nil
2860 }
2861
2862 type AppsLocationsListCall struct {
2863 s *APIService
2864 appsId string
2865 urlParams_ gensupport.URLParams
2866 ifNoneMatch_ string
2867 ctx_ context.Context
2868 header_ http.Header
2869 }
2870
2871
2872
2873
2874
2875 func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall {
2876 c := &AppsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2877 c.appsId = appsId
2878 return c
2879 }
2880
2881
2882
2883
2884
2885 func (c *AppsLocationsListCall) Filter(filter string) *AppsLocationsListCall {
2886 c.urlParams_.Set("filter", filter)
2887 return c
2888 }
2889
2890
2891
2892 func (c *AppsLocationsListCall) PageSize(pageSize int64) *AppsLocationsListCall {
2893 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
2894 return c
2895 }
2896
2897
2898
2899
2900 func (c *AppsLocationsListCall) PageToken(pageToken string) *AppsLocationsListCall {
2901 c.urlParams_.Set("pageToken", pageToken)
2902 return c
2903 }
2904
2905
2906
2907
2908 func (c *AppsLocationsListCall) Fields(s ...googleapi.Field) *AppsLocationsListCall {
2909 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2910 return c
2911 }
2912
2913
2914
2915
2916 func (c *AppsLocationsListCall) IfNoneMatch(entityTag string) *AppsLocationsListCall {
2917 c.ifNoneMatch_ = entityTag
2918 return c
2919 }
2920
2921
2922 func (c *AppsLocationsListCall) Context(ctx context.Context) *AppsLocationsListCall {
2923 c.ctx_ = ctx
2924 return c
2925 }
2926
2927
2928
2929 func (c *AppsLocationsListCall) Header() http.Header {
2930 if c.header_ == nil {
2931 c.header_ = make(http.Header)
2932 }
2933 return c.header_
2934 }
2935
2936 func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) {
2937 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2938 if c.ifNoneMatch_ != "" {
2939 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2940 }
2941 var body io.Reader = nil
2942 c.urlParams_.Set("alt", alt)
2943 c.urlParams_.Set("prettyPrint", "false")
2944 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/locations")
2945 urls += "?" + c.urlParams_.Encode()
2946 req, err := http.NewRequest("GET", urls, body)
2947 if err != nil {
2948 return nil, err
2949 }
2950 req.Header = reqHeaders
2951 googleapi.Expand(req.URL, map[string]string{
2952 "appsId": c.appsId,
2953 })
2954 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2955 }
2956
2957
2958
2959
2960
2961
2962
2963 func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
2964 gensupport.SetOptions(c.urlParams_, opts...)
2965 res, err := c.doRequest("json")
2966 if res != nil && res.StatusCode == http.StatusNotModified {
2967 if res.Body != nil {
2968 res.Body.Close()
2969 }
2970 return nil, gensupport.WrapError(&googleapi.Error{
2971 Code: res.StatusCode,
2972 Header: res.Header,
2973 })
2974 }
2975 if err != nil {
2976 return nil, err
2977 }
2978 defer googleapi.CloseBody(res)
2979 if err := googleapi.CheckResponse(res); err != nil {
2980 return nil, gensupport.WrapError(err)
2981 }
2982 ret := &ListLocationsResponse{
2983 ServerResponse: googleapi.ServerResponse{
2984 Header: res.Header,
2985 HTTPStatusCode: res.StatusCode,
2986 },
2987 }
2988 target := &ret
2989 if err := gensupport.DecodeResponse(target, res); err != nil {
2990 return nil, err
2991 }
2992 return ret, nil
2993 }
2994
2995
2996
2997
2998 func (c *AppsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
2999 c.ctx_ = ctx
3000 defer c.PageToken(c.urlParams_.Get("pageToken"))
3001 for {
3002 x, err := c.Do()
3003 if err != nil {
3004 return err
3005 }
3006 if err := f(x); err != nil {
3007 return err
3008 }
3009 if x.NextPageToken == "" {
3010 return nil
3011 }
3012 c.PageToken(x.NextPageToken)
3013 }
3014 }
3015
3016 type AppsOperationsGetCall struct {
3017 s *APIService
3018 appsId string
3019 operationsId string
3020 urlParams_ gensupport.URLParams
3021 ifNoneMatch_ string
3022 ctx_ context.Context
3023 header_ http.Header
3024 }
3025
3026
3027
3028
3029
3030
3031
3032 func (r *AppsOperationsService) Get(appsId string, operationsId string) *AppsOperationsGetCall {
3033 c := &AppsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3034 c.appsId = appsId
3035 c.operationsId = operationsId
3036 return c
3037 }
3038
3039
3040
3041
3042 func (c *AppsOperationsGetCall) Fields(s ...googleapi.Field) *AppsOperationsGetCall {
3043 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3044 return c
3045 }
3046
3047
3048
3049
3050 func (c *AppsOperationsGetCall) IfNoneMatch(entityTag string) *AppsOperationsGetCall {
3051 c.ifNoneMatch_ = entityTag
3052 return c
3053 }
3054
3055
3056 func (c *AppsOperationsGetCall) Context(ctx context.Context) *AppsOperationsGetCall {
3057 c.ctx_ = ctx
3058 return c
3059 }
3060
3061
3062
3063 func (c *AppsOperationsGetCall) Header() http.Header {
3064 if c.header_ == nil {
3065 c.header_ = make(http.Header)
3066 }
3067 return c.header_
3068 }
3069
3070 func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
3071 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3072 if c.ifNoneMatch_ != "" {
3073 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3074 }
3075 var body io.Reader = nil
3076 c.urlParams_.Set("alt", alt)
3077 c.urlParams_.Set("prettyPrint", "false")
3078 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/operations/{operationsId}")
3079 urls += "?" + c.urlParams_.Encode()
3080 req, err := http.NewRequest("GET", urls, body)
3081 if err != nil {
3082 return nil, err
3083 }
3084 req.Header = reqHeaders
3085 googleapi.Expand(req.URL, map[string]string{
3086 "appsId": c.appsId,
3087 "operationsId": c.operationsId,
3088 })
3089 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3090 }
3091
3092
3093
3094
3095
3096
3097 func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
3098 gensupport.SetOptions(c.urlParams_, opts...)
3099 res, err := c.doRequest("json")
3100 if res != nil && res.StatusCode == http.StatusNotModified {
3101 if res.Body != nil {
3102 res.Body.Close()
3103 }
3104 return nil, gensupport.WrapError(&googleapi.Error{
3105 Code: res.StatusCode,
3106 Header: res.Header,
3107 })
3108 }
3109 if err != nil {
3110 return nil, err
3111 }
3112 defer googleapi.CloseBody(res)
3113 if err := googleapi.CheckResponse(res); err != nil {
3114 return nil, gensupport.WrapError(err)
3115 }
3116 ret := &Operation{
3117 ServerResponse: googleapi.ServerResponse{
3118 Header: res.Header,
3119 HTTPStatusCode: res.StatusCode,
3120 },
3121 }
3122 target := &ret
3123 if err := gensupport.DecodeResponse(target, res); err != nil {
3124 return nil, err
3125 }
3126 return ret, nil
3127 }
3128
3129 type AppsOperationsListCall struct {
3130 s *APIService
3131 appsId string
3132 urlParams_ gensupport.URLParams
3133 ifNoneMatch_ string
3134 ctx_ context.Context
3135 header_ http.Header
3136 }
3137
3138
3139
3140
3141
3142 func (r *AppsOperationsService) List(appsId string) *AppsOperationsListCall {
3143 c := &AppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3144 c.appsId = appsId
3145 return c
3146 }
3147
3148
3149 func (c *AppsOperationsListCall) Filter(filter string) *AppsOperationsListCall {
3150 c.urlParams_.Set("filter", filter)
3151 return c
3152 }
3153
3154
3155
3156 func (c *AppsOperationsListCall) PageSize(pageSize int64) *AppsOperationsListCall {
3157 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3158 return c
3159 }
3160
3161
3162
3163 func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsListCall {
3164 c.urlParams_.Set("pageToken", pageToken)
3165 return c
3166 }
3167
3168
3169
3170
3171 func (c *AppsOperationsListCall) Fields(s ...googleapi.Field) *AppsOperationsListCall {
3172 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3173 return c
3174 }
3175
3176
3177
3178
3179 func (c *AppsOperationsListCall) IfNoneMatch(entityTag string) *AppsOperationsListCall {
3180 c.ifNoneMatch_ = entityTag
3181 return c
3182 }
3183
3184
3185 func (c *AppsOperationsListCall) Context(ctx context.Context) *AppsOperationsListCall {
3186 c.ctx_ = ctx
3187 return c
3188 }
3189
3190
3191
3192 func (c *AppsOperationsListCall) Header() http.Header {
3193 if c.header_ == nil {
3194 c.header_ = make(http.Header)
3195 }
3196 return c.header_
3197 }
3198
3199 func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) {
3200 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3201 if c.ifNoneMatch_ != "" {
3202 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3203 }
3204 var body io.Reader = nil
3205 c.urlParams_.Set("alt", alt)
3206 c.urlParams_.Set("prettyPrint", "false")
3207 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/operations")
3208 urls += "?" + c.urlParams_.Encode()
3209 req, err := http.NewRequest("GET", urls, body)
3210 if err != nil {
3211 return nil, err
3212 }
3213 req.Header = reqHeaders
3214 googleapi.Expand(req.URL, map[string]string{
3215 "appsId": c.appsId,
3216 })
3217 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3218 }
3219
3220
3221
3222
3223
3224
3225
3226 func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
3227 gensupport.SetOptions(c.urlParams_, opts...)
3228 res, err := c.doRequest("json")
3229 if res != nil && res.StatusCode == http.StatusNotModified {
3230 if res.Body != nil {
3231 res.Body.Close()
3232 }
3233 return nil, gensupport.WrapError(&googleapi.Error{
3234 Code: res.StatusCode,
3235 Header: res.Header,
3236 })
3237 }
3238 if err != nil {
3239 return nil, err
3240 }
3241 defer googleapi.CloseBody(res)
3242 if err := googleapi.CheckResponse(res); err != nil {
3243 return nil, gensupport.WrapError(err)
3244 }
3245 ret := &ListOperationsResponse{
3246 ServerResponse: googleapi.ServerResponse{
3247 Header: res.Header,
3248 HTTPStatusCode: res.StatusCode,
3249 },
3250 }
3251 target := &ret
3252 if err := gensupport.DecodeResponse(target, res); err != nil {
3253 return nil, err
3254 }
3255 return ret, nil
3256 }
3257
3258
3259
3260
3261 func (c *AppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
3262 c.ctx_ = ctx
3263 defer c.PageToken(c.urlParams_.Get("pageToken"))
3264 for {
3265 x, err := c.Do()
3266 if err != nil {
3267 return err
3268 }
3269 if err := f(x); err != nil {
3270 return err
3271 }
3272 if x.NextPageToken == "" {
3273 return nil
3274 }
3275 c.PageToken(x.NextPageToken)
3276 }
3277 }
3278
3279 type ProjectsLocationsGetCall struct {
3280 s *APIService
3281 projectsId string
3282 locationsId string
3283 urlParams_ gensupport.URLParams
3284 ifNoneMatch_ string
3285 ctx_ context.Context
3286 header_ http.Header
3287 }
3288
3289
3290
3291
3292
3293 func (r *ProjectsLocationsService) Get(projectsId string, locationsId string) *ProjectsLocationsGetCall {
3294 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3295 c.projectsId = projectsId
3296 c.locationsId = locationsId
3297 return c
3298 }
3299
3300
3301
3302
3303 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
3304 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3305 return c
3306 }
3307
3308
3309
3310
3311 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
3312 c.ifNoneMatch_ = entityTag
3313 return c
3314 }
3315
3316
3317 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
3318 c.ctx_ = ctx
3319 return c
3320 }
3321
3322
3323
3324 func (c *ProjectsLocationsGetCall) Header() http.Header {
3325 if c.header_ == nil {
3326 c.header_ = make(http.Header)
3327 }
3328 return c.header_
3329 }
3330
3331 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
3332 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3333 if c.ifNoneMatch_ != "" {
3334 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3335 }
3336 var body io.Reader = nil
3337 c.urlParams_.Set("alt", alt)
3338 c.urlParams_.Set("prettyPrint", "false")
3339 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}")
3340 urls += "?" + c.urlParams_.Encode()
3341 req, err := http.NewRequest("GET", urls, body)
3342 if err != nil {
3343 return nil, err
3344 }
3345 req.Header = reqHeaders
3346 googleapi.Expand(req.URL, map[string]string{
3347 "projectsId": c.projectsId,
3348 "locationsId": c.locationsId,
3349 })
3350 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3351 }
3352
3353
3354
3355
3356
3357
3358 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
3359 gensupport.SetOptions(c.urlParams_, opts...)
3360 res, err := c.doRequest("json")
3361 if res != nil && res.StatusCode == http.StatusNotModified {
3362 if res.Body != nil {
3363 res.Body.Close()
3364 }
3365 return nil, gensupport.WrapError(&googleapi.Error{
3366 Code: res.StatusCode,
3367 Header: res.Header,
3368 })
3369 }
3370 if err != nil {
3371 return nil, err
3372 }
3373 defer googleapi.CloseBody(res)
3374 if err := googleapi.CheckResponse(res); err != nil {
3375 return nil, gensupport.WrapError(err)
3376 }
3377 ret := &Location{
3378 ServerResponse: googleapi.ServerResponse{
3379 Header: res.Header,
3380 HTTPStatusCode: res.StatusCode,
3381 },
3382 }
3383 target := &ret
3384 if err := gensupport.DecodeResponse(target, res); err != nil {
3385 return nil, err
3386 }
3387 return ret, nil
3388 }
3389
3390 type ProjectsLocationsListCall struct {
3391 s *APIService
3392 projectsId string
3393 urlParams_ gensupport.URLParams
3394 ifNoneMatch_ string
3395 ctx_ context.Context
3396 header_ http.Header
3397 }
3398
3399
3400
3401
3402
3403 func (r *ProjectsLocationsService) List(projectsId string) *ProjectsLocationsListCall {
3404 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3405 c.projectsId = projectsId
3406 return c
3407 }
3408
3409
3410
3411
3412
3413 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
3414 c.urlParams_.Set("filter", filter)
3415 return c
3416 }
3417
3418
3419
3420 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
3421 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3422 return c
3423 }
3424
3425
3426
3427
3428 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
3429 c.urlParams_.Set("pageToken", pageToken)
3430 return c
3431 }
3432
3433
3434
3435
3436 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
3437 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3438 return c
3439 }
3440
3441
3442
3443
3444 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
3445 c.ifNoneMatch_ = entityTag
3446 return c
3447 }
3448
3449
3450 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
3451 c.ctx_ = ctx
3452 return c
3453 }
3454
3455
3456
3457 func (c *ProjectsLocationsListCall) Header() http.Header {
3458 if c.header_ == nil {
3459 c.header_ = make(http.Header)
3460 }
3461 return c.header_
3462 }
3463
3464 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
3465 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3466 if c.ifNoneMatch_ != "" {
3467 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3468 }
3469 var body io.Reader = nil
3470 c.urlParams_.Set("alt", alt)
3471 c.urlParams_.Set("prettyPrint", "false")
3472 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations")
3473 urls += "?" + c.urlParams_.Encode()
3474 req, err := http.NewRequest("GET", urls, body)
3475 if err != nil {
3476 return nil, err
3477 }
3478 req.Header = reqHeaders
3479 googleapi.Expand(req.URL, map[string]string{
3480 "projectsId": c.projectsId,
3481 })
3482 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3483 }
3484
3485
3486
3487
3488
3489
3490
3491 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
3492 gensupport.SetOptions(c.urlParams_, opts...)
3493 res, err := c.doRequest("json")
3494 if res != nil && res.StatusCode == http.StatusNotModified {
3495 if res.Body != nil {
3496 res.Body.Close()
3497 }
3498 return nil, gensupport.WrapError(&googleapi.Error{
3499 Code: res.StatusCode,
3500 Header: res.Header,
3501 })
3502 }
3503 if err != nil {
3504 return nil, err
3505 }
3506 defer googleapi.CloseBody(res)
3507 if err := googleapi.CheckResponse(res); err != nil {
3508 return nil, gensupport.WrapError(err)
3509 }
3510 ret := &ListLocationsResponse{
3511 ServerResponse: googleapi.ServerResponse{
3512 Header: res.Header,
3513 HTTPStatusCode: res.StatusCode,
3514 },
3515 }
3516 target := &ret
3517 if err := gensupport.DecodeResponse(target, res); err != nil {
3518 return nil, err
3519 }
3520 return ret, nil
3521 }
3522
3523
3524
3525
3526 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
3527 c.ctx_ = ctx
3528 defer c.PageToken(c.urlParams_.Get("pageToken"))
3529 for {
3530 x, err := c.Do()
3531 if err != nil {
3532 return err
3533 }
3534 if err := f(x); err != nil {
3535 return err
3536 }
3537 if x.NextPageToken == "" {
3538 return nil
3539 }
3540 c.PageToken(x.NextPageToken)
3541 }
3542 }
3543
3544 type ProjectsLocationsApplicationsAuthorizedDomainsListCall struct {
3545 s *APIService
3546 projectsId string
3547 locationsId string
3548 applicationsId string
3549 urlParams_ gensupport.URLParams
3550 ifNoneMatch_ string
3551 ctx_ context.Context
3552 header_ http.Header
3553 }
3554
3555
3556
3557
3558
3559
3560
3561 func (r *ProjectsLocationsApplicationsAuthorizedDomainsService) List(projectsId string, locationsId string, applicationsId string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
3562 c := &ProjectsLocationsApplicationsAuthorizedDomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3563 c.projectsId = projectsId
3564 c.locationsId = locationsId
3565 c.applicationsId = applicationsId
3566 return c
3567 }
3568
3569
3570
3571 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) PageSize(pageSize int64) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
3572 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3573 return c
3574 }
3575
3576
3577
3578 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) PageToken(pageToken string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
3579 c.urlParams_.Set("pageToken", pageToken)
3580 return c
3581 }
3582
3583
3584
3585
3586 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
3587 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3588 return c
3589 }
3590
3591
3592
3593
3594 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
3595 c.ifNoneMatch_ = entityTag
3596 return c
3597 }
3598
3599
3600 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Context(ctx context.Context) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
3601 c.ctx_ = ctx
3602 return c
3603 }
3604
3605
3606
3607 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Header() http.Header {
3608 if c.header_ == nil {
3609 c.header_ = make(http.Header)
3610 }
3611 return c.header_
3612 }
3613
3614 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) {
3615 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3616 if c.ifNoneMatch_ != "" {
3617 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3618 }
3619 var body io.Reader = nil
3620 c.urlParams_.Set("alt", alt)
3621 c.urlParams_.Set("prettyPrint", "false")
3622 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/authorizedDomains")
3623 urls += "?" + c.urlParams_.Encode()
3624 req, err := http.NewRequest("GET", urls, body)
3625 if err != nil {
3626 return nil, err
3627 }
3628 req.Header = reqHeaders
3629 googleapi.Expand(req.URL, map[string]string{
3630 "projectsId": c.projectsId,
3631 "locationsId": c.locationsId,
3632 "applicationsId": c.applicationsId,
3633 })
3634 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3635 }
3636
3637
3638
3639
3640
3641
3642
3643 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
3644 gensupport.SetOptions(c.urlParams_, opts...)
3645 res, err := c.doRequest("json")
3646 if res != nil && res.StatusCode == http.StatusNotModified {
3647 if res.Body != nil {
3648 res.Body.Close()
3649 }
3650 return nil, gensupport.WrapError(&googleapi.Error{
3651 Code: res.StatusCode,
3652 Header: res.Header,
3653 })
3654 }
3655 if err != nil {
3656 return nil, err
3657 }
3658 defer googleapi.CloseBody(res)
3659 if err := googleapi.CheckResponse(res); err != nil {
3660 return nil, gensupport.WrapError(err)
3661 }
3662 ret := &ListAuthorizedDomainsResponse{
3663 ServerResponse: googleapi.ServerResponse{
3664 Header: res.Header,
3665 HTTPStatusCode: res.StatusCode,
3666 },
3667 }
3668 target := &ret
3669 if err := gensupport.DecodeResponse(target, res); err != nil {
3670 return nil, err
3671 }
3672 return ret, nil
3673 }
3674
3675
3676
3677
3678 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
3679 c.ctx_ = ctx
3680 defer c.PageToken(c.urlParams_.Get("pageToken"))
3681 for {
3682 x, err := c.Do()
3683 if err != nil {
3684 return err
3685 }
3686 if err := f(x); err != nil {
3687 return err
3688 }
3689 if x.NextPageToken == "" {
3690 return nil
3691 }
3692 c.PageToken(x.NextPageToken)
3693 }
3694 }
3695
3696 type ProjectsLocationsOperationsGetCall struct {
3697 s *APIService
3698 projectsId string
3699 locationsId string
3700 operationsId string
3701 urlParams_ gensupport.URLParams
3702 ifNoneMatch_ string
3703 ctx_ context.Context
3704 header_ http.Header
3705 }
3706
3707
3708
3709
3710
3711
3712
3713
3714 func (r *ProjectsLocationsOperationsService) Get(projectsId string, locationsId string, operationsId string) *ProjectsLocationsOperationsGetCall {
3715 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3716 c.projectsId = projectsId
3717 c.locationsId = locationsId
3718 c.operationsId = operationsId
3719 return c
3720 }
3721
3722
3723
3724
3725 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
3726 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3727 return c
3728 }
3729
3730
3731
3732
3733 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
3734 c.ifNoneMatch_ = entityTag
3735 return c
3736 }
3737
3738
3739 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
3740 c.ctx_ = ctx
3741 return c
3742 }
3743
3744
3745
3746 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
3747 if c.header_ == nil {
3748 c.header_ = make(http.Header)
3749 }
3750 return c.header_
3751 }
3752
3753 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
3754 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3755 if c.ifNoneMatch_ != "" {
3756 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3757 }
3758 var body io.Reader = nil
3759 c.urlParams_.Set("alt", alt)
3760 c.urlParams_.Set("prettyPrint", "false")
3761 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}")
3762 urls += "?" + c.urlParams_.Encode()
3763 req, err := http.NewRequest("GET", urls, body)
3764 if err != nil {
3765 return nil, err
3766 }
3767 req.Header = reqHeaders
3768 googleapi.Expand(req.URL, map[string]string{
3769 "projectsId": c.projectsId,
3770 "locationsId": c.locationsId,
3771 "operationsId": c.operationsId,
3772 })
3773 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3774 }
3775
3776
3777
3778
3779
3780
3781 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
3782 gensupport.SetOptions(c.urlParams_, opts...)
3783 res, err := c.doRequest("json")
3784 if res != nil && res.StatusCode == http.StatusNotModified {
3785 if res.Body != nil {
3786 res.Body.Close()
3787 }
3788 return nil, gensupport.WrapError(&googleapi.Error{
3789 Code: res.StatusCode,
3790 Header: res.Header,
3791 })
3792 }
3793 if err != nil {
3794 return nil, err
3795 }
3796 defer googleapi.CloseBody(res)
3797 if err := googleapi.CheckResponse(res); err != nil {
3798 return nil, gensupport.WrapError(err)
3799 }
3800 ret := &Operation{
3801 ServerResponse: googleapi.ServerResponse{
3802 Header: res.Header,
3803 HTTPStatusCode: res.StatusCode,
3804 },
3805 }
3806 target := &ret
3807 if err := gensupport.DecodeResponse(target, res); err != nil {
3808 return nil, err
3809 }
3810 return ret, nil
3811 }
3812
3813 type ProjectsLocationsOperationsListCall struct {
3814 s *APIService
3815 projectsId string
3816 locationsId string
3817 urlParams_ gensupport.URLParams
3818 ifNoneMatch_ string
3819 ctx_ context.Context
3820 header_ http.Header
3821 }
3822
3823
3824
3825
3826
3827
3828 func (r *ProjectsLocationsOperationsService) List(projectsId string, locationsId string) *ProjectsLocationsOperationsListCall {
3829 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3830 c.projectsId = projectsId
3831 c.locationsId = locationsId
3832 return c
3833 }
3834
3835
3836 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
3837 c.urlParams_.Set("filter", filter)
3838 return c
3839 }
3840
3841
3842
3843 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
3844 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3845 return c
3846 }
3847
3848
3849
3850 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
3851 c.urlParams_.Set("pageToken", pageToken)
3852 return c
3853 }
3854
3855
3856
3857
3858 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
3859 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3860 return c
3861 }
3862
3863
3864
3865
3866 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
3867 c.ifNoneMatch_ = entityTag
3868 return c
3869 }
3870
3871
3872 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
3873 c.ctx_ = ctx
3874 return c
3875 }
3876
3877
3878
3879 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
3880 if c.header_ == nil {
3881 c.header_ = make(http.Header)
3882 }
3883 return c.header_
3884 }
3885
3886 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
3887 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3888 if c.ifNoneMatch_ != "" {
3889 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3890 }
3891 var body io.Reader = nil
3892 c.urlParams_.Set("alt", alt)
3893 c.urlParams_.Set("prettyPrint", "false")
3894 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}/operations")
3895 urls += "?" + c.urlParams_.Encode()
3896 req, err := http.NewRequest("GET", urls, body)
3897 if err != nil {
3898 return nil, err
3899 }
3900 req.Header = reqHeaders
3901 googleapi.Expand(req.URL, map[string]string{
3902 "projectsId": c.projectsId,
3903 "locationsId": c.locationsId,
3904 })
3905 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3906 }
3907
3908
3909
3910
3911
3912
3913
3914 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
3915 gensupport.SetOptions(c.urlParams_, opts...)
3916 res, err := c.doRequest("json")
3917 if res != nil && res.StatusCode == http.StatusNotModified {
3918 if res.Body != nil {
3919 res.Body.Close()
3920 }
3921 return nil, gensupport.WrapError(&googleapi.Error{
3922 Code: res.StatusCode,
3923 Header: res.Header,
3924 })
3925 }
3926 if err != nil {
3927 return nil, err
3928 }
3929 defer googleapi.CloseBody(res)
3930 if err := googleapi.CheckResponse(res); err != nil {
3931 return nil, gensupport.WrapError(err)
3932 }
3933 ret := &ListOperationsResponse{
3934 ServerResponse: googleapi.ServerResponse{
3935 Header: res.Header,
3936 HTTPStatusCode: res.StatusCode,
3937 },
3938 }
3939 target := &ret
3940 if err := gensupport.DecodeResponse(target, res); err != nil {
3941 return nil, err
3942 }
3943 return ret, nil
3944 }
3945
3946
3947
3948
3949 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
3950 c.ctx_ = ctx
3951 defer c.PageToken(c.urlParams_.Get("pageToken"))
3952 for {
3953 x, err := c.Do()
3954 if err != nil {
3955 return err
3956 }
3957 if err := f(x); err != nil {
3958 return err
3959 }
3960 if x.NextPageToken == "" {
3961 return nil
3962 }
3963 c.PageToken(x.NextPageToken)
3964 }
3965 }
3966
View as plain text