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:v1alpha"
90 const apiName = "firebaseappdistribution"
91 const apiVersion = "v1alpha"
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.Apps = NewAppsService(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 Apps *AppsService
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 NewAppsService(s *Service) *AppsService {
161 rs := &AppsService{s: s}
162 rs.ReleaseByHash = NewAppsReleaseByHashService(s)
163 rs.Releases = NewAppsReleasesService(s)
164 rs.Testers = NewAppsTestersService(s)
165 rs.UploadStatus = NewAppsUploadStatusService(s)
166 return rs
167 }
168
169 type AppsService struct {
170 s *Service
171
172 ReleaseByHash *AppsReleaseByHashService
173
174 Releases *AppsReleasesService
175
176 Testers *AppsTestersService
177
178 UploadStatus *AppsUploadStatusService
179 }
180
181 func NewAppsReleaseByHashService(s *Service) *AppsReleaseByHashService {
182 rs := &AppsReleaseByHashService{s: s}
183 return rs
184 }
185
186 type AppsReleaseByHashService struct {
187 s *Service
188 }
189
190 func NewAppsReleasesService(s *Service) *AppsReleasesService {
191 rs := &AppsReleasesService{s: s}
192 rs.Notes = NewAppsReleasesNotesService(s)
193 return rs
194 }
195
196 type AppsReleasesService struct {
197 s *Service
198
199 Notes *AppsReleasesNotesService
200 }
201
202 func NewAppsReleasesNotesService(s *Service) *AppsReleasesNotesService {
203 rs := &AppsReleasesNotesService{s: s}
204 return rs
205 }
206
207 type AppsReleasesNotesService struct {
208 s *Service
209 }
210
211 func NewAppsTestersService(s *Service) *AppsTestersService {
212 rs := &AppsTestersService{s: s}
213 return rs
214 }
215
216 type AppsTestersService struct {
217 s *Service
218 }
219
220 func NewAppsUploadStatusService(s *Service) *AppsUploadStatusService {
221 rs := &AppsUploadStatusService{s: s}
222 return rs
223 }
224
225 type AppsUploadStatusService struct {
226 s *Service
227 }
228
229 func NewProjectsService(s *Service) *ProjectsService {
230 rs := &ProjectsService{s: s}
231 rs.Apps = NewProjectsAppsService(s)
232 rs.Testers = NewProjectsTestersService(s)
233 return rs
234 }
235
236 type ProjectsService struct {
237 s *Service
238
239 Apps *ProjectsAppsService
240
241 Testers *ProjectsTestersService
242 }
243
244 func NewProjectsAppsService(s *Service) *ProjectsAppsService {
245 rs := &ProjectsAppsService{s: s}
246 rs.Releases = NewProjectsAppsReleasesService(s)
247 return rs
248 }
249
250 type ProjectsAppsService struct {
251 s *Service
252
253 Releases *ProjectsAppsReleasesService
254 }
255
256 func NewProjectsAppsReleasesService(s *Service) *ProjectsAppsReleasesService {
257 rs := &ProjectsAppsReleasesService{s: s}
258 rs.Tests = NewProjectsAppsReleasesTestsService(s)
259 return rs
260 }
261
262 type ProjectsAppsReleasesService struct {
263 s *Service
264
265 Tests *ProjectsAppsReleasesTestsService
266 }
267
268 func NewProjectsAppsReleasesTestsService(s *Service) *ProjectsAppsReleasesTestsService {
269 rs := &ProjectsAppsReleasesTestsService{s: s}
270 return rs
271 }
272
273 type ProjectsAppsReleasesTestsService struct {
274 s *Service
275 }
276
277 func NewProjectsTestersService(s *Service) *ProjectsTestersService {
278 rs := &ProjectsTestersService{s: s}
279 return rs
280 }
281
282 type ProjectsTestersService struct {
283 s *Service
284 }
285
286
287 type GoogleFirebaseAppdistroV1Release struct {
288
289
290 BinaryDownloadUri string `json:"binaryDownloadUri,omitempty"`
291
292
293
294 BuildVersion string `json:"buildVersion,omitempty"`
295
296 CreateTime string `json:"createTime,omitempty"`
297
298
299
300 DisplayVersion string `json:"displayVersion,omitempty"`
301
302
303 FirebaseConsoleUri string `json:"firebaseConsoleUri,omitempty"`
304
305
306 Name string `json:"name,omitempty"`
307
308 ReleaseNotes *GoogleFirebaseAppdistroV1ReleaseNotes `json:"releaseNotes,omitempty"`
309
310
311
312 TestingUri string `json:"testingUri,omitempty"`
313
314
315
316
317
318 ForceSendFields []string `json:"-"`
319
320
321
322
323 NullFields []string `json:"-"`
324 }
325
326 func (s *GoogleFirebaseAppdistroV1Release) MarshalJSON() ([]byte, error) {
327 type NoMethod GoogleFirebaseAppdistroV1Release
328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
329 }
330
331
332 type GoogleFirebaseAppdistroV1ReleaseNotes struct {
333
334 Text string `json:"text,omitempty"`
335
336
337
338
339
340 ForceSendFields []string `json:"-"`
341
342
343
344
345 NullFields []string `json:"-"`
346 }
347
348 func (s *GoogleFirebaseAppdistroV1ReleaseNotes) MarshalJSON() ([]byte, error) {
349 type NoMethod GoogleFirebaseAppdistroV1ReleaseNotes
350 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
351 }
352
353
354
355 type GoogleFirebaseAppdistroV1UploadReleaseMetadata struct {
356 }
357
358
359
360 type GoogleFirebaseAppdistroV1UploadReleaseResponse struct {
361
362 Release *GoogleFirebaseAppdistroV1Release `json:"release,omitempty"`
363
364
365
366
367
368
369
370
371 Result string `json:"result,omitempty"`
372
373
374
375
376
377 ForceSendFields []string `json:"-"`
378
379
380
381
382 NullFields []string `json:"-"`
383 }
384
385 func (s *GoogleFirebaseAppdistroV1UploadReleaseResponse) MarshalJSON() ([]byte, error) {
386 type NoMethod GoogleFirebaseAppdistroV1UploadReleaseResponse
387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
388 }
389
390
391 type GoogleFirebaseAppdistroV1alphaAabCertificate struct {
392
393 CertificateHashMd5 string `json:"certificateHashMd5,omitempty"`
394
395 CertificateHashSha1 string `json:"certificateHashSha1,omitempty"`
396
397 CertificateHashSha256 string `json:"certificateHashSha256,omitempty"`
398
399
400
401
402
403 ForceSendFields []string `json:"-"`
404
405
406
407
408 NullFields []string `json:"-"`
409 }
410
411 func (s *GoogleFirebaseAppdistroV1alphaAabCertificate) MarshalJSON() ([]byte, error) {
412 type NoMethod GoogleFirebaseAppdistroV1alphaAabCertificate
413 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
414 }
415
416 type GoogleFirebaseAppdistroV1alphaApp struct {
417
418 AabCertificate *GoogleFirebaseAppdistroV1alphaAabCertificate `json:"aabCertificate,omitempty"`
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433 AabState string `json:"aabState,omitempty"`
434
435 AppId string `json:"appId,omitempty"`
436
437 BundleId string `json:"bundleId,omitempty"`
438
439
440 ContactEmail string `json:"contactEmail,omitempty"`
441
442 Platform string `json:"platform,omitempty"`
443
444
445 ProjectNumber string `json:"projectNumber,omitempty"`
446
447
448 googleapi.ServerResponse `json:"-"`
449
450
451
452
453
454 ForceSendFields []string `json:"-"`
455
456
457
458
459 NullFields []string `json:"-"`
460 }
461
462 func (s *GoogleFirebaseAppdistroV1alphaApp) MarshalJSON() ([]byte, error) {
463 type NoMethod GoogleFirebaseAppdistroV1alphaApp
464 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
465 }
466
467
468
469 type GoogleFirebaseAppdistroV1alphaAppCrash struct {
470
471 Message string `json:"message,omitempty"`
472
473 StackTrace string `json:"stackTrace,omitempty"`
474
475
476
477
478
479 ForceSendFields []string `json:"-"`
480
481
482
483
484 NullFields []string `json:"-"`
485 }
486
487 func (s *GoogleFirebaseAppdistroV1alphaAppCrash) MarshalJSON() ([]byte, error) {
488 type NoMethod GoogleFirebaseAppdistroV1alphaAppCrash
489 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
490 }
491
492 type GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest struct {
493
494 ReleaseNotes *GoogleFirebaseAppdistroV1alphaReleaseNotes `json:"releaseNotes,omitempty"`
495
496
497
498
499
500 ForceSendFields []string `json:"-"`
501
502
503
504
505 NullFields []string `json:"-"`
506 }
507
508 func (s *GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest) MarshalJSON() ([]byte, error) {
509 type NoMethod GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest
510 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
511 }
512
513 type GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse struct {
514
515 googleapi.ServerResponse `json:"-"`
516 }
517
518
519
520 type GoogleFirebaseAppdistroV1alphaDeviceExecution struct {
521
522 AppCrash *GoogleFirebaseAppdistroV1alphaAppCrash `json:"appCrash,omitempty"`
523
524 CrawlGraphUri string `json:"crawlGraphUri,omitempty"`
525
526 Device *GoogleFirebaseAppdistroV1alphaTestDevice `json:"device,omitempty"`
527
528
529
530
531
532
533
534
535
536
537
538 FailedReason string `json:"failedReason,omitempty"`
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558 InconclusiveReason string `json:"inconclusiveReason,omitempty"`
559
560
561
562 ResultsStoragePath string `json:"resultsStoragePath,omitempty"`
563
564 RoboStats *GoogleFirebaseAppdistroV1alphaRoboStats `json:"roboStats,omitempty"`
565
566
567
568 ScreenshotUris []string `json:"screenshotUris,omitempty"`
569
570
571
572
573
574
575
576
577 State string `json:"state,omitempty"`
578
579 VideoUri string `json:"videoUri,omitempty"`
580
581
582
583
584
585 ForceSendFields []string `json:"-"`
586
587
588
589
590 NullFields []string `json:"-"`
591 }
592
593 func (s *GoogleFirebaseAppdistroV1alphaDeviceExecution) MarshalJSON() ([]byte, error) {
594 type NoMethod GoogleFirebaseAppdistroV1alphaDeviceExecution
595 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
596 }
597
598 type GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest struct {
599
600
601 BuildVersion string `json:"buildVersion,omitempty"`
602
603
604 DisplayVersion string `json:"displayVersion,omitempty"`
605
606
607 Emails []string `json:"emails,omitempty"`
608
609
610
611 GroupIds []string `json:"groupIds,omitempty"`
612
613
614
615
616
617 ForceSendFields []string `json:"-"`
618
619
620
621
622 NullFields []string `json:"-"`
623 }
624
625 func (s *GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest) MarshalJSON() ([]byte, error) {
626 type NoMethod GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest
627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
628 }
629
630 type GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseResponse struct {
631
632 googleapi.ServerResponse `json:"-"`
633 }
634
635
636
637 type GoogleFirebaseAppdistroV1alphaGetReleaseByUploadHashResponse struct {
638
639 Release *GoogleFirebaseAppdistroV1alphaRelease `json:"release,omitempty"`
640
641
642 googleapi.ServerResponse `json:"-"`
643
644
645
646
647
648 ForceSendFields []string `json:"-"`
649
650
651
652
653 NullFields []string `json:"-"`
654 }
655
656 func (s *GoogleFirebaseAppdistroV1alphaGetReleaseByUploadHashResponse) MarshalJSON() ([]byte, error) {
657 type NoMethod GoogleFirebaseAppdistroV1alphaGetReleaseByUploadHashResponse
658 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
659 }
660
661
662
663 type GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse struct {
664
665 TesterUdids []*GoogleFirebaseAppdistroV1alphaTesterUdid `json:"testerUdids,omitempty"`
666
667
668 googleapi.ServerResponse `json:"-"`
669
670
671
672
673
674 ForceSendFields []string `json:"-"`
675
676
677
678
679 NullFields []string `json:"-"`
680 }
681
682 func (s *GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse) MarshalJSON() ([]byte, error) {
683 type NoMethod GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse
684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
685 }
686
687 type GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse struct {
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713 ErrorCode string `json:"errorCode,omitempty"`
714
715
716 Message string `json:"message,omitempty"`
717
718
719 Release *GoogleFirebaseAppdistroV1alphaRelease `json:"release,omitempty"`
720
721
722
723
724
725
726
727
728 Status string `json:"status,omitempty"`
729
730
731 googleapi.ServerResponse `json:"-"`
732
733
734
735
736
737 ForceSendFields []string `json:"-"`
738
739
740
741
742 NullFields []string `json:"-"`
743 }
744
745 func (s *GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse) MarshalJSON() ([]byte, error) {
746 type NoMethod GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse
747 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
748 }
749
750 type GoogleFirebaseAppdistroV1alphaJwt struct {
751 Token string `json:"token,omitempty"`
752
753
754 googleapi.ServerResponse `json:"-"`
755
756
757
758
759
760 ForceSendFields []string `json:"-"`
761
762
763
764
765 NullFields []string `json:"-"`
766 }
767
768 func (s *GoogleFirebaseAppdistroV1alphaJwt) MarshalJSON() ([]byte, error) {
769 type NoMethod GoogleFirebaseAppdistroV1alphaJwt
770 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
771 }
772
773
774
775 type GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse struct {
776
777
778
779 NextPageToken string `json:"nextPageToken,omitempty"`
780
781 ReleaseTests []*GoogleFirebaseAppdistroV1alphaReleaseTest `json:"releaseTests,omitempty"`
782
783
784 googleapi.ServerResponse `json:"-"`
785
786
787
788
789
790 ForceSendFields []string `json:"-"`
791
792
793
794
795 NullFields []string `json:"-"`
796 }
797
798 func (s *GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse) MarshalJSON() ([]byte, error) {
799 type NoMethod GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse
800 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
801 }
802
803
804
805 type GoogleFirebaseAppdistroV1alphaLoginCredential struct {
806
807 FieldHints *GoogleFirebaseAppdistroV1alphaLoginCredentialFieldHints `json:"fieldHints,omitempty"`
808
809 Google bool `json:"google,omitempty"`
810
811 Password string `json:"password,omitempty"`
812
813 Username string `json:"username,omitempty"`
814
815
816
817
818
819 ForceSendFields []string `json:"-"`
820
821
822
823
824 NullFields []string `json:"-"`
825 }
826
827 func (s *GoogleFirebaseAppdistroV1alphaLoginCredential) MarshalJSON() ([]byte, error) {
828 type NoMethod GoogleFirebaseAppdistroV1alphaLoginCredential
829 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
830 }
831
832
833
834 type GoogleFirebaseAppdistroV1alphaLoginCredentialFieldHints struct {
835
836
837
838
839 PasswordResourceName string `json:"passwordResourceName,omitempty"`
840
841
842
843
844 UsernameResourceName string `json:"usernameResourceName,omitempty"`
845
846
847
848
849
850 ForceSendFields []string `json:"-"`
851
852
853
854
855 NullFields []string `json:"-"`
856 }
857
858 func (s *GoogleFirebaseAppdistroV1alphaLoginCredentialFieldHints) MarshalJSON() ([]byte, error) {
859 type NoMethod GoogleFirebaseAppdistroV1alphaLoginCredentialFieldHints
860 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
861 }
862
863 type GoogleFirebaseAppdistroV1alphaProvisionAppResponse struct {
864
865 googleapi.ServerResponse `json:"-"`
866 }
867
868
869 type GoogleFirebaseAppdistroV1alphaRelease struct {
870
871 BuildVersion string `json:"buildVersion,omitempty"`
872
873 DisplayVersion string `json:"displayVersion,omitempty"`
874
875 DistributedAt string `json:"distributedAt,omitempty"`
876
877 Id string `json:"id,omitempty"`
878
879 InstanceId string `json:"instanceId,omitempty"`
880
881 LastActivityAt string `json:"lastActivityAt,omitempty"`
882
883
884 OpenInvitationCount int64 `json:"openInvitationCount,omitempty"`
885
886 ReceivedAt string `json:"receivedAt,omitempty"`
887
888 ReleaseNotesSummary string `json:"releaseNotesSummary,omitempty"`
889
890 TesterCount int64 `json:"testerCount,omitempty"`
891
892 TesterWithInstallCount int64 `json:"testerWithInstallCount,omitempty"`
893
894
895
896
897
898 ForceSendFields []string `json:"-"`
899
900
901
902
903 NullFields []string `json:"-"`
904 }
905
906 func (s *GoogleFirebaseAppdistroV1alphaRelease) MarshalJSON() ([]byte, error) {
907 type NoMethod GoogleFirebaseAppdistroV1alphaRelease
908 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
909 }
910
911 type GoogleFirebaseAppdistroV1alphaReleaseNotes struct {
912 ReleaseNotes string `json:"releaseNotes,omitempty"`
913
914
915
916
917
918 ForceSendFields []string `json:"-"`
919
920
921
922
923 NullFields []string `json:"-"`
924 }
925
926 func (s *GoogleFirebaseAppdistroV1alphaReleaseNotes) MarshalJSON() ([]byte, error) {
927 type NoMethod GoogleFirebaseAppdistroV1alphaReleaseNotes
928 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
929 }
930
931
932
933 type GoogleFirebaseAppdistroV1alphaReleaseTest struct {
934
935 CreateTime string `json:"createTime,omitempty"`
936
937 DeviceExecutions []*GoogleFirebaseAppdistroV1alphaDeviceExecution `json:"deviceExecutions,omitempty"`
938
939
940 LoginCredential *GoogleFirebaseAppdistroV1alphaLoginCredential `json:"loginCredential,omitempty"`
941
942
943
944 Name string `json:"name,omitempty"`
945
946
947 googleapi.ServerResponse `json:"-"`
948
949
950
951
952
953 ForceSendFields []string `json:"-"`
954
955
956
957
958 NullFields []string `json:"-"`
959 }
960
961 func (s *GoogleFirebaseAppdistroV1alphaReleaseTest) MarshalJSON() ([]byte, error) {
962 type NoMethod GoogleFirebaseAppdistroV1alphaReleaseTest
963 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
964 }
965
966
967 type GoogleFirebaseAppdistroV1alphaRoboCrawler struct {
968
969 LoginCredential *GoogleFirebaseAppdistroV1alphaLoginCredential `json:"loginCredential,omitempty"`
970
971
972
973
974
975 ForceSendFields []string `json:"-"`
976
977
978
979
980 NullFields []string `json:"-"`
981 }
982
983 func (s *GoogleFirebaseAppdistroV1alphaRoboCrawler) MarshalJSON() ([]byte, error) {
984 type NoMethod GoogleFirebaseAppdistroV1alphaRoboCrawler
985 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
986 }
987
988
989
990 type GoogleFirebaseAppdistroV1alphaRoboStats struct {
991
992 ActionsPerformed int64 `json:"actionsPerformed,omitempty"`
993
994 CrawlDuration string `json:"crawlDuration,omitempty"`
995
996 DistinctVisitedScreens int64 `json:"distinctVisitedScreens,omitempty"`
997
998
999 MainActivityCrawlTimedOut bool `json:"mainActivityCrawlTimedOut,omitempty"`
1000
1001
1002
1003
1004
1005 ForceSendFields []string `json:"-"`
1006
1007
1008
1009
1010 NullFields []string `json:"-"`
1011 }
1012
1013 func (s *GoogleFirebaseAppdistroV1alphaRoboStats) MarshalJSON() ([]byte, error) {
1014 type NoMethod GoogleFirebaseAppdistroV1alphaRoboStats
1015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1016 }
1017
1018
1019 type GoogleFirebaseAppdistroV1alphaTestConfig struct {
1020
1021
1022 Name string `json:"name,omitempty"`
1023
1024 RoboCrawler *GoogleFirebaseAppdistroV1alphaRoboCrawler `json:"roboCrawler,omitempty"`
1025
1026 TestDevices []*GoogleFirebaseAppdistroV1alphaTestDevice `json:"testDevices,omitempty"`
1027
1028
1029 googleapi.ServerResponse `json:"-"`
1030
1031
1032
1033
1034
1035 ForceSendFields []string `json:"-"`
1036
1037
1038
1039
1040 NullFields []string `json:"-"`
1041 }
1042
1043 func (s *GoogleFirebaseAppdistroV1alphaTestConfig) MarshalJSON() ([]byte, error) {
1044 type NoMethod GoogleFirebaseAppdistroV1alphaTestConfig
1045 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1046 }
1047
1048
1049
1050 type GoogleFirebaseAppdistroV1alphaTestDevice struct {
1051
1052
1053 Locale string `json:"locale,omitempty"`
1054
1055 Model string `json:"model,omitempty"`
1056
1057 Orientation string `json:"orientation,omitempty"`
1058
1059 Version string `json:"version,omitempty"`
1060
1061
1062
1063
1064
1065 ForceSendFields []string `json:"-"`
1066
1067
1068
1069
1070 NullFields []string `json:"-"`
1071 }
1072
1073 func (s *GoogleFirebaseAppdistroV1alphaTestDevice) MarshalJSON() ([]byte, error) {
1074 type NoMethod GoogleFirebaseAppdistroV1alphaTestDevice
1075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1076 }
1077
1078
1079 type GoogleFirebaseAppdistroV1alphaTesterUdid struct {
1080
1081 Name string `json:"name,omitempty"`
1082
1083 Platform string `json:"platform,omitempty"`
1084
1085 Udid string `json:"udid,omitempty"`
1086
1087
1088
1089
1090
1091 ForceSendFields []string `json:"-"`
1092
1093
1094
1095
1096 NullFields []string `json:"-"`
1097 }
1098
1099 func (s *GoogleFirebaseAppdistroV1alphaTesterUdid) MarshalJSON() ([]byte, error) {
1100 type NoMethod GoogleFirebaseAppdistroV1alphaTesterUdid
1101 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1102 }
1103
1104 type AppsGetCall struct {
1105 s *Service
1106 mobilesdkAppId string
1107 urlParams_ gensupport.URLParams
1108 ifNoneMatch_ string
1109 ctx_ context.Context
1110 header_ http.Header
1111 }
1112
1113
1114
1115
1116
1117
1118 func (r *AppsService) Get(mobilesdkAppId string) *AppsGetCall {
1119 c := &AppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1120 c.mobilesdkAppId = mobilesdkAppId
1121 return c
1122 }
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136 func (c *AppsGetCall) AppView(appView string) *AppsGetCall {
1137 c.urlParams_.Set("appView", appView)
1138 return c
1139 }
1140
1141
1142
1143
1144 func (c *AppsGetCall) Fields(s ...googleapi.Field) *AppsGetCall {
1145 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1146 return c
1147 }
1148
1149
1150
1151
1152 func (c *AppsGetCall) IfNoneMatch(entityTag string) *AppsGetCall {
1153 c.ifNoneMatch_ = entityTag
1154 return c
1155 }
1156
1157
1158 func (c *AppsGetCall) Context(ctx context.Context) *AppsGetCall {
1159 c.ctx_ = ctx
1160 return c
1161 }
1162
1163
1164
1165 func (c *AppsGetCall) Header() http.Header {
1166 if c.header_ == nil {
1167 c.header_ = make(http.Header)
1168 }
1169 return c.header_
1170 }
1171
1172 func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) {
1173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1174 if c.ifNoneMatch_ != "" {
1175 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1176 }
1177 var body io.Reader = nil
1178 c.urlParams_.Set("alt", alt)
1179 c.urlParams_.Set("prettyPrint", "false")
1180 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{mobilesdkAppId}")
1181 urls += "?" + c.urlParams_.Encode()
1182 req, err := http.NewRequest("GET", urls, body)
1183 if err != nil {
1184 return nil, err
1185 }
1186 req.Header = reqHeaders
1187 googleapi.Expand(req.URL, map[string]string{
1188 "mobilesdkAppId": c.mobilesdkAppId,
1189 })
1190 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1191 }
1192
1193
1194
1195
1196
1197
1198
1199 func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaApp, error) {
1200 gensupport.SetOptions(c.urlParams_, opts...)
1201 res, err := c.doRequest("json")
1202 if res != nil && res.StatusCode == http.StatusNotModified {
1203 if res.Body != nil {
1204 res.Body.Close()
1205 }
1206 return nil, gensupport.WrapError(&googleapi.Error{
1207 Code: res.StatusCode,
1208 Header: res.Header,
1209 })
1210 }
1211 if err != nil {
1212 return nil, err
1213 }
1214 defer googleapi.CloseBody(res)
1215 if err := googleapi.CheckResponse(res); err != nil {
1216 return nil, gensupport.WrapError(err)
1217 }
1218 ret := &GoogleFirebaseAppdistroV1alphaApp{
1219 ServerResponse: googleapi.ServerResponse{
1220 Header: res.Header,
1221 HTTPStatusCode: res.StatusCode,
1222 },
1223 }
1224 target := &ret
1225 if err := gensupport.DecodeResponse(target, res); err != nil {
1226 return nil, err
1227 }
1228 return ret, nil
1229 }
1230
1231 type AppsGetJwtCall struct {
1232 s *Service
1233 mobilesdkAppId string
1234 urlParams_ gensupport.URLParams
1235 ifNoneMatch_ string
1236 ctx_ context.Context
1237 header_ http.Header
1238 }
1239
1240
1241
1242
1243
1244
1245 func (r *AppsService) GetJwt(mobilesdkAppId string) *AppsGetJwtCall {
1246 c := &AppsGetJwtCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1247 c.mobilesdkAppId = mobilesdkAppId
1248 return c
1249 }
1250
1251
1252
1253
1254 func (c *AppsGetJwtCall) Fields(s ...googleapi.Field) *AppsGetJwtCall {
1255 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1256 return c
1257 }
1258
1259
1260
1261
1262 func (c *AppsGetJwtCall) IfNoneMatch(entityTag string) *AppsGetJwtCall {
1263 c.ifNoneMatch_ = entityTag
1264 return c
1265 }
1266
1267
1268 func (c *AppsGetJwtCall) Context(ctx context.Context) *AppsGetJwtCall {
1269 c.ctx_ = ctx
1270 return c
1271 }
1272
1273
1274
1275 func (c *AppsGetJwtCall) Header() http.Header {
1276 if c.header_ == nil {
1277 c.header_ = make(http.Header)
1278 }
1279 return c.header_
1280 }
1281
1282 func (c *AppsGetJwtCall) doRequest(alt string) (*http.Response, error) {
1283 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1284 if c.ifNoneMatch_ != "" {
1285 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1286 }
1287 var body io.Reader = nil
1288 c.urlParams_.Set("alt", alt)
1289 c.urlParams_.Set("prettyPrint", "false")
1290 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{mobilesdkAppId}/jwt")
1291 urls += "?" + c.urlParams_.Encode()
1292 req, err := http.NewRequest("GET", urls, body)
1293 if err != nil {
1294 return nil, err
1295 }
1296 req.Header = reqHeaders
1297 googleapi.Expand(req.URL, map[string]string{
1298 "mobilesdkAppId": c.mobilesdkAppId,
1299 })
1300 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1301 }
1302
1303
1304
1305
1306
1307
1308
1309 func (c *AppsGetJwtCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaJwt, error) {
1310 gensupport.SetOptions(c.urlParams_, opts...)
1311 res, err := c.doRequest("json")
1312 if res != nil && res.StatusCode == http.StatusNotModified {
1313 if res.Body != nil {
1314 res.Body.Close()
1315 }
1316 return nil, gensupport.WrapError(&googleapi.Error{
1317 Code: res.StatusCode,
1318 Header: res.Header,
1319 })
1320 }
1321 if err != nil {
1322 return nil, err
1323 }
1324 defer googleapi.CloseBody(res)
1325 if err := googleapi.CheckResponse(res); err != nil {
1326 return nil, gensupport.WrapError(err)
1327 }
1328 ret := &GoogleFirebaseAppdistroV1alphaJwt{
1329 ServerResponse: googleapi.ServerResponse{
1330 Header: res.Header,
1331 HTTPStatusCode: res.StatusCode,
1332 },
1333 }
1334 target := &ret
1335 if err := gensupport.DecodeResponse(target, res); err != nil {
1336 return nil, err
1337 }
1338 return ret, nil
1339 }
1340
1341 type AppsProvisionAppCall struct {
1342 s *Service
1343 mobilesdkAppId string
1344 urlParams_ gensupport.URLParams
1345 ctx_ context.Context
1346 header_ http.Header
1347 }
1348
1349
1350
1351
1352
1353
1354
1355 func (r *AppsService) ProvisionApp(mobilesdkAppId string) *AppsProvisionAppCall {
1356 c := &AppsProvisionAppCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1357 c.mobilesdkAppId = mobilesdkAppId
1358 return c
1359 }
1360
1361
1362
1363
1364 func (c *AppsProvisionAppCall) Fields(s ...googleapi.Field) *AppsProvisionAppCall {
1365 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1366 return c
1367 }
1368
1369
1370 func (c *AppsProvisionAppCall) Context(ctx context.Context) *AppsProvisionAppCall {
1371 c.ctx_ = ctx
1372 return c
1373 }
1374
1375
1376
1377 func (c *AppsProvisionAppCall) Header() http.Header {
1378 if c.header_ == nil {
1379 c.header_ = make(http.Header)
1380 }
1381 return c.header_
1382 }
1383
1384 func (c *AppsProvisionAppCall) doRequest(alt string) (*http.Response, error) {
1385 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1386 var body io.Reader = nil
1387 c.urlParams_.Set("alt", alt)
1388 c.urlParams_.Set("prettyPrint", "false")
1389 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{mobilesdkAppId}")
1390 urls += "?" + c.urlParams_.Encode()
1391 req, err := http.NewRequest("POST", urls, body)
1392 if err != nil {
1393 return nil, err
1394 }
1395 req.Header = reqHeaders
1396 googleapi.Expand(req.URL, map[string]string{
1397 "mobilesdkAppId": c.mobilesdkAppId,
1398 })
1399 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1400 }
1401
1402
1403
1404
1405
1406
1407
1408 func (c *AppsProvisionAppCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaProvisionAppResponse, error) {
1409 gensupport.SetOptions(c.urlParams_, opts...)
1410 res, err := c.doRequest("json")
1411 if res != nil && res.StatusCode == http.StatusNotModified {
1412 if res.Body != nil {
1413 res.Body.Close()
1414 }
1415 return nil, gensupport.WrapError(&googleapi.Error{
1416 Code: res.StatusCode,
1417 Header: res.Header,
1418 })
1419 }
1420 if err != nil {
1421 return nil, err
1422 }
1423 defer googleapi.CloseBody(res)
1424 if err := googleapi.CheckResponse(res); err != nil {
1425 return nil, gensupport.WrapError(err)
1426 }
1427 ret := &GoogleFirebaseAppdistroV1alphaProvisionAppResponse{
1428 ServerResponse: googleapi.ServerResponse{
1429 Header: res.Header,
1430 HTTPStatusCode: res.StatusCode,
1431 },
1432 }
1433 target := &ret
1434 if err := gensupport.DecodeResponse(target, res); err != nil {
1435 return nil, err
1436 }
1437 return ret, nil
1438 }
1439
1440 type AppsReleaseByHashGetCall struct {
1441 s *Service
1442 mobilesdkAppId string
1443 uploadHash string
1444 urlParams_ gensupport.URLParams
1445 ifNoneMatch_ string
1446 ctx_ context.Context
1447 header_ http.Header
1448 }
1449
1450
1451
1452
1453
1454
1455
1456 func (r *AppsReleaseByHashService) Get(mobilesdkAppId string, uploadHash string) *AppsReleaseByHashGetCall {
1457 c := &AppsReleaseByHashGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1458 c.mobilesdkAppId = mobilesdkAppId
1459 c.uploadHash = uploadHash
1460 return c
1461 }
1462
1463
1464
1465
1466 func (c *AppsReleaseByHashGetCall) Fields(s ...googleapi.Field) *AppsReleaseByHashGetCall {
1467 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1468 return c
1469 }
1470
1471
1472
1473
1474 func (c *AppsReleaseByHashGetCall) IfNoneMatch(entityTag string) *AppsReleaseByHashGetCall {
1475 c.ifNoneMatch_ = entityTag
1476 return c
1477 }
1478
1479
1480 func (c *AppsReleaseByHashGetCall) Context(ctx context.Context) *AppsReleaseByHashGetCall {
1481 c.ctx_ = ctx
1482 return c
1483 }
1484
1485
1486
1487 func (c *AppsReleaseByHashGetCall) Header() http.Header {
1488 if c.header_ == nil {
1489 c.header_ = make(http.Header)
1490 }
1491 return c.header_
1492 }
1493
1494 func (c *AppsReleaseByHashGetCall) doRequest(alt string) (*http.Response, error) {
1495 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1496 if c.ifNoneMatch_ != "" {
1497 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1498 }
1499 var body io.Reader = nil
1500 c.urlParams_.Set("alt", alt)
1501 c.urlParams_.Set("prettyPrint", "false")
1502 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{mobilesdkAppId}/release_by_hash/{uploadHash}")
1503 urls += "?" + c.urlParams_.Encode()
1504 req, err := http.NewRequest("GET", urls, body)
1505 if err != nil {
1506 return nil, err
1507 }
1508 req.Header = reqHeaders
1509 googleapi.Expand(req.URL, map[string]string{
1510 "mobilesdkAppId": c.mobilesdkAppId,
1511 "uploadHash": c.uploadHash,
1512 })
1513 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1514 }
1515
1516
1517
1518
1519
1520
1521
1522 func (c *AppsReleaseByHashGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaGetReleaseByUploadHashResponse, error) {
1523 gensupport.SetOptions(c.urlParams_, opts...)
1524 res, err := c.doRequest("json")
1525 if res != nil && res.StatusCode == http.StatusNotModified {
1526 if res.Body != nil {
1527 res.Body.Close()
1528 }
1529 return nil, gensupport.WrapError(&googleapi.Error{
1530 Code: res.StatusCode,
1531 Header: res.Header,
1532 })
1533 }
1534 if err != nil {
1535 return nil, err
1536 }
1537 defer googleapi.CloseBody(res)
1538 if err := googleapi.CheckResponse(res); err != nil {
1539 return nil, gensupport.WrapError(err)
1540 }
1541 ret := &GoogleFirebaseAppdistroV1alphaGetReleaseByUploadHashResponse{
1542 ServerResponse: googleapi.ServerResponse{
1543 Header: res.Header,
1544 HTTPStatusCode: res.StatusCode,
1545 },
1546 }
1547 target := &ret
1548 if err := gensupport.DecodeResponse(target, res); err != nil {
1549 return nil, err
1550 }
1551 return ret, nil
1552 }
1553
1554 type AppsReleasesEnableAccessCall struct {
1555 s *Service
1556 mobilesdkAppId string
1557 releaseId string
1558 googlefirebaseappdistrov1alphaenableaccessonreleaserequest *GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest
1559 urlParams_ gensupport.URLParams
1560 ctx_ context.Context
1561 header_ http.Header
1562 }
1563
1564
1565
1566
1567
1568
1569
1570 func (r *AppsReleasesService) EnableAccess(mobilesdkAppId string, releaseId string, googlefirebaseappdistrov1alphaenableaccessonreleaserequest *GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest) *AppsReleasesEnableAccessCall {
1571 c := &AppsReleasesEnableAccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1572 c.mobilesdkAppId = mobilesdkAppId
1573 c.releaseId = releaseId
1574 c.googlefirebaseappdistrov1alphaenableaccessonreleaserequest = googlefirebaseappdistrov1alphaenableaccessonreleaserequest
1575 return c
1576 }
1577
1578
1579
1580
1581 func (c *AppsReleasesEnableAccessCall) Fields(s ...googleapi.Field) *AppsReleasesEnableAccessCall {
1582 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1583 return c
1584 }
1585
1586
1587 func (c *AppsReleasesEnableAccessCall) Context(ctx context.Context) *AppsReleasesEnableAccessCall {
1588 c.ctx_ = ctx
1589 return c
1590 }
1591
1592
1593
1594 func (c *AppsReleasesEnableAccessCall) Header() http.Header {
1595 if c.header_ == nil {
1596 c.header_ = make(http.Header)
1597 }
1598 return c.header_
1599 }
1600
1601 func (c *AppsReleasesEnableAccessCall) doRequest(alt string) (*http.Response, error) {
1602 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
1603 var body io.Reader = nil
1604 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1alphaenableaccessonreleaserequest)
1605 if err != nil {
1606 return nil, err
1607 }
1608 c.urlParams_.Set("alt", alt)
1609 c.urlParams_.Set("prettyPrint", "false")
1610 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{mobilesdkAppId}/releases/{releaseId}/enable_access")
1611 urls += "?" + c.urlParams_.Encode()
1612 req, err := http.NewRequest("POST", urls, body)
1613 if err != nil {
1614 return nil, err
1615 }
1616 req.Header = reqHeaders
1617 googleapi.Expand(req.URL, map[string]string{
1618 "mobilesdkAppId": c.mobilesdkAppId,
1619 "releaseId": c.releaseId,
1620 })
1621 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1622 }
1623
1624
1625
1626
1627
1628
1629
1630 func (c *AppsReleasesEnableAccessCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseResponse, error) {
1631 gensupport.SetOptions(c.urlParams_, opts...)
1632 res, err := c.doRequest("json")
1633 if res != nil && res.StatusCode == http.StatusNotModified {
1634 if res.Body != nil {
1635 res.Body.Close()
1636 }
1637 return nil, gensupport.WrapError(&googleapi.Error{
1638 Code: res.StatusCode,
1639 Header: res.Header,
1640 })
1641 }
1642 if err != nil {
1643 return nil, err
1644 }
1645 defer googleapi.CloseBody(res)
1646 if err := googleapi.CheckResponse(res); err != nil {
1647 return nil, gensupport.WrapError(err)
1648 }
1649 ret := &GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseResponse{
1650 ServerResponse: googleapi.ServerResponse{
1651 Header: res.Header,
1652 HTTPStatusCode: res.StatusCode,
1653 },
1654 }
1655 target := &ret
1656 if err := gensupport.DecodeResponse(target, res); err != nil {
1657 return nil, err
1658 }
1659 return ret, nil
1660 }
1661
1662 type AppsReleasesNotesCreateCall struct {
1663 s *Service
1664 mobilesdkAppId string
1665 releaseId string
1666 googlefirebaseappdistrov1alphacreatereleasenotesrequest *GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest
1667 urlParams_ gensupport.URLParams
1668 ctx_ context.Context
1669 header_ http.Header
1670 }
1671
1672
1673
1674
1675
1676
1677
1678 func (r *AppsReleasesNotesService) Create(mobilesdkAppId string, releaseId string, googlefirebaseappdistrov1alphacreatereleasenotesrequest *GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest) *AppsReleasesNotesCreateCall {
1679 c := &AppsReleasesNotesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1680 c.mobilesdkAppId = mobilesdkAppId
1681 c.releaseId = releaseId
1682 c.googlefirebaseappdistrov1alphacreatereleasenotesrequest = googlefirebaseappdistrov1alphacreatereleasenotesrequest
1683 return c
1684 }
1685
1686
1687
1688
1689 func (c *AppsReleasesNotesCreateCall) Fields(s ...googleapi.Field) *AppsReleasesNotesCreateCall {
1690 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1691 return c
1692 }
1693
1694
1695 func (c *AppsReleasesNotesCreateCall) Context(ctx context.Context) *AppsReleasesNotesCreateCall {
1696 c.ctx_ = ctx
1697 return c
1698 }
1699
1700
1701
1702 func (c *AppsReleasesNotesCreateCall) Header() http.Header {
1703 if c.header_ == nil {
1704 c.header_ = make(http.Header)
1705 }
1706 return c.header_
1707 }
1708
1709 func (c *AppsReleasesNotesCreateCall) doRequest(alt string) (*http.Response, error) {
1710 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
1711 var body io.Reader = nil
1712 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1alphacreatereleasenotesrequest)
1713 if err != nil {
1714 return nil, err
1715 }
1716 c.urlParams_.Set("alt", alt)
1717 c.urlParams_.Set("prettyPrint", "false")
1718 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{mobilesdkAppId}/releases/{releaseId}/notes")
1719 urls += "?" + c.urlParams_.Encode()
1720 req, err := http.NewRequest("POST", urls, body)
1721 if err != nil {
1722 return nil, err
1723 }
1724 req.Header = reqHeaders
1725 googleapi.Expand(req.URL, map[string]string{
1726 "mobilesdkAppId": c.mobilesdkAppId,
1727 "releaseId": c.releaseId,
1728 })
1729 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1730 }
1731
1732
1733
1734
1735
1736
1737
1738 func (c *AppsReleasesNotesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse, error) {
1739 gensupport.SetOptions(c.urlParams_, opts...)
1740 res, err := c.doRequest("json")
1741 if res != nil && res.StatusCode == http.StatusNotModified {
1742 if res.Body != nil {
1743 res.Body.Close()
1744 }
1745 return nil, gensupport.WrapError(&googleapi.Error{
1746 Code: res.StatusCode,
1747 Header: res.Header,
1748 })
1749 }
1750 if err != nil {
1751 return nil, err
1752 }
1753 defer googleapi.CloseBody(res)
1754 if err := googleapi.CheckResponse(res); err != nil {
1755 return nil, gensupport.WrapError(err)
1756 }
1757 ret := &GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse{
1758 ServerResponse: googleapi.ServerResponse{
1759 Header: res.Header,
1760 HTTPStatusCode: res.StatusCode,
1761 },
1762 }
1763 target := &ret
1764 if err := gensupport.DecodeResponse(target, res); err != nil {
1765 return nil, err
1766 }
1767 return ret, nil
1768 }
1769
1770 type AppsTestersGetTesterUdidsCall struct {
1771 s *Service
1772 mobilesdkAppId string
1773 urlParams_ gensupport.URLParams
1774 ifNoneMatch_ string
1775 ctx_ context.Context
1776 header_ http.Header
1777 }
1778
1779
1780
1781
1782
1783
1784 func (r *AppsTestersService) GetTesterUdids(mobilesdkAppId string) *AppsTestersGetTesterUdidsCall {
1785 c := &AppsTestersGetTesterUdidsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1786 c.mobilesdkAppId = mobilesdkAppId
1787 return c
1788 }
1789
1790
1791
1792 func (c *AppsTestersGetTesterUdidsCall) Project(project string) *AppsTestersGetTesterUdidsCall {
1793 c.urlParams_.Set("project", project)
1794 return c
1795 }
1796
1797
1798
1799
1800 func (c *AppsTestersGetTesterUdidsCall) Fields(s ...googleapi.Field) *AppsTestersGetTesterUdidsCall {
1801 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1802 return c
1803 }
1804
1805
1806
1807
1808 func (c *AppsTestersGetTesterUdidsCall) IfNoneMatch(entityTag string) *AppsTestersGetTesterUdidsCall {
1809 c.ifNoneMatch_ = entityTag
1810 return c
1811 }
1812
1813
1814 func (c *AppsTestersGetTesterUdidsCall) Context(ctx context.Context) *AppsTestersGetTesterUdidsCall {
1815 c.ctx_ = ctx
1816 return c
1817 }
1818
1819
1820
1821 func (c *AppsTestersGetTesterUdidsCall) Header() http.Header {
1822 if c.header_ == nil {
1823 c.header_ = make(http.Header)
1824 }
1825 return c.header_
1826 }
1827
1828 func (c *AppsTestersGetTesterUdidsCall) doRequest(alt string) (*http.Response, error) {
1829 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1830 if c.ifNoneMatch_ != "" {
1831 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1832 }
1833 var body io.Reader = nil
1834 c.urlParams_.Set("alt", alt)
1835 c.urlParams_.Set("prettyPrint", "false")
1836 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{mobilesdkAppId}/testers:getTesterUdids")
1837 urls += "?" + c.urlParams_.Encode()
1838 req, err := http.NewRequest("GET", urls, body)
1839 if err != nil {
1840 return nil, err
1841 }
1842 req.Header = reqHeaders
1843 googleapi.Expand(req.URL, map[string]string{
1844 "mobilesdkAppId": c.mobilesdkAppId,
1845 })
1846 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1847 }
1848
1849
1850
1851
1852
1853
1854
1855 func (c *AppsTestersGetTesterUdidsCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse, error) {
1856 gensupport.SetOptions(c.urlParams_, opts...)
1857 res, err := c.doRequest("json")
1858 if res != nil && res.StatusCode == http.StatusNotModified {
1859 if res.Body != nil {
1860 res.Body.Close()
1861 }
1862 return nil, gensupport.WrapError(&googleapi.Error{
1863 Code: res.StatusCode,
1864 Header: res.Header,
1865 })
1866 }
1867 if err != nil {
1868 return nil, err
1869 }
1870 defer googleapi.CloseBody(res)
1871 if err := googleapi.CheckResponse(res); err != nil {
1872 return nil, gensupport.WrapError(err)
1873 }
1874 ret := &GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse{
1875 ServerResponse: googleapi.ServerResponse{
1876 Header: res.Header,
1877 HTTPStatusCode: res.StatusCode,
1878 },
1879 }
1880 target := &ret
1881 if err := gensupport.DecodeResponse(target, res); err != nil {
1882 return nil, err
1883 }
1884 return ret, nil
1885 }
1886
1887 type AppsUploadStatusGetCall struct {
1888 s *Service
1889 mobilesdkAppId string
1890 uploadToken string
1891 urlParams_ gensupport.URLParams
1892 ifNoneMatch_ string
1893 ctx_ context.Context
1894 header_ http.Header
1895 }
1896
1897
1898
1899
1900
1901
1902
1903 func (r *AppsUploadStatusService) Get(mobilesdkAppId string, uploadToken string) *AppsUploadStatusGetCall {
1904 c := &AppsUploadStatusGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1905 c.mobilesdkAppId = mobilesdkAppId
1906 c.uploadToken = uploadToken
1907 return c
1908 }
1909
1910
1911
1912
1913 func (c *AppsUploadStatusGetCall) Fields(s ...googleapi.Field) *AppsUploadStatusGetCall {
1914 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1915 return c
1916 }
1917
1918
1919
1920
1921 func (c *AppsUploadStatusGetCall) IfNoneMatch(entityTag string) *AppsUploadStatusGetCall {
1922 c.ifNoneMatch_ = entityTag
1923 return c
1924 }
1925
1926
1927 func (c *AppsUploadStatusGetCall) Context(ctx context.Context) *AppsUploadStatusGetCall {
1928 c.ctx_ = ctx
1929 return c
1930 }
1931
1932
1933
1934 func (c *AppsUploadStatusGetCall) Header() http.Header {
1935 if c.header_ == nil {
1936 c.header_ = make(http.Header)
1937 }
1938 return c.header_
1939 }
1940
1941 func (c *AppsUploadStatusGetCall) doRequest(alt string) (*http.Response, error) {
1942 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
1943 if c.ifNoneMatch_ != "" {
1944 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1945 }
1946 var body io.Reader = nil
1947 c.urlParams_.Set("alt", alt)
1948 c.urlParams_.Set("prettyPrint", "false")
1949 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{mobilesdkAppId}/upload_status/{uploadToken}")
1950 urls += "?" + c.urlParams_.Encode()
1951 req, err := http.NewRequest("GET", urls, body)
1952 if err != nil {
1953 return nil, err
1954 }
1955 req.Header = reqHeaders
1956 googleapi.Expand(req.URL, map[string]string{
1957 "mobilesdkAppId": c.mobilesdkAppId,
1958 "uploadToken": c.uploadToken,
1959 })
1960 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1961 }
1962
1963
1964
1965
1966
1967
1968
1969 func (c *AppsUploadStatusGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse, error) {
1970 gensupport.SetOptions(c.urlParams_, opts...)
1971 res, err := c.doRequest("json")
1972 if res != nil && res.StatusCode == http.StatusNotModified {
1973 if res.Body != nil {
1974 res.Body.Close()
1975 }
1976 return nil, gensupport.WrapError(&googleapi.Error{
1977 Code: res.StatusCode,
1978 Header: res.Header,
1979 })
1980 }
1981 if err != nil {
1982 return nil, err
1983 }
1984 defer googleapi.CloseBody(res)
1985 if err := googleapi.CheckResponse(res); err != nil {
1986 return nil, gensupport.WrapError(err)
1987 }
1988 ret := &GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse{
1989 ServerResponse: googleapi.ServerResponse{
1990 Header: res.Header,
1991 HTTPStatusCode: res.StatusCode,
1992 },
1993 }
1994 target := &ret
1995 if err := gensupport.DecodeResponse(target, res); err != nil {
1996 return nil, err
1997 }
1998 return ret, nil
1999 }
2000
2001 type ProjectsAppsGetTestConfigCall struct {
2002 s *Service
2003 name string
2004 urlParams_ gensupport.URLParams
2005 ifNoneMatch_ string
2006 ctx_ context.Context
2007 header_ http.Header
2008 }
2009
2010
2011
2012
2013
2014 func (r *ProjectsAppsService) GetTestConfig(name string) *ProjectsAppsGetTestConfigCall {
2015 c := &ProjectsAppsGetTestConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2016 c.name = name
2017 return c
2018 }
2019
2020
2021
2022
2023 func (c *ProjectsAppsGetTestConfigCall) Fields(s ...googleapi.Field) *ProjectsAppsGetTestConfigCall {
2024 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2025 return c
2026 }
2027
2028
2029
2030
2031 func (c *ProjectsAppsGetTestConfigCall) IfNoneMatch(entityTag string) *ProjectsAppsGetTestConfigCall {
2032 c.ifNoneMatch_ = entityTag
2033 return c
2034 }
2035
2036
2037 func (c *ProjectsAppsGetTestConfigCall) Context(ctx context.Context) *ProjectsAppsGetTestConfigCall {
2038 c.ctx_ = ctx
2039 return c
2040 }
2041
2042
2043
2044 func (c *ProjectsAppsGetTestConfigCall) Header() http.Header {
2045 if c.header_ == nil {
2046 c.header_ = make(http.Header)
2047 }
2048 return c.header_
2049 }
2050
2051 func (c *ProjectsAppsGetTestConfigCall) doRequest(alt string) (*http.Response, error) {
2052 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2053 if c.ifNoneMatch_ != "" {
2054 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2055 }
2056 var body io.Reader = nil
2057 c.urlParams_.Set("alt", alt)
2058 c.urlParams_.Set("prettyPrint", "false")
2059 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
2060 urls += "?" + c.urlParams_.Encode()
2061 req, err := http.NewRequest("GET", urls, body)
2062 if err != nil {
2063 return nil, err
2064 }
2065 req.Header = reqHeaders
2066 googleapi.Expand(req.URL, map[string]string{
2067 "name": c.name,
2068 })
2069 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2070 }
2071
2072
2073
2074
2075
2076
2077
2078 func (c *ProjectsAppsGetTestConfigCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaTestConfig, error) {
2079 gensupport.SetOptions(c.urlParams_, opts...)
2080 res, err := c.doRequest("json")
2081 if res != nil && res.StatusCode == http.StatusNotModified {
2082 if res.Body != nil {
2083 res.Body.Close()
2084 }
2085 return nil, gensupport.WrapError(&googleapi.Error{
2086 Code: res.StatusCode,
2087 Header: res.Header,
2088 })
2089 }
2090 if err != nil {
2091 return nil, err
2092 }
2093 defer googleapi.CloseBody(res)
2094 if err := googleapi.CheckResponse(res); err != nil {
2095 return nil, gensupport.WrapError(err)
2096 }
2097 ret := &GoogleFirebaseAppdistroV1alphaTestConfig{
2098 ServerResponse: googleapi.ServerResponse{
2099 Header: res.Header,
2100 HTTPStatusCode: res.StatusCode,
2101 },
2102 }
2103 target := &ret
2104 if err := gensupport.DecodeResponse(target, res); err != nil {
2105 return nil, err
2106 }
2107 return ret, nil
2108 }
2109
2110 type ProjectsAppsUpdateTestConfigCall struct {
2111 s *Service
2112 name string
2113 googlefirebaseappdistrov1alphatestconfig *GoogleFirebaseAppdistroV1alphaTestConfig
2114 urlParams_ gensupport.URLParams
2115 ctx_ context.Context
2116 header_ http.Header
2117 }
2118
2119
2120
2121
2122
2123 func (r *ProjectsAppsService) UpdateTestConfig(name string, googlefirebaseappdistrov1alphatestconfig *GoogleFirebaseAppdistroV1alphaTestConfig) *ProjectsAppsUpdateTestConfigCall {
2124 c := &ProjectsAppsUpdateTestConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2125 c.name = name
2126 c.googlefirebaseappdistrov1alphatestconfig = googlefirebaseappdistrov1alphatestconfig
2127 return c
2128 }
2129
2130
2131
2132 func (c *ProjectsAppsUpdateTestConfigCall) UpdateMask(updateMask string) *ProjectsAppsUpdateTestConfigCall {
2133 c.urlParams_.Set("updateMask", updateMask)
2134 return c
2135 }
2136
2137
2138
2139
2140 func (c *ProjectsAppsUpdateTestConfigCall) Fields(s ...googleapi.Field) *ProjectsAppsUpdateTestConfigCall {
2141 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2142 return c
2143 }
2144
2145
2146 func (c *ProjectsAppsUpdateTestConfigCall) Context(ctx context.Context) *ProjectsAppsUpdateTestConfigCall {
2147 c.ctx_ = ctx
2148 return c
2149 }
2150
2151
2152
2153 func (c *ProjectsAppsUpdateTestConfigCall) Header() http.Header {
2154 if c.header_ == nil {
2155 c.header_ = make(http.Header)
2156 }
2157 return c.header_
2158 }
2159
2160 func (c *ProjectsAppsUpdateTestConfigCall) doRequest(alt string) (*http.Response, error) {
2161 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
2162 var body io.Reader = nil
2163 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1alphatestconfig)
2164 if err != nil {
2165 return nil, err
2166 }
2167 c.urlParams_.Set("alt", alt)
2168 c.urlParams_.Set("prettyPrint", "false")
2169 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
2170 urls += "?" + c.urlParams_.Encode()
2171 req, err := http.NewRequest("PATCH", urls, body)
2172 if err != nil {
2173 return nil, err
2174 }
2175 req.Header = reqHeaders
2176 googleapi.Expand(req.URL, map[string]string{
2177 "name": c.name,
2178 })
2179 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2180 }
2181
2182
2183
2184
2185
2186
2187
2188 func (c *ProjectsAppsUpdateTestConfigCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaTestConfig, error) {
2189 gensupport.SetOptions(c.urlParams_, opts...)
2190 res, err := c.doRequest("json")
2191 if res != nil && res.StatusCode == http.StatusNotModified {
2192 if res.Body != nil {
2193 res.Body.Close()
2194 }
2195 return nil, gensupport.WrapError(&googleapi.Error{
2196 Code: res.StatusCode,
2197 Header: res.Header,
2198 })
2199 }
2200 if err != nil {
2201 return nil, err
2202 }
2203 defer googleapi.CloseBody(res)
2204 if err := googleapi.CheckResponse(res); err != nil {
2205 return nil, gensupport.WrapError(err)
2206 }
2207 ret := &GoogleFirebaseAppdistroV1alphaTestConfig{
2208 ServerResponse: googleapi.ServerResponse{
2209 Header: res.Header,
2210 HTTPStatusCode: res.StatusCode,
2211 },
2212 }
2213 target := &ret
2214 if err := gensupport.DecodeResponse(target, res); err != nil {
2215 return nil, err
2216 }
2217 return ret, nil
2218 }
2219
2220 type ProjectsAppsReleasesTestsCreateCall struct {
2221 s *Service
2222 parent string
2223 googlefirebaseappdistrov1alphareleasetest *GoogleFirebaseAppdistroV1alphaReleaseTest
2224 urlParams_ gensupport.URLParams
2225 ctx_ context.Context
2226 header_ http.Header
2227 }
2228
2229
2230
2231
2232
2233 func (r *ProjectsAppsReleasesTestsService) Create(parent string, googlefirebaseappdistrov1alphareleasetest *GoogleFirebaseAppdistroV1alphaReleaseTest) *ProjectsAppsReleasesTestsCreateCall {
2234 c := &ProjectsAppsReleasesTestsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2235 c.parent = parent
2236 c.googlefirebaseappdistrov1alphareleasetest = googlefirebaseappdistrov1alphareleasetest
2237 return c
2238 }
2239
2240
2241
2242
2243
2244 func (c *ProjectsAppsReleasesTestsCreateCall) ReleaseTestId(releaseTestId string) *ProjectsAppsReleasesTestsCreateCall {
2245 c.urlParams_.Set("releaseTestId", releaseTestId)
2246 return c
2247 }
2248
2249
2250
2251
2252 func (c *ProjectsAppsReleasesTestsCreateCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesTestsCreateCall {
2253 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2254 return c
2255 }
2256
2257
2258 func (c *ProjectsAppsReleasesTestsCreateCall) Context(ctx context.Context) *ProjectsAppsReleasesTestsCreateCall {
2259 c.ctx_ = ctx
2260 return c
2261 }
2262
2263
2264
2265 func (c *ProjectsAppsReleasesTestsCreateCall) Header() http.Header {
2266 if c.header_ == nil {
2267 c.header_ = make(http.Header)
2268 }
2269 return c.header_
2270 }
2271
2272 func (c *ProjectsAppsReleasesTestsCreateCall) doRequest(alt string) (*http.Response, error) {
2273 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
2274 var body io.Reader = nil
2275 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1alphareleasetest)
2276 if err != nil {
2277 return nil, err
2278 }
2279 c.urlParams_.Set("alt", alt)
2280 c.urlParams_.Set("prettyPrint", "false")
2281 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/tests")
2282 urls += "?" + c.urlParams_.Encode()
2283 req, err := http.NewRequest("POST", urls, body)
2284 if err != nil {
2285 return nil, err
2286 }
2287 req.Header = reqHeaders
2288 googleapi.Expand(req.URL, map[string]string{
2289 "parent": c.parent,
2290 })
2291 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2292 }
2293
2294
2295
2296
2297
2298
2299
2300 func (c *ProjectsAppsReleasesTestsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaReleaseTest, error) {
2301 gensupport.SetOptions(c.urlParams_, opts...)
2302 res, err := c.doRequest("json")
2303 if res != nil && res.StatusCode == http.StatusNotModified {
2304 if res.Body != nil {
2305 res.Body.Close()
2306 }
2307 return nil, gensupport.WrapError(&googleapi.Error{
2308 Code: res.StatusCode,
2309 Header: res.Header,
2310 })
2311 }
2312 if err != nil {
2313 return nil, err
2314 }
2315 defer googleapi.CloseBody(res)
2316 if err := googleapi.CheckResponse(res); err != nil {
2317 return nil, gensupport.WrapError(err)
2318 }
2319 ret := &GoogleFirebaseAppdistroV1alphaReleaseTest{
2320 ServerResponse: googleapi.ServerResponse{
2321 Header: res.Header,
2322 HTTPStatusCode: res.StatusCode,
2323 },
2324 }
2325 target := &ret
2326 if err := gensupport.DecodeResponse(target, res); err != nil {
2327 return nil, err
2328 }
2329 return ret, nil
2330 }
2331
2332 type ProjectsAppsReleasesTestsGetCall struct {
2333 s *Service
2334 name string
2335 urlParams_ gensupport.URLParams
2336 ifNoneMatch_ string
2337 ctx_ context.Context
2338 header_ http.Header
2339 }
2340
2341
2342
2343
2344
2345
2346 func (r *ProjectsAppsReleasesTestsService) Get(name string) *ProjectsAppsReleasesTestsGetCall {
2347 c := &ProjectsAppsReleasesTestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2348 c.name = name
2349 return c
2350 }
2351
2352
2353
2354
2355 func (c *ProjectsAppsReleasesTestsGetCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesTestsGetCall {
2356 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2357 return c
2358 }
2359
2360
2361
2362
2363 func (c *ProjectsAppsReleasesTestsGetCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesTestsGetCall {
2364 c.ifNoneMatch_ = entityTag
2365 return c
2366 }
2367
2368
2369 func (c *ProjectsAppsReleasesTestsGetCall) Context(ctx context.Context) *ProjectsAppsReleasesTestsGetCall {
2370 c.ctx_ = ctx
2371 return c
2372 }
2373
2374
2375
2376 func (c *ProjectsAppsReleasesTestsGetCall) Header() http.Header {
2377 if c.header_ == nil {
2378 c.header_ = make(http.Header)
2379 }
2380 return c.header_
2381 }
2382
2383 func (c *ProjectsAppsReleasesTestsGetCall) doRequest(alt string) (*http.Response, error) {
2384 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2385 if c.ifNoneMatch_ != "" {
2386 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2387 }
2388 var body io.Reader = nil
2389 c.urlParams_.Set("alt", alt)
2390 c.urlParams_.Set("prettyPrint", "false")
2391 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
2392 urls += "?" + c.urlParams_.Encode()
2393 req, err := http.NewRequest("GET", urls, body)
2394 if err != nil {
2395 return nil, err
2396 }
2397 req.Header = reqHeaders
2398 googleapi.Expand(req.URL, map[string]string{
2399 "name": c.name,
2400 })
2401 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2402 }
2403
2404
2405
2406
2407
2408
2409
2410 func (c *ProjectsAppsReleasesTestsGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaReleaseTest, error) {
2411 gensupport.SetOptions(c.urlParams_, opts...)
2412 res, err := c.doRequest("json")
2413 if res != nil && res.StatusCode == http.StatusNotModified {
2414 if res.Body != nil {
2415 res.Body.Close()
2416 }
2417 return nil, gensupport.WrapError(&googleapi.Error{
2418 Code: res.StatusCode,
2419 Header: res.Header,
2420 })
2421 }
2422 if err != nil {
2423 return nil, err
2424 }
2425 defer googleapi.CloseBody(res)
2426 if err := googleapi.CheckResponse(res); err != nil {
2427 return nil, gensupport.WrapError(err)
2428 }
2429 ret := &GoogleFirebaseAppdistroV1alphaReleaseTest{
2430 ServerResponse: googleapi.ServerResponse{
2431 Header: res.Header,
2432 HTTPStatusCode: res.StatusCode,
2433 },
2434 }
2435 target := &ret
2436 if err := gensupport.DecodeResponse(target, res); err != nil {
2437 return nil, err
2438 }
2439 return ret, nil
2440 }
2441
2442 type ProjectsAppsReleasesTestsListCall struct {
2443 s *Service
2444 parent string
2445 urlParams_ gensupport.URLParams
2446 ifNoneMatch_ string
2447 ctx_ context.Context
2448 header_ http.Header
2449 }
2450
2451
2452
2453
2454
2455 func (r *ProjectsAppsReleasesTestsService) List(parent string) *ProjectsAppsReleasesTestsListCall {
2456 c := &ProjectsAppsReleasesTestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2457 c.parent = parent
2458 return c
2459 }
2460
2461
2462
2463 func (c *ProjectsAppsReleasesTestsListCall) PageSize(pageSize int64) *ProjectsAppsReleasesTestsListCall {
2464 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
2465 return c
2466 }
2467
2468
2469
2470
2471 func (c *ProjectsAppsReleasesTestsListCall) PageToken(pageToken string) *ProjectsAppsReleasesTestsListCall {
2472 c.urlParams_.Set("pageToken", pageToken)
2473 return c
2474 }
2475
2476
2477
2478
2479 func (c *ProjectsAppsReleasesTestsListCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesTestsListCall {
2480 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2481 return c
2482 }
2483
2484
2485
2486
2487 func (c *ProjectsAppsReleasesTestsListCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesTestsListCall {
2488 c.ifNoneMatch_ = entityTag
2489 return c
2490 }
2491
2492
2493 func (c *ProjectsAppsReleasesTestsListCall) Context(ctx context.Context) *ProjectsAppsReleasesTestsListCall {
2494 c.ctx_ = ctx
2495 return c
2496 }
2497
2498
2499
2500 func (c *ProjectsAppsReleasesTestsListCall) Header() http.Header {
2501 if c.header_ == nil {
2502 c.header_ = make(http.Header)
2503 }
2504 return c.header_
2505 }
2506
2507 func (c *ProjectsAppsReleasesTestsListCall) doRequest(alt string) (*http.Response, error) {
2508 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2509 if c.ifNoneMatch_ != "" {
2510 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2511 }
2512 var body io.Reader = nil
2513 c.urlParams_.Set("alt", alt)
2514 c.urlParams_.Set("prettyPrint", "false")
2515 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/tests")
2516 urls += "?" + c.urlParams_.Encode()
2517 req, err := http.NewRequest("GET", urls, body)
2518 if err != nil {
2519 return nil, err
2520 }
2521 req.Header = reqHeaders
2522 googleapi.Expand(req.URL, map[string]string{
2523 "parent": c.parent,
2524 })
2525 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2526 }
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536 func (c *ProjectsAppsReleasesTestsListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse, error) {
2537 gensupport.SetOptions(c.urlParams_, opts...)
2538 res, err := c.doRequest("json")
2539 if res != nil && res.StatusCode == http.StatusNotModified {
2540 if res.Body != nil {
2541 res.Body.Close()
2542 }
2543 return nil, gensupport.WrapError(&googleapi.Error{
2544 Code: res.StatusCode,
2545 Header: res.Header,
2546 })
2547 }
2548 if err != nil {
2549 return nil, err
2550 }
2551 defer googleapi.CloseBody(res)
2552 if err := googleapi.CheckResponse(res); err != nil {
2553 return nil, gensupport.WrapError(err)
2554 }
2555 ret := &GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse{
2556 ServerResponse: googleapi.ServerResponse{
2557 Header: res.Header,
2558 HTTPStatusCode: res.StatusCode,
2559 },
2560 }
2561 target := &ret
2562 if err := gensupport.DecodeResponse(target, res); err != nil {
2563 return nil, err
2564 }
2565 return ret, nil
2566 }
2567
2568
2569
2570
2571 func (c *ProjectsAppsReleasesTestsListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse) error) error {
2572 c.ctx_ = ctx
2573 defer c.PageToken(c.urlParams_.Get("pageToken"))
2574 for {
2575 x, err := c.Do()
2576 if err != nil {
2577 return err
2578 }
2579 if err := f(x); err != nil {
2580 return err
2581 }
2582 if x.NextPageToken == "" {
2583 return nil
2584 }
2585 c.PageToken(x.NextPageToken)
2586 }
2587 }
2588
2589 type ProjectsTestersGetUdidsCall struct {
2590 s *Service
2591 project string
2592 urlParams_ gensupport.URLParams
2593 ifNoneMatch_ string
2594 ctx_ context.Context
2595 header_ http.Header
2596 }
2597
2598
2599
2600
2601
2602 func (r *ProjectsTestersService) GetUdids(project string) *ProjectsTestersGetUdidsCall {
2603 c := &ProjectsTestersGetUdidsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2604 c.project = project
2605 return c
2606 }
2607
2608
2609
2610
2611
2612 func (c *ProjectsTestersGetUdidsCall) MobilesdkAppId(mobilesdkAppId string) *ProjectsTestersGetUdidsCall {
2613 c.urlParams_.Set("mobilesdkAppId", mobilesdkAppId)
2614 return c
2615 }
2616
2617
2618
2619
2620 func (c *ProjectsTestersGetUdidsCall) Fields(s ...googleapi.Field) *ProjectsTestersGetUdidsCall {
2621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2622 return c
2623 }
2624
2625
2626
2627
2628 func (c *ProjectsTestersGetUdidsCall) IfNoneMatch(entityTag string) *ProjectsTestersGetUdidsCall {
2629 c.ifNoneMatch_ = entityTag
2630 return c
2631 }
2632
2633
2634 func (c *ProjectsTestersGetUdidsCall) Context(ctx context.Context) *ProjectsTestersGetUdidsCall {
2635 c.ctx_ = ctx
2636 return c
2637 }
2638
2639
2640
2641 func (c *ProjectsTestersGetUdidsCall) Header() http.Header {
2642 if c.header_ == nil {
2643 c.header_ = make(http.Header)
2644 }
2645 return c.header_
2646 }
2647
2648 func (c *ProjectsTestersGetUdidsCall) doRequest(alt string) (*http.Response, error) {
2649 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
2650 if c.ifNoneMatch_ != "" {
2651 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2652 }
2653 var body io.Reader = nil
2654 c.urlParams_.Set("alt", alt)
2655 c.urlParams_.Set("prettyPrint", "false")
2656 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+project}/testers:udids")
2657 urls += "?" + c.urlParams_.Encode()
2658 req, err := http.NewRequest("GET", urls, body)
2659 if err != nil {
2660 return nil, err
2661 }
2662 req.Header = reqHeaders
2663 googleapi.Expand(req.URL, map[string]string{
2664 "project": c.project,
2665 })
2666 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2667 }
2668
2669
2670
2671
2672
2673
2674
2675 func (c *ProjectsTestersGetUdidsCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse, error) {
2676 gensupport.SetOptions(c.urlParams_, opts...)
2677 res, err := c.doRequest("json")
2678 if res != nil && res.StatusCode == http.StatusNotModified {
2679 if res.Body != nil {
2680 res.Body.Close()
2681 }
2682 return nil, gensupport.WrapError(&googleapi.Error{
2683 Code: res.StatusCode,
2684 Header: res.Header,
2685 })
2686 }
2687 if err != nil {
2688 return nil, err
2689 }
2690 defer googleapi.CloseBody(res)
2691 if err := googleapi.CheckResponse(res); err != nil {
2692 return nil, gensupport.WrapError(err)
2693 }
2694 ret := &GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse{
2695 ServerResponse: googleapi.ServerResponse{
2696 Header: res.Header,
2697 HTTPStatusCode: res.StatusCode,
2698 },
2699 }
2700 target := &ret
2701 if err := gensupport.DecodeResponse(target, res); err != nil {
2702 return nil, err
2703 }
2704 return ret, nil
2705 }
2706
View as plain text