1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 package firebaseappdistribution
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "firebaseappdistribution:v1"
90 const apiName = "firebaseappdistribution"
91 const apiVersion = "v1"
92 const basePath = "https://firebaseappdistribution.googleapis.com/"
93 const basePathTemplate = "https://firebaseappdistribution.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://firebaseappdistribution.mtls.googleapis.com/"
95
96
97 const (
98
99
100 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
101 )
102
103
104 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
105 scopesOption := internaloption.WithDefaultScopes(
106 "https://www.googleapis.com/auth/cloud-platform",
107 )
108
109 opts = append([]option.ClientOption{scopesOption}, opts...)
110 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
111 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
112 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
113 opts = append(opts, internaloption.EnableNewAuthLibrary())
114 client, endpoint, err := htransport.NewClient(ctx, opts...)
115 if err != nil {
116 return nil, err
117 }
118 s, err := New(client)
119 if err != nil {
120 return nil, err
121 }
122 if endpoint != "" {
123 s.BasePath = endpoint
124 }
125 return s, nil
126 }
127
128
129
130
131
132
133 func New(client *http.Client) (*Service, error) {
134 if client == nil {
135 return nil, errors.New("client is nil")
136 }
137 s := &Service{client: client, BasePath: basePath}
138 s.Media = NewMediaService(s)
139 s.Projects = NewProjectsService(s)
140 return s, nil
141 }
142
143 type Service struct {
144 client *http.Client
145 BasePath string
146 UserAgent string
147
148 Media *MediaService
149
150 Projects *ProjectsService
151 }
152
153 func (s *Service) userAgent() string {
154 if s.UserAgent == "" {
155 return googleapi.UserAgent
156 }
157 return googleapi.UserAgent + " " + s.UserAgent
158 }
159
160 func NewMediaService(s *Service) *MediaService {
161 rs := &MediaService{s: s}
162 return rs
163 }
164
165 type MediaService struct {
166 s *Service
167 }
168
169 func NewProjectsService(s *Service) *ProjectsService {
170 rs := &ProjectsService{s: s}
171 rs.Apps = NewProjectsAppsService(s)
172 rs.Groups = NewProjectsGroupsService(s)
173 rs.Testers = NewProjectsTestersService(s)
174 return rs
175 }
176
177 type ProjectsService struct {
178 s *Service
179
180 Apps *ProjectsAppsService
181
182 Groups *ProjectsGroupsService
183
184 Testers *ProjectsTestersService
185 }
186
187 func NewProjectsAppsService(s *Service) *ProjectsAppsService {
188 rs := &ProjectsAppsService{s: s}
189 rs.Releases = NewProjectsAppsReleasesService(s)
190 return rs
191 }
192
193 type ProjectsAppsService struct {
194 s *Service
195
196 Releases *ProjectsAppsReleasesService
197 }
198
199 func NewProjectsAppsReleasesService(s *Service) *ProjectsAppsReleasesService {
200 rs := &ProjectsAppsReleasesService{s: s}
201 rs.FeedbackReports = NewProjectsAppsReleasesFeedbackReportsService(s)
202 rs.Operations = NewProjectsAppsReleasesOperationsService(s)
203 return rs
204 }
205
206 type ProjectsAppsReleasesService struct {
207 s *Service
208
209 FeedbackReports *ProjectsAppsReleasesFeedbackReportsService
210
211 Operations *ProjectsAppsReleasesOperationsService
212 }
213
214 func NewProjectsAppsReleasesFeedbackReportsService(s *Service) *ProjectsAppsReleasesFeedbackReportsService {
215 rs := &ProjectsAppsReleasesFeedbackReportsService{s: s}
216 return rs
217 }
218
219 type ProjectsAppsReleasesFeedbackReportsService struct {
220 s *Service
221 }
222
223 func NewProjectsAppsReleasesOperationsService(s *Service) *ProjectsAppsReleasesOperationsService {
224 rs := &ProjectsAppsReleasesOperationsService{s: s}
225 return rs
226 }
227
228 type ProjectsAppsReleasesOperationsService struct {
229 s *Service
230 }
231
232 func NewProjectsGroupsService(s *Service) *ProjectsGroupsService {
233 rs := &ProjectsGroupsService{s: s}
234 return rs
235 }
236
237 type ProjectsGroupsService struct {
238 s *Service
239 }
240
241 func NewProjectsTestersService(s *Service) *ProjectsTestersService {
242 rs := &ProjectsTestersService{s: s}
243 return rs
244 }
245
246 type ProjectsTestersService struct {
247 s *Service
248 }
249
250
251 type GdataBlobstore2Info struct {
252
253 BlobGeneration int64 `json:"blobGeneration,omitempty,string"`
254
255 BlobId string `json:"blobId,omitempty"`
256
257
258
259
260 DownloadReadHandle string `json:"downloadReadHandle,omitempty"`
261
262
263 ReadToken string `json:"readToken,omitempty"`
264
265
266
267
268 UploadMetadataContainer string `json:"uploadMetadataContainer,omitempty"`
269
270
271
272
273
274 ForceSendFields []string `json:"-"`
275
276
277
278
279 NullFields []string `json:"-"`
280 }
281
282 func (s *GdataBlobstore2Info) MarshalJSON() ([]byte, error) {
283 type NoMethod GdataBlobstore2Info
284 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
285 }
286
287
288
289
290 type GdataCompositeMedia struct {
291
292
293
294
295 BlobRef string `json:"blobRef,omitempty"`
296
297
298 Blobstore2Info *GdataBlobstore2Info `json:"blobstore2Info,omitempty"`
299
300
301
302
303
304
305 CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`
306
307 Crc32cHash int64 `json:"crc32cHash,omitempty"`
308
309 Inline string `json:"inline,omitempty"`
310
311 Length int64 `json:"length,omitempty,string"`
312
313 Md5Hash string `json:"md5Hash,omitempty"`
314
315 ObjectId *GdataObjectId `json:"objectId,omitempty"`
316
317 Path string `json:"path,omitempty"`
318
319
320
321
322
323
324
325
326
327
328
329 ReferenceType string `json:"referenceType,omitempty"`
330
331 Sha1Hash string `json:"sha1Hash,omitempty"`
332
333
334
335
336
337 ForceSendFields []string `json:"-"`
338
339
340
341
342 NullFields []string `json:"-"`
343 }
344
345 func (s *GdataCompositeMedia) MarshalJSON() ([]byte, error) {
346 type NoMethod GdataCompositeMedia
347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
348 }
349
350
351
352
353
354
355 type GdataContentTypeInfo struct {
356
357 BestGuess string `json:"bestGuess,omitempty"`
358
359
360 FromBytes string `json:"fromBytes,omitempty"`
361
362
363 FromFileName string `json:"fromFileName,omitempty"`
364
365
366 FromHeader string `json:"fromHeader,omitempty"`
367
368
369
370 FromUrlPath string `json:"fromUrlPath,omitempty"`
371
372
373
374
375
376 ForceSendFields []string `json:"-"`
377
378
379
380
381 NullFields []string `json:"-"`
382 }
383
384 func (s *GdataContentTypeInfo) MarshalJSON() ([]byte, error) {
385 type NoMethod GdataContentTypeInfo
386 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
387 }
388
389
390
391
392 type GdataDiffChecksumsResponse struct {
393
394
395
396
397
398
399 ChecksumsLocation *GdataCompositeMedia `json:"checksumsLocation,omitempty"`
400
401 ChunkSizeBytes int64 `json:"chunkSizeBytes,omitempty,string"`
402
403
404 ObjectLocation *GdataCompositeMedia `json:"objectLocation,omitempty"`
405
406 ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`
407
408
409 ObjectVersion string `json:"objectVersion,omitempty"`
410
411
412
413
414
415 ForceSendFields []string `json:"-"`
416
417
418
419
420 NullFields []string `json:"-"`
421 }
422
423 func (s *GdataDiffChecksumsResponse) MarshalJSON() ([]byte, error) {
424 type NoMethod GdataDiffChecksumsResponse
425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
426 }
427
428
429
430
431 type GdataDiffDownloadResponse struct {
432
433 ObjectLocation *GdataCompositeMedia `json:"objectLocation,omitempty"`
434
435
436
437
438
439 ForceSendFields []string `json:"-"`
440
441
442
443
444 NullFields []string `json:"-"`
445 }
446
447 func (s *GdataDiffDownloadResponse) MarshalJSON() ([]byte, error) {
448 type NoMethod GdataDiffDownloadResponse
449 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
450 }
451
452
453
454 type GdataDiffUploadRequest struct {
455
456
457
458
459 ChecksumsInfo *GdataCompositeMedia `json:"checksumsInfo,omitempty"`
460
461
462
463 ObjectInfo *GdataCompositeMedia `json:"objectInfo,omitempty"`
464
465
466
467 ObjectVersion string `json:"objectVersion,omitempty"`
468
469
470
471
472
473 ForceSendFields []string `json:"-"`
474
475
476
477
478 NullFields []string `json:"-"`
479 }
480
481 func (s *GdataDiffUploadRequest) MarshalJSON() ([]byte, error) {
482 type NoMethod GdataDiffUploadRequest
483 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
484 }
485
486
487
488 type GdataDiffUploadResponse struct {
489
490
491
492
493 ObjectVersion string `json:"objectVersion,omitempty"`
494
495
496 OriginalObject *GdataCompositeMedia `json:"originalObject,omitempty"`
497
498
499
500
501
502 ForceSendFields []string `json:"-"`
503
504
505
506
507 NullFields []string `json:"-"`
508 }
509
510 func (s *GdataDiffUploadResponse) MarshalJSON() ([]byte, error) {
511 type NoMethod GdataDiffUploadResponse
512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
513 }
514
515
516
517
518 type GdataDiffVersionResponse struct {
519
520 ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`
521
522 ObjectVersion string `json:"objectVersion,omitempty"`
523
524
525
526
527
528 ForceSendFields []string `json:"-"`
529
530
531
532
533 NullFields []string `json:"-"`
534 }
535
536 func (s *GdataDiffVersionResponse) MarshalJSON() ([]byte, error) {
537 type NoMethod GdataDiffVersionResponse
538 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
539 }
540
541
542 type GdataDownloadParameters struct {
543
544
545
546
547 AllowGzipCompression bool `json:"allowGzipCompression,omitempty"`
548
549
550 IgnoreRange bool `json:"ignoreRange,omitempty"`
551
552
553
554
555
556 ForceSendFields []string `json:"-"`
557
558
559
560
561 NullFields []string `json:"-"`
562 }
563
564 func (s *GdataDownloadParameters) MarshalJSON() ([]byte, error) {
565 type NoMethod GdataDownloadParameters
566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
567 }
568
569
570
571 type GdataMedia struct {
572
573
574
575 Algorithm string `json:"algorithm,omitempty"`
576
577 BigstoreObjectRef string `json:"bigstoreObjectRef,omitempty"`
578
579
580
581
582 BlobRef string `json:"blobRef,omitempty"`
583
584
585 Blobstore2Info *GdataBlobstore2Info `json:"blobstore2Info,omitempty"`
586
587
588
589
590 CompositeMedia []*GdataCompositeMedia `json:"compositeMedia,omitempty"`
591
592 ContentType string `json:"contentType,omitempty"`
593
594
595 ContentTypeInfo *GdataContentTypeInfo `json:"contentTypeInfo,omitempty"`
596
597
598
599
600
601
602 CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`
603
604
605
606
607
608 Crc32cHash int64 `json:"crc32cHash,omitempty"`
609
610 DiffChecksumsResponse *GdataDiffChecksumsResponse `json:"diffChecksumsResponse,omitempty"`
611
612 DiffDownloadResponse *GdataDiffDownloadResponse `json:"diffDownloadResponse,omitempty"`
613
614 DiffUploadRequest *GdataDiffUploadRequest `json:"diffUploadRequest,omitempty"`
615
616 DiffUploadResponse *GdataDiffUploadResponse `json:"diffUploadResponse,omitempty"`
617
618 DiffVersionResponse *GdataDiffVersionResponse `json:"diffVersionResponse,omitempty"`
619
620 DownloadParameters *GdataDownloadParameters `json:"downloadParameters,omitempty"`
621
622 Filename string `json:"filename,omitempty"`
623
624
625
626
627
628 Hash string `json:"hash,omitempty"`
629
630
631
632
633
634 HashVerified bool `json:"hashVerified,omitempty"`
635
636 Inline string `json:"inline,omitempty"`
637
638
639
640
641
642 IsPotentialRetry bool `json:"isPotentialRetry,omitempty"`
643
644 Length int64 `json:"length,omitempty,string"`
645
646 Md5Hash string `json:"md5Hash,omitempty"`
647
648
649 MediaId string `json:"mediaId,omitempty"`
650
651 ObjectId *GdataObjectId `json:"objectId,omitempty"`
652
653 Path string `json:"path,omitempty"`
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684 ReferenceType string `json:"referenceType,omitempty"`
685
686 Sha1Hash string `json:"sha1Hash,omitempty"`
687
688 Sha256Hash string `json:"sha256Hash,omitempty"`
689
690
691 Timestamp uint64 `json:"timestamp,omitempty,string"`
692
693 Token string `json:"token,omitempty"`
694
695
696
697
698
699 ForceSendFields []string `json:"-"`
700
701
702
703
704 NullFields []string `json:"-"`
705 }
706
707 func (s *GdataMedia) MarshalJSON() ([]byte, error) {
708 type NoMethod GdataMedia
709 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
710 }
711
712
713
714
715 type GdataObjectId struct {
716
717 BucketName string `json:"bucketName,omitempty"`
718
719
720
721
722 Generation int64 `json:"generation,omitempty,string"`
723
724 ObjectName string `json:"objectName,omitempty"`
725
726
727
728
729
730 ForceSendFields []string `json:"-"`
731
732
733
734
735 NullFields []string `json:"-"`
736 }
737
738 func (s *GdataObjectId) MarshalJSON() ([]byte, error) {
739 type NoMethod GdataObjectId
740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
741 }
742
743
744
745 type GoogleFirebaseAppdistroV1AabInfo struct {
746
747
748
749
750
751
752
753
754
755
756
757
758
759 IntegrationState string `json:"integrationState,omitempty"`
760
761
762 Name string `json:"name,omitempty"`
763
764
765 TestCertificate *GoogleFirebaseAppdistroV1TestCertificate `json:"testCertificate,omitempty"`
766
767
768 googleapi.ServerResponse `json:"-"`
769
770
771
772
773
774 ForceSendFields []string `json:"-"`
775
776
777
778
779 NullFields []string `json:"-"`
780 }
781
782 func (s *GoogleFirebaseAppdistroV1AabInfo) MarshalJSON() ([]byte, error) {
783 type NoMethod GoogleFirebaseAppdistroV1AabInfo
784 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
785 }
786
787
788
789 type GoogleFirebaseAppdistroV1BatchAddTestersRequest struct {
790
791
792 Emails []string `json:"emails,omitempty"`
793
794
795
796
797
798 ForceSendFields []string `json:"-"`
799
800
801
802
803 NullFields []string `json:"-"`
804 }
805
806 func (s *GoogleFirebaseAppdistroV1BatchAddTestersRequest) MarshalJSON() ([]byte, error) {
807 type NoMethod GoogleFirebaseAppdistroV1BatchAddTestersRequest
808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
809 }
810
811
812
813 type GoogleFirebaseAppdistroV1BatchAddTestersResponse struct {
814
815 Testers []*GoogleFirebaseAppdistroV1Tester `json:"testers,omitempty"`
816
817
818 googleapi.ServerResponse `json:"-"`
819
820
821
822
823
824 ForceSendFields []string `json:"-"`
825
826
827
828
829 NullFields []string `json:"-"`
830 }
831
832 func (s *GoogleFirebaseAppdistroV1BatchAddTestersResponse) MarshalJSON() ([]byte, error) {
833 type NoMethod GoogleFirebaseAppdistroV1BatchAddTestersResponse
834 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
835 }
836
837
838
839 type GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest struct {
840
841
842
843 Names []string `json:"names,omitempty"`
844
845
846
847
848
849 ForceSendFields []string `json:"-"`
850
851
852
853
854 NullFields []string `json:"-"`
855 }
856
857 func (s *GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest) MarshalJSON() ([]byte, error) {
858 type NoMethod GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest
859 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
860 }
861
862
863
864 type GoogleFirebaseAppdistroV1BatchJoinGroupRequest struct {
865
866
867 CreateMissingTesters bool `json:"createMissingTesters,omitempty"`
868
869
870 Emails []string `json:"emails,omitempty"`
871
872
873
874
875
876 ForceSendFields []string `json:"-"`
877
878
879
880
881 NullFields []string `json:"-"`
882 }
883
884 func (s *GoogleFirebaseAppdistroV1BatchJoinGroupRequest) MarshalJSON() ([]byte, error) {
885 type NoMethod GoogleFirebaseAppdistroV1BatchJoinGroupRequest
886 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
887 }
888
889
890
891 type GoogleFirebaseAppdistroV1BatchLeaveGroupRequest struct {
892
893
894
895 Emails []string `json:"emails,omitempty"`
896
897
898
899
900
901 ForceSendFields []string `json:"-"`
902
903
904
905
906 NullFields []string `json:"-"`
907 }
908
909 func (s *GoogleFirebaseAppdistroV1BatchLeaveGroupRequest) MarshalJSON() ([]byte, error) {
910 type NoMethod GoogleFirebaseAppdistroV1BatchLeaveGroupRequest
911 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
912 }
913
914
915
916 type GoogleFirebaseAppdistroV1BatchRemoveTestersRequest struct {
917
918
919 Emails []string `json:"emails,omitempty"`
920
921
922
923
924
925 ForceSendFields []string `json:"-"`
926
927
928
929
930 NullFields []string `json:"-"`
931 }
932
933 func (s *GoogleFirebaseAppdistroV1BatchRemoveTestersRequest) MarshalJSON() ([]byte, error) {
934 type NoMethod GoogleFirebaseAppdistroV1BatchRemoveTestersRequest
935 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
936 }
937
938
939
940 type GoogleFirebaseAppdistroV1BatchRemoveTestersResponse struct {
941
942 Emails []string `json:"emails,omitempty"`
943
944
945 googleapi.ServerResponse `json:"-"`
946
947
948
949
950
951 ForceSendFields []string `json:"-"`
952
953
954
955
956 NullFields []string `json:"-"`
957 }
958
959 func (s *GoogleFirebaseAppdistroV1BatchRemoveTestersResponse) MarshalJSON() ([]byte, error) {
960 type NoMethod GoogleFirebaseAppdistroV1BatchRemoveTestersResponse
961 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
962 }
963
964
965
966 type GoogleFirebaseAppdistroV1DistributeReleaseRequest struct {
967
968
969
970 GroupAliases []string `json:"groupAliases,omitempty"`
971
972
973
974 TesterEmails []string `json:"testerEmails,omitempty"`
975
976
977
978
979
980 ForceSendFields []string `json:"-"`
981
982
983
984
985 NullFields []string `json:"-"`
986 }
987
988 func (s *GoogleFirebaseAppdistroV1DistributeReleaseRequest) MarshalJSON() ([]byte, error) {
989 type NoMethod GoogleFirebaseAppdistroV1DistributeReleaseRequest
990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
991 }
992
993
994
995 type GoogleFirebaseAppdistroV1DistributeReleaseResponse struct {
996
997 googleapi.ServerResponse `json:"-"`
998 }
999
1000
1001
1002 type GoogleFirebaseAppdistroV1FeedbackReport struct {
1003
1004 CreateTime string `json:"createTime,omitempty"`
1005
1006
1007 FirebaseConsoleUri string `json:"firebaseConsoleUri,omitempty"`
1008
1009
1010
1011 Name string `json:"name,omitempty"`
1012
1013
1014 ScreenshotUri string `json:"screenshotUri,omitempty"`
1015
1016
1017 Tester string `json:"tester,omitempty"`
1018
1019 Text string `json:"text,omitempty"`
1020
1021
1022 googleapi.ServerResponse `json:"-"`
1023
1024
1025
1026
1027
1028 ForceSendFields []string `json:"-"`
1029
1030
1031
1032
1033 NullFields []string `json:"-"`
1034 }
1035
1036 func (s *GoogleFirebaseAppdistroV1FeedbackReport) MarshalJSON() ([]byte, error) {
1037 type NoMethod GoogleFirebaseAppdistroV1FeedbackReport
1038 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1039 }
1040
1041
1042
1043 type GoogleFirebaseAppdistroV1Group struct {
1044
1045 DisplayName string `json:"displayName,omitempty"`
1046
1047 InviteLinkCount int64 `json:"inviteLinkCount,omitempty"`
1048
1049
1050 Name string `json:"name,omitempty"`
1051
1052
1053 ReleaseCount int64 `json:"releaseCount,omitempty"`
1054
1055
1056 TesterCount int64 `json:"testerCount,omitempty"`
1057
1058
1059 googleapi.ServerResponse `json:"-"`
1060
1061
1062
1063
1064
1065 ForceSendFields []string `json:"-"`
1066
1067
1068
1069
1070 NullFields []string `json:"-"`
1071 }
1072
1073 func (s *GoogleFirebaseAppdistroV1Group) MarshalJSON() ([]byte, error) {
1074 type NoMethod GoogleFirebaseAppdistroV1Group
1075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1076 }
1077
1078
1079
1080 type GoogleFirebaseAppdistroV1ListFeedbackReportsResponse struct {
1081
1082 FeedbackReports []*GoogleFirebaseAppdistroV1FeedbackReport `json:"feedbackReports,omitempty"`
1083
1084
1085
1086 NextPageToken string `json:"nextPageToken,omitempty"`
1087
1088
1089 googleapi.ServerResponse `json:"-"`
1090
1091
1092
1093
1094
1095 ForceSendFields []string `json:"-"`
1096
1097
1098
1099
1100 NullFields []string `json:"-"`
1101 }
1102
1103 func (s *GoogleFirebaseAppdistroV1ListFeedbackReportsResponse) MarshalJSON() ([]byte, error) {
1104 type NoMethod GoogleFirebaseAppdistroV1ListFeedbackReportsResponse
1105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1106 }
1107
1108
1109
1110 type GoogleFirebaseAppdistroV1ListGroupsResponse struct {
1111
1112 Groups []*GoogleFirebaseAppdistroV1Group `json:"groups,omitempty"`
1113
1114
1115
1116 NextPageToken string `json:"nextPageToken,omitempty"`
1117
1118
1119 googleapi.ServerResponse `json:"-"`
1120
1121
1122
1123
1124
1125 ForceSendFields []string `json:"-"`
1126
1127
1128
1129
1130 NullFields []string `json:"-"`
1131 }
1132
1133 func (s *GoogleFirebaseAppdistroV1ListGroupsResponse) MarshalJSON() ([]byte, error) {
1134 type NoMethod GoogleFirebaseAppdistroV1ListGroupsResponse
1135 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1136 }
1137
1138
1139
1140 type GoogleFirebaseAppdistroV1ListReleasesResponse struct {
1141
1142
1143
1144 NextPageToken string `json:"nextPageToken,omitempty"`
1145
1146 Releases []*GoogleFirebaseAppdistroV1Release `json:"releases,omitempty"`
1147
1148
1149 googleapi.ServerResponse `json:"-"`
1150
1151
1152
1153
1154
1155 ForceSendFields []string `json:"-"`
1156
1157
1158
1159
1160 NullFields []string `json:"-"`
1161 }
1162
1163 func (s *GoogleFirebaseAppdistroV1ListReleasesResponse) MarshalJSON() ([]byte, error) {
1164 type NoMethod GoogleFirebaseAppdistroV1ListReleasesResponse
1165 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1166 }
1167
1168
1169
1170 type GoogleFirebaseAppdistroV1ListTestersResponse struct {
1171
1172
1173
1174 NextPageToken string `json:"nextPageToken,omitempty"`
1175
1176 Testers []*GoogleFirebaseAppdistroV1Tester `json:"testers,omitempty"`
1177
1178
1179 googleapi.ServerResponse `json:"-"`
1180
1181
1182
1183
1184
1185 ForceSendFields []string `json:"-"`
1186
1187
1188
1189
1190 NullFields []string `json:"-"`
1191 }
1192
1193 func (s *GoogleFirebaseAppdistroV1ListTestersResponse) MarshalJSON() ([]byte, error) {
1194 type NoMethod GoogleFirebaseAppdistroV1ListTestersResponse
1195 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1196 }
1197
1198
1199 type GoogleFirebaseAppdistroV1Release struct {
1200
1201
1202 BinaryDownloadUri string `json:"binaryDownloadUri,omitempty"`
1203
1204
1205
1206 BuildVersion string `json:"buildVersion,omitempty"`
1207
1208 CreateTime string `json:"createTime,omitempty"`
1209
1210
1211
1212 DisplayVersion string `json:"displayVersion,omitempty"`
1213
1214
1215 FirebaseConsoleUri string `json:"firebaseConsoleUri,omitempty"`
1216
1217
1218 Name string `json:"name,omitempty"`
1219
1220 ReleaseNotes *GoogleFirebaseAppdistroV1ReleaseNotes `json:"releaseNotes,omitempty"`
1221
1222
1223
1224 TestingUri string `json:"testingUri,omitempty"`
1225
1226
1227 googleapi.ServerResponse `json:"-"`
1228
1229
1230
1231
1232
1233 ForceSendFields []string `json:"-"`
1234
1235
1236
1237
1238 NullFields []string `json:"-"`
1239 }
1240
1241 func (s *GoogleFirebaseAppdistroV1Release) MarshalJSON() ([]byte, error) {
1242 type NoMethod GoogleFirebaseAppdistroV1Release
1243 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1244 }
1245
1246
1247 type GoogleFirebaseAppdistroV1ReleaseNotes struct {
1248
1249 Text string `json:"text,omitempty"`
1250
1251
1252
1253
1254
1255 ForceSendFields []string `json:"-"`
1256
1257
1258
1259
1260 NullFields []string `json:"-"`
1261 }
1262
1263 func (s *GoogleFirebaseAppdistroV1ReleaseNotes) MarshalJSON() ([]byte, error) {
1264 type NoMethod GoogleFirebaseAppdistroV1ReleaseNotes
1265 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1266 }
1267
1268
1269 type GoogleFirebaseAppdistroV1TestCertificate struct {
1270
1271
1272 HashMd5 string `json:"hashMd5,omitempty"`
1273
1274
1275 HashSha1 string `json:"hashSha1,omitempty"`
1276
1277
1278 HashSha256 string `json:"hashSha256,omitempty"`
1279
1280
1281
1282
1283
1284 ForceSendFields []string `json:"-"`
1285
1286
1287
1288
1289 NullFields []string `json:"-"`
1290 }
1291
1292 func (s *GoogleFirebaseAppdistroV1TestCertificate) MarshalJSON() ([]byte, error) {
1293 type NoMethod GoogleFirebaseAppdistroV1TestCertificate
1294 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1295 }
1296
1297
1298
1299 type GoogleFirebaseAppdistroV1Tester struct {
1300
1301
1302 DisplayName string `json:"displayName,omitempty"`
1303
1304 Groups []string `json:"groups,omitempty"`
1305
1306
1307
1308
1309 LastActivityTime string `json:"lastActivityTime,omitempty"`
1310
1311
1312 Name string `json:"name,omitempty"`
1313
1314
1315 googleapi.ServerResponse `json:"-"`
1316
1317
1318
1319
1320
1321 ForceSendFields []string `json:"-"`
1322
1323
1324
1325
1326 NullFields []string `json:"-"`
1327 }
1328
1329 func (s *GoogleFirebaseAppdistroV1Tester) MarshalJSON() ([]byte, error) {
1330 type NoMethod GoogleFirebaseAppdistroV1Tester
1331 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1332 }
1333
1334
1335
1336 type GoogleFirebaseAppdistroV1UploadReleaseMetadata struct {
1337 }
1338
1339
1340
1341 type GoogleFirebaseAppdistroV1UploadReleaseRequest struct {
1342
1343 Blob *GdataMedia `json:"blob,omitempty"`
1344
1345
1346
1347
1348
1349 ForceSendFields []string `json:"-"`
1350
1351
1352
1353
1354 NullFields []string `json:"-"`
1355 }
1356
1357 func (s *GoogleFirebaseAppdistroV1UploadReleaseRequest) MarshalJSON() ([]byte, error) {
1358 type NoMethod GoogleFirebaseAppdistroV1UploadReleaseRequest
1359 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1360 }
1361
1362
1363
1364 type GoogleFirebaseAppdistroV1UploadReleaseResponse struct {
1365
1366 Release *GoogleFirebaseAppdistroV1Release `json:"release,omitempty"`
1367
1368
1369
1370
1371
1372
1373
1374
1375 Result string `json:"result,omitempty"`
1376
1377
1378
1379
1380
1381 ForceSendFields []string `json:"-"`
1382
1383
1384
1385
1386 NullFields []string `json:"-"`
1387 }
1388
1389 func (s *GoogleFirebaseAppdistroV1UploadReleaseResponse) MarshalJSON() ([]byte, error) {
1390 type NoMethod GoogleFirebaseAppdistroV1UploadReleaseResponse
1391 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1392 }
1393
1394
1395
1396 type GoogleLongrunningCancelOperationRequest struct {
1397 }
1398
1399
1400
1401 type GoogleLongrunningListOperationsResponse struct {
1402
1403 NextPageToken string `json:"nextPageToken,omitempty"`
1404
1405
1406 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
1407
1408
1409 googleapi.ServerResponse `json:"-"`
1410
1411
1412
1413
1414
1415 ForceSendFields []string `json:"-"`
1416
1417
1418
1419
1420 NullFields []string `json:"-"`
1421 }
1422
1423 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
1424 type NoMethod GoogleLongrunningListOperationsResponse
1425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1426 }
1427
1428
1429
1430 type GoogleLongrunningOperation struct {
1431
1432
1433
1434 Done bool `json:"done,omitempty"`
1435
1436 Error *GoogleRpcStatus `json:"error,omitempty"`
1437
1438
1439
1440
1441 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
1442
1443
1444
1445 Name string `json:"name,omitempty"`
1446
1447
1448
1449
1450
1451
1452
1453 Response googleapi.RawMessage `json:"response,omitempty"`
1454
1455
1456 googleapi.ServerResponse `json:"-"`
1457
1458
1459
1460
1461
1462 ForceSendFields []string `json:"-"`
1463
1464
1465
1466
1467 NullFields []string `json:"-"`
1468 }
1469
1470 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
1471 type NoMethod GoogleLongrunningOperation
1472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1473 }
1474
1475
1476
1477 type GoogleLongrunningWaitOperationRequest struct {
1478
1479
1480
1481 Timeout string `json:"timeout,omitempty"`
1482
1483
1484
1485
1486
1487 ForceSendFields []string `json:"-"`
1488
1489
1490
1491
1492 NullFields []string `json:"-"`
1493 }
1494
1495 func (s *GoogleLongrunningWaitOperationRequest) MarshalJSON() ([]byte, error) {
1496 type NoMethod GoogleLongrunningWaitOperationRequest
1497 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1498 }
1499
1500
1501
1502
1503
1504
1505 type GoogleProtobufEmpty struct {
1506
1507 googleapi.ServerResponse `json:"-"`
1508 }
1509
1510
1511
1512
1513
1514
1515
1516 type GoogleRpcStatus struct {
1517
1518 Code int64 `json:"code,omitempty"`
1519
1520
1521 Details []googleapi.RawMessage `json:"details,omitempty"`
1522
1523
1524
1525 Message string `json:"message,omitempty"`
1526
1527
1528
1529
1530
1531 ForceSendFields []string `json:"-"`
1532
1533
1534
1535
1536 NullFields []string `json:"-"`
1537 }
1538
1539 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
1540 type NoMethod GoogleRpcStatus
1541 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1542 }
1543
1544 type MediaUploadCall struct {
1545 s *Service
1546 app string
1547 googlefirebaseappdistrov1uploadreleaserequest *GoogleFirebaseAppdistroV1UploadReleaseRequest
1548 urlParams_ gensupport.URLParams
1549 mediaInfo_ *gensupport.MediaInfo
1550 ctx_ context.Context
1551 header_ http.Header
1552 }
1553
1554
1555
1556
1557
1558
1559
1560 func (r *MediaService) Upload(app string, googlefirebaseappdistrov1uploadreleaserequest *GoogleFirebaseAppdistroV1UploadReleaseRequest) *MediaUploadCall {
1561 c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1562 c.app = app
1563 c.googlefirebaseappdistrov1uploadreleaserequest = googlefirebaseappdistrov1uploadreleaserequest
1564 return c
1565 }
1566
1567
1568
1569
1570
1571
1572
1573
1574 func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall {
1575 c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
1576 return c
1577 }
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588 func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall {
1589 c.ctx_ = ctx
1590 c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
1591 return c
1592 }
1593
1594
1595
1596
1597
1598 func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall {
1599 c.mediaInfo_.SetProgressUpdater(pu)
1600 return c
1601 }
1602
1603
1604
1605
1606 func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall {
1607 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1608 return c
1609 }
1610
1611
1612
1613
1614 func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall {
1615 c.ctx_ = ctx
1616 return c
1617 }
1618
1619
1620
1621 func (c *MediaUploadCall) Header() http.Header {
1622 if c.header_ == nil {
1623 c.header_ = make(http.Header)
1624 }
1625 return c.header_
1626 }
1627
1628 func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) {
1629 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
1630 var body io.Reader = nil
1631 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1uploadreleaserequest)
1632 if err != nil {
1633 return nil, err
1634 }
1635 c.urlParams_.Set("alt", alt)
1636 c.urlParams_.Set("prettyPrint", "false")
1637 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+app}/releases:upload")
1638 if c.mediaInfo_ != nil {
1639 urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/v1/{+app}/releases:upload")
1640 c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
1641 }
1642 if body == nil {
1643 body = new(bytes.Buffer)
1644 reqHeaders.Set("Content-Type", "application/json")
1645 }
1646 body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
1647 defer cleanup()
1648 urls += "?" + c.urlParams_.Encode()
1649 req, err := http.NewRequest("POST", urls, body)
1650 if err != nil {
1651 return nil, err
1652 }
1653 req.Header = reqHeaders
1654 req.GetBody = getBody
1655 googleapi.Expand(req.URL, map[string]string{
1656 "app": c.app,
1657 })
1658 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1659 }
1660
1661
1662
1663
1664
1665
1666
1667 func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
1668 gensupport.SetOptions(c.urlParams_, opts...)
1669 res, err := c.doRequest("json")
1670 if res != nil && res.StatusCode == http.StatusNotModified {
1671 if res.Body != nil {
1672 res.Body.Close()
1673 }
1674 return nil, gensupport.WrapError(&googleapi.Error{
1675 Code: res.StatusCode,
1676 Header: res.Header,
1677 })
1678 }
1679 if err != nil {
1680 return nil, err
1681 }
1682 defer googleapi.CloseBody(res)
1683 if err := googleapi.CheckResponse(res); err != nil {
1684 return nil, gensupport.WrapError(err)
1685 }
1686 rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
1687 if rx != nil {
1688 rx.Client = c.s.client
1689 rx.UserAgent = c.s.userAgent()
1690 ctx := c.ctx_
1691 if ctx == nil {
1692 ctx = context.TODO()
1693 }
1694 res, err = rx.Upload(ctx)
1695 if err != nil {
1696 return nil, err
1697 }
1698 defer res.Body.Close()
1699 if err := googleapi.CheckResponse(res); err != nil {
1700 return nil, gensupport.WrapError(err)
1701 }
1702 }
1703 ret := &GoogleLongrunningOperation{
1704 ServerResponse: googleapi.ServerResponse{
1705 Header: res.Header,
1706 HTTPStatusCode: res.StatusCode,
1707 },
1708 }
1709 target := &ret
1710 if err := gensupport.DecodeResponse(target, res); err != nil {
1711 return nil, err
1712 }
1713 return ret, nil
1714 }
1715
1716 type ProjectsAppsGetAabInfoCall struct {
1717 s *Service
1718 name string
1719 urlParams_ gensupport.URLParams
1720 ifNoneMatch_ string
1721 ctx_ context.Context
1722 header_ http.Header
1723 }
1724
1725
1726
1727
1728
1729 func (r *ProjectsAppsService) GetAabInfo(name string) *ProjectsAppsGetAabInfoCall {
1730 c := &ProjectsAppsGetAabInfoCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1731 c.name = name
1732 return c
1733 }
1734
1735
1736
1737
1738 func (c *ProjectsAppsGetAabInfoCall) Fields(s ...googleapi.Field) *ProjectsAppsGetAabInfoCall {
1739 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1740 return c
1741 }
1742
1743
1744
1745
1746 func (c *ProjectsAppsGetAabInfoCall) IfNoneMatch(entityTag string) *ProjectsAppsGetAabInfoCall {
1747 c.ifNoneMatch_ = entityTag
1748 return c
1749 }
1750
1751
1752 func (c *ProjectsAppsGetAabInfoCall) Context(ctx context.Context) *ProjectsAppsGetAabInfoCall {
1753 c.ctx_ = ctx
1754 return c
1755 }
1756
1757
1758
1759 func (c *ProjectsAppsGetAabInfoCall) Header() http.Header {
1760 if c.header_ == nil {
1761 c.header_ = make(http.Header)
1762 }
1763 return c.header_
1764 }
1765
1766 func (c *ProjectsAppsGetAabInfoCall) doRequest(alt string) (*http.Response, error) {
1767 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1768 if c.ifNoneMatch_ != "" {
1769 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1770 }
1771 var body io.Reader = nil
1772 c.urlParams_.Set("alt", alt)
1773 c.urlParams_.Set("prettyPrint", "false")
1774 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
1775 urls += "?" + c.urlParams_.Encode()
1776 req, err := http.NewRequest("GET", urls, body)
1777 if err != nil {
1778 return nil, err
1779 }
1780 req.Header = reqHeaders
1781 googleapi.Expand(req.URL, map[string]string{
1782 "name": c.name,
1783 })
1784 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1785 }
1786
1787
1788
1789
1790
1791
1792
1793 func (c *ProjectsAppsGetAabInfoCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1AabInfo, error) {
1794 gensupport.SetOptions(c.urlParams_, opts...)
1795 res, err := c.doRequest("json")
1796 if res != nil && res.StatusCode == http.StatusNotModified {
1797 if res.Body != nil {
1798 res.Body.Close()
1799 }
1800 return nil, gensupport.WrapError(&googleapi.Error{
1801 Code: res.StatusCode,
1802 Header: res.Header,
1803 })
1804 }
1805 if err != nil {
1806 return nil, err
1807 }
1808 defer googleapi.CloseBody(res)
1809 if err := googleapi.CheckResponse(res); err != nil {
1810 return nil, gensupport.WrapError(err)
1811 }
1812 ret := &GoogleFirebaseAppdistroV1AabInfo{
1813 ServerResponse: googleapi.ServerResponse{
1814 Header: res.Header,
1815 HTTPStatusCode: res.StatusCode,
1816 },
1817 }
1818 target := &ret
1819 if err := gensupport.DecodeResponse(target, res); err != nil {
1820 return nil, err
1821 }
1822 return ret, nil
1823 }
1824
1825 type ProjectsAppsReleasesBatchDeleteCall struct {
1826 s *Service
1827 parent string
1828 googlefirebaseappdistrov1batchdeletereleasesrequest *GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest
1829 urlParams_ gensupport.URLParams
1830 ctx_ context.Context
1831 header_ http.Header
1832 }
1833
1834
1835
1836
1837
1838
1839 func (r *ProjectsAppsReleasesService) BatchDelete(parent string, googlefirebaseappdistrov1batchdeletereleasesrequest *GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest) *ProjectsAppsReleasesBatchDeleteCall {
1840 c := &ProjectsAppsReleasesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1841 c.parent = parent
1842 c.googlefirebaseappdistrov1batchdeletereleasesrequest = googlefirebaseappdistrov1batchdeletereleasesrequest
1843 return c
1844 }
1845
1846
1847
1848
1849 func (c *ProjectsAppsReleasesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesBatchDeleteCall {
1850 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1851 return c
1852 }
1853
1854
1855 func (c *ProjectsAppsReleasesBatchDeleteCall) Context(ctx context.Context) *ProjectsAppsReleasesBatchDeleteCall {
1856 c.ctx_ = ctx
1857 return c
1858 }
1859
1860
1861
1862 func (c *ProjectsAppsReleasesBatchDeleteCall) Header() http.Header {
1863 if c.header_ == nil {
1864 c.header_ = make(http.Header)
1865 }
1866 return c.header_
1867 }
1868
1869 func (c *ProjectsAppsReleasesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
1870 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
1871 var body io.Reader = nil
1872 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchdeletereleasesrequest)
1873 if err != nil {
1874 return nil, err
1875 }
1876 c.urlParams_.Set("alt", alt)
1877 c.urlParams_.Set("prettyPrint", "false")
1878 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/releases:batchDelete")
1879 urls += "?" + c.urlParams_.Encode()
1880 req, err := http.NewRequest("POST", urls, body)
1881 if err != nil {
1882 return nil, err
1883 }
1884 req.Header = reqHeaders
1885 googleapi.Expand(req.URL, map[string]string{
1886 "parent": c.parent,
1887 })
1888 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1889 }
1890
1891
1892
1893
1894
1895
1896
1897 func (c *ProjectsAppsReleasesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
1898 gensupport.SetOptions(c.urlParams_, opts...)
1899 res, err := c.doRequest("json")
1900 if res != nil && res.StatusCode == http.StatusNotModified {
1901 if res.Body != nil {
1902 res.Body.Close()
1903 }
1904 return nil, gensupport.WrapError(&googleapi.Error{
1905 Code: res.StatusCode,
1906 Header: res.Header,
1907 })
1908 }
1909 if err != nil {
1910 return nil, err
1911 }
1912 defer googleapi.CloseBody(res)
1913 if err := googleapi.CheckResponse(res); err != nil {
1914 return nil, gensupport.WrapError(err)
1915 }
1916 ret := &GoogleProtobufEmpty{
1917 ServerResponse: googleapi.ServerResponse{
1918 Header: res.Header,
1919 HTTPStatusCode: res.StatusCode,
1920 },
1921 }
1922 target := &ret
1923 if err := gensupport.DecodeResponse(target, res); err != nil {
1924 return nil, err
1925 }
1926 return ret, nil
1927 }
1928
1929 type ProjectsAppsReleasesDistributeCall struct {
1930 s *Service
1931 name string
1932 googlefirebaseappdistrov1distributereleaserequest *GoogleFirebaseAppdistroV1DistributeReleaseRequest
1933 urlParams_ gensupport.URLParams
1934 ctx_ context.Context
1935 header_ http.Header
1936 }
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946 func (r *ProjectsAppsReleasesService) Distribute(name string, googlefirebaseappdistrov1distributereleaserequest *GoogleFirebaseAppdistroV1DistributeReleaseRequest) *ProjectsAppsReleasesDistributeCall {
1947 c := &ProjectsAppsReleasesDistributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1948 c.name = name
1949 c.googlefirebaseappdistrov1distributereleaserequest = googlefirebaseappdistrov1distributereleaserequest
1950 return c
1951 }
1952
1953
1954
1955
1956 func (c *ProjectsAppsReleasesDistributeCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesDistributeCall {
1957 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1958 return c
1959 }
1960
1961
1962 func (c *ProjectsAppsReleasesDistributeCall) Context(ctx context.Context) *ProjectsAppsReleasesDistributeCall {
1963 c.ctx_ = ctx
1964 return c
1965 }
1966
1967
1968
1969 func (c *ProjectsAppsReleasesDistributeCall) Header() http.Header {
1970 if c.header_ == nil {
1971 c.header_ = make(http.Header)
1972 }
1973 return c.header_
1974 }
1975
1976 func (c *ProjectsAppsReleasesDistributeCall) doRequest(alt string) (*http.Response, error) {
1977 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
1978 var body io.Reader = nil
1979 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1distributereleaserequest)
1980 if err != nil {
1981 return nil, err
1982 }
1983 c.urlParams_.Set("alt", alt)
1984 c.urlParams_.Set("prettyPrint", "false")
1985 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:distribute")
1986 urls += "?" + c.urlParams_.Encode()
1987 req, err := http.NewRequest("POST", urls, body)
1988 if err != nil {
1989 return nil, err
1990 }
1991 req.Header = reqHeaders
1992 googleapi.Expand(req.URL, map[string]string{
1993 "name": c.name,
1994 })
1995 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1996 }
1997
1998
1999
2000
2001
2002
2003
2004 func (c *ProjectsAppsReleasesDistributeCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1DistributeReleaseResponse, error) {
2005 gensupport.SetOptions(c.urlParams_, opts...)
2006 res, err := c.doRequest("json")
2007 if res != nil && res.StatusCode == http.StatusNotModified {
2008 if res.Body != nil {
2009 res.Body.Close()
2010 }
2011 return nil, gensupport.WrapError(&googleapi.Error{
2012 Code: res.StatusCode,
2013 Header: res.Header,
2014 })
2015 }
2016 if err != nil {
2017 return nil, err
2018 }
2019 defer googleapi.CloseBody(res)
2020 if err := googleapi.CheckResponse(res); err != nil {
2021 return nil, gensupport.WrapError(err)
2022 }
2023 ret := &GoogleFirebaseAppdistroV1DistributeReleaseResponse{
2024 ServerResponse: googleapi.ServerResponse{
2025 Header: res.Header,
2026 HTTPStatusCode: res.StatusCode,
2027 },
2028 }
2029 target := &ret
2030 if err := gensupport.DecodeResponse(target, res); err != nil {
2031 return nil, err
2032 }
2033 return ret, nil
2034 }
2035
2036 type ProjectsAppsReleasesGetCall struct {
2037 s *Service
2038 name string
2039 urlParams_ gensupport.URLParams
2040 ifNoneMatch_ string
2041 ctx_ context.Context
2042 header_ http.Header
2043 }
2044
2045
2046
2047
2048
2049 func (r *ProjectsAppsReleasesService) Get(name string) *ProjectsAppsReleasesGetCall {
2050 c := &ProjectsAppsReleasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2051 c.name = name
2052 return c
2053 }
2054
2055
2056
2057
2058 func (c *ProjectsAppsReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesGetCall {
2059 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2060 return c
2061 }
2062
2063
2064
2065
2066 func (c *ProjectsAppsReleasesGetCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesGetCall {
2067 c.ifNoneMatch_ = entityTag
2068 return c
2069 }
2070
2071
2072 func (c *ProjectsAppsReleasesGetCall) Context(ctx context.Context) *ProjectsAppsReleasesGetCall {
2073 c.ctx_ = ctx
2074 return c
2075 }
2076
2077
2078
2079 func (c *ProjectsAppsReleasesGetCall) Header() http.Header {
2080 if c.header_ == nil {
2081 c.header_ = make(http.Header)
2082 }
2083 return c.header_
2084 }
2085
2086 func (c *ProjectsAppsReleasesGetCall) doRequest(alt string) (*http.Response, error) {
2087 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2088 if c.ifNoneMatch_ != "" {
2089 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2090 }
2091 var body io.Reader = nil
2092 c.urlParams_.Set("alt", alt)
2093 c.urlParams_.Set("prettyPrint", "false")
2094 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
2095 urls += "?" + c.urlParams_.Encode()
2096 req, err := http.NewRequest("GET", urls, body)
2097 if err != nil {
2098 return nil, err
2099 }
2100 req.Header = reqHeaders
2101 googleapi.Expand(req.URL, map[string]string{
2102 "name": c.name,
2103 })
2104 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2105 }
2106
2107
2108
2109
2110
2111
2112
2113 func (c *ProjectsAppsReleasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Release, error) {
2114 gensupport.SetOptions(c.urlParams_, opts...)
2115 res, err := c.doRequest("json")
2116 if res != nil && res.StatusCode == http.StatusNotModified {
2117 if res.Body != nil {
2118 res.Body.Close()
2119 }
2120 return nil, gensupport.WrapError(&googleapi.Error{
2121 Code: res.StatusCode,
2122 Header: res.Header,
2123 })
2124 }
2125 if err != nil {
2126 return nil, err
2127 }
2128 defer googleapi.CloseBody(res)
2129 if err := googleapi.CheckResponse(res); err != nil {
2130 return nil, gensupport.WrapError(err)
2131 }
2132 ret := &GoogleFirebaseAppdistroV1Release{
2133 ServerResponse: googleapi.ServerResponse{
2134 Header: res.Header,
2135 HTTPStatusCode: res.StatusCode,
2136 },
2137 }
2138 target := &ret
2139 if err := gensupport.DecodeResponse(target, res); err != nil {
2140 return nil, err
2141 }
2142 return ret, nil
2143 }
2144
2145 type ProjectsAppsReleasesListCall struct {
2146 s *Service
2147 parent string
2148 urlParams_ gensupport.URLParams
2149 ifNoneMatch_ string
2150 ctx_ context.Context
2151 header_ http.Header
2152 }
2153
2154
2155
2156
2157
2158 func (r *ProjectsAppsReleasesService) List(parent string) *ProjectsAppsReleasesListCall {
2159 c := &ProjectsAppsReleasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2160 c.parent = parent
2161 return c
2162 }
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172 func (c *ProjectsAppsReleasesListCall) Filter(filter string) *ProjectsAppsReleasesListCall {
2173 c.urlParams_.Set("filter", filter)
2174 return c
2175 }
2176
2177
2178
2179
2180
2181
2182 func (c *ProjectsAppsReleasesListCall) OrderBy(orderBy string) *ProjectsAppsReleasesListCall {
2183 c.urlParams_.Set("orderBy", orderBy)
2184 return c
2185 }
2186
2187
2188
2189
2190
2191 func (c *ProjectsAppsReleasesListCall) PageSize(pageSize int64) *ProjectsAppsReleasesListCall {
2192 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
2193 return c
2194 }
2195
2196
2197
2198
2199
2200 func (c *ProjectsAppsReleasesListCall) PageToken(pageToken string) *ProjectsAppsReleasesListCall {
2201 c.urlParams_.Set("pageToken", pageToken)
2202 return c
2203 }
2204
2205
2206
2207
2208 func (c *ProjectsAppsReleasesListCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesListCall {
2209 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2210 return c
2211 }
2212
2213
2214
2215
2216 func (c *ProjectsAppsReleasesListCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesListCall {
2217 c.ifNoneMatch_ = entityTag
2218 return c
2219 }
2220
2221
2222 func (c *ProjectsAppsReleasesListCall) Context(ctx context.Context) *ProjectsAppsReleasesListCall {
2223 c.ctx_ = ctx
2224 return c
2225 }
2226
2227
2228
2229 func (c *ProjectsAppsReleasesListCall) Header() http.Header {
2230 if c.header_ == nil {
2231 c.header_ = make(http.Header)
2232 }
2233 return c.header_
2234 }
2235
2236 func (c *ProjectsAppsReleasesListCall) doRequest(alt string) (*http.Response, error) {
2237 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2238 if c.ifNoneMatch_ != "" {
2239 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2240 }
2241 var body io.Reader = nil
2242 c.urlParams_.Set("alt", alt)
2243 c.urlParams_.Set("prettyPrint", "false")
2244 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/releases")
2245 urls += "?" + c.urlParams_.Encode()
2246 req, err := http.NewRequest("GET", urls, body)
2247 if err != nil {
2248 return nil, err
2249 }
2250 req.Header = reqHeaders
2251 googleapi.Expand(req.URL, map[string]string{
2252 "parent": c.parent,
2253 })
2254 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2255 }
2256
2257
2258
2259
2260
2261
2262
2263 func (c *ProjectsAppsReleasesListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1ListReleasesResponse, error) {
2264 gensupport.SetOptions(c.urlParams_, opts...)
2265 res, err := c.doRequest("json")
2266 if res != nil && res.StatusCode == http.StatusNotModified {
2267 if res.Body != nil {
2268 res.Body.Close()
2269 }
2270 return nil, gensupport.WrapError(&googleapi.Error{
2271 Code: res.StatusCode,
2272 Header: res.Header,
2273 })
2274 }
2275 if err != nil {
2276 return nil, err
2277 }
2278 defer googleapi.CloseBody(res)
2279 if err := googleapi.CheckResponse(res); err != nil {
2280 return nil, gensupport.WrapError(err)
2281 }
2282 ret := &GoogleFirebaseAppdistroV1ListReleasesResponse{
2283 ServerResponse: googleapi.ServerResponse{
2284 Header: res.Header,
2285 HTTPStatusCode: res.StatusCode,
2286 },
2287 }
2288 target := &ret
2289 if err := gensupport.DecodeResponse(target, res); err != nil {
2290 return nil, err
2291 }
2292 return ret, nil
2293 }
2294
2295
2296
2297
2298 func (c *ProjectsAppsReleasesListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1ListReleasesResponse) error) error {
2299 c.ctx_ = ctx
2300 defer c.PageToken(c.urlParams_.Get("pageToken"))
2301 for {
2302 x, err := c.Do()
2303 if err != nil {
2304 return err
2305 }
2306 if err := f(x); err != nil {
2307 return err
2308 }
2309 if x.NextPageToken == "" {
2310 return nil
2311 }
2312 c.PageToken(x.NextPageToken)
2313 }
2314 }
2315
2316 type ProjectsAppsReleasesPatchCall struct {
2317 s *Service
2318 name string
2319 googlefirebaseappdistrov1release *GoogleFirebaseAppdistroV1Release
2320 urlParams_ gensupport.URLParams
2321 ctx_ context.Context
2322 header_ http.Header
2323 }
2324
2325
2326
2327
2328
2329 func (r *ProjectsAppsReleasesService) Patch(name string, googlefirebaseappdistrov1release *GoogleFirebaseAppdistroV1Release) *ProjectsAppsReleasesPatchCall {
2330 c := &ProjectsAppsReleasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2331 c.name = name
2332 c.googlefirebaseappdistrov1release = googlefirebaseappdistrov1release
2333 return c
2334 }
2335
2336
2337
2338 func (c *ProjectsAppsReleasesPatchCall) UpdateMask(updateMask string) *ProjectsAppsReleasesPatchCall {
2339 c.urlParams_.Set("updateMask", updateMask)
2340 return c
2341 }
2342
2343
2344
2345
2346 func (c *ProjectsAppsReleasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesPatchCall {
2347 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2348 return c
2349 }
2350
2351
2352 func (c *ProjectsAppsReleasesPatchCall) Context(ctx context.Context) *ProjectsAppsReleasesPatchCall {
2353 c.ctx_ = ctx
2354 return c
2355 }
2356
2357
2358
2359 func (c *ProjectsAppsReleasesPatchCall) Header() http.Header {
2360 if c.header_ == nil {
2361 c.header_ = make(http.Header)
2362 }
2363 return c.header_
2364 }
2365
2366 func (c *ProjectsAppsReleasesPatchCall) doRequest(alt string) (*http.Response, error) {
2367 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
2368 var body io.Reader = nil
2369 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1release)
2370 if err != nil {
2371 return nil, err
2372 }
2373 c.urlParams_.Set("alt", alt)
2374 c.urlParams_.Set("prettyPrint", "false")
2375 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
2376 urls += "?" + c.urlParams_.Encode()
2377 req, err := http.NewRequest("PATCH", urls, body)
2378 if err != nil {
2379 return nil, err
2380 }
2381 req.Header = reqHeaders
2382 googleapi.Expand(req.URL, map[string]string{
2383 "name": c.name,
2384 })
2385 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2386 }
2387
2388
2389
2390
2391
2392
2393
2394 func (c *ProjectsAppsReleasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Release, error) {
2395 gensupport.SetOptions(c.urlParams_, opts...)
2396 res, err := c.doRequest("json")
2397 if res != nil && res.StatusCode == http.StatusNotModified {
2398 if res.Body != nil {
2399 res.Body.Close()
2400 }
2401 return nil, gensupport.WrapError(&googleapi.Error{
2402 Code: res.StatusCode,
2403 Header: res.Header,
2404 })
2405 }
2406 if err != nil {
2407 return nil, err
2408 }
2409 defer googleapi.CloseBody(res)
2410 if err := googleapi.CheckResponse(res); err != nil {
2411 return nil, gensupport.WrapError(err)
2412 }
2413 ret := &GoogleFirebaseAppdistroV1Release{
2414 ServerResponse: googleapi.ServerResponse{
2415 Header: res.Header,
2416 HTTPStatusCode: res.StatusCode,
2417 },
2418 }
2419 target := &ret
2420 if err := gensupport.DecodeResponse(target, res); err != nil {
2421 return nil, err
2422 }
2423 return ret, nil
2424 }
2425
2426 type ProjectsAppsReleasesFeedbackReportsDeleteCall struct {
2427 s *Service
2428 name string
2429 urlParams_ gensupport.URLParams
2430 ctx_ context.Context
2431 header_ http.Header
2432 }
2433
2434
2435
2436
2437
2438
2439 func (r *ProjectsAppsReleasesFeedbackReportsService) Delete(name string) *ProjectsAppsReleasesFeedbackReportsDeleteCall {
2440 c := &ProjectsAppsReleasesFeedbackReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2441 c.name = name
2442 return c
2443 }
2444
2445
2446
2447
2448 func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesFeedbackReportsDeleteCall {
2449 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2450 return c
2451 }
2452
2453
2454 func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) Context(ctx context.Context) *ProjectsAppsReleasesFeedbackReportsDeleteCall {
2455 c.ctx_ = ctx
2456 return c
2457 }
2458
2459
2460
2461 func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) Header() http.Header {
2462 if c.header_ == nil {
2463 c.header_ = make(http.Header)
2464 }
2465 return c.header_
2466 }
2467
2468 func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
2469 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2470 var body io.Reader = nil
2471 c.urlParams_.Set("alt", alt)
2472 c.urlParams_.Set("prettyPrint", "false")
2473 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
2474 urls += "?" + c.urlParams_.Encode()
2475 req, err := http.NewRequest("DELETE", urls, body)
2476 if err != nil {
2477 return nil, err
2478 }
2479 req.Header = reqHeaders
2480 googleapi.Expand(req.URL, map[string]string{
2481 "name": c.name,
2482 })
2483 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2484 }
2485
2486
2487
2488
2489
2490
2491
2492 func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
2493 gensupport.SetOptions(c.urlParams_, opts...)
2494 res, err := c.doRequest("json")
2495 if res != nil && res.StatusCode == http.StatusNotModified {
2496 if res.Body != nil {
2497 res.Body.Close()
2498 }
2499 return nil, gensupport.WrapError(&googleapi.Error{
2500 Code: res.StatusCode,
2501 Header: res.Header,
2502 })
2503 }
2504 if err != nil {
2505 return nil, err
2506 }
2507 defer googleapi.CloseBody(res)
2508 if err := googleapi.CheckResponse(res); err != nil {
2509 return nil, gensupport.WrapError(err)
2510 }
2511 ret := &GoogleProtobufEmpty{
2512 ServerResponse: googleapi.ServerResponse{
2513 Header: res.Header,
2514 HTTPStatusCode: res.StatusCode,
2515 },
2516 }
2517 target := &ret
2518 if err := gensupport.DecodeResponse(target, res); err != nil {
2519 return nil, err
2520 }
2521 return ret, nil
2522 }
2523
2524 type ProjectsAppsReleasesFeedbackReportsGetCall struct {
2525 s *Service
2526 name string
2527 urlParams_ gensupport.URLParams
2528 ifNoneMatch_ string
2529 ctx_ context.Context
2530 header_ http.Header
2531 }
2532
2533
2534
2535
2536
2537
2538 func (r *ProjectsAppsReleasesFeedbackReportsService) Get(name string) *ProjectsAppsReleasesFeedbackReportsGetCall {
2539 c := &ProjectsAppsReleasesFeedbackReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2540 c.name = name
2541 return c
2542 }
2543
2544
2545
2546
2547 func (c *ProjectsAppsReleasesFeedbackReportsGetCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesFeedbackReportsGetCall {
2548 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2549 return c
2550 }
2551
2552
2553
2554
2555 func (c *ProjectsAppsReleasesFeedbackReportsGetCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesFeedbackReportsGetCall {
2556 c.ifNoneMatch_ = entityTag
2557 return c
2558 }
2559
2560
2561 func (c *ProjectsAppsReleasesFeedbackReportsGetCall) Context(ctx context.Context) *ProjectsAppsReleasesFeedbackReportsGetCall {
2562 c.ctx_ = ctx
2563 return c
2564 }
2565
2566
2567
2568 func (c *ProjectsAppsReleasesFeedbackReportsGetCall) Header() http.Header {
2569 if c.header_ == nil {
2570 c.header_ = make(http.Header)
2571 }
2572 return c.header_
2573 }
2574
2575 func (c *ProjectsAppsReleasesFeedbackReportsGetCall) doRequest(alt string) (*http.Response, error) {
2576 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2577 if c.ifNoneMatch_ != "" {
2578 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2579 }
2580 var body io.Reader = nil
2581 c.urlParams_.Set("alt", alt)
2582 c.urlParams_.Set("prettyPrint", "false")
2583 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
2584 urls += "?" + c.urlParams_.Encode()
2585 req, err := http.NewRequest("GET", urls, body)
2586 if err != nil {
2587 return nil, err
2588 }
2589 req.Header = reqHeaders
2590 googleapi.Expand(req.URL, map[string]string{
2591 "name": c.name,
2592 })
2593 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2594 }
2595
2596
2597
2598
2599
2600
2601
2602 func (c *ProjectsAppsReleasesFeedbackReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1FeedbackReport, error) {
2603 gensupport.SetOptions(c.urlParams_, opts...)
2604 res, err := c.doRequest("json")
2605 if res != nil && res.StatusCode == http.StatusNotModified {
2606 if res.Body != nil {
2607 res.Body.Close()
2608 }
2609 return nil, gensupport.WrapError(&googleapi.Error{
2610 Code: res.StatusCode,
2611 Header: res.Header,
2612 })
2613 }
2614 if err != nil {
2615 return nil, err
2616 }
2617 defer googleapi.CloseBody(res)
2618 if err := googleapi.CheckResponse(res); err != nil {
2619 return nil, gensupport.WrapError(err)
2620 }
2621 ret := &GoogleFirebaseAppdistroV1FeedbackReport{
2622 ServerResponse: googleapi.ServerResponse{
2623 Header: res.Header,
2624 HTTPStatusCode: res.StatusCode,
2625 },
2626 }
2627 target := &ret
2628 if err := gensupport.DecodeResponse(target, res); err != nil {
2629 return nil, err
2630 }
2631 return ret, nil
2632 }
2633
2634 type ProjectsAppsReleasesFeedbackReportsListCall struct {
2635 s *Service
2636 parent string
2637 urlParams_ gensupport.URLParams
2638 ifNoneMatch_ string
2639 ctx_ context.Context
2640 header_ http.Header
2641 }
2642
2643
2644
2645
2646
2647
2648
2649 func (r *ProjectsAppsReleasesFeedbackReportsService) List(parent string) *ProjectsAppsReleasesFeedbackReportsListCall {
2650 c := &ProjectsAppsReleasesFeedbackReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2651 c.parent = parent
2652 return c
2653 }
2654
2655
2656
2657
2658
2659 func (c *ProjectsAppsReleasesFeedbackReportsListCall) PageSize(pageSize int64) *ProjectsAppsReleasesFeedbackReportsListCall {
2660 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
2661 return c
2662 }
2663
2664
2665
2666
2667
2668 func (c *ProjectsAppsReleasesFeedbackReportsListCall) PageToken(pageToken string) *ProjectsAppsReleasesFeedbackReportsListCall {
2669 c.urlParams_.Set("pageToken", pageToken)
2670 return c
2671 }
2672
2673
2674
2675
2676 func (c *ProjectsAppsReleasesFeedbackReportsListCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesFeedbackReportsListCall {
2677 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2678 return c
2679 }
2680
2681
2682
2683
2684 func (c *ProjectsAppsReleasesFeedbackReportsListCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesFeedbackReportsListCall {
2685 c.ifNoneMatch_ = entityTag
2686 return c
2687 }
2688
2689
2690 func (c *ProjectsAppsReleasesFeedbackReportsListCall) Context(ctx context.Context) *ProjectsAppsReleasesFeedbackReportsListCall {
2691 c.ctx_ = ctx
2692 return c
2693 }
2694
2695
2696
2697 func (c *ProjectsAppsReleasesFeedbackReportsListCall) Header() http.Header {
2698 if c.header_ == nil {
2699 c.header_ = make(http.Header)
2700 }
2701 return c.header_
2702 }
2703
2704 func (c *ProjectsAppsReleasesFeedbackReportsListCall) doRequest(alt string) (*http.Response, error) {
2705 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2706 if c.ifNoneMatch_ != "" {
2707 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2708 }
2709 var body io.Reader = nil
2710 c.urlParams_.Set("alt", alt)
2711 c.urlParams_.Set("prettyPrint", "false")
2712 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/feedbackReports")
2713 urls += "?" + c.urlParams_.Encode()
2714 req, err := http.NewRequest("GET", urls, body)
2715 if err != nil {
2716 return nil, err
2717 }
2718 req.Header = reqHeaders
2719 googleapi.Expand(req.URL, map[string]string{
2720 "parent": c.parent,
2721 })
2722 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2723 }
2724
2725
2726
2727
2728
2729
2730
2731 func (c *ProjectsAppsReleasesFeedbackReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1ListFeedbackReportsResponse, error) {
2732 gensupport.SetOptions(c.urlParams_, opts...)
2733 res, err := c.doRequest("json")
2734 if res != nil && res.StatusCode == http.StatusNotModified {
2735 if res.Body != nil {
2736 res.Body.Close()
2737 }
2738 return nil, gensupport.WrapError(&googleapi.Error{
2739 Code: res.StatusCode,
2740 Header: res.Header,
2741 })
2742 }
2743 if err != nil {
2744 return nil, err
2745 }
2746 defer googleapi.CloseBody(res)
2747 if err := googleapi.CheckResponse(res); err != nil {
2748 return nil, gensupport.WrapError(err)
2749 }
2750 ret := &GoogleFirebaseAppdistroV1ListFeedbackReportsResponse{
2751 ServerResponse: googleapi.ServerResponse{
2752 Header: res.Header,
2753 HTTPStatusCode: res.StatusCode,
2754 },
2755 }
2756 target := &ret
2757 if err := gensupport.DecodeResponse(target, res); err != nil {
2758 return nil, err
2759 }
2760 return ret, nil
2761 }
2762
2763
2764
2765
2766 func (c *ProjectsAppsReleasesFeedbackReportsListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1ListFeedbackReportsResponse) error) error {
2767 c.ctx_ = ctx
2768 defer c.PageToken(c.urlParams_.Get("pageToken"))
2769 for {
2770 x, err := c.Do()
2771 if err != nil {
2772 return err
2773 }
2774 if err := f(x); err != nil {
2775 return err
2776 }
2777 if x.NextPageToken == "" {
2778 return nil
2779 }
2780 c.PageToken(x.NextPageToken)
2781 }
2782 }
2783
2784 type ProjectsAppsReleasesOperationsCancelCall struct {
2785 s *Service
2786 name string
2787 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
2788 urlParams_ gensupport.URLParams
2789 ctx_ context.Context
2790 header_ http.Header
2791 }
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804 func (r *ProjectsAppsReleasesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsAppsReleasesOperationsCancelCall {
2805 c := &ProjectsAppsReleasesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2806 c.name = name
2807 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
2808 return c
2809 }
2810
2811
2812
2813
2814 func (c *ProjectsAppsReleasesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsCancelCall {
2815 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2816 return c
2817 }
2818
2819
2820 func (c *ProjectsAppsReleasesOperationsCancelCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsCancelCall {
2821 c.ctx_ = ctx
2822 return c
2823 }
2824
2825
2826
2827 func (c *ProjectsAppsReleasesOperationsCancelCall) Header() http.Header {
2828 if c.header_ == nil {
2829 c.header_ = make(http.Header)
2830 }
2831 return c.header_
2832 }
2833
2834 func (c *ProjectsAppsReleasesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
2835 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
2836 var body io.Reader = nil
2837 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
2838 if err != nil {
2839 return nil, err
2840 }
2841 c.urlParams_.Set("alt", alt)
2842 c.urlParams_.Set("prettyPrint", "false")
2843 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
2844 urls += "?" + c.urlParams_.Encode()
2845 req, err := http.NewRequest("POST", urls, body)
2846 if err != nil {
2847 return nil, err
2848 }
2849 req.Header = reqHeaders
2850 googleapi.Expand(req.URL, map[string]string{
2851 "name": c.name,
2852 })
2853 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2854 }
2855
2856
2857
2858
2859
2860
2861
2862 func (c *ProjectsAppsReleasesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
2863 gensupport.SetOptions(c.urlParams_, opts...)
2864 res, err := c.doRequest("json")
2865 if res != nil && res.StatusCode == http.StatusNotModified {
2866 if res.Body != nil {
2867 res.Body.Close()
2868 }
2869 return nil, gensupport.WrapError(&googleapi.Error{
2870 Code: res.StatusCode,
2871 Header: res.Header,
2872 })
2873 }
2874 if err != nil {
2875 return nil, err
2876 }
2877 defer googleapi.CloseBody(res)
2878 if err := googleapi.CheckResponse(res); err != nil {
2879 return nil, gensupport.WrapError(err)
2880 }
2881 ret := &GoogleProtobufEmpty{
2882 ServerResponse: googleapi.ServerResponse{
2883 Header: res.Header,
2884 HTTPStatusCode: res.StatusCode,
2885 },
2886 }
2887 target := &ret
2888 if err := gensupport.DecodeResponse(target, res); err != nil {
2889 return nil, err
2890 }
2891 return ret, nil
2892 }
2893
2894 type ProjectsAppsReleasesOperationsDeleteCall struct {
2895 s *Service
2896 name string
2897 urlParams_ gensupport.URLParams
2898 ctx_ context.Context
2899 header_ http.Header
2900 }
2901
2902
2903
2904
2905
2906
2907
2908 func (r *ProjectsAppsReleasesOperationsService) Delete(name string) *ProjectsAppsReleasesOperationsDeleteCall {
2909 c := &ProjectsAppsReleasesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2910 c.name = name
2911 return c
2912 }
2913
2914
2915
2916
2917 func (c *ProjectsAppsReleasesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsDeleteCall {
2918 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2919 return c
2920 }
2921
2922
2923 func (c *ProjectsAppsReleasesOperationsDeleteCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsDeleteCall {
2924 c.ctx_ = ctx
2925 return c
2926 }
2927
2928
2929
2930 func (c *ProjectsAppsReleasesOperationsDeleteCall) Header() http.Header {
2931 if c.header_ == nil {
2932 c.header_ = make(http.Header)
2933 }
2934 return c.header_
2935 }
2936
2937 func (c *ProjectsAppsReleasesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
2938 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2939 var body io.Reader = nil
2940 c.urlParams_.Set("alt", alt)
2941 c.urlParams_.Set("prettyPrint", "false")
2942 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
2943 urls += "?" + c.urlParams_.Encode()
2944 req, err := http.NewRequest("DELETE", urls, body)
2945 if err != nil {
2946 return nil, err
2947 }
2948 req.Header = reqHeaders
2949 googleapi.Expand(req.URL, map[string]string{
2950 "name": c.name,
2951 })
2952 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2953 }
2954
2955
2956
2957
2958
2959
2960
2961 func (c *ProjectsAppsReleasesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
2962 gensupport.SetOptions(c.urlParams_, opts...)
2963 res, err := c.doRequest("json")
2964 if res != nil && res.StatusCode == http.StatusNotModified {
2965 if res.Body != nil {
2966 res.Body.Close()
2967 }
2968 return nil, gensupport.WrapError(&googleapi.Error{
2969 Code: res.StatusCode,
2970 Header: res.Header,
2971 })
2972 }
2973 if err != nil {
2974 return nil, err
2975 }
2976 defer googleapi.CloseBody(res)
2977 if err := googleapi.CheckResponse(res); err != nil {
2978 return nil, gensupport.WrapError(err)
2979 }
2980 ret := &GoogleProtobufEmpty{
2981 ServerResponse: googleapi.ServerResponse{
2982 Header: res.Header,
2983 HTTPStatusCode: res.StatusCode,
2984 },
2985 }
2986 target := &ret
2987 if err := gensupport.DecodeResponse(target, res); err != nil {
2988 return nil, err
2989 }
2990 return ret, nil
2991 }
2992
2993 type ProjectsAppsReleasesOperationsGetCall struct {
2994 s *Service
2995 name string
2996 urlParams_ gensupport.URLParams
2997 ifNoneMatch_ string
2998 ctx_ context.Context
2999 header_ http.Header
3000 }
3001
3002
3003
3004
3005
3006
3007 func (r *ProjectsAppsReleasesOperationsService) Get(name string) *ProjectsAppsReleasesOperationsGetCall {
3008 c := &ProjectsAppsReleasesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3009 c.name = name
3010 return c
3011 }
3012
3013
3014
3015
3016 func (c *ProjectsAppsReleasesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsGetCall {
3017 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3018 return c
3019 }
3020
3021
3022
3023
3024 func (c *ProjectsAppsReleasesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesOperationsGetCall {
3025 c.ifNoneMatch_ = entityTag
3026 return c
3027 }
3028
3029
3030 func (c *ProjectsAppsReleasesOperationsGetCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsGetCall {
3031 c.ctx_ = ctx
3032 return c
3033 }
3034
3035
3036
3037 func (c *ProjectsAppsReleasesOperationsGetCall) Header() http.Header {
3038 if c.header_ == nil {
3039 c.header_ = make(http.Header)
3040 }
3041 return c.header_
3042 }
3043
3044 func (c *ProjectsAppsReleasesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
3045 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3046 if c.ifNoneMatch_ != "" {
3047 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3048 }
3049 var body io.Reader = nil
3050 c.urlParams_.Set("alt", alt)
3051 c.urlParams_.Set("prettyPrint", "false")
3052 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
3053 urls += "?" + c.urlParams_.Encode()
3054 req, err := http.NewRequest("GET", urls, body)
3055 if err != nil {
3056 return nil, err
3057 }
3058 req.Header = reqHeaders
3059 googleapi.Expand(req.URL, map[string]string{
3060 "name": c.name,
3061 })
3062 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3063 }
3064
3065
3066
3067
3068
3069
3070
3071 func (c *ProjectsAppsReleasesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
3072 gensupport.SetOptions(c.urlParams_, opts...)
3073 res, err := c.doRequest("json")
3074 if res != nil && res.StatusCode == http.StatusNotModified {
3075 if res.Body != nil {
3076 res.Body.Close()
3077 }
3078 return nil, gensupport.WrapError(&googleapi.Error{
3079 Code: res.StatusCode,
3080 Header: res.Header,
3081 })
3082 }
3083 if err != nil {
3084 return nil, err
3085 }
3086 defer googleapi.CloseBody(res)
3087 if err := googleapi.CheckResponse(res); err != nil {
3088 return nil, gensupport.WrapError(err)
3089 }
3090 ret := &GoogleLongrunningOperation{
3091 ServerResponse: googleapi.ServerResponse{
3092 Header: res.Header,
3093 HTTPStatusCode: res.StatusCode,
3094 },
3095 }
3096 target := &ret
3097 if err := gensupport.DecodeResponse(target, res); err != nil {
3098 return nil, err
3099 }
3100 return ret, nil
3101 }
3102
3103 type ProjectsAppsReleasesOperationsListCall struct {
3104 s *Service
3105 name string
3106 urlParams_ gensupport.URLParams
3107 ifNoneMatch_ string
3108 ctx_ context.Context
3109 header_ http.Header
3110 }
3111
3112
3113
3114
3115
3116 func (r *ProjectsAppsReleasesOperationsService) List(name string) *ProjectsAppsReleasesOperationsListCall {
3117 c := &ProjectsAppsReleasesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3118 c.name = name
3119 return c
3120 }
3121
3122
3123 func (c *ProjectsAppsReleasesOperationsListCall) Filter(filter string) *ProjectsAppsReleasesOperationsListCall {
3124 c.urlParams_.Set("filter", filter)
3125 return c
3126 }
3127
3128
3129
3130 func (c *ProjectsAppsReleasesOperationsListCall) PageSize(pageSize int64) *ProjectsAppsReleasesOperationsListCall {
3131 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3132 return c
3133 }
3134
3135
3136
3137 func (c *ProjectsAppsReleasesOperationsListCall) PageToken(pageToken string) *ProjectsAppsReleasesOperationsListCall {
3138 c.urlParams_.Set("pageToken", pageToken)
3139 return c
3140 }
3141
3142
3143
3144
3145 func (c *ProjectsAppsReleasesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsListCall {
3146 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3147 return c
3148 }
3149
3150
3151
3152
3153 func (c *ProjectsAppsReleasesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesOperationsListCall {
3154 c.ifNoneMatch_ = entityTag
3155 return c
3156 }
3157
3158
3159 func (c *ProjectsAppsReleasesOperationsListCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsListCall {
3160 c.ctx_ = ctx
3161 return c
3162 }
3163
3164
3165
3166 func (c *ProjectsAppsReleasesOperationsListCall) Header() http.Header {
3167 if c.header_ == nil {
3168 c.header_ = make(http.Header)
3169 }
3170 return c.header_
3171 }
3172
3173 func (c *ProjectsAppsReleasesOperationsListCall) doRequest(alt string) (*http.Response, error) {
3174 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3175 if c.ifNoneMatch_ != "" {
3176 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3177 }
3178 var body io.Reader = nil
3179 c.urlParams_.Set("alt", alt)
3180 c.urlParams_.Set("prettyPrint", "false")
3181 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
3182 urls += "?" + c.urlParams_.Encode()
3183 req, err := http.NewRequest("GET", urls, body)
3184 if err != nil {
3185 return nil, err
3186 }
3187 req.Header = reqHeaders
3188 googleapi.Expand(req.URL, map[string]string{
3189 "name": c.name,
3190 })
3191 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3192 }
3193
3194
3195
3196
3197
3198
3199
3200 func (c *ProjectsAppsReleasesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
3201 gensupport.SetOptions(c.urlParams_, opts...)
3202 res, err := c.doRequest("json")
3203 if res != nil && res.StatusCode == http.StatusNotModified {
3204 if res.Body != nil {
3205 res.Body.Close()
3206 }
3207 return nil, gensupport.WrapError(&googleapi.Error{
3208 Code: res.StatusCode,
3209 Header: res.Header,
3210 })
3211 }
3212 if err != nil {
3213 return nil, err
3214 }
3215 defer googleapi.CloseBody(res)
3216 if err := googleapi.CheckResponse(res); err != nil {
3217 return nil, gensupport.WrapError(err)
3218 }
3219 ret := &GoogleLongrunningListOperationsResponse{
3220 ServerResponse: googleapi.ServerResponse{
3221 Header: res.Header,
3222 HTTPStatusCode: res.StatusCode,
3223 },
3224 }
3225 target := &ret
3226 if err := gensupport.DecodeResponse(target, res); err != nil {
3227 return nil, err
3228 }
3229 return ret, nil
3230 }
3231
3232
3233
3234
3235 func (c *ProjectsAppsReleasesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
3236 c.ctx_ = ctx
3237 defer c.PageToken(c.urlParams_.Get("pageToken"))
3238 for {
3239 x, err := c.Do()
3240 if err != nil {
3241 return err
3242 }
3243 if err := f(x); err != nil {
3244 return err
3245 }
3246 if x.NextPageToken == "" {
3247 return nil
3248 }
3249 c.PageToken(x.NextPageToken)
3250 }
3251 }
3252
3253 type ProjectsAppsReleasesOperationsWaitCall struct {
3254 s *Service
3255 name string
3256 googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest
3257 urlParams_ gensupport.URLParams
3258 ctx_ context.Context
3259 header_ http.Header
3260 }
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273 func (r *ProjectsAppsReleasesOperationsService) Wait(name string, googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest) *ProjectsAppsReleasesOperationsWaitCall {
3274 c := &ProjectsAppsReleasesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3275 c.name = name
3276 c.googlelongrunningwaitoperationrequest = googlelongrunningwaitoperationrequest
3277 return c
3278 }
3279
3280
3281
3282
3283 func (c *ProjectsAppsReleasesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsWaitCall {
3284 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3285 return c
3286 }
3287
3288
3289 func (c *ProjectsAppsReleasesOperationsWaitCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsWaitCall {
3290 c.ctx_ = ctx
3291 return c
3292 }
3293
3294
3295
3296 func (c *ProjectsAppsReleasesOperationsWaitCall) Header() http.Header {
3297 if c.header_ == nil {
3298 c.header_ = make(http.Header)
3299 }
3300 return c.header_
3301 }
3302
3303 func (c *ProjectsAppsReleasesOperationsWaitCall) doRequest(alt string) (*http.Response, error) {
3304 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3305 var body io.Reader = nil
3306 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningwaitoperationrequest)
3307 if err != nil {
3308 return nil, err
3309 }
3310 c.urlParams_.Set("alt", alt)
3311 c.urlParams_.Set("prettyPrint", "false")
3312 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait")
3313 urls += "?" + c.urlParams_.Encode()
3314 req, err := http.NewRequest("POST", urls, body)
3315 if err != nil {
3316 return nil, err
3317 }
3318 req.Header = reqHeaders
3319 googleapi.Expand(req.URL, map[string]string{
3320 "name": c.name,
3321 })
3322 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3323 }
3324
3325
3326
3327
3328
3329
3330
3331 func (c *ProjectsAppsReleasesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
3332 gensupport.SetOptions(c.urlParams_, opts...)
3333 res, err := c.doRequest("json")
3334 if res != nil && res.StatusCode == http.StatusNotModified {
3335 if res.Body != nil {
3336 res.Body.Close()
3337 }
3338 return nil, gensupport.WrapError(&googleapi.Error{
3339 Code: res.StatusCode,
3340 Header: res.Header,
3341 })
3342 }
3343 if err != nil {
3344 return nil, err
3345 }
3346 defer googleapi.CloseBody(res)
3347 if err := googleapi.CheckResponse(res); err != nil {
3348 return nil, gensupport.WrapError(err)
3349 }
3350 ret := &GoogleLongrunningOperation{
3351 ServerResponse: googleapi.ServerResponse{
3352 Header: res.Header,
3353 HTTPStatusCode: res.StatusCode,
3354 },
3355 }
3356 target := &ret
3357 if err := gensupport.DecodeResponse(target, res); err != nil {
3358 return nil, err
3359 }
3360 return ret, nil
3361 }
3362
3363 type ProjectsGroupsBatchJoinCall struct {
3364 s *Service
3365 group string
3366 googlefirebaseappdistrov1batchjoingrouprequest *GoogleFirebaseAppdistroV1BatchJoinGroupRequest
3367 urlParams_ gensupport.URLParams
3368 ctx_ context.Context
3369 header_ http.Header
3370 }
3371
3372
3373
3374
3375
3376
3377 func (r *ProjectsGroupsService) BatchJoin(group string, googlefirebaseappdistrov1batchjoingrouprequest *GoogleFirebaseAppdistroV1BatchJoinGroupRequest) *ProjectsGroupsBatchJoinCall {
3378 c := &ProjectsGroupsBatchJoinCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3379 c.group = group
3380 c.googlefirebaseappdistrov1batchjoingrouprequest = googlefirebaseappdistrov1batchjoingrouprequest
3381 return c
3382 }
3383
3384
3385
3386
3387 func (c *ProjectsGroupsBatchJoinCall) Fields(s ...googleapi.Field) *ProjectsGroupsBatchJoinCall {
3388 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3389 return c
3390 }
3391
3392
3393 func (c *ProjectsGroupsBatchJoinCall) Context(ctx context.Context) *ProjectsGroupsBatchJoinCall {
3394 c.ctx_ = ctx
3395 return c
3396 }
3397
3398
3399
3400 func (c *ProjectsGroupsBatchJoinCall) Header() http.Header {
3401 if c.header_ == nil {
3402 c.header_ = make(http.Header)
3403 }
3404 return c.header_
3405 }
3406
3407 func (c *ProjectsGroupsBatchJoinCall) doRequest(alt string) (*http.Response, error) {
3408 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3409 var body io.Reader = nil
3410 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchjoingrouprequest)
3411 if err != nil {
3412 return nil, err
3413 }
3414 c.urlParams_.Set("alt", alt)
3415 c.urlParams_.Set("prettyPrint", "false")
3416 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+group}:batchJoin")
3417 urls += "?" + c.urlParams_.Encode()
3418 req, err := http.NewRequest("POST", urls, body)
3419 if err != nil {
3420 return nil, err
3421 }
3422 req.Header = reqHeaders
3423 googleapi.Expand(req.URL, map[string]string{
3424 "group": c.group,
3425 })
3426 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3427 }
3428
3429
3430
3431
3432
3433
3434
3435 func (c *ProjectsGroupsBatchJoinCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
3436 gensupport.SetOptions(c.urlParams_, opts...)
3437 res, err := c.doRequest("json")
3438 if res != nil && res.StatusCode == http.StatusNotModified {
3439 if res.Body != nil {
3440 res.Body.Close()
3441 }
3442 return nil, gensupport.WrapError(&googleapi.Error{
3443 Code: res.StatusCode,
3444 Header: res.Header,
3445 })
3446 }
3447 if err != nil {
3448 return nil, err
3449 }
3450 defer googleapi.CloseBody(res)
3451 if err := googleapi.CheckResponse(res); err != nil {
3452 return nil, gensupport.WrapError(err)
3453 }
3454 ret := &GoogleProtobufEmpty{
3455 ServerResponse: googleapi.ServerResponse{
3456 Header: res.Header,
3457 HTTPStatusCode: res.StatusCode,
3458 },
3459 }
3460 target := &ret
3461 if err := gensupport.DecodeResponse(target, res); err != nil {
3462 return nil, err
3463 }
3464 return ret, nil
3465 }
3466
3467 type ProjectsGroupsBatchLeaveCall struct {
3468 s *Service
3469 group string
3470 googlefirebaseappdistrov1batchleavegrouprequest *GoogleFirebaseAppdistroV1BatchLeaveGroupRequest
3471 urlParams_ gensupport.URLParams
3472 ctx_ context.Context
3473 header_ http.Header
3474 }
3475
3476
3477
3478
3479
3480
3481 func (r *ProjectsGroupsService) BatchLeave(group string, googlefirebaseappdistrov1batchleavegrouprequest *GoogleFirebaseAppdistroV1BatchLeaveGroupRequest) *ProjectsGroupsBatchLeaveCall {
3482 c := &ProjectsGroupsBatchLeaveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3483 c.group = group
3484 c.googlefirebaseappdistrov1batchleavegrouprequest = googlefirebaseappdistrov1batchleavegrouprequest
3485 return c
3486 }
3487
3488
3489
3490
3491 func (c *ProjectsGroupsBatchLeaveCall) Fields(s ...googleapi.Field) *ProjectsGroupsBatchLeaveCall {
3492 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3493 return c
3494 }
3495
3496
3497 func (c *ProjectsGroupsBatchLeaveCall) Context(ctx context.Context) *ProjectsGroupsBatchLeaveCall {
3498 c.ctx_ = ctx
3499 return c
3500 }
3501
3502
3503
3504 func (c *ProjectsGroupsBatchLeaveCall) Header() http.Header {
3505 if c.header_ == nil {
3506 c.header_ = make(http.Header)
3507 }
3508 return c.header_
3509 }
3510
3511 func (c *ProjectsGroupsBatchLeaveCall) doRequest(alt string) (*http.Response, error) {
3512 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3513 var body io.Reader = nil
3514 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchleavegrouprequest)
3515 if err != nil {
3516 return nil, err
3517 }
3518 c.urlParams_.Set("alt", alt)
3519 c.urlParams_.Set("prettyPrint", "false")
3520 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+group}:batchLeave")
3521 urls += "?" + c.urlParams_.Encode()
3522 req, err := http.NewRequest("POST", urls, body)
3523 if err != nil {
3524 return nil, err
3525 }
3526 req.Header = reqHeaders
3527 googleapi.Expand(req.URL, map[string]string{
3528 "group": c.group,
3529 })
3530 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3531 }
3532
3533
3534
3535
3536
3537
3538
3539 func (c *ProjectsGroupsBatchLeaveCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
3540 gensupport.SetOptions(c.urlParams_, opts...)
3541 res, err := c.doRequest("json")
3542 if res != nil && res.StatusCode == http.StatusNotModified {
3543 if res.Body != nil {
3544 res.Body.Close()
3545 }
3546 return nil, gensupport.WrapError(&googleapi.Error{
3547 Code: res.StatusCode,
3548 Header: res.Header,
3549 })
3550 }
3551 if err != nil {
3552 return nil, err
3553 }
3554 defer googleapi.CloseBody(res)
3555 if err := googleapi.CheckResponse(res); err != nil {
3556 return nil, gensupport.WrapError(err)
3557 }
3558 ret := &GoogleProtobufEmpty{
3559 ServerResponse: googleapi.ServerResponse{
3560 Header: res.Header,
3561 HTTPStatusCode: res.StatusCode,
3562 },
3563 }
3564 target := &ret
3565 if err := gensupport.DecodeResponse(target, res); err != nil {
3566 return nil, err
3567 }
3568 return ret, nil
3569 }
3570
3571 type ProjectsGroupsCreateCall struct {
3572 s *Service
3573 parent string
3574 googlefirebaseappdistrov1group *GoogleFirebaseAppdistroV1Group
3575 urlParams_ gensupport.URLParams
3576 ctx_ context.Context
3577 header_ http.Header
3578 }
3579
3580
3581
3582
3583
3584 func (r *ProjectsGroupsService) Create(parent string, googlefirebaseappdistrov1group *GoogleFirebaseAppdistroV1Group) *ProjectsGroupsCreateCall {
3585 c := &ProjectsGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3586 c.parent = parent
3587 c.googlefirebaseappdistrov1group = googlefirebaseappdistrov1group
3588 return c
3589 }
3590
3591
3592
3593
3594
3595
3596
3597 func (c *ProjectsGroupsCreateCall) GroupId(groupId string) *ProjectsGroupsCreateCall {
3598 c.urlParams_.Set("groupId", groupId)
3599 return c
3600 }
3601
3602
3603
3604
3605 func (c *ProjectsGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsGroupsCreateCall {
3606 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3607 return c
3608 }
3609
3610
3611 func (c *ProjectsGroupsCreateCall) Context(ctx context.Context) *ProjectsGroupsCreateCall {
3612 c.ctx_ = ctx
3613 return c
3614 }
3615
3616
3617
3618 func (c *ProjectsGroupsCreateCall) Header() http.Header {
3619 if c.header_ == nil {
3620 c.header_ = make(http.Header)
3621 }
3622 return c.header_
3623 }
3624
3625 func (c *ProjectsGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
3626 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3627 var body io.Reader = nil
3628 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1group)
3629 if err != nil {
3630 return nil, err
3631 }
3632 c.urlParams_.Set("alt", alt)
3633 c.urlParams_.Set("prettyPrint", "false")
3634 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/groups")
3635 urls += "?" + c.urlParams_.Encode()
3636 req, err := http.NewRequest("POST", urls, body)
3637 if err != nil {
3638 return nil, err
3639 }
3640 req.Header = reqHeaders
3641 googleapi.Expand(req.URL, map[string]string{
3642 "parent": c.parent,
3643 })
3644 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3645 }
3646
3647
3648
3649
3650
3651
3652
3653 func (c *ProjectsGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Group, error) {
3654 gensupport.SetOptions(c.urlParams_, opts...)
3655 res, err := c.doRequest("json")
3656 if res != nil && res.StatusCode == http.StatusNotModified {
3657 if res.Body != nil {
3658 res.Body.Close()
3659 }
3660 return nil, gensupport.WrapError(&googleapi.Error{
3661 Code: res.StatusCode,
3662 Header: res.Header,
3663 })
3664 }
3665 if err != nil {
3666 return nil, err
3667 }
3668 defer googleapi.CloseBody(res)
3669 if err := googleapi.CheckResponse(res); err != nil {
3670 return nil, gensupport.WrapError(err)
3671 }
3672 ret := &GoogleFirebaseAppdistroV1Group{
3673 ServerResponse: googleapi.ServerResponse{
3674 Header: res.Header,
3675 HTTPStatusCode: res.StatusCode,
3676 },
3677 }
3678 target := &ret
3679 if err := gensupport.DecodeResponse(target, res); err != nil {
3680 return nil, err
3681 }
3682 return ret, nil
3683 }
3684
3685 type ProjectsGroupsDeleteCall struct {
3686 s *Service
3687 name string
3688 urlParams_ gensupport.URLParams
3689 ctx_ context.Context
3690 header_ http.Header
3691 }
3692
3693
3694
3695
3696
3697 func (r *ProjectsGroupsService) Delete(name string) *ProjectsGroupsDeleteCall {
3698 c := &ProjectsGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3699 c.name = name
3700 return c
3701 }
3702
3703
3704
3705
3706 func (c *ProjectsGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsGroupsDeleteCall {
3707 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3708 return c
3709 }
3710
3711
3712 func (c *ProjectsGroupsDeleteCall) Context(ctx context.Context) *ProjectsGroupsDeleteCall {
3713 c.ctx_ = ctx
3714 return c
3715 }
3716
3717
3718
3719 func (c *ProjectsGroupsDeleteCall) Header() http.Header {
3720 if c.header_ == nil {
3721 c.header_ = make(http.Header)
3722 }
3723 return c.header_
3724 }
3725
3726 func (c *ProjectsGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
3727 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3728 var body io.Reader = nil
3729 c.urlParams_.Set("alt", alt)
3730 c.urlParams_.Set("prettyPrint", "false")
3731 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
3732 urls += "?" + c.urlParams_.Encode()
3733 req, err := http.NewRequest("DELETE", urls, body)
3734 if err != nil {
3735 return nil, err
3736 }
3737 req.Header = reqHeaders
3738 googleapi.Expand(req.URL, map[string]string{
3739 "name": c.name,
3740 })
3741 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3742 }
3743
3744
3745
3746
3747
3748
3749
3750 func (c *ProjectsGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
3751 gensupport.SetOptions(c.urlParams_, opts...)
3752 res, err := c.doRequest("json")
3753 if res != nil && res.StatusCode == http.StatusNotModified {
3754 if res.Body != nil {
3755 res.Body.Close()
3756 }
3757 return nil, gensupport.WrapError(&googleapi.Error{
3758 Code: res.StatusCode,
3759 Header: res.Header,
3760 })
3761 }
3762 if err != nil {
3763 return nil, err
3764 }
3765 defer googleapi.CloseBody(res)
3766 if err := googleapi.CheckResponse(res); err != nil {
3767 return nil, gensupport.WrapError(err)
3768 }
3769 ret := &GoogleProtobufEmpty{
3770 ServerResponse: googleapi.ServerResponse{
3771 Header: res.Header,
3772 HTTPStatusCode: res.StatusCode,
3773 },
3774 }
3775 target := &ret
3776 if err := gensupport.DecodeResponse(target, res); err != nil {
3777 return nil, err
3778 }
3779 return ret, nil
3780 }
3781
3782 type ProjectsGroupsGetCall struct {
3783 s *Service
3784 name string
3785 urlParams_ gensupport.URLParams
3786 ifNoneMatch_ string
3787 ctx_ context.Context
3788 header_ http.Header
3789 }
3790
3791
3792
3793
3794
3795 func (r *ProjectsGroupsService) Get(name string) *ProjectsGroupsGetCall {
3796 c := &ProjectsGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3797 c.name = name
3798 return c
3799 }
3800
3801
3802
3803
3804 func (c *ProjectsGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsGroupsGetCall {
3805 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3806 return c
3807 }
3808
3809
3810
3811
3812 func (c *ProjectsGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsGroupsGetCall {
3813 c.ifNoneMatch_ = entityTag
3814 return c
3815 }
3816
3817
3818 func (c *ProjectsGroupsGetCall) Context(ctx context.Context) *ProjectsGroupsGetCall {
3819 c.ctx_ = ctx
3820 return c
3821 }
3822
3823
3824
3825 func (c *ProjectsGroupsGetCall) Header() http.Header {
3826 if c.header_ == nil {
3827 c.header_ = make(http.Header)
3828 }
3829 return c.header_
3830 }
3831
3832 func (c *ProjectsGroupsGetCall) doRequest(alt string) (*http.Response, error) {
3833 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3834 if c.ifNoneMatch_ != "" {
3835 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3836 }
3837 var body io.Reader = nil
3838 c.urlParams_.Set("alt", alt)
3839 c.urlParams_.Set("prettyPrint", "false")
3840 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
3841 urls += "?" + c.urlParams_.Encode()
3842 req, err := http.NewRequest("GET", urls, body)
3843 if err != nil {
3844 return nil, err
3845 }
3846 req.Header = reqHeaders
3847 googleapi.Expand(req.URL, map[string]string{
3848 "name": c.name,
3849 })
3850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3851 }
3852
3853
3854
3855
3856
3857
3858
3859 func (c *ProjectsGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Group, error) {
3860 gensupport.SetOptions(c.urlParams_, opts...)
3861 res, err := c.doRequest("json")
3862 if res != nil && res.StatusCode == http.StatusNotModified {
3863 if res.Body != nil {
3864 res.Body.Close()
3865 }
3866 return nil, gensupport.WrapError(&googleapi.Error{
3867 Code: res.StatusCode,
3868 Header: res.Header,
3869 })
3870 }
3871 if err != nil {
3872 return nil, err
3873 }
3874 defer googleapi.CloseBody(res)
3875 if err := googleapi.CheckResponse(res); err != nil {
3876 return nil, gensupport.WrapError(err)
3877 }
3878 ret := &GoogleFirebaseAppdistroV1Group{
3879 ServerResponse: googleapi.ServerResponse{
3880 Header: res.Header,
3881 HTTPStatusCode: res.StatusCode,
3882 },
3883 }
3884 target := &ret
3885 if err := gensupport.DecodeResponse(target, res); err != nil {
3886 return nil, err
3887 }
3888 return ret, nil
3889 }
3890
3891 type ProjectsGroupsListCall struct {
3892 s *Service
3893 parent string
3894 urlParams_ gensupport.URLParams
3895 ifNoneMatch_ string
3896 ctx_ context.Context
3897 header_ http.Header
3898 }
3899
3900
3901
3902
3903
3904 func (r *ProjectsGroupsService) List(parent string) *ProjectsGroupsListCall {
3905 c := &ProjectsGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3906 c.parent = parent
3907 return c
3908 }
3909
3910
3911
3912
3913
3914 func (c *ProjectsGroupsListCall) PageSize(pageSize int64) *ProjectsGroupsListCall {
3915 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3916 return c
3917 }
3918
3919
3920
3921
3922
3923 func (c *ProjectsGroupsListCall) PageToken(pageToken string) *ProjectsGroupsListCall {
3924 c.urlParams_.Set("pageToken", pageToken)
3925 return c
3926 }
3927
3928
3929
3930
3931 func (c *ProjectsGroupsListCall) Fields(s ...googleapi.Field) *ProjectsGroupsListCall {
3932 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3933 return c
3934 }
3935
3936
3937
3938
3939 func (c *ProjectsGroupsListCall) IfNoneMatch(entityTag string) *ProjectsGroupsListCall {
3940 c.ifNoneMatch_ = entityTag
3941 return c
3942 }
3943
3944
3945 func (c *ProjectsGroupsListCall) Context(ctx context.Context) *ProjectsGroupsListCall {
3946 c.ctx_ = ctx
3947 return c
3948 }
3949
3950
3951
3952 func (c *ProjectsGroupsListCall) Header() http.Header {
3953 if c.header_ == nil {
3954 c.header_ = make(http.Header)
3955 }
3956 return c.header_
3957 }
3958
3959 func (c *ProjectsGroupsListCall) doRequest(alt string) (*http.Response, error) {
3960 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3961 if c.ifNoneMatch_ != "" {
3962 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3963 }
3964 var body io.Reader = nil
3965 c.urlParams_.Set("alt", alt)
3966 c.urlParams_.Set("prettyPrint", "false")
3967 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/groups")
3968 urls += "?" + c.urlParams_.Encode()
3969 req, err := http.NewRequest("GET", urls, body)
3970 if err != nil {
3971 return nil, err
3972 }
3973 req.Header = reqHeaders
3974 googleapi.Expand(req.URL, map[string]string{
3975 "parent": c.parent,
3976 })
3977 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3978 }
3979
3980
3981
3982
3983
3984
3985
3986 func (c *ProjectsGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1ListGroupsResponse, error) {
3987 gensupport.SetOptions(c.urlParams_, opts...)
3988 res, err := c.doRequest("json")
3989 if res != nil && res.StatusCode == http.StatusNotModified {
3990 if res.Body != nil {
3991 res.Body.Close()
3992 }
3993 return nil, gensupport.WrapError(&googleapi.Error{
3994 Code: res.StatusCode,
3995 Header: res.Header,
3996 })
3997 }
3998 if err != nil {
3999 return nil, err
4000 }
4001 defer googleapi.CloseBody(res)
4002 if err := googleapi.CheckResponse(res); err != nil {
4003 return nil, gensupport.WrapError(err)
4004 }
4005 ret := &GoogleFirebaseAppdistroV1ListGroupsResponse{
4006 ServerResponse: googleapi.ServerResponse{
4007 Header: res.Header,
4008 HTTPStatusCode: res.StatusCode,
4009 },
4010 }
4011 target := &ret
4012 if err := gensupport.DecodeResponse(target, res); err != nil {
4013 return nil, err
4014 }
4015 return ret, nil
4016 }
4017
4018
4019
4020
4021 func (c *ProjectsGroupsListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1ListGroupsResponse) error) error {
4022 c.ctx_ = ctx
4023 defer c.PageToken(c.urlParams_.Get("pageToken"))
4024 for {
4025 x, err := c.Do()
4026 if err != nil {
4027 return err
4028 }
4029 if err := f(x); err != nil {
4030 return err
4031 }
4032 if x.NextPageToken == "" {
4033 return nil
4034 }
4035 c.PageToken(x.NextPageToken)
4036 }
4037 }
4038
4039 type ProjectsGroupsPatchCall struct {
4040 s *Service
4041 name string
4042 googlefirebaseappdistrov1group *GoogleFirebaseAppdistroV1Group
4043 urlParams_ gensupport.URLParams
4044 ctx_ context.Context
4045 header_ http.Header
4046 }
4047
4048
4049
4050
4051
4052 func (r *ProjectsGroupsService) Patch(name string, googlefirebaseappdistrov1group *GoogleFirebaseAppdistroV1Group) *ProjectsGroupsPatchCall {
4053 c := &ProjectsGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4054 c.name = name
4055 c.googlefirebaseappdistrov1group = googlefirebaseappdistrov1group
4056 return c
4057 }
4058
4059
4060
4061 func (c *ProjectsGroupsPatchCall) UpdateMask(updateMask string) *ProjectsGroupsPatchCall {
4062 c.urlParams_.Set("updateMask", updateMask)
4063 return c
4064 }
4065
4066
4067
4068
4069 func (c *ProjectsGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsGroupsPatchCall {
4070 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4071 return c
4072 }
4073
4074
4075 func (c *ProjectsGroupsPatchCall) Context(ctx context.Context) *ProjectsGroupsPatchCall {
4076 c.ctx_ = ctx
4077 return c
4078 }
4079
4080
4081
4082 func (c *ProjectsGroupsPatchCall) Header() http.Header {
4083 if c.header_ == nil {
4084 c.header_ = make(http.Header)
4085 }
4086 return c.header_
4087 }
4088
4089 func (c *ProjectsGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
4090 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4091 var body io.Reader = nil
4092 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1group)
4093 if err != nil {
4094 return nil, err
4095 }
4096 c.urlParams_.Set("alt", alt)
4097 c.urlParams_.Set("prettyPrint", "false")
4098 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4099 urls += "?" + c.urlParams_.Encode()
4100 req, err := http.NewRequest("PATCH", urls, body)
4101 if err != nil {
4102 return nil, err
4103 }
4104 req.Header = reqHeaders
4105 googleapi.Expand(req.URL, map[string]string{
4106 "name": c.name,
4107 })
4108 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4109 }
4110
4111
4112
4113
4114
4115
4116
4117 func (c *ProjectsGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Group, error) {
4118 gensupport.SetOptions(c.urlParams_, opts...)
4119 res, err := c.doRequest("json")
4120 if res != nil && res.StatusCode == http.StatusNotModified {
4121 if res.Body != nil {
4122 res.Body.Close()
4123 }
4124 return nil, gensupport.WrapError(&googleapi.Error{
4125 Code: res.StatusCode,
4126 Header: res.Header,
4127 })
4128 }
4129 if err != nil {
4130 return nil, err
4131 }
4132 defer googleapi.CloseBody(res)
4133 if err := googleapi.CheckResponse(res); err != nil {
4134 return nil, gensupport.WrapError(err)
4135 }
4136 ret := &GoogleFirebaseAppdistroV1Group{
4137 ServerResponse: googleapi.ServerResponse{
4138 Header: res.Header,
4139 HTTPStatusCode: res.StatusCode,
4140 },
4141 }
4142 target := &ret
4143 if err := gensupport.DecodeResponse(target, res); err != nil {
4144 return nil, err
4145 }
4146 return ret, nil
4147 }
4148
4149 type ProjectsTestersBatchAddCall struct {
4150 s *Service
4151 project string
4152 googlefirebaseappdistrov1batchaddtestersrequest *GoogleFirebaseAppdistroV1BatchAddTestersRequest
4153 urlParams_ gensupport.URLParams
4154 ctx_ context.Context
4155 header_ http.Header
4156 }
4157
4158
4159
4160
4161
4162
4163
4164
4165 func (r *ProjectsTestersService) BatchAdd(project string, googlefirebaseappdistrov1batchaddtestersrequest *GoogleFirebaseAppdistroV1BatchAddTestersRequest) *ProjectsTestersBatchAddCall {
4166 c := &ProjectsTestersBatchAddCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4167 c.project = project
4168 c.googlefirebaseappdistrov1batchaddtestersrequest = googlefirebaseappdistrov1batchaddtestersrequest
4169 return c
4170 }
4171
4172
4173
4174
4175 func (c *ProjectsTestersBatchAddCall) Fields(s ...googleapi.Field) *ProjectsTestersBatchAddCall {
4176 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4177 return c
4178 }
4179
4180
4181 func (c *ProjectsTestersBatchAddCall) Context(ctx context.Context) *ProjectsTestersBatchAddCall {
4182 c.ctx_ = ctx
4183 return c
4184 }
4185
4186
4187
4188 func (c *ProjectsTestersBatchAddCall) Header() http.Header {
4189 if c.header_ == nil {
4190 c.header_ = make(http.Header)
4191 }
4192 return c.header_
4193 }
4194
4195 func (c *ProjectsTestersBatchAddCall) doRequest(alt string) (*http.Response, error) {
4196 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4197 var body io.Reader = nil
4198 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchaddtestersrequest)
4199 if err != nil {
4200 return nil, err
4201 }
4202 c.urlParams_.Set("alt", alt)
4203 c.urlParams_.Set("prettyPrint", "false")
4204 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}/testers:batchAdd")
4205 urls += "?" + c.urlParams_.Encode()
4206 req, err := http.NewRequest("POST", urls, body)
4207 if err != nil {
4208 return nil, err
4209 }
4210 req.Header = reqHeaders
4211 googleapi.Expand(req.URL, map[string]string{
4212 "project": c.project,
4213 })
4214 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4215 }
4216
4217
4218
4219
4220
4221
4222
4223 func (c *ProjectsTestersBatchAddCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1BatchAddTestersResponse, error) {
4224 gensupport.SetOptions(c.urlParams_, opts...)
4225 res, err := c.doRequest("json")
4226 if res != nil && res.StatusCode == http.StatusNotModified {
4227 if res.Body != nil {
4228 res.Body.Close()
4229 }
4230 return nil, gensupport.WrapError(&googleapi.Error{
4231 Code: res.StatusCode,
4232 Header: res.Header,
4233 })
4234 }
4235 if err != nil {
4236 return nil, err
4237 }
4238 defer googleapi.CloseBody(res)
4239 if err := googleapi.CheckResponse(res); err != nil {
4240 return nil, gensupport.WrapError(err)
4241 }
4242 ret := &GoogleFirebaseAppdistroV1BatchAddTestersResponse{
4243 ServerResponse: googleapi.ServerResponse{
4244 Header: res.Header,
4245 HTTPStatusCode: res.StatusCode,
4246 },
4247 }
4248 target := &ret
4249 if err := gensupport.DecodeResponse(target, res); err != nil {
4250 return nil, err
4251 }
4252 return ret, nil
4253 }
4254
4255 type ProjectsTestersBatchRemoveCall struct {
4256 s *Service
4257 project string
4258 googlefirebaseappdistrov1batchremovetestersrequest *GoogleFirebaseAppdistroV1BatchRemoveTestersRequest
4259 urlParams_ gensupport.URLParams
4260 ctx_ context.Context
4261 header_ http.Header
4262 }
4263
4264
4265
4266
4267
4268
4269 func (r *ProjectsTestersService) BatchRemove(project string, googlefirebaseappdistrov1batchremovetestersrequest *GoogleFirebaseAppdistroV1BatchRemoveTestersRequest) *ProjectsTestersBatchRemoveCall {
4270 c := &ProjectsTestersBatchRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4271 c.project = project
4272 c.googlefirebaseappdistrov1batchremovetestersrequest = googlefirebaseappdistrov1batchremovetestersrequest
4273 return c
4274 }
4275
4276
4277
4278
4279 func (c *ProjectsTestersBatchRemoveCall) Fields(s ...googleapi.Field) *ProjectsTestersBatchRemoveCall {
4280 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4281 return c
4282 }
4283
4284
4285 func (c *ProjectsTestersBatchRemoveCall) Context(ctx context.Context) *ProjectsTestersBatchRemoveCall {
4286 c.ctx_ = ctx
4287 return c
4288 }
4289
4290
4291
4292 func (c *ProjectsTestersBatchRemoveCall) Header() http.Header {
4293 if c.header_ == nil {
4294 c.header_ = make(http.Header)
4295 }
4296 return c.header_
4297 }
4298
4299 func (c *ProjectsTestersBatchRemoveCall) doRequest(alt string) (*http.Response, error) {
4300 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4301 var body io.Reader = nil
4302 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchremovetestersrequest)
4303 if err != nil {
4304 return nil, err
4305 }
4306 c.urlParams_.Set("alt", alt)
4307 c.urlParams_.Set("prettyPrint", "false")
4308 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}/testers:batchRemove")
4309 urls += "?" + c.urlParams_.Encode()
4310 req, err := http.NewRequest("POST", urls, body)
4311 if err != nil {
4312 return nil, err
4313 }
4314 req.Header = reqHeaders
4315 googleapi.Expand(req.URL, map[string]string{
4316 "project": c.project,
4317 })
4318 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4319 }
4320
4321
4322
4323
4324
4325
4326
4327 func (c *ProjectsTestersBatchRemoveCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1BatchRemoveTestersResponse, error) {
4328 gensupport.SetOptions(c.urlParams_, opts...)
4329 res, err := c.doRequest("json")
4330 if res != nil && res.StatusCode == http.StatusNotModified {
4331 if res.Body != nil {
4332 res.Body.Close()
4333 }
4334 return nil, gensupport.WrapError(&googleapi.Error{
4335 Code: res.StatusCode,
4336 Header: res.Header,
4337 })
4338 }
4339 if err != nil {
4340 return nil, err
4341 }
4342 defer googleapi.CloseBody(res)
4343 if err := googleapi.CheckResponse(res); err != nil {
4344 return nil, gensupport.WrapError(err)
4345 }
4346 ret := &GoogleFirebaseAppdistroV1BatchRemoveTestersResponse{
4347 ServerResponse: googleapi.ServerResponse{
4348 Header: res.Header,
4349 HTTPStatusCode: res.StatusCode,
4350 },
4351 }
4352 target := &ret
4353 if err := gensupport.DecodeResponse(target, res); err != nil {
4354 return nil, err
4355 }
4356 return ret, nil
4357 }
4358
4359 type ProjectsTestersListCall struct {
4360 s *Service
4361 parent string
4362 urlParams_ gensupport.URLParams
4363 ifNoneMatch_ string
4364 ctx_ context.Context
4365 header_ http.Header
4366 }
4367
4368
4369
4370
4371
4372 func (r *ProjectsTestersService) List(parent string) *ProjectsTestersListCall {
4373 c := &ProjectsTestersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4374 c.parent = parent
4375 return c
4376 }
4377
4378
4379
4380
4381
4382
4383
4384 func (c *ProjectsTestersListCall) Filter(filter string) *ProjectsTestersListCall {
4385 c.urlParams_.Set("filter", filter)
4386 return c
4387 }
4388
4389
4390
4391
4392
4393 func (c *ProjectsTestersListCall) PageSize(pageSize int64) *ProjectsTestersListCall {
4394 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4395 return c
4396 }
4397
4398
4399
4400
4401
4402 func (c *ProjectsTestersListCall) PageToken(pageToken string) *ProjectsTestersListCall {
4403 c.urlParams_.Set("pageToken", pageToken)
4404 return c
4405 }
4406
4407
4408
4409
4410 func (c *ProjectsTestersListCall) Fields(s ...googleapi.Field) *ProjectsTestersListCall {
4411 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4412 return c
4413 }
4414
4415
4416
4417
4418 func (c *ProjectsTestersListCall) IfNoneMatch(entityTag string) *ProjectsTestersListCall {
4419 c.ifNoneMatch_ = entityTag
4420 return c
4421 }
4422
4423
4424 func (c *ProjectsTestersListCall) Context(ctx context.Context) *ProjectsTestersListCall {
4425 c.ctx_ = ctx
4426 return c
4427 }
4428
4429
4430
4431 func (c *ProjectsTestersListCall) Header() http.Header {
4432 if c.header_ == nil {
4433 c.header_ = make(http.Header)
4434 }
4435 return c.header_
4436 }
4437
4438 func (c *ProjectsTestersListCall) doRequest(alt string) (*http.Response, error) {
4439 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4440 if c.ifNoneMatch_ != "" {
4441 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4442 }
4443 var body io.Reader = nil
4444 c.urlParams_.Set("alt", alt)
4445 c.urlParams_.Set("prettyPrint", "false")
4446 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/testers")
4447 urls += "?" + c.urlParams_.Encode()
4448 req, err := http.NewRequest("GET", urls, body)
4449 if err != nil {
4450 return nil, err
4451 }
4452 req.Header = reqHeaders
4453 googleapi.Expand(req.URL, map[string]string{
4454 "parent": c.parent,
4455 })
4456 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4457 }
4458
4459
4460
4461
4462
4463
4464
4465 func (c *ProjectsTestersListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1ListTestersResponse, error) {
4466 gensupport.SetOptions(c.urlParams_, opts...)
4467 res, err := c.doRequest("json")
4468 if res != nil && res.StatusCode == http.StatusNotModified {
4469 if res.Body != nil {
4470 res.Body.Close()
4471 }
4472 return nil, gensupport.WrapError(&googleapi.Error{
4473 Code: res.StatusCode,
4474 Header: res.Header,
4475 })
4476 }
4477 if err != nil {
4478 return nil, err
4479 }
4480 defer googleapi.CloseBody(res)
4481 if err := googleapi.CheckResponse(res); err != nil {
4482 return nil, gensupport.WrapError(err)
4483 }
4484 ret := &GoogleFirebaseAppdistroV1ListTestersResponse{
4485 ServerResponse: googleapi.ServerResponse{
4486 Header: res.Header,
4487 HTTPStatusCode: res.StatusCode,
4488 },
4489 }
4490 target := &ret
4491 if err := gensupport.DecodeResponse(target, res); err != nil {
4492 return nil, err
4493 }
4494 return ret, nil
4495 }
4496
4497
4498
4499
4500 func (c *ProjectsTestersListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1ListTestersResponse) error) error {
4501 c.ctx_ = ctx
4502 defer c.PageToken(c.urlParams_.Get("pageToken"))
4503 for {
4504 x, err := c.Do()
4505 if err != nil {
4506 return err
4507 }
4508 if err := f(x); err != nil {
4509 return err
4510 }
4511 if x.NextPageToken == "" {
4512 return nil
4513 }
4514 c.PageToken(x.NextPageToken)
4515 }
4516 }
4517
4518 type ProjectsTestersPatchCall struct {
4519 s *Service
4520 name string
4521 googlefirebaseappdistrov1tester *GoogleFirebaseAppdistroV1Tester
4522 urlParams_ gensupport.URLParams
4523 ctx_ context.Context
4524 header_ http.Header
4525 }
4526
4527
4528
4529
4530
4531
4532 func (r *ProjectsTestersService) Patch(name string, googlefirebaseappdistrov1tester *GoogleFirebaseAppdistroV1Tester) *ProjectsTestersPatchCall {
4533 c := &ProjectsTestersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4534 c.name = name
4535 c.googlefirebaseappdistrov1tester = googlefirebaseappdistrov1tester
4536 return c
4537 }
4538
4539
4540
4541 func (c *ProjectsTestersPatchCall) UpdateMask(updateMask string) *ProjectsTestersPatchCall {
4542 c.urlParams_.Set("updateMask", updateMask)
4543 return c
4544 }
4545
4546
4547
4548
4549 func (c *ProjectsTestersPatchCall) Fields(s ...googleapi.Field) *ProjectsTestersPatchCall {
4550 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4551 return c
4552 }
4553
4554
4555 func (c *ProjectsTestersPatchCall) Context(ctx context.Context) *ProjectsTestersPatchCall {
4556 c.ctx_ = ctx
4557 return c
4558 }
4559
4560
4561
4562 func (c *ProjectsTestersPatchCall) Header() http.Header {
4563 if c.header_ == nil {
4564 c.header_ = make(http.Header)
4565 }
4566 return c.header_
4567 }
4568
4569 func (c *ProjectsTestersPatchCall) doRequest(alt string) (*http.Response, error) {
4570 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4571 var body io.Reader = nil
4572 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1tester)
4573 if err != nil {
4574 return nil, err
4575 }
4576 c.urlParams_.Set("alt", alt)
4577 c.urlParams_.Set("prettyPrint", "false")
4578 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4579 urls += "?" + c.urlParams_.Encode()
4580 req, err := http.NewRequest("PATCH", urls, body)
4581 if err != nil {
4582 return nil, err
4583 }
4584 req.Header = reqHeaders
4585 googleapi.Expand(req.URL, map[string]string{
4586 "name": c.name,
4587 })
4588 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4589 }
4590
4591
4592
4593
4594
4595
4596
4597 func (c *ProjectsTestersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Tester, error) {
4598 gensupport.SetOptions(c.urlParams_, opts...)
4599 res, err := c.doRequest("json")
4600 if res != nil && res.StatusCode == http.StatusNotModified {
4601 if res.Body != nil {
4602 res.Body.Close()
4603 }
4604 return nil, gensupport.WrapError(&googleapi.Error{
4605 Code: res.StatusCode,
4606 Header: res.Header,
4607 })
4608 }
4609 if err != nil {
4610 return nil, err
4611 }
4612 defer googleapi.CloseBody(res)
4613 if err := googleapi.CheckResponse(res); err != nil {
4614 return nil, gensupport.WrapError(err)
4615 }
4616 ret := &GoogleFirebaseAppdistroV1Tester{
4617 ServerResponse: googleapi.ServerResponse{
4618 Header: res.Header,
4619 HTTPStatusCode: res.StatusCode,
4620 },
4621 }
4622 target := &ret
4623 if err := gensupport.DecodeResponse(target, res); err != nil {
4624 return nil, err
4625 }
4626 return ret, nil
4627 }
4628
View as plain text