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 toolresults
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 = "toolresults:v1beta3"
90 const apiName = "toolresults"
91 const apiVersion = "v1beta3"
92 const basePath = "https://toolresults.googleapis.com/"
93 const basePathTemplate = "https://toolresults.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://toolresults.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.Projects = NewProjectsService(s)
139 return s, nil
140 }
141
142 type Service struct {
143 client *http.Client
144 BasePath string
145 UserAgent string
146
147 Projects *ProjectsService
148 }
149
150 func (s *Service) userAgent() string {
151 if s.UserAgent == "" {
152 return googleapi.UserAgent
153 }
154 return googleapi.UserAgent + " " + s.UserAgent
155 }
156
157 func NewProjectsService(s *Service) *ProjectsService {
158 rs := &ProjectsService{s: s}
159 rs.Histories = NewProjectsHistoriesService(s)
160 return rs
161 }
162
163 type ProjectsService struct {
164 s *Service
165
166 Histories *ProjectsHistoriesService
167 }
168
169 func NewProjectsHistoriesService(s *Service) *ProjectsHistoriesService {
170 rs := &ProjectsHistoriesService{s: s}
171 rs.Executions = NewProjectsHistoriesExecutionsService(s)
172 return rs
173 }
174
175 type ProjectsHistoriesService struct {
176 s *Service
177
178 Executions *ProjectsHistoriesExecutionsService
179 }
180
181 func NewProjectsHistoriesExecutionsService(s *Service) *ProjectsHistoriesExecutionsService {
182 rs := &ProjectsHistoriesExecutionsService{s: s}
183 rs.Clusters = NewProjectsHistoriesExecutionsClustersService(s)
184 rs.Environments = NewProjectsHistoriesExecutionsEnvironmentsService(s)
185 rs.Steps = NewProjectsHistoriesExecutionsStepsService(s)
186 return rs
187 }
188
189 type ProjectsHistoriesExecutionsService struct {
190 s *Service
191
192 Clusters *ProjectsHistoriesExecutionsClustersService
193
194 Environments *ProjectsHistoriesExecutionsEnvironmentsService
195
196 Steps *ProjectsHistoriesExecutionsStepsService
197 }
198
199 func NewProjectsHistoriesExecutionsClustersService(s *Service) *ProjectsHistoriesExecutionsClustersService {
200 rs := &ProjectsHistoriesExecutionsClustersService{s: s}
201 return rs
202 }
203
204 type ProjectsHistoriesExecutionsClustersService struct {
205 s *Service
206 }
207
208 func NewProjectsHistoriesExecutionsEnvironmentsService(s *Service) *ProjectsHistoriesExecutionsEnvironmentsService {
209 rs := &ProjectsHistoriesExecutionsEnvironmentsService{s: s}
210 return rs
211 }
212
213 type ProjectsHistoriesExecutionsEnvironmentsService struct {
214 s *Service
215 }
216
217 func NewProjectsHistoriesExecutionsStepsService(s *Service) *ProjectsHistoriesExecutionsStepsService {
218 rs := &ProjectsHistoriesExecutionsStepsService{s: s}
219 rs.PerfMetricsSummary = NewProjectsHistoriesExecutionsStepsPerfMetricsSummaryService(s)
220 rs.PerfSampleSeries = NewProjectsHistoriesExecutionsStepsPerfSampleSeriesService(s)
221 rs.TestCases = NewProjectsHistoriesExecutionsStepsTestCasesService(s)
222 rs.Thumbnails = NewProjectsHistoriesExecutionsStepsThumbnailsService(s)
223 return rs
224 }
225
226 type ProjectsHistoriesExecutionsStepsService struct {
227 s *Service
228
229 PerfMetricsSummary *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryService
230
231 PerfSampleSeries *ProjectsHistoriesExecutionsStepsPerfSampleSeriesService
232
233 TestCases *ProjectsHistoriesExecutionsStepsTestCasesService
234
235 Thumbnails *ProjectsHistoriesExecutionsStepsThumbnailsService
236 }
237
238 func NewProjectsHistoriesExecutionsStepsPerfMetricsSummaryService(s *Service) *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryService {
239 rs := &ProjectsHistoriesExecutionsStepsPerfMetricsSummaryService{s: s}
240 return rs
241 }
242
243 type ProjectsHistoriesExecutionsStepsPerfMetricsSummaryService struct {
244 s *Service
245 }
246
247 func NewProjectsHistoriesExecutionsStepsPerfSampleSeriesService(s *Service) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesService {
248 rs := &ProjectsHistoriesExecutionsStepsPerfSampleSeriesService{s: s}
249 rs.Samples = NewProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesService(s)
250 return rs
251 }
252
253 type ProjectsHistoriesExecutionsStepsPerfSampleSeriesService struct {
254 s *Service
255
256 Samples *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesService
257 }
258
259 func NewProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesService(s *Service) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesService {
260 rs := &ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesService{s: s}
261 return rs
262 }
263
264 type ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesService struct {
265 s *Service
266 }
267
268 func NewProjectsHistoriesExecutionsStepsTestCasesService(s *Service) *ProjectsHistoriesExecutionsStepsTestCasesService {
269 rs := &ProjectsHistoriesExecutionsStepsTestCasesService{s: s}
270 return rs
271 }
272
273 type ProjectsHistoriesExecutionsStepsTestCasesService struct {
274 s *Service
275 }
276
277 func NewProjectsHistoriesExecutionsStepsThumbnailsService(s *Service) *ProjectsHistoriesExecutionsStepsThumbnailsService {
278 rs := &ProjectsHistoriesExecutionsStepsThumbnailsService{s: s}
279 return rs
280 }
281
282 type ProjectsHistoriesExecutionsStepsThumbnailsService struct {
283 s *Service
284 }
285
286
287 type ANR struct {
288
289 StackTrace *StackTrace `json:"stackTrace,omitempty"`
290
291
292
293
294
295 ForceSendFields []string `json:"-"`
296
297
298
299
300 NullFields []string `json:"-"`
301 }
302
303 func (s *ANR) MarshalJSON() ([]byte, error) {
304 type NoMethod ANR
305 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
306 }
307
308
309 type AndroidAppInfo struct {
310
311 Name string `json:"name,omitempty"`
312
313 PackageName string `json:"packageName,omitempty"`
314
315 VersionCode string `json:"versionCode,omitempty"`
316
317 VersionName string `json:"versionName,omitempty"`
318
319
320
321
322
323 ForceSendFields []string `json:"-"`
324
325
326
327
328 NullFields []string `json:"-"`
329 }
330
331 func (s *AndroidAppInfo) MarshalJSON() ([]byte, error) {
332 type NoMethod AndroidAppInfo
333 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
334 }
335
336
337
338
339 type AndroidInstrumentationTest struct {
340
341 TestPackageId string `json:"testPackageId,omitempty"`
342
343 TestRunnerClass string `json:"testRunnerClass,omitempty"`
344
345
346
347
348 TestTargets []string `json:"testTargets,omitempty"`
349
350
351 UseOrchestrator bool `json:"useOrchestrator,omitempty"`
352
353
354
355
356
357 ForceSendFields []string `json:"-"`
358
359
360
361
362 NullFields []string `json:"-"`
363 }
364
365 func (s *AndroidInstrumentationTest) MarshalJSON() ([]byte, error) {
366 type NoMethod AndroidInstrumentationTest
367 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
368 }
369
370
371
372
373 type AndroidRoboTest struct {
374
375
376 AppInitialActivity string `json:"appInitialActivity,omitempty"`
377
378 BootstrapPackageId string `json:"bootstrapPackageId,omitempty"`
379
380 BootstrapRunnerClass string `json:"bootstrapRunnerClass,omitempty"`
381
382 MaxDepth int64 `json:"maxDepth,omitempty"`
383
384
385 MaxSteps int64 `json:"maxSteps,omitempty"`
386
387
388
389
390
391 ForceSendFields []string `json:"-"`
392
393
394
395
396 NullFields []string `json:"-"`
397 }
398
399 func (s *AndroidRoboTest) MarshalJSON() ([]byte, error) {
400 type NoMethod AndroidRoboTest
401 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
402 }
403
404
405 type AndroidTest struct {
406
407 AndroidAppInfo *AndroidAppInfo `json:"androidAppInfo,omitempty"`
408
409 AndroidInstrumentationTest *AndroidInstrumentationTest `json:"androidInstrumentationTest,omitempty"`
410
411 AndroidRoboTest *AndroidRoboTest `json:"androidRoboTest,omitempty"`
412
413 AndroidTestLoop *AndroidTestLoop `json:"androidTestLoop,omitempty"`
414
415
416 TestTimeout *Duration `json:"testTimeout,omitempty"`
417
418
419
420
421
422 ForceSendFields []string `json:"-"`
423
424
425
426
427 NullFields []string `json:"-"`
428 }
429
430 func (s *AndroidTest) MarshalJSON() ([]byte, error) {
431 type NoMethod AndroidTest
432 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
433 }
434
435
436
437 type AndroidTestLoop struct {
438 }
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466 type Any struct {
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485 TypeUrl string `json:"typeUrl,omitempty"`
486
487
488 Value string `json:"value,omitempty"`
489
490
491
492
493
494 ForceSendFields []string `json:"-"`
495
496
497
498
499 NullFields []string `json:"-"`
500 }
501
502 func (s *Any) MarshalJSON() ([]byte, error) {
503 type NoMethod Any
504 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
505 }
506
507 type AppStartTime struct {
508
509
510
511
512 FullyDrawnTime *Duration `json:"fullyDrawnTime,omitempty"`
513
514
515
516 InitialDisplayTime *Duration `json:"initialDisplayTime,omitempty"`
517
518
519
520
521
522 ForceSendFields []string `json:"-"`
523
524
525
526
527 NullFields []string `json:"-"`
528 }
529
530 func (s *AppStartTime) MarshalJSON() ([]byte, error) {
531 type NoMethod AppStartTime
532 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
533 }
534
535
536 type AssetIssue struct {
537 }
538
539
540 type AvailableDeepLinks struct {
541 }
542
543
544
545 type BasicPerfSampleSeries struct {
546
547
548
549
550
551
552 PerfMetricType string `json:"perfMetricType,omitempty"`
553
554
555
556
557
558
559
560 PerfUnit string `json:"perfUnit,omitempty"`
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575 SampleSeriesLabel string `json:"sampleSeriesLabel,omitempty"`
576
577
578
579
580
581 ForceSendFields []string `json:"-"`
582
583
584
585
586 NullFields []string `json:"-"`
587 }
588
589 func (s *BasicPerfSampleSeries) MarshalJSON() ([]byte, error) {
590 type NoMethod BasicPerfSampleSeries
591 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
592 }
593
594
595
596
597 type BatchCreatePerfSamplesRequest struct {
598
599
600 PerfSamples []*PerfSample `json:"perfSamples,omitempty"`
601
602
603
604
605
606 ForceSendFields []string `json:"-"`
607
608
609
610
611 NullFields []string `json:"-"`
612 }
613
614 func (s *BatchCreatePerfSamplesRequest) MarshalJSON() ([]byte, error) {
615 type NoMethod BatchCreatePerfSamplesRequest
616 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
617 }
618
619 type BatchCreatePerfSamplesResponse struct {
620 PerfSamples []*PerfSample `json:"perfSamples,omitempty"`
621
622
623 googleapi.ServerResponse `json:"-"`
624
625
626
627
628
629 ForceSendFields []string `json:"-"`
630
631
632
633
634 NullFields []string `json:"-"`
635 }
636
637 func (s *BatchCreatePerfSamplesResponse) MarshalJSON() ([]byte, error) {
638 type NoMethod BatchCreatePerfSamplesResponse
639 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
640 }
641
642
643
644 type BlankScreen struct {
645
646 ScreenId string `json:"screenId,omitempty"`
647
648
649
650
651
652 ForceSendFields []string `json:"-"`
653
654
655
656
657 NullFields []string `json:"-"`
658 }
659
660 func (s *BlankScreen) MarshalJSON() ([]byte, error) {
661 type NoMethod BlankScreen
662 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
663 }
664
665 type CPUInfo struct {
666
667
668 CpuProcessor string `json:"cpuProcessor,omitempty"`
669
670 CpuSpeedInGhz float64 `json:"cpuSpeedInGhz,omitempty"`
671
672 NumberOfCores int64 `json:"numberOfCores,omitempty"`
673
674
675
676
677
678 ForceSendFields []string `json:"-"`
679
680
681
682
683 NullFields []string `json:"-"`
684 }
685
686 func (s *CPUInfo) MarshalJSON() ([]byte, error) {
687 type NoMethod CPUInfo
688 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
689 }
690
691 func (s *CPUInfo) UnmarshalJSON(data []byte) error {
692 type NoMethod CPUInfo
693 var s1 struct {
694 CpuSpeedInGhz gensupport.JSONFloat64 `json:"cpuSpeedInGhz"`
695 *NoMethod
696 }
697 s1.NoMethod = (*NoMethod)(s)
698 if err := json.Unmarshal(data, &s1); err != nil {
699 return err
700 }
701 s.CpuSpeedInGhz = float64(s1.CpuSpeedInGhz)
702 return nil
703 }
704
705
706 type CrashDialogError struct {
707
708 CrashPackage string `json:"crashPackage,omitempty"`
709
710
711
712
713
714 ForceSendFields []string `json:"-"`
715
716
717
718
719 NullFields []string `json:"-"`
720 }
721
722 func (s *CrashDialogError) MarshalJSON() ([]byte, error) {
723 type NoMethod CrashDialogError
724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
725 }
726
727
728
729 type DetectedAppSplashScreen struct {
730 }
731
732
733 type DeviceOutOfMemory struct {
734 }
735
736
737
738
739
740
741
742 type Duration struct {
743
744
745
746
747
748 Nanos int64 `json:"nanos,omitempty"`
749
750
751
752 Seconds int64 `json:"seconds,omitempty,string"`
753
754
755
756
757
758 ForceSendFields []string `json:"-"`
759
760
761
762
763 NullFields []string `json:"-"`
764 }
765
766 func (s *Duration) MarshalJSON() ([]byte, error) {
767 type NoMethod Duration
768 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
769 }
770
771
772 type EncounteredLoginScreen struct {
773
774 DistinctScreens int64 `json:"distinctScreens,omitempty"`
775
776 ScreenIds []string `json:"screenIds,omitempty"`
777
778
779
780
781
782 ForceSendFields []string `json:"-"`
783
784
785
786
787 NullFields []string `json:"-"`
788 }
789
790 func (s *EncounteredLoginScreen) MarshalJSON() ([]byte, error) {
791 type NoMethod EncounteredLoginScreen
792 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
793 }
794
795
796
797 type EncounteredNonAndroidUiWidgetScreen struct {
798
799
800 DistinctScreens int64 `json:"distinctScreens,omitempty"`
801
802 ScreenIds []string `json:"screenIds,omitempty"`
803
804
805
806
807
808 ForceSendFields []string `json:"-"`
809
810
811
812
813 NullFields []string `json:"-"`
814 }
815
816 func (s *EncounteredNonAndroidUiWidgetScreen) MarshalJSON() ([]byte, error) {
817 type NoMethod EncounteredNonAndroidUiWidgetScreen
818 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
819 }
820
821
822
823
824
825
826
827 type Environment struct {
828
829
830
831 CompletionTime *Timestamp `json:"completionTime,omitempty"`
832
833 CreationTime *Timestamp `json:"creationTime,omitempty"`
834
835
836
837
838 DimensionValue []*EnvironmentDimensionValueEntry `json:"dimensionValue,omitempty"`
839
840
841 DisplayName string `json:"displayName,omitempty"`
842
843 EnvironmentId string `json:"environmentId,omitempty"`
844
845 EnvironmentResult *MergedResult `json:"environmentResult,omitempty"`
846
847 ExecutionId string `json:"executionId,omitempty"`
848
849 HistoryId string `json:"historyId,omitempty"`
850
851 ProjectId string `json:"projectId,omitempty"`
852
853
854 ResultsStorage *ResultsStorage `json:"resultsStorage,omitempty"`
855
856
857 ShardSummaries []*ShardSummary `json:"shardSummaries,omitempty"`
858
859
860 googleapi.ServerResponse `json:"-"`
861
862
863
864
865
866 ForceSendFields []string `json:"-"`
867
868
869
870
871 NullFields []string `json:"-"`
872 }
873
874 func (s *Environment) MarshalJSON() ([]byte, error) {
875 type NoMethod Environment
876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
877 }
878
879 type EnvironmentDimensionValueEntry struct {
880 Key string `json:"key,omitempty"`
881 Value string `json:"value,omitempty"`
882
883
884
885
886
887 ForceSendFields []string `json:"-"`
888
889
890
891
892 NullFields []string `json:"-"`
893 }
894
895 func (s *EnvironmentDimensionValueEntry) MarshalJSON() ([]byte, error) {
896 type NoMethod EnvironmentDimensionValueEntry
897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
898 }
899
900
901
902
903
904
905 type Execution struct {
906
907
908
909
910 CompletionTime *Timestamp `json:"completionTime,omitempty"`
911
912
913
914 CreationTime *Timestamp `json:"creationTime,omitempty"`
915
916
917
918
919
920
921
922 DimensionDefinitions []*MatrixDimensionDefinition `json:"dimensionDefinitions,omitempty"`
923
924
925
926 ExecutionId string `json:"executionId,omitempty"`
927
928
929
930 Outcome *Outcome `json:"outcome,omitempty"`
931
932
933
934 Specification *Specification `json:"specification,omitempty"`
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953 State string `json:"state,omitempty"`
954
955
956
957 TestExecutionMatrixId string `json:"testExecutionMatrixId,omitempty"`
958
959
960 googleapi.ServerResponse `json:"-"`
961
962
963
964
965
966 ForceSendFields []string `json:"-"`
967
968
969
970
971 NullFields []string `json:"-"`
972 }
973
974 func (s *Execution) MarshalJSON() ([]byte, error) {
975 type NoMethod Execution
976 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
977 }
978
979
980 type FailedToInstall struct {
981 }
982
983
984 type FailureDetail struct {
985
986
987 Crashed bool `json:"crashed,omitempty"`
988
989
990 DeviceOutOfMemory bool `json:"deviceOutOfMemory,omitempty"`
991
992
993
994 FailedRoboscript bool `json:"failedRoboscript,omitempty"`
995
996
997
998 NotInstalled bool `json:"notInstalled,omitempty"`
999
1000
1001 OtherNativeCrash bool `json:"otherNativeCrash,omitempty"`
1002
1003 TimedOut bool `json:"timedOut,omitempty"`
1004
1005
1006 UnableToCrawl bool `json:"unableToCrawl,omitempty"`
1007
1008
1009
1010
1011
1012 ForceSendFields []string `json:"-"`
1013
1014
1015
1016
1017 NullFields []string `json:"-"`
1018 }
1019
1020 func (s *FailureDetail) MarshalJSON() ([]byte, error) {
1021 type NoMethod FailureDetail
1022 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1023 }
1024
1025
1026 type FatalException struct {
1027
1028 StackTrace *StackTrace `json:"stackTrace,omitempty"`
1029
1030
1031
1032
1033
1034 ForceSendFields []string `json:"-"`
1035
1036
1037
1038
1039 NullFields []string `json:"-"`
1040 }
1041
1042 func (s *FatalException) MarshalJSON() ([]byte, error) {
1043 type NoMethod FatalException
1044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1045 }
1046
1047
1048 type FileReference struct {
1049
1050
1051
1052
1053
1054
1055 FileUri string `json:"fileUri,omitempty"`
1056
1057
1058
1059
1060
1061 ForceSendFields []string `json:"-"`
1062
1063
1064
1065
1066 NullFields []string `json:"-"`
1067 }
1068
1069 func (s *FileReference) MarshalJSON() ([]byte, error) {
1070 type NoMethod FileReference
1071 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1072 }
1073
1074
1075
1076
1077
1078 type GraphicsStats struct {
1079
1080
1081 Buckets []*GraphicsStatsBucket `json:"buckets,omitempty"`
1082
1083 HighInputLatencyCount int64 `json:"highInputLatencyCount,omitempty,string"`
1084
1085 JankyFrames int64 `json:"jankyFrames,omitempty,string"`
1086
1087 MissedVsyncCount int64 `json:"missedVsyncCount,omitempty,string"`
1088
1089 P50Millis int64 `json:"p50Millis,omitempty,string"`
1090
1091 P90Millis int64 `json:"p90Millis,omitempty,string"`
1092
1093 P95Millis int64 `json:"p95Millis,omitempty,string"`
1094
1095 P99Millis int64 `json:"p99Millis,omitempty,string"`
1096
1097 SlowBitmapUploadCount int64 `json:"slowBitmapUploadCount,omitempty,string"`
1098
1099 SlowDrawCount int64 `json:"slowDrawCount,omitempty,string"`
1100
1101 SlowUiThreadCount int64 `json:"slowUiThreadCount,omitempty,string"`
1102
1103 TotalFrames int64 `json:"totalFrames,omitempty,string"`
1104
1105
1106
1107
1108
1109 ForceSendFields []string `json:"-"`
1110
1111
1112
1113
1114 NullFields []string `json:"-"`
1115 }
1116
1117 func (s *GraphicsStats) MarshalJSON() ([]byte, error) {
1118 type NoMethod GraphicsStats
1119 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1120 }
1121
1122 type GraphicsStatsBucket struct {
1123
1124 FrameCount int64 `json:"frameCount,omitempty,string"`
1125
1126 RenderMillis int64 `json:"renderMillis,omitempty,string"`
1127
1128
1129
1130
1131
1132 ForceSendFields []string `json:"-"`
1133
1134
1135
1136
1137 NullFields []string `json:"-"`
1138 }
1139
1140 func (s *GraphicsStatsBucket) MarshalJSON() ([]byte, error) {
1141 type NoMethod GraphicsStatsBucket
1142 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1143 }
1144
1145
1146
1147
1148
1149
1150 type History struct {
1151
1152
1153
1154 DisplayName string `json:"displayName,omitempty"`
1155
1156
1157
1158 HistoryId string `json:"historyId,omitempty"`
1159
1160
1161 Name string `json:"name,omitempty"`
1162
1163
1164
1165
1166
1167
1168
1169 TestPlatform string `json:"testPlatform,omitempty"`
1170
1171
1172 googleapi.ServerResponse `json:"-"`
1173
1174
1175
1176
1177
1178 ForceSendFields []string `json:"-"`
1179
1180
1181
1182
1183 NullFields []string `json:"-"`
1184 }
1185
1186 func (s *History) MarshalJSON() ([]byte, error) {
1187 type NoMethod History
1188 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1189 }
1190
1191
1192 type Image struct {
1193
1194 Error *Status `json:"error,omitempty"`
1195
1196
1197 SourceImage *ToolOutputReference `json:"sourceImage,omitempty"`
1198
1199 StepId string `json:"stepId,omitempty"`
1200
1201 Thumbnail *Thumbnail `json:"thumbnail,omitempty"`
1202
1203
1204
1205
1206
1207 ForceSendFields []string `json:"-"`
1208
1209
1210
1211
1212 NullFields []string `json:"-"`
1213 }
1214
1215 func (s *Image) MarshalJSON() ([]byte, error) {
1216 type NoMethod Image
1217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1218 }
1219
1220
1221
1222 type InAppPurchasesFound struct {
1223
1224
1225 InAppPurchasesFlowsExplored int64 `json:"inAppPurchasesFlowsExplored,omitempty"`
1226
1227
1228 InAppPurchasesFlowsStarted int64 `json:"inAppPurchasesFlowsStarted,omitempty"`
1229
1230
1231
1232
1233
1234 ForceSendFields []string `json:"-"`
1235
1236
1237
1238
1239 NullFields []string `json:"-"`
1240 }
1241
1242 func (s *InAppPurchasesFound) MarshalJSON() ([]byte, error) {
1243 type NoMethod InAppPurchasesFound
1244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1245 }
1246
1247
1248
1249 type InconclusiveDetail struct {
1250
1251
1252
1253 AbortedByUser bool `json:"abortedByUser,omitempty"`
1254
1255
1256 HasErrorLogs bool `json:"hasErrorLogs,omitempty"`
1257
1258
1259
1260
1261 InfrastructureFailure bool `json:"infrastructureFailure,omitempty"`
1262
1263
1264
1265
1266
1267 ForceSendFields []string `json:"-"`
1268
1269
1270
1271
1272 NullFields []string `json:"-"`
1273 }
1274
1275 func (s *InconclusiveDetail) MarshalJSON() ([]byte, error) {
1276 type NoMethod InconclusiveDetail
1277 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1278 }
1279
1280
1281
1282 type IndividualOutcome struct {
1283
1284
1285 MultistepNumber int64 `json:"multistepNumber,omitempty"`
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300 OutcomeSummary string `json:"outcomeSummary,omitempty"`
1301
1302 RunDuration *Duration `json:"runDuration,omitempty"`
1303 StepId string `json:"stepId,omitempty"`
1304
1305
1306
1307
1308
1309 ForceSendFields []string `json:"-"`
1310
1311
1312
1313
1314 NullFields []string `json:"-"`
1315 }
1316
1317 func (s *IndividualOutcome) MarshalJSON() ([]byte, error) {
1318 type NoMethod IndividualOutcome
1319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1320 }
1321
1322
1323
1324 type InsufficientCoverage struct {
1325 }
1326
1327
1328 type IosAppCrashed struct {
1329
1330 StackTrace *StackTrace `json:"stackTrace,omitempty"`
1331
1332
1333
1334
1335
1336 ForceSendFields []string `json:"-"`
1337
1338
1339
1340
1341 NullFields []string `json:"-"`
1342 }
1343
1344 func (s *IosAppCrashed) MarshalJSON() ([]byte, error) {
1345 type NoMethod IosAppCrashed
1346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1347 }
1348
1349
1350 type IosAppInfo struct {
1351
1352 Name string `json:"name,omitempty"`
1353
1354
1355
1356
1357
1358 ForceSendFields []string `json:"-"`
1359
1360
1361
1362
1363 NullFields []string `json:"-"`
1364 }
1365
1366 func (s *IosAppInfo) MarshalJSON() ([]byte, error) {
1367 type NoMethod IosAppInfo
1368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1369 }
1370
1371
1372 type IosRoboTest struct {
1373 }
1374
1375
1376 type IosTest struct {
1377
1378 IosAppInfo *IosAppInfo `json:"iosAppInfo,omitempty"`
1379
1380 IosRoboTest *IosRoboTest `json:"iosRoboTest,omitempty"`
1381
1382 IosTestLoop *IosTestLoop `json:"iosTestLoop,omitempty"`
1383
1384 IosXcTest *IosXcTest `json:"iosXcTest,omitempty"`
1385
1386
1387 TestTimeout *Duration `json:"testTimeout,omitempty"`
1388
1389
1390
1391
1392
1393 ForceSendFields []string `json:"-"`
1394
1395
1396
1397
1398 NullFields []string `json:"-"`
1399 }
1400
1401 func (s *IosTest) MarshalJSON() ([]byte, error) {
1402 type NoMethod IosTest
1403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1404 }
1405
1406
1407 type IosTestLoop struct {
1408
1409 BundleId string `json:"bundleId,omitempty"`
1410
1411
1412
1413
1414
1415 ForceSendFields []string `json:"-"`
1416
1417
1418
1419
1420 NullFields []string `json:"-"`
1421 }
1422
1423 func (s *IosTestLoop) MarshalJSON() ([]byte, error) {
1424 type NoMethod IosTestLoop
1425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1426 }
1427
1428
1429 type IosXcTest struct {
1430
1431 BundleId string `json:"bundleId,omitempty"`
1432
1433 XcodeVersion string `json:"xcodeVersion,omitempty"`
1434
1435
1436
1437
1438
1439 ForceSendFields []string `json:"-"`
1440
1441
1442
1443
1444 NullFields []string `json:"-"`
1445 }
1446
1447 func (s *IosXcTest) MarshalJSON() ([]byte, error) {
1448 type NoMethod IosXcTest
1449 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1450 }
1451
1452
1453 type LauncherActivityNotFound struct {
1454 }
1455
1456
1457
1458 type ListEnvironmentsResponse struct {
1459
1460 Environments []*Environment `json:"environments,omitempty"`
1461
1462 ExecutionId string `json:"executionId,omitempty"`
1463
1464 HistoryId string `json:"historyId,omitempty"`
1465
1466
1467 NextPageToken string `json:"nextPageToken,omitempty"`
1468
1469 ProjectId string `json:"projectId,omitempty"`
1470
1471
1472 googleapi.ServerResponse `json:"-"`
1473
1474
1475
1476
1477
1478 ForceSendFields []string `json:"-"`
1479
1480
1481
1482
1483 NullFields []string `json:"-"`
1484 }
1485
1486 func (s *ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
1487 type NoMethod ListEnvironmentsResponse
1488 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1489 }
1490
1491 type ListExecutionsResponse struct {
1492
1493 Executions []*Execution `json:"executions,omitempty"`
1494
1495
1496 NextPageToken string `json:"nextPageToken,omitempty"`
1497
1498
1499 googleapi.ServerResponse `json:"-"`
1500
1501
1502
1503
1504
1505 ForceSendFields []string `json:"-"`
1506
1507
1508
1509
1510 NullFields []string `json:"-"`
1511 }
1512
1513 func (s *ListExecutionsResponse) MarshalJSON() ([]byte, error) {
1514 type NoMethod ListExecutionsResponse
1515 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1516 }
1517
1518
1519 type ListHistoriesResponse struct {
1520
1521 Histories []*History `json:"histories,omitempty"`
1522
1523
1524
1525
1526
1527
1528 NextPageToken string `json:"nextPageToken,omitempty"`
1529
1530
1531 googleapi.ServerResponse `json:"-"`
1532
1533
1534
1535
1536
1537 ForceSendFields []string `json:"-"`
1538
1539
1540
1541
1542 NullFields []string `json:"-"`
1543 }
1544
1545 func (s *ListHistoriesResponse) MarshalJSON() ([]byte, error) {
1546 type NoMethod ListHistoriesResponse
1547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1548 }
1549
1550 type ListPerfSampleSeriesResponse struct {
1551
1552 PerfSampleSeries []*PerfSampleSeries `json:"perfSampleSeries,omitempty"`
1553
1554
1555 googleapi.ServerResponse `json:"-"`
1556
1557
1558
1559
1560
1561 ForceSendFields []string `json:"-"`
1562
1563
1564
1565
1566 NullFields []string `json:"-"`
1567 }
1568
1569 func (s *ListPerfSampleSeriesResponse) MarshalJSON() ([]byte, error) {
1570 type NoMethod ListPerfSampleSeriesResponse
1571 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1572 }
1573
1574 type ListPerfSamplesResponse struct {
1575
1576
1577
1578
1579 NextPageToken string `json:"nextPageToken,omitempty"`
1580 PerfSamples []*PerfSample `json:"perfSamples,omitempty"`
1581
1582
1583 googleapi.ServerResponse `json:"-"`
1584
1585
1586
1587
1588
1589 ForceSendFields []string `json:"-"`
1590
1591
1592
1593
1594 NullFields []string `json:"-"`
1595 }
1596
1597 func (s *ListPerfSamplesResponse) MarshalJSON() ([]byte, error) {
1598 type NoMethod ListPerfSamplesResponse
1599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1600 }
1601
1602 type ListScreenshotClustersResponse struct {
1603
1604 Clusters []*ScreenshotCluster `json:"clusters,omitempty"`
1605
1606
1607 googleapi.ServerResponse `json:"-"`
1608
1609
1610
1611
1612
1613 ForceSendFields []string `json:"-"`
1614
1615
1616
1617
1618 NullFields []string `json:"-"`
1619 }
1620
1621 func (s *ListScreenshotClustersResponse) MarshalJSON() ([]byte, error) {
1622 type NoMethod ListScreenshotClustersResponse
1623 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1624 }
1625
1626
1627
1628 type ListStepAccessibilityClustersResponse struct {
1629
1630
1631
1632
1633
1634 Clusters []*SuggestionClusterProto `json:"clusters,omitempty"`
1635
1636
1637
1638 Name string `json:"name,omitempty"`
1639
1640
1641 googleapi.ServerResponse `json:"-"`
1642
1643
1644
1645
1646
1647 ForceSendFields []string `json:"-"`
1648
1649
1650
1651
1652 NullFields []string `json:"-"`
1653 }
1654
1655 func (s *ListStepAccessibilityClustersResponse) MarshalJSON() ([]byte, error) {
1656 type NoMethod ListStepAccessibilityClustersResponse
1657 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1658 }
1659
1660
1661 type ListStepThumbnailsResponse struct {
1662
1663
1664
1665 NextPageToken string `json:"nextPageToken,omitempty"`
1666
1667
1668
1669
1670
1671
1672
1673 Thumbnails []*Image `json:"thumbnails,omitempty"`
1674
1675
1676 googleapi.ServerResponse `json:"-"`
1677
1678
1679
1680
1681
1682 ForceSendFields []string `json:"-"`
1683
1684
1685
1686
1687 NullFields []string `json:"-"`
1688 }
1689
1690 func (s *ListStepThumbnailsResponse) MarshalJSON() ([]byte, error) {
1691 type NoMethod ListStepThumbnailsResponse
1692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1693 }
1694
1695
1696 type ListStepsResponse struct {
1697
1698
1699
1700 NextPageToken string `json:"nextPageToken,omitempty"`
1701
1702 Steps []*Step `json:"steps,omitempty"`
1703
1704
1705 googleapi.ServerResponse `json:"-"`
1706
1707
1708
1709
1710
1711 ForceSendFields []string `json:"-"`
1712
1713
1714
1715
1716 NullFields []string `json:"-"`
1717 }
1718
1719 func (s *ListStepsResponse) MarshalJSON() ([]byte, error) {
1720 type NoMethod ListStepsResponse
1721 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1722 }
1723
1724
1725 type ListTestCasesResponse struct {
1726 NextPageToken string `json:"nextPageToken,omitempty"`
1727
1728 TestCases []*TestCase `json:"testCases,omitempty"`
1729
1730
1731 googleapi.ServerResponse `json:"-"`
1732
1733
1734
1735
1736
1737 ForceSendFields []string `json:"-"`
1738
1739
1740
1741
1742 NullFields []string `json:"-"`
1743 }
1744
1745 func (s *ListTestCasesResponse) MarshalJSON() ([]byte, error) {
1746 type NoMethod ListTestCasesResponse
1747 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1748 }
1749
1750
1751
1752 type LogcatCollectionError struct {
1753 }
1754
1755
1756
1757 type MatrixDimensionDefinition struct {
1758 }
1759
1760 type MemoryInfo struct {
1761
1762
1763 MemoryCapInKibibyte int64 `json:"memoryCapInKibibyte,omitempty,string"`
1764
1765 MemoryTotalInKibibyte int64 `json:"memoryTotalInKibibyte,omitempty,string"`
1766
1767
1768
1769
1770
1771 ForceSendFields []string `json:"-"`
1772
1773
1774
1775
1776 NullFields []string `json:"-"`
1777 }
1778
1779 func (s *MemoryInfo) MarshalJSON() ([]byte, error) {
1780 type NoMethod MemoryInfo
1781 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1782 }
1783
1784
1785
1786
1787
1788
1789 type MergedResult struct {
1790
1791 Outcome *Outcome `json:"outcome,omitempty"`
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803 State string `json:"state,omitempty"`
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813 TestSuiteOverviews []*TestSuiteOverview `json:"testSuiteOverviews,omitempty"`
1814
1815
1816
1817
1818
1819 ForceSendFields []string `json:"-"`
1820
1821
1822
1823
1824 NullFields []string `json:"-"`
1825 }
1826
1827 func (s *MergedResult) MarshalJSON() ([]byte, error) {
1828 type NoMethod MergedResult
1829 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1830 }
1831
1832
1833
1834 type MultiStep struct {
1835
1836
1837 MultistepNumber int64 `json:"multistepNumber,omitempty"`
1838
1839 PrimaryStep *PrimaryStep `json:"primaryStep,omitempty"`
1840
1841
1842 PrimaryStepId string `json:"primaryStepId,omitempty"`
1843
1844
1845
1846
1847
1848 ForceSendFields []string `json:"-"`
1849
1850
1851
1852
1853 NullFields []string `json:"-"`
1854 }
1855
1856 func (s *MultiStep) MarshalJSON() ([]byte, error) {
1857 type NoMethod MultiStep
1858 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1859 }
1860
1861
1862 type NativeCrash struct {
1863
1864 StackTrace *StackTrace `json:"stackTrace,omitempty"`
1865
1866
1867
1868
1869
1870 ForceSendFields []string `json:"-"`
1871
1872
1873
1874
1875 NullFields []string `json:"-"`
1876 }
1877
1878 func (s *NativeCrash) MarshalJSON() ([]byte, error) {
1879 type NoMethod NativeCrash
1880 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1881 }
1882
1883
1884
1885
1886 type NonSdkApi struct {
1887
1888 ApiSignature string `json:"apiSignature,omitempty"`
1889
1890 ExampleStackTraces []string `json:"exampleStackTraces,omitempty"`
1891
1892 Insights []*NonSdkApiInsight `json:"insights,omitempty"`
1893
1894
1895 InvocationCount int64 `json:"invocationCount,omitempty"`
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908 List string `json:"list,omitempty"`
1909
1910
1911
1912
1913
1914 ForceSendFields []string `json:"-"`
1915
1916
1917
1918
1919 NullFields []string `json:"-"`
1920 }
1921
1922 func (s *NonSdkApi) MarshalJSON() ([]byte, error) {
1923 type NoMethod NonSdkApi
1924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1925 }
1926
1927
1928 type NonSdkApiInsight struct {
1929
1930
1931 ExampleTraceMessages []string `json:"exampleTraceMessages,omitempty"`
1932
1933
1934 MatcherId string `json:"matcherId,omitempty"`
1935
1936
1937 PendingGoogleUpdateInsight *PendingGoogleUpdateInsight `json:"pendingGoogleUpdateInsight,omitempty"`
1938
1939
1940 UpgradeInsight *UpgradeInsight `json:"upgradeInsight,omitempty"`
1941
1942
1943
1944
1945
1946 ForceSendFields []string `json:"-"`
1947
1948
1949
1950
1951 NullFields []string `json:"-"`
1952 }
1953
1954 func (s *NonSdkApiInsight) MarshalJSON() ([]byte, error) {
1955 type NoMethod NonSdkApiInsight
1956 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1957 }
1958
1959
1960
1961 type NonSdkApiUsageViolation struct {
1962
1963 ApiSignatures []string `json:"apiSignatures,omitempty"`
1964
1965 UniqueApis int64 `json:"uniqueApis,omitempty"`
1966
1967
1968
1969
1970
1971 ForceSendFields []string `json:"-"`
1972
1973
1974
1975
1976 NullFields []string `json:"-"`
1977 }
1978
1979 func (s *NonSdkApiUsageViolation) MarshalJSON() ([]byte, error) {
1980 type NoMethod NonSdkApiUsageViolation
1981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1982 }
1983
1984
1985
1986 type NonSdkApiUsageViolationReport struct {
1987
1988 ExampleApis []*NonSdkApi `json:"exampleApis,omitempty"`
1989
1990 MinSdkVersion int64 `json:"minSdkVersion,omitempty"`
1991
1992
1993 TargetSdkVersion int64 `json:"targetSdkVersion,omitempty"`
1994
1995 UniqueApis int64 `json:"uniqueApis,omitempty"`
1996
1997
1998
1999
2000
2001 ForceSendFields []string `json:"-"`
2002
2003
2004
2005
2006 NullFields []string `json:"-"`
2007 }
2008
2009 func (s *NonSdkApiUsageViolationReport) MarshalJSON() ([]byte, error) {
2010 type NoMethod NonSdkApiUsageViolationReport
2011 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2012 }
2013
2014
2015 type Outcome struct {
2016
2017
2018
2019 FailureDetail *FailureDetail `json:"failureDetail,omitempty"`
2020
2021
2022
2023 InconclusiveDetail *InconclusiveDetail `json:"inconclusiveDetail,omitempty"`
2024
2025
2026
2027 SkippedDetail *SkippedDetail `json:"skippedDetail,omitempty"`
2028
2029
2030
2031 SuccessDetail *SuccessDetail `json:"successDetail,omitempty"`
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048 Summary string `json:"summary,omitempty"`
2049
2050
2051
2052
2053
2054 ForceSendFields []string `json:"-"`
2055
2056
2057
2058
2059 NullFields []string `json:"-"`
2060 }
2061
2062 func (s *Outcome) MarshalJSON() ([]byte, error) {
2063 type NoMethod Outcome
2064 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2065 }
2066
2067
2068
2069 type OverlappingUIElements struct {
2070
2071 ResourceName []string `json:"resourceName,omitempty"`
2072
2073 ScreenId string `json:"screenId,omitempty"`
2074
2075
2076
2077
2078
2079 ForceSendFields []string `json:"-"`
2080
2081
2082
2083
2084 NullFields []string `json:"-"`
2085 }
2086
2087 func (s *OverlappingUIElements) MarshalJSON() ([]byte, error) {
2088 type NoMethod OverlappingUIElements
2089 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2090 }
2091
2092
2093
2094 type PendingGoogleUpdateInsight struct {
2095
2096
2097 NameOfGoogleLibrary string `json:"nameOfGoogleLibrary,omitempty"`
2098
2099
2100
2101
2102
2103 ForceSendFields []string `json:"-"`
2104
2105
2106
2107
2108 NullFields []string `json:"-"`
2109 }
2110
2111 func (s *PendingGoogleUpdateInsight) MarshalJSON() ([]byte, error) {
2112 type NoMethod PendingGoogleUpdateInsight
2113 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2114 }
2115
2116
2117 type PerfEnvironment struct {
2118
2119 CpuInfo *CPUInfo `json:"cpuInfo,omitempty"`
2120
2121 MemoryInfo *MemoryInfo `json:"memoryInfo,omitempty"`
2122
2123
2124
2125
2126
2127 ForceSendFields []string `json:"-"`
2128
2129
2130
2131
2132 NullFields []string `json:"-"`
2133 }
2134
2135 func (s *PerfEnvironment) MarshalJSON() ([]byte, error) {
2136 type NoMethod PerfEnvironment
2137 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2138 }
2139
2140
2141
2142 type PerfMetricsSummary struct {
2143 AppStartTime *AppStartTime `json:"appStartTime,omitempty"`
2144
2145 ExecutionId string `json:"executionId,omitempty"`
2146
2147
2148 GraphicsStats *GraphicsStats `json:"graphicsStats,omitempty"`
2149
2150 HistoryId string `json:"historyId,omitempty"`
2151
2152
2153 PerfEnvironment *PerfEnvironment `json:"perfEnvironment,omitempty"`
2154
2155
2156
2157
2158
2159
2160
2161
2162 PerfMetrics []string `json:"perfMetrics,omitempty"`
2163
2164 ProjectId string `json:"projectId,omitempty"`
2165
2166 StepId string `json:"stepId,omitempty"`
2167
2168
2169 googleapi.ServerResponse `json:"-"`
2170
2171
2172
2173
2174
2175 ForceSendFields []string `json:"-"`
2176
2177
2178
2179
2180 NullFields []string `json:"-"`
2181 }
2182
2183 func (s *PerfMetricsSummary) MarshalJSON() ([]byte, error) {
2184 type NoMethod PerfMetricsSummary
2185 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2186 }
2187
2188
2189 type PerfSample struct {
2190
2191 SampleTime *Timestamp `json:"sampleTime,omitempty"`
2192
2193 Value float64 `json:"value,omitempty"`
2194
2195
2196
2197
2198
2199 ForceSendFields []string `json:"-"`
2200
2201
2202
2203
2204 NullFields []string `json:"-"`
2205 }
2206
2207 func (s *PerfSample) MarshalJSON() ([]byte, error) {
2208 type NoMethod PerfSample
2209 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2210 }
2211
2212 func (s *PerfSample) UnmarshalJSON(data []byte) error {
2213 type NoMethod PerfSample
2214 var s1 struct {
2215 Value gensupport.JSONFloat64 `json:"value"`
2216 *NoMethod
2217 }
2218 s1.NoMethod = (*NoMethod)(s)
2219 if err := json.Unmarshal(data, &s1); err != nil {
2220 return err
2221 }
2222 s.Value = float64(s1.Value)
2223 return nil
2224 }
2225
2226
2227
2228 type PerfSampleSeries struct {
2229
2230 BasicPerfSampleSeries *BasicPerfSampleSeries `json:"basicPerfSampleSeries,omitempty"`
2231
2232 ExecutionId string `json:"executionId,omitempty"`
2233
2234 HistoryId string `json:"historyId,omitempty"`
2235
2236 ProjectId string `json:"projectId,omitempty"`
2237
2238 SampleSeriesId string `json:"sampleSeriesId,omitempty"`
2239
2240 StepId string `json:"stepId,omitempty"`
2241
2242
2243 googleapi.ServerResponse `json:"-"`
2244
2245
2246
2247
2248
2249 ForceSendFields []string `json:"-"`
2250
2251
2252
2253
2254 NullFields []string `json:"-"`
2255 }
2256
2257 func (s *PerfSampleSeries) MarshalJSON() ([]byte, error) {
2258 type NoMethod PerfSampleSeries
2259 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2260 }
2261
2262
2263 type PerformedGoogleLogin struct {
2264 }
2265
2266
2267
2268 type PerformedMonkeyActions struct {
2269
2270 TotalActions int64 `json:"totalActions,omitempty"`
2271
2272
2273
2274
2275
2276 ForceSendFields []string `json:"-"`
2277
2278
2279
2280
2281 NullFields []string `json:"-"`
2282 }
2283
2284 func (s *PerformedMonkeyActions) MarshalJSON() ([]byte, error) {
2285 type NoMethod PerformedMonkeyActions
2286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2287 }
2288
2289
2290
2291 type PrimaryStep struct {
2292
2293 IndividualOutcome []*IndividualOutcome `json:"individualOutcome,omitempty"`
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311 RollUp string `json:"rollUp,omitempty"`
2312
2313
2314
2315
2316
2317 ForceSendFields []string `json:"-"`
2318
2319
2320
2321
2322 NullFields []string `json:"-"`
2323 }
2324
2325 func (s *PrimaryStep) MarshalJSON() ([]byte, error) {
2326 type NoMethod PrimaryStep
2327 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2328 }
2329
2330
2331 type ProjectSettings struct {
2332
2333
2334
2335 DefaultBucket string `json:"defaultBucket,omitempty"`
2336
2337
2338
2339 Name string `json:"name,omitempty"`
2340
2341
2342 googleapi.ServerResponse `json:"-"`
2343
2344
2345
2346
2347
2348 ForceSendFields []string `json:"-"`
2349
2350
2351
2352
2353 NullFields []string `json:"-"`
2354 }
2355
2356 func (s *ProjectSettings) MarshalJSON() ([]byte, error) {
2357 type NoMethod ProjectSettings
2358 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2359 }
2360
2361
2362
2363 type PublishXunitXmlFilesRequest struct {
2364
2365
2366 XunitXmlFiles []*FileReference `json:"xunitXmlFiles,omitempty"`
2367
2368
2369
2370
2371
2372 ForceSendFields []string `json:"-"`
2373
2374
2375
2376
2377 NullFields []string `json:"-"`
2378 }
2379
2380 func (s *PublishXunitXmlFilesRequest) MarshalJSON() ([]byte, error) {
2381 type NoMethod PublishXunitXmlFilesRequest
2382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2383 }
2384
2385
2386 type RegionProto struct {
2387
2388 HeightPx int64 `json:"heightPx,omitempty"`
2389
2390 LeftPx int64 `json:"leftPx,omitempty"`
2391
2392 TopPx int64 `json:"topPx,omitempty"`
2393
2394 WidthPx int64 `json:"widthPx,omitempty"`
2395
2396
2397
2398
2399
2400 ForceSendFields []string `json:"-"`
2401
2402
2403
2404
2405 NullFields []string `json:"-"`
2406 }
2407
2408 func (s *RegionProto) MarshalJSON() ([]byte, error) {
2409 type NoMethod RegionProto
2410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2411 }
2412
2413
2414 type ResultsStorage struct {
2415
2416 ResultsStoragePath *FileReference `json:"resultsStoragePath,omitempty"`
2417
2418 XunitXmlFile *FileReference `json:"xunitXmlFile,omitempty"`
2419
2420
2421
2422
2423
2424 ForceSendFields []string `json:"-"`
2425
2426
2427
2428
2429 NullFields []string `json:"-"`
2430 }
2431
2432 func (s *ResultsStorage) MarshalJSON() ([]byte, error) {
2433 type NoMethod ResultsStorage
2434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2435 }
2436
2437
2438 type RoboScriptExecution struct {
2439
2440 SuccessfulActions int64 `json:"successfulActions,omitempty"`
2441
2442 TotalActions int64 `json:"totalActions,omitempty"`
2443
2444
2445
2446
2447
2448 ForceSendFields []string `json:"-"`
2449
2450
2451
2452
2453 NullFields []string `json:"-"`
2454 }
2455
2456 func (s *RoboScriptExecution) MarshalJSON() ([]byte, error) {
2457 type NoMethod RoboScriptExecution
2458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2459 }
2460
2461
2462
2463
2464
2465
2466
2467
2468 type SafeHtmlProto struct {
2469
2470
2471
2472
2473 PrivateDoNotAccessOrElseSafeHtmlWrappedValue string `json:"privateDoNotAccessOrElseSafeHtmlWrappedValue,omitempty"`
2474
2475
2476
2477
2478
2479
2480 ForceSendFields []string `json:"-"`
2481
2482
2483
2484
2485
2486 NullFields []string `json:"-"`
2487 }
2488
2489 func (s *SafeHtmlProto) MarshalJSON() ([]byte, error) {
2490 type NoMethod SafeHtmlProto
2491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2492 }
2493
2494 type Screen struct {
2495
2496 FileReference string `json:"fileReference,omitempty"`
2497
2498 Locale string `json:"locale,omitempty"`
2499
2500 Model string `json:"model,omitempty"`
2501
2502
2503 Version string `json:"version,omitempty"`
2504
2505
2506
2507
2508
2509 ForceSendFields []string `json:"-"`
2510
2511
2512
2513
2514 NullFields []string `json:"-"`
2515 }
2516
2517 func (s *Screen) MarshalJSON() ([]byte, error) {
2518 type NoMethod Screen
2519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2520 }
2521
2522 type ScreenshotCluster struct {
2523
2524
2525 Activity string `json:"activity,omitempty"`
2526
2527 ClusterId string `json:"clusterId,omitempty"`
2528
2529
2530
2531
2532 KeyScreen *Screen `json:"keyScreen,omitempty"`
2533
2534 Screens []*Screen `json:"screens,omitempty"`
2535
2536
2537 googleapi.ServerResponse `json:"-"`
2538
2539
2540
2541
2542
2543 ForceSendFields []string `json:"-"`
2544
2545
2546
2547
2548 NullFields []string `json:"-"`
2549 }
2550
2551 func (s *ScreenshotCluster) MarshalJSON() ([]byte, error) {
2552 type NoMethod ScreenshotCluster
2553 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2554 }
2555
2556
2557 type ShardSummary struct {
2558
2559
2560
2561 Runs []*StepSummary `json:"runs,omitempty"`
2562
2563 ShardResult *MergedResult `json:"shardResult,omitempty"`
2564
2565
2566
2567
2568
2569 ForceSendFields []string `json:"-"`
2570
2571
2572
2573
2574 NullFields []string `json:"-"`
2575 }
2576
2577 func (s *ShardSummary) MarshalJSON() ([]byte, error) {
2578 type NoMethod ShardSummary
2579 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2580 }
2581
2582
2583 type SkippedDetail struct {
2584
2585 IncompatibleAppVersion bool `json:"incompatibleAppVersion,omitempty"`
2586
2587
2588 IncompatibleArchitecture bool `json:"incompatibleArchitecture,omitempty"`
2589
2590
2591 IncompatibleDevice bool `json:"incompatibleDevice,omitempty"`
2592
2593
2594
2595
2596
2597 ForceSendFields []string `json:"-"`
2598
2599
2600
2601
2602 NullFields []string `json:"-"`
2603 }
2604
2605 func (s *SkippedDetail) MarshalJSON() ([]byte, error) {
2606 type NoMethod SkippedDetail
2607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2608 }
2609
2610
2611 type Specification struct {
2612
2613 AndroidTest *AndroidTest `json:"androidTest,omitempty"`
2614
2615 IosTest *IosTest `json:"iosTest,omitempty"`
2616
2617
2618
2619
2620
2621 ForceSendFields []string `json:"-"`
2622
2623
2624
2625
2626 NullFields []string `json:"-"`
2627 }
2628
2629 func (s *Specification) MarshalJSON() ([]byte, error) {
2630 type NoMethod Specification
2631 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2632 }
2633
2634
2635 type StackTrace struct {
2636
2637 Exception string `json:"exception,omitempty"`
2638
2639
2640
2641
2642
2643 ForceSendFields []string `json:"-"`
2644
2645
2646
2647
2648 NullFields []string `json:"-"`
2649 }
2650
2651 func (s *StackTrace) MarshalJSON() ([]byte, error) {
2652 type NoMethod StackTrace
2653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2654 }
2655
2656
2657
2658 type StartActivityNotFound struct {
2659 Action string `json:"action,omitempty"`
2660 Uri string `json:"uri,omitempty"`
2661
2662
2663
2664
2665
2666 ForceSendFields []string `json:"-"`
2667
2668
2669
2670
2671 NullFields []string `json:"-"`
2672 }
2673
2674 func (s *StartActivityNotFound) MarshalJSON() ([]byte, error) {
2675 type NoMethod StartActivityNotFound
2676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2677 }
2678
2679
2680
2681
2682
2683
2684
2685 type Status struct {
2686
2687 Code int64 `json:"code,omitempty"`
2688
2689
2690 Details []googleapi.RawMessage `json:"details,omitempty"`
2691
2692
2693
2694 Message string `json:"message,omitempty"`
2695
2696
2697
2698
2699
2700 ForceSendFields []string `json:"-"`
2701
2702
2703
2704
2705 NullFields []string `json:"-"`
2706 }
2707
2708 func (s *Status) MarshalJSON() ([]byte, error) {
2709 type NoMethod Status
2710 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2711 }
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726 type Step struct {
2727
2728
2729
2730
2731 CompletionTime *Timestamp `json:"completionTime,omitempty"`
2732
2733
2734 CreationTime *Timestamp `json:"creationTime,omitempty"`
2735
2736
2737
2738 Description string `json:"description,omitempty"`
2739
2740
2741
2742
2743
2744
2745
2746 DeviceUsageDuration *Duration `json:"deviceUsageDuration,omitempty"`
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767 DimensionValue []*StepDimensionValueEntry `json:"dimensionValue,omitempty"`
2768
2769
2770
2771 HasImages bool `json:"hasImages,omitempty"`
2772
2773
2774
2775
2776
2777
2778
2779
2780 Labels []*StepLabelsEntry `json:"labels,omitempty"`
2781
2782
2783
2784
2785
2786
2787 MultiStep *MultiStep `json:"multiStep,omitempty"`
2788
2789
2790
2791
2792
2793
2794
2795
2796 Name string `json:"name,omitempty"`
2797
2798
2799
2800 Outcome *Outcome `json:"outcome,omitempty"`
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811 RunDuration *Duration `json:"runDuration,omitempty"`
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829 State string `json:"state,omitempty"`
2830
2831
2832
2833 StepId string `json:"stepId,omitempty"`
2834
2835 TestExecutionStep *TestExecutionStep `json:"testExecutionStep,omitempty"`
2836
2837
2838 ToolExecutionStep *ToolExecutionStep `json:"toolExecutionStep,omitempty"`
2839
2840
2841 googleapi.ServerResponse `json:"-"`
2842
2843
2844
2845
2846
2847 ForceSendFields []string `json:"-"`
2848
2849
2850
2851
2852 NullFields []string `json:"-"`
2853 }
2854
2855 func (s *Step) MarshalJSON() ([]byte, error) {
2856 type NoMethod Step
2857 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2858 }
2859
2860 type StepDimensionValueEntry struct {
2861 Key string `json:"key,omitempty"`
2862 Value string `json:"value,omitempty"`
2863
2864
2865
2866
2867
2868 ForceSendFields []string `json:"-"`
2869
2870
2871
2872
2873 NullFields []string `json:"-"`
2874 }
2875
2876 func (s *StepDimensionValueEntry) MarshalJSON() ([]byte, error) {
2877 type NoMethod StepDimensionValueEntry
2878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2879 }
2880
2881 type StepLabelsEntry struct {
2882 Key string `json:"key,omitempty"`
2883 Value string `json:"value,omitempty"`
2884
2885
2886
2887
2888
2889 ForceSendFields []string `json:"-"`
2890
2891
2892
2893
2894 NullFields []string `json:"-"`
2895 }
2896
2897 func (s *StepLabelsEntry) MarshalJSON() ([]byte, error) {
2898 type NoMethod StepLabelsEntry
2899 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2900 }
2901
2902
2903 type StepSummary struct {
2904 }
2905
2906
2907
2908 type SuccessDetail struct {
2909
2910 OtherNativeCrash bool `json:"otherNativeCrash,omitempty"`
2911
2912
2913
2914
2915
2916 ForceSendFields []string `json:"-"`
2917
2918
2919
2920
2921 NullFields []string `json:"-"`
2922 }
2923
2924 func (s *SuccessDetail) MarshalJSON() ([]byte, error) {
2925 type NoMethod SuccessDetail
2926 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2927 }
2928
2929
2930
2931
2932
2933 type SuggestionClusterProto struct {
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943 Category string `json:"category,omitempty"`
2944
2945
2946
2947
2948 Suggestions []*SuggestionProto `json:"suggestions,omitempty"`
2949
2950
2951
2952
2953
2954 ForceSendFields []string `json:"-"`
2955
2956
2957
2958
2959 NullFields []string `json:"-"`
2960 }
2961
2962 func (s *SuggestionClusterProto) MarshalJSON() ([]byte, error) {
2963 type NoMethod SuggestionClusterProto
2964 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2965 }
2966
2967 type SuggestionProto struct {
2968
2969
2970 HelpUrl string `json:"helpUrl,omitempty"`
2971
2972
2973 LongMessage *SafeHtmlProto `json:"longMessage,omitempty"`
2974
2975
2976
2977
2978
2979
2980
2981 Priority string `json:"priority,omitempty"`
2982
2983
2984
2985 PseudoResourceId string `json:"pseudoResourceId,omitempty"`
2986
2987
2988 Region *RegionProto `json:"region,omitempty"`
2989
2990
2991 ResourceName string `json:"resourceName,omitempty"`
2992
2993
2994
2995 ScreenId string `json:"screenId,omitempty"`
2996
2997
2998
2999
3000
3001 SecondaryPriority float64 `json:"secondaryPriority,omitempty"`
3002
3003
3004 ShortMessage *SafeHtmlProto `json:"shortMessage,omitempty"`
3005
3006
3007 Title string `json:"title,omitempty"`
3008
3009
3010
3011
3012
3013 ForceSendFields []string `json:"-"`
3014
3015
3016
3017
3018 NullFields []string `json:"-"`
3019 }
3020
3021 func (s *SuggestionProto) MarshalJSON() ([]byte, error) {
3022 type NoMethod SuggestionProto
3023 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3024 }
3025
3026 func (s *SuggestionProto) UnmarshalJSON(data []byte) error {
3027 type NoMethod SuggestionProto
3028 var s1 struct {
3029 SecondaryPriority gensupport.JSONFloat64 `json:"secondaryPriority"`
3030 *NoMethod
3031 }
3032 s1.NoMethod = (*NoMethod)(s)
3033 if err := json.Unmarshal(data, &s1); err != nil {
3034 return err
3035 }
3036 s.SecondaryPriority = float64(s1.SecondaryPriority)
3037 return nil
3038 }
3039
3040 type TestCase struct {
3041
3042 ElapsedTime *Duration `json:"elapsedTime,omitempty"`
3043
3044 EndTime *Timestamp `json:"endTime,omitempty"`
3045
3046
3047 SkippedMessage string `json:"skippedMessage,omitempty"`
3048
3049
3050
3051 StackTraces []*StackTrace `json:"stackTraces,omitempty"`
3052
3053 StartTime *Timestamp `json:"startTime,omitempty"`
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064 Status string `json:"status,omitempty"`
3065
3066 TestCaseId string `json:"testCaseId,omitempty"`
3067
3068
3069 TestCaseReference *TestCaseReference `json:"testCaseReference,omitempty"`
3070
3071
3072 ToolOutputs []*ToolOutputReference `json:"toolOutputs,omitempty"`
3073
3074
3075 googleapi.ServerResponse `json:"-"`
3076
3077
3078
3079
3080
3081 ForceSendFields []string `json:"-"`
3082
3083
3084
3085
3086 NullFields []string `json:"-"`
3087 }
3088
3089 func (s *TestCase) MarshalJSON() ([]byte, error) {
3090 type NoMethod TestCase
3091 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3092 }
3093
3094
3095
3096
3097 type TestCaseReference struct {
3098
3099 ClassName string `json:"className,omitempty"`
3100
3101 Name string `json:"name,omitempty"`
3102
3103 TestSuiteName string `json:"testSuiteName,omitempty"`
3104
3105
3106
3107
3108
3109 ForceSendFields []string `json:"-"`
3110
3111
3112
3113
3114 NullFields []string `json:"-"`
3115 }
3116
3117 func (s *TestCaseReference) MarshalJSON() ([]byte, error) {
3118 type NoMethod TestCaseReference
3119 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3120 }
3121
3122
3123
3124
3125
3126
3127 type TestExecutionStep struct {
3128
3129
3130
3131
3132 TestIssues []*TestIssue `json:"testIssues,omitempty"`
3133
3134
3135
3136
3137
3138
3139 TestSuiteOverviews []*TestSuiteOverview `json:"testSuiteOverviews,omitempty"`
3140
3141
3142 TestTiming *TestTiming `json:"testTiming,omitempty"`
3143
3144
3145
3146 ToolExecution *ToolExecution `json:"toolExecution,omitempty"`
3147
3148
3149
3150
3151
3152 ForceSendFields []string `json:"-"`
3153
3154
3155
3156
3157 NullFields []string `json:"-"`
3158 }
3159
3160 func (s *TestExecutionStep) MarshalJSON() ([]byte, error) {
3161 type NoMethod TestExecutionStep
3162 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3163 }
3164
3165
3166 type TestIssue struct {
3167
3168
3169
3170
3171
3172
3173
3174
3175 Category string `json:"category,omitempty"`
3176
3177 ErrorMessage string `json:"errorMessage,omitempty"`
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189 Severity string `json:"severity,omitempty"`
3190
3191
3192 StackTrace *StackTrace `json:"stackTrace,omitempty"`
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241 Type string `json:"type,omitempty"`
3242
3243
3244 Warning *Any `json:"warning,omitempty"`
3245
3246
3247
3248
3249
3250 ForceSendFields []string `json:"-"`
3251
3252
3253
3254
3255 NullFields []string `json:"-"`
3256 }
3257
3258 func (s *TestIssue) MarshalJSON() ([]byte, error) {
3259 type NoMethod TestIssue
3260 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3261 }
3262
3263
3264
3265
3266
3267 type TestSuiteOverview struct {
3268
3269 ElapsedTime *Duration `json:"elapsedTime,omitempty"`
3270
3271
3272
3273 ErrorCount int64 `json:"errorCount,omitempty"`
3274
3275
3276
3277 FailureCount int64 `json:"failureCount,omitempty"`
3278
3279
3280
3281 FlakyCount int64 `json:"flakyCount,omitempty"`
3282
3283
3284 Name string `json:"name,omitempty"`
3285
3286
3287
3288 SkippedCount int64 `json:"skippedCount,omitempty"`
3289
3290
3291 TotalCount int64 `json:"totalCount,omitempty"`
3292
3293
3294
3295
3296 XmlSource *FileReference `json:"xmlSource,omitempty"`
3297
3298
3299
3300
3301
3302 ForceSendFields []string `json:"-"`
3303
3304
3305
3306
3307 NullFields []string `json:"-"`
3308 }
3309
3310 func (s *TestSuiteOverview) MarshalJSON() ([]byte, error) {
3311 type NoMethod TestSuiteOverview
3312 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3313 }
3314
3315
3316 type TestTiming struct {
3317
3318
3319 TestProcessDuration *Duration `json:"testProcessDuration,omitempty"`
3320
3321
3322
3323
3324
3325 ForceSendFields []string `json:"-"`
3326
3327
3328
3329
3330 NullFields []string `json:"-"`
3331 }
3332
3333 func (s *TestTiming) MarshalJSON() ([]byte, error) {
3334 type NoMethod TestTiming
3335 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3336 }
3337
3338
3339 type Thumbnail struct {
3340
3341 ContentType string `json:"contentType,omitempty"`
3342
3343
3344
3345 Data string `json:"data,omitempty"`
3346
3347 HeightPx int64 `json:"heightPx,omitempty"`
3348
3349 WidthPx int64 `json:"widthPx,omitempty"`
3350
3351
3352
3353
3354
3355 ForceSendFields []string `json:"-"`
3356
3357
3358
3359
3360 NullFields []string `json:"-"`
3361 }
3362
3363 func (s *Thumbnail) MarshalJSON() ([]byte, error) {
3364 type NoMethod Thumbnail
3365 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3366 }
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 type Timestamp struct {
3380
3381
3382
3383 Nanos int64 `json:"nanos,omitempty"`
3384
3385
3386
3387 Seconds int64 `json:"seconds,omitempty,string"`
3388
3389
3390
3391
3392
3393 ForceSendFields []string `json:"-"`
3394
3395
3396
3397
3398 NullFields []string `json:"-"`
3399 }
3400
3401 func (s *Timestamp) MarshalJSON() ([]byte, error) {
3402 type NoMethod Timestamp
3403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3404 }
3405
3406
3407
3408 type ToolExecution struct {
3409
3410
3411
3412 CommandLineArguments []string `json:"commandLineArguments,omitempty"`
3413
3414
3415
3416
3417 ExitCode *ToolExitCode `json:"exitCode,omitempty"`
3418
3419
3420
3421
3422
3423
3424 ToolLogs []*FileReference `json:"toolLogs,omitempty"`
3425
3426
3427
3428
3429
3430 ToolOutputs []*ToolOutputReference `json:"toolOutputs,omitempty"`
3431
3432
3433
3434
3435
3436 ForceSendFields []string `json:"-"`
3437
3438
3439
3440
3441 NullFields []string `json:"-"`
3442 }
3443
3444 func (s *ToolExecution) MarshalJSON() ([]byte, error) {
3445 type NoMethod ToolExecution
3446 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3447 }
3448
3449
3450
3451
3452 type ToolExecutionStep struct {
3453
3454
3455 ToolExecution *ToolExecution `json:"toolExecution,omitempty"`
3456
3457
3458
3459
3460
3461 ForceSendFields []string `json:"-"`
3462
3463
3464
3465
3466 NullFields []string `json:"-"`
3467 }
3468
3469 func (s *ToolExecutionStep) MarshalJSON() ([]byte, error) {
3470 type NoMethod ToolExecutionStep
3471 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3472 }
3473
3474
3475 type ToolExitCode struct {
3476
3477
3478 Number int64 `json:"number,omitempty"`
3479
3480
3481
3482
3483
3484 ForceSendFields []string `json:"-"`
3485
3486
3487
3488
3489 NullFields []string `json:"-"`
3490 }
3491
3492 func (s *ToolExitCode) MarshalJSON() ([]byte, error) {
3493 type NoMethod ToolExitCode
3494 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3495 }
3496
3497
3498 type ToolOutputReference struct {
3499
3500
3501 CreationTime *Timestamp `json:"creationTime,omitempty"`
3502
3503
3504 Output *FileReference `json:"output,omitempty"`
3505
3506
3507 TestCase *TestCaseReference `json:"testCase,omitempty"`
3508
3509
3510
3511
3512
3513 ForceSendFields []string `json:"-"`
3514
3515
3516
3517
3518 NullFields []string `json:"-"`
3519 }
3520
3521 func (s *ToolOutputReference) MarshalJSON() ([]byte, error) {
3522 type NoMethod ToolOutputReference
3523 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3524 }
3525
3526
3527
3528 type UIElementTooDeep struct {
3529
3530 Depth int64 `json:"depth,omitempty"`
3531
3532 ScreenId string `json:"screenId,omitempty"`
3533
3534 ScreenStateId string `json:"screenStateId,omitempty"`
3535
3536
3537
3538
3539
3540 ForceSendFields []string `json:"-"`
3541
3542
3543
3544
3545 NullFields []string `json:"-"`
3546 }
3547
3548 func (s *UIElementTooDeep) MarshalJSON() ([]byte, error) {
3549 type NoMethod UIElementTooDeep
3550 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3551 }
3552
3553
3554 type UnspecifiedWarning struct {
3555 }
3556
3557
3558 type UnusedRoboDirective struct {
3559
3560 ResourceName string `json:"resourceName,omitempty"`
3561
3562
3563
3564
3565
3566 ForceSendFields []string `json:"-"`
3567
3568
3569
3570
3571 NullFields []string `json:"-"`
3572 }
3573
3574 func (s *UnusedRoboDirective) MarshalJSON() ([]byte, error) {
3575 type NoMethod UnusedRoboDirective
3576 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3577 }
3578
3579
3580
3581 type UpgradeInsight struct {
3582
3583 PackageName string `json:"packageName,omitempty"`
3584
3585
3586 UpgradeToVersion string `json:"upgradeToVersion,omitempty"`
3587
3588
3589
3590
3591
3592 ForceSendFields []string `json:"-"`
3593
3594
3595
3596
3597 NullFields []string `json:"-"`
3598 }
3599
3600 func (s *UpgradeInsight) MarshalJSON() ([]byte, error) {
3601 type NoMethod UpgradeInsight
3602 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3603 }
3604
3605
3606 type UsedRoboDirective struct {
3607
3608 ResourceName string `json:"resourceName,omitempty"`
3609
3610
3611
3612
3613
3614 ForceSendFields []string `json:"-"`
3615
3616
3617
3618
3619 NullFields []string `json:"-"`
3620 }
3621
3622 func (s *UsedRoboDirective) MarshalJSON() ([]byte, error) {
3623 type NoMethod UsedRoboDirective
3624 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3625 }
3626
3627
3628
3629 type UsedRoboIgnoreDirective struct {
3630
3631 ResourceName string `json:"resourceName,omitempty"`
3632
3633
3634
3635
3636
3637 ForceSendFields []string `json:"-"`
3638
3639
3640
3641
3642 NullFields []string `json:"-"`
3643 }
3644
3645 func (s *UsedRoboIgnoreDirective) MarshalJSON() ([]byte, error) {
3646 type NoMethod UsedRoboIgnoreDirective
3647 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3648 }
3649
3650 type ProjectsGetSettingsCall struct {
3651 s *Service
3652 projectId string
3653 urlParams_ gensupport.URLParams
3654 ifNoneMatch_ string
3655 ctx_ context.Context
3656 header_ http.Header
3657 }
3658
3659
3660
3661
3662
3663
3664 func (r *ProjectsService) GetSettings(projectId string) *ProjectsGetSettingsCall {
3665 c := &ProjectsGetSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3666 c.projectId = projectId
3667 return c
3668 }
3669
3670
3671
3672
3673 func (c *ProjectsGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsGetSettingsCall {
3674 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3675 return c
3676 }
3677
3678
3679
3680
3681 func (c *ProjectsGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsGetSettingsCall {
3682 c.ifNoneMatch_ = entityTag
3683 return c
3684 }
3685
3686
3687 func (c *ProjectsGetSettingsCall) Context(ctx context.Context) *ProjectsGetSettingsCall {
3688 c.ctx_ = ctx
3689 return c
3690 }
3691
3692
3693
3694 func (c *ProjectsGetSettingsCall) Header() http.Header {
3695 if c.header_ == nil {
3696 c.header_ = make(http.Header)
3697 }
3698 return c.header_
3699 }
3700
3701 func (c *ProjectsGetSettingsCall) doRequest(alt string) (*http.Response, error) {
3702 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3703 if c.ifNoneMatch_ != "" {
3704 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3705 }
3706 var body io.Reader = nil
3707 c.urlParams_.Set("alt", alt)
3708 c.urlParams_.Set("prettyPrint", "false")
3709 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/settings")
3710 urls += "?" + c.urlParams_.Encode()
3711 req, err := http.NewRequest("GET", urls, body)
3712 if err != nil {
3713 return nil, err
3714 }
3715 req.Header = reqHeaders
3716 googleapi.Expand(req.URL, map[string]string{
3717 "projectId": c.projectId,
3718 })
3719 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3720 }
3721
3722
3723
3724
3725
3726
3727
3728 func (c *ProjectsGetSettingsCall) Do(opts ...googleapi.CallOption) (*ProjectSettings, error) {
3729 gensupport.SetOptions(c.urlParams_, opts...)
3730 res, err := c.doRequest("json")
3731 if res != nil && res.StatusCode == http.StatusNotModified {
3732 if res.Body != nil {
3733 res.Body.Close()
3734 }
3735 return nil, gensupport.WrapError(&googleapi.Error{
3736 Code: res.StatusCode,
3737 Header: res.Header,
3738 })
3739 }
3740 if err != nil {
3741 return nil, err
3742 }
3743 defer googleapi.CloseBody(res)
3744 if err := googleapi.CheckResponse(res); err != nil {
3745 return nil, gensupport.WrapError(err)
3746 }
3747 ret := &ProjectSettings{
3748 ServerResponse: googleapi.ServerResponse{
3749 Header: res.Header,
3750 HTTPStatusCode: res.StatusCode,
3751 },
3752 }
3753 target := &ret
3754 if err := gensupport.DecodeResponse(target, res); err != nil {
3755 return nil, err
3756 }
3757 return ret, nil
3758 }
3759
3760 type ProjectsInitializeSettingsCall struct {
3761 s *Service
3762 projectId string
3763 urlParams_ gensupport.URLParams
3764 ctx_ context.Context
3765 header_ http.Header
3766 }
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789 func (r *ProjectsService) InitializeSettings(projectId string) *ProjectsInitializeSettingsCall {
3790 c := &ProjectsInitializeSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3791 c.projectId = projectId
3792 return c
3793 }
3794
3795
3796
3797
3798 func (c *ProjectsInitializeSettingsCall) Fields(s ...googleapi.Field) *ProjectsInitializeSettingsCall {
3799 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3800 return c
3801 }
3802
3803
3804 func (c *ProjectsInitializeSettingsCall) Context(ctx context.Context) *ProjectsInitializeSettingsCall {
3805 c.ctx_ = ctx
3806 return c
3807 }
3808
3809
3810
3811 func (c *ProjectsInitializeSettingsCall) Header() http.Header {
3812 if c.header_ == nil {
3813 c.header_ = make(http.Header)
3814 }
3815 return c.header_
3816 }
3817
3818 func (c *ProjectsInitializeSettingsCall) doRequest(alt string) (*http.Response, error) {
3819 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3820 var body io.Reader = nil
3821 c.urlParams_.Set("alt", alt)
3822 c.urlParams_.Set("prettyPrint", "false")
3823 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}:initializeSettings")
3824 urls += "?" + c.urlParams_.Encode()
3825 req, err := http.NewRequest("POST", urls, body)
3826 if err != nil {
3827 return nil, err
3828 }
3829 req.Header = reqHeaders
3830 googleapi.Expand(req.URL, map[string]string{
3831 "projectId": c.projectId,
3832 })
3833 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3834 }
3835
3836
3837
3838
3839
3840
3841
3842 func (c *ProjectsInitializeSettingsCall) Do(opts ...googleapi.CallOption) (*ProjectSettings, error) {
3843 gensupport.SetOptions(c.urlParams_, opts...)
3844 res, err := c.doRequest("json")
3845 if res != nil && res.StatusCode == http.StatusNotModified {
3846 if res.Body != nil {
3847 res.Body.Close()
3848 }
3849 return nil, gensupport.WrapError(&googleapi.Error{
3850 Code: res.StatusCode,
3851 Header: res.Header,
3852 })
3853 }
3854 if err != nil {
3855 return nil, err
3856 }
3857 defer googleapi.CloseBody(res)
3858 if err := googleapi.CheckResponse(res); err != nil {
3859 return nil, gensupport.WrapError(err)
3860 }
3861 ret := &ProjectSettings{
3862 ServerResponse: googleapi.ServerResponse{
3863 Header: res.Header,
3864 HTTPStatusCode: res.StatusCode,
3865 },
3866 }
3867 target := &ret
3868 if err := gensupport.DecodeResponse(target, res); err != nil {
3869 return nil, err
3870 }
3871 return ret, nil
3872 }
3873
3874 type ProjectsHistoriesCreateCall struct {
3875 s *Service
3876 projectId string
3877 history *History
3878 urlParams_ gensupport.URLParams
3879 ctx_ context.Context
3880 header_ http.Header
3881 }
3882
3883
3884
3885
3886
3887
3888
3889 func (r *ProjectsHistoriesService) Create(projectId string, history *History) *ProjectsHistoriesCreateCall {
3890 c := &ProjectsHistoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3891 c.projectId = projectId
3892 c.history = history
3893 return c
3894 }
3895
3896
3897
3898
3899 func (c *ProjectsHistoriesCreateCall) RequestId(requestId string) *ProjectsHistoriesCreateCall {
3900 c.urlParams_.Set("requestId", requestId)
3901 return c
3902 }
3903
3904
3905
3906
3907 func (c *ProjectsHistoriesCreateCall) Fields(s ...googleapi.Field) *ProjectsHistoriesCreateCall {
3908 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3909 return c
3910 }
3911
3912
3913 func (c *ProjectsHistoriesCreateCall) Context(ctx context.Context) *ProjectsHistoriesCreateCall {
3914 c.ctx_ = ctx
3915 return c
3916 }
3917
3918
3919
3920 func (c *ProjectsHistoriesCreateCall) Header() http.Header {
3921 if c.header_ == nil {
3922 c.header_ = make(http.Header)
3923 }
3924 return c.header_
3925 }
3926
3927 func (c *ProjectsHistoriesCreateCall) doRequest(alt string) (*http.Response, error) {
3928 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3929 var body io.Reader = nil
3930 body, err := googleapi.WithoutDataWrapper.JSONReader(c.history)
3931 if err != nil {
3932 return nil, err
3933 }
3934 c.urlParams_.Set("alt", alt)
3935 c.urlParams_.Set("prettyPrint", "false")
3936 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories")
3937 urls += "?" + c.urlParams_.Encode()
3938 req, err := http.NewRequest("POST", urls, body)
3939 if err != nil {
3940 return nil, err
3941 }
3942 req.Header = reqHeaders
3943 googleapi.Expand(req.URL, map[string]string{
3944 "projectId": c.projectId,
3945 })
3946 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3947 }
3948
3949
3950
3951
3952
3953
3954 func (c *ProjectsHistoriesCreateCall) Do(opts ...googleapi.CallOption) (*History, error) {
3955 gensupport.SetOptions(c.urlParams_, opts...)
3956 res, err := c.doRequest("json")
3957 if res != nil && res.StatusCode == http.StatusNotModified {
3958 if res.Body != nil {
3959 res.Body.Close()
3960 }
3961 return nil, gensupport.WrapError(&googleapi.Error{
3962 Code: res.StatusCode,
3963 Header: res.Header,
3964 })
3965 }
3966 if err != nil {
3967 return nil, err
3968 }
3969 defer googleapi.CloseBody(res)
3970 if err := googleapi.CheckResponse(res); err != nil {
3971 return nil, gensupport.WrapError(err)
3972 }
3973 ret := &History{
3974 ServerResponse: googleapi.ServerResponse{
3975 Header: res.Header,
3976 HTTPStatusCode: res.StatusCode,
3977 },
3978 }
3979 target := &ret
3980 if err := gensupport.DecodeResponse(target, res); err != nil {
3981 return nil, err
3982 }
3983 return ret, nil
3984 }
3985
3986 type ProjectsHistoriesGetCall struct {
3987 s *Service
3988 projectId string
3989 historyId string
3990 urlParams_ gensupport.URLParams
3991 ifNoneMatch_ string
3992 ctx_ context.Context
3993 header_ http.Header
3994 }
3995
3996
3997
3998
3999
4000
4001
4002
4003 func (r *ProjectsHistoriesService) Get(projectId string, historyId string) *ProjectsHistoriesGetCall {
4004 c := &ProjectsHistoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4005 c.projectId = projectId
4006 c.historyId = historyId
4007 return c
4008 }
4009
4010
4011
4012
4013 func (c *ProjectsHistoriesGetCall) Fields(s ...googleapi.Field) *ProjectsHistoriesGetCall {
4014 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4015 return c
4016 }
4017
4018
4019
4020
4021 func (c *ProjectsHistoriesGetCall) IfNoneMatch(entityTag string) *ProjectsHistoriesGetCall {
4022 c.ifNoneMatch_ = entityTag
4023 return c
4024 }
4025
4026
4027 func (c *ProjectsHistoriesGetCall) Context(ctx context.Context) *ProjectsHistoriesGetCall {
4028 c.ctx_ = ctx
4029 return c
4030 }
4031
4032
4033
4034 func (c *ProjectsHistoriesGetCall) Header() http.Header {
4035 if c.header_ == nil {
4036 c.header_ = make(http.Header)
4037 }
4038 return c.header_
4039 }
4040
4041 func (c *ProjectsHistoriesGetCall) doRequest(alt string) (*http.Response, error) {
4042 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4043 if c.ifNoneMatch_ != "" {
4044 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4045 }
4046 var body io.Reader = nil
4047 c.urlParams_.Set("alt", alt)
4048 c.urlParams_.Set("prettyPrint", "false")
4049 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}")
4050 urls += "?" + c.urlParams_.Encode()
4051 req, err := http.NewRequest("GET", urls, body)
4052 if err != nil {
4053 return nil, err
4054 }
4055 req.Header = reqHeaders
4056 googleapi.Expand(req.URL, map[string]string{
4057 "projectId": c.projectId,
4058 "historyId": c.historyId,
4059 })
4060 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4061 }
4062
4063
4064
4065
4066
4067
4068 func (c *ProjectsHistoriesGetCall) Do(opts ...googleapi.CallOption) (*History, error) {
4069 gensupport.SetOptions(c.urlParams_, opts...)
4070 res, err := c.doRequest("json")
4071 if res != nil && res.StatusCode == http.StatusNotModified {
4072 if res.Body != nil {
4073 res.Body.Close()
4074 }
4075 return nil, gensupport.WrapError(&googleapi.Error{
4076 Code: res.StatusCode,
4077 Header: res.Header,
4078 })
4079 }
4080 if err != nil {
4081 return nil, err
4082 }
4083 defer googleapi.CloseBody(res)
4084 if err := googleapi.CheckResponse(res); err != nil {
4085 return nil, gensupport.WrapError(err)
4086 }
4087 ret := &History{
4088 ServerResponse: googleapi.ServerResponse{
4089 Header: res.Header,
4090 HTTPStatusCode: res.StatusCode,
4091 },
4092 }
4093 target := &ret
4094 if err := gensupport.DecodeResponse(target, res); err != nil {
4095 return nil, err
4096 }
4097 return ret, nil
4098 }
4099
4100 type ProjectsHistoriesListCall struct {
4101 s *Service
4102 projectId string
4103 urlParams_ gensupport.URLParams
4104 ifNoneMatch_ string
4105 ctx_ context.Context
4106 header_ http.Header
4107 }
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117 func (r *ProjectsHistoriesService) List(projectId string) *ProjectsHistoriesListCall {
4118 c := &ProjectsHistoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4119 c.projectId = projectId
4120 return c
4121 }
4122
4123
4124
4125 func (c *ProjectsHistoriesListCall) FilterByName(filterByName string) *ProjectsHistoriesListCall {
4126 c.urlParams_.Set("filterByName", filterByName)
4127 return c
4128 }
4129
4130
4131
4132
4133
4134 func (c *ProjectsHistoriesListCall) PageSize(pageSize int64) *ProjectsHistoriesListCall {
4135 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4136 return c
4137 }
4138
4139
4140
4141 func (c *ProjectsHistoriesListCall) PageToken(pageToken string) *ProjectsHistoriesListCall {
4142 c.urlParams_.Set("pageToken", pageToken)
4143 return c
4144 }
4145
4146
4147
4148
4149 func (c *ProjectsHistoriesListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesListCall {
4150 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4151 return c
4152 }
4153
4154
4155
4156
4157 func (c *ProjectsHistoriesListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesListCall {
4158 c.ifNoneMatch_ = entityTag
4159 return c
4160 }
4161
4162
4163 func (c *ProjectsHistoriesListCall) Context(ctx context.Context) *ProjectsHistoriesListCall {
4164 c.ctx_ = ctx
4165 return c
4166 }
4167
4168
4169
4170 func (c *ProjectsHistoriesListCall) Header() http.Header {
4171 if c.header_ == nil {
4172 c.header_ = make(http.Header)
4173 }
4174 return c.header_
4175 }
4176
4177 func (c *ProjectsHistoriesListCall) doRequest(alt string) (*http.Response, error) {
4178 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4179 if c.ifNoneMatch_ != "" {
4180 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4181 }
4182 var body io.Reader = nil
4183 c.urlParams_.Set("alt", alt)
4184 c.urlParams_.Set("prettyPrint", "false")
4185 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories")
4186 urls += "?" + c.urlParams_.Encode()
4187 req, err := http.NewRequest("GET", urls, body)
4188 if err != nil {
4189 return nil, err
4190 }
4191 req.Header = reqHeaders
4192 googleapi.Expand(req.URL, map[string]string{
4193 "projectId": c.projectId,
4194 })
4195 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4196 }
4197
4198
4199
4200
4201
4202
4203
4204 func (c *ProjectsHistoriesListCall) Do(opts ...googleapi.CallOption) (*ListHistoriesResponse, error) {
4205 gensupport.SetOptions(c.urlParams_, opts...)
4206 res, err := c.doRequest("json")
4207 if res != nil && res.StatusCode == http.StatusNotModified {
4208 if res.Body != nil {
4209 res.Body.Close()
4210 }
4211 return nil, gensupport.WrapError(&googleapi.Error{
4212 Code: res.StatusCode,
4213 Header: res.Header,
4214 })
4215 }
4216 if err != nil {
4217 return nil, err
4218 }
4219 defer googleapi.CloseBody(res)
4220 if err := googleapi.CheckResponse(res); err != nil {
4221 return nil, gensupport.WrapError(err)
4222 }
4223 ret := &ListHistoriesResponse{
4224 ServerResponse: googleapi.ServerResponse{
4225 Header: res.Header,
4226 HTTPStatusCode: res.StatusCode,
4227 },
4228 }
4229 target := &ret
4230 if err := gensupport.DecodeResponse(target, res); err != nil {
4231 return nil, err
4232 }
4233 return ret, nil
4234 }
4235
4236
4237
4238
4239 func (c *ProjectsHistoriesListCall) Pages(ctx context.Context, f func(*ListHistoriesResponse) error) error {
4240 c.ctx_ = ctx
4241 defer c.PageToken(c.urlParams_.Get("pageToken"))
4242 for {
4243 x, err := c.Do()
4244 if err != nil {
4245 return err
4246 }
4247 if err := f(x); err != nil {
4248 return err
4249 }
4250 if x.NextPageToken == "" {
4251 return nil
4252 }
4253 c.PageToken(x.NextPageToken)
4254 }
4255 }
4256
4257 type ProjectsHistoriesExecutionsCreateCall struct {
4258 s *Service
4259 projectId string
4260 historyId string
4261 execution *Execution
4262 urlParams_ gensupport.URLParams
4263 ctx_ context.Context
4264 header_ http.Header
4265 }
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275 func (r *ProjectsHistoriesExecutionsService) Create(projectId string, historyId string, execution *Execution) *ProjectsHistoriesExecutionsCreateCall {
4276 c := &ProjectsHistoriesExecutionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4277 c.projectId = projectId
4278 c.historyId = historyId
4279 c.execution = execution
4280 return c
4281 }
4282
4283
4284
4285
4286 func (c *ProjectsHistoriesExecutionsCreateCall) RequestId(requestId string) *ProjectsHistoriesExecutionsCreateCall {
4287 c.urlParams_.Set("requestId", requestId)
4288 return c
4289 }
4290
4291
4292
4293
4294 func (c *ProjectsHistoriesExecutionsCreateCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsCreateCall {
4295 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4296 return c
4297 }
4298
4299
4300 func (c *ProjectsHistoriesExecutionsCreateCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsCreateCall {
4301 c.ctx_ = ctx
4302 return c
4303 }
4304
4305
4306
4307 func (c *ProjectsHistoriesExecutionsCreateCall) Header() http.Header {
4308 if c.header_ == nil {
4309 c.header_ = make(http.Header)
4310 }
4311 return c.header_
4312 }
4313
4314 func (c *ProjectsHistoriesExecutionsCreateCall) doRequest(alt string) (*http.Response, error) {
4315 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4316 var body io.Reader = nil
4317 body, err := googleapi.WithoutDataWrapper.JSONReader(c.execution)
4318 if err != nil {
4319 return nil, err
4320 }
4321 c.urlParams_.Set("alt", alt)
4322 c.urlParams_.Set("prettyPrint", "false")
4323 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions")
4324 urls += "?" + c.urlParams_.Encode()
4325 req, err := http.NewRequest("POST", urls, body)
4326 if err != nil {
4327 return nil, err
4328 }
4329 req.Header = reqHeaders
4330 googleapi.Expand(req.URL, map[string]string{
4331 "projectId": c.projectId,
4332 "historyId": c.historyId,
4333 })
4334 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4335 }
4336
4337
4338
4339
4340
4341
4342 func (c *ProjectsHistoriesExecutionsCreateCall) Do(opts ...googleapi.CallOption) (*Execution, error) {
4343 gensupport.SetOptions(c.urlParams_, opts...)
4344 res, err := c.doRequest("json")
4345 if res != nil && res.StatusCode == http.StatusNotModified {
4346 if res.Body != nil {
4347 res.Body.Close()
4348 }
4349 return nil, gensupport.WrapError(&googleapi.Error{
4350 Code: res.StatusCode,
4351 Header: res.Header,
4352 })
4353 }
4354 if err != nil {
4355 return nil, err
4356 }
4357 defer googleapi.CloseBody(res)
4358 if err := googleapi.CheckResponse(res); err != nil {
4359 return nil, gensupport.WrapError(err)
4360 }
4361 ret := &Execution{
4362 ServerResponse: googleapi.ServerResponse{
4363 Header: res.Header,
4364 HTTPStatusCode: res.StatusCode,
4365 },
4366 }
4367 target := &ret
4368 if err := gensupport.DecodeResponse(target, res); err != nil {
4369 return nil, err
4370 }
4371 return ret, nil
4372 }
4373
4374 type ProjectsHistoriesExecutionsGetCall struct {
4375 s *Service
4376 projectId string
4377 historyId string
4378 executionId string
4379 urlParams_ gensupport.URLParams
4380 ifNoneMatch_ string
4381 ctx_ context.Context
4382 header_ http.Header
4383 }
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393 func (r *ProjectsHistoriesExecutionsService) Get(projectId string, historyId string, executionId string) *ProjectsHistoriesExecutionsGetCall {
4394 c := &ProjectsHistoriesExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4395 c.projectId = projectId
4396 c.historyId = historyId
4397 c.executionId = executionId
4398 return c
4399 }
4400
4401
4402
4403
4404 func (c *ProjectsHistoriesExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsGetCall {
4405 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4406 return c
4407 }
4408
4409
4410
4411
4412 func (c *ProjectsHistoriesExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsGetCall {
4413 c.ifNoneMatch_ = entityTag
4414 return c
4415 }
4416
4417
4418 func (c *ProjectsHistoriesExecutionsGetCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsGetCall {
4419 c.ctx_ = ctx
4420 return c
4421 }
4422
4423
4424
4425 func (c *ProjectsHistoriesExecutionsGetCall) Header() http.Header {
4426 if c.header_ == nil {
4427 c.header_ = make(http.Header)
4428 }
4429 return c.header_
4430 }
4431
4432 func (c *ProjectsHistoriesExecutionsGetCall) doRequest(alt string) (*http.Response, error) {
4433 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4434 if c.ifNoneMatch_ != "" {
4435 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4436 }
4437 var body io.Reader = nil
4438 c.urlParams_.Set("alt", alt)
4439 c.urlParams_.Set("prettyPrint", "false")
4440 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}")
4441 urls += "?" + c.urlParams_.Encode()
4442 req, err := http.NewRequest("GET", urls, body)
4443 if err != nil {
4444 return nil, err
4445 }
4446 req.Header = reqHeaders
4447 googleapi.Expand(req.URL, map[string]string{
4448 "projectId": c.projectId,
4449 "historyId": c.historyId,
4450 "executionId": c.executionId,
4451 })
4452 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4453 }
4454
4455
4456
4457
4458
4459
4460 func (c *ProjectsHistoriesExecutionsGetCall) Do(opts ...googleapi.CallOption) (*Execution, error) {
4461 gensupport.SetOptions(c.urlParams_, opts...)
4462 res, err := c.doRequest("json")
4463 if res != nil && res.StatusCode == http.StatusNotModified {
4464 if res.Body != nil {
4465 res.Body.Close()
4466 }
4467 return nil, gensupport.WrapError(&googleapi.Error{
4468 Code: res.StatusCode,
4469 Header: res.Header,
4470 })
4471 }
4472 if err != nil {
4473 return nil, err
4474 }
4475 defer googleapi.CloseBody(res)
4476 if err := googleapi.CheckResponse(res); err != nil {
4477 return nil, gensupport.WrapError(err)
4478 }
4479 ret := &Execution{
4480 ServerResponse: googleapi.ServerResponse{
4481 Header: res.Header,
4482 HTTPStatusCode: res.StatusCode,
4483 },
4484 }
4485 target := &ret
4486 if err := gensupport.DecodeResponse(target, res); err != nil {
4487 return nil, err
4488 }
4489 return ret, nil
4490 }
4491
4492 type ProjectsHistoriesExecutionsListCall struct {
4493 s *Service
4494 projectId string
4495 historyId string
4496 urlParams_ gensupport.URLParams
4497 ifNoneMatch_ string
4498 ctx_ context.Context
4499 header_ http.Header
4500 }
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511 func (r *ProjectsHistoriesExecutionsService) List(projectId string, historyId string) *ProjectsHistoriesExecutionsListCall {
4512 c := &ProjectsHistoriesExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4513 c.projectId = projectId
4514 c.historyId = historyId
4515 return c
4516 }
4517
4518
4519
4520
4521 func (c *ProjectsHistoriesExecutionsListCall) PageSize(pageSize int64) *ProjectsHistoriesExecutionsListCall {
4522 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4523 return c
4524 }
4525
4526
4527
4528 func (c *ProjectsHistoriesExecutionsListCall) PageToken(pageToken string) *ProjectsHistoriesExecutionsListCall {
4529 c.urlParams_.Set("pageToken", pageToken)
4530 return c
4531 }
4532
4533
4534
4535
4536 func (c *ProjectsHistoriesExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsListCall {
4537 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4538 return c
4539 }
4540
4541
4542
4543
4544 func (c *ProjectsHistoriesExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsListCall {
4545 c.ifNoneMatch_ = entityTag
4546 return c
4547 }
4548
4549
4550 func (c *ProjectsHistoriesExecutionsListCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsListCall {
4551 c.ctx_ = ctx
4552 return c
4553 }
4554
4555
4556
4557 func (c *ProjectsHistoriesExecutionsListCall) Header() http.Header {
4558 if c.header_ == nil {
4559 c.header_ = make(http.Header)
4560 }
4561 return c.header_
4562 }
4563
4564 func (c *ProjectsHistoriesExecutionsListCall) doRequest(alt string) (*http.Response, error) {
4565 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4566 if c.ifNoneMatch_ != "" {
4567 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4568 }
4569 var body io.Reader = nil
4570 c.urlParams_.Set("alt", alt)
4571 c.urlParams_.Set("prettyPrint", "false")
4572 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions")
4573 urls += "?" + c.urlParams_.Encode()
4574 req, err := http.NewRequest("GET", urls, body)
4575 if err != nil {
4576 return nil, err
4577 }
4578 req.Header = reqHeaders
4579 googleapi.Expand(req.URL, map[string]string{
4580 "projectId": c.projectId,
4581 "historyId": c.historyId,
4582 })
4583 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4584 }
4585
4586
4587
4588
4589
4590
4591
4592 func (c *ProjectsHistoriesExecutionsListCall) Do(opts ...googleapi.CallOption) (*ListExecutionsResponse, error) {
4593 gensupport.SetOptions(c.urlParams_, opts...)
4594 res, err := c.doRequest("json")
4595 if res != nil && res.StatusCode == http.StatusNotModified {
4596 if res.Body != nil {
4597 res.Body.Close()
4598 }
4599 return nil, gensupport.WrapError(&googleapi.Error{
4600 Code: res.StatusCode,
4601 Header: res.Header,
4602 })
4603 }
4604 if err != nil {
4605 return nil, err
4606 }
4607 defer googleapi.CloseBody(res)
4608 if err := googleapi.CheckResponse(res); err != nil {
4609 return nil, gensupport.WrapError(err)
4610 }
4611 ret := &ListExecutionsResponse{
4612 ServerResponse: googleapi.ServerResponse{
4613 Header: res.Header,
4614 HTTPStatusCode: res.StatusCode,
4615 },
4616 }
4617 target := &ret
4618 if err := gensupport.DecodeResponse(target, res); err != nil {
4619 return nil, err
4620 }
4621 return ret, nil
4622 }
4623
4624
4625
4626
4627 func (c *ProjectsHistoriesExecutionsListCall) Pages(ctx context.Context, f func(*ListExecutionsResponse) error) error {
4628 c.ctx_ = ctx
4629 defer c.PageToken(c.urlParams_.Get("pageToken"))
4630 for {
4631 x, err := c.Do()
4632 if err != nil {
4633 return err
4634 }
4635 if err := f(x); err != nil {
4636 return err
4637 }
4638 if x.NextPageToken == "" {
4639 return nil
4640 }
4641 c.PageToken(x.NextPageToken)
4642 }
4643 }
4644
4645 type ProjectsHistoriesExecutionsPatchCall struct {
4646 s *Service
4647 projectId string
4648 historyId string
4649 executionId string
4650 execution *Execution
4651 urlParams_ gensupport.URLParams
4652 ctx_ context.Context
4653 header_ http.Header
4654 }
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665 func (r *ProjectsHistoriesExecutionsService) Patch(projectId string, historyId string, executionId string, execution *Execution) *ProjectsHistoriesExecutionsPatchCall {
4666 c := &ProjectsHistoriesExecutionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4667 c.projectId = projectId
4668 c.historyId = historyId
4669 c.executionId = executionId
4670 c.execution = execution
4671 return c
4672 }
4673
4674
4675
4676
4677 func (c *ProjectsHistoriesExecutionsPatchCall) RequestId(requestId string) *ProjectsHistoriesExecutionsPatchCall {
4678 c.urlParams_.Set("requestId", requestId)
4679 return c
4680 }
4681
4682
4683
4684
4685 func (c *ProjectsHistoriesExecutionsPatchCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsPatchCall {
4686 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4687 return c
4688 }
4689
4690
4691 func (c *ProjectsHistoriesExecutionsPatchCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsPatchCall {
4692 c.ctx_ = ctx
4693 return c
4694 }
4695
4696
4697
4698 func (c *ProjectsHistoriesExecutionsPatchCall) Header() http.Header {
4699 if c.header_ == nil {
4700 c.header_ = make(http.Header)
4701 }
4702 return c.header_
4703 }
4704
4705 func (c *ProjectsHistoriesExecutionsPatchCall) doRequest(alt string) (*http.Response, error) {
4706 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4707 var body io.Reader = nil
4708 body, err := googleapi.WithoutDataWrapper.JSONReader(c.execution)
4709 if err != nil {
4710 return nil, err
4711 }
4712 c.urlParams_.Set("alt", alt)
4713 c.urlParams_.Set("prettyPrint", "false")
4714 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}")
4715 urls += "?" + c.urlParams_.Encode()
4716 req, err := http.NewRequest("PATCH", urls, body)
4717 if err != nil {
4718 return nil, err
4719 }
4720 req.Header = reqHeaders
4721 googleapi.Expand(req.URL, map[string]string{
4722 "projectId": c.projectId,
4723 "historyId": c.historyId,
4724 "executionId": c.executionId,
4725 })
4726 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4727 }
4728
4729
4730
4731
4732
4733
4734 func (c *ProjectsHistoriesExecutionsPatchCall) Do(opts ...googleapi.CallOption) (*Execution, error) {
4735 gensupport.SetOptions(c.urlParams_, opts...)
4736 res, err := c.doRequest("json")
4737 if res != nil && res.StatusCode == http.StatusNotModified {
4738 if res.Body != nil {
4739 res.Body.Close()
4740 }
4741 return nil, gensupport.WrapError(&googleapi.Error{
4742 Code: res.StatusCode,
4743 Header: res.Header,
4744 })
4745 }
4746 if err != nil {
4747 return nil, err
4748 }
4749 defer googleapi.CloseBody(res)
4750 if err := googleapi.CheckResponse(res); err != nil {
4751 return nil, gensupport.WrapError(err)
4752 }
4753 ret := &Execution{
4754 ServerResponse: googleapi.ServerResponse{
4755 Header: res.Header,
4756 HTTPStatusCode: res.StatusCode,
4757 },
4758 }
4759 target := &ret
4760 if err := gensupport.DecodeResponse(target, res); err != nil {
4761 return nil, err
4762 }
4763 return ret, nil
4764 }
4765
4766 type ProjectsHistoriesExecutionsClustersGetCall struct {
4767 s *Service
4768 projectId string
4769 historyId string
4770 executionId string
4771 clusterId string
4772 urlParams_ gensupport.URLParams
4773 ifNoneMatch_ string
4774 ctx_ context.Context
4775 header_ http.Header
4776 }
4777
4778
4779
4780
4781
4782
4783
4784 func (r *ProjectsHistoriesExecutionsClustersService) Get(projectId string, historyId string, executionId string, clusterId string) *ProjectsHistoriesExecutionsClustersGetCall {
4785 c := &ProjectsHistoriesExecutionsClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4786 c.projectId = projectId
4787 c.historyId = historyId
4788 c.executionId = executionId
4789 c.clusterId = clusterId
4790 return c
4791 }
4792
4793
4794
4795
4796 func (c *ProjectsHistoriesExecutionsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsClustersGetCall {
4797 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4798 return c
4799 }
4800
4801
4802
4803
4804 func (c *ProjectsHistoriesExecutionsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsClustersGetCall {
4805 c.ifNoneMatch_ = entityTag
4806 return c
4807 }
4808
4809
4810 func (c *ProjectsHistoriesExecutionsClustersGetCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsClustersGetCall {
4811 c.ctx_ = ctx
4812 return c
4813 }
4814
4815
4816
4817 func (c *ProjectsHistoriesExecutionsClustersGetCall) Header() http.Header {
4818 if c.header_ == nil {
4819 c.header_ = make(http.Header)
4820 }
4821 return c.header_
4822 }
4823
4824 func (c *ProjectsHistoriesExecutionsClustersGetCall) doRequest(alt string) (*http.Response, error) {
4825 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4826 if c.ifNoneMatch_ != "" {
4827 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4828 }
4829 var body io.Reader = nil
4830 c.urlParams_.Set("alt", alt)
4831 c.urlParams_.Set("prettyPrint", "false")
4832 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}")
4833 urls += "?" + c.urlParams_.Encode()
4834 req, err := http.NewRequest("GET", urls, body)
4835 if err != nil {
4836 return nil, err
4837 }
4838 req.Header = reqHeaders
4839 googleapi.Expand(req.URL, map[string]string{
4840 "projectId": c.projectId,
4841 "historyId": c.historyId,
4842 "executionId": c.executionId,
4843 "clusterId": c.clusterId,
4844 })
4845 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4846 }
4847
4848
4849
4850
4851
4852
4853
4854 func (c *ProjectsHistoriesExecutionsClustersGetCall) Do(opts ...googleapi.CallOption) (*ScreenshotCluster, error) {
4855 gensupport.SetOptions(c.urlParams_, opts...)
4856 res, err := c.doRequest("json")
4857 if res != nil && res.StatusCode == http.StatusNotModified {
4858 if res.Body != nil {
4859 res.Body.Close()
4860 }
4861 return nil, gensupport.WrapError(&googleapi.Error{
4862 Code: res.StatusCode,
4863 Header: res.Header,
4864 })
4865 }
4866 if err != nil {
4867 return nil, err
4868 }
4869 defer googleapi.CloseBody(res)
4870 if err := googleapi.CheckResponse(res); err != nil {
4871 return nil, gensupport.WrapError(err)
4872 }
4873 ret := &ScreenshotCluster{
4874 ServerResponse: googleapi.ServerResponse{
4875 Header: res.Header,
4876 HTTPStatusCode: res.StatusCode,
4877 },
4878 }
4879 target := &ret
4880 if err := gensupport.DecodeResponse(target, res); err != nil {
4881 return nil, err
4882 }
4883 return ret, nil
4884 }
4885
4886 type ProjectsHistoriesExecutionsClustersListCall struct {
4887 s *Service
4888 projectId string
4889 historyId string
4890 executionId string
4891 urlParams_ gensupport.URLParams
4892 ifNoneMatch_ string
4893 ctx_ context.Context
4894 header_ http.Header
4895 }
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907 func (r *ProjectsHistoriesExecutionsClustersService) List(projectId string, historyId string, executionId string) *ProjectsHistoriesExecutionsClustersListCall {
4908 c := &ProjectsHistoriesExecutionsClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4909 c.projectId = projectId
4910 c.historyId = historyId
4911 c.executionId = executionId
4912 return c
4913 }
4914
4915
4916
4917
4918 func (c *ProjectsHistoriesExecutionsClustersListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsClustersListCall {
4919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4920 return c
4921 }
4922
4923
4924
4925
4926 func (c *ProjectsHistoriesExecutionsClustersListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsClustersListCall {
4927 c.ifNoneMatch_ = entityTag
4928 return c
4929 }
4930
4931
4932 func (c *ProjectsHistoriesExecutionsClustersListCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsClustersListCall {
4933 c.ctx_ = ctx
4934 return c
4935 }
4936
4937
4938
4939 func (c *ProjectsHistoriesExecutionsClustersListCall) Header() http.Header {
4940 if c.header_ == nil {
4941 c.header_ = make(http.Header)
4942 }
4943 return c.header_
4944 }
4945
4946 func (c *ProjectsHistoriesExecutionsClustersListCall) doRequest(alt string) (*http.Response, error) {
4947 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4948 if c.ifNoneMatch_ != "" {
4949 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4950 }
4951 var body io.Reader = nil
4952 c.urlParams_.Set("alt", alt)
4953 c.urlParams_.Set("prettyPrint", "false")
4954 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters")
4955 urls += "?" + c.urlParams_.Encode()
4956 req, err := http.NewRequest("GET", urls, body)
4957 if err != nil {
4958 return nil, err
4959 }
4960 req.Header = reqHeaders
4961 googleapi.Expand(req.URL, map[string]string{
4962 "projectId": c.projectId,
4963 "historyId": c.historyId,
4964 "executionId": c.executionId,
4965 })
4966 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4967 }
4968
4969
4970
4971
4972
4973
4974
4975 func (c *ProjectsHistoriesExecutionsClustersListCall) Do(opts ...googleapi.CallOption) (*ListScreenshotClustersResponse, error) {
4976 gensupport.SetOptions(c.urlParams_, opts...)
4977 res, err := c.doRequest("json")
4978 if res != nil && res.StatusCode == http.StatusNotModified {
4979 if res.Body != nil {
4980 res.Body.Close()
4981 }
4982 return nil, gensupport.WrapError(&googleapi.Error{
4983 Code: res.StatusCode,
4984 Header: res.Header,
4985 })
4986 }
4987 if err != nil {
4988 return nil, err
4989 }
4990 defer googleapi.CloseBody(res)
4991 if err := googleapi.CheckResponse(res); err != nil {
4992 return nil, gensupport.WrapError(err)
4993 }
4994 ret := &ListScreenshotClustersResponse{
4995 ServerResponse: googleapi.ServerResponse{
4996 Header: res.Header,
4997 HTTPStatusCode: res.StatusCode,
4998 },
4999 }
5000 target := &ret
5001 if err := gensupport.DecodeResponse(target, res); err != nil {
5002 return nil, err
5003 }
5004 return ret, nil
5005 }
5006
5007 type ProjectsHistoriesExecutionsEnvironmentsGetCall struct {
5008 s *Service
5009 projectId string
5010 historyId string
5011 executionId string
5012 environmentId string
5013 urlParams_ gensupport.URLParams
5014 ifNoneMatch_ string
5015 ctx_ context.Context
5016 header_ http.Header
5017 }
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 func (r *ProjectsHistoriesExecutionsEnvironmentsService) Get(projectId string, historyId string, executionId string, environmentId string) *ProjectsHistoriesExecutionsEnvironmentsGetCall {
5029 c := &ProjectsHistoriesExecutionsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5030 c.projectId = projectId
5031 c.historyId = historyId
5032 c.executionId = executionId
5033 c.environmentId = environmentId
5034 return c
5035 }
5036
5037
5038
5039
5040 func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsEnvironmentsGetCall {
5041 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5042 return c
5043 }
5044
5045
5046
5047
5048 func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsEnvironmentsGetCall {
5049 c.ifNoneMatch_ = entityTag
5050 return c
5051 }
5052
5053
5054 func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsEnvironmentsGetCall {
5055 c.ctx_ = ctx
5056 return c
5057 }
5058
5059
5060
5061 func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) Header() http.Header {
5062 if c.header_ == nil {
5063 c.header_ = make(http.Header)
5064 }
5065 return c.header_
5066 }
5067
5068 func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
5069 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5070 if c.ifNoneMatch_ != "" {
5071 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5072 }
5073 var body io.Reader = nil
5074 c.urlParams_.Set("alt", alt)
5075 c.urlParams_.Set("prettyPrint", "false")
5076 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments/{environmentId}")
5077 urls += "?" + c.urlParams_.Encode()
5078 req, err := http.NewRequest("GET", urls, body)
5079 if err != nil {
5080 return nil, err
5081 }
5082 req.Header = reqHeaders
5083 googleapi.Expand(req.URL, map[string]string{
5084 "projectId": c.projectId,
5085 "historyId": c.historyId,
5086 "executionId": c.executionId,
5087 "environmentId": c.environmentId,
5088 })
5089 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5090 }
5091
5092
5093
5094
5095
5096
5097 func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Environment, error) {
5098 gensupport.SetOptions(c.urlParams_, opts...)
5099 res, err := c.doRequest("json")
5100 if res != nil && res.StatusCode == http.StatusNotModified {
5101 if res.Body != nil {
5102 res.Body.Close()
5103 }
5104 return nil, gensupport.WrapError(&googleapi.Error{
5105 Code: res.StatusCode,
5106 Header: res.Header,
5107 })
5108 }
5109 if err != nil {
5110 return nil, err
5111 }
5112 defer googleapi.CloseBody(res)
5113 if err := googleapi.CheckResponse(res); err != nil {
5114 return nil, gensupport.WrapError(err)
5115 }
5116 ret := &Environment{
5117 ServerResponse: googleapi.ServerResponse{
5118 Header: res.Header,
5119 HTTPStatusCode: res.StatusCode,
5120 },
5121 }
5122 target := &ret
5123 if err := gensupport.DecodeResponse(target, res); err != nil {
5124 return nil, err
5125 }
5126 return ret, nil
5127 }
5128
5129 type ProjectsHistoriesExecutionsEnvironmentsListCall struct {
5130 s *Service
5131 projectId string
5132 historyId string
5133 executionId string
5134 urlParams_ gensupport.URLParams
5135 ifNoneMatch_ string
5136 ctx_ context.Context
5137 header_ http.Header
5138 }
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 func (r *ProjectsHistoriesExecutionsEnvironmentsService) List(projectId string, historyId string, executionId string) *ProjectsHistoriesExecutionsEnvironmentsListCall {
5150 c := &ProjectsHistoriesExecutionsEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5151 c.projectId = projectId
5152 c.historyId = historyId
5153 c.executionId = executionId
5154 return c
5155 }
5156
5157
5158
5159
5160 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) PageSize(pageSize int64) *ProjectsHistoriesExecutionsEnvironmentsListCall {
5161 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5162 return c
5163 }
5164
5165
5166
5167 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) PageToken(pageToken string) *ProjectsHistoriesExecutionsEnvironmentsListCall {
5168 c.urlParams_.Set("pageToken", pageToken)
5169 return c
5170 }
5171
5172
5173
5174
5175 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsEnvironmentsListCall {
5176 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5177 return c
5178 }
5179
5180
5181
5182
5183 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsEnvironmentsListCall {
5184 c.ifNoneMatch_ = entityTag
5185 return c
5186 }
5187
5188
5189 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsEnvironmentsListCall {
5190 c.ctx_ = ctx
5191 return c
5192 }
5193
5194
5195
5196 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) Header() http.Header {
5197 if c.header_ == nil {
5198 c.header_ = make(http.Header)
5199 }
5200 return c.header_
5201 }
5202
5203 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
5204 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5205 if c.ifNoneMatch_ != "" {
5206 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5207 }
5208 var body io.Reader = nil
5209 c.urlParams_.Set("alt", alt)
5210 c.urlParams_.Set("prettyPrint", "false")
5211 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments")
5212 urls += "?" + c.urlParams_.Encode()
5213 req, err := http.NewRequest("GET", urls, body)
5214 if err != nil {
5215 return nil, err
5216 }
5217 req.Header = reqHeaders
5218 googleapi.Expand(req.URL, map[string]string{
5219 "projectId": c.projectId,
5220 "historyId": c.historyId,
5221 "executionId": c.executionId,
5222 })
5223 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5224 }
5225
5226
5227
5228
5229
5230
5231
5232 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*ListEnvironmentsResponse, error) {
5233 gensupport.SetOptions(c.urlParams_, opts...)
5234 res, err := c.doRequest("json")
5235 if res != nil && res.StatusCode == http.StatusNotModified {
5236 if res.Body != nil {
5237 res.Body.Close()
5238 }
5239 return nil, gensupport.WrapError(&googleapi.Error{
5240 Code: res.StatusCode,
5241 Header: res.Header,
5242 })
5243 }
5244 if err != nil {
5245 return nil, err
5246 }
5247 defer googleapi.CloseBody(res)
5248 if err := googleapi.CheckResponse(res); err != nil {
5249 return nil, gensupport.WrapError(err)
5250 }
5251 ret := &ListEnvironmentsResponse{
5252 ServerResponse: googleapi.ServerResponse{
5253 Header: res.Header,
5254 HTTPStatusCode: res.StatusCode,
5255 },
5256 }
5257 target := &ret
5258 if err := gensupport.DecodeResponse(target, res); err != nil {
5259 return nil, err
5260 }
5261 return ret, nil
5262 }
5263
5264
5265
5266
5267 func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) Pages(ctx context.Context, f func(*ListEnvironmentsResponse) error) error {
5268 c.ctx_ = ctx
5269 defer c.PageToken(c.urlParams_.Get("pageToken"))
5270 for {
5271 x, err := c.Do()
5272 if err != nil {
5273 return err
5274 }
5275 if err := f(x); err != nil {
5276 return err
5277 }
5278 if x.NextPageToken == "" {
5279 return nil
5280 }
5281 c.PageToken(x.NextPageToken)
5282 }
5283 }
5284
5285 type ProjectsHistoriesExecutionsStepsAccessibilityClustersCall struct {
5286 s *Service
5287 name string
5288 urlParams_ gensupport.URLParams
5289 ifNoneMatch_ string
5290 ctx_ context.Context
5291 header_ http.Header
5292 }
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304 func (r *ProjectsHistoriesExecutionsStepsService) AccessibilityClusters(name string) *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall {
5305 c := &ProjectsHistoriesExecutionsStepsAccessibilityClustersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5306 c.name = name
5307 return c
5308 }
5309
5310
5311
5312
5313
5314
5315 func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) Locale(locale string) *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall {
5316 c.urlParams_.Set("locale", locale)
5317 return c
5318 }
5319
5320
5321
5322
5323 func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall {
5324 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5325 return c
5326 }
5327
5328
5329
5330
5331 func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall {
5332 c.ifNoneMatch_ = entityTag
5333 return c
5334 }
5335
5336
5337 func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall {
5338 c.ctx_ = ctx
5339 return c
5340 }
5341
5342
5343
5344 func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) Header() http.Header {
5345 if c.header_ == nil {
5346 c.header_ = make(http.Header)
5347 }
5348 return c.header_
5349 }
5350
5351 func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) doRequest(alt string) (*http.Response, error) {
5352 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5353 if c.ifNoneMatch_ != "" {
5354 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5355 }
5356 var body io.Reader = nil
5357 c.urlParams_.Set("alt", alt)
5358 c.urlParams_.Set("prettyPrint", "false")
5359 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/{+name}:accessibilityClusters")
5360 urls += "?" + c.urlParams_.Encode()
5361 req, err := http.NewRequest("GET", urls, body)
5362 if err != nil {
5363 return nil, err
5364 }
5365 req.Header = reqHeaders
5366 googleapi.Expand(req.URL, map[string]string{
5367 "name": c.name,
5368 })
5369 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5370 }
5371
5372
5373
5374
5375
5376
5377
5378 func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) Do(opts ...googleapi.CallOption) (*ListStepAccessibilityClustersResponse, error) {
5379 gensupport.SetOptions(c.urlParams_, opts...)
5380 res, err := c.doRequest("json")
5381 if res != nil && res.StatusCode == http.StatusNotModified {
5382 if res.Body != nil {
5383 res.Body.Close()
5384 }
5385 return nil, gensupport.WrapError(&googleapi.Error{
5386 Code: res.StatusCode,
5387 Header: res.Header,
5388 })
5389 }
5390 if err != nil {
5391 return nil, err
5392 }
5393 defer googleapi.CloseBody(res)
5394 if err := googleapi.CheckResponse(res); err != nil {
5395 return nil, gensupport.WrapError(err)
5396 }
5397 ret := &ListStepAccessibilityClustersResponse{
5398 ServerResponse: googleapi.ServerResponse{
5399 Header: res.Header,
5400 HTTPStatusCode: res.StatusCode,
5401 },
5402 }
5403 target := &ret
5404 if err := gensupport.DecodeResponse(target, res); err != nil {
5405 return nil, err
5406 }
5407 return ret, nil
5408 }
5409
5410 type ProjectsHistoriesExecutionsStepsCreateCall struct {
5411 s *Service
5412 projectId string
5413 historyId string
5414 executionId string
5415 step *Step
5416 urlParams_ gensupport.URLParams
5417 ctx_ context.Context
5418 header_ http.Header
5419 }
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 func (r *ProjectsHistoriesExecutionsStepsService) Create(projectId string, historyId string, executionId string, step *Step) *ProjectsHistoriesExecutionsStepsCreateCall {
5431 c := &ProjectsHistoriesExecutionsStepsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5432 c.projectId = projectId
5433 c.historyId = historyId
5434 c.executionId = executionId
5435 c.step = step
5436 return c
5437 }
5438
5439
5440
5441
5442 func (c *ProjectsHistoriesExecutionsStepsCreateCall) RequestId(requestId string) *ProjectsHistoriesExecutionsStepsCreateCall {
5443 c.urlParams_.Set("requestId", requestId)
5444 return c
5445 }
5446
5447
5448
5449
5450 func (c *ProjectsHistoriesExecutionsStepsCreateCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsCreateCall {
5451 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5452 return c
5453 }
5454
5455
5456 func (c *ProjectsHistoriesExecutionsStepsCreateCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsCreateCall {
5457 c.ctx_ = ctx
5458 return c
5459 }
5460
5461
5462
5463 func (c *ProjectsHistoriesExecutionsStepsCreateCall) Header() http.Header {
5464 if c.header_ == nil {
5465 c.header_ = make(http.Header)
5466 }
5467 return c.header_
5468 }
5469
5470 func (c *ProjectsHistoriesExecutionsStepsCreateCall) doRequest(alt string) (*http.Response, error) {
5471 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5472 var body io.Reader = nil
5473 body, err := googleapi.WithoutDataWrapper.JSONReader(c.step)
5474 if err != nil {
5475 return nil, err
5476 }
5477 c.urlParams_.Set("alt", alt)
5478 c.urlParams_.Set("prettyPrint", "false")
5479 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps")
5480 urls += "?" + c.urlParams_.Encode()
5481 req, err := http.NewRequest("POST", urls, body)
5482 if err != nil {
5483 return nil, err
5484 }
5485 req.Header = reqHeaders
5486 googleapi.Expand(req.URL, map[string]string{
5487 "projectId": c.projectId,
5488 "historyId": c.historyId,
5489 "executionId": c.executionId,
5490 })
5491 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5492 }
5493
5494
5495
5496
5497
5498
5499 func (c *ProjectsHistoriesExecutionsStepsCreateCall) Do(opts ...googleapi.CallOption) (*Step, error) {
5500 gensupport.SetOptions(c.urlParams_, opts...)
5501 res, err := c.doRequest("json")
5502 if res != nil && res.StatusCode == http.StatusNotModified {
5503 if res.Body != nil {
5504 res.Body.Close()
5505 }
5506 return nil, gensupport.WrapError(&googleapi.Error{
5507 Code: res.StatusCode,
5508 Header: res.Header,
5509 })
5510 }
5511 if err != nil {
5512 return nil, err
5513 }
5514 defer googleapi.CloseBody(res)
5515 if err := googleapi.CheckResponse(res); err != nil {
5516 return nil, gensupport.WrapError(err)
5517 }
5518 ret := &Step{
5519 ServerResponse: googleapi.ServerResponse{
5520 Header: res.Header,
5521 HTTPStatusCode: res.StatusCode,
5522 },
5523 }
5524 target := &ret
5525 if err := gensupport.DecodeResponse(target, res); err != nil {
5526 return nil, err
5527 }
5528 return ret, nil
5529 }
5530
5531 type ProjectsHistoriesExecutionsStepsGetCall struct {
5532 s *Service
5533 projectId string
5534 historyId string
5535 executionId string
5536 stepId string
5537 urlParams_ gensupport.URLParams
5538 ifNoneMatch_ string
5539 ctx_ context.Context
5540 header_ http.Header
5541 }
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 func (r *ProjectsHistoriesExecutionsStepsService) Get(projectId string, historyId string, executionId string, stepId string) *ProjectsHistoriesExecutionsStepsGetCall {
5553 c := &ProjectsHistoriesExecutionsStepsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5554 c.projectId = projectId
5555 c.historyId = historyId
5556 c.executionId = executionId
5557 c.stepId = stepId
5558 return c
5559 }
5560
5561
5562
5563
5564 func (c *ProjectsHistoriesExecutionsStepsGetCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsGetCall {
5565 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5566 return c
5567 }
5568
5569
5570
5571
5572 func (c *ProjectsHistoriesExecutionsStepsGetCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsGetCall {
5573 c.ifNoneMatch_ = entityTag
5574 return c
5575 }
5576
5577
5578 func (c *ProjectsHistoriesExecutionsStepsGetCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsGetCall {
5579 c.ctx_ = ctx
5580 return c
5581 }
5582
5583
5584
5585 func (c *ProjectsHistoriesExecutionsStepsGetCall) Header() http.Header {
5586 if c.header_ == nil {
5587 c.header_ = make(http.Header)
5588 }
5589 return c.header_
5590 }
5591
5592 func (c *ProjectsHistoriesExecutionsStepsGetCall) doRequest(alt string) (*http.Response, error) {
5593 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5594 if c.ifNoneMatch_ != "" {
5595 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5596 }
5597 var body io.Reader = nil
5598 c.urlParams_.Set("alt", alt)
5599 c.urlParams_.Set("prettyPrint", "false")
5600 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}")
5601 urls += "?" + c.urlParams_.Encode()
5602 req, err := http.NewRequest("GET", urls, body)
5603 if err != nil {
5604 return nil, err
5605 }
5606 req.Header = reqHeaders
5607 googleapi.Expand(req.URL, map[string]string{
5608 "projectId": c.projectId,
5609 "historyId": c.historyId,
5610 "executionId": c.executionId,
5611 "stepId": c.stepId,
5612 })
5613 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5614 }
5615
5616
5617
5618
5619
5620
5621 func (c *ProjectsHistoriesExecutionsStepsGetCall) Do(opts ...googleapi.CallOption) (*Step, error) {
5622 gensupport.SetOptions(c.urlParams_, opts...)
5623 res, err := c.doRequest("json")
5624 if res != nil && res.StatusCode == http.StatusNotModified {
5625 if res.Body != nil {
5626 res.Body.Close()
5627 }
5628 return nil, gensupport.WrapError(&googleapi.Error{
5629 Code: res.StatusCode,
5630 Header: res.Header,
5631 })
5632 }
5633 if err != nil {
5634 return nil, err
5635 }
5636 defer googleapi.CloseBody(res)
5637 if err := googleapi.CheckResponse(res); err != nil {
5638 return nil, gensupport.WrapError(err)
5639 }
5640 ret := &Step{
5641 ServerResponse: googleapi.ServerResponse{
5642 Header: res.Header,
5643 HTTPStatusCode: res.StatusCode,
5644 },
5645 }
5646 target := &ret
5647 if err := gensupport.DecodeResponse(target, res); err != nil {
5648 return nil, err
5649 }
5650 return ret, nil
5651 }
5652
5653 type ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall struct {
5654 s *Service
5655 projectId string
5656 historyId string
5657 executionId string
5658 stepId string
5659 urlParams_ gensupport.URLParams
5660 ifNoneMatch_ string
5661 ctx_ context.Context
5662 header_ http.Header
5663 }
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 func (r *ProjectsHistoriesExecutionsStepsService) GetPerfMetricsSummary(projectId string, historyId string, executionId string, stepId string) *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall {
5674 c := &ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5675 c.projectId = projectId
5676 c.historyId = historyId
5677 c.executionId = executionId
5678 c.stepId = stepId
5679 return c
5680 }
5681
5682
5683
5684
5685 func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall {
5686 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5687 return c
5688 }
5689
5690
5691
5692
5693 func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall {
5694 c.ifNoneMatch_ = entityTag
5695 return c
5696 }
5697
5698
5699 func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall {
5700 c.ctx_ = ctx
5701 return c
5702 }
5703
5704
5705
5706 func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) Header() http.Header {
5707 if c.header_ == nil {
5708 c.header_ = make(http.Header)
5709 }
5710 return c.header_
5711 }
5712
5713 func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) doRequest(alt string) (*http.Response, error) {
5714 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5715 if c.ifNoneMatch_ != "" {
5716 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5717 }
5718 var body io.Reader = nil
5719 c.urlParams_.Set("alt", alt)
5720 c.urlParams_.Set("prettyPrint", "false")
5721 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary")
5722 urls += "?" + c.urlParams_.Encode()
5723 req, err := http.NewRequest("GET", urls, body)
5724 if err != nil {
5725 return nil, err
5726 }
5727 req.Header = reqHeaders
5728 googleapi.Expand(req.URL, map[string]string{
5729 "projectId": c.projectId,
5730 "historyId": c.historyId,
5731 "executionId": c.executionId,
5732 "stepId": c.stepId,
5733 })
5734 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5735 }
5736
5737
5738
5739
5740
5741
5742
5743 func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) Do(opts ...googleapi.CallOption) (*PerfMetricsSummary, error) {
5744 gensupport.SetOptions(c.urlParams_, opts...)
5745 res, err := c.doRequest("json")
5746 if res != nil && res.StatusCode == http.StatusNotModified {
5747 if res.Body != nil {
5748 res.Body.Close()
5749 }
5750 return nil, gensupport.WrapError(&googleapi.Error{
5751 Code: res.StatusCode,
5752 Header: res.Header,
5753 })
5754 }
5755 if err != nil {
5756 return nil, err
5757 }
5758 defer googleapi.CloseBody(res)
5759 if err := googleapi.CheckResponse(res); err != nil {
5760 return nil, gensupport.WrapError(err)
5761 }
5762 ret := &PerfMetricsSummary{
5763 ServerResponse: googleapi.ServerResponse{
5764 Header: res.Header,
5765 HTTPStatusCode: res.StatusCode,
5766 },
5767 }
5768 target := &ret
5769 if err := gensupport.DecodeResponse(target, res); err != nil {
5770 return nil, err
5771 }
5772 return ret, nil
5773 }
5774
5775 type ProjectsHistoriesExecutionsStepsListCall struct {
5776 s *Service
5777 projectId string
5778 historyId string
5779 executionId string
5780 urlParams_ gensupport.URLParams
5781 ifNoneMatch_ string
5782 ctx_ context.Context
5783 header_ http.Header
5784 }
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798 func (r *ProjectsHistoriesExecutionsStepsService) List(projectId string, historyId string, executionId string) *ProjectsHistoriesExecutionsStepsListCall {
5799 c := &ProjectsHistoriesExecutionsStepsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5800 c.projectId = projectId
5801 c.historyId = historyId
5802 c.executionId = executionId
5803 return c
5804 }
5805
5806
5807
5808
5809 func (c *ProjectsHistoriesExecutionsStepsListCall) PageSize(pageSize int64) *ProjectsHistoriesExecutionsStepsListCall {
5810 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5811 return c
5812 }
5813
5814
5815
5816 func (c *ProjectsHistoriesExecutionsStepsListCall) PageToken(pageToken string) *ProjectsHistoriesExecutionsStepsListCall {
5817 c.urlParams_.Set("pageToken", pageToken)
5818 return c
5819 }
5820
5821
5822
5823
5824 func (c *ProjectsHistoriesExecutionsStepsListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsListCall {
5825 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5826 return c
5827 }
5828
5829
5830
5831
5832 func (c *ProjectsHistoriesExecutionsStepsListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsListCall {
5833 c.ifNoneMatch_ = entityTag
5834 return c
5835 }
5836
5837
5838 func (c *ProjectsHistoriesExecutionsStepsListCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsListCall {
5839 c.ctx_ = ctx
5840 return c
5841 }
5842
5843
5844
5845 func (c *ProjectsHistoriesExecutionsStepsListCall) Header() http.Header {
5846 if c.header_ == nil {
5847 c.header_ = make(http.Header)
5848 }
5849 return c.header_
5850 }
5851
5852 func (c *ProjectsHistoriesExecutionsStepsListCall) doRequest(alt string) (*http.Response, error) {
5853 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5854 if c.ifNoneMatch_ != "" {
5855 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5856 }
5857 var body io.Reader = nil
5858 c.urlParams_.Set("alt", alt)
5859 c.urlParams_.Set("prettyPrint", "false")
5860 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps")
5861 urls += "?" + c.urlParams_.Encode()
5862 req, err := http.NewRequest("GET", urls, body)
5863 if err != nil {
5864 return nil, err
5865 }
5866 req.Header = reqHeaders
5867 googleapi.Expand(req.URL, map[string]string{
5868 "projectId": c.projectId,
5869 "historyId": c.historyId,
5870 "executionId": c.executionId,
5871 })
5872 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5873 }
5874
5875
5876
5877
5878
5879
5880
5881 func (c *ProjectsHistoriesExecutionsStepsListCall) Do(opts ...googleapi.CallOption) (*ListStepsResponse, error) {
5882 gensupport.SetOptions(c.urlParams_, opts...)
5883 res, err := c.doRequest("json")
5884 if res != nil && res.StatusCode == http.StatusNotModified {
5885 if res.Body != nil {
5886 res.Body.Close()
5887 }
5888 return nil, gensupport.WrapError(&googleapi.Error{
5889 Code: res.StatusCode,
5890 Header: res.Header,
5891 })
5892 }
5893 if err != nil {
5894 return nil, err
5895 }
5896 defer googleapi.CloseBody(res)
5897 if err := googleapi.CheckResponse(res); err != nil {
5898 return nil, gensupport.WrapError(err)
5899 }
5900 ret := &ListStepsResponse{
5901 ServerResponse: googleapi.ServerResponse{
5902 Header: res.Header,
5903 HTTPStatusCode: res.StatusCode,
5904 },
5905 }
5906 target := &ret
5907 if err := gensupport.DecodeResponse(target, res); err != nil {
5908 return nil, err
5909 }
5910 return ret, nil
5911 }
5912
5913
5914
5915
5916 func (c *ProjectsHistoriesExecutionsStepsListCall) Pages(ctx context.Context, f func(*ListStepsResponse) error) error {
5917 c.ctx_ = ctx
5918 defer c.PageToken(c.urlParams_.Get("pageToken"))
5919 for {
5920 x, err := c.Do()
5921 if err != nil {
5922 return err
5923 }
5924 if err := f(x); err != nil {
5925 return err
5926 }
5927 if x.NextPageToken == "" {
5928 return nil
5929 }
5930 c.PageToken(x.NextPageToken)
5931 }
5932 }
5933
5934 type ProjectsHistoriesExecutionsStepsPatchCall struct {
5935 s *Service
5936 projectId string
5937 historyId string
5938 executionId string
5939 stepId string
5940 step *Step
5941 urlParams_ gensupport.URLParams
5942 ctx_ context.Context
5943 header_ http.Header
5944 }
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958 func (r *ProjectsHistoriesExecutionsStepsService) Patch(projectId string, historyId string, executionId string, stepId string, step *Step) *ProjectsHistoriesExecutionsStepsPatchCall {
5959 c := &ProjectsHistoriesExecutionsStepsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5960 c.projectId = projectId
5961 c.historyId = historyId
5962 c.executionId = executionId
5963 c.stepId = stepId
5964 c.step = step
5965 return c
5966 }
5967
5968
5969
5970
5971 func (c *ProjectsHistoriesExecutionsStepsPatchCall) RequestId(requestId string) *ProjectsHistoriesExecutionsStepsPatchCall {
5972 c.urlParams_.Set("requestId", requestId)
5973 return c
5974 }
5975
5976
5977
5978
5979 func (c *ProjectsHistoriesExecutionsStepsPatchCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsPatchCall {
5980 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5981 return c
5982 }
5983
5984
5985 func (c *ProjectsHistoriesExecutionsStepsPatchCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsPatchCall {
5986 c.ctx_ = ctx
5987 return c
5988 }
5989
5990
5991
5992 func (c *ProjectsHistoriesExecutionsStepsPatchCall) Header() http.Header {
5993 if c.header_ == nil {
5994 c.header_ = make(http.Header)
5995 }
5996 return c.header_
5997 }
5998
5999 func (c *ProjectsHistoriesExecutionsStepsPatchCall) doRequest(alt string) (*http.Response, error) {
6000 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6001 var body io.Reader = nil
6002 body, err := googleapi.WithoutDataWrapper.JSONReader(c.step)
6003 if err != nil {
6004 return nil, err
6005 }
6006 c.urlParams_.Set("alt", alt)
6007 c.urlParams_.Set("prettyPrint", "false")
6008 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}")
6009 urls += "?" + c.urlParams_.Encode()
6010 req, err := http.NewRequest("PATCH", urls, body)
6011 if err != nil {
6012 return nil, err
6013 }
6014 req.Header = reqHeaders
6015 googleapi.Expand(req.URL, map[string]string{
6016 "projectId": c.projectId,
6017 "historyId": c.historyId,
6018 "executionId": c.executionId,
6019 "stepId": c.stepId,
6020 })
6021 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6022 }
6023
6024
6025
6026
6027
6028
6029 func (c *ProjectsHistoriesExecutionsStepsPatchCall) Do(opts ...googleapi.CallOption) (*Step, error) {
6030 gensupport.SetOptions(c.urlParams_, opts...)
6031 res, err := c.doRequest("json")
6032 if res != nil && res.StatusCode == http.StatusNotModified {
6033 if res.Body != nil {
6034 res.Body.Close()
6035 }
6036 return nil, gensupport.WrapError(&googleapi.Error{
6037 Code: res.StatusCode,
6038 Header: res.Header,
6039 })
6040 }
6041 if err != nil {
6042 return nil, err
6043 }
6044 defer googleapi.CloseBody(res)
6045 if err := googleapi.CheckResponse(res); err != nil {
6046 return nil, gensupport.WrapError(err)
6047 }
6048 ret := &Step{
6049 ServerResponse: googleapi.ServerResponse{
6050 Header: res.Header,
6051 HTTPStatusCode: res.StatusCode,
6052 },
6053 }
6054 target := &ret
6055 if err := gensupport.DecodeResponse(target, res); err != nil {
6056 return nil, err
6057 }
6058 return ret, nil
6059 }
6060
6061 type ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall struct {
6062 s *Service
6063 projectId string
6064 historyId string
6065 executionId string
6066 stepId string
6067 publishxunitxmlfilesrequest *PublishXunitXmlFilesRequest
6068 urlParams_ gensupport.URLParams
6069 ctx_ context.Context
6070 header_ http.Header
6071 }
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 func (r *ProjectsHistoriesExecutionsStepsService) PublishXunitXmlFiles(projectId string, historyId string, executionId string, stepId string, publishxunitxmlfilesrequest *PublishXunitXmlFilesRequest) *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall {
6085 c := &ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6086 c.projectId = projectId
6087 c.historyId = historyId
6088 c.executionId = executionId
6089 c.stepId = stepId
6090 c.publishxunitxmlfilesrequest = publishxunitxmlfilesrequest
6091 return c
6092 }
6093
6094
6095
6096
6097 func (c *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall {
6098 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6099 return c
6100 }
6101
6102
6103 func (c *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall {
6104 c.ctx_ = ctx
6105 return c
6106 }
6107
6108
6109
6110 func (c *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall) Header() http.Header {
6111 if c.header_ == nil {
6112 c.header_ = make(http.Header)
6113 }
6114 return c.header_
6115 }
6116
6117 func (c *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall) doRequest(alt string) (*http.Response, error) {
6118 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6119 var body io.Reader = nil
6120 body, err := googleapi.WithoutDataWrapper.JSONReader(c.publishxunitxmlfilesrequest)
6121 if err != nil {
6122 return nil, err
6123 }
6124 c.urlParams_.Set("alt", alt)
6125 c.urlParams_.Set("prettyPrint", "false")
6126 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles")
6127 urls += "?" + c.urlParams_.Encode()
6128 req, err := http.NewRequest("POST", urls, body)
6129 if err != nil {
6130 return nil, err
6131 }
6132 req.Header = reqHeaders
6133 googleapi.Expand(req.URL, map[string]string{
6134 "projectId": c.projectId,
6135 "historyId": c.historyId,
6136 "executionId": c.executionId,
6137 "stepId": c.stepId,
6138 })
6139 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6140 }
6141
6142
6143
6144
6145
6146
6147 func (c *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall) Do(opts ...googleapi.CallOption) (*Step, error) {
6148 gensupport.SetOptions(c.urlParams_, opts...)
6149 res, err := c.doRequest("json")
6150 if res != nil && res.StatusCode == http.StatusNotModified {
6151 if res.Body != nil {
6152 res.Body.Close()
6153 }
6154 return nil, gensupport.WrapError(&googleapi.Error{
6155 Code: res.StatusCode,
6156 Header: res.Header,
6157 })
6158 }
6159 if err != nil {
6160 return nil, err
6161 }
6162 defer googleapi.CloseBody(res)
6163 if err := googleapi.CheckResponse(res); err != nil {
6164 return nil, gensupport.WrapError(err)
6165 }
6166 ret := &Step{
6167 ServerResponse: googleapi.ServerResponse{
6168 Header: res.Header,
6169 HTTPStatusCode: res.StatusCode,
6170 },
6171 }
6172 target := &ret
6173 if err := gensupport.DecodeResponse(target, res); err != nil {
6174 return nil, err
6175 }
6176 return ret, nil
6177 }
6178
6179 type ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall struct {
6180 s *Service
6181 projectId string
6182 historyId string
6183 executionId string
6184 stepId string
6185 perfmetricssummary *PerfMetricsSummary
6186 urlParams_ gensupport.URLParams
6187 ctx_ context.Context
6188 header_ http.Header
6189 }
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 func (r *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryService) Create(projectId string, historyId string, executionId string, stepId string, perfmetricssummary *PerfMetricsSummary) *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall {
6200 c := &ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6201 c.projectId = projectId
6202 c.historyId = historyId
6203 c.executionId = executionId
6204 c.stepId = stepId
6205 c.perfmetricssummary = perfmetricssummary
6206 return c
6207 }
6208
6209
6210
6211
6212 func (c *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall {
6213 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6214 return c
6215 }
6216
6217
6218 func (c *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall {
6219 c.ctx_ = ctx
6220 return c
6221 }
6222
6223
6224
6225 func (c *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall) Header() http.Header {
6226 if c.header_ == nil {
6227 c.header_ = make(http.Header)
6228 }
6229 return c.header_
6230 }
6231
6232 func (c *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall) doRequest(alt string) (*http.Response, error) {
6233 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6234 var body io.Reader = nil
6235 body, err := googleapi.WithoutDataWrapper.JSONReader(c.perfmetricssummary)
6236 if err != nil {
6237 return nil, err
6238 }
6239 c.urlParams_.Set("alt", alt)
6240 c.urlParams_.Set("prettyPrint", "false")
6241 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary")
6242 urls += "?" + c.urlParams_.Encode()
6243 req, err := http.NewRequest("POST", urls, body)
6244 if err != nil {
6245 return nil, err
6246 }
6247 req.Header = reqHeaders
6248 googleapi.Expand(req.URL, map[string]string{
6249 "projectId": c.projectId,
6250 "historyId": c.historyId,
6251 "executionId": c.executionId,
6252 "stepId": c.stepId,
6253 })
6254 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6255 }
6256
6257
6258
6259
6260
6261
6262
6263 func (c *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall) Do(opts ...googleapi.CallOption) (*PerfMetricsSummary, error) {
6264 gensupport.SetOptions(c.urlParams_, opts...)
6265 res, err := c.doRequest("json")
6266 if res != nil && res.StatusCode == http.StatusNotModified {
6267 if res.Body != nil {
6268 res.Body.Close()
6269 }
6270 return nil, gensupport.WrapError(&googleapi.Error{
6271 Code: res.StatusCode,
6272 Header: res.Header,
6273 })
6274 }
6275 if err != nil {
6276 return nil, err
6277 }
6278 defer googleapi.CloseBody(res)
6279 if err := googleapi.CheckResponse(res); err != nil {
6280 return nil, gensupport.WrapError(err)
6281 }
6282 ret := &PerfMetricsSummary{
6283 ServerResponse: googleapi.ServerResponse{
6284 Header: res.Header,
6285 HTTPStatusCode: res.StatusCode,
6286 },
6287 }
6288 target := &ret
6289 if err := gensupport.DecodeResponse(target, res); err != nil {
6290 return nil, err
6291 }
6292 return ret, nil
6293 }
6294
6295 type ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall struct {
6296 s *Service
6297 projectId string
6298 historyId string
6299 executionId string
6300 stepId string
6301 perfsampleseries *PerfSampleSeries
6302 urlParams_ gensupport.URLParams
6303 ctx_ context.Context
6304 header_ http.Header
6305 }
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 func (r *ProjectsHistoriesExecutionsStepsPerfSampleSeriesService) Create(projectId string, historyId string, executionId string, stepId string, perfsampleseries *PerfSampleSeries) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall {
6316 c := &ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6317 c.projectId = projectId
6318 c.historyId = historyId
6319 c.executionId = executionId
6320 c.stepId = stepId
6321 c.perfsampleseries = perfsampleseries
6322 return c
6323 }
6324
6325
6326
6327
6328 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall {
6329 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6330 return c
6331 }
6332
6333
6334 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall {
6335 c.ctx_ = ctx
6336 return c
6337 }
6338
6339
6340
6341 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall) Header() http.Header {
6342 if c.header_ == nil {
6343 c.header_ = make(http.Header)
6344 }
6345 return c.header_
6346 }
6347
6348 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall) doRequest(alt string) (*http.Response, error) {
6349 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6350 var body io.Reader = nil
6351 body, err := googleapi.WithoutDataWrapper.JSONReader(c.perfsampleseries)
6352 if err != nil {
6353 return nil, err
6354 }
6355 c.urlParams_.Set("alt", alt)
6356 c.urlParams_.Set("prettyPrint", "false")
6357 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries")
6358 urls += "?" + c.urlParams_.Encode()
6359 req, err := http.NewRequest("POST", urls, body)
6360 if err != nil {
6361 return nil, err
6362 }
6363 req.Header = reqHeaders
6364 googleapi.Expand(req.URL, map[string]string{
6365 "projectId": c.projectId,
6366 "historyId": c.historyId,
6367 "executionId": c.executionId,
6368 "stepId": c.stepId,
6369 })
6370 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6371 }
6372
6373
6374
6375
6376
6377
6378
6379 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall) Do(opts ...googleapi.CallOption) (*PerfSampleSeries, error) {
6380 gensupport.SetOptions(c.urlParams_, opts...)
6381 res, err := c.doRequest("json")
6382 if res != nil && res.StatusCode == http.StatusNotModified {
6383 if res.Body != nil {
6384 res.Body.Close()
6385 }
6386 return nil, gensupport.WrapError(&googleapi.Error{
6387 Code: res.StatusCode,
6388 Header: res.Header,
6389 })
6390 }
6391 if err != nil {
6392 return nil, err
6393 }
6394 defer googleapi.CloseBody(res)
6395 if err := googleapi.CheckResponse(res); err != nil {
6396 return nil, gensupport.WrapError(err)
6397 }
6398 ret := &PerfSampleSeries{
6399 ServerResponse: googleapi.ServerResponse{
6400 Header: res.Header,
6401 HTTPStatusCode: res.StatusCode,
6402 },
6403 }
6404 target := &ret
6405 if err := gensupport.DecodeResponse(target, res); err != nil {
6406 return nil, err
6407 }
6408 return ret, nil
6409 }
6410
6411 type ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall struct {
6412 s *Service
6413 projectId string
6414 historyId string
6415 executionId string
6416 stepId string
6417 sampleSeriesId string
6418 urlParams_ gensupport.URLParams
6419 ifNoneMatch_ string
6420 ctx_ context.Context
6421 header_ http.Header
6422 }
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432 func (r *ProjectsHistoriesExecutionsStepsPerfSampleSeriesService) Get(projectId string, historyId string, executionId string, stepId string, sampleSeriesId string) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall {
6433 c := &ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6434 c.projectId = projectId
6435 c.historyId = historyId
6436 c.executionId = executionId
6437 c.stepId = stepId
6438 c.sampleSeriesId = sampleSeriesId
6439 return c
6440 }
6441
6442
6443
6444
6445 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall {
6446 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6447 return c
6448 }
6449
6450
6451
6452
6453 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall {
6454 c.ifNoneMatch_ = entityTag
6455 return c
6456 }
6457
6458
6459 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall {
6460 c.ctx_ = ctx
6461 return c
6462 }
6463
6464
6465
6466 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) Header() http.Header {
6467 if c.header_ == nil {
6468 c.header_ = make(http.Header)
6469 }
6470 return c.header_
6471 }
6472
6473 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) doRequest(alt string) (*http.Response, error) {
6474 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6475 if c.ifNoneMatch_ != "" {
6476 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6477 }
6478 var body io.Reader = nil
6479 c.urlParams_.Set("alt", alt)
6480 c.urlParams_.Set("prettyPrint", "false")
6481 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}")
6482 urls += "?" + c.urlParams_.Encode()
6483 req, err := http.NewRequest("GET", urls, body)
6484 if err != nil {
6485 return nil, err
6486 }
6487 req.Header = reqHeaders
6488 googleapi.Expand(req.URL, map[string]string{
6489 "projectId": c.projectId,
6490 "historyId": c.historyId,
6491 "executionId": c.executionId,
6492 "stepId": c.stepId,
6493 "sampleSeriesId": c.sampleSeriesId,
6494 })
6495 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6496 }
6497
6498
6499
6500
6501
6502
6503
6504 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) Do(opts ...googleapi.CallOption) (*PerfSampleSeries, error) {
6505 gensupport.SetOptions(c.urlParams_, opts...)
6506 res, err := c.doRequest("json")
6507 if res != nil && res.StatusCode == http.StatusNotModified {
6508 if res.Body != nil {
6509 res.Body.Close()
6510 }
6511 return nil, gensupport.WrapError(&googleapi.Error{
6512 Code: res.StatusCode,
6513 Header: res.Header,
6514 })
6515 }
6516 if err != nil {
6517 return nil, err
6518 }
6519 defer googleapi.CloseBody(res)
6520 if err := googleapi.CheckResponse(res); err != nil {
6521 return nil, gensupport.WrapError(err)
6522 }
6523 ret := &PerfSampleSeries{
6524 ServerResponse: googleapi.ServerResponse{
6525 Header: res.Header,
6526 HTTPStatusCode: res.StatusCode,
6527 },
6528 }
6529 target := &ret
6530 if err := gensupport.DecodeResponse(target, res); err != nil {
6531 return nil, err
6532 }
6533 return ret, nil
6534 }
6535
6536 type ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall struct {
6537 s *Service
6538 projectId string
6539 historyId string
6540 executionId string
6541 stepId string
6542 urlParams_ gensupport.URLParams
6543 ifNoneMatch_ string
6544 ctx_ context.Context
6545 header_ http.Header
6546 }
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 func (r *ProjectsHistoriesExecutionsStepsPerfSampleSeriesService) List(projectId string, historyId string, executionId string, stepId string) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall {
6559 c := &ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6560 c.projectId = projectId
6561 c.historyId = historyId
6562 c.executionId = executionId
6563 c.stepId = stepId
6564 return c
6565 }
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) Filter(filter ...string) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall {
6578 c.urlParams_.SetMulti("filter", append([]string{}, filter...))
6579 return c
6580 }
6581
6582
6583
6584
6585 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall {
6586 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6587 return c
6588 }
6589
6590
6591
6592
6593 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall {
6594 c.ifNoneMatch_ = entityTag
6595 return c
6596 }
6597
6598
6599 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall {
6600 c.ctx_ = ctx
6601 return c
6602 }
6603
6604
6605
6606 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) Header() http.Header {
6607 if c.header_ == nil {
6608 c.header_ = make(http.Header)
6609 }
6610 return c.header_
6611 }
6612
6613 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) doRequest(alt string) (*http.Response, error) {
6614 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6615 if c.ifNoneMatch_ != "" {
6616 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6617 }
6618 var body io.Reader = nil
6619 c.urlParams_.Set("alt", alt)
6620 c.urlParams_.Set("prettyPrint", "false")
6621 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries")
6622 urls += "?" + c.urlParams_.Encode()
6623 req, err := http.NewRequest("GET", urls, body)
6624 if err != nil {
6625 return nil, err
6626 }
6627 req.Header = reqHeaders
6628 googleapi.Expand(req.URL, map[string]string{
6629 "projectId": c.projectId,
6630 "historyId": c.historyId,
6631 "executionId": c.executionId,
6632 "stepId": c.stepId,
6633 })
6634 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6635 }
6636
6637
6638
6639
6640
6641
6642
6643 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) Do(opts ...googleapi.CallOption) (*ListPerfSampleSeriesResponse, error) {
6644 gensupport.SetOptions(c.urlParams_, opts...)
6645 res, err := c.doRequest("json")
6646 if res != nil && res.StatusCode == http.StatusNotModified {
6647 if res.Body != nil {
6648 res.Body.Close()
6649 }
6650 return nil, gensupport.WrapError(&googleapi.Error{
6651 Code: res.StatusCode,
6652 Header: res.Header,
6653 })
6654 }
6655 if err != nil {
6656 return nil, err
6657 }
6658 defer googleapi.CloseBody(res)
6659 if err := googleapi.CheckResponse(res); err != nil {
6660 return nil, gensupport.WrapError(err)
6661 }
6662 ret := &ListPerfSampleSeriesResponse{
6663 ServerResponse: googleapi.ServerResponse{
6664 Header: res.Header,
6665 HTTPStatusCode: res.StatusCode,
6666 },
6667 }
6668 target := &ret
6669 if err := gensupport.DecodeResponse(target, res); err != nil {
6670 return nil, err
6671 }
6672 return ret, nil
6673 }
6674
6675 type ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall struct {
6676 s *Service
6677 projectId string
6678 historyId string
6679 executionId string
6680 stepId string
6681 sampleSeriesId string
6682 batchcreateperfsamplesrequest *BatchCreatePerfSamplesRequest
6683 urlParams_ gensupport.URLParams
6684 ctx_ context.Context
6685 header_ http.Header
6686 }
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 func (r *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesService) BatchCreate(projectId string, historyId string, executionId string, stepId string, sampleSeriesId string, batchcreateperfsamplesrequest *BatchCreatePerfSamplesRequest) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall {
6703 c := &ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6704 c.projectId = projectId
6705 c.historyId = historyId
6706 c.executionId = executionId
6707 c.stepId = stepId
6708 c.sampleSeriesId = sampleSeriesId
6709 c.batchcreateperfsamplesrequest = batchcreateperfsamplesrequest
6710 return c
6711 }
6712
6713
6714
6715
6716 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall {
6717 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6718 return c
6719 }
6720
6721
6722 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall {
6723 c.ctx_ = ctx
6724 return c
6725 }
6726
6727
6728
6729 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall) Header() http.Header {
6730 if c.header_ == nil {
6731 c.header_ = make(http.Header)
6732 }
6733 return c.header_
6734 }
6735
6736 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
6737 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6738 var body io.Reader = nil
6739 body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchcreateperfsamplesrequest)
6740 if err != nil {
6741 return nil, err
6742 }
6743 c.urlParams_.Set("alt", alt)
6744 c.urlParams_.Set("prettyPrint", "false")
6745 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate")
6746 urls += "?" + c.urlParams_.Encode()
6747 req, err := http.NewRequest("POST", urls, body)
6748 if err != nil {
6749 return nil, err
6750 }
6751 req.Header = reqHeaders
6752 googleapi.Expand(req.URL, map[string]string{
6753 "projectId": c.projectId,
6754 "historyId": c.historyId,
6755 "executionId": c.executionId,
6756 "stepId": c.stepId,
6757 "sampleSeriesId": c.sampleSeriesId,
6758 })
6759 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6760 }
6761
6762
6763
6764
6765
6766
6767
6768 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall) Do(opts ...googleapi.CallOption) (*BatchCreatePerfSamplesResponse, error) {
6769 gensupport.SetOptions(c.urlParams_, opts...)
6770 res, err := c.doRequest("json")
6771 if res != nil && res.StatusCode == http.StatusNotModified {
6772 if res.Body != nil {
6773 res.Body.Close()
6774 }
6775 return nil, gensupport.WrapError(&googleapi.Error{
6776 Code: res.StatusCode,
6777 Header: res.Header,
6778 })
6779 }
6780 if err != nil {
6781 return nil, err
6782 }
6783 defer googleapi.CloseBody(res)
6784 if err := googleapi.CheckResponse(res); err != nil {
6785 return nil, gensupport.WrapError(err)
6786 }
6787 ret := &BatchCreatePerfSamplesResponse{
6788 ServerResponse: googleapi.ServerResponse{
6789 Header: res.Header,
6790 HTTPStatusCode: res.StatusCode,
6791 },
6792 }
6793 target := &ret
6794 if err := gensupport.DecodeResponse(target, res); err != nil {
6795 return nil, err
6796 }
6797 return ret, nil
6798 }
6799
6800 type ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall struct {
6801 s *Service
6802 projectId string
6803 historyId string
6804 executionId string
6805 stepId string
6806 sampleSeriesId string
6807 urlParams_ gensupport.URLParams
6808 ifNoneMatch_ string
6809 ctx_ context.Context
6810 header_ http.Header
6811 }
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828 func (r *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesService) List(projectId string, historyId string, executionId string, stepId string, sampleSeriesId string) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall {
6829 c := &ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6830 c.projectId = projectId
6831 c.historyId = historyId
6832 c.executionId = executionId
6833 c.stepId = stepId
6834 c.sampleSeriesId = sampleSeriesId
6835 return c
6836 }
6837
6838
6839
6840
6841 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) PageSize(pageSize int64) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall {
6842 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6843 return c
6844 }
6845
6846
6847
6848 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) PageToken(pageToken string) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall {
6849 c.urlParams_.Set("pageToken", pageToken)
6850 return c
6851 }
6852
6853
6854
6855
6856 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall {
6857 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6858 return c
6859 }
6860
6861
6862
6863
6864 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall {
6865 c.ifNoneMatch_ = entityTag
6866 return c
6867 }
6868
6869
6870 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall {
6871 c.ctx_ = ctx
6872 return c
6873 }
6874
6875
6876
6877 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) Header() http.Header {
6878 if c.header_ == nil {
6879 c.header_ = make(http.Header)
6880 }
6881 return c.header_
6882 }
6883
6884 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) doRequest(alt string) (*http.Response, error) {
6885 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6886 if c.ifNoneMatch_ != "" {
6887 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6888 }
6889 var body io.Reader = nil
6890 c.urlParams_.Set("alt", alt)
6891 c.urlParams_.Set("prettyPrint", "false")
6892 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples")
6893 urls += "?" + c.urlParams_.Encode()
6894 req, err := http.NewRequest("GET", urls, body)
6895 if err != nil {
6896 return nil, err
6897 }
6898 req.Header = reqHeaders
6899 googleapi.Expand(req.URL, map[string]string{
6900 "projectId": c.projectId,
6901 "historyId": c.historyId,
6902 "executionId": c.executionId,
6903 "stepId": c.stepId,
6904 "sampleSeriesId": c.sampleSeriesId,
6905 })
6906 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6907 }
6908
6909
6910
6911
6912
6913
6914
6915 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) Do(opts ...googleapi.CallOption) (*ListPerfSamplesResponse, error) {
6916 gensupport.SetOptions(c.urlParams_, opts...)
6917 res, err := c.doRequest("json")
6918 if res != nil && res.StatusCode == http.StatusNotModified {
6919 if res.Body != nil {
6920 res.Body.Close()
6921 }
6922 return nil, gensupport.WrapError(&googleapi.Error{
6923 Code: res.StatusCode,
6924 Header: res.Header,
6925 })
6926 }
6927 if err != nil {
6928 return nil, err
6929 }
6930 defer googleapi.CloseBody(res)
6931 if err := googleapi.CheckResponse(res); err != nil {
6932 return nil, gensupport.WrapError(err)
6933 }
6934 ret := &ListPerfSamplesResponse{
6935 ServerResponse: googleapi.ServerResponse{
6936 Header: res.Header,
6937 HTTPStatusCode: res.StatusCode,
6938 },
6939 }
6940 target := &ret
6941 if err := gensupport.DecodeResponse(target, res); err != nil {
6942 return nil, err
6943 }
6944 return ret, nil
6945 }
6946
6947
6948
6949
6950 func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) Pages(ctx context.Context, f func(*ListPerfSamplesResponse) error) error {
6951 c.ctx_ = ctx
6952 defer c.PageToken(c.urlParams_.Get("pageToken"))
6953 for {
6954 x, err := c.Do()
6955 if err != nil {
6956 return err
6957 }
6958 if err := f(x); err != nil {
6959 return err
6960 }
6961 if x.NextPageToken == "" {
6962 return nil
6963 }
6964 c.PageToken(x.NextPageToken)
6965 }
6966 }
6967
6968 type ProjectsHistoriesExecutionsStepsTestCasesGetCall struct {
6969 s *Service
6970 projectId string
6971 historyId string
6972 executionId string
6973 stepId string
6974 testCaseId string
6975 urlParams_ gensupport.URLParams
6976 ifNoneMatch_ string
6977 ctx_ context.Context
6978 header_ http.Header
6979 }
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992 func (r *ProjectsHistoriesExecutionsStepsTestCasesService) Get(projectId string, historyId string, executionId string, stepId string, testCaseId string) *ProjectsHistoriesExecutionsStepsTestCasesGetCall {
6993 c := &ProjectsHistoriesExecutionsStepsTestCasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6994 c.projectId = projectId
6995 c.historyId = historyId
6996 c.executionId = executionId
6997 c.stepId = stepId
6998 c.testCaseId = testCaseId
6999 return c
7000 }
7001
7002
7003
7004
7005 func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsTestCasesGetCall {
7006 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7007 return c
7008 }
7009
7010
7011
7012
7013 func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsTestCasesGetCall {
7014 c.ifNoneMatch_ = entityTag
7015 return c
7016 }
7017
7018
7019 func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsTestCasesGetCall {
7020 c.ctx_ = ctx
7021 return c
7022 }
7023
7024
7025
7026 func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) Header() http.Header {
7027 if c.header_ == nil {
7028 c.header_ = make(http.Header)
7029 }
7030 return c.header_
7031 }
7032
7033 func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) doRequest(alt string) (*http.Response, error) {
7034 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7035 if c.ifNoneMatch_ != "" {
7036 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7037 }
7038 var body io.Reader = nil
7039 c.urlParams_.Set("alt", alt)
7040 c.urlParams_.Set("prettyPrint", "false")
7041 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases/{testCaseId}")
7042 urls += "?" + c.urlParams_.Encode()
7043 req, err := http.NewRequest("GET", urls, body)
7044 if err != nil {
7045 return nil, err
7046 }
7047 req.Header = reqHeaders
7048 googleapi.Expand(req.URL, map[string]string{
7049 "projectId": c.projectId,
7050 "historyId": c.historyId,
7051 "executionId": c.executionId,
7052 "stepId": c.stepId,
7053 "testCaseId": c.testCaseId,
7054 })
7055 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7056 }
7057
7058
7059
7060
7061
7062
7063 func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) Do(opts ...googleapi.CallOption) (*TestCase, error) {
7064 gensupport.SetOptions(c.urlParams_, opts...)
7065 res, err := c.doRequest("json")
7066 if res != nil && res.StatusCode == http.StatusNotModified {
7067 if res.Body != nil {
7068 res.Body.Close()
7069 }
7070 return nil, gensupport.WrapError(&googleapi.Error{
7071 Code: res.StatusCode,
7072 Header: res.Header,
7073 })
7074 }
7075 if err != nil {
7076 return nil, err
7077 }
7078 defer googleapi.CloseBody(res)
7079 if err := googleapi.CheckResponse(res); err != nil {
7080 return nil, gensupport.WrapError(err)
7081 }
7082 ret := &TestCase{
7083 ServerResponse: googleapi.ServerResponse{
7084 Header: res.Header,
7085 HTTPStatusCode: res.StatusCode,
7086 },
7087 }
7088 target := &ret
7089 if err := gensupport.DecodeResponse(target, res); err != nil {
7090 return nil, err
7091 }
7092 return ret, nil
7093 }
7094
7095 type ProjectsHistoriesExecutionsStepsTestCasesListCall struct {
7096 s *Service
7097 projectId string
7098 historyId string
7099 executionId string
7100 stepId string
7101 urlParams_ gensupport.URLParams
7102 ifNoneMatch_ string
7103 ctx_ context.Context
7104 header_ http.Header
7105 }
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 func (r *ProjectsHistoriesExecutionsStepsTestCasesService) List(projectId string, historyId string, executionId string, stepId string) *ProjectsHistoriesExecutionsStepsTestCasesListCall {
7118 c := &ProjectsHistoriesExecutionsStepsTestCasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7119 c.projectId = projectId
7120 c.historyId = historyId
7121 c.executionId = executionId
7122 c.stepId = stepId
7123 return c
7124 }
7125
7126
7127
7128
7129 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) PageSize(pageSize int64) *ProjectsHistoriesExecutionsStepsTestCasesListCall {
7130 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7131 return c
7132 }
7133
7134
7135
7136 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) PageToken(pageToken string) *ProjectsHistoriesExecutionsStepsTestCasesListCall {
7137 c.urlParams_.Set("pageToken", pageToken)
7138 return c
7139 }
7140
7141
7142
7143
7144 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsTestCasesListCall {
7145 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7146 return c
7147 }
7148
7149
7150
7151
7152 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsTestCasesListCall {
7153 c.ifNoneMatch_ = entityTag
7154 return c
7155 }
7156
7157
7158 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsTestCasesListCall {
7159 c.ctx_ = ctx
7160 return c
7161 }
7162
7163
7164
7165 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) Header() http.Header {
7166 if c.header_ == nil {
7167 c.header_ = make(http.Header)
7168 }
7169 return c.header_
7170 }
7171
7172 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) doRequest(alt string) (*http.Response, error) {
7173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7174 if c.ifNoneMatch_ != "" {
7175 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7176 }
7177 var body io.Reader = nil
7178 c.urlParams_.Set("alt", alt)
7179 c.urlParams_.Set("prettyPrint", "false")
7180 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases")
7181 urls += "?" + c.urlParams_.Encode()
7182 req, err := http.NewRequest("GET", urls, body)
7183 if err != nil {
7184 return nil, err
7185 }
7186 req.Header = reqHeaders
7187 googleapi.Expand(req.URL, map[string]string{
7188 "projectId": c.projectId,
7189 "historyId": c.historyId,
7190 "executionId": c.executionId,
7191 "stepId": c.stepId,
7192 })
7193 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7194 }
7195
7196
7197
7198
7199
7200
7201
7202 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) Do(opts ...googleapi.CallOption) (*ListTestCasesResponse, error) {
7203 gensupport.SetOptions(c.urlParams_, opts...)
7204 res, err := c.doRequest("json")
7205 if res != nil && res.StatusCode == http.StatusNotModified {
7206 if res.Body != nil {
7207 res.Body.Close()
7208 }
7209 return nil, gensupport.WrapError(&googleapi.Error{
7210 Code: res.StatusCode,
7211 Header: res.Header,
7212 })
7213 }
7214 if err != nil {
7215 return nil, err
7216 }
7217 defer googleapi.CloseBody(res)
7218 if err := googleapi.CheckResponse(res); err != nil {
7219 return nil, gensupport.WrapError(err)
7220 }
7221 ret := &ListTestCasesResponse{
7222 ServerResponse: googleapi.ServerResponse{
7223 Header: res.Header,
7224 HTTPStatusCode: res.StatusCode,
7225 },
7226 }
7227 target := &ret
7228 if err := gensupport.DecodeResponse(target, res); err != nil {
7229 return nil, err
7230 }
7231 return ret, nil
7232 }
7233
7234
7235
7236
7237 func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) Pages(ctx context.Context, f func(*ListTestCasesResponse) error) error {
7238 c.ctx_ = ctx
7239 defer c.PageToken(c.urlParams_.Get("pageToken"))
7240 for {
7241 x, err := c.Do()
7242 if err != nil {
7243 return err
7244 }
7245 if err := f(x); err != nil {
7246 return err
7247 }
7248 if x.NextPageToken == "" {
7249 return nil
7250 }
7251 c.PageToken(x.NextPageToken)
7252 }
7253 }
7254
7255 type ProjectsHistoriesExecutionsStepsThumbnailsListCall struct {
7256 s *Service
7257 projectId string
7258 historyId string
7259 executionId string
7260 stepId string
7261 urlParams_ gensupport.URLParams
7262 ifNoneMatch_ string
7263 ctx_ context.Context
7264 header_ http.Header
7265 }
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277 func (r *ProjectsHistoriesExecutionsStepsThumbnailsService) List(projectId string, historyId string, executionId string, stepId string) *ProjectsHistoriesExecutionsStepsThumbnailsListCall {
7278 c := &ProjectsHistoriesExecutionsStepsThumbnailsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7279 c.projectId = projectId
7280 c.historyId = historyId
7281 c.executionId = executionId
7282 c.stepId = stepId
7283 return c
7284 }
7285
7286
7287
7288
7289 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) PageSize(pageSize int64) *ProjectsHistoriesExecutionsStepsThumbnailsListCall {
7290 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7291 return c
7292 }
7293
7294
7295
7296 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) PageToken(pageToken string) *ProjectsHistoriesExecutionsStepsThumbnailsListCall {
7297 c.urlParams_.Set("pageToken", pageToken)
7298 return c
7299 }
7300
7301
7302
7303
7304 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) Fields(s ...googleapi.Field) *ProjectsHistoriesExecutionsStepsThumbnailsListCall {
7305 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7306 return c
7307 }
7308
7309
7310
7311
7312 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) IfNoneMatch(entityTag string) *ProjectsHistoriesExecutionsStepsThumbnailsListCall {
7313 c.ifNoneMatch_ = entityTag
7314 return c
7315 }
7316
7317
7318 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) Context(ctx context.Context) *ProjectsHistoriesExecutionsStepsThumbnailsListCall {
7319 c.ctx_ = ctx
7320 return c
7321 }
7322
7323
7324
7325 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) Header() http.Header {
7326 if c.header_ == nil {
7327 c.header_ = make(http.Header)
7328 }
7329 return c.header_
7330 }
7331
7332 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) doRequest(alt string) (*http.Response, error) {
7333 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7334 if c.ifNoneMatch_ != "" {
7335 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7336 }
7337 var body io.Reader = nil
7338 c.urlParams_.Set("alt", alt)
7339 c.urlParams_.Set("prettyPrint", "false")
7340 urls := googleapi.ResolveRelative(c.s.BasePath, "toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails")
7341 urls += "?" + c.urlParams_.Encode()
7342 req, err := http.NewRequest("GET", urls, body)
7343 if err != nil {
7344 return nil, err
7345 }
7346 req.Header = reqHeaders
7347 googleapi.Expand(req.URL, map[string]string{
7348 "projectId": c.projectId,
7349 "historyId": c.historyId,
7350 "executionId": c.executionId,
7351 "stepId": c.stepId,
7352 })
7353 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7354 }
7355
7356
7357
7358
7359
7360
7361
7362 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) Do(opts ...googleapi.CallOption) (*ListStepThumbnailsResponse, error) {
7363 gensupport.SetOptions(c.urlParams_, opts...)
7364 res, err := c.doRequest("json")
7365 if res != nil && res.StatusCode == http.StatusNotModified {
7366 if res.Body != nil {
7367 res.Body.Close()
7368 }
7369 return nil, gensupport.WrapError(&googleapi.Error{
7370 Code: res.StatusCode,
7371 Header: res.Header,
7372 })
7373 }
7374 if err != nil {
7375 return nil, err
7376 }
7377 defer googleapi.CloseBody(res)
7378 if err := googleapi.CheckResponse(res); err != nil {
7379 return nil, gensupport.WrapError(err)
7380 }
7381 ret := &ListStepThumbnailsResponse{
7382 ServerResponse: googleapi.ServerResponse{
7383 Header: res.Header,
7384 HTTPStatusCode: res.StatusCode,
7385 },
7386 }
7387 target := &ret
7388 if err := gensupport.DecodeResponse(target, res); err != nil {
7389 return nil, err
7390 }
7391 return ret, nil
7392 }
7393
7394
7395
7396
7397 func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) Pages(ctx context.Context, f func(*ListStepThumbnailsResponse) error) error {
7398 c.ctx_ = ctx
7399 defer c.PageToken(c.urlParams_.Get("pageToken"))
7400 for {
7401 x, err := c.Do()
7402 if err != nil {
7403 return err
7404 }
7405 if err := f(x); err != nil {
7406 return err
7407 }
7408 if x.NextPageToken == "" {
7409 return nil
7410 }
7411 c.PageToken(x.NextPageToken)
7412 }
7413 }
7414
View as plain text