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 migrationcenter
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 = "migrationcenter:v1alpha1"
90 const apiName = "migrationcenter"
91 const apiVersion = "v1alpha1"
92 const basePath = "https://migrationcenter.googleapis.com/"
93 const basePathTemplate = "https://migrationcenter.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://migrationcenter.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.Locations = NewProjectsLocationsService(s)
160 return rs
161 }
162
163 type ProjectsService struct {
164 s *Service
165
166 Locations *ProjectsLocationsService
167 }
168
169 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
170 rs := &ProjectsLocationsService{s: s}
171 rs.Assets = NewProjectsLocationsAssetsService(s)
172 rs.DiscoveryClients = NewProjectsLocationsDiscoveryClientsService(s)
173 rs.Groups = NewProjectsLocationsGroupsService(s)
174 rs.ImportJobs = NewProjectsLocationsImportJobsService(s)
175 rs.Operations = NewProjectsLocationsOperationsService(s)
176 rs.PreferenceSets = NewProjectsLocationsPreferenceSetsService(s)
177 rs.ReportConfigs = NewProjectsLocationsReportConfigsService(s)
178 rs.Sources = NewProjectsLocationsSourcesService(s)
179 return rs
180 }
181
182 type ProjectsLocationsService struct {
183 s *Service
184
185 Assets *ProjectsLocationsAssetsService
186
187 DiscoveryClients *ProjectsLocationsDiscoveryClientsService
188
189 Groups *ProjectsLocationsGroupsService
190
191 ImportJobs *ProjectsLocationsImportJobsService
192
193 Operations *ProjectsLocationsOperationsService
194
195 PreferenceSets *ProjectsLocationsPreferenceSetsService
196
197 ReportConfigs *ProjectsLocationsReportConfigsService
198
199 Sources *ProjectsLocationsSourcesService
200 }
201
202 func NewProjectsLocationsAssetsService(s *Service) *ProjectsLocationsAssetsService {
203 rs := &ProjectsLocationsAssetsService{s: s}
204 return rs
205 }
206
207 type ProjectsLocationsAssetsService struct {
208 s *Service
209 }
210
211 func NewProjectsLocationsDiscoveryClientsService(s *Service) *ProjectsLocationsDiscoveryClientsService {
212 rs := &ProjectsLocationsDiscoveryClientsService{s: s}
213 return rs
214 }
215
216 type ProjectsLocationsDiscoveryClientsService struct {
217 s *Service
218 }
219
220 func NewProjectsLocationsGroupsService(s *Service) *ProjectsLocationsGroupsService {
221 rs := &ProjectsLocationsGroupsService{s: s}
222 return rs
223 }
224
225 type ProjectsLocationsGroupsService struct {
226 s *Service
227 }
228
229 func NewProjectsLocationsImportJobsService(s *Service) *ProjectsLocationsImportJobsService {
230 rs := &ProjectsLocationsImportJobsService{s: s}
231 rs.ImportDataFiles = NewProjectsLocationsImportJobsImportDataFilesService(s)
232 return rs
233 }
234
235 type ProjectsLocationsImportJobsService struct {
236 s *Service
237
238 ImportDataFiles *ProjectsLocationsImportJobsImportDataFilesService
239 }
240
241 func NewProjectsLocationsImportJobsImportDataFilesService(s *Service) *ProjectsLocationsImportJobsImportDataFilesService {
242 rs := &ProjectsLocationsImportJobsImportDataFilesService{s: s}
243 return rs
244 }
245
246 type ProjectsLocationsImportJobsImportDataFilesService struct {
247 s *Service
248 }
249
250 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
251 rs := &ProjectsLocationsOperationsService{s: s}
252 return rs
253 }
254
255 type ProjectsLocationsOperationsService struct {
256 s *Service
257 }
258
259 func NewProjectsLocationsPreferenceSetsService(s *Service) *ProjectsLocationsPreferenceSetsService {
260 rs := &ProjectsLocationsPreferenceSetsService{s: s}
261 return rs
262 }
263
264 type ProjectsLocationsPreferenceSetsService struct {
265 s *Service
266 }
267
268 func NewProjectsLocationsReportConfigsService(s *Service) *ProjectsLocationsReportConfigsService {
269 rs := &ProjectsLocationsReportConfigsService{s: s}
270 rs.Reports = NewProjectsLocationsReportConfigsReportsService(s)
271 return rs
272 }
273
274 type ProjectsLocationsReportConfigsService struct {
275 s *Service
276
277 Reports *ProjectsLocationsReportConfigsReportsService
278 }
279
280 func NewProjectsLocationsReportConfigsReportsService(s *Service) *ProjectsLocationsReportConfigsReportsService {
281 rs := &ProjectsLocationsReportConfigsReportsService{s: s}
282 return rs
283 }
284
285 type ProjectsLocationsReportConfigsReportsService struct {
286 s *Service
287 }
288
289 func NewProjectsLocationsSourcesService(s *Service) *ProjectsLocationsSourcesService {
290 rs := &ProjectsLocationsSourcesService{s: s}
291 rs.ErrorFrames = NewProjectsLocationsSourcesErrorFramesService(s)
292 return rs
293 }
294
295 type ProjectsLocationsSourcesService struct {
296 s *Service
297
298 ErrorFrames *ProjectsLocationsSourcesErrorFramesService
299 }
300
301 func NewProjectsLocationsSourcesErrorFramesService(s *Service) *ProjectsLocationsSourcesErrorFramesService {
302 rs := &ProjectsLocationsSourcesErrorFramesService{s: s}
303 return rs
304 }
305
306 type ProjectsLocationsSourcesErrorFramesService struct {
307 s *Service
308 }
309
310
311 type AddAssetsToGroupRequest struct {
312
313
314
315
316 AllowExisting bool `json:"allowExisting,omitempty"`
317
318
319 Assets *AssetList `json:"assets,omitempty"`
320
321
322
323
324
325
326
327
328
329
330
331 RequestId string `json:"requestId,omitempty"`
332
333
334
335
336
337 ForceSendFields []string `json:"-"`
338
339
340
341
342 NullFields []string `json:"-"`
343 }
344
345 func (s *AddAssetsToGroupRequest) MarshalJSON() ([]byte, error) {
346 type NoMethod AddAssetsToGroupRequest
347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
348 }
349
350
351 type AggregateAssetsValuesRequest struct {
352
353
354 Aggregations []*Aggregation `json:"aggregations,omitempty"`
355
356
357 Filter string `json:"filter,omitempty"`
358
359
360 ShowHidden bool `json:"showHidden,omitempty"`
361
362
363
364
365
366 ForceSendFields []string `json:"-"`
367
368
369
370
371 NullFields []string `json:"-"`
372 }
373
374 func (s *AggregateAssetsValuesRequest) MarshalJSON() ([]byte, error) {
375 type NoMethod AggregateAssetsValuesRequest
376 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
377 }
378
379
380
381 type AggregateAssetsValuesResponse struct {
382
383 Results []*AggregationResult `json:"results,omitempty"`
384
385
386 googleapi.ServerResponse `json:"-"`
387
388
389
390
391
392 ForceSendFields []string `json:"-"`
393
394
395
396
397 NullFields []string `json:"-"`
398 }
399
400 func (s *AggregateAssetsValuesResponse) MarshalJSON() ([]byte, error) {
401 type NoMethod AggregateAssetsValuesResponse
402 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
403 }
404
405
406
407
408 type Aggregation struct {
409
410 Count *AggregationCount `json:"count,omitempty"`
411
412 Field string `json:"field,omitempty"`
413
414 Frequency *AggregationFrequency `json:"frequency,omitempty"`
415
416 Histogram *AggregationHistogram `json:"histogram,omitempty"`
417
418 Sum *AggregationSum `json:"sum,omitempty"`
419
420
421
422
423
424 ForceSendFields []string `json:"-"`
425
426
427
428
429 NullFields []string `json:"-"`
430 }
431
432 func (s *Aggregation) MarshalJSON() ([]byte, error) {
433 type NoMethod Aggregation
434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
435 }
436
437
438 type AggregationCount struct {
439 }
440
441
442 type AggregationFrequency struct {
443 }
444
445
446 type AggregationHistogram struct {
447
448
449
450
451
452
453
454 LowerBounds []float64 `json:"lowerBounds,omitempty"`
455
456
457
458
459
460 ForceSendFields []string `json:"-"`
461
462
463
464
465 NullFields []string `json:"-"`
466 }
467
468 func (s *AggregationHistogram) MarshalJSON() ([]byte, error) {
469 type NoMethod AggregationHistogram
470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
471 }
472
473 func (s *AggregationHistogram) UnmarshalJSON(data []byte) error {
474 type NoMethod AggregationHistogram
475 var s1 struct {
476 LowerBounds []gensupport.JSONFloat64 `json:"lowerBounds"`
477 *NoMethod
478 }
479 s1.NoMethod = (*NoMethod)(s)
480 if err := json.Unmarshal(data, &s1); err != nil {
481 return err
482 }
483 s.LowerBounds = make([]float64, len(s1.LowerBounds))
484 for i := range s1.LowerBounds {
485 s.LowerBounds[i] = float64(s1.LowerBounds[i])
486 }
487 return nil
488 }
489
490
491 type AggregationResult struct {
492 Count *AggregationResultCount `json:"count,omitempty"`
493 Field string `json:"field,omitempty"`
494 Frequency *AggregationResultFrequency `json:"frequency,omitempty"`
495 Histogram *AggregationResultHistogram `json:"histogram,omitempty"`
496 Sum *AggregationResultSum `json:"sum,omitempty"`
497
498
499
500
501
502 ForceSendFields []string `json:"-"`
503
504
505
506
507 NullFields []string `json:"-"`
508 }
509
510 func (s *AggregationResult) MarshalJSON() ([]byte, error) {
511 type NoMethod AggregationResult
512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
513 }
514
515
516 type AggregationResultCount struct {
517 Value int64 `json:"value,omitempty,string"`
518
519
520
521
522
523 ForceSendFields []string `json:"-"`
524
525
526
527
528 NullFields []string `json:"-"`
529 }
530
531 func (s *AggregationResultCount) MarshalJSON() ([]byte, error) {
532 type NoMethod AggregationResultCount
533 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
534 }
535
536
537
538 type AggregationResultFrequency struct {
539 Values map[string]string `json:"values,omitempty"`
540
541
542
543
544
545 ForceSendFields []string `json:"-"`
546
547
548
549
550 NullFields []string `json:"-"`
551 }
552
553 func (s *AggregationResultFrequency) MarshalJSON() ([]byte, error) {
554 type NoMethod AggregationResultFrequency
555 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
556 }
557
558
559 type AggregationResultHistogram struct {
560
561
562
563
564 Buckets []*AggregationResultHistogramBucket `json:"buckets,omitempty"`
565
566
567
568
569
570 ForceSendFields []string `json:"-"`
571
572
573
574
575 NullFields []string `json:"-"`
576 }
577
578 func (s *AggregationResultHistogram) MarshalJSON() ([]byte, error) {
579 type NoMethod AggregationResultHistogram
580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
581 }
582
583
584
585
586
587 type AggregationResultHistogramBucket struct {
588
589 Count int64 `json:"count,omitempty,string"`
590
591 LowerBound float64 `json:"lowerBound,omitempty"`
592
593 UpperBound float64 `json:"upperBound,omitempty"`
594
595
596
597
598
599 ForceSendFields []string `json:"-"`
600
601
602
603
604 NullFields []string `json:"-"`
605 }
606
607 func (s *AggregationResultHistogramBucket) MarshalJSON() ([]byte, error) {
608 type NoMethod AggregationResultHistogramBucket
609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
610 }
611
612 func (s *AggregationResultHistogramBucket) UnmarshalJSON(data []byte) error {
613 type NoMethod AggregationResultHistogramBucket
614 var s1 struct {
615 LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
616 UpperBound gensupport.JSONFloat64 `json:"upperBound"`
617 *NoMethod
618 }
619 s1.NoMethod = (*NoMethod)(s)
620 if err := json.Unmarshal(data, &s1); err != nil {
621 return err
622 }
623 s.LowerBound = float64(s1.LowerBound)
624 s.UpperBound = float64(s1.UpperBound)
625 return nil
626 }
627
628
629 type AggregationResultSum struct {
630 Value float64 `json:"value,omitempty"`
631
632
633
634
635
636 ForceSendFields []string `json:"-"`
637
638
639
640
641 NullFields []string `json:"-"`
642 }
643
644 func (s *AggregationResultSum) MarshalJSON() ([]byte, error) {
645 type NoMethod AggregationResultSum
646 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
647 }
648
649 func (s *AggregationResultSum) UnmarshalJSON(data []byte) error {
650 type NoMethod AggregationResultSum
651 var s1 struct {
652 Value gensupport.JSONFloat64 `json:"value"`
653 *NoMethod
654 }
655 s1.NoMethod = (*NoMethod)(s)
656 if err := json.Unmarshal(data, &s1); err != nil {
657 return err
658 }
659 s.Value = float64(s1.Value)
660 return nil
661 }
662
663
664 type AggregationSum struct {
665 }
666
667
668
669 type Asset struct {
670
671
672 AssignedGroups []string `json:"assignedGroups,omitempty"`
673
674 Attributes map[string]string `json:"attributes,omitempty"`
675
676 CreateTime string `json:"createTime,omitempty"`
677
678
679 DatabaseDeploymentDetails *DatabaseDeploymentDetails `json:"databaseDeploymentDetails,omitempty"`
680
681
682 DatabaseDetails *DatabaseDetails `json:"databaseDetails,omitempty"`
683
684 Hidden bool `json:"hidden,omitempty"`
685
686 HideReason string `json:"hideReason,omitempty"`
687
688 HideTime string `json:"hideTime,omitempty"`
689
690 InsightList *InsightList `json:"insightList,omitempty"`
691
692 Labels map[string]string `json:"labels,omitempty"`
693
694 Name string `json:"name,omitempty"`
695
696 PerformanceData *AssetPerformanceData `json:"performanceData,omitempty"`
697
698 Sources []string `json:"sources,omitempty"`
699
700 Title string `json:"title,omitempty"`
701
702 UpdateTime string `json:"updateTime,omitempty"`
703
704
705 VirtualMachineDetails *VirtualMachineDetails `json:"virtualMachineDetails,omitempty"`
706
707
708 googleapi.ServerResponse `json:"-"`
709
710
711
712
713
714 ForceSendFields []string `json:"-"`
715
716
717
718
719 NullFields []string `json:"-"`
720 }
721
722 func (s *Asset) MarshalJSON() ([]byte, error) {
723 type NoMethod Asset
724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
725 }
726
727
728 type AssetFrame struct {
729
730 Attributes map[string]string `json:"attributes,omitempty"`
731
732
733
734
735
736
737
738
739
740
741
742 CollectionType string `json:"collectionType,omitempty"`
743
744
745 DatabaseDeploymentDetails *DatabaseDeploymentDetails `json:"databaseDeploymentDetails,omitempty"`
746
747 DatabaseDetails *DatabaseDetails `json:"databaseDetails,omitempty"`
748
749 Labels map[string]string `json:"labels,omitempty"`
750
751
752 PerformanceSamples []*PerformanceSample `json:"performanceSamples,omitempty"`
753
754 ReportTime string `json:"reportTime,omitempty"`
755
756
757 TraceToken string `json:"traceToken,omitempty"`
758
759 VirtualMachineDetails *VirtualMachineDetails `json:"virtualMachineDetails,omitempty"`
760
761
762
763
764
765 ForceSendFields []string `json:"-"`
766
767
768
769
770 NullFields []string `json:"-"`
771 }
772
773 func (s *AssetFrame) MarshalJSON() ([]byte, error) {
774 type NoMethod AssetFrame
775 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
776 }
777
778
779 type AssetList struct {
780
781 AssetIds []string `json:"assetIds,omitempty"`
782
783
784
785
786
787 ForceSendFields []string `json:"-"`
788
789
790
791
792 NullFields []string `json:"-"`
793 }
794
795 func (s *AssetList) MarshalJSON() ([]byte, error) {
796 type NoMethod AssetList
797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
798 }
799
800
801 type AssetPerformanceData struct {
802
803
804
805 DailyResourceUsageAggregations []*DailyResourceUsageAggregation `json:"dailyResourceUsageAggregations,omitempty"`
806
807
808
809
810
811
812 ForceSendFields []string `json:"-"`
813
814
815
816
817 NullFields []string `json:"-"`
818 }
819
820 func (s *AssetPerformanceData) MarshalJSON() ([]byte, error) {
821 type NoMethod AssetPerformanceData
822 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
823 }
824
825
826 type AwsEc2PlatformDetails struct {
827
828 Location string `json:"location,omitempty"`
829
830 MachineTypeLabel string `json:"machineTypeLabel,omitempty"`
831
832
833
834
835
836 ForceSendFields []string `json:"-"`
837
838
839
840
841 NullFields []string `json:"-"`
842 }
843
844 func (s *AwsEc2PlatformDetails) MarshalJSON() ([]byte, error) {
845 type NoMethod AwsEc2PlatformDetails
846 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
847 }
848
849
850 type AzureVmPlatformDetails struct {
851
852 Location string `json:"location,omitempty"`
853
854 MachineTypeLabel string `json:"machineTypeLabel,omitempty"`
855
856 ProvisioningState string `json:"provisioningState,omitempty"`
857
858
859
860
861
862 ForceSendFields []string `json:"-"`
863
864
865
866
867 NullFields []string `json:"-"`
868 }
869
870 func (s *AzureVmPlatformDetails) MarshalJSON() ([]byte, error) {
871 type NoMethod AzureVmPlatformDetails
872 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
873 }
874
875
876 type BatchDeleteAssetsRequest struct {
877
878
879
880
881 AllowMissing bool `json:"allowMissing,omitempty"`
882
883
884
885 Names []string `json:"names,omitempty"`
886
887
888
889
890
891 ForceSendFields []string `json:"-"`
892
893
894
895
896 NullFields []string `json:"-"`
897 }
898
899 func (s *BatchDeleteAssetsRequest) MarshalJSON() ([]byte, error) {
900 type NoMethod BatchDeleteAssetsRequest
901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
902 }
903
904
905 type BatchUpdateAssetsRequest struct {
906
907
908 Requests []*UpdateAssetRequest `json:"requests,omitempty"`
909
910
911
912
913
914 ForceSendFields []string `json:"-"`
915
916
917
918
919 NullFields []string `json:"-"`
920 }
921
922 func (s *BatchUpdateAssetsRequest) MarshalJSON() ([]byte, error) {
923 type NoMethod BatchUpdateAssetsRequest
924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
925 }
926
927
928 type BatchUpdateAssetsResponse struct {
929
930
931 Assets []*Asset `json:"assets,omitempty"`
932
933
934 googleapi.ServerResponse `json:"-"`
935
936
937
938
939
940 ForceSendFields []string `json:"-"`
941
942
943
944
945 NullFields []string `json:"-"`
946 }
947
948 func (s *BatchUpdateAssetsResponse) MarshalJSON() ([]byte, error) {
949 type NoMethod BatchUpdateAssetsResponse
950 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
951 }
952
953
954 type BiosDetails struct {
955
956 BiosManufacturer string `json:"biosManufacturer,omitempty"`
957
958 BiosName string `json:"biosName,omitempty"`
959
960 BiosReleaseDate string `json:"biosReleaseDate,omitempty"`
961
962 BiosVersion string `json:"biosVersion,omitempty"`
963
964 SmbiosUuid string `json:"smbiosUuid,omitempty"`
965
966
967
968
969
970 ForceSendFields []string `json:"-"`
971
972
973
974
975 NullFields []string `json:"-"`
976 }
977
978 func (s *BiosDetails) MarshalJSON() ([]byte, error) {
979 type NoMethod BiosDetails
980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
981 }
982
983
984 type CancelOperationRequest struct {
985 }
986
987
988 type CloudDatabaseMigrationTarget struct {
989
990 CloudSqlForMysqlShape *CloudSqlForMySqlShape `json:"cloudSqlForMysqlShape,omitempty"`
991
992 CloudSqlForPostgresqlShape *CloudSqlForPostgreSqlShape `json:"cloudSqlForPostgresqlShape,omitempty"`
993
994 CloudSqlShape *CloudSqlForSqlServerShape `json:"cloudSqlShape,omitempty"`
995
996
997
998
999
1000 ForceSendFields []string `json:"-"`
1001
1002
1003
1004
1005 NullFields []string `json:"-"`
1006 }
1007
1008 func (s *CloudDatabaseMigrationTarget) MarshalJSON() ([]byte, error) {
1009 type NoMethod CloudDatabaseMigrationTarget
1010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1011 }
1012
1013
1014 type CloudSqlForMySqlShape struct {
1015
1016 BackupStorageGb int64 `json:"backupStorageGb,omitempty"`
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029 Edition string `json:"edition,omitempty"`
1030
1031 EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"`
1032
1033 LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
1034
1035 MemoryMb int64 `json:"memoryMb,omitempty"`
1036
1037 Storage *ComputeStorageDescriptor `json:"storage,omitempty"`
1038
1039
1040
1041
1042
1043
1044
1045
1046 Version string `json:"version,omitempty"`
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058 ZoneAvailability string `json:"zoneAvailability,omitempty"`
1059
1060
1061
1062
1063
1064 ForceSendFields []string `json:"-"`
1065
1066
1067
1068
1069 NullFields []string `json:"-"`
1070 }
1071
1072 func (s *CloudSqlForMySqlShape) MarshalJSON() ([]byte, error) {
1073 type NoMethod CloudSqlForMySqlShape
1074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1075 }
1076
1077
1078 type CloudSqlForPostgreSqlShape struct {
1079
1080 BackupStorageGb int64 `json:"backupStorageGb,omitempty"`
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093 Edition string `json:"edition,omitempty"`
1094
1095 EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"`
1096
1097 LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
1098
1099 MemoryMb int64 `json:"memoryMb,omitempty"`
1100
1101 Storage *ComputeStorageDescriptor `json:"storage,omitempty"`
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114 Version string `json:"version,omitempty"`
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126 ZoneAvailability string `json:"zoneAvailability,omitempty"`
1127
1128
1129
1130
1131
1132 ForceSendFields []string `json:"-"`
1133
1134
1135
1136
1137 NullFields []string `json:"-"`
1138 }
1139
1140 func (s *CloudSqlForPostgreSqlShape) MarshalJSON() ([]byte, error) {
1141 type NoMethod CloudSqlForPostgreSqlShape
1142 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1143 }
1144
1145
1146 type CloudSqlForSqlServerShape struct {
1147
1148 BackupStorageGb int64 `json:"backupStorageGb,omitempty"`
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161 Edition string `json:"edition,omitempty"`
1162
1163 EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"`
1164
1165 LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
1166
1167 MemoryMb int64 `json:"memoryMb,omitempty"`
1168
1169 Storage *ComputeStorageDescriptor `json:"storage,omitempty"`
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199 Version string `json:"version,omitempty"`
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211 ZoneAvailability string `json:"zoneAvailability,omitempty"`
1212
1213
1214
1215
1216
1217 ForceSendFields []string `json:"-"`
1218
1219
1220
1221
1222 NullFields []string `json:"-"`
1223 }
1224
1225 func (s *CloudSqlForSqlServerShape) MarshalJSON() ([]byte, error) {
1226 type NoMethod CloudSqlForSqlServerShape
1227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1228 }
1229
1230
1231 type ComputeEngineMigrationTarget struct {
1232
1233 Shape *ComputeEngineShapeDescriptor `json:"shape,omitempty"`
1234
1235
1236
1237
1238
1239 ForceSendFields []string `json:"-"`
1240
1241
1242
1243
1244 NullFields []string `json:"-"`
1245 }
1246
1247 func (s *ComputeEngineMigrationTarget) MarshalJSON() ([]byte, error) {
1248 type NoMethod ComputeEngineMigrationTarget
1249 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1250 }
1251
1252
1253
1254 type ComputeEnginePreferences struct {
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266 LicenseType string `json:"licenseType,omitempty"`
1267
1268
1269 MachinePreferences *MachinePreferences `json:"machinePreferences,omitempty"`
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280 PersistentDiskType string `json:"persistentDiskType,omitempty"`
1281
1282
1283
1284
1285
1286 ForceSendFields []string `json:"-"`
1287
1288
1289
1290
1291 NullFields []string `json:"-"`
1292 }
1293
1294 func (s *ComputeEnginePreferences) MarshalJSON() ([]byte, error) {
1295 type NoMethod ComputeEnginePreferences
1296 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1297 }
1298
1299
1300 type ComputeEngineShapeDescriptor struct {
1301
1302 LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
1303
1304 MachineType string `json:"machineType,omitempty"`
1305
1306 MemoryMb int64 `json:"memoryMb,omitempty"`
1307
1308 PhysicalCoreCount int64 `json:"physicalCoreCount,omitempty"`
1309
1310 Series string `json:"series,omitempty"`
1311
1312 Storage []*ComputeStorageDescriptor `json:"storage,omitempty"`
1313
1314
1315
1316
1317
1318 ForceSendFields []string `json:"-"`
1319
1320
1321
1322
1323 NullFields []string `json:"-"`
1324 }
1325
1326 func (s *ComputeEngineShapeDescriptor) MarshalJSON() ([]byte, error) {
1327 type NoMethod ComputeEngineShapeDescriptor
1328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1329 }
1330
1331
1332
1333 type ComputeEngineSoleTenantMigrationTarget struct {
1334 }
1335
1336
1337 type ComputeStorageDescriptor struct {
1338
1339 SizeGb int64 `json:"sizeGb,omitempty"`
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349 Type string `json:"type,omitempty"`
1350
1351
1352
1353
1354
1355 ForceSendFields []string `json:"-"`
1356
1357
1358
1359
1360 NullFields []string `json:"-"`
1361 }
1362
1363 func (s *ComputeStorageDescriptor) MarshalJSON() ([]byte, error) {
1364 type NoMethod ComputeStorageDescriptor
1365 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1366 }
1367
1368
1369 type CpuUsageSample struct {
1370
1371
1372
1373 UtilizedPercentage float64 `json:"utilizedPercentage,omitempty"`
1374
1375
1376
1377
1378
1379 ForceSendFields []string `json:"-"`
1380
1381
1382
1383
1384 NullFields []string `json:"-"`
1385 }
1386
1387 func (s *CpuUsageSample) MarshalJSON() ([]byte, error) {
1388 type NoMethod CpuUsageSample
1389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1390 }
1391
1392 func (s *CpuUsageSample) UnmarshalJSON(data []byte) error {
1393 type NoMethod CpuUsageSample
1394 var s1 struct {
1395 UtilizedPercentage gensupport.JSONFloat64 `json:"utilizedPercentage"`
1396 *NoMethod
1397 }
1398 s1.NoMethod = (*NoMethod)(s)
1399 if err := json.Unmarshal(data, &s1); err != nil {
1400 return err
1401 }
1402 s.UtilizedPercentage = float64(s1.UtilizedPercentage)
1403 return nil
1404 }
1405
1406
1407 type DailyResourceUsageAggregation struct {
1408
1409 Cpu *DailyResourceUsageAggregationCPU `json:"cpu,omitempty"`
1410
1411 Date *Date `json:"date,omitempty"`
1412
1413 Disk *DailyResourceUsageAggregationDisk `json:"disk,omitempty"`
1414
1415 Memory *DailyResourceUsageAggregationMemory `json:"memory,omitempty"`
1416
1417 Network *DailyResourceUsageAggregationNetwork `json:"network,omitempty"`
1418
1419
1420
1421
1422
1423 ForceSendFields []string `json:"-"`
1424
1425
1426
1427
1428 NullFields []string `json:"-"`
1429 }
1430
1431 func (s *DailyResourceUsageAggregation) MarshalJSON() ([]byte, error) {
1432 type NoMethod DailyResourceUsageAggregation
1433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1434 }
1435
1436
1437 type DailyResourceUsageAggregationCPU struct {
1438
1439 UtilizationPercentage *DailyResourceUsageAggregationStats `json:"utilizationPercentage,omitempty"`
1440
1441
1442
1443
1444
1445 ForceSendFields []string `json:"-"`
1446
1447
1448
1449
1450 NullFields []string `json:"-"`
1451 }
1452
1453 func (s *DailyResourceUsageAggregationCPU) MarshalJSON() ([]byte, error) {
1454 type NoMethod DailyResourceUsageAggregationCPU
1455 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1456 }
1457
1458
1459 type DailyResourceUsageAggregationDisk struct {
1460
1461 Iops *DailyResourceUsageAggregationStats `json:"iops,omitempty"`
1462
1463 ReadIops *DailyResourceUsageAggregationStats `json:"readIops,omitempty"`
1464
1465 WriteIops *DailyResourceUsageAggregationStats `json:"writeIops,omitempty"`
1466
1467
1468
1469
1470
1471 ForceSendFields []string `json:"-"`
1472
1473
1474
1475
1476 NullFields []string `json:"-"`
1477 }
1478
1479 func (s *DailyResourceUsageAggregationDisk) MarshalJSON() ([]byte, error) {
1480 type NoMethod DailyResourceUsageAggregationDisk
1481 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1482 }
1483
1484
1485
1486 type DailyResourceUsageAggregationMemory struct {
1487
1488 UtilizationPercentage *DailyResourceUsageAggregationStats `json:"utilizationPercentage,omitempty"`
1489
1490
1491
1492
1493
1494 ForceSendFields []string `json:"-"`
1495
1496
1497
1498
1499 NullFields []string `json:"-"`
1500 }
1501
1502 func (s *DailyResourceUsageAggregationMemory) MarshalJSON() ([]byte, error) {
1503 type NoMethod DailyResourceUsageAggregationMemory
1504 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1505 }
1506
1507
1508
1509 type DailyResourceUsageAggregationNetwork struct {
1510
1511 EgressBps *DailyResourceUsageAggregationStats `json:"egressBps,omitempty"`
1512
1513 IngressBps *DailyResourceUsageAggregationStats `json:"ingressBps,omitempty"`
1514
1515
1516
1517
1518
1519 ForceSendFields []string `json:"-"`
1520
1521
1522
1523
1524 NullFields []string `json:"-"`
1525 }
1526
1527 func (s *DailyResourceUsageAggregationNetwork) MarshalJSON() ([]byte, error) {
1528 type NoMethod DailyResourceUsageAggregationNetwork
1529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1530 }
1531
1532
1533
1534 type DailyResourceUsageAggregationStats struct {
1535
1536 Average float64 `json:"average,omitempty"`
1537
1538 Median float64 `json:"median,omitempty"`
1539
1540 NinteyFifthPercentile float64 `json:"ninteyFifthPercentile,omitempty"`
1541
1542 Peak float64 `json:"peak,omitempty"`
1543
1544
1545
1546
1547
1548 ForceSendFields []string `json:"-"`
1549
1550
1551
1552
1553 NullFields []string `json:"-"`
1554 }
1555
1556 func (s *DailyResourceUsageAggregationStats) MarshalJSON() ([]byte, error) {
1557 type NoMethod DailyResourceUsageAggregationStats
1558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1559 }
1560
1561 func (s *DailyResourceUsageAggregationStats) UnmarshalJSON(data []byte) error {
1562 type NoMethod DailyResourceUsageAggregationStats
1563 var s1 struct {
1564 Average gensupport.JSONFloat64 `json:"average"`
1565 Median gensupport.JSONFloat64 `json:"median"`
1566 NinteyFifthPercentile gensupport.JSONFloat64 `json:"ninteyFifthPercentile"`
1567 Peak gensupport.JSONFloat64 `json:"peak"`
1568 *NoMethod
1569 }
1570 s1.NoMethod = (*NoMethod)(s)
1571 if err := json.Unmarshal(data, &s1); err != nil {
1572 return err
1573 }
1574 s.Average = float64(s1.Average)
1575 s.Median = float64(s1.Median)
1576 s.NinteyFifthPercentile = float64(s1.NinteyFifthPercentile)
1577 s.Peak = float64(s1.Peak)
1578 return nil
1579 }
1580
1581
1582 type DatabaseDeploymentDetails struct {
1583
1584 AggregatedStats *DatabaseDeploymentDetailsAggregatedStats `json:"aggregatedStats,omitempty"`
1585
1586 Edition string `json:"edition,omitempty"`
1587
1588 GeneratedId string `json:"generatedId,omitempty"`
1589
1590 ManualUniqueId string `json:"manualUniqueId,omitempty"`
1591
1592 Mysql *MysqlDatabaseDeployment `json:"mysql,omitempty"`
1593
1594 Postgresql *PostgreSqlDatabaseDeployment `json:"postgresql,omitempty"`
1595
1596 SqlServer *SqlServerDatabaseDeployment `json:"sqlServer,omitempty"`
1597
1598 Topology *DatabaseDeploymentTopology `json:"topology,omitempty"`
1599
1600 Version string `json:"version,omitempty"`
1601
1602
1603
1604
1605
1606 ForceSendFields []string `json:"-"`
1607
1608
1609
1610
1611 NullFields []string `json:"-"`
1612 }
1613
1614 func (s *DatabaseDeploymentDetails) MarshalJSON() ([]byte, error) {
1615 type NoMethod DatabaseDeploymentDetails
1616 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1617 }
1618
1619
1620
1621 type DatabaseDeploymentDetailsAggregatedStats struct {
1622
1623 DatabaseCount int64 `json:"databaseCount,omitempty"`
1624
1625
1626
1627
1628
1629 ForceSendFields []string `json:"-"`
1630
1631
1632
1633
1634 NullFields []string `json:"-"`
1635 }
1636
1637 func (s *DatabaseDeploymentDetailsAggregatedStats) MarshalJSON() ([]byte, error) {
1638 type NoMethod DatabaseDeploymentDetailsAggregatedStats
1639 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1640 }
1641
1642
1643 type DatabaseDeploymentTopology struct {
1644
1645 CoreCount int64 `json:"coreCount,omitempty"`
1646
1647 CoreLimit int64 `json:"coreLimit,omitempty"`
1648
1649 DiskAllocatedBytes int64 `json:"diskAllocatedBytes,omitempty,string"`
1650
1651 DiskUsedBytes int64 `json:"diskUsedBytes,omitempty,string"`
1652
1653 Instances []*DatabaseInstance `json:"instances,omitempty"`
1654
1655 MemoryBytes int64 `json:"memoryBytes,omitempty,string"`
1656
1657 MemoryLimitBytes int64 `json:"memoryLimitBytes,omitempty,string"`
1658
1659
1660
1661
1662
1663 ForceSendFields []string `json:"-"`
1664
1665
1666
1667
1668 NullFields []string `json:"-"`
1669 }
1670
1671 func (s *DatabaseDeploymentTopology) MarshalJSON() ([]byte, error) {
1672 type NoMethod DatabaseDeploymentTopology
1673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1674 }
1675
1676
1677 type DatabaseDetails struct {
1678
1679 AllocatedStorageBytes int64 `json:"allocatedStorageBytes,omitempty,string"`
1680
1681 DatabaseName string `json:"databaseName,omitempty"`
1682
1683
1684 ParentDatabaseDeployment *DatabaseDetailsParentDatabaseDeployment `json:"parentDatabaseDeployment,omitempty"`
1685
1686 Schemas []*DatabaseSchema `json:"schemas,omitempty"`
1687
1688
1689
1690
1691
1692 ForceSendFields []string `json:"-"`
1693
1694
1695
1696
1697 NullFields []string `json:"-"`
1698 }
1699
1700 func (s *DatabaseDetails) MarshalJSON() ([]byte, error) {
1701 type NoMethod DatabaseDetails
1702 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1703 }
1704
1705
1706
1707 type DatabaseDetailsParentDatabaseDeployment struct {
1708
1709 GeneratedId string `json:"generatedId,omitempty"`
1710
1711
1712 ManualUniqueId string `json:"manualUniqueId,omitempty"`
1713
1714
1715
1716
1717
1718 ForceSendFields []string `json:"-"`
1719
1720
1721
1722
1723 NullFields []string `json:"-"`
1724 }
1725
1726 func (s *DatabaseDetailsParentDatabaseDeployment) MarshalJSON() ([]byte, error) {
1727 type NoMethod DatabaseDetailsParentDatabaseDeployment
1728 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1729 }
1730
1731
1732 type DatabaseInstance struct {
1733
1734 Hosts []*DatabaseInstanceHost `json:"hosts,omitempty"`
1735
1736 InstanceName string `json:"instanceName,omitempty"`
1737
1738
1739
1740
1741
1742
1743
1744 Role string `json:"role,omitempty"`
1745
1746
1747
1748
1749
1750 ForceSendFields []string `json:"-"`
1751
1752
1753
1754
1755 NullFields []string `json:"-"`
1756 }
1757
1758 func (s *DatabaseInstance) MarshalJSON() ([]byte, error) {
1759 type NoMethod DatabaseInstance
1760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1761 }
1762
1763
1764 type DatabaseInstanceHost struct {
1765
1766 HostName string `json:"hostName,omitempty"`
1767
1768
1769
1770
1771
1772 ForceSendFields []string `json:"-"`
1773
1774
1775
1776
1777 NullFields []string `json:"-"`
1778 }
1779
1780 func (s *DatabaseInstanceHost) MarshalJSON() ([]byte, error) {
1781 type NoMethod DatabaseInstanceHost
1782 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1783 }
1784
1785
1786 type DatabaseObjects struct {
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797 Category string `json:"category,omitempty"`
1798
1799 Count int64 `json:"count,omitempty,string"`
1800
1801
1802
1803
1804
1805 ForceSendFields []string `json:"-"`
1806
1807
1808
1809
1810 NullFields []string `json:"-"`
1811 }
1812
1813 func (s *DatabaseObjects) MarshalJSON() ([]byte, error) {
1814 type NoMethod DatabaseObjects
1815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1816 }
1817
1818
1819
1820 type DatabasePreferences struct {
1821
1822
1823 MssqlToCloudSqlForSqlServerPreferences *DatabasePreferencesCloudSqlSqlServer `json:"mssqlToCloudSqlForSqlServerPreferences,omitempty"`
1824
1825
1826 MysqlToCloudSqlForMysqlPreferences *DatabasePreferencesCloudSqlMySql `json:"mysqlToCloudSqlForMysqlPreferences,omitempty"`
1827
1828
1829 PostgresqlToCloudSqlForPostgresqlPreferences *DatabasePreferencesCloudSqlPostgreSql `json:"postgresqlToCloudSqlForPostgresqlPreferences,omitempty"`
1830
1831
1832
1833
1834
1835
1836 ForceSendFields []string `json:"-"`
1837
1838
1839
1840
1841
1842 NullFields []string `json:"-"`
1843 }
1844
1845 func (s *DatabasePreferences) MarshalJSON() ([]byte, error) {
1846 type NoMethod DatabasePreferences
1847 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1848 }
1849
1850
1851
1852 type DatabasePreferencesCloudSqlCommon struct {
1853
1854 Backup *DatabasePreferencesCloudSqlCommonBackup `json:"backup,omitempty"`
1855
1856
1857
1858
1859
1860
1861
1862
1863 CommitmentPlan string `json:"commitmentPlan,omitempty"`
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877 Edition string `json:"edition,omitempty"`
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890 PersistentDiskType string `json:"persistentDiskType,omitempty"`
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912 SizingOptimizationStrategy string `json:"sizingOptimizationStrategy,omitempty"`
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ZoneAvailability string `json:"zoneAvailability,omitempty"`
1925
1926
1927
1928
1929
1930 ForceSendFields []string `json:"-"`
1931
1932
1933
1934
1935 NullFields []string `json:"-"`
1936 }
1937
1938 func (s *DatabasePreferencesCloudSqlCommon) MarshalJSON() ([]byte, error) {
1939 type NoMethod DatabasePreferencesCloudSqlCommon
1940 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1941 }
1942
1943
1944 type DatabasePreferencesCloudSqlCommonBackup struct {
1945
1946
1947
1948
1949
1950
1951
1952
1953 BackupMode string `json:"backupMode,omitempty"`
1954
1955
1956
1957
1958
1959 ForceSendFields []string `json:"-"`
1960
1961
1962
1963
1964 NullFields []string `json:"-"`
1965 }
1966
1967 func (s *DatabasePreferencesCloudSqlCommonBackup) MarshalJSON() ([]byte, error) {
1968 type NoMethod DatabasePreferencesCloudSqlCommonBackup
1969 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1970 }
1971
1972
1973 type DatabasePreferencesCloudSqlMySql struct {
1974
1975 Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"`
1976
1977
1978
1979
1980
1981 ForceSendFields []string `json:"-"`
1982
1983
1984
1985
1986 NullFields []string `json:"-"`
1987 }
1988
1989 func (s *DatabasePreferencesCloudSqlMySql) MarshalJSON() ([]byte, error) {
1990 type NoMethod DatabasePreferencesCloudSqlMySql
1991 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1992 }
1993
1994
1995
1996 type DatabasePreferencesCloudSqlPostgreSql struct {
1997
1998 Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"`
1999
2000
2001
2002
2003
2004 ForceSendFields []string `json:"-"`
2005
2006
2007
2008
2009 NullFields []string `json:"-"`
2010 }
2011
2012 func (s *DatabasePreferencesCloudSqlPostgreSql) MarshalJSON() ([]byte, error) {
2013 type NoMethod DatabasePreferencesCloudSqlPostgreSql
2014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2015 }
2016
2017
2018
2019 type DatabasePreferencesCloudSqlSqlServer struct {
2020
2021 Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"`
2022
2023
2024
2025
2026
2027
2028
2029
2030 Multithreading string `json:"multithreading,omitempty"`
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041 VersionType string `json:"versionType,omitempty"`
2042
2043
2044
2045
2046
2047 ForceSendFields []string `json:"-"`
2048
2049
2050
2051
2052 NullFields []string `json:"-"`
2053 }
2054
2055 func (s *DatabasePreferencesCloudSqlSqlServer) MarshalJSON() ([]byte, error) {
2056 type NoMethod DatabasePreferencesCloudSqlSqlServer
2057 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2058 }
2059
2060
2061 type DatabaseSchema struct {
2062
2063 Mysql *MySqlSchemaDetails `json:"mysql,omitempty"`
2064
2065 Objects []*DatabaseObjects `json:"objects,omitempty"`
2066
2067 Postgresql *PostgreSqlSchemaDetails `json:"postgresql,omitempty"`
2068
2069 SchemaName string `json:"schemaName,omitempty"`
2070
2071 SqlServer *SqlServerSchemaDetails `json:"sqlServer,omitempty"`
2072
2073 TablesSizeBytes int64 `json:"tablesSizeBytes,omitempty,string"`
2074
2075
2076
2077
2078
2079 ForceSendFields []string `json:"-"`
2080
2081
2082
2083
2084 NullFields []string `json:"-"`
2085 }
2086
2087 func (s *DatabaseSchema) MarshalJSON() ([]byte, error) {
2088 type NoMethod DatabaseSchema
2089 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2090 }
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101 type Date struct {
2102
2103
2104
2105 Day int64 `json:"day,omitempty"`
2106
2107
2108 Month int64 `json:"month,omitempty"`
2109
2110
2111 Year int64 `json:"year,omitempty"`
2112
2113
2114
2115
2116
2117 ForceSendFields []string `json:"-"`
2118
2119
2120
2121
2122 NullFields []string `json:"-"`
2123 }
2124
2125 func (s *Date) MarshalJSON() ([]byte, error) {
2126 type NoMethod Date
2127 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2128 }
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145 type DateTime struct {
2146
2147
2148 Day int64 `json:"day,omitempty"`
2149
2150
2151
2152 Hours int64 `json:"hours,omitempty"`
2153
2154
2155 Minutes int64 `json:"minutes,omitempty"`
2156
2157
2158 Month int64 `json:"month,omitempty"`
2159
2160
2161 Nanos int64 `json:"nanos,omitempty"`
2162
2163
2164
2165 Seconds int64 `json:"seconds,omitempty"`
2166
2167 TimeZone *TimeZone `json:"timeZone,omitempty"`
2168
2169
2170
2171 UtcOffset string `json:"utcOffset,omitempty"`
2172
2173
2174 Year int64 `json:"year,omitempty"`
2175
2176
2177
2178
2179
2180 ForceSendFields []string `json:"-"`
2181
2182
2183
2184
2185 NullFields []string `json:"-"`
2186 }
2187
2188 func (s *DateTime) MarshalJSON() ([]byte, error) {
2189 type NoMethod DateTime
2190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2191 }
2192
2193
2194 type DetectedSoftware struct {
2195
2196
2197 SoftwareFamily string `json:"softwareFamily,omitempty"`
2198
2199 SoftwareName string `json:"softwareName,omitempty"`
2200
2201
2202
2203
2204
2205 ForceSendFields []string `json:"-"`
2206
2207
2208
2209
2210 NullFields []string `json:"-"`
2211 }
2212
2213 func (s *DetectedSoftware) MarshalJSON() ([]byte, error) {
2214 type NoMethod DetectedSoftware
2215 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2216 }
2217
2218
2219
2220 type DiscoveryClient struct {
2221
2222 CreateTime string `json:"createTime,omitempty"`
2223
2224
2225 Description string `json:"description,omitempty"`
2226
2227
2228 DisplayName string `json:"displayName,omitempty"`
2229
2230 Errors []*Status `json:"errors,omitempty"`
2231
2232
2233 ExpireTime string `json:"expireTime,omitempty"`
2234
2235
2236 HeartbeatTime string `json:"heartbeatTime,omitempty"`
2237
2238 Labels map[string]string `json:"labels,omitempty"`
2239
2240 Name string `json:"name,omitempty"`
2241
2242
2243 ServiceAccount string `json:"serviceAccount,omitempty"`
2244
2245 SignalsEndpoint string `json:"signalsEndpoint,omitempty"`
2246
2247
2248 Source string `json:"source,omitempty"`
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259 State string `json:"state,omitempty"`
2260
2261
2262
2263
2264 Ttl string `json:"ttl,omitempty"`
2265
2266
2267
2268 UpdateTime string `json:"updateTime,omitempty"`
2269
2270 Version string `json:"version,omitempty"`
2271
2272
2273 googleapi.ServerResponse `json:"-"`
2274
2275
2276
2277
2278
2279 ForceSendFields []string `json:"-"`
2280
2281
2282
2283
2284 NullFields []string `json:"-"`
2285 }
2286
2287 func (s *DiscoveryClient) MarshalJSON() ([]byte, error) {
2288 type NoMethod DiscoveryClient
2289 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2290 }
2291
2292
2293 type DiskEntry struct {
2294
2295 DiskLabel string `json:"diskLabel,omitempty"`
2296
2297 DiskLabelType string `json:"diskLabelType,omitempty"`
2298
2299 HwAddress string `json:"hwAddress,omitempty"`
2300
2301 InterfaceType string `json:"interfaceType,omitempty"`
2302
2303 Partitions *DiskPartitionList `json:"partitions,omitempty"`
2304
2305 Status string `json:"status,omitempty"`
2306
2307 TotalCapacityBytes int64 `json:"totalCapacityBytes,omitempty,string"`
2308
2309 TotalFreeBytes int64 `json:"totalFreeBytes,omitempty,string"`
2310
2311 VmwareConfig *VmwareDiskConfig `json:"vmwareConfig,omitempty"`
2312
2313
2314
2315
2316
2317 ForceSendFields []string `json:"-"`
2318
2319
2320
2321
2322 NullFields []string `json:"-"`
2323 }
2324
2325 func (s *DiskEntry) MarshalJSON() ([]byte, error) {
2326 type NoMethod DiskEntry
2327 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2328 }
2329
2330
2331 type DiskEntryList struct {
2332
2333 Entries []*DiskEntry `json:"entries,omitempty"`
2334
2335
2336
2337
2338
2339 ForceSendFields []string `json:"-"`
2340
2341
2342
2343
2344 NullFields []string `json:"-"`
2345 }
2346
2347 func (s *DiskEntryList) MarshalJSON() ([]byte, error) {
2348 type NoMethod DiskEntryList
2349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2350 }
2351
2352
2353 type DiskPartition struct {
2354
2355 CapacityBytes int64 `json:"capacityBytes,omitempty,string"`
2356
2357 FileSystem string `json:"fileSystem,omitempty"`
2358
2359 FreeBytes int64 `json:"freeBytes,omitempty,string"`
2360
2361 MountPoint string `json:"mountPoint,omitempty"`
2362
2363 SubPartitions *DiskPartitionList `json:"subPartitions,omitempty"`
2364
2365 Type string `json:"type,omitempty"`
2366
2367 Uuid string `json:"uuid,omitempty"`
2368
2369
2370
2371
2372
2373 ForceSendFields []string `json:"-"`
2374
2375
2376
2377
2378 NullFields []string `json:"-"`
2379 }
2380
2381 func (s *DiskPartition) MarshalJSON() ([]byte, error) {
2382 type NoMethod DiskPartition
2383 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2384 }
2385
2386
2387 type DiskPartitionList struct {
2388
2389 Entries []*DiskPartition `json:"entries,omitempty"`
2390
2391
2392
2393
2394
2395 ForceSendFields []string `json:"-"`
2396
2397
2398
2399
2400 NullFields []string `json:"-"`
2401 }
2402
2403 func (s *DiskPartitionList) MarshalJSON() ([]byte, error) {
2404 type NoMethod DiskPartitionList
2405 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2406 }
2407
2408
2409 type DiskUsageSample struct {
2410
2411
2412
2413 AverageIops float64 `json:"averageIops,omitempty"`
2414
2415
2416 AverageReadIops float64 `json:"averageReadIops,omitempty"`
2417
2418
2419 AverageWriteIops float64 `json:"averageWriteIops,omitempty"`
2420
2421
2422
2423
2424
2425 ForceSendFields []string `json:"-"`
2426
2427
2428
2429
2430 NullFields []string `json:"-"`
2431 }
2432
2433 func (s *DiskUsageSample) MarshalJSON() ([]byte, error) {
2434 type NoMethod DiskUsageSample
2435 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2436 }
2437
2438 func (s *DiskUsageSample) UnmarshalJSON(data []byte) error {
2439 type NoMethod DiskUsageSample
2440 var s1 struct {
2441 AverageIops gensupport.JSONFloat64 `json:"averageIops"`
2442 AverageReadIops gensupport.JSONFloat64 `json:"averageReadIops"`
2443 AverageWriteIops gensupport.JSONFloat64 `json:"averageWriteIops"`
2444 *NoMethod
2445 }
2446 s1.NoMethod = (*NoMethod)(s)
2447 if err := json.Unmarshal(data, &s1); err != nil {
2448 return err
2449 }
2450 s.AverageIops = float64(s1.AverageIops)
2451 s.AverageReadIops = float64(s1.AverageReadIops)
2452 s.AverageWriteIops = float64(s1.AverageWriteIops)
2453 return nil
2454 }
2455
2456
2457
2458
2459
2460 type Empty struct {
2461
2462 googleapi.ServerResponse `json:"-"`
2463 }
2464
2465
2466
2467 type ErrorFrame struct {
2468
2469 IngestionTime string `json:"ingestionTime,omitempty"`
2470
2471 Name string `json:"name,omitempty"`
2472
2473 OriginalFrame *AssetFrame `json:"originalFrame,omitempty"`
2474
2475
2476 Violations []*FrameViolationEntry `json:"violations,omitempty"`
2477
2478
2479 googleapi.ServerResponse `json:"-"`
2480
2481
2482
2483
2484
2485 ForceSendFields []string `json:"-"`
2486
2487
2488
2489
2490 NullFields []string `json:"-"`
2491 }
2492
2493 func (s *ErrorFrame) MarshalJSON() ([]byte, error) {
2494 type NoMethod ErrorFrame
2495 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2496 }
2497
2498
2499 type ExecutionReport struct {
2500
2501
2502 ExecutionErrors *ValidationReport `json:"executionErrors,omitempty"`
2503
2504 FramesReported int64 `json:"framesReported,omitempty"`
2505
2506
2507 JobErrors []*ImportError `json:"jobErrors,omitempty"`
2508
2509 TotalRowsCount int64 `json:"totalRowsCount,omitempty"`
2510
2511
2512
2513
2514
2515 ForceSendFields []string `json:"-"`
2516
2517
2518
2519
2520 NullFields []string `json:"-"`
2521 }
2522
2523 func (s *ExecutionReport) MarshalJSON() ([]byte, error) {
2524 type NoMethod ExecutionReport
2525 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2526 }
2527
2528
2529
2530 type FileValidationReport struct {
2531
2532 FileErrors []*ImportError `json:"fileErrors,omitempty"`
2533
2534 FileName string `json:"fileName,omitempty"`
2535
2536
2537 PartialReport bool `json:"partialReport,omitempty"`
2538
2539 RowErrors []*ImportRowError `json:"rowErrors,omitempty"`
2540
2541
2542
2543
2544
2545 ForceSendFields []string `json:"-"`
2546
2547
2548
2549
2550 NullFields []string `json:"-"`
2551 }
2552
2553 func (s *FileValidationReport) MarshalJSON() ([]byte, error) {
2554 type NoMethod FileValidationReport
2555 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2556 }
2557
2558
2559
2560 type FitDescriptor struct {
2561
2562
2563
2564
2565
2566
2567
2568 FitLevel string `json:"fitLevel,omitempty"`
2569
2570
2571
2572
2573
2574 ForceSendFields []string `json:"-"`
2575
2576
2577
2578
2579 NullFields []string `json:"-"`
2580 }
2581
2582 func (s *FitDescriptor) MarshalJSON() ([]byte, error) {
2583 type NoMethod FitDescriptor
2584 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2585 }
2586
2587
2588
2589 type FrameViolationEntry struct {
2590
2591 Field string `json:"field,omitempty"`
2592
2593 Violation string `json:"violation,omitempty"`
2594
2595
2596
2597
2598
2599 ForceSendFields []string `json:"-"`
2600
2601
2602
2603
2604 NullFields []string `json:"-"`
2605 }
2606
2607 func (s *FrameViolationEntry) MarshalJSON() ([]byte, error) {
2608 type NoMethod FrameViolationEntry
2609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2610 }
2611
2612
2613 type Frames struct {
2614
2615 FramesData []*AssetFrame `json:"framesData,omitempty"`
2616
2617
2618
2619
2620
2621 ForceSendFields []string `json:"-"`
2622
2623
2624
2625
2626 NullFields []string `json:"-"`
2627 }
2628
2629 func (s *Frames) MarshalJSON() ([]byte, error) {
2630 type NoMethod Frames
2631 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2632 }
2633
2634
2635 type FstabEntry struct {
2636
2637 File string `json:"file,omitempty"`
2638
2639 Freq int64 `json:"freq,omitempty"`
2640
2641 Mntops string `json:"mntops,omitempty"`
2642
2643
2644 Passno int64 `json:"passno,omitempty"`
2645
2646 Spec string `json:"spec,omitempty"`
2647
2648 Vfstype string `json:"vfstype,omitempty"`
2649
2650
2651
2652
2653
2654 ForceSendFields []string `json:"-"`
2655
2656
2657
2658
2659 NullFields []string `json:"-"`
2660 }
2661
2662 func (s *FstabEntry) MarshalJSON() ([]byte, error) {
2663 type NoMethod FstabEntry
2664 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2665 }
2666
2667
2668 type FstabEntryList struct {
2669
2670 Entries []*FstabEntry `json:"entries,omitempty"`
2671
2672
2673
2674
2675
2676 ForceSendFields []string `json:"-"`
2677
2678
2679
2680
2681 NullFields []string `json:"-"`
2682 }
2683
2684 func (s *FstabEntryList) MarshalJSON() ([]byte, error) {
2685 type NoMethod FstabEntryList
2686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2687 }
2688
2689
2690
2691 type GCSPayloadInfo struct {
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710 Format string `json:"format,omitempty"`
2711
2712 Path string `json:"path,omitempty"`
2713
2714
2715
2716
2717
2718 ForceSendFields []string `json:"-"`
2719
2720
2721
2722
2723 NullFields []string `json:"-"`
2724 }
2725
2726 func (s *GCSPayloadInfo) MarshalJSON() ([]byte, error) {
2727 type NoMethod GCSPayloadInfo
2728 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2729 }
2730
2731
2732 type GenericInsight struct {
2733
2734
2735
2736
2737 AdditionalInformation []string `json:"additionalInformation,omitempty"`
2738
2739
2740
2741 DefaultMessage string `json:"defaultMessage,omitempty"`
2742
2743
2744
2745 MessageId int64 `json:"messageId,omitempty,string"`
2746
2747
2748
2749
2750
2751 ForceSendFields []string `json:"-"`
2752
2753
2754
2755
2756 NullFields []string `json:"-"`
2757 }
2758
2759 func (s *GenericInsight) MarshalJSON() ([]byte, error) {
2760 type NoMethod GenericInsight
2761 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2762 }
2763
2764
2765 type GenericPlatformDetails struct {
2766
2767
2768
2769 Location string `json:"location,omitempty"`
2770
2771
2772
2773
2774
2775 ForceSendFields []string `json:"-"`
2776
2777
2778
2779
2780 NullFields []string `json:"-"`
2781 }
2782
2783 func (s *GenericPlatformDetails) MarshalJSON() ([]byte, error) {
2784 type NoMethod GenericPlatformDetails
2785 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2786 }
2787
2788
2789 type GoogleKubernetesEngineMigrationTarget struct {
2790 }
2791
2792
2793
2794
2795
2796 type Group struct {
2797
2798 CreateTime string `json:"createTime,omitempty"`
2799
2800 Description string `json:"description,omitempty"`
2801
2802 DisplayName string `json:"displayName,omitempty"`
2803
2804 Labels map[string]string `json:"labels,omitempty"`
2805
2806 Name string `json:"name,omitempty"`
2807
2808 UpdateTime string `json:"updateTime,omitempty"`
2809
2810
2811 googleapi.ServerResponse `json:"-"`
2812
2813
2814
2815
2816
2817 ForceSendFields []string `json:"-"`
2818
2819
2820
2821
2822 NullFields []string `json:"-"`
2823 }
2824
2825 func (s *Group) MarshalJSON() ([]byte, error) {
2826 type NoMethod Group
2827 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2828 }
2829
2830
2831 type GuestConfigDetails struct {
2832
2833 Fstab *FstabEntryList `json:"fstab,omitempty"`
2834
2835 Hosts *HostsEntryList `json:"hosts,omitempty"`
2836
2837 Issue string `json:"issue,omitempty"`
2838
2839 NfsExports *NfsExportList `json:"nfsExports,omitempty"`
2840
2841 Selinux *Selinux `json:"selinux,omitempty"`
2842
2843
2844
2845
2846
2847 ForceSendFields []string `json:"-"`
2848
2849
2850
2851
2852 NullFields []string `json:"-"`
2853 }
2854
2855 func (s *GuestConfigDetails) MarshalJSON() ([]byte, error) {
2856 type NoMethod GuestConfigDetails
2857 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2858 }
2859
2860
2861 type GuestInstalledApplication struct {
2862
2863 Licenses []string `json:"licenses,omitempty"`
2864
2865 Name string `json:"name,omitempty"`
2866
2867 Path string `json:"path,omitempty"`
2868
2869 Time string `json:"time,omitempty"`
2870
2871 Vendor string `json:"vendor,omitempty"`
2872
2873 Version string `json:"version,omitempty"`
2874
2875
2876
2877
2878
2879 ForceSendFields []string `json:"-"`
2880
2881
2882
2883
2884 NullFields []string `json:"-"`
2885 }
2886
2887 func (s *GuestInstalledApplication) MarshalJSON() ([]byte, error) {
2888 type NoMethod GuestInstalledApplication
2889 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2890 }
2891
2892
2893 type GuestInstalledApplicationList struct {
2894
2895 Entries []*GuestInstalledApplication `json:"entries,omitempty"`
2896
2897
2898
2899
2900
2901 ForceSendFields []string `json:"-"`
2902
2903
2904
2905
2906 NullFields []string `json:"-"`
2907 }
2908
2909 func (s *GuestInstalledApplicationList) MarshalJSON() ([]byte, error) {
2910 type NoMethod GuestInstalledApplicationList
2911 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2912 }
2913
2914
2915 type GuestOsDetails struct {
2916
2917 Config *GuestConfigDetails `json:"config,omitempty"`
2918
2919 Runtime *GuestRuntimeDetails `json:"runtime,omitempty"`
2920
2921
2922
2923
2924
2925 ForceSendFields []string `json:"-"`
2926
2927
2928
2929
2930 NullFields []string `json:"-"`
2931 }
2932
2933 func (s *GuestOsDetails) MarshalJSON() ([]byte, error) {
2934 type NoMethod GuestOsDetails
2935 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2936 }
2937
2938
2939 type GuestRuntimeDetails struct {
2940
2941 Domain string `json:"domain,omitempty"`
2942
2943 InstalledApps *GuestInstalledApplicationList `json:"installedApps,omitempty"`
2944
2945 LastUptime *Date `json:"lastUptime,omitempty"`
2946
2947 MachineName string `json:"machineName,omitempty"`
2948
2949 NetworkInfo *RuntimeNetworkInfo `json:"networkInfo,omitempty"`
2950
2951 OpenFileList *OpenFileList `json:"openFileList,omitempty"`
2952
2953 Processes *RunningProcessList `json:"processes,omitempty"`
2954
2955 Services *RunningServiceList `json:"services,omitempty"`
2956
2957
2958
2959
2960
2961 ForceSendFields []string `json:"-"`
2962
2963
2964
2965
2966 NullFields []string `json:"-"`
2967 }
2968
2969 func (s *GuestRuntimeDetails) MarshalJSON() ([]byte, error) {
2970 type NoMethod GuestRuntimeDetails
2971 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2972 }
2973
2974
2975 type HostsEntry struct {
2976
2977 HostNames []string `json:"hostNames,omitempty"`
2978
2979 Ip string `json:"ip,omitempty"`
2980
2981
2982
2983
2984
2985 ForceSendFields []string `json:"-"`
2986
2987
2988
2989
2990 NullFields []string `json:"-"`
2991 }
2992
2993 func (s *HostsEntry) MarshalJSON() ([]byte, error) {
2994 type NoMethod HostsEntry
2995 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2996 }
2997
2998
2999 type HostsEntryList struct {
3000
3001 Entries []*HostsEntry `json:"entries,omitempty"`
3002
3003
3004
3005
3006
3007 ForceSendFields []string `json:"-"`
3008
3009
3010
3011
3012 NullFields []string `json:"-"`
3013 }
3014
3015 func (s *HostsEntryList) MarshalJSON() ([]byte, error) {
3016 type NoMethod HostsEntryList
3017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3018 }
3019
3020
3021 type ImportDataFile struct {
3022
3023 CreateTime string `json:"createTime,omitempty"`
3024
3025
3026 DisplayName string `json:"displayName,omitempty"`
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045 Format string `json:"format,omitempty"`
3046
3047 Name string `json:"name,omitempty"`
3048
3049
3050
3051
3052
3053
3054 State string `json:"state,omitempty"`
3055
3056
3057 UploadFileInfo *UploadFileInfo `json:"uploadFileInfo,omitempty"`
3058
3059
3060 googleapi.ServerResponse `json:"-"`
3061
3062
3063
3064
3065
3066 ForceSendFields []string `json:"-"`
3067
3068
3069
3070
3071 NullFields []string `json:"-"`
3072 }
3073
3074 func (s *ImportDataFile) MarshalJSON() ([]byte, error) {
3075 type NoMethod ImportDataFile
3076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3077 }
3078
3079
3080
3081 type ImportError struct {
3082
3083 ErrorDetails string `json:"errorDetails,omitempty"`
3084
3085
3086
3087
3088
3089
3090
3091 Severity string `json:"severity,omitempty"`
3092
3093
3094
3095
3096
3097 ForceSendFields []string `json:"-"`
3098
3099
3100
3101
3102 NullFields []string `json:"-"`
3103 }
3104
3105 func (s *ImportError) MarshalJSON() ([]byte, error) {
3106 type NoMethod ImportError
3107 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3108 }
3109
3110
3111
3112 type ImportJob struct {
3113
3114 AssetSource string `json:"assetSource,omitempty"`
3115
3116 CompleteTime string `json:"completeTime,omitempty"`
3117
3118 CreateTime string `json:"createTime,omitempty"`
3119
3120 DisplayName string `json:"displayName,omitempty"`
3121
3122
3123 ExecutionReport *ExecutionReport `json:"executionReport,omitempty"`
3124
3125 GcsPayload *GCSPayloadInfo `json:"gcsPayload,omitempty"`
3126
3127
3128 InlinePayload *InlinePayloadInfo `json:"inlinePayload,omitempty"`
3129
3130 Labels map[string]string `json:"labels,omitempty"`
3131
3132 Name string `json:"name,omitempty"`
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146 State string `json:"state,omitempty"`
3147
3148 UpdateTime string `json:"updateTime,omitempty"`
3149
3150
3151 ValidationReport *ValidationReport `json:"validationReport,omitempty"`
3152
3153
3154 googleapi.ServerResponse `json:"-"`
3155
3156
3157
3158
3159
3160 ForceSendFields []string `json:"-"`
3161
3162
3163
3164
3165 NullFields []string `json:"-"`
3166 }
3167
3168 func (s *ImportJob) MarshalJSON() ([]byte, error) {
3169 type NoMethod ImportJob
3170 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3171 }
3172
3173
3174 type ImportRowError struct {
3175
3176 ArchiveError *ImportRowErrorArchiveErrorDetails `json:"archiveError,omitempty"`
3177
3178 AssetTitle string `json:"assetTitle,omitempty"`
3179
3180 CsvError *ImportRowErrorCsvErrorDetails `json:"csvError,omitempty"`
3181
3182 Errors []*ImportError `json:"errors,omitempty"`
3183
3184 JsonError *ImportRowErrorJsonErrorDetails `json:"jsonError,omitempty"`
3185
3186 RowNumber int64 `json:"rowNumber,omitempty"`
3187
3188 VmName string `json:"vmName,omitempty"`
3189
3190 VmUuid string `json:"vmUuid,omitempty"`
3191
3192 XlsxError *ImportRowErrorXlsxErrorDetails `json:"xlsxError,omitempty"`
3193
3194
3195
3196
3197
3198 ForceSendFields []string `json:"-"`
3199
3200
3201
3202
3203 NullFields []string `json:"-"`
3204 }
3205
3206 func (s *ImportRowError) MarshalJSON() ([]byte, error) {
3207 type NoMethod ImportRowError
3208 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3209 }
3210
3211
3212 type ImportRowErrorArchiveErrorDetails struct {
3213
3214 CsvError *ImportRowErrorCsvErrorDetails `json:"csvError,omitempty"`
3215
3216 FilePath string `json:"filePath,omitempty"`
3217
3218
3219
3220
3221
3222 ForceSendFields []string `json:"-"`
3223
3224
3225
3226
3227 NullFields []string `json:"-"`
3228 }
3229
3230 func (s *ImportRowErrorArchiveErrorDetails) MarshalJSON() ([]byte, error) {
3231 type NoMethod ImportRowErrorArchiveErrorDetails
3232 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3233 }
3234
3235
3236 type ImportRowErrorCsvErrorDetails struct {
3237
3238 RowNumber int64 `json:"rowNumber,omitempty"`
3239
3240
3241
3242
3243
3244 ForceSendFields []string `json:"-"`
3245
3246
3247
3248
3249 NullFields []string `json:"-"`
3250 }
3251
3252 func (s *ImportRowErrorCsvErrorDetails) MarshalJSON() ([]byte, error) {
3253 type NoMethod ImportRowErrorCsvErrorDetails
3254 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3255 }
3256
3257
3258 type ImportRowErrorJsonErrorDetails struct {
3259 }
3260
3261
3262 type ImportRowErrorXlsxErrorDetails struct {
3263
3264 RowNumber int64 `json:"rowNumber,omitempty"`
3265
3266 Sheet string `json:"sheet,omitempty"`
3267
3268
3269
3270
3271
3272 ForceSendFields []string `json:"-"`
3273
3274
3275
3276
3277 NullFields []string `json:"-"`
3278 }
3279
3280 func (s *ImportRowErrorXlsxErrorDetails) MarshalJSON() ([]byte, error) {
3281 type NoMethod ImportRowErrorXlsxErrorDetails
3282 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3283 }
3284
3285
3286 type InlinePayloadInfo struct {
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305 Format string `json:"format,omitempty"`
3306
3307 Payload []*PayloadFile `json:"payload,omitempty"`
3308
3309
3310
3311
3312
3313 ForceSendFields []string `json:"-"`
3314
3315
3316
3317
3318 NullFields []string `json:"-"`
3319 }
3320
3321 func (s *InlinePayloadInfo) MarshalJSON() ([]byte, error) {
3322 type NoMethod InlinePayloadInfo
3323 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3324 }
3325
3326
3327 type Insight struct {
3328
3329 GenericInsight *GenericInsight `json:"genericInsight,omitempty"`
3330
3331
3332 MigrationInsight *MigrationInsight `json:"migrationInsight,omitempty"`
3333
3334
3335 SoftwareInsight *SoftwareInsight `json:"softwareInsight,omitempty"`
3336
3337
3338
3339
3340
3341 ForceSendFields []string `json:"-"`
3342
3343
3344
3345
3346 NullFields []string `json:"-"`
3347 }
3348
3349 func (s *Insight) MarshalJSON() ([]byte, error) {
3350 type NoMethod Insight
3351 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3352 }
3353
3354
3355 type InsightList struct {
3356
3357 Insights []*Insight `json:"insights,omitempty"`
3358
3359 UpdateTime string `json:"updateTime,omitempty"`
3360
3361
3362
3363
3364
3365 ForceSendFields []string `json:"-"`
3366
3367
3368
3369
3370 NullFields []string `json:"-"`
3371 }
3372
3373 func (s *InsightList) MarshalJSON() ([]byte, error) {
3374 type NoMethod InsightList
3375 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3376 }
3377
3378
3379 type Issue struct {
3380
3381 CompatibilityIssue *IssueCompatibilityIssue `json:"compatibilityIssue,omitempty"`
3382
3383 Description string `json:"description,omitempty"`
3384
3385 IssueCode string `json:"issueCode,omitempty"`
3386
3387
3388
3389
3390
3391 ForceSendFields []string `json:"-"`
3392
3393
3394
3395
3396 NullFields []string `json:"-"`
3397 }
3398
3399 func (s *Issue) MarshalJSON() ([]byte, error) {
3400 type NoMethod Issue
3401 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3402 }
3403
3404
3405 type IssueCompatibilityIssue struct {
3406
3407
3408
3409 AssociatedObject string `json:"associatedObject,omitempty"`
3410
3411
3412
3413
3414
3415
3416
3417
3418 AssociatedObjectType string `json:"associatedObjectType,omitempty"`
3419
3420
3421
3422 AssociatedValue string `json:"associatedValue,omitempty"`
3423
3424
3425
3426
3427
3428
3429 Category string `json:"category,omitempty"`
3430
3431
3432
3433
3434
3435 ForceSendFields []string `json:"-"`
3436
3437
3438
3439
3440 NullFields []string `json:"-"`
3441 }
3442
3443 func (s *IssueCompatibilityIssue) MarshalJSON() ([]byte, error) {
3444 type NoMethod IssueCompatibilityIssue
3445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3446 }
3447
3448
3449 type ListAssetsResponse struct {
3450
3451 Assets []*Asset `json:"assets,omitempty"`
3452
3453
3454 NextPageToken string `json:"nextPageToken,omitempty"`
3455
3456 Unreachable []string `json:"unreachable,omitempty"`
3457
3458
3459 googleapi.ServerResponse `json:"-"`
3460
3461
3462
3463
3464
3465 ForceSendFields []string `json:"-"`
3466
3467
3468
3469
3470 NullFields []string `json:"-"`
3471 }
3472
3473 func (s *ListAssetsResponse) MarshalJSON() ([]byte, error) {
3474 type NoMethod ListAssetsResponse
3475 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3476 }
3477
3478
3479
3480 type ListDiscoveryClientsResponse struct {
3481
3482 DiscoveryClients []*DiscoveryClient `json:"discoveryClients,omitempty"`
3483
3484
3485 NextPageToken string `json:"nextPageToken,omitempty"`
3486
3487 Unreachable []string `json:"unreachable,omitempty"`
3488
3489
3490 googleapi.ServerResponse `json:"-"`
3491
3492
3493
3494
3495
3496 ForceSendFields []string `json:"-"`
3497
3498
3499
3500
3501 NullFields []string `json:"-"`
3502 }
3503
3504 func (s *ListDiscoveryClientsResponse) MarshalJSON() ([]byte, error) {
3505 type NoMethod ListDiscoveryClientsResponse
3506 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3507 }
3508
3509
3510 type ListErrorFramesResponse struct {
3511
3512 ErrorFrames []*ErrorFrame `json:"errorFrames,omitempty"`
3513
3514
3515 NextPageToken string `json:"nextPageToken,omitempty"`
3516
3517 Unreachable []string `json:"unreachable,omitempty"`
3518
3519
3520 googleapi.ServerResponse `json:"-"`
3521
3522
3523
3524
3525
3526 ForceSendFields []string `json:"-"`
3527
3528
3529
3530
3531 NullFields []string `json:"-"`
3532 }
3533
3534 func (s *ListErrorFramesResponse) MarshalJSON() ([]byte, error) {
3535 type NoMethod ListErrorFramesResponse
3536 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3537 }
3538
3539
3540 type ListGroupsResponse struct {
3541
3542 Groups []*Group `json:"groups,omitempty"`
3543
3544
3545 NextPageToken string `json:"nextPageToken,omitempty"`
3546
3547 Unreachable []string `json:"unreachable,omitempty"`
3548
3549
3550 googleapi.ServerResponse `json:"-"`
3551
3552
3553
3554
3555
3556 ForceSendFields []string `json:"-"`
3557
3558
3559
3560
3561 NullFields []string `json:"-"`
3562 }
3563
3564 func (s *ListGroupsResponse) MarshalJSON() ([]byte, error) {
3565 type NoMethod ListGroupsResponse
3566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3567 }
3568
3569
3570
3571 type ListImportDataFilesResponse struct {
3572
3573 ImportDataFiles []*ImportDataFile `json:"importDataFiles,omitempty"`
3574
3575
3576 NextPageToken string `json:"nextPageToken,omitempty"`
3577
3578 Unreachable []string `json:"unreachable,omitempty"`
3579
3580
3581 googleapi.ServerResponse `json:"-"`
3582
3583
3584
3585
3586
3587 ForceSendFields []string `json:"-"`
3588
3589
3590
3591
3592 NullFields []string `json:"-"`
3593 }
3594
3595 func (s *ListImportDataFilesResponse) MarshalJSON() ([]byte, error) {
3596 type NoMethod ListImportDataFilesResponse
3597 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3598 }
3599
3600
3601 type ListImportJobsResponse struct {
3602
3603 ImportJobs []*ImportJob `json:"importJobs,omitempty"`
3604
3605
3606 NextPageToken string `json:"nextPageToken,omitempty"`
3607
3608 Unreachable []string `json:"unreachable,omitempty"`
3609
3610
3611 googleapi.ServerResponse `json:"-"`
3612
3613
3614
3615
3616
3617 ForceSendFields []string `json:"-"`
3618
3619
3620
3621
3622 NullFields []string `json:"-"`
3623 }
3624
3625 func (s *ListImportJobsResponse) MarshalJSON() ([]byte, error) {
3626 type NoMethod ListImportJobsResponse
3627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3628 }
3629
3630
3631 type ListLocationsResponse struct {
3632
3633
3634 Locations []*Location `json:"locations,omitempty"`
3635
3636 NextPageToken string `json:"nextPageToken,omitempty"`
3637
3638
3639 googleapi.ServerResponse `json:"-"`
3640
3641
3642
3643
3644
3645 ForceSendFields []string `json:"-"`
3646
3647
3648
3649
3650 NullFields []string `json:"-"`
3651 }
3652
3653 func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
3654 type NoMethod ListLocationsResponse
3655 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3656 }
3657
3658
3659 type ListOperationsResponse struct {
3660
3661 NextPageToken string `json:"nextPageToken,omitempty"`
3662
3663
3664 Operations []*Operation `json:"operations,omitempty"`
3665
3666
3667 googleapi.ServerResponse `json:"-"`
3668
3669
3670
3671
3672
3673 ForceSendFields []string `json:"-"`
3674
3675
3676
3677
3678 NullFields []string `json:"-"`
3679 }
3680
3681 func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
3682 type NoMethod ListOperationsResponse
3683 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3684 }
3685
3686
3687 type ListPreferenceSetsResponse struct {
3688
3689
3690 NextPageToken string `json:"nextPageToken,omitempty"`
3691
3692 PreferenceSets []*PreferenceSet `json:"preferenceSets,omitempty"`
3693
3694 Unreachable []string `json:"unreachable,omitempty"`
3695
3696
3697 googleapi.ServerResponse `json:"-"`
3698
3699
3700
3701
3702
3703 ForceSendFields []string `json:"-"`
3704
3705
3706
3707
3708 NullFields []string `json:"-"`
3709 }
3710
3711 func (s *ListPreferenceSetsResponse) MarshalJSON() ([]byte, error) {
3712 type NoMethod ListPreferenceSetsResponse
3713 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3714 }
3715
3716
3717 type ListReportConfigsResponse struct {
3718
3719
3720 NextPageToken string `json:"nextPageToken,omitempty"`
3721
3722 ReportConfigs []*ReportConfig `json:"reportConfigs,omitempty"`
3723
3724 Unreachable []string `json:"unreachable,omitempty"`
3725
3726
3727 googleapi.ServerResponse `json:"-"`
3728
3729
3730
3731
3732
3733 ForceSendFields []string `json:"-"`
3734
3735
3736
3737
3738 NullFields []string `json:"-"`
3739 }
3740
3741 func (s *ListReportConfigsResponse) MarshalJSON() ([]byte, error) {
3742 type NoMethod ListReportConfigsResponse
3743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3744 }
3745
3746
3747 type ListReportsResponse struct {
3748
3749
3750 NextPageToken string `json:"nextPageToken,omitempty"`
3751
3752 Reports []*Report `json:"reports,omitempty"`
3753
3754 Unreachable []string `json:"unreachable,omitempty"`
3755
3756
3757 googleapi.ServerResponse `json:"-"`
3758
3759
3760
3761
3762
3763 ForceSendFields []string `json:"-"`
3764
3765
3766
3767
3768 NullFields []string `json:"-"`
3769 }
3770
3771 func (s *ListReportsResponse) MarshalJSON() ([]byte, error) {
3772 type NoMethod ListReportsResponse
3773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3774 }
3775
3776
3777 type ListSourcesResponse struct {
3778
3779
3780 NextPageToken string `json:"nextPageToken,omitempty"`
3781
3782 Sources []*Source `json:"sources,omitempty"`
3783
3784 Unreachable []string `json:"unreachable,omitempty"`
3785
3786
3787 googleapi.ServerResponse `json:"-"`
3788
3789
3790
3791
3792
3793 ForceSendFields []string `json:"-"`
3794
3795
3796
3797
3798 NullFields []string `json:"-"`
3799 }
3800
3801 func (s *ListSourcesResponse) MarshalJSON() ([]byte, error) {
3802 type NoMethod ListSourcesResponse
3803 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3804 }
3805
3806
3807 type Location struct {
3808
3809
3810 DisplayName string `json:"displayName,omitempty"`
3811
3812
3813 Labels map[string]string `json:"labels,omitempty"`
3814
3815 LocationId string `json:"locationId,omitempty"`
3816
3817
3818 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3819
3820
3821
3822 Name string `json:"name,omitempty"`
3823
3824
3825 googleapi.ServerResponse `json:"-"`
3826
3827
3828
3829
3830
3831 ForceSendFields []string `json:"-"`
3832
3833
3834
3835
3836 NullFields []string `json:"-"`
3837 }
3838
3839 func (s *Location) MarshalJSON() ([]byte, error) {
3840 type NoMethod Location
3841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3842 }
3843
3844
3845
3846
3847 type MachinePreferences struct {
3848
3849
3850
3851 AllowedMachineSeries []*MachineSeries `json:"allowedMachineSeries,omitempty"`
3852
3853
3854
3855
3856
3857 ForceSendFields []string `json:"-"`
3858
3859
3860
3861
3862 NullFields []string `json:"-"`
3863 }
3864
3865 func (s *MachinePreferences) MarshalJSON() ([]byte, error) {
3866 type NoMethod MachinePreferences
3867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3868 }
3869
3870
3871
3872 type MachineSeries struct {
3873
3874
3875
3876
3877
3878 Code string `json:"code,omitempty"`
3879
3880
3881
3882
3883
3884 ForceSendFields []string `json:"-"`
3885
3886
3887
3888
3889 NullFields []string `json:"-"`
3890 }
3891
3892 func (s *MachineSeries) MarshalJSON() ([]byte, error) {
3893 type NoMethod MachineSeries
3894 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3895 }
3896
3897
3898 type MemoryUsageSample struct {
3899
3900
3901 UtilizedPercentage float64 `json:"utilizedPercentage,omitempty"`
3902
3903
3904
3905
3906
3907 ForceSendFields []string `json:"-"`
3908
3909
3910
3911
3912 NullFields []string `json:"-"`
3913 }
3914
3915 func (s *MemoryUsageSample) MarshalJSON() ([]byte, error) {
3916 type NoMethod MemoryUsageSample
3917 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3918 }
3919
3920 func (s *MemoryUsageSample) UnmarshalJSON(data []byte) error {
3921 type NoMethod MemoryUsageSample
3922 var s1 struct {
3923 UtilizedPercentage gensupport.JSONFloat64 `json:"utilizedPercentage"`
3924 *NoMethod
3925 }
3926 s1.NoMethod = (*NoMethod)(s)
3927 if err := json.Unmarshal(data, &s1); err != nil {
3928 return err
3929 }
3930 s.UtilizedPercentage = float64(s1.UtilizedPercentage)
3931 return nil
3932 }
3933
3934
3935 type MigrationInsight struct {
3936
3937 CloudDatabaseTarget *CloudDatabaseMigrationTarget `json:"cloudDatabaseTarget,omitempty"`
3938
3939
3940 ComputeEngineSoleTenantTarget *ComputeEngineSoleTenantMigrationTarget `json:"computeEngineSoleTenantTarget,omitempty"`
3941
3942 ComputeEngineTarget *ComputeEngineMigrationTarget `json:"computeEngineTarget,omitempty"`
3943
3944
3945 Fit *FitDescriptor `json:"fit,omitempty"`
3946
3947 GkeTarget *GoogleKubernetesEngineMigrationTarget `json:"gkeTarget,omitempty"`
3948
3949 Issues []*Issue `json:"issues,omitempty"`
3950
3951 VmwareEngineTarget *VmwareEngineMigrationTarget `json:"vmwareEngineTarget,omitempty"`
3952
3953
3954
3955
3956
3957 ForceSendFields []string `json:"-"`
3958
3959
3960
3961
3962 NullFields []string `json:"-"`
3963 }
3964
3965 func (s *MigrationInsight) MarshalJSON() ([]byte, error) {
3966 type NoMethod MigrationInsight
3967 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3968 }
3969
3970
3971 type Money struct {
3972
3973 CurrencyCode string `json:"currencyCode,omitempty"`
3974
3975
3976
3977
3978
3979 Nanos int64 `json:"nanos,omitempty"`
3980
3981
3982 Units int64 `json:"units,omitempty,string"`
3983
3984
3985
3986
3987
3988 ForceSendFields []string `json:"-"`
3989
3990
3991
3992
3993 NullFields []string `json:"-"`
3994 }
3995
3996 func (s *Money) MarshalJSON() ([]byte, error) {
3997 type NoMethod Money
3998 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3999 }
4000
4001
4002 type MySqlPlugin struct {
4003
4004 Enabled bool `json:"enabled,omitempty"`
4005
4006 Plugin string `json:"plugin,omitempty"`
4007
4008 Version string `json:"version,omitempty"`
4009
4010
4011
4012
4013
4014 ForceSendFields []string `json:"-"`
4015
4016
4017
4018
4019 NullFields []string `json:"-"`
4020 }
4021
4022 func (s *MySqlPlugin) MarshalJSON() ([]byte, error) {
4023 type NoMethod MySqlPlugin
4024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4025 }
4026
4027
4028 type MySqlProperty struct {
4029
4030 Enabled bool `json:"enabled,omitempty"`
4031
4032 NumericValue int64 `json:"numericValue,omitempty,string"`
4033
4034 Property string `json:"property,omitempty"`
4035
4036
4037
4038
4039
4040 ForceSendFields []string `json:"-"`
4041
4042
4043
4044
4045 NullFields []string `json:"-"`
4046 }
4047
4048 func (s *MySqlProperty) MarshalJSON() ([]byte, error) {
4049 type NoMethod MySqlProperty
4050 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4051 }
4052
4053
4054 type MySqlSchemaDetails struct {
4055
4056 StorageEngines []*MySqlStorageEngineDetails `json:"storageEngines,omitempty"`
4057
4058
4059
4060
4061
4062 ForceSendFields []string `json:"-"`
4063
4064
4065
4066
4067 NullFields []string `json:"-"`
4068 }
4069
4070 func (s *MySqlSchemaDetails) MarshalJSON() ([]byte, error) {
4071 type NoMethod MySqlSchemaDetails
4072 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4073 }
4074
4075
4076 type MySqlStorageEngineDetails struct {
4077
4078 EncryptedTableCount int64 `json:"encryptedTableCount,omitempty"`
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094 Engine string `json:"engine,omitempty"`
4095
4096 TableCount int64 `json:"tableCount,omitempty"`
4097
4098
4099
4100
4101
4102 ForceSendFields []string `json:"-"`
4103
4104
4105
4106
4107 NullFields []string `json:"-"`
4108 }
4109
4110 func (s *MySqlStorageEngineDetails) MarshalJSON() ([]byte, error) {
4111 type NoMethod MySqlStorageEngineDetails
4112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4113 }
4114
4115
4116 type MySqlVariable struct {
4117
4118 Category string `json:"category,omitempty"`
4119
4120 Value string `json:"value,omitempty"`
4121
4122 Variable string `json:"variable,omitempty"`
4123
4124
4125
4126
4127
4128 ForceSendFields []string `json:"-"`
4129
4130
4131
4132
4133 NullFields []string `json:"-"`
4134 }
4135
4136 func (s *MySqlVariable) MarshalJSON() ([]byte, error) {
4137 type NoMethod MySqlVariable
4138 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4139 }
4140
4141
4142 type MysqlDatabaseDeployment struct {
4143
4144 Plugins []*MySqlPlugin `json:"plugins,omitempty"`
4145
4146 Properties []*MySqlProperty `json:"properties,omitempty"`
4147
4148 ResourceGroupsCount int64 `json:"resourceGroupsCount,omitempty"`
4149
4150 Variables []*MySqlVariable `json:"variables,omitempty"`
4151
4152
4153
4154
4155
4156 ForceSendFields []string `json:"-"`
4157
4158
4159
4160
4161 NullFields []string `json:"-"`
4162 }
4163
4164 func (s *MysqlDatabaseDeployment) MarshalJSON() ([]byte, error) {
4165 type NoMethod MysqlDatabaseDeployment
4166 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4167 }
4168
4169
4170 type NetworkAdapterDetails struct {
4171
4172 AdapterType string `json:"adapterType,omitempty"`
4173
4174 Addresses *NetworkAddressList `json:"addresses,omitempty"`
4175
4176 MacAddress string `json:"macAddress,omitempty"`
4177
4178
4179
4180
4181
4182 ForceSendFields []string `json:"-"`
4183
4184
4185
4186
4187 NullFields []string `json:"-"`
4188 }
4189
4190 func (s *NetworkAdapterDetails) MarshalJSON() ([]byte, error) {
4191 type NoMethod NetworkAdapterDetails
4192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4193 }
4194
4195
4196 type NetworkAdapterList struct {
4197
4198 NetworkAdapters []*NetworkAdapterDetails `json:"networkAdapters,omitempty"`
4199
4200
4201
4202
4203
4204 ForceSendFields []string `json:"-"`
4205
4206
4207
4208
4209 NullFields []string `json:"-"`
4210 }
4211
4212 func (s *NetworkAdapterList) MarshalJSON() ([]byte, error) {
4213 type NoMethod NetworkAdapterList
4214 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4215 }
4216
4217
4218 type NetworkAddress struct {
4219
4220
4221
4222
4223
4224
4225 Assignment string `json:"assignment,omitempty"`
4226
4227 Bcast string `json:"bcast,omitempty"`
4228
4229 Fqdn string `json:"fqdn,omitempty"`
4230
4231 IpAddress string `json:"ipAddress,omitempty"`
4232
4233 SubnetMask string `json:"subnetMask,omitempty"`
4234
4235
4236
4237
4238
4239 ForceSendFields []string `json:"-"`
4240
4241
4242
4243
4244 NullFields []string `json:"-"`
4245 }
4246
4247 func (s *NetworkAddress) MarshalJSON() ([]byte, error) {
4248 type NoMethod NetworkAddress
4249 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4250 }
4251
4252
4253 type NetworkAddressList struct {
4254
4255 Addresses []*NetworkAddress `json:"addresses,omitempty"`
4256
4257
4258
4259
4260
4261 ForceSendFields []string `json:"-"`
4262
4263
4264
4265
4266 NullFields []string `json:"-"`
4267 }
4268
4269 func (s *NetworkAddressList) MarshalJSON() ([]byte, error) {
4270 type NoMethod NetworkAddressList
4271 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4272 }
4273
4274 type NetworkConnection struct {
4275
4276 LocalIpAddress string `json:"localIpAddress,omitempty"`
4277
4278 LocalPort int64 `json:"localPort,omitempty"`
4279
4280 Pid int64 `json:"pid,omitempty,string"`
4281
4282 ProcessName string `json:"processName,omitempty"`
4283
4284 Protocol string `json:"protocol,omitempty"`
4285
4286 RemoteIpAddress string `json:"remoteIpAddress,omitempty"`
4287
4288 RemotePort int64 `json:"remotePort,omitempty"`
4289
4290 State string `json:"state,omitempty"`
4291
4292
4293
4294
4295
4296 ForceSendFields []string `json:"-"`
4297
4298
4299
4300
4301 NullFields []string `json:"-"`
4302 }
4303
4304 func (s *NetworkConnection) MarshalJSON() ([]byte, error) {
4305 type NoMethod NetworkConnection
4306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4307 }
4308
4309
4310 type NetworkConnectionList struct {
4311
4312 Entries []*NetworkConnection `json:"entries,omitempty"`
4313
4314
4315
4316
4317
4318 ForceSendFields []string `json:"-"`
4319
4320
4321
4322
4323 NullFields []string `json:"-"`
4324 }
4325
4326 func (s *NetworkConnectionList) MarshalJSON() ([]byte, error) {
4327 type NoMethod NetworkConnectionList
4328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4329 }
4330
4331
4332
4333 type NetworkUsageSample struct {
4334
4335
4336 AverageEgressBps float64 `json:"averageEgressBps,omitempty"`
4337
4338
4339 AverageIngressBps float64 `json:"averageIngressBps,omitempty"`
4340
4341
4342
4343
4344
4345 ForceSendFields []string `json:"-"`
4346
4347
4348
4349
4350 NullFields []string `json:"-"`
4351 }
4352
4353 func (s *NetworkUsageSample) MarshalJSON() ([]byte, error) {
4354 type NoMethod NetworkUsageSample
4355 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4356 }
4357
4358 func (s *NetworkUsageSample) UnmarshalJSON(data []byte) error {
4359 type NoMethod NetworkUsageSample
4360 var s1 struct {
4361 AverageEgressBps gensupport.JSONFloat64 `json:"averageEgressBps"`
4362 AverageIngressBps gensupport.JSONFloat64 `json:"averageIngressBps"`
4363 *NoMethod
4364 }
4365 s1.NoMethod = (*NoMethod)(s)
4366 if err := json.Unmarshal(data, &s1); err != nil {
4367 return err
4368 }
4369 s.AverageEgressBps = float64(s1.AverageEgressBps)
4370 s.AverageIngressBps = float64(s1.AverageIngressBps)
4371 return nil
4372 }
4373
4374
4375 type NfsExport struct {
4376
4377 ExportDirectory string `json:"exportDirectory,omitempty"`
4378
4379 Hosts []string `json:"hosts,omitempty"`
4380
4381
4382
4383
4384
4385 ForceSendFields []string `json:"-"`
4386
4387
4388
4389
4390 NullFields []string `json:"-"`
4391 }
4392
4393 func (s *NfsExport) MarshalJSON() ([]byte, error) {
4394 type NoMethod NfsExport
4395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4396 }
4397
4398
4399 type NfsExportList struct {
4400
4401 Entries []*NfsExport `json:"entries,omitempty"`
4402
4403
4404
4405
4406
4407 ForceSendFields []string `json:"-"`
4408
4409
4410
4411
4412 NullFields []string `json:"-"`
4413 }
4414
4415 func (s *NfsExportList) MarshalJSON() ([]byte, error) {
4416 type NoMethod NfsExportList
4417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4418 }
4419
4420
4421 type OpenFileDetails struct {
4422
4423 Command string `json:"command,omitempty"`
4424
4425 FilePath string `json:"filePath,omitempty"`
4426
4427 FileType string `json:"fileType,omitempty"`
4428
4429 User string `json:"user,omitempty"`
4430
4431
4432
4433
4434
4435 ForceSendFields []string `json:"-"`
4436
4437
4438
4439
4440 NullFields []string `json:"-"`
4441 }
4442
4443 func (s *OpenFileDetails) MarshalJSON() ([]byte, error) {
4444 type NoMethod OpenFileDetails
4445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4446 }
4447
4448
4449 type OpenFileList struct {
4450
4451 Entries []*OpenFileDetails `json:"entries,omitempty"`
4452
4453
4454
4455
4456
4457 ForceSendFields []string `json:"-"`
4458
4459
4460
4461
4462 NullFields []string `json:"-"`
4463 }
4464
4465 func (s *OpenFileList) MarshalJSON() ([]byte, error) {
4466 type NoMethod OpenFileList
4467 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4468 }
4469
4470
4471
4472 type Operation struct {
4473
4474
4475
4476 Done bool `json:"done,omitempty"`
4477
4478 Error *Status `json:"error,omitempty"`
4479
4480
4481
4482
4483 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
4484
4485
4486
4487 Name string `json:"name,omitempty"`
4488
4489
4490
4491
4492
4493
4494
4495 Response googleapi.RawMessage `json:"response,omitempty"`
4496
4497
4498 googleapi.ServerResponse `json:"-"`
4499
4500
4501
4502
4503
4504 ForceSendFields []string `json:"-"`
4505
4506
4507
4508
4509 NullFields []string `json:"-"`
4510 }
4511
4512 func (s *Operation) MarshalJSON() ([]byte, error) {
4513 type NoMethod Operation
4514 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4515 }
4516
4517
4518 type OperationMetadata struct {
4519
4520 ApiVersion string `json:"apiVersion,omitempty"`
4521
4522 CreateTime string `json:"createTime,omitempty"`
4523
4524 EndTime string `json:"endTime,omitempty"`
4525
4526
4527
4528
4529 RequestedCancellation bool `json:"requestedCancellation,omitempty"`
4530
4531 StatusMessage string `json:"statusMessage,omitempty"`
4532
4533
4534 Target string `json:"target,omitempty"`
4535
4536 Verb string `json:"verb,omitempty"`
4537
4538
4539
4540
4541
4542 ForceSendFields []string `json:"-"`
4543
4544
4545
4546
4547 NullFields []string `json:"-"`
4548 }
4549
4550 func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
4551 type NoMethod OperationMetadata
4552 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4553 }
4554
4555
4556 type PayloadFile struct {
4557
4558 Data string `json:"data,omitempty"`
4559
4560 Name string `json:"name,omitempty"`
4561
4562
4563
4564
4565
4566 ForceSendFields []string `json:"-"`
4567
4568
4569
4570
4571 NullFields []string `json:"-"`
4572 }
4573
4574 func (s *PayloadFile) MarshalJSON() ([]byte, error) {
4575 type NoMethod PayloadFile
4576 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4577 }
4578
4579
4580 type PerformanceSample struct {
4581
4582 Cpu *CpuUsageSample `json:"cpu,omitempty"`
4583
4584 Disk *DiskUsageSample `json:"disk,omitempty"`
4585
4586 Memory *MemoryUsageSample `json:"memory,omitempty"`
4587
4588 Network *NetworkUsageSample `json:"network,omitempty"`
4589
4590
4591 SampleTime string `json:"sampleTime,omitempty"`
4592
4593
4594
4595
4596
4597 ForceSendFields []string `json:"-"`
4598
4599
4600
4601
4602 NullFields []string `json:"-"`
4603 }
4604
4605 func (s *PerformanceSample) MarshalJSON() ([]byte, error) {
4606 type NoMethod PerformanceSample
4607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4608 }
4609
4610
4611 type PhysicalPlatformDetails struct {
4612
4613
4614
4615 Location string `json:"location,omitempty"`
4616
4617
4618
4619
4620
4621 ForceSendFields []string `json:"-"`
4622
4623
4624
4625
4626 NullFields []string `json:"-"`
4627 }
4628
4629 func (s *PhysicalPlatformDetails) MarshalJSON() ([]byte, error) {
4630 type NoMethod PhysicalPlatformDetails
4631 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4632 }
4633
4634
4635 type PlatformDetails struct {
4636
4637 AwsEc2Details *AwsEc2PlatformDetails `json:"awsEc2Details,omitempty"`
4638
4639 AzureVmDetails *AzureVmPlatformDetails `json:"azureVmDetails,omitempty"`
4640
4641 GenericDetails *GenericPlatformDetails `json:"genericDetails,omitempty"`
4642
4643 PhysicalDetails *PhysicalPlatformDetails `json:"physicalDetails,omitempty"`
4644
4645 VmwareDetails *VmwarePlatformDetails `json:"vmwareDetails,omitempty"`
4646
4647
4648
4649
4650
4651 ForceSendFields []string `json:"-"`
4652
4653
4654
4655
4656 NullFields []string `json:"-"`
4657 }
4658
4659 func (s *PlatformDetails) MarshalJSON() ([]byte, error) {
4660 type NoMethod PlatformDetails
4661 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4662 }
4663
4664
4665
4666 type PostgreSqlDatabaseDeployment struct {
4667
4668 Properties []*PostgreSqlProperty `json:"properties,omitempty"`
4669
4670 Settings []*PostgreSqlSetting `json:"settings,omitempty"`
4671
4672
4673
4674
4675
4676 ForceSendFields []string `json:"-"`
4677
4678
4679
4680
4681 NullFields []string `json:"-"`
4682 }
4683
4684 func (s *PostgreSqlDatabaseDeployment) MarshalJSON() ([]byte, error) {
4685 type NoMethod PostgreSqlDatabaseDeployment
4686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4687 }
4688
4689
4690 type PostgreSqlExtension struct {
4691
4692 Extension string `json:"extension,omitempty"`
4693
4694 Version string `json:"version,omitempty"`
4695
4696
4697
4698
4699
4700 ForceSendFields []string `json:"-"`
4701
4702
4703
4704
4705 NullFields []string `json:"-"`
4706 }
4707
4708 func (s *PostgreSqlExtension) MarshalJSON() ([]byte, error) {
4709 type NoMethod PostgreSqlExtension
4710 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4711 }
4712
4713
4714 type PostgreSqlProperty struct {
4715
4716 Enabled bool `json:"enabled,omitempty"`
4717
4718 NumericValue int64 `json:"numericValue,omitempty,string"`
4719
4720 Property string `json:"property,omitempty"`
4721
4722
4723
4724
4725
4726 ForceSendFields []string `json:"-"`
4727
4728
4729
4730
4731 NullFields []string `json:"-"`
4732 }
4733
4734 func (s *PostgreSqlProperty) MarshalJSON() ([]byte, error) {
4735 type NoMethod PostgreSqlProperty
4736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4737 }
4738
4739
4740 type PostgreSqlSchemaDetails struct {
4741
4742 ForeignTablesCount int64 `json:"foreignTablesCount,omitempty"`
4743
4744 PostgresqlExtensions []*PostgreSqlExtension `json:"postgresqlExtensions,omitempty"`
4745
4746
4747
4748
4749
4750 ForceSendFields []string `json:"-"`
4751
4752
4753
4754
4755 NullFields []string `json:"-"`
4756 }
4757
4758 func (s *PostgreSqlSchemaDetails) MarshalJSON() ([]byte, error) {
4759 type NoMethod PostgreSqlSchemaDetails
4760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4761 }
4762
4763
4764 type PostgreSqlSetting struct {
4765
4766 BoolValue bool `json:"boolValue,omitempty"`
4767
4768 IntValue int64 `json:"intValue,omitempty,string"`
4769
4770 RealValue float64 `json:"realValue,omitempty"`
4771
4772 Setting string `json:"setting,omitempty"`
4773
4774 Source string `json:"source,omitempty"`
4775
4776
4777 StringValue string `json:"stringValue,omitempty"`
4778
4779 Unit string `json:"unit,omitempty"`
4780
4781
4782
4783
4784
4785 ForceSendFields []string `json:"-"`
4786
4787
4788
4789
4790 NullFields []string `json:"-"`
4791 }
4792
4793 func (s *PostgreSqlSetting) MarshalJSON() ([]byte, error) {
4794 type NoMethod PostgreSqlSetting
4795 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4796 }
4797
4798 func (s *PostgreSqlSetting) UnmarshalJSON(data []byte) error {
4799 type NoMethod PostgreSqlSetting
4800 var s1 struct {
4801 RealValue gensupport.JSONFloat64 `json:"realValue"`
4802 *NoMethod
4803 }
4804 s1.NoMethod = (*NoMethod)(s)
4805 if err := json.Unmarshal(data, &s1); err != nil {
4806 return err
4807 }
4808 s.RealValue = float64(s1.RealValue)
4809 return nil
4810 }
4811
4812
4813 type PreferenceSet struct {
4814
4815 CreateTime string `json:"createTime,omitempty"`
4816
4817
4818 DatabasePreferences *DatabasePreferences `json:"databasePreferences,omitempty"`
4819
4820 Description string `json:"description,omitempty"`
4821
4822 DisplayName string `json:"displayName,omitempty"`
4823
4824 Name string `json:"name,omitempty"`
4825
4826
4827
4828
4829 RegionPreferences *RegionPreferences `json:"regionPreferences,omitempty"`
4830
4831
4832 UpdateTime string `json:"updateTime,omitempty"`
4833
4834
4835 VirtualMachinePreferences *VirtualMachinePreferences `json:"virtualMachinePreferences,omitempty"`
4836
4837
4838 googleapi.ServerResponse `json:"-"`
4839
4840
4841
4842
4843
4844 ForceSendFields []string `json:"-"`
4845
4846
4847
4848
4849 NullFields []string `json:"-"`
4850 }
4851
4852 func (s *PreferenceSet) MarshalJSON() ([]byte, error) {
4853 type NoMethod PreferenceSet
4854 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4855 }
4856
4857
4858 type RegionPreferences struct {
4859
4860
4861
4862 PreferredRegions []string `json:"preferredRegions,omitempty"`
4863
4864
4865
4866
4867
4868 ForceSendFields []string `json:"-"`
4869
4870
4871
4872
4873 NullFields []string `json:"-"`
4874 }
4875
4876 func (s *RegionPreferences) MarshalJSON() ([]byte, error) {
4877 type NoMethod RegionPreferences
4878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4879 }
4880
4881
4882 type RemoveAssetsFromGroupRequest struct {
4883
4884
4885
4886
4887 AllowMissing bool `json:"allowMissing,omitempty"`
4888
4889
4890 Assets *AssetList `json:"assets,omitempty"`
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902 RequestId string `json:"requestId,omitempty"`
4903
4904
4905
4906
4907
4908 ForceSendFields []string `json:"-"`
4909
4910
4911
4912
4913 NullFields []string `json:"-"`
4914 }
4915
4916 func (s *RemoveAssetsFromGroupRequest) MarshalJSON() ([]byte, error) {
4917 type NoMethod RemoveAssetsFromGroupRequest
4918 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4919 }
4920
4921
4922
4923 type Report struct {
4924
4925 CreateTime string `json:"createTime,omitempty"`
4926
4927 Description string `json:"description,omitempty"`
4928
4929 DisplayName string `json:"displayName,omitempty"`
4930
4931 Name string `json:"name,omitempty"`
4932
4933
4934
4935
4936
4937
4938
4939 State string `json:"state,omitempty"`
4940
4941 Summary *ReportSummary `json:"summary,omitempty"`
4942
4943
4944
4945
4946
4947 Type string `json:"type,omitempty"`
4948
4949 UpdateTime string `json:"updateTime,omitempty"`
4950
4951
4952 googleapi.ServerResponse `json:"-"`
4953
4954
4955
4956
4957
4958 ForceSendFields []string `json:"-"`
4959
4960
4961
4962
4963 NullFields []string `json:"-"`
4964 }
4965
4966 func (s *Report) MarshalJSON() ([]byte, error) {
4967 type NoMethod Report
4968 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4969 }
4970
4971
4972 type ReportAssetFramesResponse struct {
4973
4974 googleapi.ServerResponse `json:"-"`
4975 }
4976
4977
4978
4979 type ReportConfig struct {
4980
4981 CreateTime string `json:"createTime,omitempty"`
4982
4983 Description string `json:"description,omitempty"`
4984
4985 DisplayName string `json:"displayName,omitempty"`
4986
4987
4988 GroupPreferencesetAssignments []*ReportConfigGroupPreferenceSetAssignment `json:"groupPreferencesetAssignments,omitempty"`
4989
4990 Name string `json:"name,omitempty"`
4991
4992 UpdateTime string `json:"updateTime,omitempty"`
4993
4994
4995 googleapi.ServerResponse `json:"-"`
4996
4997
4998
4999
5000
5001 ForceSendFields []string `json:"-"`
5002
5003
5004
5005
5006 NullFields []string `json:"-"`
5007 }
5008
5009 func (s *ReportConfig) MarshalJSON() ([]byte, error) {
5010 type NoMethod ReportConfig
5011 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5012 }
5013
5014
5015
5016 type ReportConfigGroupPreferenceSetAssignment struct {
5017
5018 Group string `json:"group,omitempty"`
5019
5020 PreferenceSet string `json:"preferenceSet,omitempty"`
5021
5022
5023
5024
5025
5026 ForceSendFields []string `json:"-"`
5027
5028
5029
5030
5031 NullFields []string `json:"-"`
5032 }
5033
5034 func (s *ReportConfigGroupPreferenceSetAssignment) MarshalJSON() ([]byte, error) {
5035 type NoMethod ReportConfigGroupPreferenceSetAssignment
5036 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5037 }
5038
5039
5040
5041
5042 type ReportSummary struct {
5043
5044
5045 AllAssetsStats *ReportSummaryAssetAggregateStats `json:"allAssetsStats,omitempty"`
5046
5047
5048 DatabaseStats *ReportSummaryAssetAggregateStats `json:"databaseStats,omitempty"`
5049
5050 GroupFindings []*ReportSummaryGroupFinding `json:"groupFindings,omitempty"`
5051
5052
5053 VirtualMachineStats *ReportSummaryAssetAggregateStats `json:"virtualMachineStats,omitempty"`
5054
5055
5056
5057
5058
5059 ForceSendFields []string `json:"-"`
5060
5061
5062
5063
5064 NullFields []string `json:"-"`
5065 }
5066
5067 func (s *ReportSummary) MarshalJSON() ([]byte, error) {
5068 type NoMethod ReportSummary
5069 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5070 }
5071
5072
5073
5074 type ReportSummaryAssetAggregateStats struct {
5075
5076 AssetAge *ReportSummaryChartData `json:"assetAge,omitempty"`
5077
5078 CoreCountHistogram *ReportSummaryHistogramChartData `json:"coreCountHistogram,omitempty"`
5079
5080
5081 DatabaseTypes *ReportSummaryChartData `json:"databaseTypes,omitempty"`
5082
5083 MemoryBytesHistogram *ReportSummaryHistogramChartData `json:"memoryBytesHistogram,omitempty"`
5084
5085 MemoryUtilization *ReportSummaryChartData `json:"memoryUtilization,omitempty"`
5086
5087 MemoryUtilizationChart *ReportSummaryUtilizationChartData `json:"memoryUtilizationChart,omitempty"`
5088
5089
5090 OperatingSystem *ReportSummaryChartData `json:"operatingSystem,omitempty"`
5091
5092 StorageBytesHistogram *ReportSummaryHistogramChartData `json:"storageBytesHistogram,omitempty"`
5093
5094 StorageUtilization *ReportSummaryChartData `json:"storageUtilization,omitempty"`
5095
5096 StorageUtilizationChart *ReportSummaryUtilizationChartData `json:"storageUtilizationChart,omitempty"`
5097
5098 TotalAssets int64 `json:"totalAssets,omitempty,string"`
5099
5100 TotalCores int64 `json:"totalCores,omitempty,string"`
5101
5102
5103 TotalMemoryBytes int64 `json:"totalMemoryBytes,omitempty,string"`
5104
5105
5106 TotalStorageBytes int64 `json:"totalStorageBytes,omitempty,string"`
5107
5108
5109
5110
5111
5112 ForceSendFields []string `json:"-"`
5113
5114
5115
5116
5117 NullFields []string `json:"-"`
5118 }
5119
5120 func (s *ReportSummaryAssetAggregateStats) MarshalJSON() ([]byte, error) {
5121 type NoMethod ReportSummaryAssetAggregateStats
5122 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5123 }
5124
5125
5126
5127 type ReportSummaryChartData struct {
5128
5129
5130 DataPoints []*ReportSummaryChartDataDataPoint `json:"dataPoints,omitempty"`
5131
5132
5133
5134
5135
5136 ForceSendFields []string `json:"-"`
5137
5138
5139
5140
5141 NullFields []string `json:"-"`
5142 }
5143
5144 func (s *ReportSummaryChartData) MarshalJSON() ([]byte, error) {
5145 type NoMethod ReportSummaryChartData
5146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5147 }
5148
5149
5150 type ReportSummaryChartDataDataPoint struct {
5151
5152 Label string `json:"label,omitempty"`
5153
5154 Value float64 `json:"value,omitempty"`
5155
5156
5157
5158
5159
5160 ForceSendFields []string `json:"-"`
5161
5162
5163
5164
5165 NullFields []string `json:"-"`
5166 }
5167
5168 func (s *ReportSummaryChartDataDataPoint) MarshalJSON() ([]byte, error) {
5169 type NoMethod ReportSummaryChartDataDataPoint
5170 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5171 }
5172
5173 func (s *ReportSummaryChartDataDataPoint) UnmarshalJSON(data []byte) error {
5174 type NoMethod ReportSummaryChartDataDataPoint
5175 var s1 struct {
5176 Value gensupport.JSONFloat64 `json:"value"`
5177 *NoMethod
5178 }
5179 s1.NoMethod = (*NoMethod)(s)
5180 if err := json.Unmarshal(data, &s1); err != nil {
5181 return err
5182 }
5183 s.Value = float64(s1.Value)
5184 return nil
5185 }
5186
5187
5188
5189 type ReportSummaryDatabaseFinding struct {
5190
5191
5192 AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
5193
5194 TotalAssets int64 `json:"totalAssets,omitempty,string"`
5195
5196
5197
5198
5199
5200 ForceSendFields []string `json:"-"`
5201
5202
5203
5204
5205 NullFields []string `json:"-"`
5206 }
5207
5208 func (s *ReportSummaryDatabaseFinding) MarshalJSON() ([]byte, error) {
5209 type NoMethod ReportSummaryDatabaseFinding
5210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5211 }
5212
5213
5214 type ReportSummaryGroupFinding struct {
5215
5216 AssetAggregateStats *ReportSummaryAssetAggregateStats `json:"assetAggregateStats,omitempty"`
5217
5218
5219
5220
5221
5222
5223 AssetType string `json:"assetType,omitempty"`
5224
5225
5226
5227
5228
5229
5230
5231
5232 DatabaseType string `json:"databaseType,omitempty"`
5233
5234 Description string `json:"description,omitempty"`
5235
5236 DisplayName string `json:"displayName,omitempty"`
5237
5238 Group string `json:"group,omitempty"`
5239
5240
5241 OverlappingAssetCount int64 `json:"overlappingAssetCount,omitempty,string"`
5242
5243
5244 PreferenceSetFindings []*ReportSummaryGroupPreferenceSetFinding `json:"preferenceSetFindings,omitempty"`
5245
5246
5247
5248
5249
5250 ForceSendFields []string `json:"-"`
5251
5252
5253
5254
5255 NullFields []string `json:"-"`
5256 }
5257
5258 func (s *ReportSummaryGroupFinding) MarshalJSON() ([]byte, error) {
5259 type NoMethod ReportSummaryGroupFinding
5260 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5261 }
5262
5263
5264
5265 type ReportSummaryGroupPreferenceSetFinding struct {
5266
5267
5268 DatabaseFinding *ReportSummaryDatabaseFinding `json:"databaseFinding,omitempty"`
5269
5270 Description string `json:"description,omitempty"`
5271
5272 DisplayName string `json:"displayName,omitempty"`
5273
5274
5275 MachineFinding *ReportSummaryMachineFinding `json:"machineFinding,omitempty"`
5276
5277
5278 MachinePreferences *VirtualMachinePreferences `json:"machinePreferences,omitempty"`
5279
5280 MonthlyCostCompute *Money `json:"monthlyCostCompute,omitempty"`
5281
5282
5283 MonthlyCostDatabaseBackup *Money `json:"monthlyCostDatabaseBackup,omitempty"`
5284
5285
5286
5287 MonthlyCostDatabaseLicensing *Money `json:"monthlyCostDatabaseLicensing,omitempty"`
5288
5289
5290 MonthlyCostNetworkEgress *Money `json:"monthlyCostNetworkEgress,omitempty"`
5291
5292
5293 MonthlyCostOsLicense *Money `json:"monthlyCostOsLicense,omitempty"`
5294
5295 MonthlyCostOther *Money `json:"monthlyCostOther,omitempty"`
5296
5297 MonthlyCostStorage *Money `json:"monthlyCostStorage,omitempty"`
5298
5299 MonthlyCostTotal *Money `json:"monthlyCostTotal,omitempty"`
5300
5301
5302 PreferenceSet *PreferenceSet `json:"preferenceSet,omitempty"`
5303
5304 PreferredRegion string `json:"preferredRegion,omitempty"`
5305
5306
5307 PricingTrack string `json:"pricingTrack,omitempty"`
5308
5309
5310 SoleTenantFinding *ReportSummarySoleTenantFinding `json:"soleTenantFinding,omitempty"`
5311
5312
5313 TopPriority string `json:"topPriority,omitempty"`
5314
5315
5316 VmwareEngineFinding *ReportSummaryVMWareEngineFinding `json:"vmwareEngineFinding,omitempty"`
5317
5318
5319
5320
5321
5322 ForceSendFields []string `json:"-"`
5323
5324
5325
5326
5327 NullFields []string `json:"-"`
5328 }
5329
5330 func (s *ReportSummaryGroupPreferenceSetFinding) MarshalJSON() ([]byte, error) {
5331 type NoMethod ReportSummaryGroupPreferenceSetFinding
5332 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5333 }
5334
5335
5336
5337 type ReportSummaryHistogramChartData struct {
5338
5339
5340
5341
5342 Buckets []*ReportSummaryHistogramChartDataBucket `json:"buckets,omitempty"`
5343
5344
5345
5346
5347
5348 ForceSendFields []string `json:"-"`
5349
5350
5351
5352
5353 NullFields []string `json:"-"`
5354 }
5355
5356 func (s *ReportSummaryHistogramChartData) MarshalJSON() ([]byte, error) {
5357 type NoMethod ReportSummaryHistogramChartData
5358 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5359 }
5360
5361
5362
5363
5364
5365 type ReportSummaryHistogramChartDataBucket struct {
5366
5367 Count int64 `json:"count,omitempty,string"`
5368
5369 LowerBound int64 `json:"lowerBound,omitempty,string"`
5370
5371 UpperBound int64 `json:"upperBound,omitempty,string"`
5372
5373
5374
5375
5376
5377 ForceSendFields []string `json:"-"`
5378
5379
5380
5381
5382 NullFields []string `json:"-"`
5383 }
5384
5385 func (s *ReportSummaryHistogramChartDataBucket) MarshalJSON() ([]byte, error) {
5386 type NoMethod ReportSummaryHistogramChartDataBucket
5387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5388 }
5389
5390
5391
5392 type ReportSummaryMachineFinding struct {
5393
5394 AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 AllocatedDiskTypes []string `json:"allocatedDiskTypes,omitempty"`
5405
5406 AllocatedRegions []string `json:"allocatedRegions,omitempty"`
5407
5408
5409 MachineSeriesAllocations []*ReportSummaryMachineSeriesAllocation `json:"machineSeriesAllocations,omitempty"`
5410
5411
5412
5413
5414
5415 ForceSendFields []string `json:"-"`
5416
5417
5418
5419
5420 NullFields []string `json:"-"`
5421 }
5422
5423 func (s *ReportSummaryMachineFinding) MarshalJSON() ([]byte, error) {
5424 type NoMethod ReportSummaryMachineFinding
5425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5426 }
5427
5428
5429
5430 type ReportSummaryMachineSeriesAllocation struct {
5431
5432 AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
5433
5434 MachineSeries *MachineSeries `json:"machineSeries,omitempty"`
5435
5436
5437
5438
5439
5440 ForceSendFields []string `json:"-"`
5441
5442
5443
5444
5445 NullFields []string `json:"-"`
5446 }
5447
5448 func (s *ReportSummaryMachineSeriesAllocation) MarshalJSON() ([]byte, error) {
5449 type NoMethod ReportSummaryMachineSeriesAllocation
5450 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5451 }
5452
5453
5454
5455 type ReportSummarySoleTenantFinding struct {
5456
5457 AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
5458
5459 AllocatedRegions []string `json:"allocatedRegions,omitempty"`
5460
5461 NodeAllocations []*ReportSummarySoleTenantNodeAllocation `json:"nodeAllocations,omitempty"`
5462
5463
5464
5465
5466
5467 ForceSendFields []string `json:"-"`
5468
5469
5470
5471
5472 NullFields []string `json:"-"`
5473 }
5474
5475 func (s *ReportSummarySoleTenantFinding) MarshalJSON() ([]byte, error) {
5476 type NoMethod ReportSummarySoleTenantFinding
5477 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5478 }
5479
5480
5481
5482 type ReportSummarySoleTenantNodeAllocation struct {
5483
5484 AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
5485
5486 Node *SoleTenantNodeType `json:"node,omitempty"`
5487
5488 NodeCount int64 `json:"nodeCount,omitempty,string"`
5489
5490
5491
5492
5493
5494 ForceSendFields []string `json:"-"`
5495
5496
5497
5498
5499 NullFields []string `json:"-"`
5500 }
5501
5502 func (s *ReportSummarySoleTenantNodeAllocation) MarshalJSON() ([]byte, error) {
5503 type NoMethod ReportSummarySoleTenantNodeAllocation
5504 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5505 }
5506
5507
5508
5509
5510 type ReportSummaryUtilizationChartData struct {
5511
5512 Free int64 `json:"free,omitempty,string"`
5513
5514 Used int64 `json:"used,omitempty,string"`
5515
5516
5517
5518
5519
5520 ForceSendFields []string `json:"-"`
5521
5522
5523
5524
5525 NullFields []string `json:"-"`
5526 }
5527
5528 func (s *ReportSummaryUtilizationChartData) MarshalJSON() ([]byte, error) {
5529 type NoMethod ReportSummaryUtilizationChartData
5530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5531 }
5532
5533
5534
5535 type ReportSummaryVMWareEngineFinding struct {
5536
5537 AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
5538
5539 AllocatedRegions []string `json:"allocatedRegions,omitempty"`
5540
5541 NodeAllocations []*ReportSummaryVMWareNodeAllocation `json:"nodeAllocations,omitempty"`
5542
5543
5544
5545
5546
5547 ForceSendFields []string `json:"-"`
5548
5549
5550
5551
5552 NullFields []string `json:"-"`
5553 }
5554
5555 func (s *ReportSummaryVMWareEngineFinding) MarshalJSON() ([]byte, error) {
5556 type NoMethod ReportSummaryVMWareEngineFinding
5557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5558 }
5559
5560
5561 type ReportSummaryVMWareNode struct {
5562
5563
5564
5565
5566 Code string `json:"code,omitempty"`
5567
5568
5569
5570
5571
5572 ForceSendFields []string `json:"-"`
5573
5574
5575
5576
5577 NullFields []string `json:"-"`
5578 }
5579
5580 func (s *ReportSummaryVMWareNode) MarshalJSON() ([]byte, error) {
5581 type NoMethod ReportSummaryVMWareNode
5582 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5583 }
5584
5585
5586
5587 type ReportSummaryVMWareNodeAllocation struct {
5588
5589 AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
5590
5591 NodeCount int64 `json:"nodeCount,omitempty,string"`
5592
5593 VmwareNode *ReportSummaryVMWareNode `json:"vmwareNode,omitempty"`
5594
5595
5596
5597
5598
5599 ForceSendFields []string `json:"-"`
5600
5601
5602
5603
5604 NullFields []string `json:"-"`
5605 }
5606
5607 func (s *ReportSummaryVMWareNodeAllocation) MarshalJSON() ([]byte, error) {
5608 type NoMethod ReportSummaryVMWareNodeAllocation
5609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5610 }
5611
5612
5613 type RunImportJobRequest struct {
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 RequestId string `json:"requestId,omitempty"`
5626
5627
5628
5629
5630
5631 ForceSendFields []string `json:"-"`
5632
5633
5634
5635
5636 NullFields []string `json:"-"`
5637 }
5638
5639 func (s *RunImportJobRequest) MarshalJSON() ([]byte, error) {
5640 type NoMethod RunImportJobRequest
5641 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5642 }
5643
5644
5645 type RunningProcess struct {
5646
5647 Attributes map[string]string `json:"attributes,omitempty"`
5648
5649 Cmdline string `json:"cmdline,omitempty"`
5650
5651 ExePath string `json:"exePath,omitempty"`
5652
5653 Pid int64 `json:"pid,omitempty,string"`
5654
5655 User string `json:"user,omitempty"`
5656
5657
5658
5659
5660
5661 ForceSendFields []string `json:"-"`
5662
5663
5664
5665
5666 NullFields []string `json:"-"`
5667 }
5668
5669 func (s *RunningProcess) MarshalJSON() ([]byte, error) {
5670 type NoMethod RunningProcess
5671 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5672 }
5673
5674
5675 type RunningProcessList struct {
5676
5677 Processes []*RunningProcess `json:"processes,omitempty"`
5678
5679
5680
5681
5682
5683 ForceSendFields []string `json:"-"`
5684
5685
5686
5687
5688 NullFields []string `json:"-"`
5689 }
5690
5691 func (s *RunningProcessList) MarshalJSON() ([]byte, error) {
5692 type NoMethod RunningProcessList
5693 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5694 }
5695
5696
5697 type RunningService struct {
5698
5699 Cmdline string `json:"cmdline,omitempty"`
5700
5701 ExePath string `json:"exePath,omitempty"`
5702
5703 Name string `json:"name,omitempty"`
5704
5705 Pid int64 `json:"pid,omitempty,string"`
5706
5707 StartMode string `json:"startMode,omitempty"`
5708
5709 State string `json:"state,omitempty"`
5710
5711 Status string `json:"status,omitempty"`
5712
5713
5714
5715
5716
5717 ForceSendFields []string `json:"-"`
5718
5719
5720
5721
5722 NullFields []string `json:"-"`
5723 }
5724
5725 func (s *RunningService) MarshalJSON() ([]byte, error) {
5726 type NoMethod RunningService
5727 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5728 }
5729
5730
5731 type RunningServiceList struct {
5732
5733 Services []*RunningService `json:"services,omitempty"`
5734
5735
5736
5737
5738
5739 ForceSendFields []string `json:"-"`
5740
5741
5742
5743
5744 NullFields []string `json:"-"`
5745 }
5746
5747 func (s *RunningServiceList) MarshalJSON() ([]byte, error) {
5748 type NoMethod RunningServiceList
5749 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5750 }
5751
5752
5753 type RuntimeNetworkInfo struct {
5754
5755 Connections *NetworkConnectionList `json:"connections,omitempty"`
5756
5757 Netstat string `json:"netstat,omitempty"`
5758
5759 NetstatTime *DateTime `json:"netstatTime,omitempty"`
5760
5761
5762
5763
5764
5765 ForceSendFields []string `json:"-"`
5766
5767
5768
5769
5770 NullFields []string `json:"-"`
5771 }
5772
5773 func (s *RuntimeNetworkInfo) MarshalJSON() ([]byte, error) {
5774 type NoMethod RuntimeNetworkInfo
5775 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5776 }
5777
5778
5779 type Selinux struct {
5780
5781 Enabled bool `json:"enabled,omitempty"`
5782
5783 Mode string `json:"mode,omitempty"`
5784
5785
5786
5787
5788
5789 ForceSendFields []string `json:"-"`
5790
5791
5792
5793
5794 NullFields []string `json:"-"`
5795 }
5796
5797 func (s *Selinux) MarshalJSON() ([]byte, error) {
5798 type NoMethod Selinux
5799 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5800 }
5801
5802
5803
5804 type SendDiscoveryClientHeartbeatRequest struct {
5805
5806 Errors []*Status `json:"errors,omitempty"`
5807
5808 Version string `json:"version,omitempty"`
5809
5810
5811
5812
5813
5814 ForceSendFields []string `json:"-"`
5815
5816
5817
5818
5819 NullFields []string `json:"-"`
5820 }
5821
5822 func (s *SendDiscoveryClientHeartbeatRequest) MarshalJSON() ([]byte, error) {
5823 type NoMethod SendDiscoveryClientHeartbeatRequest
5824 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5825 }
5826
5827
5828 type Settings struct {
5829
5830
5831 DisableCloudLogging bool `json:"disableCloudLogging,omitempty"`
5832
5833 Name string `json:"name,omitempty"`
5834
5835 PreferenceSet string `json:"preferenceSet,omitempty"`
5836
5837
5838 googleapi.ServerResponse `json:"-"`
5839
5840
5841
5842
5843
5844 ForceSendFields []string `json:"-"`
5845
5846
5847
5848
5849 NullFields []string `json:"-"`
5850 }
5851
5852 func (s *Settings) MarshalJSON() ([]byte, error) {
5853 type NoMethod Settings
5854 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5855 }
5856
5857
5858 type SoftwareInsight struct {
5859
5860 DetectedSoftware *DetectedSoftware `json:"detectedSoftware,omitempty"`
5861
5862
5863
5864
5865
5866 ForceSendFields []string `json:"-"`
5867
5868
5869
5870
5871 NullFields []string `json:"-"`
5872 }
5873
5874 func (s *SoftwareInsight) MarshalJSON() ([]byte, error) {
5875 type NoMethod SoftwareInsight
5876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5877 }
5878
5879
5880 type SoleTenancyPreferences struct {
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890 CommitmentPlan string `json:"commitmentPlan,omitempty"`
5891
5892
5893 CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"`
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904 HostMaintenancePolicy string `json:"hostMaintenancePolicy,omitempty"`
5905
5906
5907 NodeTypes []*SoleTenantNodeType `json:"nodeTypes,omitempty"`
5908
5909
5910
5911
5912
5913 ForceSendFields []string `json:"-"`
5914
5915
5916
5917
5918 NullFields []string `json:"-"`
5919 }
5920
5921 func (s *SoleTenancyPreferences) MarshalJSON() ([]byte, error) {
5922 type NoMethod SoleTenancyPreferences
5923 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5924 }
5925
5926 func (s *SoleTenancyPreferences) UnmarshalJSON(data []byte) error {
5927 type NoMethod SoleTenancyPreferences
5928 var s1 struct {
5929 CpuOvercommitRatio gensupport.JSONFloat64 `json:"cpuOvercommitRatio"`
5930 *NoMethod
5931 }
5932 s1.NoMethod = (*NoMethod)(s)
5933 if err := json.Unmarshal(data, &s1); err != nil {
5934 return err
5935 }
5936 s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio)
5937 return nil
5938 }
5939
5940
5941 type SoleTenantNodeType struct {
5942
5943
5944 NodeName string `json:"nodeName,omitempty"`
5945
5946
5947
5948
5949
5950 ForceSendFields []string `json:"-"`
5951
5952
5953
5954
5955 NullFields []string `json:"-"`
5956 }
5957
5958 func (s *SoleTenantNodeType) MarshalJSON() ([]byte, error) {
5959 type NoMethod SoleTenantNodeType
5960 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5961 }
5962
5963
5964
5965 type Source struct {
5966
5967 CreateTime string `json:"createTime,omitempty"`
5968
5969 Description string `json:"description,omitempty"`
5970
5971 DisplayName string `json:"displayName,omitempty"`
5972
5973
5974 ErrorFrameCount int64 `json:"errorFrameCount,omitempty"`
5975
5976 IsManaged bool `json:"isManaged,omitempty"`
5977
5978 Name string `json:"name,omitempty"`
5979
5980
5981 PendingFrameCount int64 `json:"pendingFrameCount,omitempty"`
5982
5983
5984 Priority int64 `json:"priority,omitempty"`
5985
5986
5987
5988
5989
5990
5991
5992
5993 State string `json:"state,omitempty"`
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003 Type string `json:"type,omitempty"`
6004
6005 UpdateTime string `json:"updateTime,omitempty"`
6006
6007
6008 googleapi.ServerResponse `json:"-"`
6009
6010
6011
6012
6013
6014 ForceSendFields []string `json:"-"`
6015
6016
6017
6018
6019 NullFields []string `json:"-"`
6020 }
6021
6022 func (s *Source) MarshalJSON() ([]byte, error) {
6023 type NoMethod Source
6024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6025 }
6026
6027
6028
6029 type SqlServerDatabaseDeployment struct {
6030
6031 Features []*SqlServerFeature `json:"features,omitempty"`
6032
6033 ServerFlags []*SqlServerServerFlag `json:"serverFlags,omitempty"`
6034
6035 TraceFlags []*SqlServerTraceFlag `json:"traceFlags,omitempty"`
6036
6037
6038
6039
6040
6041 ForceSendFields []string `json:"-"`
6042
6043
6044
6045
6046 NullFields []string `json:"-"`
6047 }
6048
6049 func (s *SqlServerDatabaseDeployment) MarshalJSON() ([]byte, error) {
6050 type NoMethod SqlServerDatabaseDeployment
6051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6052 }
6053
6054
6055 type SqlServerFeature struct {
6056
6057
6058 Enabled bool `json:"enabled,omitempty"`
6059
6060 FeatureName string `json:"featureName,omitempty"`
6061
6062
6063
6064
6065
6066 ForceSendFields []string `json:"-"`
6067
6068
6069
6070
6071 NullFields []string `json:"-"`
6072 }
6073
6074 func (s *SqlServerFeature) MarshalJSON() ([]byte, error) {
6075 type NoMethod SqlServerFeature
6076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6077 }
6078
6079
6080 type SqlServerSchemaDetails struct {
6081 }
6082
6083
6084 type SqlServerServerFlag struct {
6085
6086 ServerFlagName string `json:"serverFlagName,omitempty"`
6087
6088 Value string `json:"value,omitempty"`
6089
6090
6091
6092
6093 ValueInUse string `json:"valueInUse,omitempty"`
6094
6095
6096
6097
6098
6099 ForceSendFields []string `json:"-"`
6100
6101
6102
6103
6104 NullFields []string `json:"-"`
6105 }
6106
6107 func (s *SqlServerServerFlag) MarshalJSON() ([]byte, error) {
6108 type NoMethod SqlServerServerFlag
6109 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6110 }
6111
6112
6113 type SqlServerTraceFlag struct {
6114
6115
6116
6117
6118
6119
6120
6121 Scope string `json:"scope,omitempty"`
6122
6123 TraceFlagName string `json:"traceFlagName,omitempty"`
6124
6125
6126
6127
6128
6129 ForceSendFields []string `json:"-"`
6130
6131
6132
6133
6134 NullFields []string `json:"-"`
6135 }
6136
6137 func (s *SqlServerTraceFlag) MarshalJSON() ([]byte, error) {
6138 type NoMethod SqlServerTraceFlag
6139 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6140 }
6141
6142
6143
6144
6145
6146
6147
6148 type Status struct {
6149
6150 Code int64 `json:"code,omitempty"`
6151
6152
6153 Details []googleapi.RawMessage `json:"details,omitempty"`
6154
6155
6156
6157 Message string `json:"message,omitempty"`
6158
6159
6160
6161
6162
6163 ForceSendFields []string `json:"-"`
6164
6165
6166
6167
6168 NullFields []string `json:"-"`
6169 }
6170
6171 func (s *Status) MarshalJSON() ([]byte, error) {
6172 type NoMethod Status
6173 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6174 }
6175
6176
6177
6178 type TimeZone struct {
6179
6180 Id string `json:"id,omitempty"`
6181
6182 Version string `json:"version,omitempty"`
6183
6184
6185
6186
6187
6188 ForceSendFields []string `json:"-"`
6189
6190
6191
6192
6193 NullFields []string `json:"-"`
6194 }
6195
6196 func (s *TimeZone) MarshalJSON() ([]byte, error) {
6197 type NoMethod TimeZone
6198 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6199 }
6200
6201
6202 type UpdateAssetRequest struct {
6203
6204 Asset *Asset `json:"asset,omitempty"`
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 RequestId string `json:"requestId,omitempty"`
6217
6218
6219
6220
6221
6222 UpdateMask string `json:"updateMask,omitempty"`
6223
6224
6225
6226
6227
6228 ForceSendFields []string `json:"-"`
6229
6230
6231
6232
6233 NullFields []string `json:"-"`
6234 }
6235
6236 func (s *UpdateAssetRequest) MarshalJSON() ([]byte, error) {
6237 type NoMethod UpdateAssetRequest
6238 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6239 }
6240
6241
6242
6243 type UploadFileInfo struct {
6244
6245 Headers map[string]string `json:"headers,omitempty"`
6246
6247 SignedUri string `json:"signedUri,omitempty"`
6248
6249 UriExpirationTime string `json:"uriExpirationTime,omitempty"`
6250
6251
6252
6253
6254
6255 ForceSendFields []string `json:"-"`
6256
6257
6258
6259
6260 NullFields []string `json:"-"`
6261 }
6262
6263 func (s *UploadFileInfo) MarshalJSON() ([]byte, error) {
6264 type NoMethod UploadFileInfo
6265 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6266 }
6267
6268
6269 type ValidateImportJobRequest struct {
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 RequestId string `json:"requestId,omitempty"`
6282
6283
6284
6285
6286
6287 ForceSendFields []string `json:"-"`
6288
6289
6290
6291
6292 NullFields []string `json:"-"`
6293 }
6294
6295 func (s *ValidateImportJobRequest) MarshalJSON() ([]byte, error) {
6296 type NoMethod ValidateImportJobRequest
6297 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6298 }
6299
6300
6301 type ValidationReport struct {
6302
6303 FileValidations []*FileValidationReport `json:"fileValidations,omitempty"`
6304
6305 JobErrors []*ImportError `json:"jobErrors,omitempty"`
6306
6307
6308
6309
6310
6311 ForceSendFields []string `json:"-"`
6312
6313
6314
6315
6316 NullFields []string `json:"-"`
6317 }
6318
6319 func (s *ValidationReport) MarshalJSON() ([]byte, error) {
6320 type NoMethod ValidationReport
6321 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6322 }
6323
6324
6325 type VirtualMachineArchitectureDetails struct {
6326
6327 Bios *BiosDetails `json:"bios,omitempty"`
6328
6329
6330 CpuArchitecture string `json:"cpuArchitecture,omitempty"`
6331
6332 CpuManufacturer string `json:"cpuManufacturer,omitempty"`
6333
6334 CpuName string `json:"cpuName,omitempty"`
6335
6336 CpuSocketCount int64 `json:"cpuSocketCount,omitempty"`
6337
6338 CpuThreadCount int64 `json:"cpuThreadCount,omitempty"`
6339
6340 Firmware string `json:"firmware,omitempty"`
6341
6342
6343
6344
6345
6346
6347 Hyperthreading string `json:"hyperthreading,omitempty"`
6348
6349 Vendor string `json:"vendor,omitempty"`
6350
6351
6352
6353
6354
6355 ForceSendFields []string `json:"-"`
6356
6357
6358
6359
6360 NullFields []string `json:"-"`
6361 }
6362
6363 func (s *VirtualMachineArchitectureDetails) MarshalJSON() ([]byte, error) {
6364 type NoMethod VirtualMachineArchitectureDetails
6365 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6366 }
6367
6368
6369 type VirtualMachineDetails struct {
6370
6371 CoreCount int64 `json:"coreCount,omitempty"`
6372
6373 CreateTime string `json:"createTime,omitempty"`
6374
6375 GuestOs *GuestOsDetails `json:"guestOs,omitempty"`
6376
6377 MemoryMb int64 `json:"memoryMb,omitempty"`
6378
6379
6380
6381
6382
6383
6384
6385 OsFamily string `json:"osFamily,omitempty"`
6386
6387 OsName string `json:"osName,omitempty"`
6388
6389
6390 OsVersion string `json:"osVersion,omitempty"`
6391
6392 Platform *PlatformDetails `json:"platform,omitempty"`
6393
6394 PowerState string `json:"powerState,omitempty"`
6395
6396 VcenterFolder string `json:"vcenterFolder,omitempty"`
6397
6398 VcenterUrl string `json:"vcenterUrl,omitempty"`
6399
6400 VcenterVmId string `json:"vcenterVmId,omitempty"`
6401
6402 VmArchitecture *VirtualMachineArchitectureDetails `json:"vmArchitecture,omitempty"`
6403
6404 VmDisks *VirtualMachineDiskDetails `json:"vmDisks,omitempty"`
6405
6406 VmName string `json:"vmName,omitempty"`
6407
6408 VmNetwork *VirtualMachineNetworkDetails `json:"vmNetwork,omitempty"`
6409
6410 VmUuid string `json:"vmUuid,omitempty"`
6411
6412
6413
6414
6415
6416 ForceSendFields []string `json:"-"`
6417
6418
6419
6420
6421 NullFields []string `json:"-"`
6422 }
6423
6424 func (s *VirtualMachineDetails) MarshalJSON() ([]byte, error) {
6425 type NoMethod VirtualMachineDetails
6426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6427 }
6428
6429
6430 type VirtualMachineDiskDetails struct {
6431
6432 Disks *DiskEntryList `json:"disks,omitempty"`
6433
6434 HddTotalCapacityBytes int64 `json:"hddTotalCapacityBytes,omitempty,string"`
6435
6436 HddTotalFreeBytes int64 `json:"hddTotalFreeBytes,omitempty,string"`
6437
6438 LsblkJson string `json:"lsblkJson,omitempty"`
6439
6440
6441
6442
6443
6444 ForceSendFields []string `json:"-"`
6445
6446
6447
6448
6449 NullFields []string `json:"-"`
6450 }
6451
6452 func (s *VirtualMachineDiskDetails) MarshalJSON() ([]byte, error) {
6453 type NoMethod VirtualMachineDiskDetails
6454 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6455 }
6456
6457
6458 type VirtualMachineNetworkDetails struct {
6459
6460 DefaultGw string `json:"defaultGw,omitempty"`
6461
6462 NetworkAdapters *NetworkAdapterList `json:"networkAdapters,omitempty"`
6463
6464 PrimaryIpAddress string `json:"primaryIpAddress,omitempty"`
6465
6466
6467 PrimaryMacAddress string `json:"primaryMacAddress,omitempty"`
6468
6469 PublicIpAddress string `json:"publicIpAddress,omitempty"`
6470
6471
6472
6473
6474
6475 ForceSendFields []string `json:"-"`
6476
6477
6478
6479
6480 NullFields []string `json:"-"`
6481 }
6482
6483 func (s *VirtualMachineNetworkDetails) MarshalJSON() ([]byte, error) {
6484 type NoMethod VirtualMachineNetworkDetails
6485 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6486 }
6487
6488
6489
6490
6491
6492 type VirtualMachinePreferences struct {
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 CommitmentPlan string `json:"commitmentPlan,omitempty"`
6503
6504
6505 ComputeEnginePreferences *ComputeEnginePreferences `json:"computeEnginePreferences,omitempty"`
6506
6507
6508 NetworkCostParameters *VirtualMachinePreferencesNetworkCostParameters `json:"networkCostParameters,omitempty"`
6509
6510
6511
6512
6513 RegionPreferences *RegionPreferences `json:"regionPreferences,omitempty"`
6514
6515
6516 SizingOptimizationCustomParameters *VirtualMachinePreferencesSizingOptimizationCustomParameters `json:"sizingOptimizationCustomParameters,omitempty"`
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537 SizingOptimizationStrategy string `json:"sizingOptimizationStrategy,omitempty"`
6538
6539
6540 SoleTenancyPreferences *SoleTenancyPreferences `json:"soleTenancyPreferences,omitempty"`
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 TargetProduct string `json:"targetProduct,omitempty"`
6554
6555
6556 VmwareEnginePreferences *VmwareEnginePreferences `json:"vmwareEnginePreferences,omitempty"`
6557
6558
6559
6560
6561
6562 ForceSendFields []string `json:"-"`
6563
6564
6565
6566
6567 NullFields []string `json:"-"`
6568 }
6569
6570 func (s *VirtualMachinePreferences) MarshalJSON() ([]byte, error) {
6571 type NoMethod VirtualMachinePreferences
6572 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6573 }
6574
6575
6576
6577 type VirtualMachinePreferencesNetworkCostParameters struct {
6578
6579
6580
6581 EstimatedEgressTrafficPercentage int64 `json:"estimatedEgressTrafficPercentage,omitempty"`
6582
6583
6584
6585
6586
6587
6588 ForceSendFields []string `json:"-"`
6589
6590
6591
6592
6593
6594 NullFields []string `json:"-"`
6595 }
6596
6597 func (s *VirtualMachinePreferencesNetworkCostParameters) MarshalJSON() ([]byte, error) {
6598 type NoMethod VirtualMachinePreferencesNetworkCostParameters
6599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6600 }
6601
6602
6603
6604 type VirtualMachinePreferencesSizingOptimizationCustomParameters struct {
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616 AggregationMethod string `json:"aggregationMethod,omitempty"`
6617
6618
6619 CpuUsagePercentage int64 `json:"cpuUsagePercentage,omitempty"`
6620
6621
6622 MemoryUsagePercentage int64 `json:"memoryUsagePercentage,omitempty"`
6623
6624
6625
6626 StorageMultiplier float64 `json:"storageMultiplier,omitempty"`
6627
6628
6629
6630
6631
6632 ForceSendFields []string `json:"-"`
6633
6634
6635
6636
6637 NullFields []string `json:"-"`
6638 }
6639
6640 func (s *VirtualMachinePreferencesSizingOptimizationCustomParameters) MarshalJSON() ([]byte, error) {
6641 type NoMethod VirtualMachinePreferencesSizingOptimizationCustomParameters
6642 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6643 }
6644
6645 func (s *VirtualMachinePreferencesSizingOptimizationCustomParameters) UnmarshalJSON(data []byte) error {
6646 type NoMethod VirtualMachinePreferencesSizingOptimizationCustomParameters
6647 var s1 struct {
6648 StorageMultiplier gensupport.JSONFloat64 `json:"storageMultiplier"`
6649 *NoMethod
6650 }
6651 s1.NoMethod = (*NoMethod)(s)
6652 if err := json.Unmarshal(data, &s1); err != nil {
6653 return err
6654 }
6655 s.StorageMultiplier = float64(s1.StorageMultiplier)
6656 return nil
6657 }
6658
6659
6660 type VmwareDiskConfig struct {
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 BackingType string `json:"backingType,omitempty"`
6676
6677 RdmCompatibilityMode string `json:"rdmCompatibilityMode,omitempty"`
6678
6679 Shared bool `json:"shared,omitempty"`
6680
6681 VmdkDiskMode string `json:"vmdkDiskMode,omitempty"`
6682
6683
6684
6685
6686
6687 ForceSendFields []string `json:"-"`
6688
6689
6690
6691
6692 NullFields []string `json:"-"`
6693 }
6694
6695 func (s *VmwareDiskConfig) MarshalJSON() ([]byte, error) {
6696 type NoMethod VmwareDiskConfig
6697 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6698 }
6699
6700
6701 type VmwareEngineMigrationTarget struct {
6702 }
6703
6704
6705
6706 type VmwareEnginePreferences struct {
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721 CommitmentPlan string `json:"commitmentPlan,omitempty"`
6722
6723
6724 CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"`
6725
6726
6727 MemoryOvercommitRatio float64 `json:"memoryOvercommitRatio,omitempty"`
6728
6729
6730
6731
6732
6733
6734
6735
6736 StorageDeduplicationCompressionRatio float64 `json:"storageDeduplicationCompressionRatio,omitempty"`
6737
6738
6739
6740
6741
6742 ForceSendFields []string `json:"-"`
6743
6744
6745
6746
6747 NullFields []string `json:"-"`
6748 }
6749
6750 func (s *VmwareEnginePreferences) MarshalJSON() ([]byte, error) {
6751 type NoMethod VmwareEnginePreferences
6752 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6753 }
6754
6755 func (s *VmwareEnginePreferences) UnmarshalJSON(data []byte) error {
6756 type NoMethod VmwareEnginePreferences
6757 var s1 struct {
6758 CpuOvercommitRatio gensupport.JSONFloat64 `json:"cpuOvercommitRatio"`
6759 MemoryOvercommitRatio gensupport.JSONFloat64 `json:"memoryOvercommitRatio"`
6760 StorageDeduplicationCompressionRatio gensupport.JSONFloat64 `json:"storageDeduplicationCompressionRatio"`
6761 *NoMethod
6762 }
6763 s1.NoMethod = (*NoMethod)(s)
6764 if err := json.Unmarshal(data, &s1); err != nil {
6765 return err
6766 }
6767 s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio)
6768 s.MemoryOvercommitRatio = float64(s1.MemoryOvercommitRatio)
6769 s.StorageDeduplicationCompressionRatio = float64(s1.StorageDeduplicationCompressionRatio)
6770 return nil
6771 }
6772
6773
6774 type VmwarePlatformDetails struct {
6775
6776 EsxVersion string `json:"esxVersion,omitempty"`
6777
6778
6779 Osid string `json:"osid,omitempty"`
6780
6781 VcenterVersion string `json:"vcenterVersion,omitempty"`
6782
6783
6784
6785
6786
6787 ForceSendFields []string `json:"-"`
6788
6789
6790
6791
6792 NullFields []string `json:"-"`
6793 }
6794
6795 func (s *VmwarePlatformDetails) MarshalJSON() ([]byte, error) {
6796 type NoMethod VmwarePlatformDetails
6797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6798 }
6799
6800 type ProjectsLocationsGetCall struct {
6801 s *Service
6802 name string
6803 urlParams_ gensupport.URLParams
6804 ifNoneMatch_ string
6805 ctx_ context.Context
6806 header_ http.Header
6807 }
6808
6809
6810
6811
6812 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
6813 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6814 c.name = name
6815 return c
6816 }
6817
6818
6819
6820
6821 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
6822 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6823 return c
6824 }
6825
6826
6827
6828
6829 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
6830 c.ifNoneMatch_ = entityTag
6831 return c
6832 }
6833
6834
6835 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
6836 c.ctx_ = ctx
6837 return c
6838 }
6839
6840
6841
6842 func (c *ProjectsLocationsGetCall) Header() http.Header {
6843 if c.header_ == nil {
6844 c.header_ = make(http.Header)
6845 }
6846 return c.header_
6847 }
6848
6849 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
6850 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6851 if c.ifNoneMatch_ != "" {
6852 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6853 }
6854 var body io.Reader = nil
6855 c.urlParams_.Set("alt", alt)
6856 c.urlParams_.Set("prettyPrint", "false")
6857 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
6858 urls += "?" + c.urlParams_.Encode()
6859 req, err := http.NewRequest("GET", urls, body)
6860 if err != nil {
6861 return nil, err
6862 }
6863 req.Header = reqHeaders
6864 googleapi.Expand(req.URL, map[string]string{
6865 "name": c.name,
6866 })
6867 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6868 }
6869
6870
6871
6872
6873
6874
6875 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
6876 gensupport.SetOptions(c.urlParams_, opts...)
6877 res, err := c.doRequest("json")
6878 if res != nil && res.StatusCode == http.StatusNotModified {
6879 if res.Body != nil {
6880 res.Body.Close()
6881 }
6882 return nil, gensupport.WrapError(&googleapi.Error{
6883 Code: res.StatusCode,
6884 Header: res.Header,
6885 })
6886 }
6887 if err != nil {
6888 return nil, err
6889 }
6890 defer googleapi.CloseBody(res)
6891 if err := googleapi.CheckResponse(res); err != nil {
6892 return nil, gensupport.WrapError(err)
6893 }
6894 ret := &Location{
6895 ServerResponse: googleapi.ServerResponse{
6896 Header: res.Header,
6897 HTTPStatusCode: res.StatusCode,
6898 },
6899 }
6900 target := &ret
6901 if err := gensupport.DecodeResponse(target, res); err != nil {
6902 return nil, err
6903 }
6904 return ret, nil
6905 }
6906
6907 type ProjectsLocationsGetSettingsCall struct {
6908 s *Service
6909 name string
6910 urlParams_ gensupport.URLParams
6911 ifNoneMatch_ string
6912 ctx_ context.Context
6913 header_ http.Header
6914 }
6915
6916
6917
6918
6919 func (r *ProjectsLocationsService) GetSettings(name string) *ProjectsLocationsGetSettingsCall {
6920 c := &ProjectsLocationsGetSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6921 c.name = name
6922 return c
6923 }
6924
6925
6926
6927
6928 func (c *ProjectsLocationsGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetSettingsCall {
6929 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6930 return c
6931 }
6932
6933
6934
6935
6936 func (c *ProjectsLocationsGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetSettingsCall {
6937 c.ifNoneMatch_ = entityTag
6938 return c
6939 }
6940
6941
6942 func (c *ProjectsLocationsGetSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetSettingsCall {
6943 c.ctx_ = ctx
6944 return c
6945 }
6946
6947
6948
6949 func (c *ProjectsLocationsGetSettingsCall) Header() http.Header {
6950 if c.header_ == nil {
6951 c.header_ = make(http.Header)
6952 }
6953 return c.header_
6954 }
6955
6956 func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response, error) {
6957 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6958 if c.ifNoneMatch_ != "" {
6959 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6960 }
6961 var body io.Reader = nil
6962 c.urlParams_.Set("alt", alt)
6963 c.urlParams_.Set("prettyPrint", "false")
6964 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
6965 urls += "?" + c.urlParams_.Encode()
6966 req, err := http.NewRequest("GET", urls, body)
6967 if err != nil {
6968 return nil, err
6969 }
6970 req.Header = reqHeaders
6971 googleapi.Expand(req.URL, map[string]string{
6972 "name": c.name,
6973 })
6974 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6975 }
6976
6977
6978
6979
6980
6981
6982 func (c *ProjectsLocationsGetSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error) {
6983 gensupport.SetOptions(c.urlParams_, opts...)
6984 res, err := c.doRequest("json")
6985 if res != nil && res.StatusCode == http.StatusNotModified {
6986 if res.Body != nil {
6987 res.Body.Close()
6988 }
6989 return nil, gensupport.WrapError(&googleapi.Error{
6990 Code: res.StatusCode,
6991 Header: res.Header,
6992 })
6993 }
6994 if err != nil {
6995 return nil, err
6996 }
6997 defer googleapi.CloseBody(res)
6998 if err := googleapi.CheckResponse(res); err != nil {
6999 return nil, gensupport.WrapError(err)
7000 }
7001 ret := &Settings{
7002 ServerResponse: googleapi.ServerResponse{
7003 Header: res.Header,
7004 HTTPStatusCode: res.StatusCode,
7005 },
7006 }
7007 target := &ret
7008 if err := gensupport.DecodeResponse(target, res); err != nil {
7009 return nil, err
7010 }
7011 return ret, nil
7012 }
7013
7014 type ProjectsLocationsListCall struct {
7015 s *Service
7016 name string
7017 urlParams_ gensupport.URLParams
7018 ifNoneMatch_ string
7019 ctx_ context.Context
7020 header_ http.Header
7021 }
7022
7023
7024
7025
7026 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
7027 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7028 c.name = name
7029 return c
7030 }
7031
7032
7033
7034
7035
7036 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
7037 c.urlParams_.Set("filter", filter)
7038 return c
7039 }
7040
7041
7042
7043 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
7044 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7045 return c
7046 }
7047
7048
7049
7050
7051 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
7052 c.urlParams_.Set("pageToken", pageToken)
7053 return c
7054 }
7055
7056
7057
7058
7059 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
7060 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7061 return c
7062 }
7063
7064
7065
7066
7067 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
7068 c.ifNoneMatch_ = entityTag
7069 return c
7070 }
7071
7072
7073 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
7074 c.ctx_ = ctx
7075 return c
7076 }
7077
7078
7079
7080 func (c *ProjectsLocationsListCall) Header() http.Header {
7081 if c.header_ == nil {
7082 c.header_ = make(http.Header)
7083 }
7084 return c.header_
7085 }
7086
7087 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
7088 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7089 if c.ifNoneMatch_ != "" {
7090 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7091 }
7092 var body io.Reader = nil
7093 c.urlParams_.Set("alt", alt)
7094 c.urlParams_.Set("prettyPrint", "false")
7095 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}/locations")
7096 urls += "?" + c.urlParams_.Encode()
7097 req, err := http.NewRequest("GET", urls, body)
7098 if err != nil {
7099 return nil, err
7100 }
7101 req.Header = reqHeaders
7102 googleapi.Expand(req.URL, map[string]string{
7103 "name": c.name,
7104 })
7105 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7106 }
7107
7108
7109
7110
7111
7112
7113
7114 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
7115 gensupport.SetOptions(c.urlParams_, opts...)
7116 res, err := c.doRequest("json")
7117 if res != nil && res.StatusCode == http.StatusNotModified {
7118 if res.Body != nil {
7119 res.Body.Close()
7120 }
7121 return nil, gensupport.WrapError(&googleapi.Error{
7122 Code: res.StatusCode,
7123 Header: res.Header,
7124 })
7125 }
7126 if err != nil {
7127 return nil, err
7128 }
7129 defer googleapi.CloseBody(res)
7130 if err := googleapi.CheckResponse(res); err != nil {
7131 return nil, gensupport.WrapError(err)
7132 }
7133 ret := &ListLocationsResponse{
7134 ServerResponse: googleapi.ServerResponse{
7135 Header: res.Header,
7136 HTTPStatusCode: res.StatusCode,
7137 },
7138 }
7139 target := &ret
7140 if err := gensupport.DecodeResponse(target, res); err != nil {
7141 return nil, err
7142 }
7143 return ret, nil
7144 }
7145
7146
7147
7148
7149 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
7150 c.ctx_ = ctx
7151 defer c.PageToken(c.urlParams_.Get("pageToken"))
7152 for {
7153 x, err := c.Do()
7154 if err != nil {
7155 return err
7156 }
7157 if err := f(x); err != nil {
7158 return err
7159 }
7160 if x.NextPageToken == "" {
7161 return nil
7162 }
7163 c.PageToken(x.NextPageToken)
7164 }
7165 }
7166
7167 type ProjectsLocationsUpdateSettingsCall struct {
7168 s *Service
7169 name string
7170 settings *Settings
7171 urlParams_ gensupport.URLParams
7172 ctx_ context.Context
7173 header_ http.Header
7174 }
7175
7176
7177
7178
7179 func (r *ProjectsLocationsService) UpdateSettings(name string, settings *Settings) *ProjectsLocationsUpdateSettingsCall {
7180 c := &ProjectsLocationsUpdateSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7181 c.name = name
7182 c.settings = settings
7183 return c
7184 }
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197 func (c *ProjectsLocationsUpdateSettingsCall) RequestId(requestId string) *ProjectsLocationsUpdateSettingsCall {
7198 c.urlParams_.Set("requestId", requestId)
7199 return c
7200 }
7201
7202
7203
7204
7205
7206
7207 func (c *ProjectsLocationsUpdateSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateSettingsCall {
7208 c.urlParams_.Set("updateMask", updateMask)
7209 return c
7210 }
7211
7212
7213
7214
7215 func (c *ProjectsLocationsUpdateSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateSettingsCall {
7216 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7217 return c
7218 }
7219
7220
7221 func (c *ProjectsLocationsUpdateSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateSettingsCall {
7222 c.ctx_ = ctx
7223 return c
7224 }
7225
7226
7227
7228 func (c *ProjectsLocationsUpdateSettingsCall) Header() http.Header {
7229 if c.header_ == nil {
7230 c.header_ = make(http.Header)
7231 }
7232 return c.header_
7233 }
7234
7235 func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Response, error) {
7236 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7237 var body io.Reader = nil
7238 body, err := googleapi.WithoutDataWrapper.JSONReader(c.settings)
7239 if err != nil {
7240 return nil, err
7241 }
7242 c.urlParams_.Set("alt", alt)
7243 c.urlParams_.Set("prettyPrint", "false")
7244 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
7245 urls += "?" + c.urlParams_.Encode()
7246 req, err := http.NewRequest("PATCH", urls, body)
7247 if err != nil {
7248 return nil, err
7249 }
7250 req.Header = reqHeaders
7251 googleapi.Expand(req.URL, map[string]string{
7252 "name": c.name,
7253 })
7254 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7255 }
7256
7257
7258
7259
7260
7261
7262 func (c *ProjectsLocationsUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7263 gensupport.SetOptions(c.urlParams_, opts...)
7264 res, err := c.doRequest("json")
7265 if res != nil && res.StatusCode == http.StatusNotModified {
7266 if res.Body != nil {
7267 res.Body.Close()
7268 }
7269 return nil, gensupport.WrapError(&googleapi.Error{
7270 Code: res.StatusCode,
7271 Header: res.Header,
7272 })
7273 }
7274 if err != nil {
7275 return nil, err
7276 }
7277 defer googleapi.CloseBody(res)
7278 if err := googleapi.CheckResponse(res); err != nil {
7279 return nil, gensupport.WrapError(err)
7280 }
7281 ret := &Operation{
7282 ServerResponse: googleapi.ServerResponse{
7283 Header: res.Header,
7284 HTTPStatusCode: res.StatusCode,
7285 },
7286 }
7287 target := &ret
7288 if err := gensupport.DecodeResponse(target, res); err != nil {
7289 return nil, err
7290 }
7291 return ret, nil
7292 }
7293
7294 type ProjectsLocationsAssetsAggregateValuesCall struct {
7295 s *Service
7296 parent string
7297 aggregateassetsvaluesrequest *AggregateAssetsValuesRequest
7298 urlParams_ gensupport.URLParams
7299 ctx_ context.Context
7300 header_ http.Header
7301 }
7302
7303
7304
7305
7306 func (r *ProjectsLocationsAssetsService) AggregateValues(parent string, aggregateassetsvaluesrequest *AggregateAssetsValuesRequest) *ProjectsLocationsAssetsAggregateValuesCall {
7307 c := &ProjectsLocationsAssetsAggregateValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7308 c.parent = parent
7309 c.aggregateassetsvaluesrequest = aggregateassetsvaluesrequest
7310 return c
7311 }
7312
7313
7314
7315
7316 func (c *ProjectsLocationsAssetsAggregateValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsAggregateValuesCall {
7317 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7318 return c
7319 }
7320
7321
7322 func (c *ProjectsLocationsAssetsAggregateValuesCall) Context(ctx context.Context) *ProjectsLocationsAssetsAggregateValuesCall {
7323 c.ctx_ = ctx
7324 return c
7325 }
7326
7327
7328
7329 func (c *ProjectsLocationsAssetsAggregateValuesCall) Header() http.Header {
7330 if c.header_ == nil {
7331 c.header_ = make(http.Header)
7332 }
7333 return c.header_
7334 }
7335
7336 func (c *ProjectsLocationsAssetsAggregateValuesCall) doRequest(alt string) (*http.Response, error) {
7337 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7338 var body io.Reader = nil
7339 body, err := googleapi.WithoutDataWrapper.JSONReader(c.aggregateassetsvaluesrequest)
7340 if err != nil {
7341 return nil, err
7342 }
7343 c.urlParams_.Set("alt", alt)
7344 c.urlParams_.Set("prettyPrint", "false")
7345 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets:aggregateValues")
7346 urls += "?" + c.urlParams_.Encode()
7347 req, err := http.NewRequest("POST", urls, body)
7348 if err != nil {
7349 return nil, err
7350 }
7351 req.Header = reqHeaders
7352 googleapi.Expand(req.URL, map[string]string{
7353 "parent": c.parent,
7354 })
7355 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7356 }
7357
7358
7359
7360
7361
7362
7363
7364 func (c *ProjectsLocationsAssetsAggregateValuesCall) Do(opts ...googleapi.CallOption) (*AggregateAssetsValuesResponse, error) {
7365 gensupport.SetOptions(c.urlParams_, opts...)
7366 res, err := c.doRequest("json")
7367 if res != nil && res.StatusCode == http.StatusNotModified {
7368 if res.Body != nil {
7369 res.Body.Close()
7370 }
7371 return nil, gensupport.WrapError(&googleapi.Error{
7372 Code: res.StatusCode,
7373 Header: res.Header,
7374 })
7375 }
7376 if err != nil {
7377 return nil, err
7378 }
7379 defer googleapi.CloseBody(res)
7380 if err := googleapi.CheckResponse(res); err != nil {
7381 return nil, gensupport.WrapError(err)
7382 }
7383 ret := &AggregateAssetsValuesResponse{
7384 ServerResponse: googleapi.ServerResponse{
7385 Header: res.Header,
7386 HTTPStatusCode: res.StatusCode,
7387 },
7388 }
7389 target := &ret
7390 if err := gensupport.DecodeResponse(target, res); err != nil {
7391 return nil, err
7392 }
7393 return ret, nil
7394 }
7395
7396 type ProjectsLocationsAssetsBatchDeleteCall struct {
7397 s *Service
7398 parent string
7399 batchdeleteassetsrequest *BatchDeleteAssetsRequest
7400 urlParams_ gensupport.URLParams
7401 ctx_ context.Context
7402 header_ http.Header
7403 }
7404
7405
7406
7407
7408 func (r *ProjectsLocationsAssetsService) BatchDelete(parent string, batchdeleteassetsrequest *BatchDeleteAssetsRequest) *ProjectsLocationsAssetsBatchDeleteCall {
7409 c := &ProjectsLocationsAssetsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7410 c.parent = parent
7411 c.batchdeleteassetsrequest = batchdeleteassetsrequest
7412 return c
7413 }
7414
7415
7416
7417
7418 func (c *ProjectsLocationsAssetsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsBatchDeleteCall {
7419 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7420 return c
7421 }
7422
7423
7424 func (c *ProjectsLocationsAssetsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAssetsBatchDeleteCall {
7425 c.ctx_ = ctx
7426 return c
7427 }
7428
7429
7430
7431 func (c *ProjectsLocationsAssetsBatchDeleteCall) Header() http.Header {
7432 if c.header_ == nil {
7433 c.header_ = make(http.Header)
7434 }
7435 return c.header_
7436 }
7437
7438 func (c *ProjectsLocationsAssetsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
7439 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7440 var body io.Reader = nil
7441 body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchdeleteassetsrequest)
7442 if err != nil {
7443 return nil, err
7444 }
7445 c.urlParams_.Set("alt", alt)
7446 c.urlParams_.Set("prettyPrint", "false")
7447 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets:batchDelete")
7448 urls += "?" + c.urlParams_.Encode()
7449 req, err := http.NewRequest("POST", urls, body)
7450 if err != nil {
7451 return nil, err
7452 }
7453 req.Header = reqHeaders
7454 googleapi.Expand(req.URL, map[string]string{
7455 "parent": c.parent,
7456 })
7457 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7458 }
7459
7460
7461
7462
7463
7464
7465 func (c *ProjectsLocationsAssetsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
7466 gensupport.SetOptions(c.urlParams_, opts...)
7467 res, err := c.doRequest("json")
7468 if res != nil && res.StatusCode == http.StatusNotModified {
7469 if res.Body != nil {
7470 res.Body.Close()
7471 }
7472 return nil, gensupport.WrapError(&googleapi.Error{
7473 Code: res.StatusCode,
7474 Header: res.Header,
7475 })
7476 }
7477 if err != nil {
7478 return nil, err
7479 }
7480 defer googleapi.CloseBody(res)
7481 if err := googleapi.CheckResponse(res); err != nil {
7482 return nil, gensupport.WrapError(err)
7483 }
7484 ret := &Empty{
7485 ServerResponse: googleapi.ServerResponse{
7486 Header: res.Header,
7487 HTTPStatusCode: res.StatusCode,
7488 },
7489 }
7490 target := &ret
7491 if err := gensupport.DecodeResponse(target, res); err != nil {
7492 return nil, err
7493 }
7494 return ret, nil
7495 }
7496
7497 type ProjectsLocationsAssetsBatchUpdateCall struct {
7498 s *Service
7499 parent string
7500 batchupdateassetsrequest *BatchUpdateAssetsRequest
7501 urlParams_ gensupport.URLParams
7502 ctx_ context.Context
7503 header_ http.Header
7504 }
7505
7506
7507
7508
7509 func (r *ProjectsLocationsAssetsService) BatchUpdate(parent string, batchupdateassetsrequest *BatchUpdateAssetsRequest) *ProjectsLocationsAssetsBatchUpdateCall {
7510 c := &ProjectsLocationsAssetsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7511 c.parent = parent
7512 c.batchupdateassetsrequest = batchupdateassetsrequest
7513 return c
7514 }
7515
7516
7517
7518
7519 func (c *ProjectsLocationsAssetsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsBatchUpdateCall {
7520 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7521 return c
7522 }
7523
7524
7525 func (c *ProjectsLocationsAssetsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAssetsBatchUpdateCall {
7526 c.ctx_ = ctx
7527 return c
7528 }
7529
7530
7531
7532 func (c *ProjectsLocationsAssetsBatchUpdateCall) Header() http.Header {
7533 if c.header_ == nil {
7534 c.header_ = make(http.Header)
7535 }
7536 return c.header_
7537 }
7538
7539 func (c *ProjectsLocationsAssetsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
7540 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7541 var body io.Reader = nil
7542 body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchupdateassetsrequest)
7543 if err != nil {
7544 return nil, err
7545 }
7546 c.urlParams_.Set("alt", alt)
7547 c.urlParams_.Set("prettyPrint", "false")
7548 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets:batchUpdate")
7549 urls += "?" + c.urlParams_.Encode()
7550 req, err := http.NewRequest("POST", urls, body)
7551 if err != nil {
7552 return nil, err
7553 }
7554 req.Header = reqHeaders
7555 googleapi.Expand(req.URL, map[string]string{
7556 "parent": c.parent,
7557 })
7558 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7559 }
7560
7561
7562
7563
7564
7565
7566
7567 func (c *ProjectsLocationsAssetsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdateAssetsResponse, error) {
7568 gensupport.SetOptions(c.urlParams_, opts...)
7569 res, err := c.doRequest("json")
7570 if res != nil && res.StatusCode == http.StatusNotModified {
7571 if res.Body != nil {
7572 res.Body.Close()
7573 }
7574 return nil, gensupport.WrapError(&googleapi.Error{
7575 Code: res.StatusCode,
7576 Header: res.Header,
7577 })
7578 }
7579 if err != nil {
7580 return nil, err
7581 }
7582 defer googleapi.CloseBody(res)
7583 if err := googleapi.CheckResponse(res); err != nil {
7584 return nil, gensupport.WrapError(err)
7585 }
7586 ret := &BatchUpdateAssetsResponse{
7587 ServerResponse: googleapi.ServerResponse{
7588 Header: res.Header,
7589 HTTPStatusCode: res.StatusCode,
7590 },
7591 }
7592 target := &ret
7593 if err := gensupport.DecodeResponse(target, res); err != nil {
7594 return nil, err
7595 }
7596 return ret, nil
7597 }
7598
7599 type ProjectsLocationsAssetsDeleteCall struct {
7600 s *Service
7601 name string
7602 urlParams_ gensupport.URLParams
7603 ctx_ context.Context
7604 header_ http.Header
7605 }
7606
7607
7608
7609
7610 func (r *ProjectsLocationsAssetsService) Delete(name string) *ProjectsLocationsAssetsDeleteCall {
7611 c := &ProjectsLocationsAssetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7612 c.name = name
7613 return c
7614 }
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627 func (c *ProjectsLocationsAssetsDeleteCall) RequestId(requestId string) *ProjectsLocationsAssetsDeleteCall {
7628 c.urlParams_.Set("requestId", requestId)
7629 return c
7630 }
7631
7632
7633
7634
7635 func (c *ProjectsLocationsAssetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsDeleteCall {
7636 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7637 return c
7638 }
7639
7640
7641 func (c *ProjectsLocationsAssetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAssetsDeleteCall {
7642 c.ctx_ = ctx
7643 return c
7644 }
7645
7646
7647
7648 func (c *ProjectsLocationsAssetsDeleteCall) Header() http.Header {
7649 if c.header_ == nil {
7650 c.header_ = make(http.Header)
7651 }
7652 return c.header_
7653 }
7654
7655 func (c *ProjectsLocationsAssetsDeleteCall) doRequest(alt string) (*http.Response, error) {
7656 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7657 var body io.Reader = nil
7658 c.urlParams_.Set("alt", alt)
7659 c.urlParams_.Set("prettyPrint", "false")
7660 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
7661 urls += "?" + c.urlParams_.Encode()
7662 req, err := http.NewRequest("DELETE", urls, body)
7663 if err != nil {
7664 return nil, err
7665 }
7666 req.Header = reqHeaders
7667 googleapi.Expand(req.URL, map[string]string{
7668 "name": c.name,
7669 })
7670 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7671 }
7672
7673
7674
7675
7676
7677
7678 func (c *ProjectsLocationsAssetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
7679 gensupport.SetOptions(c.urlParams_, opts...)
7680 res, err := c.doRequest("json")
7681 if res != nil && res.StatusCode == http.StatusNotModified {
7682 if res.Body != nil {
7683 res.Body.Close()
7684 }
7685 return nil, gensupport.WrapError(&googleapi.Error{
7686 Code: res.StatusCode,
7687 Header: res.Header,
7688 })
7689 }
7690 if err != nil {
7691 return nil, err
7692 }
7693 defer googleapi.CloseBody(res)
7694 if err := googleapi.CheckResponse(res); err != nil {
7695 return nil, gensupport.WrapError(err)
7696 }
7697 ret := &Empty{
7698 ServerResponse: googleapi.ServerResponse{
7699 Header: res.Header,
7700 HTTPStatusCode: res.StatusCode,
7701 },
7702 }
7703 target := &ret
7704 if err := gensupport.DecodeResponse(target, res); err != nil {
7705 return nil, err
7706 }
7707 return ret, nil
7708 }
7709
7710 type ProjectsLocationsAssetsGetCall struct {
7711 s *Service
7712 name string
7713 urlParams_ gensupport.URLParams
7714 ifNoneMatch_ string
7715 ctx_ context.Context
7716 header_ http.Header
7717 }
7718
7719
7720
7721
7722 func (r *ProjectsLocationsAssetsService) Get(name string) *ProjectsLocationsAssetsGetCall {
7723 c := &ProjectsLocationsAssetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7724 c.name = name
7725 return c
7726 }
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748 func (c *ProjectsLocationsAssetsGetCall) View(view string) *ProjectsLocationsAssetsGetCall {
7749 c.urlParams_.Set("view", view)
7750 return c
7751 }
7752
7753
7754
7755
7756 func (c *ProjectsLocationsAssetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsGetCall {
7757 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7758 return c
7759 }
7760
7761
7762
7763
7764 func (c *ProjectsLocationsAssetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsGetCall {
7765 c.ifNoneMatch_ = entityTag
7766 return c
7767 }
7768
7769
7770 func (c *ProjectsLocationsAssetsGetCall) Context(ctx context.Context) *ProjectsLocationsAssetsGetCall {
7771 c.ctx_ = ctx
7772 return c
7773 }
7774
7775
7776
7777 func (c *ProjectsLocationsAssetsGetCall) Header() http.Header {
7778 if c.header_ == nil {
7779 c.header_ = make(http.Header)
7780 }
7781 return c.header_
7782 }
7783
7784 func (c *ProjectsLocationsAssetsGetCall) doRequest(alt string) (*http.Response, error) {
7785 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7786 if c.ifNoneMatch_ != "" {
7787 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7788 }
7789 var body io.Reader = nil
7790 c.urlParams_.Set("alt", alt)
7791 c.urlParams_.Set("prettyPrint", "false")
7792 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
7793 urls += "?" + c.urlParams_.Encode()
7794 req, err := http.NewRequest("GET", urls, body)
7795 if err != nil {
7796 return nil, err
7797 }
7798 req.Header = reqHeaders
7799 googleapi.Expand(req.URL, map[string]string{
7800 "name": c.name,
7801 })
7802 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7803 }
7804
7805
7806
7807
7808
7809
7810 func (c *ProjectsLocationsAssetsGetCall) Do(opts ...googleapi.CallOption) (*Asset, error) {
7811 gensupport.SetOptions(c.urlParams_, opts...)
7812 res, err := c.doRequest("json")
7813 if res != nil && res.StatusCode == http.StatusNotModified {
7814 if res.Body != nil {
7815 res.Body.Close()
7816 }
7817 return nil, gensupport.WrapError(&googleapi.Error{
7818 Code: res.StatusCode,
7819 Header: res.Header,
7820 })
7821 }
7822 if err != nil {
7823 return nil, err
7824 }
7825 defer googleapi.CloseBody(res)
7826 if err := googleapi.CheckResponse(res); err != nil {
7827 return nil, gensupport.WrapError(err)
7828 }
7829 ret := &Asset{
7830 ServerResponse: googleapi.ServerResponse{
7831 Header: res.Header,
7832 HTTPStatusCode: res.StatusCode,
7833 },
7834 }
7835 target := &ret
7836 if err := gensupport.DecodeResponse(target, res); err != nil {
7837 return nil, err
7838 }
7839 return ret, nil
7840 }
7841
7842 type ProjectsLocationsAssetsListCall struct {
7843 s *Service
7844 parent string
7845 urlParams_ gensupport.URLParams
7846 ifNoneMatch_ string
7847 ctx_ context.Context
7848 header_ http.Header
7849 }
7850
7851
7852
7853
7854 func (r *ProjectsLocationsAssetsService) List(parent string) *ProjectsLocationsAssetsListCall {
7855 c := &ProjectsLocationsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7856 c.parent = parent
7857 return c
7858 }
7859
7860
7861 func (c *ProjectsLocationsAssetsListCall) Filter(filter string) *ProjectsLocationsAssetsListCall {
7862 c.urlParams_.Set("filter", filter)
7863 return c
7864 }
7865
7866
7867
7868 func (c *ProjectsLocationsAssetsListCall) OrderBy(orderBy string) *ProjectsLocationsAssetsListCall {
7869 c.urlParams_.Set("orderBy", orderBy)
7870 return c
7871 }
7872
7873
7874
7875
7876 func (c *ProjectsLocationsAssetsListCall) PageSize(pageSize int64) *ProjectsLocationsAssetsListCall {
7877 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7878 return c
7879 }
7880
7881
7882
7883 func (c *ProjectsLocationsAssetsListCall) PageToken(pageToken string) *ProjectsLocationsAssetsListCall {
7884 c.urlParams_.Set("pageToken", pageToken)
7885 return c
7886 }
7887
7888
7889
7890
7891 func (c *ProjectsLocationsAssetsListCall) ShowHidden(showHidden bool) *ProjectsLocationsAssetsListCall {
7892 c.urlParams_.Set("showHidden", fmt.Sprint(showHidden))
7893 return c
7894 }
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916 func (c *ProjectsLocationsAssetsListCall) View(view string) *ProjectsLocationsAssetsListCall {
7917 c.urlParams_.Set("view", view)
7918 return c
7919 }
7920
7921
7922
7923
7924 func (c *ProjectsLocationsAssetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsListCall {
7925 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7926 return c
7927 }
7928
7929
7930
7931
7932 func (c *ProjectsLocationsAssetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsListCall {
7933 c.ifNoneMatch_ = entityTag
7934 return c
7935 }
7936
7937
7938 func (c *ProjectsLocationsAssetsListCall) Context(ctx context.Context) *ProjectsLocationsAssetsListCall {
7939 c.ctx_ = ctx
7940 return c
7941 }
7942
7943
7944
7945 func (c *ProjectsLocationsAssetsListCall) Header() http.Header {
7946 if c.header_ == nil {
7947 c.header_ = make(http.Header)
7948 }
7949 return c.header_
7950 }
7951
7952 func (c *ProjectsLocationsAssetsListCall) doRequest(alt string) (*http.Response, error) {
7953 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7954 if c.ifNoneMatch_ != "" {
7955 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7956 }
7957 var body io.Reader = nil
7958 c.urlParams_.Set("alt", alt)
7959 c.urlParams_.Set("prettyPrint", "false")
7960 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets")
7961 urls += "?" + c.urlParams_.Encode()
7962 req, err := http.NewRequest("GET", urls, body)
7963 if err != nil {
7964 return nil, err
7965 }
7966 req.Header = reqHeaders
7967 googleapi.Expand(req.URL, map[string]string{
7968 "parent": c.parent,
7969 })
7970 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7971 }
7972
7973
7974
7975
7976
7977
7978
7979 func (c *ProjectsLocationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error) {
7980 gensupport.SetOptions(c.urlParams_, opts...)
7981 res, err := c.doRequest("json")
7982 if res != nil && res.StatusCode == http.StatusNotModified {
7983 if res.Body != nil {
7984 res.Body.Close()
7985 }
7986 return nil, gensupport.WrapError(&googleapi.Error{
7987 Code: res.StatusCode,
7988 Header: res.Header,
7989 })
7990 }
7991 if err != nil {
7992 return nil, err
7993 }
7994 defer googleapi.CloseBody(res)
7995 if err := googleapi.CheckResponse(res); err != nil {
7996 return nil, gensupport.WrapError(err)
7997 }
7998 ret := &ListAssetsResponse{
7999 ServerResponse: googleapi.ServerResponse{
8000 Header: res.Header,
8001 HTTPStatusCode: res.StatusCode,
8002 },
8003 }
8004 target := &ret
8005 if err := gensupport.DecodeResponse(target, res); err != nil {
8006 return nil, err
8007 }
8008 return ret, nil
8009 }
8010
8011
8012
8013
8014 func (c *ProjectsLocationsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error {
8015 c.ctx_ = ctx
8016 defer c.PageToken(c.urlParams_.Get("pageToken"))
8017 for {
8018 x, err := c.Do()
8019 if err != nil {
8020 return err
8021 }
8022 if err := f(x); err != nil {
8023 return err
8024 }
8025 if x.NextPageToken == "" {
8026 return nil
8027 }
8028 c.PageToken(x.NextPageToken)
8029 }
8030 }
8031
8032 type ProjectsLocationsAssetsPatchCall struct {
8033 s *Service
8034 name string
8035 asset *Asset
8036 urlParams_ gensupport.URLParams
8037 ctx_ context.Context
8038 header_ http.Header
8039 }
8040
8041
8042
8043
8044 func (r *ProjectsLocationsAssetsService) Patch(name string, asset *Asset) *ProjectsLocationsAssetsPatchCall {
8045 c := &ProjectsLocationsAssetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8046 c.name = name
8047 c.asset = asset
8048 return c
8049 }
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062 func (c *ProjectsLocationsAssetsPatchCall) RequestId(requestId string) *ProjectsLocationsAssetsPatchCall {
8063 c.urlParams_.Set("requestId", requestId)
8064 return c
8065 }
8066
8067
8068
8069
8070
8071
8072 func (c *ProjectsLocationsAssetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAssetsPatchCall {
8073 c.urlParams_.Set("updateMask", updateMask)
8074 return c
8075 }
8076
8077
8078
8079
8080 func (c *ProjectsLocationsAssetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsPatchCall {
8081 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8082 return c
8083 }
8084
8085
8086 func (c *ProjectsLocationsAssetsPatchCall) Context(ctx context.Context) *ProjectsLocationsAssetsPatchCall {
8087 c.ctx_ = ctx
8088 return c
8089 }
8090
8091
8092
8093 func (c *ProjectsLocationsAssetsPatchCall) Header() http.Header {
8094 if c.header_ == nil {
8095 c.header_ = make(http.Header)
8096 }
8097 return c.header_
8098 }
8099
8100 func (c *ProjectsLocationsAssetsPatchCall) doRequest(alt string) (*http.Response, error) {
8101 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8102 var body io.Reader = nil
8103 body, err := googleapi.WithoutDataWrapper.JSONReader(c.asset)
8104 if err != nil {
8105 return nil, err
8106 }
8107 c.urlParams_.Set("alt", alt)
8108 c.urlParams_.Set("prettyPrint", "false")
8109 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
8110 urls += "?" + c.urlParams_.Encode()
8111 req, err := http.NewRequest("PATCH", urls, body)
8112 if err != nil {
8113 return nil, err
8114 }
8115 req.Header = reqHeaders
8116 googleapi.Expand(req.URL, map[string]string{
8117 "name": c.name,
8118 })
8119 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8120 }
8121
8122
8123
8124
8125
8126
8127 func (c *ProjectsLocationsAssetsPatchCall) Do(opts ...googleapi.CallOption) (*Asset, error) {
8128 gensupport.SetOptions(c.urlParams_, opts...)
8129 res, err := c.doRequest("json")
8130 if res != nil && res.StatusCode == http.StatusNotModified {
8131 if res.Body != nil {
8132 res.Body.Close()
8133 }
8134 return nil, gensupport.WrapError(&googleapi.Error{
8135 Code: res.StatusCode,
8136 Header: res.Header,
8137 })
8138 }
8139 if err != nil {
8140 return nil, err
8141 }
8142 defer googleapi.CloseBody(res)
8143 if err := googleapi.CheckResponse(res); err != nil {
8144 return nil, gensupport.WrapError(err)
8145 }
8146 ret := &Asset{
8147 ServerResponse: googleapi.ServerResponse{
8148 Header: res.Header,
8149 HTTPStatusCode: res.StatusCode,
8150 },
8151 }
8152 target := &ret
8153 if err := gensupport.DecodeResponse(target, res); err != nil {
8154 return nil, err
8155 }
8156 return ret, nil
8157 }
8158
8159 type ProjectsLocationsAssetsReportAssetFramesCall struct {
8160 s *Service
8161 parent string
8162 frames *Frames
8163 urlParams_ gensupport.URLParams
8164 ctx_ context.Context
8165 header_ http.Header
8166 }
8167
8168
8169
8170
8171 func (r *ProjectsLocationsAssetsService) ReportAssetFrames(parent string, frames *Frames) *ProjectsLocationsAssetsReportAssetFramesCall {
8172 c := &ProjectsLocationsAssetsReportAssetFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8173 c.parent = parent
8174 c.frames = frames
8175 return c
8176 }
8177
8178
8179
8180 func (c *ProjectsLocationsAssetsReportAssetFramesCall) Source(source string) *ProjectsLocationsAssetsReportAssetFramesCall {
8181 c.urlParams_.Set("source", source)
8182 return c
8183 }
8184
8185
8186
8187
8188 func (c *ProjectsLocationsAssetsReportAssetFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsReportAssetFramesCall {
8189 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8190 return c
8191 }
8192
8193
8194 func (c *ProjectsLocationsAssetsReportAssetFramesCall) Context(ctx context.Context) *ProjectsLocationsAssetsReportAssetFramesCall {
8195 c.ctx_ = ctx
8196 return c
8197 }
8198
8199
8200
8201 func (c *ProjectsLocationsAssetsReportAssetFramesCall) Header() http.Header {
8202 if c.header_ == nil {
8203 c.header_ = make(http.Header)
8204 }
8205 return c.header_
8206 }
8207
8208 func (c *ProjectsLocationsAssetsReportAssetFramesCall) doRequest(alt string) (*http.Response, error) {
8209 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8210 var body io.Reader = nil
8211 body, err := googleapi.WithoutDataWrapper.JSONReader(c.frames)
8212 if err != nil {
8213 return nil, err
8214 }
8215 c.urlParams_.Set("alt", alt)
8216 c.urlParams_.Set("prettyPrint", "false")
8217 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets:reportAssetFrames")
8218 urls += "?" + c.urlParams_.Encode()
8219 req, err := http.NewRequest("POST", urls, body)
8220 if err != nil {
8221 return nil, err
8222 }
8223 req.Header = reqHeaders
8224 googleapi.Expand(req.URL, map[string]string{
8225 "parent": c.parent,
8226 })
8227 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8228 }
8229
8230
8231
8232
8233
8234
8235
8236 func (c *ProjectsLocationsAssetsReportAssetFramesCall) Do(opts ...googleapi.CallOption) (*ReportAssetFramesResponse, error) {
8237 gensupport.SetOptions(c.urlParams_, opts...)
8238 res, err := c.doRequest("json")
8239 if res != nil && res.StatusCode == http.StatusNotModified {
8240 if res.Body != nil {
8241 res.Body.Close()
8242 }
8243 return nil, gensupport.WrapError(&googleapi.Error{
8244 Code: res.StatusCode,
8245 Header: res.Header,
8246 })
8247 }
8248 if err != nil {
8249 return nil, err
8250 }
8251 defer googleapi.CloseBody(res)
8252 if err := googleapi.CheckResponse(res); err != nil {
8253 return nil, gensupport.WrapError(err)
8254 }
8255 ret := &ReportAssetFramesResponse{
8256 ServerResponse: googleapi.ServerResponse{
8257 Header: res.Header,
8258 HTTPStatusCode: res.StatusCode,
8259 },
8260 }
8261 target := &ret
8262 if err := gensupport.DecodeResponse(target, res); err != nil {
8263 return nil, err
8264 }
8265 return ret, nil
8266 }
8267
8268 type ProjectsLocationsDiscoveryClientsCreateCall struct {
8269 s *Service
8270 parent string
8271 discoveryclient *DiscoveryClient
8272 urlParams_ gensupport.URLParams
8273 ctx_ context.Context
8274 header_ http.Header
8275 }
8276
8277
8278
8279
8280 func (r *ProjectsLocationsDiscoveryClientsService) Create(parent string, discoveryclient *DiscoveryClient) *ProjectsLocationsDiscoveryClientsCreateCall {
8281 c := &ProjectsLocationsDiscoveryClientsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8282 c.parent = parent
8283 c.discoveryclient = discoveryclient
8284 return c
8285 }
8286
8287
8288
8289
8290
8291
8292
8293 func (c *ProjectsLocationsDiscoveryClientsCreateCall) DiscoveryClientId(discoveryClientId string) *ProjectsLocationsDiscoveryClientsCreateCall {
8294 c.urlParams_.Set("discoveryClientId", discoveryClientId)
8295 return c
8296 }
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309 func (c *ProjectsLocationsDiscoveryClientsCreateCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsCreateCall {
8310 c.urlParams_.Set("requestId", requestId)
8311 return c
8312 }
8313
8314
8315
8316
8317 func (c *ProjectsLocationsDiscoveryClientsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsCreateCall {
8318 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8319 return c
8320 }
8321
8322
8323 func (c *ProjectsLocationsDiscoveryClientsCreateCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsCreateCall {
8324 c.ctx_ = ctx
8325 return c
8326 }
8327
8328
8329
8330 func (c *ProjectsLocationsDiscoveryClientsCreateCall) Header() http.Header {
8331 if c.header_ == nil {
8332 c.header_ = make(http.Header)
8333 }
8334 return c.header_
8335 }
8336
8337 func (c *ProjectsLocationsDiscoveryClientsCreateCall) doRequest(alt string) (*http.Response, error) {
8338 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8339 var body io.Reader = nil
8340 body, err := googleapi.WithoutDataWrapper.JSONReader(c.discoveryclient)
8341 if err != nil {
8342 return nil, err
8343 }
8344 c.urlParams_.Set("alt", alt)
8345 c.urlParams_.Set("prettyPrint", "false")
8346 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/discoveryClients")
8347 urls += "?" + c.urlParams_.Encode()
8348 req, err := http.NewRequest("POST", urls, body)
8349 if err != nil {
8350 return nil, err
8351 }
8352 req.Header = reqHeaders
8353 googleapi.Expand(req.URL, map[string]string{
8354 "parent": c.parent,
8355 })
8356 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8357 }
8358
8359
8360
8361
8362
8363
8364 func (c *ProjectsLocationsDiscoveryClientsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8365 gensupport.SetOptions(c.urlParams_, opts...)
8366 res, err := c.doRequest("json")
8367 if res != nil && res.StatusCode == http.StatusNotModified {
8368 if res.Body != nil {
8369 res.Body.Close()
8370 }
8371 return nil, gensupport.WrapError(&googleapi.Error{
8372 Code: res.StatusCode,
8373 Header: res.Header,
8374 })
8375 }
8376 if err != nil {
8377 return nil, err
8378 }
8379 defer googleapi.CloseBody(res)
8380 if err := googleapi.CheckResponse(res); err != nil {
8381 return nil, gensupport.WrapError(err)
8382 }
8383 ret := &Operation{
8384 ServerResponse: googleapi.ServerResponse{
8385 Header: res.Header,
8386 HTTPStatusCode: res.StatusCode,
8387 },
8388 }
8389 target := &ret
8390 if err := gensupport.DecodeResponse(target, res); err != nil {
8391 return nil, err
8392 }
8393 return ret, nil
8394 }
8395
8396 type ProjectsLocationsDiscoveryClientsDeleteCall struct {
8397 s *Service
8398 name string
8399 urlParams_ gensupport.URLParams
8400 ctx_ context.Context
8401 header_ http.Header
8402 }
8403
8404
8405
8406
8407 func (r *ProjectsLocationsDiscoveryClientsService) Delete(name string) *ProjectsLocationsDiscoveryClientsDeleteCall {
8408 c := &ProjectsLocationsDiscoveryClientsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8409 c.name = name
8410 return c
8411 }
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424 func (c *ProjectsLocationsDiscoveryClientsDeleteCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsDeleteCall {
8425 c.urlParams_.Set("requestId", requestId)
8426 return c
8427 }
8428
8429
8430
8431
8432 func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsDeleteCall {
8433 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8434 return c
8435 }
8436
8437
8438 func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsDeleteCall {
8439 c.ctx_ = ctx
8440 return c
8441 }
8442
8443
8444
8445 func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Header() http.Header {
8446 if c.header_ == nil {
8447 c.header_ = make(http.Header)
8448 }
8449 return c.header_
8450 }
8451
8452 func (c *ProjectsLocationsDiscoveryClientsDeleteCall) doRequest(alt string) (*http.Response, error) {
8453 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8454 var body io.Reader = nil
8455 c.urlParams_.Set("alt", alt)
8456 c.urlParams_.Set("prettyPrint", "false")
8457 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
8458 urls += "?" + c.urlParams_.Encode()
8459 req, err := http.NewRequest("DELETE", urls, body)
8460 if err != nil {
8461 return nil, err
8462 }
8463 req.Header = reqHeaders
8464 googleapi.Expand(req.URL, map[string]string{
8465 "name": c.name,
8466 })
8467 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8468 }
8469
8470
8471
8472
8473
8474
8475 func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8476 gensupport.SetOptions(c.urlParams_, opts...)
8477 res, err := c.doRequest("json")
8478 if res != nil && res.StatusCode == http.StatusNotModified {
8479 if res.Body != nil {
8480 res.Body.Close()
8481 }
8482 return nil, gensupport.WrapError(&googleapi.Error{
8483 Code: res.StatusCode,
8484 Header: res.Header,
8485 })
8486 }
8487 if err != nil {
8488 return nil, err
8489 }
8490 defer googleapi.CloseBody(res)
8491 if err := googleapi.CheckResponse(res); err != nil {
8492 return nil, gensupport.WrapError(err)
8493 }
8494 ret := &Operation{
8495 ServerResponse: googleapi.ServerResponse{
8496 Header: res.Header,
8497 HTTPStatusCode: res.StatusCode,
8498 },
8499 }
8500 target := &ret
8501 if err := gensupport.DecodeResponse(target, res); err != nil {
8502 return nil, err
8503 }
8504 return ret, nil
8505 }
8506
8507 type ProjectsLocationsDiscoveryClientsGetCall struct {
8508 s *Service
8509 name string
8510 urlParams_ gensupport.URLParams
8511 ifNoneMatch_ string
8512 ctx_ context.Context
8513 header_ http.Header
8514 }
8515
8516
8517
8518
8519 func (r *ProjectsLocationsDiscoveryClientsService) Get(name string) *ProjectsLocationsDiscoveryClientsGetCall {
8520 c := &ProjectsLocationsDiscoveryClientsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8521 c.name = name
8522 return c
8523 }
8524
8525
8526
8527
8528 func (c *ProjectsLocationsDiscoveryClientsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsGetCall {
8529 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8530 return c
8531 }
8532
8533
8534
8535
8536 func (c *ProjectsLocationsDiscoveryClientsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryClientsGetCall {
8537 c.ifNoneMatch_ = entityTag
8538 return c
8539 }
8540
8541
8542 func (c *ProjectsLocationsDiscoveryClientsGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsGetCall {
8543 c.ctx_ = ctx
8544 return c
8545 }
8546
8547
8548
8549 func (c *ProjectsLocationsDiscoveryClientsGetCall) Header() http.Header {
8550 if c.header_ == nil {
8551 c.header_ = make(http.Header)
8552 }
8553 return c.header_
8554 }
8555
8556 func (c *ProjectsLocationsDiscoveryClientsGetCall) doRequest(alt string) (*http.Response, error) {
8557 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8558 if c.ifNoneMatch_ != "" {
8559 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8560 }
8561 var body io.Reader = nil
8562 c.urlParams_.Set("alt", alt)
8563 c.urlParams_.Set("prettyPrint", "false")
8564 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
8565 urls += "?" + c.urlParams_.Encode()
8566 req, err := http.NewRequest("GET", urls, body)
8567 if err != nil {
8568 return nil, err
8569 }
8570 req.Header = reqHeaders
8571 googleapi.Expand(req.URL, map[string]string{
8572 "name": c.name,
8573 })
8574 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8575 }
8576
8577
8578
8579
8580
8581
8582
8583 func (c *ProjectsLocationsDiscoveryClientsGetCall) Do(opts ...googleapi.CallOption) (*DiscoveryClient, error) {
8584 gensupport.SetOptions(c.urlParams_, opts...)
8585 res, err := c.doRequest("json")
8586 if res != nil && res.StatusCode == http.StatusNotModified {
8587 if res.Body != nil {
8588 res.Body.Close()
8589 }
8590 return nil, gensupport.WrapError(&googleapi.Error{
8591 Code: res.StatusCode,
8592 Header: res.Header,
8593 })
8594 }
8595 if err != nil {
8596 return nil, err
8597 }
8598 defer googleapi.CloseBody(res)
8599 if err := googleapi.CheckResponse(res); err != nil {
8600 return nil, gensupport.WrapError(err)
8601 }
8602 ret := &DiscoveryClient{
8603 ServerResponse: googleapi.ServerResponse{
8604 Header: res.Header,
8605 HTTPStatusCode: res.StatusCode,
8606 },
8607 }
8608 target := &ret
8609 if err := gensupport.DecodeResponse(target, res); err != nil {
8610 return nil, err
8611 }
8612 return ret, nil
8613 }
8614
8615 type ProjectsLocationsDiscoveryClientsListCall struct {
8616 s *Service
8617 parent string
8618 urlParams_ gensupport.URLParams
8619 ifNoneMatch_ string
8620 ctx_ context.Context
8621 header_ http.Header
8622 }
8623
8624
8625
8626
8627 func (r *ProjectsLocationsDiscoveryClientsService) List(parent string) *ProjectsLocationsDiscoveryClientsListCall {
8628 c := &ProjectsLocationsDiscoveryClientsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8629 c.parent = parent
8630 return c
8631 }
8632
8633
8634
8635 func (c *ProjectsLocationsDiscoveryClientsListCall) Filter(filter string) *ProjectsLocationsDiscoveryClientsListCall {
8636 c.urlParams_.Set("filter", filter)
8637 return c
8638 }
8639
8640
8641 func (c *ProjectsLocationsDiscoveryClientsListCall) OrderBy(orderBy string) *ProjectsLocationsDiscoveryClientsListCall {
8642 c.urlParams_.Set("orderBy", orderBy)
8643 return c
8644 }
8645
8646
8647
8648
8649 func (c *ProjectsLocationsDiscoveryClientsListCall) PageSize(pageSize int64) *ProjectsLocationsDiscoveryClientsListCall {
8650 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8651 return c
8652 }
8653
8654
8655
8656
8657
8658 func (c *ProjectsLocationsDiscoveryClientsListCall) PageToken(pageToken string) *ProjectsLocationsDiscoveryClientsListCall {
8659 c.urlParams_.Set("pageToken", pageToken)
8660 return c
8661 }
8662
8663
8664
8665
8666 func (c *ProjectsLocationsDiscoveryClientsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsListCall {
8667 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8668 return c
8669 }
8670
8671
8672
8673
8674 func (c *ProjectsLocationsDiscoveryClientsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryClientsListCall {
8675 c.ifNoneMatch_ = entityTag
8676 return c
8677 }
8678
8679
8680 func (c *ProjectsLocationsDiscoveryClientsListCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsListCall {
8681 c.ctx_ = ctx
8682 return c
8683 }
8684
8685
8686
8687 func (c *ProjectsLocationsDiscoveryClientsListCall) Header() http.Header {
8688 if c.header_ == nil {
8689 c.header_ = make(http.Header)
8690 }
8691 return c.header_
8692 }
8693
8694 func (c *ProjectsLocationsDiscoveryClientsListCall) doRequest(alt string) (*http.Response, error) {
8695 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8696 if c.ifNoneMatch_ != "" {
8697 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8698 }
8699 var body io.Reader = nil
8700 c.urlParams_.Set("alt", alt)
8701 c.urlParams_.Set("prettyPrint", "false")
8702 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/discoveryClients")
8703 urls += "?" + c.urlParams_.Encode()
8704 req, err := http.NewRequest("GET", urls, body)
8705 if err != nil {
8706 return nil, err
8707 }
8708 req.Header = reqHeaders
8709 googleapi.Expand(req.URL, map[string]string{
8710 "parent": c.parent,
8711 })
8712 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8713 }
8714
8715
8716
8717
8718
8719
8720
8721 func (c *ProjectsLocationsDiscoveryClientsListCall) Do(opts ...googleapi.CallOption) (*ListDiscoveryClientsResponse, error) {
8722 gensupport.SetOptions(c.urlParams_, opts...)
8723 res, err := c.doRequest("json")
8724 if res != nil && res.StatusCode == http.StatusNotModified {
8725 if res.Body != nil {
8726 res.Body.Close()
8727 }
8728 return nil, gensupport.WrapError(&googleapi.Error{
8729 Code: res.StatusCode,
8730 Header: res.Header,
8731 })
8732 }
8733 if err != nil {
8734 return nil, err
8735 }
8736 defer googleapi.CloseBody(res)
8737 if err := googleapi.CheckResponse(res); err != nil {
8738 return nil, gensupport.WrapError(err)
8739 }
8740 ret := &ListDiscoveryClientsResponse{
8741 ServerResponse: googleapi.ServerResponse{
8742 Header: res.Header,
8743 HTTPStatusCode: res.StatusCode,
8744 },
8745 }
8746 target := &ret
8747 if err := gensupport.DecodeResponse(target, res); err != nil {
8748 return nil, err
8749 }
8750 return ret, nil
8751 }
8752
8753
8754
8755
8756 func (c *ProjectsLocationsDiscoveryClientsListCall) Pages(ctx context.Context, f func(*ListDiscoveryClientsResponse) error) error {
8757 c.ctx_ = ctx
8758 defer c.PageToken(c.urlParams_.Get("pageToken"))
8759 for {
8760 x, err := c.Do()
8761 if err != nil {
8762 return err
8763 }
8764 if err := f(x); err != nil {
8765 return err
8766 }
8767 if x.NextPageToken == "" {
8768 return nil
8769 }
8770 c.PageToken(x.NextPageToken)
8771 }
8772 }
8773
8774 type ProjectsLocationsDiscoveryClientsPatchCall struct {
8775 s *Service
8776 name string
8777 discoveryclient *DiscoveryClient
8778 urlParams_ gensupport.URLParams
8779 ctx_ context.Context
8780 header_ http.Header
8781 }
8782
8783
8784
8785
8786 func (r *ProjectsLocationsDiscoveryClientsService) Patch(name string, discoveryclient *DiscoveryClient) *ProjectsLocationsDiscoveryClientsPatchCall {
8787 c := &ProjectsLocationsDiscoveryClientsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8788 c.name = name
8789 c.discoveryclient = discoveryclient
8790 return c
8791 }
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804 func (c *ProjectsLocationsDiscoveryClientsPatchCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsPatchCall {
8805 c.urlParams_.Set("requestId", requestId)
8806 return c
8807 }
8808
8809
8810
8811
8812
8813
8814
8815 func (c *ProjectsLocationsDiscoveryClientsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDiscoveryClientsPatchCall {
8816 c.urlParams_.Set("updateMask", updateMask)
8817 return c
8818 }
8819
8820
8821
8822
8823 func (c *ProjectsLocationsDiscoveryClientsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsPatchCall {
8824 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8825 return c
8826 }
8827
8828
8829 func (c *ProjectsLocationsDiscoveryClientsPatchCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsPatchCall {
8830 c.ctx_ = ctx
8831 return c
8832 }
8833
8834
8835
8836 func (c *ProjectsLocationsDiscoveryClientsPatchCall) Header() http.Header {
8837 if c.header_ == nil {
8838 c.header_ = make(http.Header)
8839 }
8840 return c.header_
8841 }
8842
8843 func (c *ProjectsLocationsDiscoveryClientsPatchCall) doRequest(alt string) (*http.Response, error) {
8844 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8845 var body io.Reader = nil
8846 body, err := googleapi.WithoutDataWrapper.JSONReader(c.discoveryclient)
8847 if err != nil {
8848 return nil, err
8849 }
8850 c.urlParams_.Set("alt", alt)
8851 c.urlParams_.Set("prettyPrint", "false")
8852 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
8853 urls += "?" + c.urlParams_.Encode()
8854 req, err := http.NewRequest("PATCH", urls, body)
8855 if err != nil {
8856 return nil, err
8857 }
8858 req.Header = reqHeaders
8859 googleapi.Expand(req.URL, map[string]string{
8860 "name": c.name,
8861 })
8862 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8863 }
8864
8865
8866
8867
8868
8869
8870 func (c *ProjectsLocationsDiscoveryClientsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8871 gensupport.SetOptions(c.urlParams_, opts...)
8872 res, err := c.doRequest("json")
8873 if res != nil && res.StatusCode == http.StatusNotModified {
8874 if res.Body != nil {
8875 res.Body.Close()
8876 }
8877 return nil, gensupport.WrapError(&googleapi.Error{
8878 Code: res.StatusCode,
8879 Header: res.Header,
8880 })
8881 }
8882 if err != nil {
8883 return nil, err
8884 }
8885 defer googleapi.CloseBody(res)
8886 if err := googleapi.CheckResponse(res); err != nil {
8887 return nil, gensupport.WrapError(err)
8888 }
8889 ret := &Operation{
8890 ServerResponse: googleapi.ServerResponse{
8891 Header: res.Header,
8892 HTTPStatusCode: res.StatusCode,
8893 },
8894 }
8895 target := &ret
8896 if err := gensupport.DecodeResponse(target, res); err != nil {
8897 return nil, err
8898 }
8899 return ret, nil
8900 }
8901
8902 type ProjectsLocationsDiscoveryClientsSendHeartbeatCall struct {
8903 s *Service
8904 name string
8905 senddiscoveryclientheartbeatrequest *SendDiscoveryClientHeartbeatRequest
8906 urlParams_ gensupport.URLParams
8907 ctx_ context.Context
8908 header_ http.Header
8909 }
8910
8911
8912
8913
8914
8915 func (r *ProjectsLocationsDiscoveryClientsService) SendHeartbeat(name string, senddiscoveryclientheartbeatrequest *SendDiscoveryClientHeartbeatRequest) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
8916 c := &ProjectsLocationsDiscoveryClientsSendHeartbeatCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8917 c.name = name
8918 c.senddiscoveryclientheartbeatrequest = senddiscoveryclientheartbeatrequest
8919 return c
8920 }
8921
8922
8923
8924
8925 func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
8926 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8927 return c
8928 }
8929
8930
8931 func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
8932 c.ctx_ = ctx
8933 return c
8934 }
8935
8936
8937
8938 func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Header() http.Header {
8939 if c.header_ == nil {
8940 c.header_ = make(http.Header)
8941 }
8942 return c.header_
8943 }
8944
8945 func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) doRequest(alt string) (*http.Response, error) {
8946 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8947 var body io.Reader = nil
8948 body, err := googleapi.WithoutDataWrapper.JSONReader(c.senddiscoveryclientheartbeatrequest)
8949 if err != nil {
8950 return nil, err
8951 }
8952 c.urlParams_.Set("alt", alt)
8953 c.urlParams_.Set("prettyPrint", "false")
8954 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:sendHeartbeat")
8955 urls += "?" + c.urlParams_.Encode()
8956 req, err := http.NewRequest("POST", urls, body)
8957 if err != nil {
8958 return nil, err
8959 }
8960 req.Header = reqHeaders
8961 googleapi.Expand(req.URL, map[string]string{
8962 "name": c.name,
8963 })
8964 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8965 }
8966
8967
8968
8969
8970
8971
8972 func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8973 gensupport.SetOptions(c.urlParams_, opts...)
8974 res, err := c.doRequest("json")
8975 if res != nil && res.StatusCode == http.StatusNotModified {
8976 if res.Body != nil {
8977 res.Body.Close()
8978 }
8979 return nil, gensupport.WrapError(&googleapi.Error{
8980 Code: res.StatusCode,
8981 Header: res.Header,
8982 })
8983 }
8984 if err != nil {
8985 return nil, err
8986 }
8987 defer googleapi.CloseBody(res)
8988 if err := googleapi.CheckResponse(res); err != nil {
8989 return nil, gensupport.WrapError(err)
8990 }
8991 ret := &Operation{
8992 ServerResponse: googleapi.ServerResponse{
8993 Header: res.Header,
8994 HTTPStatusCode: res.StatusCode,
8995 },
8996 }
8997 target := &ret
8998 if err := gensupport.DecodeResponse(target, res); err != nil {
8999 return nil, err
9000 }
9001 return ret, nil
9002 }
9003
9004 type ProjectsLocationsGroupsAddAssetsCall struct {
9005 s *Service
9006 group string
9007 addassetstogrouprequest *AddAssetsToGroupRequest
9008 urlParams_ gensupport.URLParams
9009 ctx_ context.Context
9010 header_ http.Header
9011 }
9012
9013
9014
9015
9016 func (r *ProjectsLocationsGroupsService) AddAssets(group string, addassetstogrouprequest *AddAssetsToGroupRequest) *ProjectsLocationsGroupsAddAssetsCall {
9017 c := &ProjectsLocationsGroupsAddAssetsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9018 c.group = group
9019 c.addassetstogrouprequest = addassetstogrouprequest
9020 return c
9021 }
9022
9023
9024
9025
9026 func (c *ProjectsLocationsGroupsAddAssetsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsAddAssetsCall {
9027 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9028 return c
9029 }
9030
9031
9032 func (c *ProjectsLocationsGroupsAddAssetsCall) Context(ctx context.Context) *ProjectsLocationsGroupsAddAssetsCall {
9033 c.ctx_ = ctx
9034 return c
9035 }
9036
9037
9038
9039 func (c *ProjectsLocationsGroupsAddAssetsCall) Header() http.Header {
9040 if c.header_ == nil {
9041 c.header_ = make(http.Header)
9042 }
9043 return c.header_
9044 }
9045
9046 func (c *ProjectsLocationsGroupsAddAssetsCall) doRequest(alt string) (*http.Response, error) {
9047 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9048 var body io.Reader = nil
9049 body, err := googleapi.WithoutDataWrapper.JSONReader(c.addassetstogrouprequest)
9050 if err != nil {
9051 return nil, err
9052 }
9053 c.urlParams_.Set("alt", alt)
9054 c.urlParams_.Set("prettyPrint", "false")
9055 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+group}:addAssets")
9056 urls += "?" + c.urlParams_.Encode()
9057 req, err := http.NewRequest("POST", urls, body)
9058 if err != nil {
9059 return nil, err
9060 }
9061 req.Header = reqHeaders
9062 googleapi.Expand(req.URL, map[string]string{
9063 "group": c.group,
9064 })
9065 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9066 }
9067
9068
9069
9070
9071
9072
9073 func (c *ProjectsLocationsGroupsAddAssetsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9074 gensupport.SetOptions(c.urlParams_, opts...)
9075 res, err := c.doRequest("json")
9076 if res != nil && res.StatusCode == http.StatusNotModified {
9077 if res.Body != nil {
9078 res.Body.Close()
9079 }
9080 return nil, gensupport.WrapError(&googleapi.Error{
9081 Code: res.StatusCode,
9082 Header: res.Header,
9083 })
9084 }
9085 if err != nil {
9086 return nil, err
9087 }
9088 defer googleapi.CloseBody(res)
9089 if err := googleapi.CheckResponse(res); err != nil {
9090 return nil, gensupport.WrapError(err)
9091 }
9092 ret := &Operation{
9093 ServerResponse: googleapi.ServerResponse{
9094 Header: res.Header,
9095 HTTPStatusCode: res.StatusCode,
9096 },
9097 }
9098 target := &ret
9099 if err := gensupport.DecodeResponse(target, res); err != nil {
9100 return nil, err
9101 }
9102 return ret, nil
9103 }
9104
9105 type ProjectsLocationsGroupsCreateCall struct {
9106 s *Service
9107 parent string
9108 group *Group
9109 urlParams_ gensupport.URLParams
9110 ctx_ context.Context
9111 header_ http.Header
9112 }
9113
9114
9115
9116
9117 func (r *ProjectsLocationsGroupsService) Create(parent string, group *Group) *ProjectsLocationsGroupsCreateCall {
9118 c := &ProjectsLocationsGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9119 c.parent = parent
9120 c.group = group
9121 return c
9122 }
9123
9124
9125
9126
9127
9128
9129 func (c *ProjectsLocationsGroupsCreateCall) GroupId(groupId string) *ProjectsLocationsGroupsCreateCall {
9130 c.urlParams_.Set("groupId", groupId)
9131 return c
9132 }
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145 func (c *ProjectsLocationsGroupsCreateCall) RequestId(requestId string) *ProjectsLocationsGroupsCreateCall {
9146 c.urlParams_.Set("requestId", requestId)
9147 return c
9148 }
9149
9150
9151
9152
9153 func (c *ProjectsLocationsGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsCreateCall {
9154 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9155 return c
9156 }
9157
9158
9159 func (c *ProjectsLocationsGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsGroupsCreateCall {
9160 c.ctx_ = ctx
9161 return c
9162 }
9163
9164
9165
9166 func (c *ProjectsLocationsGroupsCreateCall) Header() http.Header {
9167 if c.header_ == nil {
9168 c.header_ = make(http.Header)
9169 }
9170 return c.header_
9171 }
9172
9173 func (c *ProjectsLocationsGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
9174 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9175 var body io.Reader = nil
9176 body, err := googleapi.WithoutDataWrapper.JSONReader(c.group)
9177 if err != nil {
9178 return nil, err
9179 }
9180 c.urlParams_.Set("alt", alt)
9181 c.urlParams_.Set("prettyPrint", "false")
9182 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/groups")
9183 urls += "?" + c.urlParams_.Encode()
9184 req, err := http.NewRequest("POST", urls, body)
9185 if err != nil {
9186 return nil, err
9187 }
9188 req.Header = reqHeaders
9189 googleapi.Expand(req.URL, map[string]string{
9190 "parent": c.parent,
9191 })
9192 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9193 }
9194
9195
9196
9197
9198
9199
9200 func (c *ProjectsLocationsGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9201 gensupport.SetOptions(c.urlParams_, opts...)
9202 res, err := c.doRequest("json")
9203 if res != nil && res.StatusCode == http.StatusNotModified {
9204 if res.Body != nil {
9205 res.Body.Close()
9206 }
9207 return nil, gensupport.WrapError(&googleapi.Error{
9208 Code: res.StatusCode,
9209 Header: res.Header,
9210 })
9211 }
9212 if err != nil {
9213 return nil, err
9214 }
9215 defer googleapi.CloseBody(res)
9216 if err := googleapi.CheckResponse(res); err != nil {
9217 return nil, gensupport.WrapError(err)
9218 }
9219 ret := &Operation{
9220 ServerResponse: googleapi.ServerResponse{
9221 Header: res.Header,
9222 HTTPStatusCode: res.StatusCode,
9223 },
9224 }
9225 target := &ret
9226 if err := gensupport.DecodeResponse(target, res); err != nil {
9227 return nil, err
9228 }
9229 return ret, nil
9230 }
9231
9232 type ProjectsLocationsGroupsDeleteCall struct {
9233 s *Service
9234 name string
9235 urlParams_ gensupport.URLParams
9236 ctx_ context.Context
9237 header_ http.Header
9238 }
9239
9240
9241
9242
9243 func (r *ProjectsLocationsGroupsService) Delete(name string) *ProjectsLocationsGroupsDeleteCall {
9244 c := &ProjectsLocationsGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9245 c.name = name
9246 return c
9247 }
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260 func (c *ProjectsLocationsGroupsDeleteCall) RequestId(requestId string) *ProjectsLocationsGroupsDeleteCall {
9261 c.urlParams_.Set("requestId", requestId)
9262 return c
9263 }
9264
9265
9266
9267
9268 func (c *ProjectsLocationsGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsDeleteCall {
9269 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9270 return c
9271 }
9272
9273
9274 func (c *ProjectsLocationsGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGroupsDeleteCall {
9275 c.ctx_ = ctx
9276 return c
9277 }
9278
9279
9280
9281 func (c *ProjectsLocationsGroupsDeleteCall) Header() http.Header {
9282 if c.header_ == nil {
9283 c.header_ = make(http.Header)
9284 }
9285 return c.header_
9286 }
9287
9288 func (c *ProjectsLocationsGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
9289 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9290 var body io.Reader = nil
9291 c.urlParams_.Set("alt", alt)
9292 c.urlParams_.Set("prettyPrint", "false")
9293 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
9294 urls += "?" + c.urlParams_.Encode()
9295 req, err := http.NewRequest("DELETE", urls, body)
9296 if err != nil {
9297 return nil, err
9298 }
9299 req.Header = reqHeaders
9300 googleapi.Expand(req.URL, map[string]string{
9301 "name": c.name,
9302 })
9303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9304 }
9305
9306
9307
9308
9309
9310
9311 func (c *ProjectsLocationsGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9312 gensupport.SetOptions(c.urlParams_, opts...)
9313 res, err := c.doRequest("json")
9314 if res != nil && res.StatusCode == http.StatusNotModified {
9315 if res.Body != nil {
9316 res.Body.Close()
9317 }
9318 return nil, gensupport.WrapError(&googleapi.Error{
9319 Code: res.StatusCode,
9320 Header: res.Header,
9321 })
9322 }
9323 if err != nil {
9324 return nil, err
9325 }
9326 defer googleapi.CloseBody(res)
9327 if err := googleapi.CheckResponse(res); err != nil {
9328 return nil, gensupport.WrapError(err)
9329 }
9330 ret := &Operation{
9331 ServerResponse: googleapi.ServerResponse{
9332 Header: res.Header,
9333 HTTPStatusCode: res.StatusCode,
9334 },
9335 }
9336 target := &ret
9337 if err := gensupport.DecodeResponse(target, res); err != nil {
9338 return nil, err
9339 }
9340 return ret, nil
9341 }
9342
9343 type ProjectsLocationsGroupsGetCall struct {
9344 s *Service
9345 name string
9346 urlParams_ gensupport.URLParams
9347 ifNoneMatch_ string
9348 ctx_ context.Context
9349 header_ http.Header
9350 }
9351
9352
9353
9354
9355 func (r *ProjectsLocationsGroupsService) Get(name string) *ProjectsLocationsGroupsGetCall {
9356 c := &ProjectsLocationsGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9357 c.name = name
9358 return c
9359 }
9360
9361
9362
9363
9364 func (c *ProjectsLocationsGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsGetCall {
9365 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9366 return c
9367 }
9368
9369
9370
9371
9372 func (c *ProjectsLocationsGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGroupsGetCall {
9373 c.ifNoneMatch_ = entityTag
9374 return c
9375 }
9376
9377
9378 func (c *ProjectsLocationsGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsGroupsGetCall {
9379 c.ctx_ = ctx
9380 return c
9381 }
9382
9383
9384
9385 func (c *ProjectsLocationsGroupsGetCall) Header() http.Header {
9386 if c.header_ == nil {
9387 c.header_ = make(http.Header)
9388 }
9389 return c.header_
9390 }
9391
9392 func (c *ProjectsLocationsGroupsGetCall) doRequest(alt string) (*http.Response, error) {
9393 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9394 if c.ifNoneMatch_ != "" {
9395 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9396 }
9397 var body io.Reader = nil
9398 c.urlParams_.Set("alt", alt)
9399 c.urlParams_.Set("prettyPrint", "false")
9400 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
9401 urls += "?" + c.urlParams_.Encode()
9402 req, err := http.NewRequest("GET", urls, body)
9403 if err != nil {
9404 return nil, err
9405 }
9406 req.Header = reqHeaders
9407 googleapi.Expand(req.URL, map[string]string{
9408 "name": c.name,
9409 })
9410 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9411 }
9412
9413
9414
9415
9416
9417
9418 func (c *ProjectsLocationsGroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error) {
9419 gensupport.SetOptions(c.urlParams_, opts...)
9420 res, err := c.doRequest("json")
9421 if res != nil && res.StatusCode == http.StatusNotModified {
9422 if res.Body != nil {
9423 res.Body.Close()
9424 }
9425 return nil, gensupport.WrapError(&googleapi.Error{
9426 Code: res.StatusCode,
9427 Header: res.Header,
9428 })
9429 }
9430 if err != nil {
9431 return nil, err
9432 }
9433 defer googleapi.CloseBody(res)
9434 if err := googleapi.CheckResponse(res); err != nil {
9435 return nil, gensupport.WrapError(err)
9436 }
9437 ret := &Group{
9438 ServerResponse: googleapi.ServerResponse{
9439 Header: res.Header,
9440 HTTPStatusCode: res.StatusCode,
9441 },
9442 }
9443 target := &ret
9444 if err := gensupport.DecodeResponse(target, res); err != nil {
9445 return nil, err
9446 }
9447 return ret, nil
9448 }
9449
9450 type ProjectsLocationsGroupsListCall struct {
9451 s *Service
9452 parent string
9453 urlParams_ gensupport.URLParams
9454 ifNoneMatch_ string
9455 ctx_ context.Context
9456 header_ http.Header
9457 }
9458
9459
9460
9461
9462 func (r *ProjectsLocationsGroupsService) List(parent string) *ProjectsLocationsGroupsListCall {
9463 c := &ProjectsLocationsGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9464 c.parent = parent
9465 return c
9466 }
9467
9468
9469 func (c *ProjectsLocationsGroupsListCall) Filter(filter string) *ProjectsLocationsGroupsListCall {
9470 c.urlParams_.Set("filter", filter)
9471 return c
9472 }
9473
9474
9475
9476 func (c *ProjectsLocationsGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsGroupsListCall {
9477 c.urlParams_.Set("orderBy", orderBy)
9478 return c
9479 }
9480
9481
9482
9483
9484 func (c *ProjectsLocationsGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsGroupsListCall {
9485 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9486 return c
9487 }
9488
9489
9490
9491 func (c *ProjectsLocationsGroupsListCall) PageToken(pageToken string) *ProjectsLocationsGroupsListCall {
9492 c.urlParams_.Set("pageToken", pageToken)
9493 return c
9494 }
9495
9496
9497
9498
9499 func (c *ProjectsLocationsGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsListCall {
9500 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9501 return c
9502 }
9503
9504
9505
9506
9507 func (c *ProjectsLocationsGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGroupsListCall {
9508 c.ifNoneMatch_ = entityTag
9509 return c
9510 }
9511
9512
9513 func (c *ProjectsLocationsGroupsListCall) Context(ctx context.Context) *ProjectsLocationsGroupsListCall {
9514 c.ctx_ = ctx
9515 return c
9516 }
9517
9518
9519
9520 func (c *ProjectsLocationsGroupsListCall) Header() http.Header {
9521 if c.header_ == nil {
9522 c.header_ = make(http.Header)
9523 }
9524 return c.header_
9525 }
9526
9527 func (c *ProjectsLocationsGroupsListCall) doRequest(alt string) (*http.Response, error) {
9528 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9529 if c.ifNoneMatch_ != "" {
9530 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9531 }
9532 var body io.Reader = nil
9533 c.urlParams_.Set("alt", alt)
9534 c.urlParams_.Set("prettyPrint", "false")
9535 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/groups")
9536 urls += "?" + c.urlParams_.Encode()
9537 req, err := http.NewRequest("GET", urls, body)
9538 if err != nil {
9539 return nil, err
9540 }
9541 req.Header = reqHeaders
9542 googleapi.Expand(req.URL, map[string]string{
9543 "parent": c.parent,
9544 })
9545 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9546 }
9547
9548
9549
9550
9551
9552
9553
9554 func (c *ProjectsLocationsGroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, error) {
9555 gensupport.SetOptions(c.urlParams_, opts...)
9556 res, err := c.doRequest("json")
9557 if res != nil && res.StatusCode == http.StatusNotModified {
9558 if res.Body != nil {
9559 res.Body.Close()
9560 }
9561 return nil, gensupport.WrapError(&googleapi.Error{
9562 Code: res.StatusCode,
9563 Header: res.Header,
9564 })
9565 }
9566 if err != nil {
9567 return nil, err
9568 }
9569 defer googleapi.CloseBody(res)
9570 if err := googleapi.CheckResponse(res); err != nil {
9571 return nil, gensupport.WrapError(err)
9572 }
9573 ret := &ListGroupsResponse{
9574 ServerResponse: googleapi.ServerResponse{
9575 Header: res.Header,
9576 HTTPStatusCode: res.StatusCode,
9577 },
9578 }
9579 target := &ret
9580 if err := gensupport.DecodeResponse(target, res); err != nil {
9581 return nil, err
9582 }
9583 return ret, nil
9584 }
9585
9586
9587
9588
9589 func (c *ProjectsLocationsGroupsListCall) Pages(ctx context.Context, f func(*ListGroupsResponse) error) error {
9590 c.ctx_ = ctx
9591 defer c.PageToken(c.urlParams_.Get("pageToken"))
9592 for {
9593 x, err := c.Do()
9594 if err != nil {
9595 return err
9596 }
9597 if err := f(x); err != nil {
9598 return err
9599 }
9600 if x.NextPageToken == "" {
9601 return nil
9602 }
9603 c.PageToken(x.NextPageToken)
9604 }
9605 }
9606
9607 type ProjectsLocationsGroupsPatchCall struct {
9608 s *Service
9609 name string
9610 group *Group
9611 urlParams_ gensupport.URLParams
9612 ctx_ context.Context
9613 header_ http.Header
9614 }
9615
9616
9617
9618
9619 func (r *ProjectsLocationsGroupsService) Patch(name string, group *Group) *ProjectsLocationsGroupsPatchCall {
9620 c := &ProjectsLocationsGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9621 c.name = name
9622 c.group = group
9623 return c
9624 }
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637 func (c *ProjectsLocationsGroupsPatchCall) RequestId(requestId string) *ProjectsLocationsGroupsPatchCall {
9638 c.urlParams_.Set("requestId", requestId)
9639 return c
9640 }
9641
9642
9643
9644
9645
9646
9647 func (c *ProjectsLocationsGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGroupsPatchCall {
9648 c.urlParams_.Set("updateMask", updateMask)
9649 return c
9650 }
9651
9652
9653
9654
9655 func (c *ProjectsLocationsGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsPatchCall {
9656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9657 return c
9658 }
9659
9660
9661 func (c *ProjectsLocationsGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsGroupsPatchCall {
9662 c.ctx_ = ctx
9663 return c
9664 }
9665
9666
9667
9668 func (c *ProjectsLocationsGroupsPatchCall) Header() http.Header {
9669 if c.header_ == nil {
9670 c.header_ = make(http.Header)
9671 }
9672 return c.header_
9673 }
9674
9675 func (c *ProjectsLocationsGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
9676 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9677 var body io.Reader = nil
9678 body, err := googleapi.WithoutDataWrapper.JSONReader(c.group)
9679 if err != nil {
9680 return nil, err
9681 }
9682 c.urlParams_.Set("alt", alt)
9683 c.urlParams_.Set("prettyPrint", "false")
9684 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
9685 urls += "?" + c.urlParams_.Encode()
9686 req, err := http.NewRequest("PATCH", urls, body)
9687 if err != nil {
9688 return nil, err
9689 }
9690 req.Header = reqHeaders
9691 googleapi.Expand(req.URL, map[string]string{
9692 "name": c.name,
9693 })
9694 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9695 }
9696
9697
9698
9699
9700
9701
9702 func (c *ProjectsLocationsGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9703 gensupport.SetOptions(c.urlParams_, opts...)
9704 res, err := c.doRequest("json")
9705 if res != nil && res.StatusCode == http.StatusNotModified {
9706 if res.Body != nil {
9707 res.Body.Close()
9708 }
9709 return nil, gensupport.WrapError(&googleapi.Error{
9710 Code: res.StatusCode,
9711 Header: res.Header,
9712 })
9713 }
9714 if err != nil {
9715 return nil, err
9716 }
9717 defer googleapi.CloseBody(res)
9718 if err := googleapi.CheckResponse(res); err != nil {
9719 return nil, gensupport.WrapError(err)
9720 }
9721 ret := &Operation{
9722 ServerResponse: googleapi.ServerResponse{
9723 Header: res.Header,
9724 HTTPStatusCode: res.StatusCode,
9725 },
9726 }
9727 target := &ret
9728 if err := gensupport.DecodeResponse(target, res); err != nil {
9729 return nil, err
9730 }
9731 return ret, nil
9732 }
9733
9734 type ProjectsLocationsGroupsRemoveAssetsCall struct {
9735 s *Service
9736 group string
9737 removeassetsfromgrouprequest *RemoveAssetsFromGroupRequest
9738 urlParams_ gensupport.URLParams
9739 ctx_ context.Context
9740 header_ http.Header
9741 }
9742
9743
9744
9745
9746 func (r *ProjectsLocationsGroupsService) RemoveAssets(group string, removeassetsfromgrouprequest *RemoveAssetsFromGroupRequest) *ProjectsLocationsGroupsRemoveAssetsCall {
9747 c := &ProjectsLocationsGroupsRemoveAssetsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9748 c.group = group
9749 c.removeassetsfromgrouprequest = removeassetsfromgrouprequest
9750 return c
9751 }
9752
9753
9754
9755
9756 func (c *ProjectsLocationsGroupsRemoveAssetsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsRemoveAssetsCall {
9757 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9758 return c
9759 }
9760
9761
9762 func (c *ProjectsLocationsGroupsRemoveAssetsCall) Context(ctx context.Context) *ProjectsLocationsGroupsRemoveAssetsCall {
9763 c.ctx_ = ctx
9764 return c
9765 }
9766
9767
9768
9769 func (c *ProjectsLocationsGroupsRemoveAssetsCall) Header() http.Header {
9770 if c.header_ == nil {
9771 c.header_ = make(http.Header)
9772 }
9773 return c.header_
9774 }
9775
9776 func (c *ProjectsLocationsGroupsRemoveAssetsCall) doRequest(alt string) (*http.Response, error) {
9777 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9778 var body io.Reader = nil
9779 body, err := googleapi.WithoutDataWrapper.JSONReader(c.removeassetsfromgrouprequest)
9780 if err != nil {
9781 return nil, err
9782 }
9783 c.urlParams_.Set("alt", alt)
9784 c.urlParams_.Set("prettyPrint", "false")
9785 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+group}:removeAssets")
9786 urls += "?" + c.urlParams_.Encode()
9787 req, err := http.NewRequest("POST", urls, body)
9788 if err != nil {
9789 return nil, err
9790 }
9791 req.Header = reqHeaders
9792 googleapi.Expand(req.URL, map[string]string{
9793 "group": c.group,
9794 })
9795 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9796 }
9797
9798
9799
9800
9801
9802
9803 func (c *ProjectsLocationsGroupsRemoveAssetsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9804 gensupport.SetOptions(c.urlParams_, opts...)
9805 res, err := c.doRequest("json")
9806 if res != nil && res.StatusCode == http.StatusNotModified {
9807 if res.Body != nil {
9808 res.Body.Close()
9809 }
9810 return nil, gensupport.WrapError(&googleapi.Error{
9811 Code: res.StatusCode,
9812 Header: res.Header,
9813 })
9814 }
9815 if err != nil {
9816 return nil, err
9817 }
9818 defer googleapi.CloseBody(res)
9819 if err := googleapi.CheckResponse(res); err != nil {
9820 return nil, gensupport.WrapError(err)
9821 }
9822 ret := &Operation{
9823 ServerResponse: googleapi.ServerResponse{
9824 Header: res.Header,
9825 HTTPStatusCode: res.StatusCode,
9826 },
9827 }
9828 target := &ret
9829 if err := gensupport.DecodeResponse(target, res); err != nil {
9830 return nil, err
9831 }
9832 return ret, nil
9833 }
9834
9835 type ProjectsLocationsImportJobsCreateCall struct {
9836 s *Service
9837 parent string
9838 importjob *ImportJob
9839 urlParams_ gensupport.URLParams
9840 ctx_ context.Context
9841 header_ http.Header
9842 }
9843
9844
9845
9846
9847 func (r *ProjectsLocationsImportJobsService) Create(parent string, importjob *ImportJob) *ProjectsLocationsImportJobsCreateCall {
9848 c := &ProjectsLocationsImportJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9849 c.parent = parent
9850 c.importjob = importjob
9851 return c
9852 }
9853
9854
9855
9856 func (c *ProjectsLocationsImportJobsCreateCall) ImportJobId(importJobId string) *ProjectsLocationsImportJobsCreateCall {
9857 c.urlParams_.Set("importJobId", importJobId)
9858 return c
9859 }
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872 func (c *ProjectsLocationsImportJobsCreateCall) RequestId(requestId string) *ProjectsLocationsImportJobsCreateCall {
9873 c.urlParams_.Set("requestId", requestId)
9874 return c
9875 }
9876
9877
9878
9879
9880 func (c *ProjectsLocationsImportJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsCreateCall {
9881 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9882 return c
9883 }
9884
9885
9886 func (c *ProjectsLocationsImportJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsCreateCall {
9887 c.ctx_ = ctx
9888 return c
9889 }
9890
9891
9892
9893 func (c *ProjectsLocationsImportJobsCreateCall) Header() http.Header {
9894 if c.header_ == nil {
9895 c.header_ = make(http.Header)
9896 }
9897 return c.header_
9898 }
9899
9900 func (c *ProjectsLocationsImportJobsCreateCall) doRequest(alt string) (*http.Response, error) {
9901 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9902 var body io.Reader = nil
9903 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importjob)
9904 if err != nil {
9905 return nil, err
9906 }
9907 c.urlParams_.Set("alt", alt)
9908 c.urlParams_.Set("prettyPrint", "false")
9909 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/importJobs")
9910 urls += "?" + c.urlParams_.Encode()
9911 req, err := http.NewRequest("POST", urls, body)
9912 if err != nil {
9913 return nil, err
9914 }
9915 req.Header = reqHeaders
9916 googleapi.Expand(req.URL, map[string]string{
9917 "parent": c.parent,
9918 })
9919 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9920 }
9921
9922
9923
9924
9925
9926
9927 func (c *ProjectsLocationsImportJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9928 gensupport.SetOptions(c.urlParams_, opts...)
9929 res, err := c.doRequest("json")
9930 if res != nil && res.StatusCode == http.StatusNotModified {
9931 if res.Body != nil {
9932 res.Body.Close()
9933 }
9934 return nil, gensupport.WrapError(&googleapi.Error{
9935 Code: res.StatusCode,
9936 Header: res.Header,
9937 })
9938 }
9939 if err != nil {
9940 return nil, err
9941 }
9942 defer googleapi.CloseBody(res)
9943 if err := googleapi.CheckResponse(res); err != nil {
9944 return nil, gensupport.WrapError(err)
9945 }
9946 ret := &Operation{
9947 ServerResponse: googleapi.ServerResponse{
9948 Header: res.Header,
9949 HTTPStatusCode: res.StatusCode,
9950 },
9951 }
9952 target := &ret
9953 if err := gensupport.DecodeResponse(target, res); err != nil {
9954 return nil, err
9955 }
9956 return ret, nil
9957 }
9958
9959 type ProjectsLocationsImportJobsDeleteCall struct {
9960 s *Service
9961 name string
9962 urlParams_ gensupport.URLParams
9963 ctx_ context.Context
9964 header_ http.Header
9965 }
9966
9967
9968
9969
9970 func (r *ProjectsLocationsImportJobsService) Delete(name string) *ProjectsLocationsImportJobsDeleteCall {
9971 c := &ProjectsLocationsImportJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9972 c.name = name
9973 return c
9974 }
9975
9976
9977
9978
9979 func (c *ProjectsLocationsImportJobsDeleteCall) Force(force bool) *ProjectsLocationsImportJobsDeleteCall {
9980 c.urlParams_.Set("force", fmt.Sprint(force))
9981 return c
9982 }
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995 func (c *ProjectsLocationsImportJobsDeleteCall) RequestId(requestId string) *ProjectsLocationsImportJobsDeleteCall {
9996 c.urlParams_.Set("requestId", requestId)
9997 return c
9998 }
9999
10000
10001
10002
10003 func (c *ProjectsLocationsImportJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsDeleteCall {
10004 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10005 return c
10006 }
10007
10008
10009 func (c *ProjectsLocationsImportJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsImportJobsDeleteCall {
10010 c.ctx_ = ctx
10011 return c
10012 }
10013
10014
10015
10016 func (c *ProjectsLocationsImportJobsDeleteCall) Header() http.Header {
10017 if c.header_ == nil {
10018 c.header_ = make(http.Header)
10019 }
10020 return c.header_
10021 }
10022
10023 func (c *ProjectsLocationsImportJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
10024 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10025 var body io.Reader = nil
10026 c.urlParams_.Set("alt", alt)
10027 c.urlParams_.Set("prettyPrint", "false")
10028 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
10029 urls += "?" + c.urlParams_.Encode()
10030 req, err := http.NewRequest("DELETE", urls, body)
10031 if err != nil {
10032 return nil, err
10033 }
10034 req.Header = reqHeaders
10035 googleapi.Expand(req.URL, map[string]string{
10036 "name": c.name,
10037 })
10038 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10039 }
10040
10041
10042
10043
10044
10045
10046 func (c *ProjectsLocationsImportJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10047 gensupport.SetOptions(c.urlParams_, opts...)
10048 res, err := c.doRequest("json")
10049 if res != nil && res.StatusCode == http.StatusNotModified {
10050 if res.Body != nil {
10051 res.Body.Close()
10052 }
10053 return nil, gensupport.WrapError(&googleapi.Error{
10054 Code: res.StatusCode,
10055 Header: res.Header,
10056 })
10057 }
10058 if err != nil {
10059 return nil, err
10060 }
10061 defer googleapi.CloseBody(res)
10062 if err := googleapi.CheckResponse(res); err != nil {
10063 return nil, gensupport.WrapError(err)
10064 }
10065 ret := &Operation{
10066 ServerResponse: googleapi.ServerResponse{
10067 Header: res.Header,
10068 HTTPStatusCode: res.StatusCode,
10069 },
10070 }
10071 target := &ret
10072 if err := gensupport.DecodeResponse(target, res); err != nil {
10073 return nil, err
10074 }
10075 return ret, nil
10076 }
10077
10078 type ProjectsLocationsImportJobsGetCall struct {
10079 s *Service
10080 name string
10081 urlParams_ gensupport.URLParams
10082 ifNoneMatch_ string
10083 ctx_ context.Context
10084 header_ http.Header
10085 }
10086
10087
10088
10089
10090 func (r *ProjectsLocationsImportJobsService) Get(name string) *ProjectsLocationsImportJobsGetCall {
10091 c := &ProjectsLocationsImportJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10092 c.name = name
10093 return c
10094 }
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112 func (c *ProjectsLocationsImportJobsGetCall) View(view string) *ProjectsLocationsImportJobsGetCall {
10113 c.urlParams_.Set("view", view)
10114 return c
10115 }
10116
10117
10118
10119
10120 func (c *ProjectsLocationsImportJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsGetCall {
10121 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10122 return c
10123 }
10124
10125
10126
10127
10128 func (c *ProjectsLocationsImportJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsGetCall {
10129 c.ifNoneMatch_ = entityTag
10130 return c
10131 }
10132
10133
10134 func (c *ProjectsLocationsImportJobsGetCall) Context(ctx context.Context) *ProjectsLocationsImportJobsGetCall {
10135 c.ctx_ = ctx
10136 return c
10137 }
10138
10139
10140
10141 func (c *ProjectsLocationsImportJobsGetCall) Header() http.Header {
10142 if c.header_ == nil {
10143 c.header_ = make(http.Header)
10144 }
10145 return c.header_
10146 }
10147
10148 func (c *ProjectsLocationsImportJobsGetCall) doRequest(alt string) (*http.Response, error) {
10149 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10150 if c.ifNoneMatch_ != "" {
10151 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10152 }
10153 var body io.Reader = nil
10154 c.urlParams_.Set("alt", alt)
10155 c.urlParams_.Set("prettyPrint", "false")
10156 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
10157 urls += "?" + c.urlParams_.Encode()
10158 req, err := http.NewRequest("GET", urls, body)
10159 if err != nil {
10160 return nil, err
10161 }
10162 req.Header = reqHeaders
10163 googleapi.Expand(req.URL, map[string]string{
10164 "name": c.name,
10165 })
10166 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10167 }
10168
10169
10170
10171
10172
10173
10174 func (c *ProjectsLocationsImportJobsGetCall) Do(opts ...googleapi.CallOption) (*ImportJob, error) {
10175 gensupport.SetOptions(c.urlParams_, opts...)
10176 res, err := c.doRequest("json")
10177 if res != nil && res.StatusCode == http.StatusNotModified {
10178 if res.Body != nil {
10179 res.Body.Close()
10180 }
10181 return nil, gensupport.WrapError(&googleapi.Error{
10182 Code: res.StatusCode,
10183 Header: res.Header,
10184 })
10185 }
10186 if err != nil {
10187 return nil, err
10188 }
10189 defer googleapi.CloseBody(res)
10190 if err := googleapi.CheckResponse(res); err != nil {
10191 return nil, gensupport.WrapError(err)
10192 }
10193 ret := &ImportJob{
10194 ServerResponse: googleapi.ServerResponse{
10195 Header: res.Header,
10196 HTTPStatusCode: res.StatusCode,
10197 },
10198 }
10199 target := &ret
10200 if err := gensupport.DecodeResponse(target, res); err != nil {
10201 return nil, err
10202 }
10203 return ret, nil
10204 }
10205
10206 type ProjectsLocationsImportJobsListCall struct {
10207 s *Service
10208 parent string
10209 urlParams_ gensupport.URLParams
10210 ifNoneMatch_ string
10211 ctx_ context.Context
10212 header_ http.Header
10213 }
10214
10215
10216
10217
10218 func (r *ProjectsLocationsImportJobsService) List(parent string) *ProjectsLocationsImportJobsListCall {
10219 c := &ProjectsLocationsImportJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10220 c.parent = parent
10221 return c
10222 }
10223
10224
10225 func (c *ProjectsLocationsImportJobsListCall) Filter(filter string) *ProjectsLocationsImportJobsListCall {
10226 c.urlParams_.Set("filter", filter)
10227 return c
10228 }
10229
10230
10231
10232 func (c *ProjectsLocationsImportJobsListCall) OrderBy(orderBy string) *ProjectsLocationsImportJobsListCall {
10233 c.urlParams_.Set("orderBy", orderBy)
10234 return c
10235 }
10236
10237
10238
10239
10240 func (c *ProjectsLocationsImportJobsListCall) PageSize(pageSize int64) *ProjectsLocationsImportJobsListCall {
10241 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10242 return c
10243 }
10244
10245
10246
10247 func (c *ProjectsLocationsImportJobsListCall) PageToken(pageToken string) *ProjectsLocationsImportJobsListCall {
10248 c.urlParams_.Set("pageToken", pageToken)
10249 return c
10250 }
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268 func (c *ProjectsLocationsImportJobsListCall) View(view string) *ProjectsLocationsImportJobsListCall {
10269 c.urlParams_.Set("view", view)
10270 return c
10271 }
10272
10273
10274
10275
10276 func (c *ProjectsLocationsImportJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsListCall {
10277 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10278 return c
10279 }
10280
10281
10282
10283
10284 func (c *ProjectsLocationsImportJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsListCall {
10285 c.ifNoneMatch_ = entityTag
10286 return c
10287 }
10288
10289
10290 func (c *ProjectsLocationsImportJobsListCall) Context(ctx context.Context) *ProjectsLocationsImportJobsListCall {
10291 c.ctx_ = ctx
10292 return c
10293 }
10294
10295
10296
10297 func (c *ProjectsLocationsImportJobsListCall) Header() http.Header {
10298 if c.header_ == nil {
10299 c.header_ = make(http.Header)
10300 }
10301 return c.header_
10302 }
10303
10304 func (c *ProjectsLocationsImportJobsListCall) doRequest(alt string) (*http.Response, error) {
10305 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10306 if c.ifNoneMatch_ != "" {
10307 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10308 }
10309 var body io.Reader = nil
10310 c.urlParams_.Set("alt", alt)
10311 c.urlParams_.Set("prettyPrint", "false")
10312 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/importJobs")
10313 urls += "?" + c.urlParams_.Encode()
10314 req, err := http.NewRequest("GET", urls, body)
10315 if err != nil {
10316 return nil, err
10317 }
10318 req.Header = reqHeaders
10319 googleapi.Expand(req.URL, map[string]string{
10320 "parent": c.parent,
10321 })
10322 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10323 }
10324
10325
10326
10327
10328
10329
10330
10331 func (c *ProjectsLocationsImportJobsListCall) Do(opts ...googleapi.CallOption) (*ListImportJobsResponse, error) {
10332 gensupport.SetOptions(c.urlParams_, opts...)
10333 res, err := c.doRequest("json")
10334 if res != nil && res.StatusCode == http.StatusNotModified {
10335 if res.Body != nil {
10336 res.Body.Close()
10337 }
10338 return nil, gensupport.WrapError(&googleapi.Error{
10339 Code: res.StatusCode,
10340 Header: res.Header,
10341 })
10342 }
10343 if err != nil {
10344 return nil, err
10345 }
10346 defer googleapi.CloseBody(res)
10347 if err := googleapi.CheckResponse(res); err != nil {
10348 return nil, gensupport.WrapError(err)
10349 }
10350 ret := &ListImportJobsResponse{
10351 ServerResponse: googleapi.ServerResponse{
10352 Header: res.Header,
10353 HTTPStatusCode: res.StatusCode,
10354 },
10355 }
10356 target := &ret
10357 if err := gensupport.DecodeResponse(target, res); err != nil {
10358 return nil, err
10359 }
10360 return ret, nil
10361 }
10362
10363
10364
10365
10366 func (c *ProjectsLocationsImportJobsListCall) Pages(ctx context.Context, f func(*ListImportJobsResponse) error) error {
10367 c.ctx_ = ctx
10368 defer c.PageToken(c.urlParams_.Get("pageToken"))
10369 for {
10370 x, err := c.Do()
10371 if err != nil {
10372 return err
10373 }
10374 if err := f(x); err != nil {
10375 return err
10376 }
10377 if x.NextPageToken == "" {
10378 return nil
10379 }
10380 c.PageToken(x.NextPageToken)
10381 }
10382 }
10383
10384 type ProjectsLocationsImportJobsPatchCall struct {
10385 s *Service
10386 name string
10387 importjob *ImportJob
10388 urlParams_ gensupport.URLParams
10389 ctx_ context.Context
10390 header_ http.Header
10391 }
10392
10393
10394
10395
10396 func (r *ProjectsLocationsImportJobsService) Patch(name string, importjob *ImportJob) *ProjectsLocationsImportJobsPatchCall {
10397 c := &ProjectsLocationsImportJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10398 c.name = name
10399 c.importjob = importjob
10400 return c
10401 }
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414 func (c *ProjectsLocationsImportJobsPatchCall) RequestId(requestId string) *ProjectsLocationsImportJobsPatchCall {
10415 c.urlParams_.Set("requestId", requestId)
10416 return c
10417 }
10418
10419
10420
10421
10422
10423
10424 func (c *ProjectsLocationsImportJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsImportJobsPatchCall {
10425 c.urlParams_.Set("updateMask", updateMask)
10426 return c
10427 }
10428
10429
10430
10431
10432 func (c *ProjectsLocationsImportJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsPatchCall {
10433 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10434 return c
10435 }
10436
10437
10438 func (c *ProjectsLocationsImportJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsImportJobsPatchCall {
10439 c.ctx_ = ctx
10440 return c
10441 }
10442
10443
10444
10445 func (c *ProjectsLocationsImportJobsPatchCall) Header() http.Header {
10446 if c.header_ == nil {
10447 c.header_ = make(http.Header)
10448 }
10449 return c.header_
10450 }
10451
10452 func (c *ProjectsLocationsImportJobsPatchCall) doRequest(alt string) (*http.Response, error) {
10453 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10454 var body io.Reader = nil
10455 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importjob)
10456 if err != nil {
10457 return nil, err
10458 }
10459 c.urlParams_.Set("alt", alt)
10460 c.urlParams_.Set("prettyPrint", "false")
10461 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
10462 urls += "?" + c.urlParams_.Encode()
10463 req, err := http.NewRequest("PATCH", urls, body)
10464 if err != nil {
10465 return nil, err
10466 }
10467 req.Header = reqHeaders
10468 googleapi.Expand(req.URL, map[string]string{
10469 "name": c.name,
10470 })
10471 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10472 }
10473
10474
10475
10476
10477
10478
10479 func (c *ProjectsLocationsImportJobsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10480 gensupport.SetOptions(c.urlParams_, opts...)
10481 res, err := c.doRequest("json")
10482 if res != nil && res.StatusCode == http.StatusNotModified {
10483 if res.Body != nil {
10484 res.Body.Close()
10485 }
10486 return nil, gensupport.WrapError(&googleapi.Error{
10487 Code: res.StatusCode,
10488 Header: res.Header,
10489 })
10490 }
10491 if err != nil {
10492 return nil, err
10493 }
10494 defer googleapi.CloseBody(res)
10495 if err := googleapi.CheckResponse(res); err != nil {
10496 return nil, gensupport.WrapError(err)
10497 }
10498 ret := &Operation{
10499 ServerResponse: googleapi.ServerResponse{
10500 Header: res.Header,
10501 HTTPStatusCode: res.StatusCode,
10502 },
10503 }
10504 target := &ret
10505 if err := gensupport.DecodeResponse(target, res); err != nil {
10506 return nil, err
10507 }
10508 return ret, nil
10509 }
10510
10511 type ProjectsLocationsImportJobsRunCall struct {
10512 s *Service
10513 name string
10514 runimportjobrequest *RunImportJobRequest
10515 urlParams_ gensupport.URLParams
10516 ctx_ context.Context
10517 header_ http.Header
10518 }
10519
10520
10521
10522
10523 func (r *ProjectsLocationsImportJobsService) Run(name string, runimportjobrequest *RunImportJobRequest) *ProjectsLocationsImportJobsRunCall {
10524 c := &ProjectsLocationsImportJobsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10525 c.name = name
10526 c.runimportjobrequest = runimportjobrequest
10527 return c
10528 }
10529
10530
10531
10532
10533 func (c *ProjectsLocationsImportJobsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsRunCall {
10534 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10535 return c
10536 }
10537
10538
10539 func (c *ProjectsLocationsImportJobsRunCall) Context(ctx context.Context) *ProjectsLocationsImportJobsRunCall {
10540 c.ctx_ = ctx
10541 return c
10542 }
10543
10544
10545
10546 func (c *ProjectsLocationsImportJobsRunCall) Header() http.Header {
10547 if c.header_ == nil {
10548 c.header_ = make(http.Header)
10549 }
10550 return c.header_
10551 }
10552
10553 func (c *ProjectsLocationsImportJobsRunCall) doRequest(alt string) (*http.Response, error) {
10554 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10555 var body io.Reader = nil
10556 body, err := googleapi.WithoutDataWrapper.JSONReader(c.runimportjobrequest)
10557 if err != nil {
10558 return nil, err
10559 }
10560 c.urlParams_.Set("alt", alt)
10561 c.urlParams_.Set("prettyPrint", "false")
10562 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:run")
10563 urls += "?" + c.urlParams_.Encode()
10564 req, err := http.NewRequest("POST", urls, body)
10565 if err != nil {
10566 return nil, err
10567 }
10568 req.Header = reqHeaders
10569 googleapi.Expand(req.URL, map[string]string{
10570 "name": c.name,
10571 })
10572 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10573 }
10574
10575
10576
10577
10578
10579
10580 func (c *ProjectsLocationsImportJobsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10581 gensupport.SetOptions(c.urlParams_, opts...)
10582 res, err := c.doRequest("json")
10583 if res != nil && res.StatusCode == http.StatusNotModified {
10584 if res.Body != nil {
10585 res.Body.Close()
10586 }
10587 return nil, gensupport.WrapError(&googleapi.Error{
10588 Code: res.StatusCode,
10589 Header: res.Header,
10590 })
10591 }
10592 if err != nil {
10593 return nil, err
10594 }
10595 defer googleapi.CloseBody(res)
10596 if err := googleapi.CheckResponse(res); err != nil {
10597 return nil, gensupport.WrapError(err)
10598 }
10599 ret := &Operation{
10600 ServerResponse: googleapi.ServerResponse{
10601 Header: res.Header,
10602 HTTPStatusCode: res.StatusCode,
10603 },
10604 }
10605 target := &ret
10606 if err := gensupport.DecodeResponse(target, res); err != nil {
10607 return nil, err
10608 }
10609 return ret, nil
10610 }
10611
10612 type ProjectsLocationsImportJobsValidateCall struct {
10613 s *Service
10614 name string
10615 validateimportjobrequest *ValidateImportJobRequest
10616 urlParams_ gensupport.URLParams
10617 ctx_ context.Context
10618 header_ http.Header
10619 }
10620
10621
10622
10623
10624 func (r *ProjectsLocationsImportJobsService) Validate(name string, validateimportjobrequest *ValidateImportJobRequest) *ProjectsLocationsImportJobsValidateCall {
10625 c := &ProjectsLocationsImportJobsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10626 c.name = name
10627 c.validateimportjobrequest = validateimportjobrequest
10628 return c
10629 }
10630
10631
10632
10633
10634 func (c *ProjectsLocationsImportJobsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsValidateCall {
10635 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10636 return c
10637 }
10638
10639
10640 func (c *ProjectsLocationsImportJobsValidateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsValidateCall {
10641 c.ctx_ = ctx
10642 return c
10643 }
10644
10645
10646
10647 func (c *ProjectsLocationsImportJobsValidateCall) Header() http.Header {
10648 if c.header_ == nil {
10649 c.header_ = make(http.Header)
10650 }
10651 return c.header_
10652 }
10653
10654 func (c *ProjectsLocationsImportJobsValidateCall) doRequest(alt string) (*http.Response, error) {
10655 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10656 var body io.Reader = nil
10657 body, err := googleapi.WithoutDataWrapper.JSONReader(c.validateimportjobrequest)
10658 if err != nil {
10659 return nil, err
10660 }
10661 c.urlParams_.Set("alt", alt)
10662 c.urlParams_.Set("prettyPrint", "false")
10663 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:validate")
10664 urls += "?" + c.urlParams_.Encode()
10665 req, err := http.NewRequest("POST", urls, body)
10666 if err != nil {
10667 return nil, err
10668 }
10669 req.Header = reqHeaders
10670 googleapi.Expand(req.URL, map[string]string{
10671 "name": c.name,
10672 })
10673 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10674 }
10675
10676
10677
10678
10679
10680
10681 func (c *ProjectsLocationsImportJobsValidateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10682 gensupport.SetOptions(c.urlParams_, opts...)
10683 res, err := c.doRequest("json")
10684 if res != nil && res.StatusCode == http.StatusNotModified {
10685 if res.Body != nil {
10686 res.Body.Close()
10687 }
10688 return nil, gensupport.WrapError(&googleapi.Error{
10689 Code: res.StatusCode,
10690 Header: res.Header,
10691 })
10692 }
10693 if err != nil {
10694 return nil, err
10695 }
10696 defer googleapi.CloseBody(res)
10697 if err := googleapi.CheckResponse(res); err != nil {
10698 return nil, gensupport.WrapError(err)
10699 }
10700 ret := &Operation{
10701 ServerResponse: googleapi.ServerResponse{
10702 Header: res.Header,
10703 HTTPStatusCode: res.StatusCode,
10704 },
10705 }
10706 target := &ret
10707 if err := gensupport.DecodeResponse(target, res); err != nil {
10708 return nil, err
10709 }
10710 return ret, nil
10711 }
10712
10713 type ProjectsLocationsImportJobsImportDataFilesCreateCall struct {
10714 s *Service
10715 parent string
10716 importdatafile *ImportDataFile
10717 urlParams_ gensupport.URLParams
10718 ctx_ context.Context
10719 header_ http.Header
10720 }
10721
10722
10723
10724
10725 func (r *ProjectsLocationsImportJobsImportDataFilesService) Create(parent string, importdatafile *ImportDataFile) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
10726 c := &ProjectsLocationsImportJobsImportDataFilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10727 c.parent = parent
10728 c.importdatafile = importdatafile
10729 return c
10730 }
10731
10732
10733
10734 func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) ImportDataFileId(importDataFileId string) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
10735 c.urlParams_.Set("importDataFileId", importDataFileId)
10736 return c
10737 }
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750 func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) RequestId(requestId string) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
10751 c.urlParams_.Set("requestId", requestId)
10752 return c
10753 }
10754
10755
10756
10757
10758 func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
10759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10760 return c
10761 }
10762
10763
10764 func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
10765 c.ctx_ = ctx
10766 return c
10767 }
10768
10769
10770
10771 func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Header() http.Header {
10772 if c.header_ == nil {
10773 c.header_ = make(http.Header)
10774 }
10775 return c.header_
10776 }
10777
10778 func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) doRequest(alt string) (*http.Response, error) {
10779 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10780 var body io.Reader = nil
10781 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdatafile)
10782 if err != nil {
10783 return nil, err
10784 }
10785 c.urlParams_.Set("alt", alt)
10786 c.urlParams_.Set("prettyPrint", "false")
10787 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/importDataFiles")
10788 urls += "?" + c.urlParams_.Encode()
10789 req, err := http.NewRequest("POST", urls, body)
10790 if err != nil {
10791 return nil, err
10792 }
10793 req.Header = reqHeaders
10794 googleapi.Expand(req.URL, map[string]string{
10795 "parent": c.parent,
10796 })
10797 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10798 }
10799
10800
10801
10802
10803
10804
10805 func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10806 gensupport.SetOptions(c.urlParams_, opts...)
10807 res, err := c.doRequest("json")
10808 if res != nil && res.StatusCode == http.StatusNotModified {
10809 if res.Body != nil {
10810 res.Body.Close()
10811 }
10812 return nil, gensupport.WrapError(&googleapi.Error{
10813 Code: res.StatusCode,
10814 Header: res.Header,
10815 })
10816 }
10817 if err != nil {
10818 return nil, err
10819 }
10820 defer googleapi.CloseBody(res)
10821 if err := googleapi.CheckResponse(res); err != nil {
10822 return nil, gensupport.WrapError(err)
10823 }
10824 ret := &Operation{
10825 ServerResponse: googleapi.ServerResponse{
10826 Header: res.Header,
10827 HTTPStatusCode: res.StatusCode,
10828 },
10829 }
10830 target := &ret
10831 if err := gensupport.DecodeResponse(target, res); err != nil {
10832 return nil, err
10833 }
10834 return ret, nil
10835 }
10836
10837 type ProjectsLocationsImportJobsImportDataFilesDeleteCall struct {
10838 s *Service
10839 name string
10840 urlParams_ gensupport.URLParams
10841 ctx_ context.Context
10842 header_ http.Header
10843 }
10844
10845
10846
10847
10848 func (r *ProjectsLocationsImportJobsImportDataFilesService) Delete(name string) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
10849 c := &ProjectsLocationsImportJobsImportDataFilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10850 c.name = name
10851 return c
10852 }
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865 func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) RequestId(requestId string) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
10866 c.urlParams_.Set("requestId", requestId)
10867 return c
10868 }
10869
10870
10871
10872
10873 func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
10874 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10875 return c
10876 }
10877
10878
10879 func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
10880 c.ctx_ = ctx
10881 return c
10882 }
10883
10884
10885
10886 func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Header() http.Header {
10887 if c.header_ == nil {
10888 c.header_ = make(http.Header)
10889 }
10890 return c.header_
10891 }
10892
10893 func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) doRequest(alt string) (*http.Response, error) {
10894 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10895 var body io.Reader = nil
10896 c.urlParams_.Set("alt", alt)
10897 c.urlParams_.Set("prettyPrint", "false")
10898 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
10899 urls += "?" + c.urlParams_.Encode()
10900 req, err := http.NewRequest("DELETE", urls, body)
10901 if err != nil {
10902 return nil, err
10903 }
10904 req.Header = reqHeaders
10905 googleapi.Expand(req.URL, map[string]string{
10906 "name": c.name,
10907 })
10908 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10909 }
10910
10911
10912
10913
10914
10915
10916 func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10917 gensupport.SetOptions(c.urlParams_, opts...)
10918 res, err := c.doRequest("json")
10919 if res != nil && res.StatusCode == http.StatusNotModified {
10920 if res.Body != nil {
10921 res.Body.Close()
10922 }
10923 return nil, gensupport.WrapError(&googleapi.Error{
10924 Code: res.StatusCode,
10925 Header: res.Header,
10926 })
10927 }
10928 if err != nil {
10929 return nil, err
10930 }
10931 defer googleapi.CloseBody(res)
10932 if err := googleapi.CheckResponse(res); err != nil {
10933 return nil, gensupport.WrapError(err)
10934 }
10935 ret := &Operation{
10936 ServerResponse: googleapi.ServerResponse{
10937 Header: res.Header,
10938 HTTPStatusCode: res.StatusCode,
10939 },
10940 }
10941 target := &ret
10942 if err := gensupport.DecodeResponse(target, res); err != nil {
10943 return nil, err
10944 }
10945 return ret, nil
10946 }
10947
10948 type ProjectsLocationsImportJobsImportDataFilesGetCall struct {
10949 s *Service
10950 name string
10951 urlParams_ gensupport.URLParams
10952 ifNoneMatch_ string
10953 ctx_ context.Context
10954 header_ http.Header
10955 }
10956
10957
10958
10959
10960 func (r *ProjectsLocationsImportJobsImportDataFilesService) Get(name string) *ProjectsLocationsImportJobsImportDataFilesGetCall {
10961 c := &ProjectsLocationsImportJobsImportDataFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10962 c.name = name
10963 return c
10964 }
10965
10966
10967
10968
10969 func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesGetCall {
10970 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10971 return c
10972 }
10973
10974
10975
10976
10977 func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsImportDataFilesGetCall {
10978 c.ifNoneMatch_ = entityTag
10979 return c
10980 }
10981
10982
10983 func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesGetCall {
10984 c.ctx_ = ctx
10985 return c
10986 }
10987
10988
10989
10990 func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Header() http.Header {
10991 if c.header_ == nil {
10992 c.header_ = make(http.Header)
10993 }
10994 return c.header_
10995 }
10996
10997 func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) doRequest(alt string) (*http.Response, error) {
10998 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10999 if c.ifNoneMatch_ != "" {
11000 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11001 }
11002 var body io.Reader = nil
11003 c.urlParams_.Set("alt", alt)
11004 c.urlParams_.Set("prettyPrint", "false")
11005 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
11006 urls += "?" + c.urlParams_.Encode()
11007 req, err := http.NewRequest("GET", urls, body)
11008 if err != nil {
11009 return nil, err
11010 }
11011 req.Header = reqHeaders
11012 googleapi.Expand(req.URL, map[string]string{
11013 "name": c.name,
11014 })
11015 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11016 }
11017
11018
11019
11020
11021
11022
11023 func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Do(opts ...googleapi.CallOption) (*ImportDataFile, error) {
11024 gensupport.SetOptions(c.urlParams_, opts...)
11025 res, err := c.doRequest("json")
11026 if res != nil && res.StatusCode == http.StatusNotModified {
11027 if res.Body != nil {
11028 res.Body.Close()
11029 }
11030 return nil, gensupport.WrapError(&googleapi.Error{
11031 Code: res.StatusCode,
11032 Header: res.Header,
11033 })
11034 }
11035 if err != nil {
11036 return nil, err
11037 }
11038 defer googleapi.CloseBody(res)
11039 if err := googleapi.CheckResponse(res); err != nil {
11040 return nil, gensupport.WrapError(err)
11041 }
11042 ret := &ImportDataFile{
11043 ServerResponse: googleapi.ServerResponse{
11044 Header: res.Header,
11045 HTTPStatusCode: res.StatusCode,
11046 },
11047 }
11048 target := &ret
11049 if err := gensupport.DecodeResponse(target, res); err != nil {
11050 return nil, err
11051 }
11052 return ret, nil
11053 }
11054
11055 type ProjectsLocationsImportJobsImportDataFilesListCall struct {
11056 s *Service
11057 parent string
11058 urlParams_ gensupport.URLParams
11059 ifNoneMatch_ string
11060 ctx_ context.Context
11061 header_ http.Header
11062 }
11063
11064
11065
11066
11067 func (r *ProjectsLocationsImportJobsImportDataFilesService) List(parent string) *ProjectsLocationsImportJobsImportDataFilesListCall {
11068 c := &ProjectsLocationsImportJobsImportDataFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11069 c.parent = parent
11070 return c
11071 }
11072
11073
11074 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Filter(filter string) *ProjectsLocationsImportJobsImportDataFilesListCall {
11075 c.urlParams_.Set("filter", filter)
11076 return c
11077 }
11078
11079
11080
11081 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) OrderBy(orderBy string) *ProjectsLocationsImportJobsImportDataFilesListCall {
11082 c.urlParams_.Set("orderBy", orderBy)
11083 return c
11084 }
11085
11086
11087
11088
11089
11090 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) PageSize(pageSize int64) *ProjectsLocationsImportJobsImportDataFilesListCall {
11091 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11092 return c
11093 }
11094
11095
11096
11097
11098
11099 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) PageToken(pageToken string) *ProjectsLocationsImportJobsImportDataFilesListCall {
11100 c.urlParams_.Set("pageToken", pageToken)
11101 return c
11102 }
11103
11104
11105
11106
11107 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesListCall {
11108 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11109 return c
11110 }
11111
11112
11113
11114
11115 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsImportDataFilesListCall {
11116 c.ifNoneMatch_ = entityTag
11117 return c
11118 }
11119
11120
11121 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesListCall {
11122 c.ctx_ = ctx
11123 return c
11124 }
11125
11126
11127
11128 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Header() http.Header {
11129 if c.header_ == nil {
11130 c.header_ = make(http.Header)
11131 }
11132 return c.header_
11133 }
11134
11135 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) doRequest(alt string) (*http.Response, error) {
11136 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11137 if c.ifNoneMatch_ != "" {
11138 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11139 }
11140 var body io.Reader = nil
11141 c.urlParams_.Set("alt", alt)
11142 c.urlParams_.Set("prettyPrint", "false")
11143 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/importDataFiles")
11144 urls += "?" + c.urlParams_.Encode()
11145 req, err := http.NewRequest("GET", urls, body)
11146 if err != nil {
11147 return nil, err
11148 }
11149 req.Header = reqHeaders
11150 googleapi.Expand(req.URL, map[string]string{
11151 "parent": c.parent,
11152 })
11153 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11154 }
11155
11156
11157
11158
11159
11160
11161
11162 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Do(opts ...googleapi.CallOption) (*ListImportDataFilesResponse, error) {
11163 gensupport.SetOptions(c.urlParams_, opts...)
11164 res, err := c.doRequest("json")
11165 if res != nil && res.StatusCode == http.StatusNotModified {
11166 if res.Body != nil {
11167 res.Body.Close()
11168 }
11169 return nil, gensupport.WrapError(&googleapi.Error{
11170 Code: res.StatusCode,
11171 Header: res.Header,
11172 })
11173 }
11174 if err != nil {
11175 return nil, err
11176 }
11177 defer googleapi.CloseBody(res)
11178 if err := googleapi.CheckResponse(res); err != nil {
11179 return nil, gensupport.WrapError(err)
11180 }
11181 ret := &ListImportDataFilesResponse{
11182 ServerResponse: googleapi.ServerResponse{
11183 Header: res.Header,
11184 HTTPStatusCode: res.StatusCode,
11185 },
11186 }
11187 target := &ret
11188 if err := gensupport.DecodeResponse(target, res); err != nil {
11189 return nil, err
11190 }
11191 return ret, nil
11192 }
11193
11194
11195
11196
11197 func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Pages(ctx context.Context, f func(*ListImportDataFilesResponse) error) error {
11198 c.ctx_ = ctx
11199 defer c.PageToken(c.urlParams_.Get("pageToken"))
11200 for {
11201 x, err := c.Do()
11202 if err != nil {
11203 return err
11204 }
11205 if err := f(x); err != nil {
11206 return err
11207 }
11208 if x.NextPageToken == "" {
11209 return nil
11210 }
11211 c.PageToken(x.NextPageToken)
11212 }
11213 }
11214
11215 type ProjectsLocationsOperationsCancelCall struct {
11216 s *Service
11217 name string
11218 canceloperationrequest *CancelOperationRequest
11219 urlParams_ gensupport.URLParams
11220 ctx_ context.Context
11221 header_ http.Header
11222 }
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235 func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
11236 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11237 c.name = name
11238 c.canceloperationrequest = canceloperationrequest
11239 return c
11240 }
11241
11242
11243
11244
11245 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
11246 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11247 return c
11248 }
11249
11250
11251 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
11252 c.ctx_ = ctx
11253 return c
11254 }
11255
11256
11257
11258 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
11259 if c.header_ == nil {
11260 c.header_ = make(http.Header)
11261 }
11262 return c.header_
11263 }
11264
11265 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
11266 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11267 var body io.Reader = nil
11268 body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
11269 if err != nil {
11270 return nil, err
11271 }
11272 c.urlParams_.Set("alt", alt)
11273 c.urlParams_.Set("prettyPrint", "false")
11274 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:cancel")
11275 urls += "?" + c.urlParams_.Encode()
11276 req, err := http.NewRequest("POST", urls, body)
11277 if err != nil {
11278 return nil, err
11279 }
11280 req.Header = reqHeaders
11281 googleapi.Expand(req.URL, map[string]string{
11282 "name": c.name,
11283 })
11284 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11285 }
11286
11287
11288
11289
11290
11291
11292 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
11293 gensupport.SetOptions(c.urlParams_, opts...)
11294 res, err := c.doRequest("json")
11295 if res != nil && res.StatusCode == http.StatusNotModified {
11296 if res.Body != nil {
11297 res.Body.Close()
11298 }
11299 return nil, gensupport.WrapError(&googleapi.Error{
11300 Code: res.StatusCode,
11301 Header: res.Header,
11302 })
11303 }
11304 if err != nil {
11305 return nil, err
11306 }
11307 defer googleapi.CloseBody(res)
11308 if err := googleapi.CheckResponse(res); err != nil {
11309 return nil, gensupport.WrapError(err)
11310 }
11311 ret := &Empty{
11312 ServerResponse: googleapi.ServerResponse{
11313 Header: res.Header,
11314 HTTPStatusCode: res.StatusCode,
11315 },
11316 }
11317 target := &ret
11318 if err := gensupport.DecodeResponse(target, res); err != nil {
11319 return nil, err
11320 }
11321 return ret, nil
11322 }
11323
11324 type ProjectsLocationsOperationsDeleteCall struct {
11325 s *Service
11326 name string
11327 urlParams_ gensupport.URLParams
11328 ctx_ context.Context
11329 header_ http.Header
11330 }
11331
11332
11333
11334
11335
11336
11337
11338 func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
11339 c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11340 c.name = name
11341 return c
11342 }
11343
11344
11345
11346
11347 func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
11348 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11349 return c
11350 }
11351
11352
11353 func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
11354 c.ctx_ = ctx
11355 return c
11356 }
11357
11358
11359
11360 func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
11361 if c.header_ == nil {
11362 c.header_ = make(http.Header)
11363 }
11364 return c.header_
11365 }
11366
11367 func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
11368 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11369 var body io.Reader = nil
11370 c.urlParams_.Set("alt", alt)
11371 c.urlParams_.Set("prettyPrint", "false")
11372 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
11373 urls += "?" + c.urlParams_.Encode()
11374 req, err := http.NewRequest("DELETE", urls, body)
11375 if err != nil {
11376 return nil, err
11377 }
11378 req.Header = reqHeaders
11379 googleapi.Expand(req.URL, map[string]string{
11380 "name": c.name,
11381 })
11382 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11383 }
11384
11385
11386
11387
11388
11389
11390 func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
11391 gensupport.SetOptions(c.urlParams_, opts...)
11392 res, err := c.doRequest("json")
11393 if res != nil && res.StatusCode == http.StatusNotModified {
11394 if res.Body != nil {
11395 res.Body.Close()
11396 }
11397 return nil, gensupport.WrapError(&googleapi.Error{
11398 Code: res.StatusCode,
11399 Header: res.Header,
11400 })
11401 }
11402 if err != nil {
11403 return nil, err
11404 }
11405 defer googleapi.CloseBody(res)
11406 if err := googleapi.CheckResponse(res); err != nil {
11407 return nil, gensupport.WrapError(err)
11408 }
11409 ret := &Empty{
11410 ServerResponse: googleapi.ServerResponse{
11411 Header: res.Header,
11412 HTTPStatusCode: res.StatusCode,
11413 },
11414 }
11415 target := &ret
11416 if err := gensupport.DecodeResponse(target, res); err != nil {
11417 return nil, err
11418 }
11419 return ret, nil
11420 }
11421
11422 type ProjectsLocationsOperationsGetCall struct {
11423 s *Service
11424 name string
11425 urlParams_ gensupport.URLParams
11426 ifNoneMatch_ string
11427 ctx_ context.Context
11428 header_ http.Header
11429 }
11430
11431
11432
11433
11434
11435
11436 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
11437 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11438 c.name = name
11439 return c
11440 }
11441
11442
11443
11444
11445 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
11446 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11447 return c
11448 }
11449
11450
11451
11452
11453 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
11454 c.ifNoneMatch_ = entityTag
11455 return c
11456 }
11457
11458
11459 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
11460 c.ctx_ = ctx
11461 return c
11462 }
11463
11464
11465
11466 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
11467 if c.header_ == nil {
11468 c.header_ = make(http.Header)
11469 }
11470 return c.header_
11471 }
11472
11473 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
11474 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11475 if c.ifNoneMatch_ != "" {
11476 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11477 }
11478 var body io.Reader = nil
11479 c.urlParams_.Set("alt", alt)
11480 c.urlParams_.Set("prettyPrint", "false")
11481 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
11482 urls += "?" + c.urlParams_.Encode()
11483 req, err := http.NewRequest("GET", urls, body)
11484 if err != nil {
11485 return nil, err
11486 }
11487 req.Header = reqHeaders
11488 googleapi.Expand(req.URL, map[string]string{
11489 "name": c.name,
11490 })
11491 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11492 }
11493
11494
11495
11496
11497
11498
11499 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11500 gensupport.SetOptions(c.urlParams_, opts...)
11501 res, err := c.doRequest("json")
11502 if res != nil && res.StatusCode == http.StatusNotModified {
11503 if res.Body != nil {
11504 res.Body.Close()
11505 }
11506 return nil, gensupport.WrapError(&googleapi.Error{
11507 Code: res.StatusCode,
11508 Header: res.Header,
11509 })
11510 }
11511 if err != nil {
11512 return nil, err
11513 }
11514 defer googleapi.CloseBody(res)
11515 if err := googleapi.CheckResponse(res); err != nil {
11516 return nil, gensupport.WrapError(err)
11517 }
11518 ret := &Operation{
11519 ServerResponse: googleapi.ServerResponse{
11520 Header: res.Header,
11521 HTTPStatusCode: res.StatusCode,
11522 },
11523 }
11524 target := &ret
11525 if err := gensupport.DecodeResponse(target, res); err != nil {
11526 return nil, err
11527 }
11528 return ret, nil
11529 }
11530
11531 type ProjectsLocationsOperationsListCall struct {
11532 s *Service
11533 name string
11534 urlParams_ gensupport.URLParams
11535 ifNoneMatch_ string
11536 ctx_ context.Context
11537 header_ http.Header
11538 }
11539
11540
11541
11542
11543
11544 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
11545 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11546 c.name = name
11547 return c
11548 }
11549
11550
11551 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
11552 c.urlParams_.Set("filter", filter)
11553 return c
11554 }
11555
11556
11557
11558 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
11559 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11560 return c
11561 }
11562
11563
11564
11565 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
11566 c.urlParams_.Set("pageToken", pageToken)
11567 return c
11568 }
11569
11570
11571
11572
11573 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
11574 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11575 return c
11576 }
11577
11578
11579
11580
11581 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
11582 c.ifNoneMatch_ = entityTag
11583 return c
11584 }
11585
11586
11587 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
11588 c.ctx_ = ctx
11589 return c
11590 }
11591
11592
11593
11594 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
11595 if c.header_ == nil {
11596 c.header_ = make(http.Header)
11597 }
11598 return c.header_
11599 }
11600
11601 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
11602 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11603 if c.ifNoneMatch_ != "" {
11604 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11605 }
11606 var body io.Reader = nil
11607 c.urlParams_.Set("alt", alt)
11608 c.urlParams_.Set("prettyPrint", "false")
11609 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}/operations")
11610 urls += "?" + c.urlParams_.Encode()
11611 req, err := http.NewRequest("GET", urls, body)
11612 if err != nil {
11613 return nil, err
11614 }
11615 req.Header = reqHeaders
11616 googleapi.Expand(req.URL, map[string]string{
11617 "name": c.name,
11618 })
11619 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11620 }
11621
11622
11623
11624
11625
11626
11627
11628 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
11629 gensupport.SetOptions(c.urlParams_, opts...)
11630 res, err := c.doRequest("json")
11631 if res != nil && res.StatusCode == http.StatusNotModified {
11632 if res.Body != nil {
11633 res.Body.Close()
11634 }
11635 return nil, gensupport.WrapError(&googleapi.Error{
11636 Code: res.StatusCode,
11637 Header: res.Header,
11638 })
11639 }
11640 if err != nil {
11641 return nil, err
11642 }
11643 defer googleapi.CloseBody(res)
11644 if err := googleapi.CheckResponse(res); err != nil {
11645 return nil, gensupport.WrapError(err)
11646 }
11647 ret := &ListOperationsResponse{
11648 ServerResponse: googleapi.ServerResponse{
11649 Header: res.Header,
11650 HTTPStatusCode: res.StatusCode,
11651 },
11652 }
11653 target := &ret
11654 if err := gensupport.DecodeResponse(target, res); err != nil {
11655 return nil, err
11656 }
11657 return ret, nil
11658 }
11659
11660
11661
11662
11663 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
11664 c.ctx_ = ctx
11665 defer c.PageToken(c.urlParams_.Get("pageToken"))
11666 for {
11667 x, err := c.Do()
11668 if err != nil {
11669 return err
11670 }
11671 if err := f(x); err != nil {
11672 return err
11673 }
11674 if x.NextPageToken == "" {
11675 return nil
11676 }
11677 c.PageToken(x.NextPageToken)
11678 }
11679 }
11680
11681 type ProjectsLocationsPreferenceSetsCreateCall struct {
11682 s *Service
11683 parent string
11684 preferenceset *PreferenceSet
11685 urlParams_ gensupport.URLParams
11686 ctx_ context.Context
11687 header_ http.Header
11688 }
11689
11690
11691
11692
11693 func (r *ProjectsLocationsPreferenceSetsService) Create(parent string, preferenceset *PreferenceSet) *ProjectsLocationsPreferenceSetsCreateCall {
11694 c := &ProjectsLocationsPreferenceSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11695 c.parent = parent
11696 c.preferenceset = preferenceset
11697 return c
11698 }
11699
11700
11701 func (c *ProjectsLocationsPreferenceSetsCreateCall) PreferenceSetId(preferenceSetId string) *ProjectsLocationsPreferenceSetsCreateCall {
11702 c.urlParams_.Set("preferenceSetId", preferenceSetId)
11703 return c
11704 }
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717 func (c *ProjectsLocationsPreferenceSetsCreateCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsCreateCall {
11718 c.urlParams_.Set("requestId", requestId)
11719 return c
11720 }
11721
11722
11723
11724
11725 func (c *ProjectsLocationsPreferenceSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsCreateCall {
11726 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11727 return c
11728 }
11729
11730
11731 func (c *ProjectsLocationsPreferenceSetsCreateCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsCreateCall {
11732 c.ctx_ = ctx
11733 return c
11734 }
11735
11736
11737
11738 func (c *ProjectsLocationsPreferenceSetsCreateCall) Header() http.Header {
11739 if c.header_ == nil {
11740 c.header_ = make(http.Header)
11741 }
11742 return c.header_
11743 }
11744
11745 func (c *ProjectsLocationsPreferenceSetsCreateCall) doRequest(alt string) (*http.Response, error) {
11746 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11747 var body io.Reader = nil
11748 body, err := googleapi.WithoutDataWrapper.JSONReader(c.preferenceset)
11749 if err != nil {
11750 return nil, err
11751 }
11752 c.urlParams_.Set("alt", alt)
11753 c.urlParams_.Set("prettyPrint", "false")
11754 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/preferenceSets")
11755 urls += "?" + c.urlParams_.Encode()
11756 req, err := http.NewRequest("POST", urls, body)
11757 if err != nil {
11758 return nil, err
11759 }
11760 req.Header = reqHeaders
11761 googleapi.Expand(req.URL, map[string]string{
11762 "parent": c.parent,
11763 })
11764 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11765 }
11766
11767
11768
11769
11770
11771
11772 func (c *ProjectsLocationsPreferenceSetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11773 gensupport.SetOptions(c.urlParams_, opts...)
11774 res, err := c.doRequest("json")
11775 if res != nil && res.StatusCode == http.StatusNotModified {
11776 if res.Body != nil {
11777 res.Body.Close()
11778 }
11779 return nil, gensupport.WrapError(&googleapi.Error{
11780 Code: res.StatusCode,
11781 Header: res.Header,
11782 })
11783 }
11784 if err != nil {
11785 return nil, err
11786 }
11787 defer googleapi.CloseBody(res)
11788 if err := googleapi.CheckResponse(res); err != nil {
11789 return nil, gensupport.WrapError(err)
11790 }
11791 ret := &Operation{
11792 ServerResponse: googleapi.ServerResponse{
11793 Header: res.Header,
11794 HTTPStatusCode: res.StatusCode,
11795 },
11796 }
11797 target := &ret
11798 if err := gensupport.DecodeResponse(target, res); err != nil {
11799 return nil, err
11800 }
11801 return ret, nil
11802 }
11803
11804 type ProjectsLocationsPreferenceSetsDeleteCall struct {
11805 s *Service
11806 name string
11807 urlParams_ gensupport.URLParams
11808 ctx_ context.Context
11809 header_ http.Header
11810 }
11811
11812
11813
11814
11815 func (r *ProjectsLocationsPreferenceSetsService) Delete(name string) *ProjectsLocationsPreferenceSetsDeleteCall {
11816 c := &ProjectsLocationsPreferenceSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11817 c.name = name
11818 return c
11819 }
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832 func (c *ProjectsLocationsPreferenceSetsDeleteCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsDeleteCall {
11833 c.urlParams_.Set("requestId", requestId)
11834 return c
11835 }
11836
11837
11838
11839
11840 func (c *ProjectsLocationsPreferenceSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsDeleteCall {
11841 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11842 return c
11843 }
11844
11845
11846 func (c *ProjectsLocationsPreferenceSetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsDeleteCall {
11847 c.ctx_ = ctx
11848 return c
11849 }
11850
11851
11852
11853 func (c *ProjectsLocationsPreferenceSetsDeleteCall) Header() http.Header {
11854 if c.header_ == nil {
11855 c.header_ = make(http.Header)
11856 }
11857 return c.header_
11858 }
11859
11860 func (c *ProjectsLocationsPreferenceSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
11861 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11862 var body io.Reader = nil
11863 c.urlParams_.Set("alt", alt)
11864 c.urlParams_.Set("prettyPrint", "false")
11865 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
11866 urls += "?" + c.urlParams_.Encode()
11867 req, err := http.NewRequest("DELETE", urls, body)
11868 if err != nil {
11869 return nil, err
11870 }
11871 req.Header = reqHeaders
11872 googleapi.Expand(req.URL, map[string]string{
11873 "name": c.name,
11874 })
11875 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11876 }
11877
11878
11879
11880
11881
11882
11883 func (c *ProjectsLocationsPreferenceSetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11884 gensupport.SetOptions(c.urlParams_, opts...)
11885 res, err := c.doRequest("json")
11886 if res != nil && res.StatusCode == http.StatusNotModified {
11887 if res.Body != nil {
11888 res.Body.Close()
11889 }
11890 return nil, gensupport.WrapError(&googleapi.Error{
11891 Code: res.StatusCode,
11892 Header: res.Header,
11893 })
11894 }
11895 if err != nil {
11896 return nil, err
11897 }
11898 defer googleapi.CloseBody(res)
11899 if err := googleapi.CheckResponse(res); err != nil {
11900 return nil, gensupport.WrapError(err)
11901 }
11902 ret := &Operation{
11903 ServerResponse: googleapi.ServerResponse{
11904 Header: res.Header,
11905 HTTPStatusCode: res.StatusCode,
11906 },
11907 }
11908 target := &ret
11909 if err := gensupport.DecodeResponse(target, res); err != nil {
11910 return nil, err
11911 }
11912 return ret, nil
11913 }
11914
11915 type ProjectsLocationsPreferenceSetsGetCall struct {
11916 s *Service
11917 name string
11918 urlParams_ gensupport.URLParams
11919 ifNoneMatch_ string
11920 ctx_ context.Context
11921 header_ http.Header
11922 }
11923
11924
11925
11926
11927 func (r *ProjectsLocationsPreferenceSetsService) Get(name string) *ProjectsLocationsPreferenceSetsGetCall {
11928 c := &ProjectsLocationsPreferenceSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11929 c.name = name
11930 return c
11931 }
11932
11933
11934
11935
11936 func (c *ProjectsLocationsPreferenceSetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsGetCall {
11937 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11938 return c
11939 }
11940
11941
11942
11943
11944 func (c *ProjectsLocationsPreferenceSetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreferenceSetsGetCall {
11945 c.ifNoneMatch_ = entityTag
11946 return c
11947 }
11948
11949
11950 func (c *ProjectsLocationsPreferenceSetsGetCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsGetCall {
11951 c.ctx_ = ctx
11952 return c
11953 }
11954
11955
11956
11957 func (c *ProjectsLocationsPreferenceSetsGetCall) Header() http.Header {
11958 if c.header_ == nil {
11959 c.header_ = make(http.Header)
11960 }
11961 return c.header_
11962 }
11963
11964 func (c *ProjectsLocationsPreferenceSetsGetCall) doRequest(alt string) (*http.Response, error) {
11965 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11966 if c.ifNoneMatch_ != "" {
11967 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11968 }
11969 var body io.Reader = nil
11970 c.urlParams_.Set("alt", alt)
11971 c.urlParams_.Set("prettyPrint", "false")
11972 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
11973 urls += "?" + c.urlParams_.Encode()
11974 req, err := http.NewRequest("GET", urls, body)
11975 if err != nil {
11976 return nil, err
11977 }
11978 req.Header = reqHeaders
11979 googleapi.Expand(req.URL, map[string]string{
11980 "name": c.name,
11981 })
11982 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11983 }
11984
11985
11986
11987
11988
11989
11990 func (c *ProjectsLocationsPreferenceSetsGetCall) Do(opts ...googleapi.CallOption) (*PreferenceSet, error) {
11991 gensupport.SetOptions(c.urlParams_, opts...)
11992 res, err := c.doRequest("json")
11993 if res != nil && res.StatusCode == http.StatusNotModified {
11994 if res.Body != nil {
11995 res.Body.Close()
11996 }
11997 return nil, gensupport.WrapError(&googleapi.Error{
11998 Code: res.StatusCode,
11999 Header: res.Header,
12000 })
12001 }
12002 if err != nil {
12003 return nil, err
12004 }
12005 defer googleapi.CloseBody(res)
12006 if err := googleapi.CheckResponse(res); err != nil {
12007 return nil, gensupport.WrapError(err)
12008 }
12009 ret := &PreferenceSet{
12010 ServerResponse: googleapi.ServerResponse{
12011 Header: res.Header,
12012 HTTPStatusCode: res.StatusCode,
12013 },
12014 }
12015 target := &ret
12016 if err := gensupport.DecodeResponse(target, res); err != nil {
12017 return nil, err
12018 }
12019 return ret, nil
12020 }
12021
12022 type ProjectsLocationsPreferenceSetsListCall struct {
12023 s *Service
12024 parent string
12025 urlParams_ gensupport.URLParams
12026 ifNoneMatch_ string
12027 ctx_ context.Context
12028 header_ http.Header
12029 }
12030
12031
12032
12033
12034 func (r *ProjectsLocationsPreferenceSetsService) List(parent string) *ProjectsLocationsPreferenceSetsListCall {
12035 c := &ProjectsLocationsPreferenceSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12036 c.parent = parent
12037 return c
12038 }
12039
12040
12041
12042 func (c *ProjectsLocationsPreferenceSetsListCall) OrderBy(orderBy string) *ProjectsLocationsPreferenceSetsListCall {
12043 c.urlParams_.Set("orderBy", orderBy)
12044 return c
12045 }
12046
12047
12048
12049
12050
12051 func (c *ProjectsLocationsPreferenceSetsListCall) PageSize(pageSize int64) *ProjectsLocationsPreferenceSetsListCall {
12052 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12053 return c
12054 }
12055
12056
12057
12058 func (c *ProjectsLocationsPreferenceSetsListCall) PageToken(pageToken string) *ProjectsLocationsPreferenceSetsListCall {
12059 c.urlParams_.Set("pageToken", pageToken)
12060 return c
12061 }
12062
12063
12064
12065
12066 func (c *ProjectsLocationsPreferenceSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsListCall {
12067 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12068 return c
12069 }
12070
12071
12072
12073
12074 func (c *ProjectsLocationsPreferenceSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreferenceSetsListCall {
12075 c.ifNoneMatch_ = entityTag
12076 return c
12077 }
12078
12079
12080 func (c *ProjectsLocationsPreferenceSetsListCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsListCall {
12081 c.ctx_ = ctx
12082 return c
12083 }
12084
12085
12086
12087 func (c *ProjectsLocationsPreferenceSetsListCall) Header() http.Header {
12088 if c.header_ == nil {
12089 c.header_ = make(http.Header)
12090 }
12091 return c.header_
12092 }
12093
12094 func (c *ProjectsLocationsPreferenceSetsListCall) doRequest(alt string) (*http.Response, error) {
12095 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12096 if c.ifNoneMatch_ != "" {
12097 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12098 }
12099 var body io.Reader = nil
12100 c.urlParams_.Set("alt", alt)
12101 c.urlParams_.Set("prettyPrint", "false")
12102 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/preferenceSets")
12103 urls += "?" + c.urlParams_.Encode()
12104 req, err := http.NewRequest("GET", urls, body)
12105 if err != nil {
12106 return nil, err
12107 }
12108 req.Header = reqHeaders
12109 googleapi.Expand(req.URL, map[string]string{
12110 "parent": c.parent,
12111 })
12112 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12113 }
12114
12115
12116
12117
12118
12119
12120
12121 func (c *ProjectsLocationsPreferenceSetsListCall) Do(opts ...googleapi.CallOption) (*ListPreferenceSetsResponse, error) {
12122 gensupport.SetOptions(c.urlParams_, opts...)
12123 res, err := c.doRequest("json")
12124 if res != nil && res.StatusCode == http.StatusNotModified {
12125 if res.Body != nil {
12126 res.Body.Close()
12127 }
12128 return nil, gensupport.WrapError(&googleapi.Error{
12129 Code: res.StatusCode,
12130 Header: res.Header,
12131 })
12132 }
12133 if err != nil {
12134 return nil, err
12135 }
12136 defer googleapi.CloseBody(res)
12137 if err := googleapi.CheckResponse(res); err != nil {
12138 return nil, gensupport.WrapError(err)
12139 }
12140 ret := &ListPreferenceSetsResponse{
12141 ServerResponse: googleapi.ServerResponse{
12142 Header: res.Header,
12143 HTTPStatusCode: res.StatusCode,
12144 },
12145 }
12146 target := &ret
12147 if err := gensupport.DecodeResponse(target, res); err != nil {
12148 return nil, err
12149 }
12150 return ret, nil
12151 }
12152
12153
12154
12155
12156 func (c *ProjectsLocationsPreferenceSetsListCall) Pages(ctx context.Context, f func(*ListPreferenceSetsResponse) error) error {
12157 c.ctx_ = ctx
12158 defer c.PageToken(c.urlParams_.Get("pageToken"))
12159 for {
12160 x, err := c.Do()
12161 if err != nil {
12162 return err
12163 }
12164 if err := f(x); err != nil {
12165 return err
12166 }
12167 if x.NextPageToken == "" {
12168 return nil
12169 }
12170 c.PageToken(x.NextPageToken)
12171 }
12172 }
12173
12174 type ProjectsLocationsPreferenceSetsPatchCall struct {
12175 s *Service
12176 name string
12177 preferenceset *PreferenceSet
12178 urlParams_ gensupport.URLParams
12179 ctx_ context.Context
12180 header_ http.Header
12181 }
12182
12183
12184
12185
12186 func (r *ProjectsLocationsPreferenceSetsService) Patch(name string, preferenceset *PreferenceSet) *ProjectsLocationsPreferenceSetsPatchCall {
12187 c := &ProjectsLocationsPreferenceSetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12188 c.name = name
12189 c.preferenceset = preferenceset
12190 return c
12191 }
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204 func (c *ProjectsLocationsPreferenceSetsPatchCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsPatchCall {
12205 c.urlParams_.Set("requestId", requestId)
12206 return c
12207 }
12208
12209
12210
12211
12212
12213
12214 func (c *ProjectsLocationsPreferenceSetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsPreferenceSetsPatchCall {
12215 c.urlParams_.Set("updateMask", updateMask)
12216 return c
12217 }
12218
12219
12220
12221
12222 func (c *ProjectsLocationsPreferenceSetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsPatchCall {
12223 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12224 return c
12225 }
12226
12227
12228 func (c *ProjectsLocationsPreferenceSetsPatchCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsPatchCall {
12229 c.ctx_ = ctx
12230 return c
12231 }
12232
12233
12234
12235 func (c *ProjectsLocationsPreferenceSetsPatchCall) Header() http.Header {
12236 if c.header_ == nil {
12237 c.header_ = make(http.Header)
12238 }
12239 return c.header_
12240 }
12241
12242 func (c *ProjectsLocationsPreferenceSetsPatchCall) doRequest(alt string) (*http.Response, error) {
12243 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12244 var body io.Reader = nil
12245 body, err := googleapi.WithoutDataWrapper.JSONReader(c.preferenceset)
12246 if err != nil {
12247 return nil, err
12248 }
12249 c.urlParams_.Set("alt", alt)
12250 c.urlParams_.Set("prettyPrint", "false")
12251 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
12252 urls += "?" + c.urlParams_.Encode()
12253 req, err := http.NewRequest("PATCH", urls, body)
12254 if err != nil {
12255 return nil, err
12256 }
12257 req.Header = reqHeaders
12258 googleapi.Expand(req.URL, map[string]string{
12259 "name": c.name,
12260 })
12261 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12262 }
12263
12264
12265
12266
12267
12268
12269 func (c *ProjectsLocationsPreferenceSetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12270 gensupport.SetOptions(c.urlParams_, opts...)
12271 res, err := c.doRequest("json")
12272 if res != nil && res.StatusCode == http.StatusNotModified {
12273 if res.Body != nil {
12274 res.Body.Close()
12275 }
12276 return nil, gensupport.WrapError(&googleapi.Error{
12277 Code: res.StatusCode,
12278 Header: res.Header,
12279 })
12280 }
12281 if err != nil {
12282 return nil, err
12283 }
12284 defer googleapi.CloseBody(res)
12285 if err := googleapi.CheckResponse(res); err != nil {
12286 return nil, gensupport.WrapError(err)
12287 }
12288 ret := &Operation{
12289 ServerResponse: googleapi.ServerResponse{
12290 Header: res.Header,
12291 HTTPStatusCode: res.StatusCode,
12292 },
12293 }
12294 target := &ret
12295 if err := gensupport.DecodeResponse(target, res); err != nil {
12296 return nil, err
12297 }
12298 return ret, nil
12299 }
12300
12301 type ProjectsLocationsReportConfigsCreateCall struct {
12302 s *Service
12303 parent string
12304 reportconfig *ReportConfig
12305 urlParams_ gensupport.URLParams
12306 ctx_ context.Context
12307 header_ http.Header
12308 }
12309
12310
12311
12312
12313 func (r *ProjectsLocationsReportConfigsService) Create(parent string, reportconfig *ReportConfig) *ProjectsLocationsReportConfigsCreateCall {
12314 c := &ProjectsLocationsReportConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12315 c.parent = parent
12316 c.reportconfig = reportconfig
12317 return c
12318 }
12319
12320
12321
12322
12323
12324
12325
12326 func (c *ProjectsLocationsReportConfigsCreateCall) ReportConfigId(reportConfigId string) *ProjectsLocationsReportConfigsCreateCall {
12327 c.urlParams_.Set("reportConfigId", reportConfigId)
12328 return c
12329 }
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342 func (c *ProjectsLocationsReportConfigsCreateCall) RequestId(requestId string) *ProjectsLocationsReportConfigsCreateCall {
12343 c.urlParams_.Set("requestId", requestId)
12344 return c
12345 }
12346
12347
12348
12349
12350 func (c *ProjectsLocationsReportConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsCreateCall {
12351 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12352 return c
12353 }
12354
12355
12356 func (c *ProjectsLocationsReportConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsCreateCall {
12357 c.ctx_ = ctx
12358 return c
12359 }
12360
12361
12362
12363 func (c *ProjectsLocationsReportConfigsCreateCall) Header() http.Header {
12364 if c.header_ == nil {
12365 c.header_ = make(http.Header)
12366 }
12367 return c.header_
12368 }
12369
12370 func (c *ProjectsLocationsReportConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
12371 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12372 var body io.Reader = nil
12373 body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportconfig)
12374 if err != nil {
12375 return nil, err
12376 }
12377 c.urlParams_.Set("alt", alt)
12378 c.urlParams_.Set("prettyPrint", "false")
12379 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/reportConfigs")
12380 urls += "?" + c.urlParams_.Encode()
12381 req, err := http.NewRequest("POST", urls, body)
12382 if err != nil {
12383 return nil, err
12384 }
12385 req.Header = reqHeaders
12386 googleapi.Expand(req.URL, map[string]string{
12387 "parent": c.parent,
12388 })
12389 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12390 }
12391
12392
12393
12394
12395
12396
12397 func (c *ProjectsLocationsReportConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12398 gensupport.SetOptions(c.urlParams_, opts...)
12399 res, err := c.doRequest("json")
12400 if res != nil && res.StatusCode == http.StatusNotModified {
12401 if res.Body != nil {
12402 res.Body.Close()
12403 }
12404 return nil, gensupport.WrapError(&googleapi.Error{
12405 Code: res.StatusCode,
12406 Header: res.Header,
12407 })
12408 }
12409 if err != nil {
12410 return nil, err
12411 }
12412 defer googleapi.CloseBody(res)
12413 if err := googleapi.CheckResponse(res); err != nil {
12414 return nil, gensupport.WrapError(err)
12415 }
12416 ret := &Operation{
12417 ServerResponse: googleapi.ServerResponse{
12418 Header: res.Header,
12419 HTTPStatusCode: res.StatusCode,
12420 },
12421 }
12422 target := &ret
12423 if err := gensupport.DecodeResponse(target, res); err != nil {
12424 return nil, err
12425 }
12426 return ret, nil
12427 }
12428
12429 type ProjectsLocationsReportConfigsDeleteCall struct {
12430 s *Service
12431 name string
12432 urlParams_ gensupport.URLParams
12433 ctx_ context.Context
12434 header_ http.Header
12435 }
12436
12437
12438
12439
12440 func (r *ProjectsLocationsReportConfigsService) Delete(name string) *ProjectsLocationsReportConfigsDeleteCall {
12441 c := &ProjectsLocationsReportConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12442 c.name = name
12443 return c
12444 }
12445
12446
12447
12448
12449 func (c *ProjectsLocationsReportConfigsDeleteCall) Force(force bool) *ProjectsLocationsReportConfigsDeleteCall {
12450 c.urlParams_.Set("force", fmt.Sprint(force))
12451 return c
12452 }
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465 func (c *ProjectsLocationsReportConfigsDeleteCall) RequestId(requestId string) *ProjectsLocationsReportConfigsDeleteCall {
12466 c.urlParams_.Set("requestId", requestId)
12467 return c
12468 }
12469
12470
12471
12472
12473 func (c *ProjectsLocationsReportConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsDeleteCall {
12474 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12475 return c
12476 }
12477
12478
12479 func (c *ProjectsLocationsReportConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsDeleteCall {
12480 c.ctx_ = ctx
12481 return c
12482 }
12483
12484
12485
12486 func (c *ProjectsLocationsReportConfigsDeleteCall) Header() http.Header {
12487 if c.header_ == nil {
12488 c.header_ = make(http.Header)
12489 }
12490 return c.header_
12491 }
12492
12493 func (c *ProjectsLocationsReportConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
12494 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12495 var body io.Reader = nil
12496 c.urlParams_.Set("alt", alt)
12497 c.urlParams_.Set("prettyPrint", "false")
12498 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
12499 urls += "?" + c.urlParams_.Encode()
12500 req, err := http.NewRequest("DELETE", urls, body)
12501 if err != nil {
12502 return nil, err
12503 }
12504 req.Header = reqHeaders
12505 googleapi.Expand(req.URL, map[string]string{
12506 "name": c.name,
12507 })
12508 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12509 }
12510
12511
12512
12513
12514
12515
12516 func (c *ProjectsLocationsReportConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12517 gensupport.SetOptions(c.urlParams_, opts...)
12518 res, err := c.doRequest("json")
12519 if res != nil && res.StatusCode == http.StatusNotModified {
12520 if res.Body != nil {
12521 res.Body.Close()
12522 }
12523 return nil, gensupport.WrapError(&googleapi.Error{
12524 Code: res.StatusCode,
12525 Header: res.Header,
12526 })
12527 }
12528 if err != nil {
12529 return nil, err
12530 }
12531 defer googleapi.CloseBody(res)
12532 if err := googleapi.CheckResponse(res); err != nil {
12533 return nil, gensupport.WrapError(err)
12534 }
12535 ret := &Operation{
12536 ServerResponse: googleapi.ServerResponse{
12537 Header: res.Header,
12538 HTTPStatusCode: res.StatusCode,
12539 },
12540 }
12541 target := &ret
12542 if err := gensupport.DecodeResponse(target, res); err != nil {
12543 return nil, err
12544 }
12545 return ret, nil
12546 }
12547
12548 type ProjectsLocationsReportConfigsGetCall struct {
12549 s *Service
12550 name string
12551 urlParams_ gensupport.URLParams
12552 ifNoneMatch_ string
12553 ctx_ context.Context
12554 header_ http.Header
12555 }
12556
12557
12558
12559
12560 func (r *ProjectsLocationsReportConfigsService) Get(name string) *ProjectsLocationsReportConfigsGetCall {
12561 c := &ProjectsLocationsReportConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12562 c.name = name
12563 return c
12564 }
12565
12566
12567
12568
12569 func (c *ProjectsLocationsReportConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsGetCall {
12570 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12571 return c
12572 }
12573
12574
12575
12576
12577 func (c *ProjectsLocationsReportConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsGetCall {
12578 c.ifNoneMatch_ = entityTag
12579 return c
12580 }
12581
12582
12583 func (c *ProjectsLocationsReportConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsGetCall {
12584 c.ctx_ = ctx
12585 return c
12586 }
12587
12588
12589
12590 func (c *ProjectsLocationsReportConfigsGetCall) Header() http.Header {
12591 if c.header_ == nil {
12592 c.header_ = make(http.Header)
12593 }
12594 return c.header_
12595 }
12596
12597 func (c *ProjectsLocationsReportConfigsGetCall) doRequest(alt string) (*http.Response, error) {
12598 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12599 if c.ifNoneMatch_ != "" {
12600 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12601 }
12602 var body io.Reader = nil
12603 c.urlParams_.Set("alt", alt)
12604 c.urlParams_.Set("prettyPrint", "false")
12605 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
12606 urls += "?" + c.urlParams_.Encode()
12607 req, err := http.NewRequest("GET", urls, body)
12608 if err != nil {
12609 return nil, err
12610 }
12611 req.Header = reqHeaders
12612 googleapi.Expand(req.URL, map[string]string{
12613 "name": c.name,
12614 })
12615 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12616 }
12617
12618
12619
12620
12621
12622
12623 func (c *ProjectsLocationsReportConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReportConfig, error) {
12624 gensupport.SetOptions(c.urlParams_, opts...)
12625 res, err := c.doRequest("json")
12626 if res != nil && res.StatusCode == http.StatusNotModified {
12627 if res.Body != nil {
12628 res.Body.Close()
12629 }
12630 return nil, gensupport.WrapError(&googleapi.Error{
12631 Code: res.StatusCode,
12632 Header: res.Header,
12633 })
12634 }
12635 if err != nil {
12636 return nil, err
12637 }
12638 defer googleapi.CloseBody(res)
12639 if err := googleapi.CheckResponse(res); err != nil {
12640 return nil, gensupport.WrapError(err)
12641 }
12642 ret := &ReportConfig{
12643 ServerResponse: googleapi.ServerResponse{
12644 Header: res.Header,
12645 HTTPStatusCode: res.StatusCode,
12646 },
12647 }
12648 target := &ret
12649 if err := gensupport.DecodeResponse(target, res); err != nil {
12650 return nil, err
12651 }
12652 return ret, nil
12653 }
12654
12655 type ProjectsLocationsReportConfigsListCall struct {
12656 s *Service
12657 parent string
12658 urlParams_ gensupport.URLParams
12659 ifNoneMatch_ string
12660 ctx_ context.Context
12661 header_ http.Header
12662 }
12663
12664
12665
12666
12667 func (r *ProjectsLocationsReportConfigsService) List(parent string) *ProjectsLocationsReportConfigsListCall {
12668 c := &ProjectsLocationsReportConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12669 c.parent = parent
12670 return c
12671 }
12672
12673
12674 func (c *ProjectsLocationsReportConfigsListCall) Filter(filter string) *ProjectsLocationsReportConfigsListCall {
12675 c.urlParams_.Set("filter", filter)
12676 return c
12677 }
12678
12679
12680
12681 func (c *ProjectsLocationsReportConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsReportConfigsListCall {
12682 c.urlParams_.Set("orderBy", orderBy)
12683 return c
12684 }
12685
12686
12687
12688
12689 func (c *ProjectsLocationsReportConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsReportConfigsListCall {
12690 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12691 return c
12692 }
12693
12694
12695
12696 func (c *ProjectsLocationsReportConfigsListCall) PageToken(pageToken string) *ProjectsLocationsReportConfigsListCall {
12697 c.urlParams_.Set("pageToken", pageToken)
12698 return c
12699 }
12700
12701
12702
12703
12704 func (c *ProjectsLocationsReportConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsListCall {
12705 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12706 return c
12707 }
12708
12709
12710
12711
12712 func (c *ProjectsLocationsReportConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsListCall {
12713 c.ifNoneMatch_ = entityTag
12714 return c
12715 }
12716
12717
12718 func (c *ProjectsLocationsReportConfigsListCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsListCall {
12719 c.ctx_ = ctx
12720 return c
12721 }
12722
12723
12724
12725 func (c *ProjectsLocationsReportConfigsListCall) Header() http.Header {
12726 if c.header_ == nil {
12727 c.header_ = make(http.Header)
12728 }
12729 return c.header_
12730 }
12731
12732 func (c *ProjectsLocationsReportConfigsListCall) doRequest(alt string) (*http.Response, error) {
12733 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12734 if c.ifNoneMatch_ != "" {
12735 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12736 }
12737 var body io.Reader = nil
12738 c.urlParams_.Set("alt", alt)
12739 c.urlParams_.Set("prettyPrint", "false")
12740 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/reportConfigs")
12741 urls += "?" + c.urlParams_.Encode()
12742 req, err := http.NewRequest("GET", urls, body)
12743 if err != nil {
12744 return nil, err
12745 }
12746 req.Header = reqHeaders
12747 googleapi.Expand(req.URL, map[string]string{
12748 "parent": c.parent,
12749 })
12750 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12751 }
12752
12753
12754
12755
12756
12757
12758
12759 func (c *ProjectsLocationsReportConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReportConfigsResponse, error) {
12760 gensupport.SetOptions(c.urlParams_, opts...)
12761 res, err := c.doRequest("json")
12762 if res != nil && res.StatusCode == http.StatusNotModified {
12763 if res.Body != nil {
12764 res.Body.Close()
12765 }
12766 return nil, gensupport.WrapError(&googleapi.Error{
12767 Code: res.StatusCode,
12768 Header: res.Header,
12769 })
12770 }
12771 if err != nil {
12772 return nil, err
12773 }
12774 defer googleapi.CloseBody(res)
12775 if err := googleapi.CheckResponse(res); err != nil {
12776 return nil, gensupport.WrapError(err)
12777 }
12778 ret := &ListReportConfigsResponse{
12779 ServerResponse: googleapi.ServerResponse{
12780 Header: res.Header,
12781 HTTPStatusCode: res.StatusCode,
12782 },
12783 }
12784 target := &ret
12785 if err := gensupport.DecodeResponse(target, res); err != nil {
12786 return nil, err
12787 }
12788 return ret, nil
12789 }
12790
12791
12792
12793
12794 func (c *ProjectsLocationsReportConfigsListCall) Pages(ctx context.Context, f func(*ListReportConfigsResponse) error) error {
12795 c.ctx_ = ctx
12796 defer c.PageToken(c.urlParams_.Get("pageToken"))
12797 for {
12798 x, err := c.Do()
12799 if err != nil {
12800 return err
12801 }
12802 if err := f(x); err != nil {
12803 return err
12804 }
12805 if x.NextPageToken == "" {
12806 return nil
12807 }
12808 c.PageToken(x.NextPageToken)
12809 }
12810 }
12811
12812 type ProjectsLocationsReportConfigsReportsCreateCall struct {
12813 s *Service
12814 parent string
12815 report *Report
12816 urlParams_ gensupport.URLParams
12817 ctx_ context.Context
12818 header_ http.Header
12819 }
12820
12821
12822
12823
12824 func (r *ProjectsLocationsReportConfigsReportsService) Create(parent string, report *Report) *ProjectsLocationsReportConfigsReportsCreateCall {
12825 c := &ProjectsLocationsReportConfigsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12826 c.parent = parent
12827 c.report = report
12828 return c
12829 }
12830
12831
12832
12833
12834
12835
12836 func (c *ProjectsLocationsReportConfigsReportsCreateCall) ReportId(reportId string) *ProjectsLocationsReportConfigsReportsCreateCall {
12837 c.urlParams_.Set("reportId", reportId)
12838 return c
12839 }
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852 func (c *ProjectsLocationsReportConfigsReportsCreateCall) RequestId(requestId string) *ProjectsLocationsReportConfigsReportsCreateCall {
12853 c.urlParams_.Set("requestId", requestId)
12854 return c
12855 }
12856
12857
12858
12859
12860 func (c *ProjectsLocationsReportConfigsReportsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsCreateCall {
12861 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12862 return c
12863 }
12864
12865
12866 func (c *ProjectsLocationsReportConfigsReportsCreateCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsCreateCall {
12867 c.ctx_ = ctx
12868 return c
12869 }
12870
12871
12872
12873 func (c *ProjectsLocationsReportConfigsReportsCreateCall) Header() http.Header {
12874 if c.header_ == nil {
12875 c.header_ = make(http.Header)
12876 }
12877 return c.header_
12878 }
12879
12880 func (c *ProjectsLocationsReportConfigsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
12881 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12882 var body io.Reader = nil
12883 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
12884 if err != nil {
12885 return nil, err
12886 }
12887 c.urlParams_.Set("alt", alt)
12888 c.urlParams_.Set("prettyPrint", "false")
12889 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/reports")
12890 urls += "?" + c.urlParams_.Encode()
12891 req, err := http.NewRequest("POST", urls, body)
12892 if err != nil {
12893 return nil, err
12894 }
12895 req.Header = reqHeaders
12896 googleapi.Expand(req.URL, map[string]string{
12897 "parent": c.parent,
12898 })
12899 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12900 }
12901
12902
12903
12904
12905
12906
12907 func (c *ProjectsLocationsReportConfigsReportsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12908 gensupport.SetOptions(c.urlParams_, opts...)
12909 res, err := c.doRequest("json")
12910 if res != nil && res.StatusCode == http.StatusNotModified {
12911 if res.Body != nil {
12912 res.Body.Close()
12913 }
12914 return nil, gensupport.WrapError(&googleapi.Error{
12915 Code: res.StatusCode,
12916 Header: res.Header,
12917 })
12918 }
12919 if err != nil {
12920 return nil, err
12921 }
12922 defer googleapi.CloseBody(res)
12923 if err := googleapi.CheckResponse(res); err != nil {
12924 return nil, gensupport.WrapError(err)
12925 }
12926 ret := &Operation{
12927 ServerResponse: googleapi.ServerResponse{
12928 Header: res.Header,
12929 HTTPStatusCode: res.StatusCode,
12930 },
12931 }
12932 target := &ret
12933 if err := gensupport.DecodeResponse(target, res); err != nil {
12934 return nil, err
12935 }
12936 return ret, nil
12937 }
12938
12939 type ProjectsLocationsReportConfigsReportsDeleteCall struct {
12940 s *Service
12941 name string
12942 urlParams_ gensupport.URLParams
12943 ctx_ context.Context
12944 header_ http.Header
12945 }
12946
12947
12948
12949
12950 func (r *ProjectsLocationsReportConfigsReportsService) Delete(name string) *ProjectsLocationsReportConfigsReportsDeleteCall {
12951 c := &ProjectsLocationsReportConfigsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12952 c.name = name
12953 return c
12954 }
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967 func (c *ProjectsLocationsReportConfigsReportsDeleteCall) RequestId(requestId string) *ProjectsLocationsReportConfigsReportsDeleteCall {
12968 c.urlParams_.Set("requestId", requestId)
12969 return c
12970 }
12971
12972
12973
12974
12975 func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsDeleteCall {
12976 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12977 return c
12978 }
12979
12980
12981 func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsDeleteCall {
12982 c.ctx_ = ctx
12983 return c
12984 }
12985
12986
12987
12988 func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Header() http.Header {
12989 if c.header_ == nil {
12990 c.header_ = make(http.Header)
12991 }
12992 return c.header_
12993 }
12994
12995 func (c *ProjectsLocationsReportConfigsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
12996 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12997 var body io.Reader = nil
12998 c.urlParams_.Set("alt", alt)
12999 c.urlParams_.Set("prettyPrint", "false")
13000 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
13001 urls += "?" + c.urlParams_.Encode()
13002 req, err := http.NewRequest("DELETE", urls, body)
13003 if err != nil {
13004 return nil, err
13005 }
13006 req.Header = reqHeaders
13007 googleapi.Expand(req.URL, map[string]string{
13008 "name": c.name,
13009 })
13010 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13011 }
13012
13013
13014
13015
13016
13017
13018 func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
13019 gensupport.SetOptions(c.urlParams_, opts...)
13020 res, err := c.doRequest("json")
13021 if res != nil && res.StatusCode == http.StatusNotModified {
13022 if res.Body != nil {
13023 res.Body.Close()
13024 }
13025 return nil, gensupport.WrapError(&googleapi.Error{
13026 Code: res.StatusCode,
13027 Header: res.Header,
13028 })
13029 }
13030 if err != nil {
13031 return nil, err
13032 }
13033 defer googleapi.CloseBody(res)
13034 if err := googleapi.CheckResponse(res); err != nil {
13035 return nil, gensupport.WrapError(err)
13036 }
13037 ret := &Operation{
13038 ServerResponse: googleapi.ServerResponse{
13039 Header: res.Header,
13040 HTTPStatusCode: res.StatusCode,
13041 },
13042 }
13043 target := &ret
13044 if err := gensupport.DecodeResponse(target, res); err != nil {
13045 return nil, err
13046 }
13047 return ret, nil
13048 }
13049
13050 type ProjectsLocationsReportConfigsReportsGetCall struct {
13051 s *Service
13052 name string
13053 urlParams_ gensupport.URLParams
13054 ifNoneMatch_ string
13055 ctx_ context.Context
13056 header_ http.Header
13057 }
13058
13059
13060
13061
13062 func (r *ProjectsLocationsReportConfigsReportsService) Get(name string) *ProjectsLocationsReportConfigsReportsGetCall {
13063 c := &ProjectsLocationsReportConfigsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13064 c.name = name
13065 return c
13066 }
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088 func (c *ProjectsLocationsReportConfigsReportsGetCall) View(view string) *ProjectsLocationsReportConfigsReportsGetCall {
13089 c.urlParams_.Set("view", view)
13090 return c
13091 }
13092
13093
13094
13095
13096 func (c *ProjectsLocationsReportConfigsReportsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsGetCall {
13097 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13098 return c
13099 }
13100
13101
13102
13103
13104 func (c *ProjectsLocationsReportConfigsReportsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsReportsGetCall {
13105 c.ifNoneMatch_ = entityTag
13106 return c
13107 }
13108
13109
13110 func (c *ProjectsLocationsReportConfigsReportsGetCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsGetCall {
13111 c.ctx_ = ctx
13112 return c
13113 }
13114
13115
13116
13117 func (c *ProjectsLocationsReportConfigsReportsGetCall) Header() http.Header {
13118 if c.header_ == nil {
13119 c.header_ = make(http.Header)
13120 }
13121 return c.header_
13122 }
13123
13124 func (c *ProjectsLocationsReportConfigsReportsGetCall) doRequest(alt string) (*http.Response, error) {
13125 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13126 if c.ifNoneMatch_ != "" {
13127 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13128 }
13129 var body io.Reader = nil
13130 c.urlParams_.Set("alt", alt)
13131 c.urlParams_.Set("prettyPrint", "false")
13132 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
13133 urls += "?" + c.urlParams_.Encode()
13134 req, err := http.NewRequest("GET", urls, body)
13135 if err != nil {
13136 return nil, err
13137 }
13138 req.Header = reqHeaders
13139 googleapi.Expand(req.URL, map[string]string{
13140 "name": c.name,
13141 })
13142 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13143 }
13144
13145
13146
13147
13148
13149
13150 func (c *ProjectsLocationsReportConfigsReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) {
13151 gensupport.SetOptions(c.urlParams_, opts...)
13152 res, err := c.doRequest("json")
13153 if res != nil && res.StatusCode == http.StatusNotModified {
13154 if res.Body != nil {
13155 res.Body.Close()
13156 }
13157 return nil, gensupport.WrapError(&googleapi.Error{
13158 Code: res.StatusCode,
13159 Header: res.Header,
13160 })
13161 }
13162 if err != nil {
13163 return nil, err
13164 }
13165 defer googleapi.CloseBody(res)
13166 if err := googleapi.CheckResponse(res); err != nil {
13167 return nil, gensupport.WrapError(err)
13168 }
13169 ret := &Report{
13170 ServerResponse: googleapi.ServerResponse{
13171 Header: res.Header,
13172 HTTPStatusCode: res.StatusCode,
13173 },
13174 }
13175 target := &ret
13176 if err := gensupport.DecodeResponse(target, res); err != nil {
13177 return nil, err
13178 }
13179 return ret, nil
13180 }
13181
13182 type ProjectsLocationsReportConfigsReportsListCall struct {
13183 s *Service
13184 parent string
13185 urlParams_ gensupport.URLParams
13186 ifNoneMatch_ string
13187 ctx_ context.Context
13188 header_ http.Header
13189 }
13190
13191
13192
13193
13194 func (r *ProjectsLocationsReportConfigsReportsService) List(parent string) *ProjectsLocationsReportConfigsReportsListCall {
13195 c := &ProjectsLocationsReportConfigsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13196 c.parent = parent
13197 return c
13198 }
13199
13200
13201 func (c *ProjectsLocationsReportConfigsReportsListCall) Filter(filter string) *ProjectsLocationsReportConfigsReportsListCall {
13202 c.urlParams_.Set("filter", filter)
13203 return c
13204 }
13205
13206
13207
13208 func (c *ProjectsLocationsReportConfigsReportsListCall) OrderBy(orderBy string) *ProjectsLocationsReportConfigsReportsListCall {
13209 c.urlParams_.Set("orderBy", orderBy)
13210 return c
13211 }
13212
13213
13214
13215
13216 func (c *ProjectsLocationsReportConfigsReportsListCall) PageSize(pageSize int64) *ProjectsLocationsReportConfigsReportsListCall {
13217 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13218 return c
13219 }
13220
13221
13222
13223 func (c *ProjectsLocationsReportConfigsReportsListCall) PageToken(pageToken string) *ProjectsLocationsReportConfigsReportsListCall {
13224 c.urlParams_.Set("pageToken", pageToken)
13225 return c
13226 }
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248 func (c *ProjectsLocationsReportConfigsReportsListCall) View(view string) *ProjectsLocationsReportConfigsReportsListCall {
13249 c.urlParams_.Set("view", view)
13250 return c
13251 }
13252
13253
13254
13255
13256 func (c *ProjectsLocationsReportConfigsReportsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsListCall {
13257 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13258 return c
13259 }
13260
13261
13262
13263
13264 func (c *ProjectsLocationsReportConfigsReportsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsReportsListCall {
13265 c.ifNoneMatch_ = entityTag
13266 return c
13267 }
13268
13269
13270 func (c *ProjectsLocationsReportConfigsReportsListCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsListCall {
13271 c.ctx_ = ctx
13272 return c
13273 }
13274
13275
13276
13277 func (c *ProjectsLocationsReportConfigsReportsListCall) Header() http.Header {
13278 if c.header_ == nil {
13279 c.header_ = make(http.Header)
13280 }
13281 return c.header_
13282 }
13283
13284 func (c *ProjectsLocationsReportConfigsReportsListCall) doRequest(alt string) (*http.Response, error) {
13285 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13286 if c.ifNoneMatch_ != "" {
13287 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13288 }
13289 var body io.Reader = nil
13290 c.urlParams_.Set("alt", alt)
13291 c.urlParams_.Set("prettyPrint", "false")
13292 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/reports")
13293 urls += "?" + c.urlParams_.Encode()
13294 req, err := http.NewRequest("GET", urls, body)
13295 if err != nil {
13296 return nil, err
13297 }
13298 req.Header = reqHeaders
13299 googleapi.Expand(req.URL, map[string]string{
13300 "parent": c.parent,
13301 })
13302 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13303 }
13304
13305
13306
13307
13308
13309
13310
13311 func (c *ProjectsLocationsReportConfigsReportsListCall) Do(opts ...googleapi.CallOption) (*ListReportsResponse, error) {
13312 gensupport.SetOptions(c.urlParams_, opts...)
13313 res, err := c.doRequest("json")
13314 if res != nil && res.StatusCode == http.StatusNotModified {
13315 if res.Body != nil {
13316 res.Body.Close()
13317 }
13318 return nil, gensupport.WrapError(&googleapi.Error{
13319 Code: res.StatusCode,
13320 Header: res.Header,
13321 })
13322 }
13323 if err != nil {
13324 return nil, err
13325 }
13326 defer googleapi.CloseBody(res)
13327 if err := googleapi.CheckResponse(res); err != nil {
13328 return nil, gensupport.WrapError(err)
13329 }
13330 ret := &ListReportsResponse{
13331 ServerResponse: googleapi.ServerResponse{
13332 Header: res.Header,
13333 HTTPStatusCode: res.StatusCode,
13334 },
13335 }
13336 target := &ret
13337 if err := gensupport.DecodeResponse(target, res); err != nil {
13338 return nil, err
13339 }
13340 return ret, nil
13341 }
13342
13343
13344
13345
13346 func (c *ProjectsLocationsReportConfigsReportsListCall) Pages(ctx context.Context, f func(*ListReportsResponse) error) error {
13347 c.ctx_ = ctx
13348 defer c.PageToken(c.urlParams_.Get("pageToken"))
13349 for {
13350 x, err := c.Do()
13351 if err != nil {
13352 return err
13353 }
13354 if err := f(x); err != nil {
13355 return err
13356 }
13357 if x.NextPageToken == "" {
13358 return nil
13359 }
13360 c.PageToken(x.NextPageToken)
13361 }
13362 }
13363
13364 type ProjectsLocationsSourcesCreateCall struct {
13365 s *Service
13366 parent string
13367 source *Source
13368 urlParams_ gensupport.URLParams
13369 ctx_ context.Context
13370 header_ http.Header
13371 }
13372
13373
13374
13375
13376 func (r *ProjectsLocationsSourcesService) Create(parent string, source *Source) *ProjectsLocationsSourcesCreateCall {
13377 c := &ProjectsLocationsSourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13378 c.parent = parent
13379 c.source = source
13380 return c
13381 }
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394 func (c *ProjectsLocationsSourcesCreateCall) RequestId(requestId string) *ProjectsLocationsSourcesCreateCall {
13395 c.urlParams_.Set("requestId", requestId)
13396 return c
13397 }
13398
13399
13400
13401
13402
13403
13404 func (c *ProjectsLocationsSourcesCreateCall) SourceId(sourceId string) *ProjectsLocationsSourcesCreateCall {
13405 c.urlParams_.Set("sourceId", sourceId)
13406 return c
13407 }
13408
13409
13410
13411
13412 func (c *ProjectsLocationsSourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesCreateCall {
13413 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13414 return c
13415 }
13416
13417
13418 func (c *ProjectsLocationsSourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsSourcesCreateCall {
13419 c.ctx_ = ctx
13420 return c
13421 }
13422
13423
13424
13425 func (c *ProjectsLocationsSourcesCreateCall) Header() http.Header {
13426 if c.header_ == nil {
13427 c.header_ = make(http.Header)
13428 }
13429 return c.header_
13430 }
13431
13432 func (c *ProjectsLocationsSourcesCreateCall) doRequest(alt string) (*http.Response, error) {
13433 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13434 var body io.Reader = nil
13435 body, err := googleapi.WithoutDataWrapper.JSONReader(c.source)
13436 if err != nil {
13437 return nil, err
13438 }
13439 c.urlParams_.Set("alt", alt)
13440 c.urlParams_.Set("prettyPrint", "false")
13441 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/sources")
13442 urls += "?" + c.urlParams_.Encode()
13443 req, err := http.NewRequest("POST", urls, body)
13444 if err != nil {
13445 return nil, err
13446 }
13447 req.Header = reqHeaders
13448 googleapi.Expand(req.URL, map[string]string{
13449 "parent": c.parent,
13450 })
13451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13452 }
13453
13454
13455
13456
13457
13458
13459 func (c *ProjectsLocationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
13460 gensupport.SetOptions(c.urlParams_, opts...)
13461 res, err := c.doRequest("json")
13462 if res != nil && res.StatusCode == http.StatusNotModified {
13463 if res.Body != nil {
13464 res.Body.Close()
13465 }
13466 return nil, gensupport.WrapError(&googleapi.Error{
13467 Code: res.StatusCode,
13468 Header: res.Header,
13469 })
13470 }
13471 if err != nil {
13472 return nil, err
13473 }
13474 defer googleapi.CloseBody(res)
13475 if err := googleapi.CheckResponse(res); err != nil {
13476 return nil, gensupport.WrapError(err)
13477 }
13478 ret := &Operation{
13479 ServerResponse: googleapi.ServerResponse{
13480 Header: res.Header,
13481 HTTPStatusCode: res.StatusCode,
13482 },
13483 }
13484 target := &ret
13485 if err := gensupport.DecodeResponse(target, res); err != nil {
13486 return nil, err
13487 }
13488 return ret, nil
13489 }
13490
13491 type ProjectsLocationsSourcesDeleteCall struct {
13492 s *Service
13493 name string
13494 urlParams_ gensupport.URLParams
13495 ctx_ context.Context
13496 header_ http.Header
13497 }
13498
13499
13500
13501
13502 func (r *ProjectsLocationsSourcesService) Delete(name string) *ProjectsLocationsSourcesDeleteCall {
13503 c := &ProjectsLocationsSourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13504 c.name = name
13505 return c
13506 }
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519 func (c *ProjectsLocationsSourcesDeleteCall) RequestId(requestId string) *ProjectsLocationsSourcesDeleteCall {
13520 c.urlParams_.Set("requestId", requestId)
13521 return c
13522 }
13523
13524
13525
13526
13527 func (c *ProjectsLocationsSourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesDeleteCall {
13528 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13529 return c
13530 }
13531
13532
13533 func (c *ProjectsLocationsSourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSourcesDeleteCall {
13534 c.ctx_ = ctx
13535 return c
13536 }
13537
13538
13539
13540 func (c *ProjectsLocationsSourcesDeleteCall) Header() http.Header {
13541 if c.header_ == nil {
13542 c.header_ = make(http.Header)
13543 }
13544 return c.header_
13545 }
13546
13547 func (c *ProjectsLocationsSourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
13548 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13549 var body io.Reader = nil
13550 c.urlParams_.Set("alt", alt)
13551 c.urlParams_.Set("prettyPrint", "false")
13552 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
13553 urls += "?" + c.urlParams_.Encode()
13554 req, err := http.NewRequest("DELETE", urls, body)
13555 if err != nil {
13556 return nil, err
13557 }
13558 req.Header = reqHeaders
13559 googleapi.Expand(req.URL, map[string]string{
13560 "name": c.name,
13561 })
13562 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13563 }
13564
13565
13566
13567
13568
13569
13570 func (c *ProjectsLocationsSourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
13571 gensupport.SetOptions(c.urlParams_, opts...)
13572 res, err := c.doRequest("json")
13573 if res != nil && res.StatusCode == http.StatusNotModified {
13574 if res.Body != nil {
13575 res.Body.Close()
13576 }
13577 return nil, gensupport.WrapError(&googleapi.Error{
13578 Code: res.StatusCode,
13579 Header: res.Header,
13580 })
13581 }
13582 if err != nil {
13583 return nil, err
13584 }
13585 defer googleapi.CloseBody(res)
13586 if err := googleapi.CheckResponse(res); err != nil {
13587 return nil, gensupport.WrapError(err)
13588 }
13589 ret := &Operation{
13590 ServerResponse: googleapi.ServerResponse{
13591 Header: res.Header,
13592 HTTPStatusCode: res.StatusCode,
13593 },
13594 }
13595 target := &ret
13596 if err := gensupport.DecodeResponse(target, res); err != nil {
13597 return nil, err
13598 }
13599 return ret, nil
13600 }
13601
13602 type ProjectsLocationsSourcesGetCall struct {
13603 s *Service
13604 name string
13605 urlParams_ gensupport.URLParams
13606 ifNoneMatch_ string
13607 ctx_ context.Context
13608 header_ http.Header
13609 }
13610
13611
13612
13613
13614 func (r *ProjectsLocationsSourcesService) Get(name string) *ProjectsLocationsSourcesGetCall {
13615 c := &ProjectsLocationsSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13616 c.name = name
13617 return c
13618 }
13619
13620
13621
13622
13623 func (c *ProjectsLocationsSourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesGetCall {
13624 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13625 return c
13626 }
13627
13628
13629
13630
13631 func (c *ProjectsLocationsSourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesGetCall {
13632 c.ifNoneMatch_ = entityTag
13633 return c
13634 }
13635
13636
13637 func (c *ProjectsLocationsSourcesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesGetCall {
13638 c.ctx_ = ctx
13639 return c
13640 }
13641
13642
13643
13644 func (c *ProjectsLocationsSourcesGetCall) Header() http.Header {
13645 if c.header_ == nil {
13646 c.header_ = make(http.Header)
13647 }
13648 return c.header_
13649 }
13650
13651 func (c *ProjectsLocationsSourcesGetCall) doRequest(alt string) (*http.Response, error) {
13652 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13653 if c.ifNoneMatch_ != "" {
13654 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13655 }
13656 var body io.Reader = nil
13657 c.urlParams_.Set("alt", alt)
13658 c.urlParams_.Set("prettyPrint", "false")
13659 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
13660 urls += "?" + c.urlParams_.Encode()
13661 req, err := http.NewRequest("GET", urls, body)
13662 if err != nil {
13663 return nil, err
13664 }
13665 req.Header = reqHeaders
13666 googleapi.Expand(req.URL, map[string]string{
13667 "name": c.name,
13668 })
13669 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13670 }
13671
13672
13673
13674
13675
13676
13677 func (c *ProjectsLocationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, error) {
13678 gensupport.SetOptions(c.urlParams_, opts...)
13679 res, err := c.doRequest("json")
13680 if res != nil && res.StatusCode == http.StatusNotModified {
13681 if res.Body != nil {
13682 res.Body.Close()
13683 }
13684 return nil, gensupport.WrapError(&googleapi.Error{
13685 Code: res.StatusCode,
13686 Header: res.Header,
13687 })
13688 }
13689 if err != nil {
13690 return nil, err
13691 }
13692 defer googleapi.CloseBody(res)
13693 if err := googleapi.CheckResponse(res); err != nil {
13694 return nil, gensupport.WrapError(err)
13695 }
13696 ret := &Source{
13697 ServerResponse: googleapi.ServerResponse{
13698 Header: res.Header,
13699 HTTPStatusCode: res.StatusCode,
13700 },
13701 }
13702 target := &ret
13703 if err := gensupport.DecodeResponse(target, res); err != nil {
13704 return nil, err
13705 }
13706 return ret, nil
13707 }
13708
13709 type ProjectsLocationsSourcesListCall struct {
13710 s *Service
13711 parent string
13712 urlParams_ gensupport.URLParams
13713 ifNoneMatch_ string
13714 ctx_ context.Context
13715 header_ http.Header
13716 }
13717
13718
13719
13720
13721 func (r *ProjectsLocationsSourcesService) List(parent string) *ProjectsLocationsSourcesListCall {
13722 c := &ProjectsLocationsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13723 c.parent = parent
13724 return c
13725 }
13726
13727
13728 func (c *ProjectsLocationsSourcesListCall) Filter(filter string) *ProjectsLocationsSourcesListCall {
13729 c.urlParams_.Set("filter", filter)
13730 return c
13731 }
13732
13733
13734
13735 func (c *ProjectsLocationsSourcesListCall) OrderBy(orderBy string) *ProjectsLocationsSourcesListCall {
13736 c.urlParams_.Set("orderBy", orderBy)
13737 return c
13738 }
13739
13740
13741
13742
13743 func (c *ProjectsLocationsSourcesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesListCall {
13744 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13745 return c
13746 }
13747
13748
13749
13750 func (c *ProjectsLocationsSourcesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesListCall {
13751 c.urlParams_.Set("pageToken", pageToken)
13752 return c
13753 }
13754
13755
13756
13757
13758 func (c *ProjectsLocationsSourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesListCall {
13759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13760 return c
13761 }
13762
13763
13764
13765
13766 func (c *ProjectsLocationsSourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesListCall {
13767 c.ifNoneMatch_ = entityTag
13768 return c
13769 }
13770
13771
13772 func (c *ProjectsLocationsSourcesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesListCall {
13773 c.ctx_ = ctx
13774 return c
13775 }
13776
13777
13778
13779 func (c *ProjectsLocationsSourcesListCall) Header() http.Header {
13780 if c.header_ == nil {
13781 c.header_ = make(http.Header)
13782 }
13783 return c.header_
13784 }
13785
13786 func (c *ProjectsLocationsSourcesListCall) doRequest(alt string) (*http.Response, error) {
13787 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13788 if c.ifNoneMatch_ != "" {
13789 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13790 }
13791 var body io.Reader = nil
13792 c.urlParams_.Set("alt", alt)
13793 c.urlParams_.Set("prettyPrint", "false")
13794 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/sources")
13795 urls += "?" + c.urlParams_.Encode()
13796 req, err := http.NewRequest("GET", urls, body)
13797 if err != nil {
13798 return nil, err
13799 }
13800 req.Header = reqHeaders
13801 googleapi.Expand(req.URL, map[string]string{
13802 "parent": c.parent,
13803 })
13804 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13805 }
13806
13807
13808
13809
13810
13811
13812
13813 func (c *ProjectsLocationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error) {
13814 gensupport.SetOptions(c.urlParams_, opts...)
13815 res, err := c.doRequest("json")
13816 if res != nil && res.StatusCode == http.StatusNotModified {
13817 if res.Body != nil {
13818 res.Body.Close()
13819 }
13820 return nil, gensupport.WrapError(&googleapi.Error{
13821 Code: res.StatusCode,
13822 Header: res.Header,
13823 })
13824 }
13825 if err != nil {
13826 return nil, err
13827 }
13828 defer googleapi.CloseBody(res)
13829 if err := googleapi.CheckResponse(res); err != nil {
13830 return nil, gensupport.WrapError(err)
13831 }
13832 ret := &ListSourcesResponse{
13833 ServerResponse: googleapi.ServerResponse{
13834 Header: res.Header,
13835 HTTPStatusCode: res.StatusCode,
13836 },
13837 }
13838 target := &ret
13839 if err := gensupport.DecodeResponse(target, res); err != nil {
13840 return nil, err
13841 }
13842 return ret, nil
13843 }
13844
13845
13846
13847
13848 func (c *ProjectsLocationsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error {
13849 c.ctx_ = ctx
13850 defer c.PageToken(c.urlParams_.Get("pageToken"))
13851 for {
13852 x, err := c.Do()
13853 if err != nil {
13854 return err
13855 }
13856 if err := f(x); err != nil {
13857 return err
13858 }
13859 if x.NextPageToken == "" {
13860 return nil
13861 }
13862 c.PageToken(x.NextPageToken)
13863 }
13864 }
13865
13866 type ProjectsLocationsSourcesPatchCall struct {
13867 s *Service
13868 name string
13869 source *Source
13870 urlParams_ gensupport.URLParams
13871 ctx_ context.Context
13872 header_ http.Header
13873 }
13874
13875
13876
13877
13878 func (r *ProjectsLocationsSourcesService) Patch(name string, source *Source) *ProjectsLocationsSourcesPatchCall {
13879 c := &ProjectsLocationsSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13880 c.name = name
13881 c.source = source
13882 return c
13883 }
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896 func (c *ProjectsLocationsSourcesPatchCall) RequestId(requestId string) *ProjectsLocationsSourcesPatchCall {
13897 c.urlParams_.Set("requestId", requestId)
13898 return c
13899 }
13900
13901
13902
13903
13904
13905
13906 func (c *ProjectsLocationsSourcesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSourcesPatchCall {
13907 c.urlParams_.Set("updateMask", updateMask)
13908 return c
13909 }
13910
13911
13912
13913
13914 func (c *ProjectsLocationsSourcesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesPatchCall {
13915 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13916 return c
13917 }
13918
13919
13920 func (c *ProjectsLocationsSourcesPatchCall) Context(ctx context.Context) *ProjectsLocationsSourcesPatchCall {
13921 c.ctx_ = ctx
13922 return c
13923 }
13924
13925
13926
13927 func (c *ProjectsLocationsSourcesPatchCall) Header() http.Header {
13928 if c.header_ == nil {
13929 c.header_ = make(http.Header)
13930 }
13931 return c.header_
13932 }
13933
13934 func (c *ProjectsLocationsSourcesPatchCall) doRequest(alt string) (*http.Response, error) {
13935 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13936 var body io.Reader = nil
13937 body, err := googleapi.WithoutDataWrapper.JSONReader(c.source)
13938 if err != nil {
13939 return nil, err
13940 }
13941 c.urlParams_.Set("alt", alt)
13942 c.urlParams_.Set("prettyPrint", "false")
13943 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
13944 urls += "?" + c.urlParams_.Encode()
13945 req, err := http.NewRequest("PATCH", urls, body)
13946 if err != nil {
13947 return nil, err
13948 }
13949 req.Header = reqHeaders
13950 googleapi.Expand(req.URL, map[string]string{
13951 "name": c.name,
13952 })
13953 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13954 }
13955
13956
13957
13958
13959
13960
13961 func (c *ProjectsLocationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
13962 gensupport.SetOptions(c.urlParams_, opts...)
13963 res, err := c.doRequest("json")
13964 if res != nil && res.StatusCode == http.StatusNotModified {
13965 if res.Body != nil {
13966 res.Body.Close()
13967 }
13968 return nil, gensupport.WrapError(&googleapi.Error{
13969 Code: res.StatusCode,
13970 Header: res.Header,
13971 })
13972 }
13973 if err != nil {
13974 return nil, err
13975 }
13976 defer googleapi.CloseBody(res)
13977 if err := googleapi.CheckResponse(res); err != nil {
13978 return nil, gensupport.WrapError(err)
13979 }
13980 ret := &Operation{
13981 ServerResponse: googleapi.ServerResponse{
13982 Header: res.Header,
13983 HTTPStatusCode: res.StatusCode,
13984 },
13985 }
13986 target := &ret
13987 if err := gensupport.DecodeResponse(target, res); err != nil {
13988 return nil, err
13989 }
13990 return ret, nil
13991 }
13992
13993 type ProjectsLocationsSourcesErrorFramesGetCall struct {
13994 s *Service
13995 name string
13996 urlParams_ gensupport.URLParams
13997 ifNoneMatch_ string
13998 ctx_ context.Context
13999 header_ http.Header
14000 }
14001
14002
14003
14004
14005
14006
14007 func (r *ProjectsLocationsSourcesErrorFramesService) Get(name string) *ProjectsLocationsSourcesErrorFramesGetCall {
14008 c := &ProjectsLocationsSourcesErrorFramesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14009 c.name = name
14010 return c
14011 }
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027 func (c *ProjectsLocationsSourcesErrorFramesGetCall) View(view string) *ProjectsLocationsSourcesErrorFramesGetCall {
14028 c.urlParams_.Set("view", view)
14029 return c
14030 }
14031
14032
14033
14034
14035 func (c *ProjectsLocationsSourcesErrorFramesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesErrorFramesGetCall {
14036 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14037 return c
14038 }
14039
14040
14041
14042
14043 func (c *ProjectsLocationsSourcesErrorFramesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesErrorFramesGetCall {
14044 c.ifNoneMatch_ = entityTag
14045 return c
14046 }
14047
14048
14049 func (c *ProjectsLocationsSourcesErrorFramesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesErrorFramesGetCall {
14050 c.ctx_ = ctx
14051 return c
14052 }
14053
14054
14055
14056 func (c *ProjectsLocationsSourcesErrorFramesGetCall) Header() http.Header {
14057 if c.header_ == nil {
14058 c.header_ = make(http.Header)
14059 }
14060 return c.header_
14061 }
14062
14063 func (c *ProjectsLocationsSourcesErrorFramesGetCall) doRequest(alt string) (*http.Response, error) {
14064 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14065 if c.ifNoneMatch_ != "" {
14066 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14067 }
14068 var body io.Reader = nil
14069 c.urlParams_.Set("alt", alt)
14070 c.urlParams_.Set("prettyPrint", "false")
14071 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
14072 urls += "?" + c.urlParams_.Encode()
14073 req, err := http.NewRequest("GET", urls, body)
14074 if err != nil {
14075 return nil, err
14076 }
14077 req.Header = reqHeaders
14078 googleapi.Expand(req.URL, map[string]string{
14079 "name": c.name,
14080 })
14081 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14082 }
14083
14084
14085
14086
14087
14088
14089 func (c *ProjectsLocationsSourcesErrorFramesGetCall) Do(opts ...googleapi.CallOption) (*ErrorFrame, error) {
14090 gensupport.SetOptions(c.urlParams_, opts...)
14091 res, err := c.doRequest("json")
14092 if res != nil && res.StatusCode == http.StatusNotModified {
14093 if res.Body != nil {
14094 res.Body.Close()
14095 }
14096 return nil, gensupport.WrapError(&googleapi.Error{
14097 Code: res.StatusCode,
14098 Header: res.Header,
14099 })
14100 }
14101 if err != nil {
14102 return nil, err
14103 }
14104 defer googleapi.CloseBody(res)
14105 if err := googleapi.CheckResponse(res); err != nil {
14106 return nil, gensupport.WrapError(err)
14107 }
14108 ret := &ErrorFrame{
14109 ServerResponse: googleapi.ServerResponse{
14110 Header: res.Header,
14111 HTTPStatusCode: res.StatusCode,
14112 },
14113 }
14114 target := &ret
14115 if err := gensupport.DecodeResponse(target, res); err != nil {
14116 return nil, err
14117 }
14118 return ret, nil
14119 }
14120
14121 type ProjectsLocationsSourcesErrorFramesListCall struct {
14122 s *Service
14123 parent string
14124 urlParams_ gensupport.URLParams
14125 ifNoneMatch_ string
14126 ctx_ context.Context
14127 header_ http.Header
14128 }
14129
14130
14131
14132
14133 func (r *ProjectsLocationsSourcesErrorFramesService) List(parent string) *ProjectsLocationsSourcesErrorFramesListCall {
14134 c := &ProjectsLocationsSourcesErrorFramesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14135 c.parent = parent
14136 return c
14137 }
14138
14139
14140
14141
14142 func (c *ProjectsLocationsSourcesErrorFramesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesErrorFramesListCall {
14143 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14144 return c
14145 }
14146
14147
14148
14149 func (c *ProjectsLocationsSourcesErrorFramesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesErrorFramesListCall {
14150 c.urlParams_.Set("pageToken", pageToken)
14151 return c
14152 }
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168 func (c *ProjectsLocationsSourcesErrorFramesListCall) View(view string) *ProjectsLocationsSourcesErrorFramesListCall {
14169 c.urlParams_.Set("view", view)
14170 return c
14171 }
14172
14173
14174
14175
14176 func (c *ProjectsLocationsSourcesErrorFramesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesErrorFramesListCall {
14177 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14178 return c
14179 }
14180
14181
14182
14183
14184 func (c *ProjectsLocationsSourcesErrorFramesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesErrorFramesListCall {
14185 c.ifNoneMatch_ = entityTag
14186 return c
14187 }
14188
14189
14190 func (c *ProjectsLocationsSourcesErrorFramesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesErrorFramesListCall {
14191 c.ctx_ = ctx
14192 return c
14193 }
14194
14195
14196
14197 func (c *ProjectsLocationsSourcesErrorFramesListCall) Header() http.Header {
14198 if c.header_ == nil {
14199 c.header_ = make(http.Header)
14200 }
14201 return c.header_
14202 }
14203
14204 func (c *ProjectsLocationsSourcesErrorFramesListCall) doRequest(alt string) (*http.Response, error) {
14205 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14206 if c.ifNoneMatch_ != "" {
14207 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14208 }
14209 var body io.Reader = nil
14210 c.urlParams_.Set("alt", alt)
14211 c.urlParams_.Set("prettyPrint", "false")
14212 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/errorFrames")
14213 urls += "?" + c.urlParams_.Encode()
14214 req, err := http.NewRequest("GET", urls, body)
14215 if err != nil {
14216 return nil, err
14217 }
14218 req.Header = reqHeaders
14219 googleapi.Expand(req.URL, map[string]string{
14220 "parent": c.parent,
14221 })
14222 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14223 }
14224
14225
14226
14227
14228
14229
14230
14231 func (c *ProjectsLocationsSourcesErrorFramesListCall) Do(opts ...googleapi.CallOption) (*ListErrorFramesResponse, error) {
14232 gensupport.SetOptions(c.urlParams_, opts...)
14233 res, err := c.doRequest("json")
14234 if res != nil && res.StatusCode == http.StatusNotModified {
14235 if res.Body != nil {
14236 res.Body.Close()
14237 }
14238 return nil, gensupport.WrapError(&googleapi.Error{
14239 Code: res.StatusCode,
14240 Header: res.Header,
14241 })
14242 }
14243 if err != nil {
14244 return nil, err
14245 }
14246 defer googleapi.CloseBody(res)
14247 if err := googleapi.CheckResponse(res); err != nil {
14248 return nil, gensupport.WrapError(err)
14249 }
14250 ret := &ListErrorFramesResponse{
14251 ServerResponse: googleapi.ServerResponse{
14252 Header: res.Header,
14253 HTTPStatusCode: res.StatusCode,
14254 },
14255 }
14256 target := &ret
14257 if err := gensupport.DecodeResponse(target, res); err != nil {
14258 return nil, err
14259 }
14260 return ret, nil
14261 }
14262
14263
14264
14265
14266 func (c *ProjectsLocationsSourcesErrorFramesListCall) Pages(ctx context.Context, f func(*ListErrorFramesResponse) error) error {
14267 c.ctx_ = ctx
14268 defer c.PageToken(c.urlParams_.Get("pageToken"))
14269 for {
14270 x, err := c.Do()
14271 if err != nil {
14272 return err
14273 }
14274 if err := f(x); err != nil {
14275 return err
14276 }
14277 if x.NextPageToken == "" {
14278 return nil
14279 }
14280 c.PageToken(x.NextPageToken)
14281 }
14282 }
14283
View as plain text