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