...

Source file src/google.golang.org/api/chromemanagement/v1/chromemanagement-gen.go

Documentation: google.golang.org/api/chromemanagement/v1

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package chromemanagement provides access to the Chrome Management API.
     8  //
     9  // For product documentation, see: http://developers.google.com/chrome/management/
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/chromemanagement/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	chromemanagementService, err := chromemanagement.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // By default, all available scopes (see "Constants") are used to authenticate.
    38  // To restrict scopes, use [google.golang.org/api/option.WithScopes]:
    39  //
    40  //	chromemanagementService, err := chromemanagement.NewService(ctx, option.WithScopes(chromemanagement.ChromeManagementTelemetryReadonlyScope))
    41  //
    42  // To use an API key for authentication (note: some APIs do not support API
    43  // keys), use [google.golang.org/api/option.WithAPIKey]:
    44  //
    45  //	chromemanagementService, err := chromemanagement.NewService(ctx, option.WithAPIKey("AIza..."))
    46  //
    47  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    48  // flow, use [google.golang.org/api/option.WithTokenSource]:
    49  //
    50  //	config := &oauth2.Config{...}
    51  //	// ...
    52  //	token, err := config.Exchange(ctx, ...)
    53  //	chromemanagementService, err := chromemanagement.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    54  //
    55  // See [google.golang.org/api/option.ClientOption] for details on options.
    56  package chromemanagement // import "google.golang.org/api/chromemanagement/v1"
    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  // Always reference these packages, just in case the auto-generated code
    79  // below doesn't.
    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  // OAuth2 scopes used by this API.
   102  const (
   103  	// See detailed information about apps installed on Chrome browsers and devices
   104  	// managed by your organization
   105  	ChromeManagementAppdetailsReadonlyScope = "https://www.googleapis.com/auth/chrome.management.appdetails.readonly"
   106  
   107  	// See reports about devices and Chrome browsers managed within your
   108  	// organization
   109  	ChromeManagementReportsReadonlyScope = "https://www.googleapis.com/auth/chrome.management.reports.readonly"
   110  
   111  	// See basic device and telemetry information collected from Chrome OS devices
   112  	// or users managed within your organization
   113  	ChromeManagementTelemetryReadonlyScope = "https://www.googleapis.com/auth/chrome.management.telemetry.readonly"
   114  )
   115  
   116  // NewService creates a new Service.
   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  	// NOTE: prepend, so we don't override user-specified scopes.
   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  // New creates a new Service. It uses the provided http.Client for requests.
   144  //
   145  // Deprecated: please use NewService instead.
   146  // To provide a custom HTTP client, use option.WithHTTPClient.
   147  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   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 // API endpoint base URL
   160  	UserAgent string // optional additional User-Agent fragment
   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  // GoogleChromeManagementV1AndroidAppInfo: Android app information.
   302  type GoogleChromeManagementV1AndroidAppInfo struct {
   303  	// Permissions: Output only. Permissions requested by an Android app.
   304  	Permissions []*GoogleChromeManagementV1AndroidAppPermission `json:"permissions,omitempty"`
   305  	// ForceSendFields is a list of field names (e.g. "Permissions") to
   306  	// unconditionally include in API requests. By default, fields with empty or
   307  	// default values are omitted from API requests. See
   308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   309  	// details.
   310  	ForceSendFields []string `json:"-"`
   311  	// NullFields is a list of field names (e.g. "Permissions") to include in API
   312  	// requests with the JSON null value. By default, fields with empty values are
   313  	// omitted from API requests. See
   314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1AndroidAppPermission: Permission requested by an
   324  // Android app.
   325  type GoogleChromeManagementV1AndroidAppPermission struct {
   326  	// Type: Output only. The type of the permission.
   327  	Type string `json:"type,omitempty"`
   328  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
   329  	// include in API requests. By default, fields with empty or default values are
   330  	// omitted from API requests. See
   331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   332  	// details.
   333  	ForceSendFields []string `json:"-"`
   334  	// NullFields is a list of field names (e.g. "Type") to include in API requests
   335  	// with the JSON null value. By default, fields with empty values are omitted
   336  	// from API requests. See
   337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1AppDetails: Resource representing app details.
   347  type GoogleChromeManagementV1AppDetails struct {
   348  	// AndroidAppInfo: Output only. Android app information.
   349  	AndroidAppInfo *GoogleChromeManagementV1AndroidAppInfo `json:"androidAppInfo,omitempty"`
   350  	// AppId: Output only. Unique store identifier for the item. Examples:
   351  	// "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome
   352  	// extension, "com.google.android.apps.docs" for the Google Drive Android app.
   353  	AppId string `json:"appId,omitempty"`
   354  	// ChromeAppInfo: Output only. Chrome Web Store app information.
   355  	ChromeAppInfo *GoogleChromeManagementV1ChromeAppInfo `json:"chromeAppInfo,omitempty"`
   356  	// Description: Output only. App's description.
   357  	Description string `json:"description,omitempty"`
   358  	// DetailUri: Output only. The uri for the detail page of the item.
   359  	DetailUri string `json:"detailUri,omitempty"`
   360  	// DisplayName: Output only. App's display name.
   361  	DisplayName string `json:"displayName,omitempty"`
   362  	// FirstPublishTime: Output only. First published time.
   363  	FirstPublishTime string `json:"firstPublishTime,omitempty"`
   364  	// HomepageUri: Output only. Home page or Website uri.
   365  	HomepageUri string `json:"homepageUri,omitempty"`
   366  	// IconUri: Output only. A link to an image that can be used as an icon for the
   367  	// product.
   368  	IconUri string `json:"iconUri,omitempty"`
   369  	// IsPaidApp: Output only. Indicates if the app has to be paid for OR has paid
   370  	// content.
   371  	IsPaidApp bool `json:"isPaidApp,omitempty"`
   372  	// LatestPublishTime: Output only. Latest published time.
   373  	LatestPublishTime string `json:"latestPublishTime,omitempty"`
   374  	// Name: Output only. Format:
   375  	// name=customers/{customer_id}/apps/{chrome|android|web}/{app_id}@{version}
   376  	Name string `json:"name,omitempty"`
   377  	// PrivacyPolicyUri: Output only. The URI pointing to the privacy policy of the
   378  	// app, if it was provided by the developer. Version-specific field that will
   379  	// only be set when the requested app version is found.
   380  	PrivacyPolicyUri string `json:"privacyPolicyUri,omitempty"`
   381  	// Publisher: Output only. The publisher of the item.
   382  	Publisher string `json:"publisher,omitempty"`
   383  	// ReviewNumber: Output only. Number of reviews received. Chrome Web Store
   384  	// review information will always be for the latest version of an app.
   385  	ReviewNumber int64 `json:"reviewNumber,omitempty,string"`
   386  	// ReviewRating: Output only. The rating of the app (on 5 stars). Chrome Web
   387  	// Store review information will always be for the latest version of an app.
   388  	ReviewRating float64 `json:"reviewRating,omitempty"`
   389  	// RevisionId: Output only. App version. A new revision is committed whenever a
   390  	// new version of the app is published.
   391  	RevisionId string `json:"revisionId,omitempty"`
   392  	// ServiceError: Output only. Information about a partial service error if
   393  	// applicable.
   394  	ServiceError *GoogleRpcStatus `json:"serviceError,omitempty"`
   395  	// Type: Output only. App type.
   396  	//
   397  	// Possible values:
   398  	//   "APP_ITEM_TYPE_UNSPECIFIED" - App type unspecified.
   399  	//   "CHROME" - Chrome app.
   400  	//   "ANDROID" - ARC++ app.
   401  	//   "WEB" - Web app.
   402  	Type string `json:"type,omitempty"`
   403  
   404  	// ServerResponse contains the HTTP response code and headers from the server.
   405  	googleapi.ServerResponse `json:"-"`
   406  	// ForceSendFields is a list of field names (e.g. "AndroidAppInfo") to
   407  	// unconditionally include in API requests. By default, fields with empty or
   408  	// default values are omitted from API requests. See
   409  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   410  	// details.
   411  	ForceSendFields []string `json:"-"`
   412  	// NullFields is a list of field names (e.g. "AndroidAppInfo") to include in
   413  	// API requests with the JSON null value. By default, fields with empty values
   414  	// are omitted from API requests. See
   415  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1AudioStatusReport: Status data for storage. * This
   439  // field is telemetry information and this will change over time as the device
   440  // is utilized. * Data for this field is controlled via policy:
   441  // ReportDeviceAudioStatus
   442  // (https://chromeenterprise.google/policies/#ReportDeviceAudioStatus) * Data
   443  // Collection Frequency: 10 minutes * Default Data Reporting Frequency: 3 hours
   444  // - Policy Controlled: Yes * Cache: If the device is offline, the collected
   445  // data is stored locally, and will be reported when the device is next online:
   446  // No * Reported for affiliated users only: N/A * Granular permission needed:
   447  // TELEMETRY_API_AUDIO_REPORT
   448  type GoogleChromeManagementV1AudioStatusReport struct {
   449  	// InputDevice: Output only. Active input device's name.
   450  	InputDevice string `json:"inputDevice,omitempty"`
   451  	// InputGain: Output only. Active input device's gain in [0, 100].
   452  	InputGain int64 `json:"inputGain,omitempty"`
   453  	// InputMute: Output only. Is active input device mute or not.
   454  	InputMute bool `json:"inputMute,omitempty"`
   455  	// OutputDevice: Output only. Active output device's name.
   456  	OutputDevice string `json:"outputDevice,omitempty"`
   457  	// OutputMute: Output only. Is active output device mute or not.
   458  	OutputMute bool `json:"outputMute,omitempty"`
   459  	// OutputVolume: Output only. Active output device's volume in [0, 100].
   460  	OutputVolume int64 `json:"outputVolume,omitempty"`
   461  	// ReportTime: Output only. Timestamp of when the sample was collected on
   462  	// device.
   463  	ReportTime string `json:"reportTime,omitempty"`
   464  	// ForceSendFields is a list of field names (e.g. "InputDevice") to
   465  	// unconditionally include in API requests. By default, fields with empty or
   466  	// default values are omitted from API requests. See
   467  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   468  	// details.
   469  	ForceSendFields []string `json:"-"`
   470  	// NullFields is a list of field names (e.g. "InputDevice") to include in API
   471  	// requests with the JSON null value. By default, fields with empty values are
   472  	// omitted from API requests. See
   473  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1BatteryInfo: Information about the battery. * This
   483  // field provides device information, which is static and will not change over
   484  // time. * Data for this field is controlled via policy:
   485  // ReportDevicePowerStatus
   486  // (https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data
   487  // Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3
   488  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
   489  // collected data is stored locally, and will be reported when the device is
   490  // next online: No * Reported for affiliated users only: N/A * Granular
   491  // permission needed: TELEMETRY_API_BATTERY_INFO
   492  type GoogleChromeManagementV1BatteryInfo struct {
   493  	// DesignCapacity: Output only. Design capacity (mAmpere-hours).
   494  	DesignCapacity int64 `json:"designCapacity,omitempty,string"`
   495  	// DesignMinVoltage: Output only. Designed minimum output voltage (mV)
   496  	DesignMinVoltage int64 `json:"designMinVoltage,omitempty"`
   497  	// ManufactureDate: Output only. The date the battery was manufactured.
   498  	ManufactureDate *GoogleTypeDate `json:"manufactureDate,omitempty"`
   499  	// Manufacturer: Output only. Battery manufacturer.
   500  	Manufacturer string `json:"manufacturer,omitempty"`
   501  	// SerialNumber: Output only. Battery serial number.
   502  	SerialNumber string `json:"serialNumber,omitempty"`
   503  	// Technology: Output only. Technology of the battery. Example: Li-ion
   504  	Technology string `json:"technology,omitempty"`
   505  	// ForceSendFields is a list of field names (e.g. "DesignCapacity") to
   506  	// unconditionally include in API requests. By default, fields with empty or
   507  	// default values are omitted from API requests. See
   508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   509  	// details.
   510  	ForceSendFields []string `json:"-"`
   511  	// NullFields is a list of field names (e.g. "DesignCapacity") to include in
   512  	// API requests with the JSON null value. By default, fields with empty values
   513  	// are omitted from API requests. See
   514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1BatterySampleReport: Sampling data for battery. *
   524  // This field is telemetry information and this will change over time as the
   525  // device is utilized. * Data for this field is controlled via policy:
   526  // ReportDevicePowerStatus
   527  // (https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data
   528  // Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3
   529  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
   530  // collected data is stored locally, and will be reported when the device is
   531  // next online: No * Reported for affiliated users only: N/A
   532  type GoogleChromeManagementV1BatterySampleReport struct {
   533  	// ChargeRate: Output only. Battery charge percentage.
   534  	ChargeRate int64 `json:"chargeRate,omitempty"`
   535  	// Current: Output only. Battery current (mA).
   536  	Current int64 `json:"current,omitempty,string"`
   537  	// DischargeRate: Output only. The battery discharge rate measured in mW.
   538  	// Positive if the battery is being discharged, negative if it's being charged.
   539  	DischargeRate int64 `json:"dischargeRate,omitempty"`
   540  	// RemainingCapacity: Output only. Battery remaining capacity (mAmpere-hours).
   541  	RemainingCapacity int64 `json:"remainingCapacity,omitempty,string"`
   542  	// ReportTime: Output only. Timestamp of when the sample was collected on
   543  	// device
   544  	ReportTime string `json:"reportTime,omitempty"`
   545  	// Status: Output only. Battery status read from sysfs. Example: Discharging
   546  	Status string `json:"status,omitempty"`
   547  	// Temperature: Output only. Temperature in Celsius degrees.
   548  	Temperature int64 `json:"temperature,omitempty"`
   549  	// Voltage: Output only. Battery voltage (millivolt).
   550  	Voltage int64 `json:"voltage,omitempty,string"`
   551  	// ForceSendFields is a list of field names (e.g. "ChargeRate") to
   552  	// unconditionally include in API requests. By default, fields with empty or
   553  	// default values are omitted from API requests. See
   554  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   555  	// details.
   556  	ForceSendFields []string `json:"-"`
   557  	// NullFields is a list of field names (e.g. "ChargeRate") to include in API
   558  	// requests with the JSON null value. By default, fields with empty values are
   559  	// omitted from API requests. See
   560  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1BatteryStatusReport: Status data for battery. * This
   570  // field is telemetry information and this will change over time as the device
   571  // is utilized. * Data for this field is controlled via policy:
   572  // ReportDevicePowerStatus
   573  // (https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data
   574  // Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3
   575  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
   576  // collected data is stored locally, and will be reported when the device is
   577  // next online: No * Reported for affiliated users only: N/A * Granular
   578  // permission needed: TELEMETRY_API_BATTERY_REPORT
   579  type GoogleChromeManagementV1BatteryStatusReport struct {
   580  	// BatteryHealth: Output only. Battery health.
   581  	//
   582  	// Possible values:
   583  	//   "BATTERY_HEALTH_UNSPECIFIED" - Health unknown.
   584  	//   "BATTERY_HEALTH_NORMAL" - Battery is healthy, full charge capacity /
   585  	// design capacity > 80%
   586  	//   "BATTERY_REPLACE_SOON" - Battery is moderately unhealthy and suggested to
   587  	// be replaced soon, full charge capacity / design capacity 75% - 80%
   588  	//   "BATTERY_REPLACE_NOW" - Battery is unhealthy and suggested to be replaced,
   589  	// full charge capacity / design capacity < 75%
   590  	BatteryHealth string `json:"batteryHealth,omitempty"`
   591  	// CycleCount: Output only. Cycle count.
   592  	CycleCount int64 `json:"cycleCount,omitempty"`
   593  	// FullChargeCapacity: Output only. Full charge capacity (mAmpere-hours).
   594  	FullChargeCapacity int64 `json:"fullChargeCapacity,omitempty,string"`
   595  	// ReportTime: Output only. Timestamp of when the sample was collected on
   596  	// device
   597  	ReportTime string `json:"reportTime,omitempty"`
   598  	// Sample: Output only. Sampling data for the battery sorted in a decreasing
   599  	// order of report_time.
   600  	Sample []*GoogleChromeManagementV1BatterySampleReport `json:"sample,omitempty"`
   601  	// SerialNumber: Output only. Battery serial number.
   602  	SerialNumber string `json:"serialNumber,omitempty"`
   603  	// ForceSendFields is a list of field names (e.g. "BatteryHealth") to
   604  	// unconditionally include in API requests. By default, fields with empty or
   605  	// default values are omitted from API requests. See
   606  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   607  	// details.
   608  	ForceSendFields []string `json:"-"`
   609  	// NullFields is a list of field names (e.g. "BatteryHealth") to include in API
   610  	// requests with the JSON null value. By default, fields with empty values are
   611  	// omitted from API requests. See
   612  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1BootPerformanceReport: Boot performance report of a
   622  // device. * This field is telemetry information and this will change over time
   623  // as the device is utilized. * Data for this field is controlled via policy:
   624  // ReportDeviceBootMode
   625  // (https://chromeenterprise.google/policies/#ReportDeviceBootMode) * Data
   626  // Collection Frequency: On every boot up event * Default Data Reporting
   627  // Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is
   628  // offline, the collected data is stored locally, and will be reported when the
   629  // device is next online: Yes * Reported for affiliated users only: N/A *
   630  // Granular permission needed: TELEMETRY_API_OS_REPORT
   631  type GoogleChromeManagementV1BootPerformanceReport struct {
   632  	// BootUpDuration: Total time to boot up.
   633  	BootUpDuration string `json:"bootUpDuration,omitempty"`
   634  	// BootUpTime: The timestamp when power came on.
   635  	BootUpTime string `json:"bootUpTime,omitempty"`
   636  	// ReportTime: Timestamp when the report was collected.
   637  	ReportTime string `json:"reportTime,omitempty"`
   638  	// ShutdownDuration: Total time since shutdown start to power off.
   639  	ShutdownDuration string `json:"shutdownDuration,omitempty"`
   640  	// ShutdownReason: The shutdown reason.
   641  	//
   642  	// Possible values:
   643  	//   "SHUTDOWN_REASON_UNSPECIFIED" - Shutdown reason is not specified.
   644  	//   "USER_REQUEST" - User initiated.
   645  	//   "SYSTEM_UPDATE" - System update initiated.
   646  	//   "LOW_BATTERY" - Shutdown due to low battery.
   647  	//   "OTHER" - Shutdown due to other reasons.
   648  	ShutdownReason string `json:"shutdownReason,omitempty"`
   649  	// ShutdownTime: The timestamp when shutdown.
   650  	ShutdownTime string `json:"shutdownTime,omitempty"`
   651  	// ForceSendFields is a list of field names (e.g. "BootUpDuration") to
   652  	// unconditionally include in API requests. By default, fields with empty or
   653  	// default values are omitted from API requests. See
   654  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   655  	// details.
   656  	ForceSendFields []string `json:"-"`
   657  	// NullFields is a list of field names (e.g. "BootUpDuration") to include in
   658  	// API requests with the JSON null value. By default, fields with empty values
   659  	// are omitted from API requests. See
   660  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1BrowserVersion: Describes a browser version and its
   670  // install count.
   671  type GoogleChromeManagementV1BrowserVersion struct {
   672  	// Channel: Output only. The release channel of the installed browser.
   673  	//
   674  	// Possible values:
   675  	//   "RELEASE_CHANNEL_UNSPECIFIED" - No release channel specified.
   676  	//   "CANARY" - Canary release channel.
   677  	//   "DEV" - Dev release channel.
   678  	//   "BETA" - Beta release channel.
   679  	//   "STABLE" - Stable release channel.
   680  	Channel string `json:"channel,omitempty"`
   681  	// Count: Output only. Count grouped by device_system and major version
   682  	Count int64 `json:"count,omitempty,string"`
   683  	// DeviceOsVersion: Output only. Version of the system-specified operating
   684  	// system.
   685  	DeviceOsVersion string `json:"deviceOsVersion,omitempty"`
   686  	// System: Output only. The device operating system.
   687  	//
   688  	// Possible values:
   689  	//   "DEVICE_SYSTEM_UNSPECIFIED" - No operating system specified.
   690  	//   "SYSTEM_OTHER" - Other operating system.
   691  	//   "SYSTEM_ANDROID" - Android operating system.
   692  	//   "SYSTEM_IOS" - Apple iOS operating system.
   693  	//   "SYSTEM_CROS" - ChromeOS operating system.
   694  	//   "SYSTEM_WINDOWS" - Microsoft Windows operating system.
   695  	//   "SYSTEM_MAC" - Apple macOS operating system.
   696  	//   "SYSTEM_LINUX" - Linux operating system.
   697  	System string `json:"system,omitempty"`
   698  	// Version: Output only. The full version of the installed browser.
   699  	Version string `json:"version,omitempty"`
   700  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
   701  	// include in API requests. By default, fields with empty or default values are
   702  	// omitted from API requests. See
   703  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   704  	// details.
   705  	ForceSendFields []string `json:"-"`
   706  	// NullFields is a list of field names (e.g. "Channel") to include in API
   707  	// requests with the JSON null value. By default, fields with empty values are
   708  	// omitted from API requests. See
   709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1ChromeAppInfo: Chrome Web Store app information.
   719  type GoogleChromeManagementV1ChromeAppInfo struct {
   720  	// GoogleOwned: Output only. Whether the app or extension is built and
   721  	// maintained by Google. Version-specific field that will only be set when the
   722  	// requested app version is found.
   723  	GoogleOwned bool `json:"googleOwned,omitempty"`
   724  	// IsCwsHosted: Output only. Whether the app or extension is in a published
   725  	// state in the Chrome Web Store.
   726  	IsCwsHosted bool `json:"isCwsHosted,omitempty"`
   727  	// IsExtensionPolicySupported: Output only. Whether an app supports policy for
   728  	// extensions.
   729  	IsExtensionPolicySupported bool `json:"isExtensionPolicySupported,omitempty"`
   730  	// IsKioskOnly: Output only. Whether the app is only for Kiosk mode on ChromeOS
   731  	// devices
   732  	IsKioskOnly bool `json:"isKioskOnly,omitempty"`
   733  	// IsTheme: Output only. Whether the app or extension is a theme.
   734  	IsTheme bool `json:"isTheme,omitempty"`
   735  	// KioskEnabled: Output only. Whether this app is enabled for Kiosk mode on
   736  	// ChromeOS devices
   737  	KioskEnabled bool `json:"kioskEnabled,omitempty"`
   738  	// MinUserCount: Output only. The minimum number of users using this app.
   739  	MinUserCount int64 `json:"minUserCount,omitempty"`
   740  	// Permissions: Output only. Every custom permission requested by the app.
   741  	// Version-specific field that will only be set when the requested app version
   742  	// is found.
   743  	Permissions []*GoogleChromeManagementV1ChromeAppPermission `json:"permissions,omitempty"`
   744  	// SiteAccess: Output only. Every permission giving access to domains or broad
   745  	// host patterns. ( e.g. www.google.com). This includes the matches from
   746  	// content scripts as well as hosts in the permissions node of the manifest.
   747  	// Version-specific field that will only be set when the requested app version
   748  	// is found.
   749  	SiteAccess []*GoogleChromeManagementV1ChromeAppSiteAccess `json:"siteAccess,omitempty"`
   750  	// SupportEnabled: Output only. The app developer has enabled support for their
   751  	// app. Version-specific field that will only be set when the requested app
   752  	// version is found.
   753  	SupportEnabled bool `json:"supportEnabled,omitempty"`
   754  	// Type: Output only. Types of an item in the Chrome Web Store
   755  	//
   756  	// Possible values:
   757  	//   "ITEM_TYPE_UNSPECIFIED" - Unspecified ItemType.
   758  	//   "EXTENSION" - Chrome Extensions.
   759  	//   "OTHERS" - Any other type than extension.
   760  	Type string `json:"type,omitempty"`
   761  	// ForceSendFields is a list of field names (e.g. "GoogleOwned") to
   762  	// unconditionally include in API requests. By default, fields with empty or
   763  	// default values are omitted from API requests. See
   764  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   765  	// details.
   766  	ForceSendFields []string `json:"-"`
   767  	// NullFields is a list of field names (e.g. "GoogleOwned") to include in API
   768  	// requests with the JSON null value. By default, fields with empty values are
   769  	// omitted from API requests. See
   770  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1ChromeAppPermission: Permission requested by a
   780  // Chrome app or extension.
   781  type GoogleChromeManagementV1ChromeAppPermission struct {
   782  	// AccessUserData: Output only. If available, whether this permissions grants
   783  	// the app/extension access to user data.
   784  	AccessUserData bool `json:"accessUserData,omitempty"`
   785  	// DocumentationUri: Output only. If available, a URI to a page that has
   786  	// documentation for the current permission.
   787  	DocumentationUri string `json:"documentationUri,omitempty"`
   788  	// Type: Output only. The type of the permission.
   789  	Type string `json:"type,omitempty"`
   790  	// ForceSendFields is a list of field names (e.g. "AccessUserData") to
   791  	// unconditionally include in API requests. By default, fields with empty or
   792  	// default values are omitted from API requests. See
   793  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   794  	// details.
   795  	ForceSendFields []string `json:"-"`
   796  	// NullFields is a list of field names (e.g. "AccessUserData") to include in
   797  	// API requests with the JSON null value. By default, fields with empty values
   798  	// are omitted from API requests. See
   799  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1ChromeAppRequest: Details of an app installation
   809  // request.
   810  type GoogleChromeManagementV1ChromeAppRequest struct {
   811  	// AppDetails: Output only. Format:
   812  	// app_details=customers/{customer_id}/apps/chrome/{app_id}
   813  	AppDetails string `json:"appDetails,omitempty"`
   814  	// AppId: Output only. Unique store identifier for the app. Example:
   815  	// "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome
   816  	// extension.
   817  	AppId string `json:"appId,omitempty"`
   818  	// DetailUri: Output only. The uri for the detail page of the item.
   819  	DetailUri string `json:"detailUri,omitempty"`
   820  	// DisplayName: Output only. App's display name.
   821  	DisplayName string `json:"displayName,omitempty"`
   822  	// IconUri: Output only. A link to an image that can be used as an icon for the
   823  	// product.
   824  	IconUri string `json:"iconUri,omitempty"`
   825  	// LatestRequestTime: Output only. The timestamp of the most recently made
   826  	// request for this app.
   827  	LatestRequestTime string `json:"latestRequestTime,omitempty"`
   828  	// RequestCount: Output only. Total count of requests for this app.
   829  	RequestCount int64 `json:"requestCount,omitempty,string"`
   830  	// ForceSendFields is a list of field names (e.g. "AppDetails") to
   831  	// unconditionally include in API requests. By default, fields with empty or
   832  	// default values are omitted from API requests. See
   833  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   834  	// details.
   835  	ForceSendFields []string `json:"-"`
   836  	// NullFields is a list of field names (e.g. "AppDetails") to include in API
   837  	// requests with the JSON null value. By default, fields with empty values are
   838  	// omitted from API requests. See
   839  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1ChromeAppSiteAccess: Represent one host permission.
   849  type GoogleChromeManagementV1ChromeAppSiteAccess struct {
   850  	// HostMatch: Output only. This can contain very specific hosts, or patterns
   851  	// like "*.com" for instance.
   852  	HostMatch string `json:"hostMatch,omitempty"`
   853  	// ForceSendFields is a list of field names (e.g. "HostMatch") to
   854  	// unconditionally include in API requests. By default, fields with empty or
   855  	// default values are omitted from API requests. See
   856  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   857  	// details.
   858  	ForceSendFields []string `json:"-"`
   859  	// NullFields is a list of field names (e.g. "HostMatch") to include in API
   860  	// requests with the JSON null value. By default, fields with empty values are
   861  	// omitted from API requests. See
   862  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1CountChromeAppRequestsResponse: Response containing
   872  // summary of requested app installations.
   873  type GoogleChromeManagementV1CountChromeAppRequestsResponse struct {
   874  	// NextPageToken: Token to specify the next page in the list.
   875  	NextPageToken string `json:"nextPageToken,omitempty"`
   876  	// RequestedApps: Count of requested apps matching request.
   877  	RequestedApps []*GoogleChromeManagementV1ChromeAppRequest `json:"requestedApps,omitempty"`
   878  	// TotalSize: Total number of matching app requests.
   879  	TotalSize int64 `json:"totalSize,omitempty"`
   880  
   881  	// ServerResponse contains the HTTP response code and headers from the server.
   882  	googleapi.ServerResponse `json:"-"`
   883  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   884  	// unconditionally include in API requests. By default, fields with empty or
   885  	// default values are omitted from API requests. See
   886  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   887  	// details.
   888  	ForceSendFields []string `json:"-"`
   889  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   890  	// requests with the JSON null value. By default, fields with empty values are
   891  	// omitted from API requests. See
   892  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse:
   902  // Response containing counts for browsers that need attention.
   903  type GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse struct {
   904  	// NoRecentActivityCount: Number of browsers that haven’t had any recent
   905  	// activity
   906  	NoRecentActivityCount int64 `json:"noRecentActivityCount,omitempty,string"`
   907  	// PendingBrowserUpdateCount: Number of browsers that are pending an OS update
   908  	PendingBrowserUpdateCount int64 `json:"pendingBrowserUpdateCount,omitempty,string"`
   909  	// RecentlyEnrolledCount: Number of browsers that have been recently enrolled
   910  	RecentlyEnrolledCount int64 `json:"recentlyEnrolledCount,omitempty,string"`
   911  
   912  	// ServerResponse contains the HTTP response code and headers from the server.
   913  	googleapi.ServerResponse `json:"-"`
   914  	// ForceSendFields is a list of field names (e.g. "NoRecentActivityCount") to
   915  	// unconditionally include in API requests. By default, fields with empty or
   916  	// default values are omitted from API requests. See
   917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   918  	// details.
   919  	ForceSendFields []string `json:"-"`
   920  	// NullFields is a list of field names (e.g. "NoRecentActivityCount") to
   921  	// include in API requests with the JSON null value. By default, fields with
   922  	// empty values are omitted from API requests. See
   923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1CountChromeCrashEventsResponse: Response contains a
   933  // list of CrashEventCountByVersionPerDay which count the chrome crash at the
   934  // certain date.
   935  type GoogleChromeManagementV1CountChromeCrashEventsResponse struct {
   936  	// CrashEventCounts: Crash event counts grouped by date and browser version.
   937  	CrashEventCounts []*GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount `json:"crashEventCounts,omitempty"`
   938  
   939  	// ServerResponse contains the HTTP response code and headers from the server.
   940  	googleapi.ServerResponse `json:"-"`
   941  	// ForceSendFields is a list of field names (e.g. "CrashEventCounts") to
   942  	// unconditionally include in API requests. By default, fields with empty or
   943  	// default values are omitted from API requests. See
   944  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   945  	// details.
   946  	ForceSendFields []string `json:"-"`
   947  	// NullFields is a list of field names (e.g. "CrashEventCounts") to include in
   948  	// API requests with the JSON null value. By default, fields with empty values
   949  	// are omitted from API requests. See
   950  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount: The
   960  // `count` of the Chrome crash events at the `date`.
   961  type GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount struct {
   962  	// BrowserVersion: Browser version this is counting.
   963  	BrowserVersion string `json:"browserVersion,omitempty"`
   964  	// Count: Total count of crash events.
   965  	Count int64 `json:"count,omitempty,string"`
   966  	// Date: Date of the crash event.
   967  	Date *GoogleTypeDate `json:"date,omitempty"`
   968  	// ForceSendFields is a list of field names (e.g. "BrowserVersion") to
   969  	// unconditionally include in API requests. By default, fields with empty or
   970  	// default values are omitted from API requests. See
   971  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   972  	// details.
   973  	ForceSendFields []string `json:"-"`
   974  	// NullFields is a list of field names (e.g. "BrowserVersion") to include in
   975  	// API requests with the JSON null value. By default, fields with empty values
   976  	// are omitted from API requests. See
   977  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   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  // GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse:
   987  //
   988  //	Response containing a list of devices expiring in each month of a selected
   989  //
   990  // time frame. Counts are grouped by model and Auto Update Expiration date.
   991  type GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse struct {
   992  	// DeviceAueCountReports: The list of reports sorted by auto update expiration
   993  	// date in ascending order.
   994  	DeviceAueCountReports []*GoogleChromeManagementV1DeviceAueCountReport `json:"deviceAueCountReports,omitempty"`
   995  
   996  	// ServerResponse contains the HTTP response code and headers from the server.
   997  	googleapi.ServerResponse `json:"-"`
   998  	// ForceSendFields is a list of field names (e.g. "DeviceAueCountReports") to
   999  	// unconditionally include in API requests. By default, fields with empty or
  1000  	// default values are omitted from API requests. See
  1001  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1002  	// details.
  1003  	ForceSendFields []string `json:"-"`
  1004  	// NullFields is a list of field names (e.g. "DeviceAueCountReports") to
  1005  	// include in API requests with the JSON null value. By default, fields with
  1006  	// empty values are omitted from API requests. See
  1007  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse:
  1017  // Response containing counts for devices that need attention.
  1018  type GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse struct {
  1019  	// NoRecentPolicySyncCount: Number of ChromeOS devices have not synced policies
  1020  	// in the past 28 days.
  1021  	NoRecentPolicySyncCount int64 `json:"noRecentPolicySyncCount,omitempty,string"`
  1022  	// NoRecentUserActivityCount: Number of ChromeOS devices that have not seen any
  1023  	// user activity in the past 28 days.
  1024  	NoRecentUserActivityCount int64 `json:"noRecentUserActivityCount,omitempty,string"`
  1025  	// OsVersionNotCompliantCount: Number of devices whose OS version is not
  1026  	// compliant.
  1027  	OsVersionNotCompliantCount int64 `json:"osVersionNotCompliantCount,omitempty,string"`
  1028  	// PendingUpdate: Number of devices that are pending an OS update.
  1029  	PendingUpdate int64 `json:"pendingUpdate,omitempty,string"`
  1030  	// UnsupportedPolicyCount: Number of devices that are unable to apply a policy
  1031  	// due to an OS version mismatch.
  1032  	UnsupportedPolicyCount int64 `json:"unsupportedPolicyCount,omitempty,string"`
  1033  
  1034  	// ServerResponse contains the HTTP response code and headers from the server.
  1035  	googleapi.ServerResponse `json:"-"`
  1036  	// ForceSendFields is a list of field names (e.g. "NoRecentPolicySyncCount") to
  1037  	// unconditionally include in API requests. By default, fields with empty or
  1038  	// default values are omitted from API requests. See
  1039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1040  	// details.
  1041  	ForceSendFields []string `json:"-"`
  1042  	// NullFields is a list of field names (e.g. "NoRecentPolicySyncCount") to
  1043  	// include in API requests with the JSON null value. By default, fields with
  1044  	// empty values are omitted from API requests. See
  1045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse: Response
  1055  // containing a list of devices with a specific type of hardware specification
  1056  // from the requested hardware type.
  1057  type GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse struct {
  1058  	// CpuReports: The DeviceHardwareCountReport for device cpu type (for example
  1059  	// Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz).
  1060  	CpuReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"cpuReports,omitempty"`
  1061  	// MemoryReports: The DeviceHardwareCountReport for device memory amount in
  1062  	// gigabytes (for example 16).
  1063  	MemoryReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"memoryReports,omitempty"`
  1064  	// ModelReports: The DeviceHardwareCountReport for device model type (for
  1065  	// example Acer C7 Chromebook).
  1066  	ModelReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"modelReports,omitempty"`
  1067  	// StorageReports: The DeviceHardwareCountReport for device storage amount in
  1068  	// gigabytes (for example 128).
  1069  	StorageReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"storageReports,omitempty"`
  1070  
  1071  	// ServerResponse contains the HTTP response code and headers from the server.
  1072  	googleapi.ServerResponse `json:"-"`
  1073  	// ForceSendFields is a list of field names (e.g. "CpuReports") to
  1074  	// unconditionally include in API requests. By default, fields with empty or
  1075  	// default values are omitted from API requests. See
  1076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1077  	// details.
  1078  	ForceSendFields []string `json:"-"`
  1079  	// NullFields is a list of field names (e.g. "CpuReports") to include in API
  1080  	// requests with the JSON null value. By default, fields with empty values are
  1081  	// omitted from API requests. See
  1082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CountChromeVersionsResponse: Response containing
  1092  // requested browser versions details and counts.
  1093  type GoogleChromeManagementV1CountChromeVersionsResponse struct {
  1094  	// BrowserVersions: List of all browser versions and their install counts.
  1095  	BrowserVersions []*GoogleChromeManagementV1BrowserVersion `json:"browserVersions,omitempty"`
  1096  	// NextPageToken: Token to specify the next page of the request.
  1097  	NextPageToken string `json:"nextPageToken,omitempty"`
  1098  	// TotalSize: Total number browser versions matching request.
  1099  	TotalSize int64 `json:"totalSize,omitempty"`
  1100  
  1101  	// ServerResponse contains the HTTP response code and headers from the server.
  1102  	googleapi.ServerResponse `json:"-"`
  1103  	// ForceSendFields is a list of field names (e.g. "BrowserVersions") to
  1104  	// unconditionally include in API requests. By default, fields with empty or
  1105  	// default values are omitted from API requests. See
  1106  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1107  	// details.
  1108  	ForceSendFields []string `json:"-"`
  1109  	// NullFields is a list of field names (e.g. "BrowserVersions") to include in
  1110  	// API requests with the JSON null value. By default, fields with empty values
  1111  	// are omitted from API requests. See
  1112  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CountInstalledAppsResponse: Response containing
  1122  // details of queried installed apps.
  1123  type GoogleChromeManagementV1CountInstalledAppsResponse struct {
  1124  	// InstalledApps: List of installed apps matching request.
  1125  	InstalledApps []*GoogleChromeManagementV1InstalledApp `json:"installedApps,omitempty"`
  1126  	// NextPageToken: Token to specify the next page of the request.
  1127  	NextPageToken string `json:"nextPageToken,omitempty"`
  1128  	// TotalSize: Total number of installed apps matching request.
  1129  	TotalSize int64 `json:"totalSize,omitempty"`
  1130  
  1131  	// ServerResponse contains the HTTP response code and headers from the server.
  1132  	googleapi.ServerResponse `json:"-"`
  1133  	// ForceSendFields is a list of field names (e.g. "InstalledApps") to
  1134  	// unconditionally include in API requests. By default, fields with empty or
  1135  	// default values are omitted from API requests. See
  1136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1137  	// details.
  1138  	ForceSendFields []string `json:"-"`
  1139  	// NullFields is a list of field names (e.g. "InstalledApps") to include in API
  1140  	// requests with the JSON null value. By default, fields with empty values are
  1141  	// omitted from API requests. See
  1142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CountPrintJobsByPrinterResponse: Response containing
  1152  // a summary printing report for each printer from the specified organizational
  1153  // unit for the requested time interval.
  1154  type GoogleChromeManagementV1CountPrintJobsByPrinterResponse struct {
  1155  	// NextPageToken: Pagination token for requesting the next page.
  1156  	NextPageToken string `json:"nextPageToken,omitempty"`
  1157  	// PrinterReports: List of PrinterReports matching request.
  1158  	PrinterReports []*GoogleChromeManagementV1PrinterReport `json:"printerReports,omitempty"`
  1159  	// TotalSize: Total number of printers matching request.
  1160  	TotalSize int64 `json:"totalSize,omitempty,string"`
  1161  
  1162  	// ServerResponse contains the HTTP response code and headers from the server.
  1163  	googleapi.ServerResponse `json:"-"`
  1164  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1165  	// unconditionally include in API requests. By default, fields with empty or
  1166  	// default values are omitted from API requests. See
  1167  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1168  	// details.
  1169  	ForceSendFields []string `json:"-"`
  1170  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1171  	// requests with the JSON null value. By default, fields with empty values are
  1172  	// omitted from API requests. See
  1173  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CountPrintJobsByUserResponse: Response containing a
  1183  // summary printing report for each user that has initiated a print job with a
  1184  // printer from the specified organizational unit during the requested time
  1185  // interval.
  1186  type GoogleChromeManagementV1CountPrintJobsByUserResponse struct {
  1187  	// NextPageToken: Pagination token for requesting the next page.
  1188  	NextPageToken string `json:"nextPageToken,omitempty"`
  1189  	// TotalSize: Total number of users matching request.
  1190  	TotalSize int64 `json:"totalSize,omitempty,string"`
  1191  	// UserPrintReports: List of UserPrintReports matching request.
  1192  	UserPrintReports []*GoogleChromeManagementV1UserPrintReport `json:"userPrintReports,omitempty"`
  1193  
  1194  	// ServerResponse contains the HTTP response code and headers from the server.
  1195  	googleapi.ServerResponse `json:"-"`
  1196  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1197  	// unconditionally include in API requests. By default, fields with empty or
  1198  	// default values are omitted from API requests. See
  1199  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1200  	// details.
  1201  	ForceSendFields []string `json:"-"`
  1202  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1203  	// requests with the JSON null value. By default, fields with empty values are
  1204  	// omitted from API requests. See
  1205  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CpuInfo: CPU specifications for the device * This
  1215  // field provides device information, which is static and will not change over
  1216  // time. * Data for this field is controlled via policy: ReportDeviceCpuInfo
  1217  // (https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data
  1218  // Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3
  1219  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
  1220  // collected data is stored locally, and will be reported when the device is
  1221  // next online: No * Reported for affiliated users only: N/A * Granular
  1222  // permission needed: TELEMETRY_API_CPU_INFO
  1223  type GoogleChromeManagementV1CpuInfo struct {
  1224  	// Architecture: Output only. Architecture type for the CPU. * This field
  1225  	// provides device information, which is static and will not change over time.
  1226  	// * Data for this field is controlled via policy: ReportDeviceCpuInfo
  1227  	// (https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data
  1228  	// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3
  1229  	// hours - Policy Controlled: Yes * Cache: If the device is offline, the
  1230  	// collected data is stored locally, and will be reported when the device is
  1231  	// next online: No * Reported for affiliated users only: N/A
  1232  	//
  1233  	// Possible values:
  1234  	//   "ARCHITECTURE_UNSPECIFIED" - Architecture unknown.
  1235  	//   "X64" - x64 architecture
  1236  	Architecture string `json:"architecture,omitempty"`
  1237  	// KeylockerConfigured: Output only. Whether keylocker is configured.`TRUE` =
  1238  	// Enabled; `FALSE` = disabled. Only reported if keylockerSupported = `TRUE`.
  1239  	KeylockerConfigured bool `json:"keylockerConfigured,omitempty"`
  1240  	// KeylockerSupported: Output only. Whether keylocker is supported.
  1241  	KeylockerSupported bool `json:"keylockerSupported,omitempty"`
  1242  	// MaxClockSpeed: Output only. The max CPU clock speed in kHz.
  1243  	MaxClockSpeed int64 `json:"maxClockSpeed,omitempty"`
  1244  	// Model: Output only. The CPU model name. Example: Intel(R) Core(TM) i5-8250U
  1245  	// CPU @ 1.60GHz
  1246  	Model string `json:"model,omitempty"`
  1247  	// ForceSendFields is a list of field names (e.g. "Architecture") to
  1248  	// unconditionally include in API requests. By default, fields with empty or
  1249  	// default values are omitted from API requests. See
  1250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1251  	// details.
  1252  	ForceSendFields []string `json:"-"`
  1253  	// NullFields is a list of field names (e.g. "Architecture") to include in API
  1254  	// requests with the JSON null value. By default, fields with empty values are
  1255  	// omitted from API requests. See
  1256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CpuStatusReport: Provides information about the
  1266  // status of the CPU. * This field is telemetry information and this will
  1267  // change over time as the device is utilized. * Data for this field is
  1268  // controlled via policy: ReportDeviceCpuInfo
  1269  // (https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data
  1270  // Collection Frequency: Every 10 minutes * Default Data Reporting Frequency: 3
  1271  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
  1272  // collected data is stored locally, and will be reported when the device is
  1273  // next online: No * Reported for affiliated users only: N/A * Granular
  1274  // permission needed: TELEMETRY_API_CPU_REPORT
  1275  type GoogleChromeManagementV1CpuStatusReport struct {
  1276  	// CpuTemperatureInfo: Output only. CPU temperature sample info per CPU core in
  1277  	// Celsius
  1278  	CpuTemperatureInfo []*GoogleChromeManagementV1CpuTemperatureInfo `json:"cpuTemperatureInfo,omitempty"`
  1279  	// CpuUtilizationPct: Output only. Sample of CPU utilization (0-100 percent).
  1280  	CpuUtilizationPct int64 `json:"cpuUtilizationPct,omitempty"`
  1281  	// ReportTime: Output only. The timestamp in milliseconds representing time at
  1282  	// which this report was sampled.
  1283  	ReportTime string `json:"reportTime,omitempty"`
  1284  	// SampleFrequency: Output only. Frequency the report is sampled.
  1285  	SampleFrequency string `json:"sampleFrequency,omitempty"`
  1286  	// ForceSendFields is a list of field names (e.g. "CpuTemperatureInfo") to
  1287  	// unconditionally include in API requests. By default, fields with empty or
  1288  	// default values are omitted from API requests. See
  1289  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1290  	// details.
  1291  	ForceSendFields []string `json:"-"`
  1292  	// NullFields is a list of field names (e.g. "CpuTemperatureInfo") to include
  1293  	// in API requests with the JSON null value. By default, fields with empty
  1294  	// values are omitted from API requests. See
  1295  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1CpuTemperatureInfo: CPU temperature of a device.
  1305  // Sampled per CPU core in Celsius. * This field is telemetry information and
  1306  // this will change over time as the device is utilized. * Data for this field
  1307  // is controlled via policy: ReportDeviceCpuInfo
  1308  // (https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data
  1309  // Collection Frequency: Every 10 minutes * Default Data Reporting Frequency: 3
  1310  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
  1311  // collected data is stored locally, and will be reported when the device is
  1312  // next online: No * Reported for affiliated users only: N/A
  1313  type GoogleChromeManagementV1CpuTemperatureInfo struct {
  1314  	// Label: Output only. CPU label. Example: Core 0
  1315  	Label string `json:"label,omitempty"`
  1316  	// TemperatureCelsius: Output only. CPU temperature in Celsius.
  1317  	TemperatureCelsius int64 `json:"temperatureCelsius,omitempty"`
  1318  	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
  1319  	// include in API requests. By default, fields with empty or default values are
  1320  	// omitted from API requests. See
  1321  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1322  	// details.
  1323  	ForceSendFields []string `json:"-"`
  1324  	// NullFields is a list of field names (e.g. "Label") to include in API
  1325  	// requests with the JSON null value. By default, fields with empty values are
  1326  	// omitted from API requests. See
  1327  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1Device: Describes a device reporting Chrome browser
  1337  // information.
  1338  type GoogleChromeManagementV1Device struct {
  1339  	// DeviceId: Output only. The ID of the device that reported this Chrome
  1340  	// browser information.
  1341  	DeviceId string `json:"deviceId,omitempty"`
  1342  	// Machine: Output only. The name of the machine within its local network.
  1343  	Machine string `json:"machine,omitempty"`
  1344  	// ForceSendFields is a list of field names (e.g. "DeviceId") to
  1345  	// unconditionally include in API requests. By default, fields with empty or
  1346  	// default values are omitted from API requests. See
  1347  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1348  	// details.
  1349  	ForceSendFields []string `json:"-"`
  1350  	// NullFields is a list of field names (e.g. "DeviceId") to include in API
  1351  	// requests with the JSON null value. By default, fields with empty values are
  1352  	// omitted from API requests. See
  1353  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1DeviceActivityReport: Device activity report. *
  1363  // Granular permission needed: TELEMETRY_API_DEVICE_ACTIVITY_REPORT
  1364  type GoogleChromeManagementV1DeviceActivityReport struct {
  1365  	// DeviceActivityState: Output only. Device activity state.
  1366  	//
  1367  	// Possible values:
  1368  	//   "DEVICE_ACTIVITY_STATE_UNSPECIFIED" - Device activity state is
  1369  	// unspecified.
  1370  	//   "ACTIVE" - Device is currently being used.
  1371  	//   "IDLE" - Device is currently idle.
  1372  	//   "LOCKED" - Device is currently locked.
  1373  	DeviceActivityState string `json:"deviceActivityState,omitempty"`
  1374  	// ReportTime: Output only. Timestamp of when the report was collected.
  1375  	ReportTime string `json:"reportTime,omitempty"`
  1376  	// ForceSendFields is a list of field names (e.g. "DeviceActivityState") to
  1377  	// unconditionally include in API requests. By default, fields with empty or
  1378  	// default values are omitted from API requests. See
  1379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1380  	// details.
  1381  	ForceSendFields []string `json:"-"`
  1382  	// NullFields is a list of field names (e.g. "DeviceActivityState") to include
  1383  	// in API requests with the JSON null value. By default, fields with empty
  1384  	// values are omitted from API requests. See
  1385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1DeviceAueCountReport: Report for
  1395  // CountChromeDevicesPerAueDateResponse, contains the count of devices of a
  1396  // specific model and auto update expiration range.
  1397  type GoogleChromeManagementV1DeviceAueCountReport struct {
  1398  	// AueMonth: Enum value of month corresponding to the auto update expiration
  1399  	// date in UTC time zone. If the device is already expired, this field is
  1400  	// empty.
  1401  	//
  1402  	// Possible values:
  1403  	//   "MONTH_UNSPECIFIED" - The unspecified month.
  1404  	//   "JANUARY" - The month of January.
  1405  	//   "FEBRUARY" - The month of February.
  1406  	//   "MARCH" - The month of March.
  1407  	//   "APRIL" - The month of April.
  1408  	//   "MAY" - The month of May.
  1409  	//   "JUNE" - The month of June.
  1410  	//   "JULY" - The month of July.
  1411  	//   "AUGUST" - The month of August.
  1412  	//   "SEPTEMBER" - The month of September.
  1413  	//   "OCTOBER" - The month of October.
  1414  	//   "NOVEMBER" - The month of November.
  1415  	//   "DECEMBER" - The month of December.
  1416  	AueMonth string `json:"aueMonth,omitempty"`
  1417  	// AueYear: Int value of year corresponding to the Auto Update Expiration date
  1418  	// in UTC time zone. If the device is already expired, this field is empty.
  1419  	AueYear int64 `json:"aueYear,omitempty,string"`
  1420  	// Count: Count of devices of this model.
  1421  	Count int64 `json:"count,omitempty,string"`
  1422  	// Expired: Boolean value for whether or not the device has already expired.
  1423  	Expired bool `json:"expired,omitempty"`
  1424  	// Model: Public model name of the devices.
  1425  	Model string `json:"model,omitempty"`
  1426  	// ForceSendFields is a list of field names (e.g. "AueMonth") to
  1427  	// unconditionally include in API requests. By default, fields with empty or
  1428  	// default values are omitted from API requests. See
  1429  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1430  	// details.
  1431  	ForceSendFields []string `json:"-"`
  1432  	// NullFields is a list of field names (e.g. "AueMonth") to include in API
  1433  	// requests with the JSON null value. By default, fields with empty values are
  1434  	// omitted from API requests. See
  1435  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1DeviceHardwareCountReport: Report for
  1445  // CountChromeDevicesPerHardwareSpecResponse, contains the count of devices
  1446  // with a unique hardware specification.
  1447  type GoogleChromeManagementV1DeviceHardwareCountReport struct {
  1448  	// Bucket: Public name of the hardware specification.
  1449  	Bucket string `json:"bucket,omitempty"`
  1450  	// Count: Count of devices with a unique hardware specification.
  1451  	Count int64 `json:"count,omitempty,string"`
  1452  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
  1453  	// include in API requests. By default, fields with empty or default values are
  1454  	// omitted from API requests. See
  1455  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1456  	// details.
  1457  	ForceSendFields []string `json:"-"`
  1458  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  1459  	// requests with the JSON null value. By default, fields with empty values are
  1460  	// omitted from API requests. See
  1461  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1DeviceRequestingExtensionDetails: Details of a
  1471  // device requesting an extension, including the name of the device and the
  1472  // justification of the request.
  1473  type GoogleChromeManagementV1DeviceRequestingExtensionDetails struct {
  1474  	// DeviceName: The name of a device that has requested the extension.
  1475  	DeviceName string `json:"deviceName,omitempty"`
  1476  	// Justification: Request justification as entered by the user.
  1477  	Justification string `json:"justification,omitempty"`
  1478  	// ForceSendFields is a list of field names (e.g. "DeviceName") to
  1479  	// unconditionally include in API requests. By default, fields with empty or
  1480  	// default values are omitted from API requests. See
  1481  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1482  	// details.
  1483  	ForceSendFields []string `json:"-"`
  1484  	// NullFields is a list of field names (e.g. "DeviceName") to include in API
  1485  	// requests with the JSON null value. By default, fields with empty values are
  1486  	// omitted from API requests. See
  1487  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1DiskInfo: Status of the single storage device.
  1497  type GoogleChromeManagementV1DiskInfo struct {
  1498  	// BytesReadThisSession: Output only. Number of bytes read since last boot.
  1499  	BytesReadThisSession int64 `json:"bytesReadThisSession,omitempty,string"`
  1500  	// BytesWrittenThisSession: Output only. Number of bytes written since last
  1501  	// boot.
  1502  	BytesWrittenThisSession int64 `json:"bytesWrittenThisSession,omitempty,string"`
  1503  	// DiscardTimeThisSession: Output only. Time spent discarding since last boot.
  1504  	// Discarding is writing to clear blocks which are no longer in use. Supported
  1505  	// on kernels 4.18+.
  1506  	DiscardTimeThisSession string `json:"discardTimeThisSession,omitempty"`
  1507  	// Health: Output only. Disk health.
  1508  	Health string `json:"health,omitempty"`
  1509  	// IoTimeThisSession: Output only. Counts the time the disk and queue were
  1510  	// busy, so unlike the fields above, parallel requests are not counted multiple
  1511  	// times.
  1512  	IoTimeThisSession string `json:"ioTimeThisSession,omitempty"`
  1513  	// Manufacturer: Output only. Disk manufacturer.
  1514  	Manufacturer string `json:"manufacturer,omitempty"`
  1515  	// Model: Output only. Disk model.
  1516  	Model string `json:"model,omitempty"`
  1517  	// ReadTimeThisSession: Output only. Time spent reading from disk since last
  1518  	// boot.
  1519  	ReadTimeThisSession string `json:"readTimeThisSession,omitempty"`
  1520  	// SerialNumber: Output only. Disk serial number.
  1521  	SerialNumber string `json:"serialNumber,omitempty"`
  1522  	// SizeBytes: Output only. Disk size.
  1523  	SizeBytes int64 `json:"sizeBytes,omitempty,string"`
  1524  	// Type: Output only. Disk type: eMMC / NVMe / ATA / SCSI.
  1525  	Type string `json:"type,omitempty"`
  1526  	// VolumeIds: Output only. Disk volumes.
  1527  	VolumeIds []string `json:"volumeIds,omitempty"`
  1528  	// WriteTimeThisSession: Output only. Time spent writing to disk since last
  1529  	// boot.
  1530  	WriteTimeThisSession string `json:"writeTimeThisSession,omitempty"`
  1531  	// ForceSendFields is a list of field names (e.g. "BytesReadThisSession") to
  1532  	// unconditionally include in API requests. By default, fields with empty or
  1533  	// default values are omitted from API requests. See
  1534  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1535  	// details.
  1536  	ForceSendFields []string `json:"-"`
  1537  	// NullFields is a list of field names (e.g. "BytesReadThisSession") to include
  1538  	// in API requests with the JSON null value. By default, fields with empty
  1539  	// values are omitted from API requests. See
  1540  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1DisplayDevice: Information of a display device.
  1550  type GoogleChromeManagementV1DisplayDevice struct {
  1551  	// DisplayHeightMm: Output only. Display height in millimeters.
  1552  	DisplayHeightMm int64 `json:"displayHeightMm,omitempty"`
  1553  	// DisplayName: Output only. Display device name.
  1554  	DisplayName string `json:"displayName,omitempty"`
  1555  	// DisplayWidthMm: Output only. Display width in millimeters.
  1556  	DisplayWidthMm int64 `json:"displayWidthMm,omitempty"`
  1557  	// Internal: Output only. Is display internal or not.
  1558  	Internal bool `json:"internal,omitempty"`
  1559  	// ManufactureYear: Output only. Year of manufacture.
  1560  	ManufactureYear int64 `json:"manufactureYear,omitempty"`
  1561  	// ManufacturerId: Output only. Three letter manufacturer ID.
  1562  	ManufacturerId string `json:"manufacturerId,omitempty"`
  1563  	// ModelId: Output only. Manufacturer product code.
  1564  	ModelId int64 `json:"modelId,omitempty"`
  1565  	// ForceSendFields is a list of field names (e.g. "DisplayHeightMm") to
  1566  	// unconditionally include in API requests. By default, fields with empty or
  1567  	// default values are omitted from API requests. See
  1568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1569  	// details.
  1570  	ForceSendFields []string `json:"-"`
  1571  	// NullFields is a list of field names (e.g. "DisplayHeightMm") to include in
  1572  	// API requests with the JSON null value. By default, fields with empty values
  1573  	// are omitted from API requests. See
  1574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1DisplayInfo: Information for a display.
  1584  type GoogleChromeManagementV1DisplayInfo struct {
  1585  	// DeviceId: Output only. Represents the graphics card device id.
  1586  	DeviceId int64 `json:"deviceId,omitempty,string"`
  1587  	// DisplayName: Output only. Display device name.
  1588  	DisplayName string `json:"displayName,omitempty"`
  1589  	// IsInternal: Output only. Indicates if display is internal or not.
  1590  	IsInternal bool `json:"isInternal,omitempty"`
  1591  	// RefreshRate: Output only. Refresh rate in Hz.
  1592  	RefreshRate int64 `json:"refreshRate,omitempty"`
  1593  	// ResolutionHeight: Output only. Resolution height in pixels.
  1594  	ResolutionHeight int64 `json:"resolutionHeight,omitempty"`
  1595  	// ResolutionWidth: Output only. Resolution width in pixels.
  1596  	ResolutionWidth int64 `json:"resolutionWidth,omitempty"`
  1597  	// ForceSendFields is a list of field names (e.g. "DeviceId") to
  1598  	// unconditionally include in API requests. By default, fields with empty or
  1599  	// default values are omitted from API requests. See
  1600  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1601  	// details.
  1602  	ForceSendFields []string `json:"-"`
  1603  	// NullFields is a list of field names (e.g. "DeviceId") to include in API
  1604  	// requests with the JSON null value. By default, fields with empty values are
  1605  	// omitted from API requests. See
  1606  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1EnumeratePrintJobsResponse: Response containing a
  1616  // list of print jobs.
  1617  type GoogleChromeManagementV1EnumeratePrintJobsResponse struct {
  1618  	// NextPageToken: A token, which can be used in a subsequent request to
  1619  	// retrieve the next page. If this field is omitted, there are no subsequent
  1620  	// pages.
  1621  	NextPageToken string `json:"nextPageToken,omitempty"`
  1622  	// PrintJobs: List of requested print jobs.
  1623  	PrintJobs []*GoogleChromeManagementV1PrintJob `json:"printJobs,omitempty"`
  1624  	// TotalSize: Total number of print jobs matching request.
  1625  	TotalSize int64 `json:"totalSize,omitempty,string"`
  1626  
  1627  	// ServerResponse contains the HTTP response code and headers from the server.
  1628  	googleapi.ServerResponse `json:"-"`
  1629  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1630  	// unconditionally include in API requests. By default, fields with empty or
  1631  	// default values are omitted from API requests. See
  1632  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1633  	// details.
  1634  	ForceSendFields []string `json:"-"`
  1635  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1636  	// requests with the JSON null value. By default, fields with empty values are
  1637  	// omitted from API requests. See
  1638  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse: Response
  1648  // containing a list of devices that have requested the queried extension.
  1649  type GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse struct {
  1650  	// DeviceDetails: Details of devices that have requested the queried extension.
  1651  	DeviceDetails []*GoogleChromeManagementV1DeviceRequestingExtensionDetails `json:"deviceDetails,omitempty"`
  1652  	// NextPageToken: Optional. Token to specify the next page in the list. Token
  1653  	// expires after 1 day.
  1654  	NextPageToken string `json:"nextPageToken,omitempty"`
  1655  	// TotalSize: Optional. Total number of devices in response.
  1656  	TotalSize int64 `json:"totalSize,omitempty"`
  1657  
  1658  	// ServerResponse contains the HTTP response code and headers from the server.
  1659  	googleapi.ServerResponse `json:"-"`
  1660  	// ForceSendFields is a list of field names (e.g. "DeviceDetails") to
  1661  	// unconditionally include in API requests. By default, fields with empty or
  1662  	// default values are omitted from API requests. See
  1663  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1664  	// details.
  1665  	ForceSendFields []string `json:"-"`
  1666  	// NullFields is a list of field names (e.g. "DeviceDetails") to include in API
  1667  	// requests with the JSON null value. By default, fields with empty values are
  1668  	// omitted from API requests. See
  1669  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1FetchUsersRequestingExtensionResponse: Response
  1679  // containing a list of users that have requested the queried extension.
  1680  type GoogleChromeManagementV1FetchUsersRequestingExtensionResponse struct {
  1681  	// NextPageToken: Token to specify the next page in the list.
  1682  	NextPageToken string `json:"nextPageToken,omitempty"`
  1683  	// TotalSize: Total number of users in response.
  1684  	TotalSize int64 `json:"totalSize,omitempty"`
  1685  	// UserDetails: Details of users that have requested the queried extension.
  1686  	UserDetails []*GoogleChromeManagementV1UserRequestingExtensionDetails `json:"userDetails,omitempty"`
  1687  
  1688  	// ServerResponse contains the HTTP response code and headers from the server.
  1689  	googleapi.ServerResponse `json:"-"`
  1690  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1691  	// unconditionally include in API requests. By default, fields with empty or
  1692  	// default values are omitted from API requests. See
  1693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1694  	// details.
  1695  	ForceSendFields []string `json:"-"`
  1696  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1697  	// requests with the JSON null value. By default, fields with empty values are
  1698  	// omitted from API requests. See
  1699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1FindInstalledAppDevicesResponse: Response containing
  1709  // a list of devices with queried app installed.
  1710  type GoogleChromeManagementV1FindInstalledAppDevicesResponse struct {
  1711  	// Devices: A list of devices which have the app installed. Sorted in ascending
  1712  	// alphabetical order on the Device.machine field.
  1713  	Devices []*GoogleChromeManagementV1Device `json:"devices,omitempty"`
  1714  	// NextPageToken: Token to specify the next page of the request.
  1715  	NextPageToken string `json:"nextPageToken,omitempty"`
  1716  	// TotalSize: Total number of devices matching request.
  1717  	TotalSize int64 `json:"totalSize,omitempty"`
  1718  
  1719  	// ServerResponse contains the HTTP response code and headers from the server.
  1720  	googleapi.ServerResponse `json:"-"`
  1721  	// ForceSendFields is a list of field names (e.g. "Devices") to unconditionally
  1722  	// include in API requests. By default, fields with empty or default values are
  1723  	// omitted from API requests. See
  1724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1725  	// details.
  1726  	ForceSendFields []string `json:"-"`
  1727  	// NullFields is a list of field names (e.g. "Devices") to include in API
  1728  	// requests with the JSON null value. By default, fields with empty values are
  1729  	// omitted from API requests. See
  1730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1GraphicsAdapterInfo: Information of a graphics
  1740  // adapter (GPU).
  1741  type GoogleChromeManagementV1GraphicsAdapterInfo struct {
  1742  	// Adapter: Output only. Adapter name. Example: Mesa DRI Intel(R) UHD Graphics
  1743  	// 620 (Kabylake GT2).
  1744  	Adapter string `json:"adapter,omitempty"`
  1745  	// DeviceId: Output only. Represents the graphics card device id.
  1746  	DeviceId int64 `json:"deviceId,omitempty,string"`
  1747  	// DriverVersion: Output only. Version of the GPU driver.
  1748  	DriverVersion string `json:"driverVersion,omitempty"`
  1749  	// ForceSendFields is a list of field names (e.g. "Adapter") to unconditionally
  1750  	// include in API requests. By default, fields with empty or default values are
  1751  	// omitted from API requests. See
  1752  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1753  	// details.
  1754  	ForceSendFields []string `json:"-"`
  1755  	// NullFields is a list of field names (e.g. "Adapter") to include in API
  1756  	// requests with the JSON null value. By default, fields with empty values are
  1757  	// omitted from API requests. See
  1758  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1GraphicsInfo: Information of the graphics subsystem.
  1768  // * This field provides device information, which is static and will not
  1769  // change over time. * Data for this field is controlled via policy:
  1770  // ReportDeviceGraphicsStatus
  1771  // (https://chromeenterprise.google/policies/#ReportDeviceGraphicsStatus) *
  1772  // Data Collection Frequency: Only at Upload * Default Data Reporting
  1773  // Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is
  1774  // offline, the collected data is stored locally, and will be reported when the
  1775  // device is next online: No * Reported for affiliated users only: N/A *
  1776  // Granular permission needed: TELEMETRY_API_GRAPHICS_INFO
  1777  type GoogleChromeManagementV1GraphicsInfo struct {
  1778  	// AdapterInfo: Output only. Information about the graphics adapter (GPU).
  1779  	AdapterInfo *GoogleChromeManagementV1GraphicsAdapterInfo `json:"adapterInfo,omitempty"`
  1780  	// DisplayDevices: Output only. Information about the display(s) of the device.
  1781  	DisplayDevices []*GoogleChromeManagementV1DisplayDevice `json:"displayDevices,omitempty"`
  1782  	// EprivacySupported: Output only. Is ePrivacy screen supported or not.
  1783  	EprivacySupported bool `json:"eprivacySupported,omitempty"`
  1784  	// TouchScreenInfo: Output only. Information about the internal touch screen(s)
  1785  	// of the device.
  1786  	TouchScreenInfo *GoogleChromeManagementV1TouchScreenInfo `json:"touchScreenInfo,omitempty"`
  1787  	// ForceSendFields is a list of field names (e.g. "AdapterInfo") to
  1788  	// unconditionally include in API requests. By default, fields with empty or
  1789  	// default values are omitted from API requests. See
  1790  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1791  	// details.
  1792  	ForceSendFields []string `json:"-"`
  1793  	// NullFields is a list of field names (e.g. "AdapterInfo") to include in API
  1794  	// requests with the JSON null value. By default, fields with empty values are
  1795  	// omitted from API requests. See
  1796  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1GraphicsStatusReport: Information of the graphics
  1806  // subsystem. * This field is telemetry information and this will change over
  1807  // time as the device is utilized. * Data for this field is controlled via
  1808  // policy: ReportDeviceGraphicsInfo
  1809  // (https://chromeenterprise.google/policies/#ReportDeviceGraphicsInfo) * Data
  1810  // Collection Frequency: 3 hours. * Default Data Reporting Frequency: 3 hours -
  1811  // Policy Controlled: Yes * Cache: If the device is offline, the collected data
  1812  // is stored locally, and will be reported when the device is next online: No *
  1813  // Reported for affiliated users only: N/A * Granular permission needed:
  1814  // TELEMETRY_API_GRAPHICS_REPORT
  1815  type GoogleChromeManagementV1GraphicsStatusReport struct {
  1816  	// Displays: Output only. Information about the displays for the device.
  1817  	Displays []*GoogleChromeManagementV1DisplayInfo `json:"displays,omitempty"`
  1818  	// ReportTime: Output only. Time at which the graphics data was reported.
  1819  	ReportTime string `json:"reportTime,omitempty"`
  1820  	// ForceSendFields is a list of field names (e.g. "Displays") to
  1821  	// unconditionally include in API requests. By default, fields with empty or
  1822  	// default values are omitted from API requests. See
  1823  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1824  	// details.
  1825  	ForceSendFields []string `json:"-"`
  1826  	// NullFields is a list of field names (e.g. "Displays") to include in API
  1827  	// requests with the JSON null value. By default, fields with empty values are
  1828  	// omitted from API requests. See
  1829  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1HeartbeatStatusReport: Heartbeat status report of a
  1839  // device. * Available for Kiosks * This field provides online/offline/unknown
  1840  // status of a device and will only be included if the status has changed (e.g.
  1841  // Online -> Offline) * Data for this field is controlled via policy:
  1842  // HeartbeatEnabled
  1843  // (https://chromeenterprise.google/policies/#HeartbeatEnabled) [More
  1844  // Info](https://support.google.com/chrome/a/answer/6179663#:~:text=On%20the%20C
  1845  // hrome,device%20status%20alerts) * Heartbeat Frequency: 2 mins * Note: If a
  1846  // device goes offline, it can take up to 12 minutes for the online status of
  1847  // the device to be updated * Cache: If the device is offline, the collected
  1848  // data is stored locally, and will be reported when the device is next online:
  1849  // N/A * Reported for affiliated users only: N/A * Granular permission needed:
  1850  // TELEMETRY_API_DEVICE_ACTIVITY_REPORT
  1851  type GoogleChromeManagementV1HeartbeatStatusReport struct {
  1852  	// ReportTime: Timestamp of when status changed was detected
  1853  	ReportTime string `json:"reportTime,omitempty"`
  1854  	// State: State the device changed to
  1855  	//
  1856  	// Possible values:
  1857  	//   "STATE_UNSPECIFIED" - State not specified
  1858  	//   "UNKNOWN" - Device is not eligible for heartbeat monitoring
  1859  	//   "ONLINE" - Device is online
  1860  	//   "OFFLINE" - Device is offline
  1861  	State string `json:"state,omitempty"`
  1862  	// ForceSendFields is a list of field names (e.g. "ReportTime") to
  1863  	// unconditionally include in API requests. By default, fields with empty or
  1864  	// default values are omitted from API requests. See
  1865  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1866  	// details.
  1867  	ForceSendFields []string `json:"-"`
  1868  	// NullFields is a list of field names (e.g. "ReportTime") to include in API
  1869  	// requests with the JSON null value. By default, fields with empty values are
  1870  	// omitted from API requests. See
  1871  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1HttpsLatencyRoutineData: Data that describes the
  1881  // result of the HTTPS latency diagnostics routine, with the HTTPS requests
  1882  // issued to Google websites.
  1883  type GoogleChromeManagementV1HttpsLatencyRoutineData struct {
  1884  	// Latency: Output only. HTTPS latency if routine succeeded or failed because
  1885  	// of HIGH_LATENCY or VERY_HIGH_LATENCY.
  1886  	Latency string `json:"latency,omitempty"`
  1887  	// Problem: Output only. HTTPS latency routine problem if a problem occurred.
  1888  	//
  1889  	// Possible values:
  1890  	//   "HTTPS_LATENCY_PROBLEM_UNSPECIFIED" - HTTPS latency problem not specified.
  1891  	//   "FAILED_DNS_RESOLUTIONS" - One or more DNS resolutions resulted in a
  1892  	// failure.
  1893  	//   "FAILED_HTTPS_REQUESTS" - One or more HTTPS requests resulted in a
  1894  	// failure.
  1895  	//   "HIGH_LATENCY" - Average HTTPS request latency time between 500ms and
  1896  	// 1000ms is high.
  1897  	//   "VERY_HIGH_LATENCY" - Average HTTPS request latency time greater than
  1898  	// 1000ms is very high.
  1899  	Problem string `json:"problem,omitempty"`
  1900  	// ForceSendFields is a list of field names (e.g. "Latency") to unconditionally
  1901  	// include in API requests. By default, fields with empty or default values are
  1902  	// omitted from API requests. See
  1903  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1904  	// details.
  1905  	ForceSendFields []string `json:"-"`
  1906  	// NullFields is a list of field names (e.g. "Latency") to include in API
  1907  	// requests with the JSON null value. By default, fields with empty values are
  1908  	// omitted from API requests. See
  1909  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1InstalledApp: Describes an installed app.
  1919  type GoogleChromeManagementV1InstalledApp struct {
  1920  	// AppId: Output only. Unique identifier of the app. For Chrome apps and
  1921  	// extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For
  1922  	// Android apps, the package name (e.g. com.evernote).
  1923  	AppId string `json:"appId,omitempty"`
  1924  	// AppInstallType: Output only. How the app was installed.
  1925  	//
  1926  	// Possible values:
  1927  	//   "APP_INSTALL_TYPE_UNSPECIFIED" - Application install type not specified.
  1928  	//   "MULTIPLE" - Multiple app install types.
  1929  	//   "NORMAL" - Normal app install type.
  1930  	//   "ADMIN" - Administrator app install type.
  1931  	//   "DEVELOPMENT" - Development app install type.
  1932  	//   "SIDELOAD" - Sideloaded app install type.
  1933  	//   "OTHER" - Other app install type.
  1934  	AppInstallType string `json:"appInstallType,omitempty"`
  1935  	// AppSource: Output only. Source of the installed app.
  1936  	//
  1937  	// Possible values:
  1938  	//   "APP_SOURCE_UNSPECIFIED" - Application source not specified.
  1939  	//   "CHROME_WEBSTORE" - Generally for extensions and Chrome apps.
  1940  	//   "PLAY_STORE" - Play Store app.
  1941  	AppSource string `json:"appSource,omitempty"`
  1942  	// AppType: Output only. Type of the app.
  1943  	//
  1944  	// Possible values:
  1945  	//   "APP_TYPE_UNSPECIFIED" - App type not specified.
  1946  	//   "EXTENSION" - Chrome extension.
  1947  	//   "APP" - Chrome app.
  1948  	//   "THEME" - Chrome theme.
  1949  	//   "HOSTED_APP" - Chrome hosted app.
  1950  	//   "ANDROID_APP" - ARC++ app.
  1951  	AppType string `json:"appType,omitempty"`
  1952  	// BrowserDeviceCount: Output only. Count of browser devices with this app
  1953  	// installed.
  1954  	BrowserDeviceCount int64 `json:"browserDeviceCount,omitempty,string"`
  1955  	// Description: Output only. Description of the installed app.
  1956  	Description string `json:"description,omitempty"`
  1957  	// Disabled: Output only. Whether the app is disabled.
  1958  	Disabled bool `json:"disabled,omitempty"`
  1959  	// DisplayName: Output only. Name of the installed app.
  1960  	DisplayName string `json:"displayName,omitempty"`
  1961  	// HomepageUri: Output only. Homepage uri of the installed app.
  1962  	HomepageUri string `json:"homepageUri,omitempty"`
  1963  	// OsUserCount: Output only. Count of ChromeOS users with this app installed.
  1964  	OsUserCount int64 `json:"osUserCount,omitempty,string"`
  1965  	// Permissions: Output only. Permissions of the installed app.
  1966  	Permissions []string `json:"permissions,omitempty"`
  1967  	// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally
  1968  	// include in API requests. By default, fields with empty or default values are
  1969  	// omitted from API requests. See
  1970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1971  	// details.
  1972  	ForceSendFields []string `json:"-"`
  1973  	// NullFields is a list of field names (e.g. "AppId") to include in API
  1974  	// requests with the JSON null value. By default, fields with empty values are
  1975  	// omitted from API requests. See
  1976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1KioskAppStatusReport: Kiosk app status report of a
  1986  // device. * Available for Kiosks * This field provides the app id and version
  1987  // number running on a kiosk device and the timestamp of when the report was
  1988  // last updated * Data for this field is controlled via policy:
  1989  // ReportDeviceSessionStatus
  1990  // (https://chromeenterprise.google/policies/#ReportDeviceSessionStatus) * Data
  1991  // Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3
  1992  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
  1993  // collected data is stored locally, and will be reported when the device is
  1994  // next online: No * Reported for affiliated users only: N/A * Granular
  1995  // permission needed: TELEMETRY_API_APPS_REPORT
  1996  type GoogleChromeManagementV1KioskAppStatusReport struct {
  1997  	// AppId: App id of kiosk app for example "mdmkkicfmmkgmpkmkdikhlbggogpicma"
  1998  	AppId string `json:"appId,omitempty"`
  1999  	// AppVersion: App version number of kiosk app for example "1.10.118"
  2000  	AppVersion string `json:"appVersion,omitempty"`
  2001  	// ReportTime: Timestamp of when report was collected
  2002  	ReportTime string `json:"reportTime,omitempty"`
  2003  	// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally
  2004  	// include in API requests. By default, fields with empty or default values are
  2005  	// omitted from API requests. See
  2006  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2007  	// details.
  2008  	ForceSendFields []string `json:"-"`
  2009  	// NullFields is a list of field names (e.g. "AppId") to include in API
  2010  	// requests with the JSON null value. By default, fields with empty values are
  2011  	// omitted from API requests. See
  2012  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  	// Devices: Telemetry devices returned in the response.
  2023  	Devices []*GoogleChromeManagementV1TelemetryDevice `json:"devices,omitempty"`
  2024  	// NextPageToken: Token to specify next page in the list.
  2025  	NextPageToken string `json:"nextPageToken,omitempty"`
  2026  
  2027  	// ServerResponse contains the HTTP response code and headers from the server.
  2028  	googleapi.ServerResponse `json:"-"`
  2029  	// ForceSendFields is a list of field names (e.g. "Devices") to unconditionally
  2030  	// include in API requests. By default, fields with empty or default values are
  2031  	// omitted from API requests. See
  2032  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2033  	// details.
  2034  	ForceSendFields []string `json:"-"`
  2035  	// NullFields is a list of field names (e.g. "Devices") to include in API
  2036  	// requests with the JSON null value. By default, fields with empty values are
  2037  	// omitted from API requests. See
  2038  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1ListTelemetryEventsResponse: Response message for
  2048  // listing telemetry events for a customer.
  2049  type GoogleChromeManagementV1ListTelemetryEventsResponse struct {
  2050  	// NextPageToken: Token to specify next page in the list.
  2051  	NextPageToken string `json:"nextPageToken,omitempty"`
  2052  	// TelemetryEvents: Telemetry events returned in the response.
  2053  	TelemetryEvents []*GoogleChromeManagementV1TelemetryEvent `json:"telemetryEvents,omitempty"`
  2054  
  2055  	// ServerResponse contains the HTTP response code and headers from the server.
  2056  	googleapi.ServerResponse `json:"-"`
  2057  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2058  	// unconditionally include in API requests. By default, fields with empty or
  2059  	// default values are omitted from API requests. See
  2060  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2061  	// details.
  2062  	ForceSendFields []string `json:"-"`
  2063  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2064  	// requests with the JSON null value. By default, fields with empty values are
  2065  	// omitted from API requests. See
  2066  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse: Response
  2076  // message for listing notification configs for a customer.
  2077  type GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse struct {
  2078  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2079  	// next page. If this field is omitted, there are no subsequent pages.
  2080  	NextPageToken string `json:"nextPageToken,omitempty"`
  2081  	// TelemetryNotificationConfigs: The telemetry notification configs from the
  2082  	// specified customer.
  2083  	TelemetryNotificationConfigs []*GoogleChromeManagementV1TelemetryNotificationConfig `json:"telemetryNotificationConfigs,omitempty"`
  2084  
  2085  	// ServerResponse contains the HTTP response code and headers from the server.
  2086  	googleapi.ServerResponse `json:"-"`
  2087  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2088  	// unconditionally include in API requests. By default, fields with empty or
  2089  	// default values are omitted from API requests. See
  2090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2091  	// details.
  2092  	ForceSendFields []string `json:"-"`
  2093  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2094  	// requests with the JSON null value. By default, fields with empty values are
  2095  	// omitted from API requests. See
  2096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1ListTelemetryUsersResponse: Response message for
  2106  // listing telemetry users for a customer.
  2107  type GoogleChromeManagementV1ListTelemetryUsersResponse struct {
  2108  	// NextPageToken: Token to specify next page in the list.
  2109  	NextPageToken string `json:"nextPageToken,omitempty"`
  2110  	// TelemetryUsers: Telemetry users returned in the response.
  2111  	TelemetryUsers []*GoogleChromeManagementV1TelemetryUser `json:"telemetryUsers,omitempty"`
  2112  
  2113  	// ServerResponse contains the HTTP response code and headers from the server.
  2114  	googleapi.ServerResponse `json:"-"`
  2115  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2116  	// unconditionally include in API requests. By default, fields with empty or
  2117  	// default values are omitted from API requests. See
  2118  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2119  	// details.
  2120  	ForceSendFields []string `json:"-"`
  2121  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2122  	// requests with the JSON null value. By default, fields with empty values are
  2123  	// omitted from API requests. See
  2124  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1MemoryInfo: Memory information of a device. * This
  2134  // field has both telemetry and device information: - `totalRamBytes` - Device
  2135  // information - `availableRamBytes` - Telemetry information -
  2136  // `totalMemoryEncryption` - Device information * Data for this field is
  2137  // controlled via policy: ReportDeviceMemoryInfo
  2138  // (https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data
  2139  // Collection Frequency: - `totalRamBytes` - Only at upload -
  2140  // `availableRamBytes` - Every 10 minutes - `totalMemoryEncryption` - at device
  2141  // startup * Default Data Reporting Frequency: - `totalRamBytes` - 3 hours -
  2142  // `availableRamBytes` - 3 hours - `totalMemoryEncryption` - at device startup
  2143  // - Policy Controlled: Yes * Cache: If the device is offline, the collected
  2144  // data is stored locally, and will be reported when the device is next online:
  2145  // only for `totalMemoryEncryption` * Reported for affiliated users only: N/A *
  2146  // Granular permission needed: TELEMETRY_API_MEMORY_INFO
  2147  type GoogleChromeManagementV1MemoryInfo struct {
  2148  	// AvailableRamBytes: Output only. Amount of available RAM in bytes.
  2149  	AvailableRamBytes int64 `json:"availableRamBytes,omitempty,string"`
  2150  	// TotalMemoryEncryption: Output only. Total memory encryption info for the
  2151  	// device.
  2152  	TotalMemoryEncryption *GoogleChromeManagementV1TotalMemoryEncryptionInfo `json:"totalMemoryEncryption,omitempty"`
  2153  	// TotalRamBytes: Output only. Total RAM in bytes.
  2154  	TotalRamBytes int64 `json:"totalRamBytes,omitempty,string"`
  2155  	// ForceSendFields is a list of field names (e.g. "AvailableRamBytes") to
  2156  	// unconditionally include in API requests. By default, fields with empty or
  2157  	// default values are omitted from API requests. See
  2158  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2159  	// details.
  2160  	ForceSendFields []string `json:"-"`
  2161  	// NullFields is a list of field names (e.g. "AvailableRamBytes") to include in
  2162  	// API requests with the JSON null value. By default, fields with empty values
  2163  	// are omitted from API requests. See
  2164  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1MemoryStatusReport: Contains samples of memory
  2174  // status reports. * This field is telemetry information and this will change
  2175  // over time as the device is utilized. * Data for this field is controlled via
  2176  // policy: ReportDeviceMemoryInfo
  2177  // (https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data
  2178  // Collection Frequency: Only at upload, SystemRamFreeByes is collected every
  2179  // 10 minutes * Default Data Reporting Frequency: Every 3 hours - Policy
  2180  // Controlled: Yes * Cache: If the device is offline, the collected data is
  2181  // stored locally, and will be reported when the device is next online: No *
  2182  // Reported for affiliated users only: N/A * Granular permission needed:
  2183  // TELEMETRY_API_MEMORY_REPORT
  2184  type GoogleChromeManagementV1MemoryStatusReport struct {
  2185  	// PageFaults: Output only. Number of page faults during this collection
  2186  	PageFaults int64 `json:"pageFaults,omitempty"`
  2187  	// ReportTime: Output only. The timestamp in milliseconds representing time at
  2188  	// which this report was sampled.
  2189  	ReportTime string `json:"reportTime,omitempty"`
  2190  	// SampleFrequency: Output only. Frequency the report is sampled.
  2191  	SampleFrequency string `json:"sampleFrequency,omitempty"`
  2192  	// SystemRamFreeBytes: Output only. Amount of free RAM in bytes (unreliable due
  2193  	// to Garbage Collection).
  2194  	SystemRamFreeBytes int64 `json:"systemRamFreeBytes,omitempty,string"`
  2195  	// ForceSendFields is a list of field names (e.g. "PageFaults") to
  2196  	// unconditionally include in API requests. By default, fields with empty or
  2197  	// default values are omitted from API requests. See
  2198  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2199  	// details.
  2200  	ForceSendFields []string `json:"-"`
  2201  	// NullFields is a list of field names (e.g. "PageFaults") to include in API
  2202  	// requests with the JSON null value. By default, fields with empty values are
  2203  	// omitted from API requests. See
  2204  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1NetworkBandwidthReport: Network bandwidth report. *
  2214  // Granular permission needed: TELEMETRY_API_NETWORK_REPORT
  2215  type GoogleChromeManagementV1NetworkBandwidthReport struct {
  2216  	// DownloadSpeedKbps: Output only. Download speed in kilobits per second.
  2217  	DownloadSpeedKbps int64 `json:"downloadSpeedKbps,omitempty,string"`
  2218  	// ReportTime: Output only. Timestamp of when the report was collected.
  2219  	ReportTime string `json:"reportTime,omitempty"`
  2220  	// ForceSendFields is a list of field names (e.g. "DownloadSpeedKbps") to
  2221  	// unconditionally include in API requests. By default, fields with empty or
  2222  	// default values are omitted from API requests. See
  2223  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2224  	// details.
  2225  	ForceSendFields []string `json:"-"`
  2226  	// NullFields is a list of field names (e.g. "DownloadSpeedKbps") to include in
  2227  	// API requests with the JSON null value. By default, fields with empty values
  2228  	// are omitted from API requests. See
  2229  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1NetworkDevice: Details about the network device. *
  2239  // This field provides device information, which is static and will not change
  2240  // over time. * Data for this field is controlled via policy:
  2241  // ReportNetworkDeviceConfiguration
  2242  // (https://chromeenterprise.google/policies/#ReportNetworkDeviceConfiguration)
  2243  // * Data Collection Frequency: At device startup * Default Data Reporting
  2244  // Frequency: At device startup - Policy Controlled: Yes * Cache: If the device
  2245  // is offline, the collected data is stored locally, and will be reported when
  2246  // the device is next online: Yes * Reported for affiliated users only: N/A
  2247  type GoogleChromeManagementV1NetworkDevice struct {
  2248  	// Iccid: Output only. The integrated circuit card ID associated with the
  2249  	// device's sim card.
  2250  	Iccid string `json:"iccid,omitempty"`
  2251  	// Imei: Output only. IMEI (if applicable) of the corresponding network device.
  2252  	Imei string `json:"imei,omitempty"`
  2253  	// MacAddress: Output only. MAC address (if applicable) of the corresponding
  2254  	// network device.
  2255  	MacAddress string `json:"macAddress,omitempty"`
  2256  	// Mdn: Output only. The mobile directory number associated with the device's
  2257  	// sim card.
  2258  	Mdn string `json:"mdn,omitempty"`
  2259  	// Meid: Output only. MEID (if applicable) of the corresponding network device.
  2260  	Meid string `json:"meid,omitempty"`
  2261  	// Type: Output only. Network device type.
  2262  	//
  2263  	// Possible values:
  2264  	//   "NETWORK_DEVICE_TYPE_UNSPECIFIED" - Network device type not specified.
  2265  	//   "CELLULAR_DEVICE" - Cellular device.
  2266  	//   "ETHERNET_DEVICE" - Ethernet device.
  2267  	//   "WIFI_DEVICE" - Wifi device.
  2268  	Type string `json:"type,omitempty"`
  2269  	// ForceSendFields is a list of field names (e.g. "Iccid") to unconditionally
  2270  	// include in API requests. By default, fields with empty or default values are
  2271  	// omitted from API requests. See
  2272  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2273  	// details.
  2274  	ForceSendFields []string `json:"-"`
  2275  	// NullFields is a list of field names (e.g. "Iccid") to include in API
  2276  	// requests with the JSON null value. By default, fields with empty values are
  2277  	// omitted from API requests. See
  2278  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1NetworkDiagnosticsReport: Network testing results to
  2288  // determine the health of the device's network connection, for example whether
  2289  // the HTTPS latency is high or normal. * Granular permission needed:
  2290  // TELEMETRY_API_NETWORK_REPORT
  2291  type GoogleChromeManagementV1NetworkDiagnosticsReport struct {
  2292  	// HttpsLatencyData: Output only. HTTPS latency test data.
  2293  	HttpsLatencyData *GoogleChromeManagementV1HttpsLatencyRoutineData `json:"httpsLatencyData,omitempty"`
  2294  	// ReportTime: Output only. Timestamp of when the diagnostics were collected.
  2295  	ReportTime string `json:"reportTime,omitempty"`
  2296  	// ForceSendFields is a list of field names (e.g. "HttpsLatencyData") to
  2297  	// unconditionally include in API requests. By default, fields with empty or
  2298  	// default values are omitted from API requests. See
  2299  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2300  	// details.
  2301  	ForceSendFields []string `json:"-"`
  2302  	// NullFields is a list of field names (e.g. "HttpsLatencyData") to include in
  2303  	// API requests with the JSON null value. By default, fields with empty values
  2304  	// are omitted from API requests. See
  2305  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1NetworkInfo: Network device information. * This
  2315  // field provides device information, which is static and will not change over
  2316  // time. * Data for this field is controlled via policy:
  2317  // ReportNetworkDeviceConfiguration
  2318  // (https://chromeenterprise.google/policies/#ReportNetworkDeviceConfiguration)
  2319  // * Data Collection Frequency: At device startup * Default Data Reporting
  2320  // Frequency: At device startup - Policy Controlled: Yes * Cache: If the device
  2321  // is offline, the collected data is stored locally, and will be reported when
  2322  // the device is next online: Yes * Reported for affiliated users only: N/A *
  2323  // Granular permission needed: TELEMETRY_API_NETWORK_INFO
  2324  type GoogleChromeManagementV1NetworkInfo struct {
  2325  	// NetworkDevices: Output only. List of network devices.
  2326  	NetworkDevices []*GoogleChromeManagementV1NetworkDevice `json:"networkDevices,omitempty"`
  2327  	// ForceSendFields is a list of field names (e.g. "NetworkDevices") to
  2328  	// unconditionally include in API requests. By default, fields with empty or
  2329  	// default values are omitted from API requests. See
  2330  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2331  	// details.
  2332  	ForceSendFields []string `json:"-"`
  2333  	// NullFields is a list of field names (e.g. "NetworkDevices") to include in
  2334  	// API requests with the JSON null value. By default, fields with empty values
  2335  	// are omitted from API requests. See
  2336  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1NetworkStatusReport: State of visible/configured
  2346  // networks. * This field is telemetry information and this will change over
  2347  // time as the device is utilized. * Data for this field is controlled via
  2348  // policy: ReportNetworkStatus
  2349  // (https://chromeenterprise.google/policies/#ReportNetworkStatus) * Data
  2350  // Collection Frequency: 60 minutes * Default Data Reporting Frequency: 3 hours
  2351  // - Policy Controlled: Yes * Cache: If the device is offline, the collected
  2352  // data is stored locally, and will be reported when the device is next online:
  2353  // Yes * Reported for affiliated users only: Yes * Granular permission needed:
  2354  // TELEMETRY_API_NETWORK_REPORT
  2355  type GoogleChromeManagementV1NetworkStatusReport struct {
  2356  	// ConnectionState: Output only. Current connection state of the network.
  2357  	//
  2358  	// Possible values:
  2359  	//   "NETWORK_CONNECTION_STATE_UNSPECIFIED" - Network connection state
  2360  	// unspecified.
  2361  	//   "ONLINE" - The network is connected and internet connectivity is
  2362  	// available.
  2363  	//   "CONNECTED" - The network is connected and not in a detected portal state,
  2364  	// but internet connectivity may not be available.
  2365  	//   "PORTAL" - The network is connected but a portal state was detected.
  2366  	// Internet connectivity may be limited.
  2367  	//   "CONNECTING" - The network is in the process of connecting.
  2368  	//   "NOT_CONNECTED" - The network is not connected.
  2369  	ConnectionState string `json:"connectionState,omitempty"`
  2370  	// ConnectionType: Output only. Network connection type.
  2371  	//
  2372  	// Possible values:
  2373  	//   "NETWORK_TYPE_UNSPECIFIED" - Network connection type unspecified
  2374  	//   "CELLULAR" - Cellular network connection.
  2375  	//   "ETHERNET" - Ethernet network connection.
  2376  	//   "TETHER" - Tether network connection.
  2377  	//   "VPN" - VPN network connection.
  2378  	//   "WIFI" - Wifi network connection.
  2379  	ConnectionType string `json:"connectionType,omitempty"`
  2380  	// EncryptionOn: Output only. Whether the wifi encryption key is turned off.
  2381  	EncryptionOn bool `json:"encryptionOn,omitempty"`
  2382  	// GatewayIpAddress: Output only. Gateway IP address.
  2383  	GatewayIpAddress string `json:"gatewayIpAddress,omitempty"`
  2384  	// Guid: Output only. Network connection guid.
  2385  	Guid string `json:"guid,omitempty"`
  2386  	// LanIpAddress: Output only. LAN IP address.
  2387  	LanIpAddress string `json:"lanIpAddress,omitempty"`
  2388  	// ReceivingBitRateMbps: Output only. Receiving bit rate measured in Megabits
  2389  	// per second.
  2390  	ReceivingBitRateMbps int64 `json:"receivingBitRateMbps,omitempty,string"`
  2391  	// ReportTime: Output only. Time at which the network state was reported.
  2392  	ReportTime string `json:"reportTime,omitempty"`
  2393  	// SampleFrequency: Output only. Frequency the report is sampled.
  2394  	SampleFrequency string `json:"sampleFrequency,omitempty"`
  2395  	// SignalStrengthDbm: Output only. Signal strength for wireless networks
  2396  	// measured in decibels.
  2397  	SignalStrengthDbm int64 `json:"signalStrengthDbm,omitempty"`
  2398  	// TransmissionBitRateMbps: Output only. Transmission bit rate measured in
  2399  	// Megabits per second.
  2400  	TransmissionBitRateMbps int64 `json:"transmissionBitRateMbps,omitempty,string"`
  2401  	// TransmissionPowerDbm: Output only. Transmission power measured in decibels.
  2402  	TransmissionPowerDbm int64 `json:"transmissionPowerDbm,omitempty"`
  2403  	// WifiLinkQuality: Output only. Wifi link quality. Value ranges from [0, 70].
  2404  	// 0 indicates no signal and 70 indicates a strong signal.
  2405  	WifiLinkQuality int64 `json:"wifiLinkQuality,omitempty,string"`
  2406  	// WifiPowerManagementEnabled: Output only. Wifi power management enabled
  2407  	WifiPowerManagementEnabled bool `json:"wifiPowerManagementEnabled,omitempty"`
  2408  	// ForceSendFields is a list of field names (e.g. "ConnectionState") to
  2409  	// unconditionally include in API requests. By default, fields with empty or
  2410  	// default values are omitted from API requests. See
  2411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2412  	// details.
  2413  	ForceSendFields []string `json:"-"`
  2414  	// NullFields is a list of field names (e.g. "ConnectionState") to include in
  2415  	// API requests with the JSON null value. By default, fields with empty values
  2416  	// are omitted from API requests. See
  2417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1OsUpdateStatus: Contains information regarding the
  2427  // current OS update status. * This field is telemetry information and this
  2428  // will change over time as the device is utilized. * Data for this field is
  2429  // controlled via policy: ReportDeviceOsUpdateStatus
  2430  // (https://chromeenterprise.google/policies/#ReportDeviceOsUpdateStatus) *
  2431  // Data Collection Frequency: Only at Upload * Default Data Reporting
  2432  // Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is
  2433  // offline, the collected data is stored locally, and will be reported when the
  2434  // device is next online: No * Reported for affiliated users only: N/A *
  2435  // Granular permission needed: TELEMETRY_API_OS_REPORT
  2436  type GoogleChromeManagementV1OsUpdateStatus struct {
  2437  	// LastRebootTime: Output only. Timestamp of the last reboot.
  2438  	LastRebootTime string `json:"lastRebootTime,omitempty"`
  2439  	// LastUpdateCheckTime: Output only. Timestamp of the last update check.
  2440  	LastUpdateCheckTime string `json:"lastUpdateCheckTime,omitempty"`
  2441  	// LastUpdateTime: Output only. Timestamp of the last successful update.
  2442  	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
  2443  	// NewPlatformVersion: Output only. New platform version of the os image being
  2444  	// downloaded and applied. It is only set when update status is
  2445  	// OS_IMAGE_DOWNLOAD_IN_PROGRESS or OS_UPDATE_NEED_REBOOT. Note this could be a
  2446  	// dummy "0.0.0.0" for OS_UPDATE_NEED_REBOOT status for some edge cases, e.g.
  2447  	// update engine is restarted without a reboot.
  2448  	NewPlatformVersion string `json:"newPlatformVersion,omitempty"`
  2449  	// NewRequestedPlatformVersion: Output only. New requested platform version
  2450  	// from the pending updated kiosk app.
  2451  	NewRequestedPlatformVersion string `json:"newRequestedPlatformVersion,omitempty"`
  2452  	// UpdateState: Output only. Current state of the os update.
  2453  	//
  2454  	// Possible values:
  2455  	//   "UPDATE_STATE_UNSPECIFIED" - State unspecified.
  2456  	//   "OS_IMAGE_DOWNLOAD_NOT_STARTED" - OS has not started downloading.
  2457  	//   "OS_IMAGE_DOWNLOAD_IN_PROGRESS" - OS has started download on device.
  2458  	//   "OS_UPDATE_NEED_REBOOT" - Device needs reboot to finish upload.
  2459  	UpdateState string `json:"updateState,omitempty"`
  2460  	// ForceSendFields is a list of field names (e.g. "LastRebootTime") to
  2461  	// unconditionally include in API requests. By default, fields with empty or
  2462  	// default values are omitted from API requests. See
  2463  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2464  	// details.
  2465  	ForceSendFields []string `json:"-"`
  2466  	// NullFields is a list of field names (e.g. "LastRebootTime") to include in
  2467  	// API requests with the JSON null value. By default, fields with empty values
  2468  	// are omitted from API requests. See
  2469  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1PeripheralsReport: Peripherals report. * Granular
  2479  // permission needed: TELEMETRY_API_PERIPHERALS_REPORT
  2480  type GoogleChromeManagementV1PeripheralsReport struct {
  2481  	// ReportTime: Output only. Timestamp of when the report was collected.
  2482  	ReportTime string `json:"reportTime,omitempty"`
  2483  	// UsbPeripheralReport: Reports of all usb connected devices.
  2484  	UsbPeripheralReport []*GoogleChromeManagementV1UsbPeripheralReport `json:"usbPeripheralReport,omitempty"`
  2485  	// ForceSendFields is a list of field names (e.g. "ReportTime") to
  2486  	// unconditionally include in API requests. By default, fields with empty or
  2487  	// default values are omitted from API requests. See
  2488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2489  	// details.
  2490  	ForceSendFields []string `json:"-"`
  2491  	// NullFields is a list of field names (e.g. "ReportTime") to include in API
  2492  	// requests with the JSON null value. By default, fields with empty values are
  2493  	// omitted from API requests. See
  2494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1PrintJob: Represents a request to print a document
  2504  // that has been submitted to a printer.
  2505  type GoogleChromeManagementV1PrintJob struct {
  2506  	// ColorMode: Color mode.
  2507  	//
  2508  	// Possible values:
  2509  	//   "COLOR_MODE_UNSPECIFIED" - Unspecified.
  2510  	//   "BLACK_AND_WHITE" - Black and white.
  2511  	//   "COLOR" - Color.
  2512  	ColorMode string `json:"colorMode,omitempty"`
  2513  	// CompleteTime: Print job completion timestamp.
  2514  	CompleteTime string `json:"completeTime,omitempty"`
  2515  	// CopyCount: Number of copies.
  2516  	CopyCount int64 `json:"copyCount,omitempty"`
  2517  	// CreateTime: Print job creation timestamp.
  2518  	CreateTime string `json:"createTime,omitempty"`
  2519  	// DocumentPageCount: Number of pages in the document.
  2520  	DocumentPageCount int64 `json:"documentPageCount,omitempty"`
  2521  	// DuplexMode: Duplex mode.
  2522  	//
  2523  	// Possible values:
  2524  	//   "DUPLEX_MODE_UNSPECIFIED" - Unspecified.
  2525  	//   "ONE_SIDED" - One-sided.
  2526  	//   "TWO_SIDED_LONG_EDGE" - Two-sided flipping over long edge.
  2527  	//   "TWO_SIDED_SHORT_EDGE" - Two-sided flipping over short edge.
  2528  	DuplexMode string `json:"duplexMode,omitempty"`
  2529  	// Id: Unique ID of the print job.
  2530  	Id string `json:"id,omitempty"`
  2531  	// Printer: Name of the printer used for printing.
  2532  	Printer string `json:"printer,omitempty"`
  2533  	// PrinterId: API ID of the printer used for printing.
  2534  	PrinterId string `json:"printerId,omitempty"`
  2535  	// State: The final state of the job.
  2536  	//
  2537  	// Possible values:
  2538  	//   "STATE_UNSPECIFIED" - Print job is in an unspecified state.
  2539  	//   "PRINTED" - The document was successfully printed.
  2540  	//   "CANCELLED" - Print job was cancelled.
  2541  	//   "FAILED" - Print job failed.
  2542  	State string `json:"state,omitempty"`
  2543  	// Title: The title of the document.
  2544  	Title string `json:"title,omitempty"`
  2545  	// UserEmail: The primary e-mail address of the user who submitted the print
  2546  	// job.
  2547  	UserEmail string `json:"userEmail,omitempty"`
  2548  	// UserId: The unique Directory API ID of the user who submitted the print job.
  2549  	UserId string `json:"userId,omitempty"`
  2550  	// ForceSendFields is a list of field names (e.g. "ColorMode") to
  2551  	// unconditionally include in API requests. By default, fields with empty or
  2552  	// default values are omitted from API requests. See
  2553  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2554  	// details.
  2555  	ForceSendFields []string `json:"-"`
  2556  	// NullFields is a list of field names (e.g. "ColorMode") to include in API
  2557  	// requests with the JSON null value. By default, fields with empty values are
  2558  	// omitted from API requests. See
  2559  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1PrinterReport: Report for CountPrintJobsByPrinter,
  2569  // contains statistics on printer usage. Contains the total number of print
  2570  // jobs initiated with this printer, the number of users and the number of
  2571  // devices that have initiated at least one print job with this printer.
  2572  type GoogleChromeManagementV1PrinterReport struct {
  2573  	// DeviceCount: Number of chrome devices that have been used to send print jobs
  2574  	// to the specified printer.
  2575  	DeviceCount int64 `json:"deviceCount,omitempty,string"`
  2576  	// JobCount: Number of print jobs sent to the printer.
  2577  	JobCount int64 `json:"jobCount,omitempty,string"`
  2578  	// Printer: Printer name.
  2579  	Printer string `json:"printer,omitempty"`
  2580  	// PrinterId: Printer API ID.
  2581  	PrinterId string `json:"printerId,omitempty"`
  2582  	// PrinterModel: Printer model.
  2583  	PrinterModel string `json:"printerModel,omitempty"`
  2584  	// UserCount: Number of users that have sent print jobs to the printer.
  2585  	UserCount int64 `json:"userCount,omitempty,string"`
  2586  	// ForceSendFields is a list of field names (e.g. "DeviceCount") to
  2587  	// unconditionally include in API requests. By default, fields with empty or
  2588  	// default values are omitted from API requests. See
  2589  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2590  	// details.
  2591  	ForceSendFields []string `json:"-"`
  2592  	// NullFields is a list of field names (e.g. "DeviceCount") to include in API
  2593  	// requests with the JSON null value. By default, fields with empty values are
  2594  	// omitted from API requests. See
  2595  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1RuntimeCountersReport: Runtime counters retrieved
  2605  // from CPU. Currently the runtime counters telemetry is only supported by
  2606  // Intel vPro PSR on Gen 14+.
  2607  type GoogleChromeManagementV1RuntimeCountersReport struct {
  2608  	// EnterHibernationCount: Number of times that the device has entered into the
  2609  	// hibernation state. Currently obtained via the PSR, count from S0->S4.
  2610  	EnterHibernationCount int64 `json:"enterHibernationCount,omitempty,string"`
  2611  	// EnterPoweroffCount: Number of times that the device has entered into the
  2612  	// power-off state. Currently obtained via the PSR, count from S0->S5.
  2613  	EnterPoweroffCount int64 `json:"enterPoweroffCount,omitempty,string"`
  2614  	// EnterSleepCount: Number of times that the device has entered into the sleep
  2615  	// state. Currently obtained via the PSR, count from S0->S3.
  2616  	EnterSleepCount int64 `json:"enterSleepCount,omitempty,string"`
  2617  	// ReportTime: Timestamp when the report was collected.
  2618  	ReportTime string `json:"reportTime,omitempty"`
  2619  	// UptimeRuntimeDuration: Total lifetime runtime. Currently always S0 runtime
  2620  	// from Intel vPro PSR.
  2621  	UptimeRuntimeDuration string `json:"uptimeRuntimeDuration,omitempty"`
  2622  	// ForceSendFields is a list of field names (e.g. "EnterHibernationCount") to
  2623  	// unconditionally include in API requests. By default, fields with empty or
  2624  	// default values are omitted from API requests. See
  2625  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2626  	// details.
  2627  	ForceSendFields []string `json:"-"`
  2628  	// NullFields is a list of field names (e.g. "EnterHibernationCount") to
  2629  	// include in API requests with the JSON null value. By default, fields with
  2630  	// empty values are omitted from API requests. See
  2631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1StorageInfo: Status data for storage. * This field
  2641  // is telemetry information and this will change over time as the device is
  2642  // utilized. * Data for this field is controlled via policy:
  2643  // ReportDeviceStorageStatus
  2644  // (https://chromeenterprise.google/policies/#ReportDeviceStorageStatus) * Data
  2645  // Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3
  2646  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
  2647  // collected data is stored locally, and will be reported when the device is
  2648  // next online: No * Reported for affiliated users only: N/A * Granular
  2649  // permission needed: TELEMETRY_API_STORAGE_INFO
  2650  type GoogleChromeManagementV1StorageInfo struct {
  2651  	// AvailableDiskBytes: The available space for user data storage in the device
  2652  	// in bytes.
  2653  	AvailableDiskBytes int64 `json:"availableDiskBytes,omitempty,string"`
  2654  	// TotalDiskBytes: The total space for user data storage in the device in
  2655  	// bytes.
  2656  	TotalDiskBytes int64 `json:"totalDiskBytes,omitempty,string"`
  2657  	// Volume: Information for disk volumes
  2658  	Volume []*GoogleChromeManagementV1StorageInfoDiskVolume `json:"volume,omitempty"`
  2659  	// ForceSendFields is a list of field names (e.g. "AvailableDiskBytes") to
  2660  	// unconditionally include in API requests. By default, fields with empty or
  2661  	// default values are omitted from API requests. See
  2662  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2663  	// details.
  2664  	ForceSendFields []string `json:"-"`
  2665  	// NullFields is a list of field names (e.g. "AvailableDiskBytes") to include
  2666  	// in API requests with the JSON null value. By default, fields with empty
  2667  	// values are omitted from API requests. See
  2668  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1StorageInfoDiskVolume: Information for disk volumes
  2678  type GoogleChromeManagementV1StorageInfoDiskVolume struct {
  2679  	// StorageFreeBytes: Free storage space in bytes.
  2680  	StorageFreeBytes int64 `json:"storageFreeBytes,omitempty,string"`
  2681  	// StorageTotalBytes: Total storage space in bytes.
  2682  	StorageTotalBytes int64 `json:"storageTotalBytes,omitempty,string"`
  2683  	// VolumeId: Disk volume id.
  2684  	VolumeId string `json:"volumeId,omitempty"`
  2685  	// ForceSendFields is a list of field names (e.g. "StorageFreeBytes") to
  2686  	// unconditionally include in API requests. By default, fields with empty or
  2687  	// default values are omitted from API requests. See
  2688  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2689  	// details.
  2690  	ForceSendFields []string `json:"-"`
  2691  	// NullFields is a list of field names (e.g. "StorageFreeBytes") to include in
  2692  	// API requests with the JSON null value. By default, fields with empty values
  2693  	// are omitted from API requests. See
  2694  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1StorageStatusReport: Status data for storage. * This
  2704  // field is telemetry information and this will change over time as the device
  2705  // is utilized. * Data for this field is controlled via policy:
  2706  // ReportDeviceStorageStatus
  2707  // (https://chromeenterprise.google/policies/#ReportDeviceStorageStatus) * Data
  2708  // Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3
  2709  // hours - Policy Controlled: Yes * Cache: If the device is offline, the
  2710  // collected data is stored locally, and will be reported when the device is
  2711  // next online: No * Reported for affiliated users only: N/A * Granular
  2712  // permission needed: TELEMETRY_API_STORAGE_REPORT
  2713  type GoogleChromeManagementV1StorageStatusReport struct {
  2714  	// Disk: Output only. Reports on disk.
  2715  	Disk []*GoogleChromeManagementV1DiskInfo `json:"disk,omitempty"`
  2716  	// ReportTime: Output only. Timestamp of when the sample was collected on
  2717  	// device
  2718  	ReportTime string `json:"reportTime,omitempty"`
  2719  	// ForceSendFields is a list of field names (e.g. "Disk") to unconditionally
  2720  	// include in API requests. By default, fields with empty or default values are
  2721  	// omitted from API requests. See
  2722  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2723  	// details.
  2724  	ForceSendFields []string `json:"-"`
  2725  	// NullFields is a list of field names (e.g. "Disk") to include in API requests
  2726  	// with the JSON null value. By default, fields with empty values are omitted
  2727  	// from API requests. See
  2728  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent:
  2738  // `TelemetryAudioSevereUnderrunEvent` is triggered when a audio devices run
  2739  // out of buffer data for more than 5 seconds. * Granular permission needed:
  2740  // TELEMETRY_API_AUDIO_REPORT
  2741  type GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent struct {
  2742  }
  2743  
  2744  // GoogleChromeManagementV1TelemetryDevice: Telemetry data collected from a
  2745  // managed device. * Granular permission needed: TELEMETRY_API_DEVICE
  2746  type GoogleChromeManagementV1TelemetryDevice struct {
  2747  	// AudioStatusReport: Output only. Audio reports collected periodically sorted
  2748  	// in a decreasing order of report_time.
  2749  	AudioStatusReport []*GoogleChromeManagementV1AudioStatusReport `json:"audioStatusReport,omitempty"`
  2750  	// BatteryInfo: Output only. Information on battery specs for the device.
  2751  	BatteryInfo []*GoogleChromeManagementV1BatteryInfo `json:"batteryInfo,omitempty"`
  2752  	// BatteryStatusReport: Output only. Battery reports collected periodically.
  2753  	BatteryStatusReport []*GoogleChromeManagementV1BatteryStatusReport `json:"batteryStatusReport,omitempty"`
  2754  	// BootPerformanceReport: Output only. Boot performance reports of the device.
  2755  	BootPerformanceReport []*GoogleChromeManagementV1BootPerformanceReport `json:"bootPerformanceReport,omitempty"`
  2756  	// CpuInfo: Output only. Information regarding CPU specs for the device.
  2757  	CpuInfo []*GoogleChromeManagementV1CpuInfo `json:"cpuInfo,omitempty"`
  2758  	// CpuStatusReport: Output only. CPU status reports collected periodically
  2759  	// sorted in a decreasing order of report_time.
  2760  	CpuStatusReport []*GoogleChromeManagementV1CpuStatusReport `json:"cpuStatusReport,omitempty"`
  2761  	// Customer: Output only. Google Workspace Customer whose enterprise enrolled
  2762  	// the device.
  2763  	Customer string `json:"customer,omitempty"`
  2764  	// DeviceId: Output only. The unique Directory API ID of the device. This value
  2765  	// is the same as the Admin Console's Directory API ID in the ChromeOS Devices
  2766  	// tab
  2767  	DeviceId string `json:"deviceId,omitempty"`
  2768  	// GraphicsInfo: Output only. Contains information regarding Graphic
  2769  	// peripherals for the device.
  2770  	GraphicsInfo *GoogleChromeManagementV1GraphicsInfo `json:"graphicsInfo,omitempty"`
  2771  	// GraphicsStatusReport: Output only. Graphics reports collected periodically.
  2772  	GraphicsStatusReport []*GoogleChromeManagementV1GraphicsStatusReport `json:"graphicsStatusReport,omitempty"`
  2773  	// HeartbeatStatusReport: Output only. Heartbeat status report containing
  2774  	// timestamps periodically sorted in decreasing order of report_time
  2775  	HeartbeatStatusReport []*GoogleChromeManagementV1HeartbeatStatusReport `json:"heartbeatStatusReport,omitempty"`
  2776  	// KioskAppStatusReport: Output only. Kiosk app status report for the kiosk
  2777  	// device
  2778  	KioskAppStatusReport []*GoogleChromeManagementV1KioskAppStatusReport `json:"kioskAppStatusReport,omitempty"`
  2779  	// MemoryInfo: Output only. Information regarding memory specs for the device.
  2780  	MemoryInfo *GoogleChromeManagementV1MemoryInfo `json:"memoryInfo,omitempty"`
  2781  	// MemoryStatusReport: Output only. Memory status reports collected
  2782  	// periodically sorted decreasing by report_time.
  2783  	MemoryStatusReport []*GoogleChromeManagementV1MemoryStatusReport `json:"memoryStatusReport,omitempty"`
  2784  	// Name: Output only. Resource name of the device.
  2785  	Name string `json:"name,omitempty"`
  2786  	// NetworkBandwidthReport: Output only. Network bandwidth reports collected
  2787  	// periodically sorted in a decreasing order of report_time.
  2788  	NetworkBandwidthReport []*GoogleChromeManagementV1NetworkBandwidthReport `json:"networkBandwidthReport,omitempty"`
  2789  	// NetworkDiagnosticsReport: Output only. Network diagnostics collected
  2790  	// periodically.
  2791  	NetworkDiagnosticsReport []*GoogleChromeManagementV1NetworkDiagnosticsReport `json:"networkDiagnosticsReport,omitempty"`
  2792  	// NetworkInfo: Output only. Network devices information.
  2793  	NetworkInfo *GoogleChromeManagementV1NetworkInfo `json:"networkInfo,omitempty"`
  2794  	// NetworkStatusReport: Output only. Network specs collected periodically.
  2795  	NetworkStatusReport []*GoogleChromeManagementV1NetworkStatusReport `json:"networkStatusReport,omitempty"`
  2796  	// OrgUnitId: Output only. Organization unit ID of the device.
  2797  	OrgUnitId string `json:"orgUnitId,omitempty"`
  2798  	// OsUpdateStatus: Output only. Contains relevant information regarding
  2799  	// ChromeOS update status.
  2800  	OsUpdateStatus []*GoogleChromeManagementV1OsUpdateStatus `json:"osUpdateStatus,omitempty"`
  2801  	// PeripheralsReport: Output only. Peripherals reports collected periodically
  2802  	// sorted in a decreasing order of report_time.
  2803  	PeripheralsReport []*GoogleChromeManagementV1PeripheralsReport `json:"peripheralsReport,omitempty"`
  2804  	// RuntimeCountersReport: Output only. Runtime counters reports collected
  2805  	// device lifetime runtime, as well as the counts of S0->S3, S0->S4, and S0->S5
  2806  	// transitions, meaning entering into sleep, hibernation, and power-off states
  2807  	RuntimeCountersReport []*GoogleChromeManagementV1RuntimeCountersReport `json:"runtimeCountersReport,omitempty"`
  2808  	// SerialNumber: Output only. Device serial number. This value is the same as
  2809  	// the Admin Console's Serial Number in the ChromeOS Devices tab.
  2810  	SerialNumber string `json:"serialNumber,omitempty"`
  2811  	// StorageInfo: Output only. Information of storage specs for the device.
  2812  	StorageInfo *GoogleChromeManagementV1StorageInfo `json:"storageInfo,omitempty"`
  2813  	// StorageStatusReport: Output only. Storage reports collected periodically.
  2814  	StorageStatusReport []*GoogleChromeManagementV1StorageStatusReport `json:"storageStatusReport,omitempty"`
  2815  	// ThunderboltInfo: Output only. Information on Thunderbolt bus.
  2816  	ThunderboltInfo []*GoogleChromeManagementV1ThunderboltInfo `json:"thunderboltInfo,omitempty"`
  2817  
  2818  	// ServerResponse contains the HTTP response code and headers from the server.
  2819  	googleapi.ServerResponse `json:"-"`
  2820  	// ForceSendFields is a list of field names (e.g. "AudioStatusReport") to
  2821  	// unconditionally include in API requests. By default, fields with empty or
  2822  	// default values are omitted from API requests. See
  2823  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2824  	// details.
  2825  	ForceSendFields []string `json:"-"`
  2826  	// NullFields is a list of field names (e.g. "AudioStatusReport") to include in
  2827  	// API requests with the JSON null value. By default, fields with empty values
  2828  	// are omitted from API requests. See
  2829  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryDeviceInfo: Information about a device
  2839  // associated with telemetry data. * Granular Permission needed:
  2840  // TELEMETRY_API_DEVICE
  2841  type GoogleChromeManagementV1TelemetryDeviceInfo struct {
  2842  	// DeviceId: Output only. The unique Directory API ID of the device. This value
  2843  	// is the same as the Admin Console's Directory API ID in the ChromeOS Devices
  2844  	// tab.
  2845  	DeviceId string `json:"deviceId,omitempty"`
  2846  	// OrgUnitId: Output only. Organization unit ID of the device.
  2847  	OrgUnitId string `json:"orgUnitId,omitempty"`
  2848  	// ForceSendFields is a list of field names (e.g. "DeviceId") to
  2849  	// unconditionally include in API requests. By default, fields with empty or
  2850  	// default values are omitted from API requests. See
  2851  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2852  	// details.
  2853  	ForceSendFields []string `json:"-"`
  2854  	// NullFields is a list of field names (e.g. "DeviceId") to include in API
  2855  	// requests with the JSON null value. By default, fields with empty values are
  2856  	// omitted from API requests. See
  2857  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryEvent: Telemetry data reported by a managed
  2867  // device.
  2868  type GoogleChromeManagementV1TelemetryEvent struct {
  2869  	// AudioSevereUnderrunEvent: Output only. Payload for audio severe underrun
  2870  	// event. Present only when the `event_type` field is `AUDIO_SEVERE_UNDERRUN`.
  2871  	AudioSevereUnderrunEvent *GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent `json:"audioSevereUnderrunEvent,omitempty"`
  2872  	// Device: Output only. Information about the device associated with the event.
  2873  	Device *GoogleChromeManagementV1TelemetryDeviceInfo `json:"device,omitempty"`
  2874  	// EventType: The event type of the current event.
  2875  	//
  2876  	// Possible values:
  2877  	//   "EVENT_TYPE_UNSPECIFIED" - Event type unknown.
  2878  	//   "AUDIO_SEVERE_UNDERRUN" - Triggered when a audio devices run out of buffer
  2879  	// data for more than 5 seconds.
  2880  	//   "NETWORK_STATE_CHANGE" - Triggered immediately on any changes to a network
  2881  	// connection.
  2882  	//   "USB_ADDED" - Triggered when USB devices are added.
  2883  	//   "USB_REMOVED" - Triggered when USB devices are removed.
  2884  	//   "NETWORK_HTTPS_LATENCY_CHANGE" - Triggered when a new HTTPS latency
  2885  	// problem was detected or the device has recovered form an existing HTTPS
  2886  	// latency problem.
  2887  	//   "WIFI_SIGNAL_STRENGTH_LOW" - Triggered when connected WiFi network signal
  2888  	// strength drops below -70dBm.
  2889  	//   "WIFI_SIGNAL_STRENGTH_RECOVERED" - Triggered when connected WiFi network
  2890  	// signal strength is recovered from a signal drop.
  2891  	//   "VPN_CONNECTION_STATE_CHANGE" - Triggered on changes to VPN connections.
  2892  	EventType string `json:"eventType,omitempty"`
  2893  	// HttpsLatencyChangeEvent: Output only. Payload for HTTPS latency change
  2894  	// event. Present only when `event_type` is `NETWORK_HTTPS_LATENCY_CHANGE`.
  2895  	HttpsLatencyChangeEvent *GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent `json:"httpsLatencyChangeEvent,omitempty"`
  2896  	// Name: Output only. Resource name of the event.
  2897  	Name string `json:"name,omitempty"`
  2898  	// NetworkStateChangeEvent: Output only. Payload for network connection state
  2899  	// change event. Present only when `event_type` is `NETWORK_STATE_CHANGE`.
  2900  	NetworkStateChangeEvent *GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent `json:"networkStateChangeEvent,omitempty"`
  2901  	// ReportTime: Timestamp that represents when the event was reported.
  2902  	ReportTime string `json:"reportTime,omitempty"`
  2903  	// UsbPeripheralsEvent: Output only. Payload for usb peripherals event. Present
  2904  	// only when the `event_type` field is either `USB_ADDED` or `USB_REMOVED`.
  2905  	UsbPeripheralsEvent *GoogleChromeManagementV1TelemetryUsbPeripheralsEvent `json:"usbPeripheralsEvent,omitempty"`
  2906  	// User: Output only. Information about the user associated with the event.
  2907  	User *GoogleChromeManagementV1TelemetryUserInfo `json:"user,omitempty"`
  2908  	// VpnConnectionStateChangeEvent: Output only. Payload for VPN connection state
  2909  	// change event. Present only when `event_type` is
  2910  	// `VPN_CONNECTION_STATE_CHANGE`.
  2911  	VpnConnectionStateChangeEvent *GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent `json:"vpnConnectionStateChangeEvent,omitempty"`
  2912  	// WifiSignalStrengthEvent: Output only. Payload for WiFi signal strength
  2913  	// events. Present only when `event_type` is `WIFI_SIGNAL_STRENGTH_LOW` or
  2914  	// `WIFI_SIGNAL_STRENGTH_RECOVERED`.
  2915  	WifiSignalStrengthEvent *GoogleChromeManagementV1TelemetryNetworkSignalStrengthEvent `json:"wifiSignalStrengthEvent,omitempty"`
  2916  	// ForceSendFields is a list of field names (e.g. "AudioSevereUnderrunEvent")
  2917  	// to unconditionally include in API requests. By default, fields with empty or
  2918  	// default values are omitted from API requests. See
  2919  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2920  	// details.
  2921  	ForceSendFields []string `json:"-"`
  2922  	// NullFields is a list of field names (e.g. "AudioSevereUnderrunEvent") to
  2923  	// include in API requests with the JSON null value. By default, fields with
  2924  	// empty values are omitted from API requests. See
  2925  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryEventNotificationFilter: Configures how the
  2935  // telemetry events should be filtered.
  2936  type GoogleChromeManagementV1TelemetryEventNotificationFilter struct {
  2937  	// EventTypes: Only sends the notifications for events of these types. Must not
  2938  	// be empty.
  2939  	//
  2940  	// Possible values:
  2941  	//   "EVENT_TYPE_UNSPECIFIED" - Event type unknown.
  2942  	//   "AUDIO_SEVERE_UNDERRUN" - Triggered when a audio devices run out of buffer
  2943  	// data for more than 5 seconds.
  2944  	//   "NETWORK_STATE_CHANGE" - Triggered immediately on any changes to a network
  2945  	// connection.
  2946  	//   "USB_ADDED" - Triggered when USB devices are added.
  2947  	//   "USB_REMOVED" - Triggered when USB devices are removed.
  2948  	//   "NETWORK_HTTPS_LATENCY_CHANGE" - Triggered when a new HTTPS latency
  2949  	// problem was detected or the device has recovered form an existing HTTPS
  2950  	// latency problem.
  2951  	//   "WIFI_SIGNAL_STRENGTH_LOW" - Triggered when connected WiFi network signal
  2952  	// strength drops below -70dBm.
  2953  	//   "WIFI_SIGNAL_STRENGTH_RECOVERED" - Triggered when connected WiFi network
  2954  	// signal strength is recovered from a signal drop.
  2955  	//   "VPN_CONNECTION_STATE_CHANGE" - Triggered on changes to VPN connections.
  2956  	EventTypes []string `json:"eventTypes,omitempty"`
  2957  	// ForceSendFields is a list of field names (e.g. "EventTypes") to
  2958  	// unconditionally include in API requests. By default, fields with empty or
  2959  	// default values are omitted from API requests. See
  2960  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2961  	// details.
  2962  	ForceSendFields []string `json:"-"`
  2963  	// NullFields is a list of field names (e.g. "EventTypes") to include in API
  2964  	// requests with the JSON null value. By default, fields with empty values are
  2965  	// omitted from API requests. See
  2966  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent: Https latency
  2976  // routine is run periodically and `TelemetryHttpsLatencyChangeEvent` is
  2977  // triggered if a latency problem was detected or if the device has recovered
  2978  // from a latency problem. * Granular permission needed:
  2979  // TELEMETRY_API_NETWORK_REPORT
  2980  type GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent struct {
  2981  	// HttpsLatencyRoutineData: HTTPS latency routine data that triggered the
  2982  	// event.
  2983  	HttpsLatencyRoutineData *GoogleChromeManagementV1HttpsLatencyRoutineData `json:"httpsLatencyRoutineData,omitempty"`
  2984  	// HttpsLatencyState: Current HTTPS latency state.
  2985  	//
  2986  	// Possible values:
  2987  	//   "HTTPS_LATENCY_STATE_UNSPECIFIED" - HTTPS latency state is unspecified.
  2988  	//   "RECOVERY" - HTTPS latency recovered from a problem.
  2989  	//   "PROBLEM" - HTTPS latency problem.
  2990  	HttpsLatencyState string `json:"httpsLatencyState,omitempty"`
  2991  	// ForceSendFields is a list of field names (e.g. "HttpsLatencyRoutineData") to
  2992  	// unconditionally include in API requests. By default, fields with empty or
  2993  	// default values are omitted from API requests. See
  2994  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2995  	// details.
  2996  	ForceSendFields []string `json:"-"`
  2997  	// NullFields is a list of field names (e.g. "HttpsLatencyRoutineData") to
  2998  	// include in API requests with the JSON null value. By default, fields with
  2999  	// empty values are omitted from API requests. See
  3000  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent:
  3010  // `TelemetryNetworkConnectionStateChangeEvent` is triggered on network
  3011  // connection state changes. * Granular permission needed:
  3012  // TELEMETRY_API_NETWORK_REPORT
  3013  type GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent struct {
  3014  	// ConnectionState: Current connection state of the network.
  3015  	//
  3016  	// Possible values:
  3017  	//   "NETWORK_CONNECTION_STATE_UNSPECIFIED" - Network connection state
  3018  	// unspecified.
  3019  	//   "ONLINE" - The network is connected and internet connectivity is
  3020  	// available.
  3021  	//   "CONNECTED" - The network is connected and not in a detected portal state,
  3022  	// but internet connectivity may not be available.
  3023  	//   "PORTAL" - The network is connected but a portal state was detected.
  3024  	// Internet connectivity may be limited.
  3025  	//   "CONNECTING" - The network is in the process of connecting.
  3026  	//   "NOT_CONNECTED" - The network is not connected.
  3027  	ConnectionState string `json:"connectionState,omitempty"`
  3028  	// Guid: Unique identifier of the network.
  3029  	Guid string `json:"guid,omitempty"`
  3030  	// ForceSendFields is a list of field names (e.g. "ConnectionState") to
  3031  	// unconditionally include in API requests. By default, fields with empty or
  3032  	// default values are omitted from API requests. See
  3033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3034  	// details.
  3035  	ForceSendFields []string `json:"-"`
  3036  	// NullFields is a list of field names (e.g. "ConnectionState") to include in
  3037  	// API requests with the JSON null value. By default, fields with empty values
  3038  	// are omitted from API requests. See
  3039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryNetworkSignalStrengthEvent:
  3049  // `TelemetryNetworkSignalStrengthEvent` is triggered on WiFi signal strength
  3050  // events. * Granular permission needed: TELEMETRY_API_NETWORK_REPORT
  3051  type GoogleChromeManagementV1TelemetryNetworkSignalStrengthEvent struct {
  3052  	// Guid: Unique identifier of the network.
  3053  	Guid string `json:"guid,omitempty"`
  3054  	// SignalStrengthDbm: Signal strength RSSI value.
  3055  	SignalStrengthDbm int64 `json:"signalStrengthDbm,omitempty"`
  3056  	// ForceSendFields is a list of field names (e.g. "Guid") to unconditionally
  3057  	// include in API requests. By default, fields with empty or default values are
  3058  	// omitted from API requests. See
  3059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3060  	// details.
  3061  	ForceSendFields []string `json:"-"`
  3062  	// NullFields is a list of field names (e.g. "Guid") to include in API requests
  3063  	// with the JSON null value. By default, fields with empty values are omitted
  3064  	// from API requests. See
  3065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryNotificationConfig: Configuration to
  3075  // receive notifications of telemetry data.
  3076  type GoogleChromeManagementV1TelemetryNotificationConfig struct {
  3077  	// Customer: Output only. Google Workspace customer that owns the resource.
  3078  	Customer string `json:"customer,omitempty"`
  3079  	// Filter: Only send notifications for telemetry data matching this filter.
  3080  	Filter *GoogleChromeManagementV1TelemetryNotificationFilter `json:"filter,omitempty"`
  3081  	// GoogleCloudPubsubTopic: The pubsub topic to which notifications are
  3082  	// published to.
  3083  	GoogleCloudPubsubTopic string `json:"googleCloudPubsubTopic,omitempty"`
  3084  	// Name: Output only. Resource name of the notification configuration.
  3085  	Name string `json:"name,omitempty"`
  3086  
  3087  	// ServerResponse contains the HTTP response code and headers from the server.
  3088  	googleapi.ServerResponse `json:"-"`
  3089  	// ForceSendFields is a list of field names (e.g. "Customer") to
  3090  	// unconditionally include in API requests. By default, fields with empty or
  3091  	// default values are omitted from API requests. See
  3092  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3093  	// details.
  3094  	ForceSendFields []string `json:"-"`
  3095  	// NullFields is a list of field names (e.g. "Customer") to include in API
  3096  	// requests with the JSON null value. By default, fields with empty values are
  3097  	// omitted from API requests. See
  3098  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryNotificationFilter: Configures how the
  3108  // telemetry data should be filtered.
  3109  type GoogleChromeManagementV1TelemetryNotificationFilter struct {
  3110  	// DeviceId: If set, only sends notifications for telemetry data coming from
  3111  	// this device.
  3112  	DeviceId string `json:"deviceId,omitempty"`
  3113  	// DeviceOrgUnitId: If set, only sends notifications for telemetry data coming
  3114  	// from devices in this org unit.
  3115  	DeviceOrgUnitId string `json:"deviceOrgUnitId,omitempty"`
  3116  	// TelemetryEventNotificationFilter: Only sends notifications for the telemetry
  3117  	// events matching this filter.
  3118  	TelemetryEventNotificationFilter *GoogleChromeManagementV1TelemetryEventNotificationFilter `json:"telemetryEventNotificationFilter,omitempty"`
  3119  	// UserEmail: If set, only sends notifications for telemetry data coming from
  3120  	// devices owned by this user.
  3121  	UserEmail string `json:"userEmail,omitempty"`
  3122  	// UserOrgUnitId: If set, only sends notifications for telemetry data coming
  3123  	// from devices owned by users in this org unit.
  3124  	UserOrgUnitId string `json:"userOrgUnitId,omitempty"`
  3125  	// ForceSendFields is a list of field names (e.g. "DeviceId") to
  3126  	// unconditionally include in API requests. By default, fields with empty or
  3127  	// default values are omitted from API requests. See
  3128  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3129  	// details.
  3130  	ForceSendFields []string `json:"-"`
  3131  	// NullFields is a list of field names (e.g. "DeviceId") to include in API
  3132  	// requests with the JSON null value. By default, fields with empty values are
  3133  	// omitted from API requests. See
  3134  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryUsbPeripheralsEvent:
  3144  // `TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or
  3145  // removed. * Granular permission needed: TELEMETRY_API_PERIPHERALS_REPORT
  3146  type GoogleChromeManagementV1TelemetryUsbPeripheralsEvent struct {
  3147  	// UsbPeripheralReport: List of usb devices that were either added or removed.
  3148  	UsbPeripheralReport []*GoogleChromeManagementV1UsbPeripheralReport `json:"usbPeripheralReport,omitempty"`
  3149  	// ForceSendFields is a list of field names (e.g. "UsbPeripheralReport") to
  3150  	// unconditionally include in API requests. By default, fields with empty or
  3151  	// default values are omitted from API requests. See
  3152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3153  	// details.
  3154  	ForceSendFields []string `json:"-"`
  3155  	// NullFields is a list of field names (e.g. "UsbPeripheralReport") to include
  3156  	// in API requests with the JSON null value. By default, fields with empty
  3157  	// values are omitted from API requests. See
  3158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryUser: Telemetry data collected from a
  3168  // managed user. * Granular permission needed: TELEMETRY_API_USER
  3169  type GoogleChromeManagementV1TelemetryUser struct {
  3170  	// Customer: G Suite Customer whose enterprise enrolled the device.
  3171  	Customer string `json:"customer,omitempty"`
  3172  	// Name: Resource name of the user.
  3173  	Name string `json:"name,omitempty"`
  3174  	// OrgUnitId: Organization unit of the user.
  3175  	OrgUnitId string `json:"orgUnitId,omitempty"`
  3176  	// UserDevice: Telemetry data collected from a managed user and device.
  3177  	UserDevice []*GoogleChromeManagementV1TelemetryUserDevice `json:"userDevice,omitempty"`
  3178  	// UserEmail: Email address of the user.
  3179  	UserEmail string `json:"userEmail,omitempty"`
  3180  	// UserId: Directory ID of the user.
  3181  	UserId string `json:"userId,omitempty"`
  3182  
  3183  	// ServerResponse contains the HTTP response code and headers from the server.
  3184  	googleapi.ServerResponse `json:"-"`
  3185  	// ForceSendFields is a list of field names (e.g. "Customer") to
  3186  	// unconditionally include in API requests. By default, fields with empty or
  3187  	// default values are omitted from API requests. See
  3188  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3189  	// details.
  3190  	ForceSendFields []string `json:"-"`
  3191  	// NullFields is a list of field names (e.g. "Customer") to include in API
  3192  	// requests with the JSON null value. By default, fields with empty values are
  3193  	// omitted from API requests. See
  3194  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryUserDevice: Telemetry data collected for a
  3204  // managed user and device. * Granular permission needed: TELEMETRY_API_DEVICE
  3205  type GoogleChromeManagementV1TelemetryUserDevice struct {
  3206  	// AudioStatusReport: Output only. Audio reports collected periodically sorted
  3207  	// in a decreasing order of report_time.
  3208  	AudioStatusReport []*GoogleChromeManagementV1AudioStatusReport `json:"audioStatusReport,omitempty"`
  3209  	// DeviceActivityReport: Output only. Device activity reports collected
  3210  	// periodically sorted in a decreasing order of report_time.
  3211  	DeviceActivityReport []*GoogleChromeManagementV1DeviceActivityReport `json:"deviceActivityReport,omitempty"`
  3212  	// DeviceId: The unique Directory API ID of the device. This value is the same
  3213  	// as the Admin Console's Directory API ID in the ChromeOS Devices tab.
  3214  	DeviceId string `json:"deviceId,omitempty"`
  3215  	// NetworkBandwidthReport: Output only. Network bandwidth reports collected
  3216  	// periodically sorted in a decreasing order of report_time.
  3217  	NetworkBandwidthReport []*GoogleChromeManagementV1NetworkBandwidthReport `json:"networkBandwidthReport,omitempty"`
  3218  	// PeripheralsReport: Output only. Peripherals reports collected periodically
  3219  	// sorted in a decreasing order of report_time.
  3220  	PeripheralsReport []*GoogleChromeManagementV1PeripheralsReport `json:"peripheralsReport,omitempty"`
  3221  	// ForceSendFields is a list of field names (e.g. "AudioStatusReport") to
  3222  	// unconditionally include in API requests. By default, fields with empty or
  3223  	// default values are omitted from API requests. See
  3224  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3225  	// details.
  3226  	ForceSendFields []string `json:"-"`
  3227  	// NullFields is a list of field names (e.g. "AudioStatusReport") to include in
  3228  	// API requests with the JSON null value. By default, fields with empty values
  3229  	// are omitted from API requests. See
  3230  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TelemetryUserInfo: Information about a user
  3240  // associated with telemetry data. * Granular permission needed:
  3241  // TELEMETRY_API_USER
  3242  type GoogleChromeManagementV1TelemetryUserInfo struct {
  3243  	// Email: Output only. User's email.
  3244  	Email string `json:"email,omitempty"`
  3245  	// OrgUnitId: Output only. Organization unit ID of the user.
  3246  	OrgUnitId string `json:"orgUnitId,omitempty"`
  3247  	// ForceSendFields is a list of field names (e.g. "Email") to unconditionally
  3248  	// include in API requests. By default, fields with empty or default values are
  3249  	// omitted from API requests. See
  3250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3251  	// details.
  3252  	ForceSendFields []string `json:"-"`
  3253  	// NullFields is a list of field names (e.g. "Email") to include in API
  3254  	// requests with the JSON null value. By default, fields with empty values are
  3255  	// omitted from API requests. See
  3256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1ThunderboltInfo: Thunderbolt bus info. * This field
  3266  // provides device information, which is static and will not change over time.
  3267  // * Data for this field is controlled via policy: ReportDeviceSecurityStatus
  3268  // (https://chromeenterprise.google/policies/#ReportDeviceSecurityStatus) *
  3269  // Data Collection Frequency: At device startup * Default Data Reporting
  3270  // Frequency: At device startup - Policy Controlled: No * Cache: If the device
  3271  // is offline, the collected data is stored locally, and will be reported when
  3272  // the device is next online: Yes * Reported for affiliated users only: N/A *
  3273  // Granular permission needed: TELEMETRY_API_BUS_DEVICE_INFO
  3274  type GoogleChromeManagementV1ThunderboltInfo struct {
  3275  	// SecurityLevel: Security level of the Thunderbolt bus.
  3276  	//
  3277  	// Possible values:
  3278  	//   "THUNDERBOLT_SECURITY_LEVEL_UNSPECIFIED" - Thunderbolt security level is
  3279  	// not set.
  3280  	//   "THUNDERBOLT_SECURITY_NONE_LEVEL" - All devices are automatically
  3281  	// connected by the firmware. No user approval is needed.
  3282  	//   "THUNDERBOLT_SECURITY_USER_LEVEL" - User is asked whether the device is
  3283  	// allowed to be connected.
  3284  	//   "THUNDERBOLT_SECURITY_SECURE_LEVEL" - User is asked whether the device is
  3285  	// allowed to be connected. In addition the device is sent a challenge that
  3286  	// should match the expected one based on a random key written to the key sysfs
  3287  	// attribute
  3288  	//   "THUNDERBOLT_SECURITY_DP_ONLY_LEVEL" - The firmware automatically creates
  3289  	// tunnels for Thunderbolt.
  3290  	//   "THUNDERBOLT_SECURITY_USB_ONLY_LEVEL" - The firmware automatically creates
  3291  	// tunnels for the USB controller and Display Port in a dock. All PCIe links
  3292  	// downstream of the dock are removed.
  3293  	//   "THUNDERBOLT_SECURITY_NO_PCIE_LEVEL" - PCIE tunneling is disabled.
  3294  	SecurityLevel string `json:"securityLevel,omitempty"`
  3295  	// ForceSendFields is a list of field names (e.g. "SecurityLevel") to
  3296  	// unconditionally include in API requests. By default, fields with empty or
  3297  	// default values are omitted from API requests. See
  3298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3299  	// details.
  3300  	ForceSendFields []string `json:"-"`
  3301  	// NullFields is a list of field names (e.g. "SecurityLevel") to include in API
  3302  	// requests with the JSON null value. By default, fields with empty values are
  3303  	// omitted from API requests. See
  3304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TotalMemoryEncryptionInfo: Memory encryption
  3314  // information of a device. * This field provides device information, which is
  3315  // static and will not change over time. * Data for this field is controlled
  3316  // via policy: ReportDeviceMemoryInfo
  3317  // (https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data
  3318  // Collection Frequency: At device startup * Default Data Reporting Frequency:
  3319  // At device startup - Policy Controlled: Yes * Cache: If the device is
  3320  // offline, the collected data is stored locally, and will be reported when the
  3321  // device is next online: Yes * Reported for affiliated users only: N/A
  3322  type GoogleChromeManagementV1TotalMemoryEncryptionInfo struct {
  3323  	// EncryptionAlgorithm: Memory encryption algorithm.
  3324  	//
  3325  	// Possible values:
  3326  	//   "MEMORY_ENCRYPTION_ALGORITHM_UNSPECIFIED" - Memory encryption algorithm is
  3327  	// not set.
  3328  	//   "MEMORY_ENCRYPTION_ALGORITHM_UNKNOWN" - The memory encryption algorithm
  3329  	// being used is unknown.
  3330  	//   "MEMORY_ENCRYPTION_ALGORITHM_AES_XTS_128" - The memory encryption
  3331  	// algorithm is using the AES_XTS encryption algorithm with a 128 bit block
  3332  	// cypher.
  3333  	//   "MEMORY_ENCRYPTION_ALGORITHM_AES_XTS_256" - The memory encryption
  3334  	// algorithm is using the AES_XTS encryption algorithm with a 256 bit block
  3335  	// cypher.
  3336  	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
  3337  	// EncryptionState: The state of memory encryption on the device.
  3338  	//
  3339  	// Possible values:
  3340  	//   "MEMORY_ENCRYPTION_STATE_UNSPECIFIED" - Memory encryption state is not
  3341  	// set.
  3342  	//   "MEMORY_ENCRYPTION_STATE_UNKNOWN" - The memory encryption state is
  3343  	// unknown.
  3344  	//   "MEMORY_ENCRYPTION_STATE_DISABLED" - Memory encrpytion on the device is
  3345  	// disabled.
  3346  	//   "MEMORY_ENCRYPTION_STATE_TME" - Memory encryption on the device uses total
  3347  	// memory encryption.
  3348  	//   "MEMORY_ENCRYPTION_STATE_MKTME" - Memory encryption on the device uses
  3349  	// multi-key total memory encryption.
  3350  	EncryptionState string `json:"encryptionState,omitempty"`
  3351  	// KeyLength: The length of the encryption keys.
  3352  	KeyLength int64 `json:"keyLength,omitempty,string"`
  3353  	// MaxKeys: The maximum number of keys that can be used for encryption.
  3354  	MaxKeys int64 `json:"maxKeys,omitempty,string"`
  3355  	// ForceSendFields is a list of field names (e.g. "EncryptionAlgorithm") to
  3356  	// unconditionally include in API requests. By default, fields with empty or
  3357  	// default values are omitted from API requests. See
  3358  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3359  	// details.
  3360  	ForceSendFields []string `json:"-"`
  3361  	// NullFields is a list of field names (e.g. "EncryptionAlgorithm") to include
  3362  	// in API requests with the JSON null value. By default, fields with empty
  3363  	// values are omitted from API requests. See
  3364  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TouchScreenDevice: Information of an internal touch
  3374  // screen device.
  3375  type GoogleChromeManagementV1TouchScreenDevice struct {
  3376  	// DisplayName: Output only. Touch screen device display name.
  3377  	DisplayName string `json:"displayName,omitempty"`
  3378  	// StylusCapable: Output only. Touch screen device is stylus capable or not.
  3379  	StylusCapable bool `json:"stylusCapable,omitempty"`
  3380  	// TouchPointCount: Output only. Number of touch points supported on the
  3381  	// device.
  3382  	TouchPointCount int64 `json:"touchPointCount,omitempty"`
  3383  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  3384  	// unconditionally include in API requests. By default, fields with empty or
  3385  	// default values are omitted from API requests. See
  3386  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3387  	// details.
  3388  	ForceSendFields []string `json:"-"`
  3389  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  3390  	// requests with the JSON null value. By default, fields with empty values are
  3391  	// omitted from API requests. See
  3392  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1TouchScreenInfo: Information on the device touch
  3402  // screen.
  3403  type GoogleChromeManagementV1TouchScreenInfo struct {
  3404  	// Devices: Output only. List of the internal touch screen devices.
  3405  	Devices []*GoogleChromeManagementV1TouchScreenDevice `json:"devices,omitempty"`
  3406  	// TouchpadLibrary: Output only. Touchpad library name used by the input stack.
  3407  	TouchpadLibrary string `json:"touchpadLibrary,omitempty"`
  3408  	// ForceSendFields is a list of field names (e.g. "Devices") to unconditionally
  3409  	// include in API requests. By default, fields with empty or default values are
  3410  	// omitted from API requests. See
  3411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3412  	// details.
  3413  	ForceSendFields []string `json:"-"`
  3414  	// NullFields is a list of field names (e.g. "Devices") to include in API
  3415  	// requests with the JSON null value. By default, fields with empty values are
  3416  	// omitted from API requests. See
  3417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1UsbPeripheralReport: USB connected peripheral
  3427  // report.
  3428  type GoogleChromeManagementV1UsbPeripheralReport struct {
  3429  	// Categories: Output only. Categories the device belongs to
  3430  	// https://www.usb.org/defined-class-codes
  3431  	Categories []string `json:"categories,omitempty"`
  3432  	// ClassId: Output only. Class ID https://www.usb.org/defined-class-codes
  3433  	ClassId int64 `json:"classId,omitempty"`
  3434  	// FirmwareVersion: Output only. Firmware version
  3435  	FirmwareVersion string `json:"firmwareVersion,omitempty"`
  3436  	// Name: Output only. Device name, model name, or product name
  3437  	Name string `json:"name,omitempty"`
  3438  	// Pid: Output only. Product ID
  3439  	Pid int64 `json:"pid,omitempty"`
  3440  	// SubclassId: Output only. Subclass ID https://www.usb.org/defined-class-codes
  3441  	SubclassId int64 `json:"subclassId,omitempty"`
  3442  	// Vendor: Output only. Vendor name
  3443  	Vendor string `json:"vendor,omitempty"`
  3444  	// Vid: Output only. Vendor ID
  3445  	Vid int64 `json:"vid,omitempty"`
  3446  	// ForceSendFields is a list of field names (e.g. "Categories") to
  3447  	// unconditionally include in API requests. By default, fields with empty or
  3448  	// default values are omitted from API requests. See
  3449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3450  	// details.
  3451  	ForceSendFields []string `json:"-"`
  3452  	// NullFields is a list of field names (e.g. "Categories") to include in API
  3453  	// requests with the JSON null value. By default, fields with empty values are
  3454  	// omitted from API requests. See
  3455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1UserPrintReport: Report for CountPrintJobsByUser,
  3465  // contains printing statistics for a user. Contains the number of printers,
  3466  // the number of devices used to initiate print jobs, and the number of print
  3467  // jobs initiated.
  3468  type GoogleChromeManagementV1UserPrintReport struct {
  3469  	// DeviceCount: Number of chrome devices that have been used to initiate print
  3470  	// jobs by the user.
  3471  	DeviceCount int64 `json:"deviceCount,omitempty,string"`
  3472  	// JobCount: Number of print jobs initiated by the user.
  3473  	JobCount int64 `json:"jobCount,omitempty,string"`
  3474  	// PrinterCount: Number of printers used by the user.
  3475  	PrinterCount int64 `json:"printerCount,omitempty,string"`
  3476  	// UserEmail: The primary e-mail address of the user.
  3477  	UserEmail string `json:"userEmail,omitempty"`
  3478  	// UserId: The unique Directory API ID of the user.
  3479  	UserId string `json:"userId,omitempty"`
  3480  	// ForceSendFields is a list of field names (e.g. "DeviceCount") to
  3481  	// unconditionally include in API requests. By default, fields with empty or
  3482  	// default values are omitted from API requests. See
  3483  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3484  	// details.
  3485  	ForceSendFields []string `json:"-"`
  3486  	// NullFields is a list of field names (e.g. "DeviceCount") to include in API
  3487  	// requests with the JSON null value. By default, fields with empty values are
  3488  	// omitted from API requests. See
  3489  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleChromeManagementV1UserRequestingExtensionDetails: Details of a user
  3499  // requesting an extension, including the email and the justification.
  3500  type GoogleChromeManagementV1UserRequestingExtensionDetails struct {
  3501  	// Email: The e-mail address of a user that has requested the extension.
  3502  	Email string `json:"email,omitempty"`
  3503  	// Justification: Request justification as entered by the user.
  3504  	Justification string `json:"justification,omitempty"`
  3505  	// ForceSendFields is a list of field names (e.g. "Email") to unconditionally
  3506  	// include in API requests. By default, fields with empty or default values are
  3507  	// omitted from API requests. See
  3508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3509  	// details.
  3510  	ForceSendFields []string `json:"-"`
  3511  	// NullFields is a list of field names (e.g. "Email") to include in API
  3512  	// requests with the JSON null value. By default, fields with empty values are
  3513  	// omitted from API requests. See
  3514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
  3524  // defining duplicated empty messages in your APIs. A typical example is to use
  3525  // it as the request or the response type of an API method. For instance:
  3526  // service Foo { rpc Bar(google.protobuf.Empty) returns
  3527  // (google.protobuf.Empty); }
  3528  type GoogleProtobufEmpty struct {
  3529  	// ServerResponse contains the HTTP response code and headers from the server.
  3530  	googleapi.ServerResponse `json:"-"`
  3531  }
  3532  
  3533  // GoogleRpcStatus: The `Status` type defines a logical error model that is
  3534  // suitable for different programming environments, including REST APIs and RPC
  3535  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
  3536  // contains three pieces of data: error code, error message, and error details.
  3537  // You can find out more about this error model and how to work with it in the
  3538  // API Design Guide (https://cloud.google.com/apis/design/errors).
  3539  type GoogleRpcStatus struct {
  3540  	// Code: The status code, which should be an enum value of google.rpc.Code.
  3541  	Code int64 `json:"code,omitempty"`
  3542  	// Details: A list of messages that carry the error details. There is a common
  3543  	// set of message types for APIs to use.
  3544  	Details []googleapi.RawMessage `json:"details,omitempty"`
  3545  	// Message: A developer-facing error message, which should be in English. Any
  3546  	// user-facing error message should be localized and sent in the
  3547  	// google.rpc.Status.details field, or localized by the client.
  3548  	Message string `json:"message,omitempty"`
  3549  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  3550  	// include in API requests. By default, fields with empty or default values are
  3551  	// omitted from API requests. See
  3552  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3553  	// details.
  3554  	ForceSendFields []string `json:"-"`
  3555  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  3556  	// with the JSON null value. By default, fields with empty values are omitted
  3557  	// from API requests. See
  3558  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // GoogleTypeDate: Represents a whole or partial calendar date, such as a
  3568  // birthday. The time of day and time zone are either specified elsewhere or
  3569  // are insignificant. The date is relative to the Gregorian Calendar. This can
  3570  // represent one of the following: * A full date, with non-zero year, month,
  3571  // and day values. * A month and day, with a zero year (for example, an
  3572  // anniversary). * A year on its own, with a zero month and a zero day. * A
  3573  // year and month, with a zero day (for example, a credit card expiration
  3574  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
  3575  // google.protobuf.Timestamp
  3576  type GoogleTypeDate struct {
  3577  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
  3578  	// or 0 to specify a year by itself or a year and month where the day isn't
  3579  	// significant.
  3580  	Day int64 `json:"day,omitempty"`
  3581  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
  3582  	// a month and day.
  3583  	Month int64 `json:"month,omitempty"`
  3584  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
  3585  	// without a year.
  3586  	Year int64 `json:"year,omitempty"`
  3587  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  3588  	// include in API requests. By default, fields with empty or default values are
  3589  	// omitted from API requests. See
  3590  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3591  	// details.
  3592  	ForceSendFields []string `json:"-"`
  3593  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  3594  	// with the JSON null value. By default, fields with empty values are omitted
  3595  	// from API requests. See
  3596  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  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  // CountChromeAppRequests: Generate summary of app installation requests.
  3615  //
  3616  //   - customer: Customer id or "my_customer" to use the customer associated to
  3617  //     the account making the request.
  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  // OrderBy sets the optional parameter "orderBy": Field used to order results.
  3625  // Supported fields: * request_count * latest_request_time
  3626  func (c *CustomersAppsCountChromeAppRequestsCall) OrderBy(orderBy string) *CustomersAppsCountChromeAppRequestsCall {
  3627  	c.urlParams_.Set("orderBy", orderBy)
  3628  	return c
  3629  }
  3630  
  3631  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  3632  // organizational unit.
  3633  func (c *CustomersAppsCountChromeAppRequestsCall) OrgUnitId(orgUnitId string) *CustomersAppsCountChromeAppRequestsCall {
  3634  	c.urlParams_.Set("orgUnitId", orgUnitId)
  3635  	return c
  3636  }
  3637  
  3638  // PageSize sets the optional parameter "pageSize": Maximum number of results
  3639  // to return. Maximum and default are 50, anything above will be coerced to 50.
  3640  func (c *CustomersAppsCountChromeAppRequestsCall) PageSize(pageSize int64) *CustomersAppsCountChromeAppRequestsCall {
  3641  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3642  	return c
  3643  }
  3644  
  3645  // PageToken sets the optional parameter "pageToken": Token to specify the page
  3646  // of the request to be returned.
  3647  func (c *CustomersAppsCountChromeAppRequestsCall) PageToken(pageToken string) *CustomersAppsCountChromeAppRequestsCall {
  3648  	c.urlParams_.Set("pageToken", pageToken)
  3649  	return c
  3650  }
  3651  
  3652  // Fields allows partial responses to be retrieved. See
  3653  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3654  // details.
  3655  func (c *CustomersAppsCountChromeAppRequestsCall) Fields(s ...googleapi.Field) *CustomersAppsCountChromeAppRequestsCall {
  3656  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3657  	return c
  3658  }
  3659  
  3660  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3661  // object's ETag matches the given value. This is useful for getting updates
  3662  // only after the object has changed since the last request.
  3663  func (c *CustomersAppsCountChromeAppRequestsCall) IfNoneMatch(entityTag string) *CustomersAppsCountChromeAppRequestsCall {
  3664  	c.ifNoneMatch_ = entityTag
  3665  	return c
  3666  }
  3667  
  3668  // Context sets the context to be used in this call's Do method.
  3669  func (c *CustomersAppsCountChromeAppRequestsCall) Context(ctx context.Context) *CustomersAppsCountChromeAppRequestsCall {
  3670  	c.ctx_ = ctx
  3671  	return c
  3672  }
  3673  
  3674  // Header returns a http.Header that can be modified by the caller to add
  3675  // headers to the request.
  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  // Do executes the "chromemanagement.customers.apps.countChromeAppRequests" call.
  3705  // Any non-2xx status code is an error. Response headers are in either
  3706  // *GoogleChromeManagementV1CountChromeAppRequestsResponse.ServerResponse.Header
  3707  //
  3708  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
  3709  //
  3710  // Use googleapi.IsNotModified to check whether the returned error was because
  3711  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  3745  // A non-nil error returned from f will halt the iteration.
  3746  // The provided context supersedes any context provided to the Context method.
  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  // FetchDevicesRequestingExtension: Get a list of devices that have requested
  3775  // to install an extension.
  3776  //
  3777  // - customer: The customer ID or "my_customer" prefixed with "customers/".
  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  // ExtensionId sets the optional parameter "extensionId": Required. The
  3785  // extension for which we want to find requesting devices.
  3786  func (c *CustomersAppsFetchDevicesRequestingExtensionCall) ExtensionId(extensionId string) *CustomersAppsFetchDevicesRequestingExtensionCall {
  3787  	c.urlParams_.Set("extensionId", extensionId)
  3788  	return c
  3789  }
  3790  
  3791  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  3792  // organizational unit. Only consider devices that directly belong to this org
  3793  // unit, i.e. sub-orgunits are not counted. If omitted, all data will be
  3794  // returned.
  3795  func (c *CustomersAppsFetchDevicesRequestingExtensionCall) OrgUnitId(orgUnitId string) *CustomersAppsFetchDevicesRequestingExtensionCall {
  3796  	c.urlParams_.Set("orgUnitId", orgUnitId)
  3797  	return c
  3798  }
  3799  
  3800  // PageSize sets the optional parameter "pageSize": Maximum number of results
  3801  // to return. Maximum and default are 50. Any page size larger than 50 will be
  3802  // coerced to 50.
  3803  func (c *CustomersAppsFetchDevicesRequestingExtensionCall) PageSize(pageSize int64) *CustomersAppsFetchDevicesRequestingExtensionCall {
  3804  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3805  	return c
  3806  }
  3807  
  3808  // PageToken sets the optional parameter "pageToken": Token to specify the page
  3809  // of the request to be returned. Token expires after 1 day.
  3810  func (c *CustomersAppsFetchDevicesRequestingExtensionCall) PageToken(pageToken string) *CustomersAppsFetchDevicesRequestingExtensionCall {
  3811  	c.urlParams_.Set("pageToken", pageToken)
  3812  	return c
  3813  }
  3814  
  3815  // Fields allows partial responses to be retrieved. See
  3816  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3817  // details.
  3818  func (c *CustomersAppsFetchDevicesRequestingExtensionCall) Fields(s ...googleapi.Field) *CustomersAppsFetchDevicesRequestingExtensionCall {
  3819  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3820  	return c
  3821  }
  3822  
  3823  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3824  // object's ETag matches the given value. This is useful for getting updates
  3825  // only after the object has changed since the last request.
  3826  func (c *CustomersAppsFetchDevicesRequestingExtensionCall) IfNoneMatch(entityTag string) *CustomersAppsFetchDevicesRequestingExtensionCall {
  3827  	c.ifNoneMatch_ = entityTag
  3828  	return c
  3829  }
  3830  
  3831  // Context sets the context to be used in this call's Do method.
  3832  func (c *CustomersAppsFetchDevicesRequestingExtensionCall) Context(ctx context.Context) *CustomersAppsFetchDevicesRequestingExtensionCall {
  3833  	c.ctx_ = ctx
  3834  	return c
  3835  }
  3836  
  3837  // Header returns a http.Header that can be modified by the caller to add
  3838  // headers to the request.
  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  // Do executes the "chromemanagement.customers.apps.fetchDevicesRequestingExtension" call.
  3868  // Any non-2xx status code is an error. Response headers are in either
  3869  // *GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse.ServerRespon
  3870  // se.Header or (if a response was returned at all) in
  3871  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3872  // whether the returned error was because http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  3906  // A non-nil error returned from f will halt the iteration.
  3907  // The provided context supersedes any context provided to the Context method.
  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  // FetchUsersRequestingExtension: Get a list of users that have requested to
  3936  // install an extension.
  3937  //
  3938  // - customer: The customer ID or "my_customer" prefixed with "customers/".
  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  // ExtensionId sets the optional parameter "extensionId": Required. The
  3946  // extension for which we want to find the requesting users.
  3947  func (c *CustomersAppsFetchUsersRequestingExtensionCall) ExtensionId(extensionId string) *CustomersAppsFetchUsersRequestingExtensionCall {
  3948  	c.urlParams_.Set("extensionId", extensionId)
  3949  	return c
  3950  }
  3951  
  3952  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  3953  // organizational unit. Only consider devices that directly belong to this org
  3954  // unit, i.e. sub-orgunits are not counted. If omitted, all data will be
  3955  // returned.
  3956  func (c *CustomersAppsFetchUsersRequestingExtensionCall) OrgUnitId(orgUnitId string) *CustomersAppsFetchUsersRequestingExtensionCall {
  3957  	c.urlParams_.Set("orgUnitId", orgUnitId)
  3958  	return c
  3959  }
  3960  
  3961  // PageSize sets the optional parameter "pageSize": Maximum number of results
  3962  // to return. Maximum and default are 50. Any page size larger than 50 will be
  3963  // coerced to 50.
  3964  func (c *CustomersAppsFetchUsersRequestingExtensionCall) PageSize(pageSize int64) *CustomersAppsFetchUsersRequestingExtensionCall {
  3965  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3966  	return c
  3967  }
  3968  
  3969  // PageToken sets the optional parameter "pageToken": Token to specify the page
  3970  // of the request to be returned. Token expires after 1 day.
  3971  func (c *CustomersAppsFetchUsersRequestingExtensionCall) PageToken(pageToken string) *CustomersAppsFetchUsersRequestingExtensionCall {
  3972  	c.urlParams_.Set("pageToken", pageToken)
  3973  	return c
  3974  }
  3975  
  3976  // Fields allows partial responses to be retrieved. See
  3977  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3978  // details.
  3979  func (c *CustomersAppsFetchUsersRequestingExtensionCall) Fields(s ...googleapi.Field) *CustomersAppsFetchUsersRequestingExtensionCall {
  3980  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3981  	return c
  3982  }
  3983  
  3984  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3985  // object's ETag matches the given value. This is useful for getting updates
  3986  // only after the object has changed since the last request.
  3987  func (c *CustomersAppsFetchUsersRequestingExtensionCall) IfNoneMatch(entityTag string) *CustomersAppsFetchUsersRequestingExtensionCall {
  3988  	c.ifNoneMatch_ = entityTag
  3989  	return c
  3990  }
  3991  
  3992  // Context sets the context to be used in this call's Do method.
  3993  func (c *CustomersAppsFetchUsersRequestingExtensionCall) Context(ctx context.Context) *CustomersAppsFetchUsersRequestingExtensionCall {
  3994  	c.ctx_ = ctx
  3995  	return c
  3996  }
  3997  
  3998  // Header returns a http.Header that can be modified by the caller to add
  3999  // headers to the request.
  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  // Do executes the "chromemanagement.customers.apps.fetchUsersRequestingExtension" call.
  4029  // Any non-2xx status code is an error. Response headers are in either
  4030  // *GoogleChromeManagementV1FetchUsersRequestingExtensionResponse.ServerResponse
  4031  // .Header or (if a response was returned at all) in
  4032  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4033  // whether the returned error was because http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  4067  // A non-nil error returned from f will halt the iteration.
  4068  // The provided context supersedes any context provided to the Context method.
  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  // Get: Get a specific app for a customer by its resource name.
  4097  //
  4098  //   - name: The app for which details are being queried. Examples:
  4099  //     "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2"
  4100  //     for the Save to Google Drive Chrome extension version 2.1.2,
  4101  //     "customers/my_customer/apps/android/com.google.android.apps.docs" for the
  4102  //     Google Drive Android app's latest version.
  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  // Fields allows partial responses to be retrieved. See
  4110  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4111  // details.
  4112  func (c *CustomersAppsAndroidGetCall) Fields(s ...googleapi.Field) *CustomersAppsAndroidGetCall {
  4113  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4114  	return c
  4115  }
  4116  
  4117  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4118  // object's ETag matches the given value. This is useful for getting updates
  4119  // only after the object has changed since the last request.
  4120  func (c *CustomersAppsAndroidGetCall) IfNoneMatch(entityTag string) *CustomersAppsAndroidGetCall {
  4121  	c.ifNoneMatch_ = entityTag
  4122  	return c
  4123  }
  4124  
  4125  // Context sets the context to be used in this call's Do method.
  4126  func (c *CustomersAppsAndroidGetCall) Context(ctx context.Context) *CustomersAppsAndroidGetCall {
  4127  	c.ctx_ = ctx
  4128  	return c
  4129  }
  4130  
  4131  // Header returns a http.Header that can be modified by the caller to add
  4132  // headers to the request.
  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  // Do executes the "chromemanagement.customers.apps.android.get" call.
  4162  // Any non-2xx status code is an error. Response headers are in either
  4163  // *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response
  4164  // was returned at all) in error.(*googleapi.Error).Header. Use
  4165  // googleapi.IsNotModified to check whether the returned error was because
  4166  // http.StatusNotModified was returned.
  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  // Get: Get a specific app for a customer by its resource name.
  4209  //
  4210  //   - name: The app for which details are being queried. Examples:
  4211  //     "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2"
  4212  //     for the Save to Google Drive Chrome extension version 2.1.2,
  4213  //     "customers/my_customer/apps/android/com.google.android.apps.docs" for the
  4214  //     Google Drive Android app's latest version.
  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  // Fields allows partial responses to be retrieved. See
  4222  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4223  // details.
  4224  func (c *CustomersAppsChromeGetCall) Fields(s ...googleapi.Field) *CustomersAppsChromeGetCall {
  4225  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4226  	return c
  4227  }
  4228  
  4229  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4230  // object's ETag matches the given value. This is useful for getting updates
  4231  // only after the object has changed since the last request.
  4232  func (c *CustomersAppsChromeGetCall) IfNoneMatch(entityTag string) *CustomersAppsChromeGetCall {
  4233  	c.ifNoneMatch_ = entityTag
  4234  	return c
  4235  }
  4236  
  4237  // Context sets the context to be used in this call's Do method.
  4238  func (c *CustomersAppsChromeGetCall) Context(ctx context.Context) *CustomersAppsChromeGetCall {
  4239  	c.ctx_ = ctx
  4240  	return c
  4241  }
  4242  
  4243  // Header returns a http.Header that can be modified by the caller to add
  4244  // headers to the request.
  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  // Do executes the "chromemanagement.customers.apps.chrome.get" call.
  4274  // Any non-2xx status code is an error. Response headers are in either
  4275  // *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response
  4276  // was returned at all) in error.(*googleapi.Error).Header. Use
  4277  // googleapi.IsNotModified to check whether the returned error was because
  4278  // http.StatusNotModified was returned.
  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  // Get: Get a specific app for a customer by its resource name.
  4321  //
  4322  //   - name: The app for which details are being queried. Examples:
  4323  //     "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2"
  4324  //     for the Save to Google Drive Chrome extension version 2.1.2,
  4325  //     "customers/my_customer/apps/android/com.google.android.apps.docs" for the
  4326  //     Google Drive Android app's latest version.
  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  // Fields allows partial responses to be retrieved. See
  4334  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4335  // details.
  4336  func (c *CustomersAppsWebGetCall) Fields(s ...googleapi.Field) *CustomersAppsWebGetCall {
  4337  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4338  	return c
  4339  }
  4340  
  4341  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4342  // object's ETag matches the given value. This is useful for getting updates
  4343  // only after the object has changed since the last request.
  4344  func (c *CustomersAppsWebGetCall) IfNoneMatch(entityTag string) *CustomersAppsWebGetCall {
  4345  	c.ifNoneMatch_ = entityTag
  4346  	return c
  4347  }
  4348  
  4349  // Context sets the context to be used in this call's Do method.
  4350  func (c *CustomersAppsWebGetCall) Context(ctx context.Context) *CustomersAppsWebGetCall {
  4351  	c.ctx_ = ctx
  4352  	return c
  4353  }
  4354  
  4355  // Header returns a http.Header that can be modified by the caller to add
  4356  // headers to the request.
  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  // Do executes the "chromemanagement.customers.apps.web.get" call.
  4386  // Any non-2xx status code is an error. Response headers are in either
  4387  // *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response
  4388  // was returned at all) in error.(*googleapi.Error).Header. Use
  4389  // googleapi.IsNotModified to check whether the returned error was because
  4390  // http.StatusNotModified was returned.
  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  // CountChromeBrowsersNeedingAttention: Count of Chrome Browsers that have been
  4433  // recently enrolled, have new policy to be synced, or have no recent activity.
  4434  //
  4435  // - customer: The customer ID or "my_customer" prefixed with "customers/".
  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  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  4443  // organizational unit. If omitted, all data will be returned.
  4444  func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeBrowsersNeedingAttentionCall {
  4445  	c.urlParams_.Set("orgUnitId", orgUnitId)
  4446  	return c
  4447  }
  4448  
  4449  // Fields allows partial responses to be retrieved. See
  4450  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4451  // details.
  4452  func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeBrowsersNeedingAttentionCall {
  4453  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4454  	return c
  4455  }
  4456  
  4457  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4458  // object's ETag matches the given value. This is useful for getting updates
  4459  // only after the object has changed since the last request.
  4460  func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeBrowsersNeedingAttentionCall {
  4461  	c.ifNoneMatch_ = entityTag
  4462  	return c
  4463  }
  4464  
  4465  // Context sets the context to be used in this call's Do method.
  4466  func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Context(ctx context.Context) *CustomersReportsCountChromeBrowsersNeedingAttentionCall {
  4467  	c.ctx_ = ctx
  4468  	return c
  4469  }
  4470  
  4471  // Header returns a http.Header that can be modified by the caller to add
  4472  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention" call.
  4502  // Any non-2xx status code is an error. Response headers are in either
  4503  // *GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse.ServerRe
  4504  // sponse.Header or (if a response was returned at all) in
  4505  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4506  // whether the returned error was because http.StatusNotModified was returned.
  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  // CountChromeCrashEvents: Get a count of Chrome crash events.
  4549  //
  4550  // - customer: Customer ID.
  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  // Filter sets the optional parameter "filter": Query string to filter results,
  4558  // AND-separated fields in EBNF syntax. Supported filter fields: *
  4559  // major_browser_version * minor_browser_version * browser_channel *
  4560  // device_platform * past_number_days Example: `major_browser_version = 'M115'
  4561  // AND past_number_days = '28'`.
  4562  func (c *CustomersReportsCountChromeCrashEventsCall) Filter(filter string) *CustomersReportsCountChromeCrashEventsCall {
  4563  	c.urlParams_.Set("filter", filter)
  4564  	return c
  4565  }
  4566  
  4567  // OrderBy sets the optional parameter "orderBy": Field used to order results.
  4568  // Supported order by fields: * browser_version * count * date
  4569  func (c *CustomersReportsCountChromeCrashEventsCall) OrderBy(orderBy string) *CustomersReportsCountChromeCrashEventsCall {
  4570  	c.urlParams_.Set("orderBy", orderBy)
  4571  	return c
  4572  }
  4573  
  4574  // OrgUnitId sets the optional parameter "orgUnitId": If specified, only count
  4575  // the number of crash events of the devices in this organizational unit.
  4576  func (c *CustomersReportsCountChromeCrashEventsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeCrashEventsCall {
  4577  	c.urlParams_.Set("orgUnitId", orgUnitId)
  4578  	return c
  4579  }
  4580  
  4581  // Fields allows partial responses to be retrieved. See
  4582  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4583  // details.
  4584  func (c *CustomersReportsCountChromeCrashEventsCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeCrashEventsCall {
  4585  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4586  	return c
  4587  }
  4588  
  4589  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4590  // object's ETag matches the given value. This is useful for getting updates
  4591  // only after the object has changed since the last request.
  4592  func (c *CustomersReportsCountChromeCrashEventsCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeCrashEventsCall {
  4593  	c.ifNoneMatch_ = entityTag
  4594  	return c
  4595  }
  4596  
  4597  // Context sets the context to be used in this call's Do method.
  4598  func (c *CustomersReportsCountChromeCrashEventsCall) Context(ctx context.Context) *CustomersReportsCountChromeCrashEventsCall {
  4599  	c.ctx_ = ctx
  4600  	return c
  4601  }
  4602  
  4603  // Header returns a http.Header that can be modified by the caller to add
  4604  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countChromeCrashEvents" call.
  4634  // Any non-2xx status code is an error. Response headers are in either
  4635  // *GoogleChromeManagementV1CountChromeCrashEventsResponse.ServerResponse.Header
  4636  //
  4637  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
  4638  //
  4639  // Use googleapi.IsNotModified to check whether the returned error was because
  4640  // http.StatusNotModified was returned.
  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  // CountChromeDevicesReachingAutoExpirationDate: Generate report of the number
  4683  // of devices expiring in each month of the selected time frame. Devices are
  4684  // grouped by auto update expiration date and model. Further information can be
  4685  // found here (https://support.google.com/chrome/a/answer/10564947).
  4686  //
  4687  // - customer: The customer ID or "my_customer" prefixed with "customers/".
  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  // MaxAueDate sets the optional parameter "maxAueDate": Maximum expiration date
  4695  // in format yyyy-mm-dd in UTC timezone. If included returns all devices that
  4696  // have already expired and devices with auto expiration date equal to or
  4697  // earlier than the maximum date.
  4698  func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) MaxAueDate(maxAueDate string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall {
  4699  	c.urlParams_.Set("maxAueDate", maxAueDate)
  4700  	return c
  4701  }
  4702  
  4703  // MinAueDate sets the optional parameter "minAueDate": Maximum expiration date
  4704  // in format yyyy-mm-dd in UTC timezone. If included returns all devices that
  4705  // have already expired and devices with auto expiration date equal to or later
  4706  // than the minimum date.
  4707  func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) MinAueDate(minAueDate string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall {
  4708  	c.urlParams_.Set("minAueDate", minAueDate)
  4709  	return c
  4710  }
  4711  
  4712  // OrgUnitId sets the optional parameter "orgUnitId": The organizational unit
  4713  // ID, if omitted, will return data for all organizational units.
  4714  func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall {
  4715  	c.urlParams_.Set("orgUnitId", orgUnitId)
  4716  	return c
  4717  }
  4718  
  4719  // Fields allows partial responses to be retrieved. See
  4720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4721  // details.
  4722  func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall {
  4723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4724  	return c
  4725  }
  4726  
  4727  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4728  // object's ETag matches the given value. This is useful for getting updates
  4729  // only after the object has changed since the last request.
  4730  func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall {
  4731  	c.ifNoneMatch_ = entityTag
  4732  	return c
  4733  }
  4734  
  4735  // Context sets the context to be used in this call's Do method.
  4736  func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Context(ctx context.Context) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall {
  4737  	c.ctx_ = ctx
  4738  	return c
  4739  }
  4740  
  4741  // Header returns a http.Header that can be modified by the caller to add
  4742  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate" call.
  4772  // Any non-2xx status code is an error. Response headers are in either
  4773  // *GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse
  4774  // .ServerResponse.Header or (if a response was returned at all) in
  4775  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4776  // whether the returned error was because http.StatusNotModified was returned.
  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  // CountChromeDevicesThatNeedAttention: Counts of ChromeOS devices that have
  4819  // not synced policies or have lacked user activity in the past 28 days, are
  4820  // out of date, or are not complaint. Further information can be found here
  4821  // https://support.google.com/chrome/a/answer/10564947
  4822  //
  4823  // - customer: The customer ID or "my_customer" prefixed with "customers/".
  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  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  4831  // organizational unit. If omitted, all data will be returned.
  4832  func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall {
  4833  	c.urlParams_.Set("orgUnitId", orgUnitId)
  4834  	return c
  4835  }
  4836  
  4837  // ReadMask sets the optional parameter "readMask": Required. Mask of the
  4838  // fields that should be populated in the returned report.
  4839  func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) ReadMask(readMask string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall {
  4840  	c.urlParams_.Set("readMask", readMask)
  4841  	return c
  4842  }
  4843  
  4844  // Fields allows partial responses to be retrieved. See
  4845  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4846  // details.
  4847  func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeDevicesThatNeedAttentionCall {
  4848  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4849  	return c
  4850  }
  4851  
  4852  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4853  // object's ETag matches the given value. This is useful for getting updates
  4854  // only after the object has changed since the last request.
  4855  func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall {
  4856  	c.ifNoneMatch_ = entityTag
  4857  	return c
  4858  }
  4859  
  4860  // Context sets the context to be used in this call's Do method.
  4861  func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Context(ctx context.Context) *CustomersReportsCountChromeDevicesThatNeedAttentionCall {
  4862  	c.ctx_ = ctx
  4863  	return c
  4864  }
  4865  
  4866  // Header returns a http.Header that can be modified by the caller to add
  4867  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention" call.
  4897  // Any non-2xx status code is an error. Response headers are in either
  4898  // *GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse.ServerRe
  4899  // sponse.Header or (if a response was returned at all) in
  4900  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4901  // whether the returned error was because http.StatusNotModified was returned.
  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  // CountChromeHardwareFleetDevices: Counts of devices with a specific hardware
  4944  // specification from the requested hardware type (for example model name,
  4945  // processor type). Further information can be found here
  4946  // https://support.google.com/chrome/a/answer/10564947
  4947  //
  4948  // - customer: The customer ID or "my_customer".
  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  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  4956  // organizational unit. If omitted, all data will be returned.
  4957  func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeHardwareFleetDevicesCall {
  4958  	c.urlParams_.Set("orgUnitId", orgUnitId)
  4959  	return c
  4960  }
  4961  
  4962  // ReadMask sets the optional parameter "readMask": Required. Mask of the
  4963  // fields that should be populated in the returned report.
  4964  func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) ReadMask(readMask string) *CustomersReportsCountChromeHardwareFleetDevicesCall {
  4965  	c.urlParams_.Set("readMask", readMask)
  4966  	return c
  4967  }
  4968  
  4969  // Fields allows partial responses to be retrieved. See
  4970  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4971  // details.
  4972  func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeHardwareFleetDevicesCall {
  4973  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4974  	return c
  4975  }
  4976  
  4977  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4978  // object's ETag matches the given value. This is useful for getting updates
  4979  // only after the object has changed since the last request.
  4980  func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeHardwareFleetDevicesCall {
  4981  	c.ifNoneMatch_ = entityTag
  4982  	return c
  4983  }
  4984  
  4985  // Context sets the context to be used in this call's Do method.
  4986  func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) Context(ctx context.Context) *CustomersReportsCountChromeHardwareFleetDevicesCall {
  4987  	c.ctx_ = ctx
  4988  	return c
  4989  }
  4990  
  4991  // Header returns a http.Header that can be modified by the caller to add
  4992  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countChromeHardwareFleetDevices" call.
  5022  // Any non-2xx status code is an error. Response headers are in either
  5023  // *GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse.ServerRespon
  5024  // se.Header or (if a response was returned at all) in
  5025  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5026  // whether the returned error was because http.StatusNotModified was returned.
  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  // CountChromeVersions: Generate report of installed Chrome versions.
  5069  //
  5070  //   - customer: Customer id or "my_customer" to use the customer associated to
  5071  //     the account making the request.
  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  // Filter sets the optional parameter "filter": Query string to filter results,
  5079  // AND-separated fields in EBNF syntax. Note: OR operations are not supported
  5080  // in this filter. Supported filter fields: * last_active_date
  5081  func (c *CustomersReportsCountChromeVersionsCall) Filter(filter string) *CustomersReportsCountChromeVersionsCall {
  5082  	c.urlParams_.Set("filter", filter)
  5083  	return c
  5084  }
  5085  
  5086  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  5087  // organizational unit.
  5088  func (c *CustomersReportsCountChromeVersionsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeVersionsCall {
  5089  	c.urlParams_.Set("orgUnitId", orgUnitId)
  5090  	return c
  5091  }
  5092  
  5093  // PageSize sets the optional parameter "pageSize": Maximum number of results
  5094  // to return. Maximum and default are 100.
  5095  func (c *CustomersReportsCountChromeVersionsCall) PageSize(pageSize int64) *CustomersReportsCountChromeVersionsCall {
  5096  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5097  	return c
  5098  }
  5099  
  5100  // PageToken sets the optional parameter "pageToken": Token to specify the page
  5101  // of the request to be returned.
  5102  func (c *CustomersReportsCountChromeVersionsCall) PageToken(pageToken string) *CustomersReportsCountChromeVersionsCall {
  5103  	c.urlParams_.Set("pageToken", pageToken)
  5104  	return c
  5105  }
  5106  
  5107  // Fields allows partial responses to be retrieved. See
  5108  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5109  // details.
  5110  func (c *CustomersReportsCountChromeVersionsCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeVersionsCall {
  5111  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5112  	return c
  5113  }
  5114  
  5115  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5116  // object's ETag matches the given value. This is useful for getting updates
  5117  // only after the object has changed since the last request.
  5118  func (c *CustomersReportsCountChromeVersionsCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeVersionsCall {
  5119  	c.ifNoneMatch_ = entityTag
  5120  	return c
  5121  }
  5122  
  5123  // Context sets the context to be used in this call's Do method.
  5124  func (c *CustomersReportsCountChromeVersionsCall) Context(ctx context.Context) *CustomersReportsCountChromeVersionsCall {
  5125  	c.ctx_ = ctx
  5126  	return c
  5127  }
  5128  
  5129  // Header returns a http.Header that can be modified by the caller to add
  5130  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countChromeVersions" call.
  5160  // Any non-2xx status code is an error. Response headers are in either
  5161  // *GoogleChromeManagementV1CountChromeVersionsResponse.ServerResponse.Header
  5162  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  5163  // Use googleapi.IsNotModified to check whether the returned error was because
  5164  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  5198  // A non-nil error returned from f will halt the iteration.
  5199  // The provided context supersedes any context provided to the Context method.
  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  // CountInstalledApps: Generate report of app installations.
  5228  //
  5229  //   - customer: Customer id or "my_customer" to use the customer associated to
  5230  //     the account making the request.
  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  // Filter sets the optional parameter "filter": Query string to filter results,
  5238  // AND-separated fields in EBNF syntax. Note: OR operations are not supported
  5239  // in this filter. Supported filter fields: * app_name * app_type *
  5240  // install_type * number_of_permissions * total_install_count *
  5241  // latest_profile_active_date * permission_name * app_id
  5242  func (c *CustomersReportsCountInstalledAppsCall) Filter(filter string) *CustomersReportsCountInstalledAppsCall {
  5243  	c.urlParams_.Set("filter", filter)
  5244  	return c
  5245  }
  5246  
  5247  // OrderBy sets the optional parameter "orderBy": Field used to order results.
  5248  // Supported order by fields: * app_name * app_type * install_type *
  5249  // number_of_permissions * total_install_count * app_id
  5250  func (c *CustomersReportsCountInstalledAppsCall) OrderBy(orderBy string) *CustomersReportsCountInstalledAppsCall {
  5251  	c.urlParams_.Set("orderBy", orderBy)
  5252  	return c
  5253  }
  5254  
  5255  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  5256  // organizational unit.
  5257  func (c *CustomersReportsCountInstalledAppsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountInstalledAppsCall {
  5258  	c.urlParams_.Set("orgUnitId", orgUnitId)
  5259  	return c
  5260  }
  5261  
  5262  // PageSize sets the optional parameter "pageSize": Maximum number of results
  5263  // to return. Maximum and default are 100.
  5264  func (c *CustomersReportsCountInstalledAppsCall) PageSize(pageSize int64) *CustomersReportsCountInstalledAppsCall {
  5265  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5266  	return c
  5267  }
  5268  
  5269  // PageToken sets the optional parameter "pageToken": Token to specify the page
  5270  // of the request to be returned.
  5271  func (c *CustomersReportsCountInstalledAppsCall) PageToken(pageToken string) *CustomersReportsCountInstalledAppsCall {
  5272  	c.urlParams_.Set("pageToken", pageToken)
  5273  	return c
  5274  }
  5275  
  5276  // Fields allows partial responses to be retrieved. See
  5277  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5278  // details.
  5279  func (c *CustomersReportsCountInstalledAppsCall) Fields(s ...googleapi.Field) *CustomersReportsCountInstalledAppsCall {
  5280  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5281  	return c
  5282  }
  5283  
  5284  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5285  // object's ETag matches the given value. This is useful for getting updates
  5286  // only after the object has changed since the last request.
  5287  func (c *CustomersReportsCountInstalledAppsCall) IfNoneMatch(entityTag string) *CustomersReportsCountInstalledAppsCall {
  5288  	c.ifNoneMatch_ = entityTag
  5289  	return c
  5290  }
  5291  
  5292  // Context sets the context to be used in this call's Do method.
  5293  func (c *CustomersReportsCountInstalledAppsCall) Context(ctx context.Context) *CustomersReportsCountInstalledAppsCall {
  5294  	c.ctx_ = ctx
  5295  	return c
  5296  }
  5297  
  5298  // Header returns a http.Header that can be modified by the caller to add
  5299  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countInstalledApps" call.
  5329  // Any non-2xx status code is an error. Response headers are in either
  5330  // *GoogleChromeManagementV1CountInstalledAppsResponse.ServerResponse.Header or
  5331  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  5332  // googleapi.IsNotModified to check whether the returned error was because
  5333  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  5367  // A non-nil error returned from f will halt the iteration.
  5368  // The provided context supersedes any context provided to the Context method.
  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  // CountPrintJobsByPrinter: Get a summary of printing done by each printer.
  5397  //
  5398  //   - customer: Customer ID prefixed with "customers/" or
  5399  //     "customers/my_customer" to use the customer associated to the account
  5400  //     making the request.
  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  // Filter sets the optional parameter "filter": Query string to filter results,
  5408  // AND-separated fields in EBNF syntax. Note: OR operations are not supported
  5409  // in this filter. Note: Only >= and <= comparators are supported in this
  5410  // filter. Supported filter fields: * complete_time
  5411  func (c *CustomersReportsCountPrintJobsByPrinterCall) Filter(filter string) *CustomersReportsCountPrintJobsByPrinterCall {
  5412  	c.urlParams_.Set("filter", filter)
  5413  	return c
  5414  }
  5415  
  5416  // OrderBy sets the optional parameter "orderBy": Field used to order results.
  5417  // If omitted, results will be ordered in ascending order of the 'printer'
  5418  // field. Supported order_by fields: * printer * job_count * device_count *
  5419  // user_count
  5420  func (c *CustomersReportsCountPrintJobsByPrinterCall) OrderBy(orderBy string) *CustomersReportsCountPrintJobsByPrinterCall {
  5421  	c.urlParams_.Set("orderBy", orderBy)
  5422  	return c
  5423  }
  5424  
  5425  // PageSize sets the optional parameter "pageSize": Maximum number of results
  5426  // to return. Maximum and default are 100.
  5427  func (c *CustomersReportsCountPrintJobsByPrinterCall) PageSize(pageSize int64) *CustomersReportsCountPrintJobsByPrinterCall {
  5428  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5429  	return c
  5430  }
  5431  
  5432  // PageToken sets the optional parameter "pageToken": Token to specify the page
  5433  // of the response to be returned.
  5434  func (c *CustomersReportsCountPrintJobsByPrinterCall) PageToken(pageToken string) *CustomersReportsCountPrintJobsByPrinterCall {
  5435  	c.urlParams_.Set("pageToken", pageToken)
  5436  	return c
  5437  }
  5438  
  5439  // PrinterOrgUnitId sets the optional parameter "printerOrgUnitId": The ID of
  5440  // the organizational unit for printers. If specified, only data for printers
  5441  // from the specified organizational unit will be returned. If omitted, data
  5442  // for printers from all organizational units will be returned.
  5443  func (c *CustomersReportsCountPrintJobsByPrinterCall) PrinterOrgUnitId(printerOrgUnitId string) *CustomersReportsCountPrintJobsByPrinterCall {
  5444  	c.urlParams_.Set("printerOrgUnitId", printerOrgUnitId)
  5445  	return c
  5446  }
  5447  
  5448  // Fields allows partial responses to be retrieved. See
  5449  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5450  // details.
  5451  func (c *CustomersReportsCountPrintJobsByPrinterCall) Fields(s ...googleapi.Field) *CustomersReportsCountPrintJobsByPrinterCall {
  5452  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5453  	return c
  5454  }
  5455  
  5456  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5457  // object's ETag matches the given value. This is useful for getting updates
  5458  // only after the object has changed since the last request.
  5459  func (c *CustomersReportsCountPrintJobsByPrinterCall) IfNoneMatch(entityTag string) *CustomersReportsCountPrintJobsByPrinterCall {
  5460  	c.ifNoneMatch_ = entityTag
  5461  	return c
  5462  }
  5463  
  5464  // Context sets the context to be used in this call's Do method.
  5465  func (c *CustomersReportsCountPrintJobsByPrinterCall) Context(ctx context.Context) *CustomersReportsCountPrintJobsByPrinterCall {
  5466  	c.ctx_ = ctx
  5467  	return c
  5468  }
  5469  
  5470  // Header returns a http.Header that can be modified by the caller to add
  5471  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countPrintJobsByPrinter" call.
  5501  // Any non-2xx status code is an error. Response headers are in either
  5502  // *GoogleChromeManagementV1CountPrintJobsByPrinterResponse.ServerResponse.Heade
  5503  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
  5504  // Use googleapi.IsNotModified to check whether the returned error was because
  5505  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  5539  // A non-nil error returned from f will halt the iteration.
  5540  // The provided context supersedes any context provided to the Context method.
  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  // CountPrintJobsByUser: Get a summary of printing done by each user.
  5569  //
  5570  //   - customer: Customer ID prefixed with "customers/" or
  5571  //     "customers/my_customer" to use the customer associated to the account
  5572  //     making the request.
  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  // Filter sets the optional parameter "filter": Query string to filter results,
  5580  // AND-separated fields in EBNF syntax. Note: OR operations are not supported
  5581  // in this filter. Note: Only >= and <= comparators are supported in this
  5582  // filter. Supported filter fields: * complete_time
  5583  func (c *CustomersReportsCountPrintJobsByUserCall) Filter(filter string) *CustomersReportsCountPrintJobsByUserCall {
  5584  	c.urlParams_.Set("filter", filter)
  5585  	return c
  5586  }
  5587  
  5588  // OrderBy sets the optional parameter "orderBy": Field used to order results.
  5589  // If omitted, results will be ordered in ascending order of the 'user_email'
  5590  // field. Supported order_by fields: * user_email * job_count * printer_count *
  5591  // device_count
  5592  func (c *CustomersReportsCountPrintJobsByUserCall) OrderBy(orderBy string) *CustomersReportsCountPrintJobsByUserCall {
  5593  	c.urlParams_.Set("orderBy", orderBy)
  5594  	return c
  5595  }
  5596  
  5597  // PageSize sets the optional parameter "pageSize": Maximum number of results
  5598  // to return. Maximum and default are 100.
  5599  func (c *CustomersReportsCountPrintJobsByUserCall) PageSize(pageSize int64) *CustomersReportsCountPrintJobsByUserCall {
  5600  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5601  	return c
  5602  }
  5603  
  5604  // PageToken sets the optional parameter "pageToken": Token to specify the page
  5605  // of the response to be returned.
  5606  func (c *CustomersReportsCountPrintJobsByUserCall) PageToken(pageToken string) *CustomersReportsCountPrintJobsByUserCall {
  5607  	c.urlParams_.Set("pageToken", pageToken)
  5608  	return c
  5609  }
  5610  
  5611  // PrinterOrgUnitId sets the optional parameter "printerOrgUnitId": The ID of
  5612  // the organizational unit for printers. If specified, only print jobs
  5613  // initiated with printers from the specified organizational unit will be
  5614  // counted. If omitted, all print jobs will be counted.
  5615  func (c *CustomersReportsCountPrintJobsByUserCall) PrinterOrgUnitId(printerOrgUnitId string) *CustomersReportsCountPrintJobsByUserCall {
  5616  	c.urlParams_.Set("printerOrgUnitId", printerOrgUnitId)
  5617  	return c
  5618  }
  5619  
  5620  // Fields allows partial responses to be retrieved. See
  5621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5622  // details.
  5623  func (c *CustomersReportsCountPrintJobsByUserCall) Fields(s ...googleapi.Field) *CustomersReportsCountPrintJobsByUserCall {
  5624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5625  	return c
  5626  }
  5627  
  5628  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5629  // object's ETag matches the given value. This is useful for getting updates
  5630  // only after the object has changed since the last request.
  5631  func (c *CustomersReportsCountPrintJobsByUserCall) IfNoneMatch(entityTag string) *CustomersReportsCountPrintJobsByUserCall {
  5632  	c.ifNoneMatch_ = entityTag
  5633  	return c
  5634  }
  5635  
  5636  // Context sets the context to be used in this call's Do method.
  5637  func (c *CustomersReportsCountPrintJobsByUserCall) Context(ctx context.Context) *CustomersReportsCountPrintJobsByUserCall {
  5638  	c.ctx_ = ctx
  5639  	return c
  5640  }
  5641  
  5642  // Header returns a http.Header that can be modified by the caller to add
  5643  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.countPrintJobsByUser" call.
  5673  // Any non-2xx status code is an error. Response headers are in either
  5674  // *GoogleChromeManagementV1CountPrintJobsByUserResponse.ServerResponse.Header
  5675  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  5676  // Use googleapi.IsNotModified to check whether the returned error was because
  5677  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  5711  // A non-nil error returned from f will halt the iteration.
  5712  // The provided context supersedes any context provided to the Context method.
  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  // EnumeratePrintJobs: Get a list of print jobs.
  5741  //
  5742  //   - customer: Customer ID prefixed with "customers/" or
  5743  //     "customers/my_customer" to use the customer associated to the account
  5744  //     making the request.
  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  // Filter sets the optional parameter "filter": Query string to filter results,
  5752  // AND-separated fields in EBNF syntax. Note: OR operations are not supported
  5753  // in this filter. Note: Only >= and <= comparators are supported for
  5754  // `complete_time`. Note: Only = comparator supported for `user_id` and
  5755  // `printer_id`. Supported filter fields: * complete_time * printer_id *
  5756  // user_id
  5757  func (c *CustomersReportsEnumeratePrintJobsCall) Filter(filter string) *CustomersReportsEnumeratePrintJobsCall {
  5758  	c.urlParams_.Set("filter", filter)
  5759  	return c
  5760  }
  5761  
  5762  // OrderBy sets the optional parameter "orderBy": Field used to order results.
  5763  // If not specified, results will be ordered in descending order of the
  5764  // `complete_time` field. Supported order by fields: * title * state *
  5765  // create_time * complete_time * document_page_count * color_mode * duplex_mode
  5766  // * printer * user_email
  5767  func (c *CustomersReportsEnumeratePrintJobsCall) OrderBy(orderBy string) *CustomersReportsEnumeratePrintJobsCall {
  5768  	c.urlParams_.Set("orderBy", orderBy)
  5769  	return c
  5770  }
  5771  
  5772  // PageSize sets the optional parameter "pageSize": The number of print jobs in
  5773  // the page from 0 to 100 inclusive, if page_size is not specified or zero, the
  5774  // size will be 50.
  5775  func (c *CustomersReportsEnumeratePrintJobsCall) PageSize(pageSize int64) *CustomersReportsEnumeratePrintJobsCall {
  5776  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5777  	return c
  5778  }
  5779  
  5780  // PageToken sets the optional parameter "pageToken": A page token received
  5781  // from a previous `EnumeratePrintJobs` call. Provide this to retrieve the
  5782  // subsequent page. If omitted, the first page of results will be returned.
  5783  // When paginating, all other parameters provided to `EnumeratePrintJobs` must
  5784  // match the call that provided the page token.
  5785  func (c *CustomersReportsEnumeratePrintJobsCall) PageToken(pageToken string) *CustomersReportsEnumeratePrintJobsCall {
  5786  	c.urlParams_.Set("pageToken", pageToken)
  5787  	return c
  5788  }
  5789  
  5790  // PrinterOrgUnitId sets the optional parameter "printerOrgUnitId": The ID of
  5791  // the organizational unit for printers. If specified, only print jobs
  5792  // submitted to printers from the specified organizational unit will be
  5793  // returned.
  5794  func (c *CustomersReportsEnumeratePrintJobsCall) PrinterOrgUnitId(printerOrgUnitId string) *CustomersReportsEnumeratePrintJobsCall {
  5795  	c.urlParams_.Set("printerOrgUnitId", printerOrgUnitId)
  5796  	return c
  5797  }
  5798  
  5799  // Fields allows partial responses to be retrieved. See
  5800  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5801  // details.
  5802  func (c *CustomersReportsEnumeratePrintJobsCall) Fields(s ...googleapi.Field) *CustomersReportsEnumeratePrintJobsCall {
  5803  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5804  	return c
  5805  }
  5806  
  5807  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5808  // object's ETag matches the given value. This is useful for getting updates
  5809  // only after the object has changed since the last request.
  5810  func (c *CustomersReportsEnumeratePrintJobsCall) IfNoneMatch(entityTag string) *CustomersReportsEnumeratePrintJobsCall {
  5811  	c.ifNoneMatch_ = entityTag
  5812  	return c
  5813  }
  5814  
  5815  // Context sets the context to be used in this call's Do method.
  5816  func (c *CustomersReportsEnumeratePrintJobsCall) Context(ctx context.Context) *CustomersReportsEnumeratePrintJobsCall {
  5817  	c.ctx_ = ctx
  5818  	return c
  5819  }
  5820  
  5821  // Header returns a http.Header that can be modified by the caller to add
  5822  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.enumeratePrintJobs" call.
  5852  // Any non-2xx status code is an error. Response headers are in either
  5853  // *GoogleChromeManagementV1EnumeratePrintJobsResponse.ServerResponse.Header or
  5854  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  5855  // googleapi.IsNotModified to check whether the returned error was because
  5856  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  5890  // A non-nil error returned from f will halt the iteration.
  5891  // The provided context supersedes any context provided to the Context method.
  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  // FindInstalledAppDevices: Generate report of managed Chrome browser devices
  5920  // that have a specified app installed.
  5921  //
  5922  //   - customer: Customer id or "my_customer" to use the customer associated to
  5923  //     the account making the request.
  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  // AppId sets the optional parameter "appId": Unique identifier of the app. For
  5931  // Chrome apps and extensions, the 32-character id (e.g.
  5932  // ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g.
  5933  // com.evernote).
  5934  func (c *CustomersReportsFindInstalledAppDevicesCall) AppId(appId string) *CustomersReportsFindInstalledAppDevicesCall {
  5935  	c.urlParams_.Set("appId", appId)
  5936  	return c
  5937  }
  5938  
  5939  // AppType sets the optional parameter "appType": Type of the app.
  5940  //
  5941  // Possible values:
  5942  //
  5943  //	"APP_TYPE_UNSPECIFIED" - App type not specified.
  5944  //	"EXTENSION" - Chrome extension.
  5945  //	"APP" - Chrome app.
  5946  //	"THEME" - Chrome theme.
  5947  //	"HOSTED_APP" - Chrome hosted app.
  5948  //	"ANDROID_APP" - ARC++ app.
  5949  func (c *CustomersReportsFindInstalledAppDevicesCall) AppType(appType string) *CustomersReportsFindInstalledAppDevicesCall {
  5950  	c.urlParams_.Set("appType", appType)
  5951  	return c
  5952  }
  5953  
  5954  // Filter sets the optional parameter "filter": Query string to filter results,
  5955  // AND-separated fields in EBNF syntax. Note: OR operations are not supported
  5956  // in this filter. Supported filter fields: * last_active_date
  5957  func (c *CustomersReportsFindInstalledAppDevicesCall) Filter(filter string) *CustomersReportsFindInstalledAppDevicesCall {
  5958  	c.urlParams_.Set("filter", filter)
  5959  	return c
  5960  }
  5961  
  5962  // OrderBy sets the optional parameter "orderBy": Field used to order results.
  5963  // Supported order by fields: * machine * device_id
  5964  func (c *CustomersReportsFindInstalledAppDevicesCall) OrderBy(orderBy string) *CustomersReportsFindInstalledAppDevicesCall {
  5965  	c.urlParams_.Set("orderBy", orderBy)
  5966  	return c
  5967  }
  5968  
  5969  // OrgUnitId sets the optional parameter "orgUnitId": The ID of the
  5970  // organizational unit.
  5971  func (c *CustomersReportsFindInstalledAppDevicesCall) OrgUnitId(orgUnitId string) *CustomersReportsFindInstalledAppDevicesCall {
  5972  	c.urlParams_.Set("orgUnitId", orgUnitId)
  5973  	return c
  5974  }
  5975  
  5976  // PageSize sets the optional parameter "pageSize": Maximum number of results
  5977  // to return. Maximum and default are 100.
  5978  func (c *CustomersReportsFindInstalledAppDevicesCall) PageSize(pageSize int64) *CustomersReportsFindInstalledAppDevicesCall {
  5979  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5980  	return c
  5981  }
  5982  
  5983  // PageToken sets the optional parameter "pageToken": Token to specify the page
  5984  // of the request to be returned.
  5985  func (c *CustomersReportsFindInstalledAppDevicesCall) PageToken(pageToken string) *CustomersReportsFindInstalledAppDevicesCall {
  5986  	c.urlParams_.Set("pageToken", pageToken)
  5987  	return c
  5988  }
  5989  
  5990  // Fields allows partial responses to be retrieved. See
  5991  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5992  // details.
  5993  func (c *CustomersReportsFindInstalledAppDevicesCall) Fields(s ...googleapi.Field) *CustomersReportsFindInstalledAppDevicesCall {
  5994  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5995  	return c
  5996  }
  5997  
  5998  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5999  // object's ETag matches the given value. This is useful for getting updates
  6000  // only after the object has changed since the last request.
  6001  func (c *CustomersReportsFindInstalledAppDevicesCall) IfNoneMatch(entityTag string) *CustomersReportsFindInstalledAppDevicesCall {
  6002  	c.ifNoneMatch_ = entityTag
  6003  	return c
  6004  }
  6005  
  6006  // Context sets the context to be used in this call's Do method.
  6007  func (c *CustomersReportsFindInstalledAppDevicesCall) Context(ctx context.Context) *CustomersReportsFindInstalledAppDevicesCall {
  6008  	c.ctx_ = ctx
  6009  	return c
  6010  }
  6011  
  6012  // Header returns a http.Header that can be modified by the caller to add
  6013  // headers to the request.
  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  // Do executes the "chromemanagement.customers.reports.findInstalledAppDevices" call.
  6043  // Any non-2xx status code is an error. Response headers are in either
  6044  // *GoogleChromeManagementV1FindInstalledAppDevicesResponse.ServerResponse.Heade
  6045  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
  6046  // Use googleapi.IsNotModified to check whether the returned error was because
  6047  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  6081  // A non-nil error returned from f will halt the iteration.
  6082  // The provided context supersedes any context provided to the Context method.
  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  // Get: Get telemetry device.
  6111  //
  6112  // - name: Name of the `TelemetryDevice` to return.
  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  // ReadMask sets the optional parameter "readMask": Required. Read mask to
  6120  // specify which fields to return. Supported read_mask paths are: - name -
  6121  // org_unit_id - device_id - serial_number - cpu_info - cpu_status_report -
  6122  // memory_info - memory_status_report - network_info -
  6123  // network_diagnostics_report - network_status_report - os_update_status -
  6124  // graphics_info - graphics_status_report - battery_info -
  6125  // battery_status_report - storage_info - storage_status_report -
  6126  // thunderbolt_info - audio_status_report - boot_performance_report -
  6127  // heartbeat_status_report - network_bandwidth_report - peripherals_report -
  6128  // kiosk_app_status_report - app_report - runtime_counters_report
  6129  func (c *CustomersTelemetryDevicesGetCall) ReadMask(readMask string) *CustomersTelemetryDevicesGetCall {
  6130  	c.urlParams_.Set("readMask", readMask)
  6131  	return c
  6132  }
  6133  
  6134  // Fields allows partial responses to be retrieved. See
  6135  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6136  // details.
  6137  func (c *CustomersTelemetryDevicesGetCall) Fields(s ...googleapi.Field) *CustomersTelemetryDevicesGetCall {
  6138  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6139  	return c
  6140  }
  6141  
  6142  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6143  // object's ETag matches the given value. This is useful for getting updates
  6144  // only after the object has changed since the last request.
  6145  func (c *CustomersTelemetryDevicesGetCall) IfNoneMatch(entityTag string) *CustomersTelemetryDevicesGetCall {
  6146  	c.ifNoneMatch_ = entityTag
  6147  	return c
  6148  }
  6149  
  6150  // Context sets the context to be used in this call's Do method.
  6151  func (c *CustomersTelemetryDevicesGetCall) Context(ctx context.Context) *CustomersTelemetryDevicesGetCall {
  6152  	c.ctx_ = ctx
  6153  	return c
  6154  }
  6155  
  6156  // Header returns a http.Header that can be modified by the caller to add
  6157  // headers to the request.
  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  // Do executes the "chromemanagement.customers.telemetry.devices.get" call.
  6187  // Any non-2xx status code is an error. Response headers are in either
  6188  // *GoogleChromeManagementV1TelemetryDevice.ServerResponse.Header or (if a
  6189  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6190  // googleapi.IsNotModified to check whether the returned error was because
  6191  // http.StatusNotModified was returned.
  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  // List: List all telemetry devices.
  6234  //
  6235  //   - parent: Customer id or "my_customer" to use the customer associated to the
  6236  //     account making the request.
  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  // Filter sets the optional parameter "filter": Only include resources that
  6244  // match the filter. Requests that don't specify a "reports_timestamp" value
  6245  // will default to returning only recent reports. Specify
  6246  // "reports_timestamp>=0" to get all report data. Supported filter fields: -
  6247  // org_unit_id - serial_number - device_id - reports_timestamp The
  6248  // "reports_timestamp" filter accepts either the Unix Epoch milliseconds format
  6249  // or the RFC3339 UTC "Zulu" format with nanosecond resolution and up to nine
  6250  // fractional digits. Both formats should be surrounded by simple double
  6251  // quotes. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z",
  6252  // "1679283943823".
  6253  func (c *CustomersTelemetryDevicesListCall) Filter(filter string) *CustomersTelemetryDevicesListCall {
  6254  	c.urlParams_.Set("filter", filter)
  6255  	return c
  6256  }
  6257  
  6258  // PageSize sets the optional parameter "pageSize": Maximum number of results
  6259  // to return. Default value is 100. Maximum value is 1000.
  6260  func (c *CustomersTelemetryDevicesListCall) PageSize(pageSize int64) *CustomersTelemetryDevicesListCall {
  6261  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6262  	return c
  6263  }
  6264  
  6265  // PageToken sets the optional parameter "pageToken": Token to specify next
  6266  // page in the list.
  6267  func (c *CustomersTelemetryDevicesListCall) PageToken(pageToken string) *CustomersTelemetryDevicesListCall {
  6268  	c.urlParams_.Set("pageToken", pageToken)
  6269  	return c
  6270  }
  6271  
  6272  // ReadMask sets the optional parameter "readMask": Required. Read mask to
  6273  // specify which fields to return. Supported read_mask paths are: - name -
  6274  // org_unit_id - device_id - serial_number - cpu_info - cpu_status_report -
  6275  // memory_info - memory_status_report - network_info -
  6276  // network_diagnostics_report - network_status_report - os_update_status -
  6277  // graphics_info - graphics_status_report - battery_info -
  6278  // battery_status_report - storage_info - storage_status_report -
  6279  // thunderbolt_info - audio_status_report - boot_performance_report -
  6280  // heartbeat_status_report - network_bandwidth_report - peripherals_report -
  6281  // kiosk_app_status_report - app_report - runtime_counters_report
  6282  func (c *CustomersTelemetryDevicesListCall) ReadMask(readMask string) *CustomersTelemetryDevicesListCall {
  6283  	c.urlParams_.Set("readMask", readMask)
  6284  	return c
  6285  }
  6286  
  6287  // Fields allows partial responses to be retrieved. See
  6288  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6289  // details.
  6290  func (c *CustomersTelemetryDevicesListCall) Fields(s ...googleapi.Field) *CustomersTelemetryDevicesListCall {
  6291  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6292  	return c
  6293  }
  6294  
  6295  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6296  // object's ETag matches the given value. This is useful for getting updates
  6297  // only after the object has changed since the last request.
  6298  func (c *CustomersTelemetryDevicesListCall) IfNoneMatch(entityTag string) *CustomersTelemetryDevicesListCall {
  6299  	c.ifNoneMatch_ = entityTag
  6300  	return c
  6301  }
  6302  
  6303  // Context sets the context to be used in this call's Do method.
  6304  func (c *CustomersTelemetryDevicesListCall) Context(ctx context.Context) *CustomersTelemetryDevicesListCall {
  6305  	c.ctx_ = ctx
  6306  	return c
  6307  }
  6308  
  6309  // Header returns a http.Header that can be modified by the caller to add
  6310  // headers to the request.
  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  // Do executes the "chromemanagement.customers.telemetry.devices.list" call.
  6340  // Any non-2xx status code is an error. Response headers are in either
  6341  // *GoogleChromeManagementV1ListTelemetryDevicesResponse.ServerResponse.Header
  6342  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  6343  // Use googleapi.IsNotModified to check whether the returned error was because
  6344  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  6378  // A non-nil error returned from f will halt the iteration.
  6379  // The provided context supersedes any context provided to the Context method.
  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  // List: List telemetry events.
  6408  //
  6409  //   - parent: Customer id or "my_customer" to use the customer associated to the
  6410  //     account making the request.
  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  // Filter sets the optional parameter "filter": Only include resources that
  6418  // match the filter. Although this parameter is currently optional, this
  6419  // parameter will be required- please specify at least 1 event type. Supported
  6420  // filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id
  6421  // - timestamp - event_type The "timestamp" filter accepts either the Unix
  6422  // Epoch milliseconds format or the RFC3339 UTC "Zulu" format with nanosecond
  6423  // resolution and up to nine fractional digits. Both formats should be
  6424  // surrounded by simple double quotes. Examples: "2014-10-02T15:01:23Z",
  6425  // "2014-10-02T15:01:23.045123456Z", "1679283943823".
  6426  func (c *CustomersTelemetryEventsListCall) Filter(filter string) *CustomersTelemetryEventsListCall {
  6427  	c.urlParams_.Set("filter", filter)
  6428  	return c
  6429  }
  6430  
  6431  // PageSize sets the optional parameter "pageSize": Maximum number of results
  6432  // to return. Default value is 100. Maximum value is 1000.
  6433  func (c *CustomersTelemetryEventsListCall) PageSize(pageSize int64) *CustomersTelemetryEventsListCall {
  6434  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6435  	return c
  6436  }
  6437  
  6438  // PageToken sets the optional parameter "pageToken": Token to specify next
  6439  // page in the list.
  6440  func (c *CustomersTelemetryEventsListCall) PageToken(pageToken string) *CustomersTelemetryEventsListCall {
  6441  	c.urlParams_.Set("pageToken", pageToken)
  6442  	return c
  6443  }
  6444  
  6445  // ReadMask sets the optional parameter "readMask": Required. Read mask to
  6446  // specify which fields to return. Although currently required, this field will
  6447  // become optional, while the filter parameter with an event type will be come
  6448  // required. Supported read_mask paths are: - device - user -
  6449  // audio_severe_underrun_event - usb_peripherals_event -
  6450  // https_latency_change_event - network_state_change_event -
  6451  // wifi_signal_strength_event - vpn_connection_state_change_event -
  6452  // app_install_event - app_uninstall_event - app_launch_event
  6453  func (c *CustomersTelemetryEventsListCall) ReadMask(readMask string) *CustomersTelemetryEventsListCall {
  6454  	c.urlParams_.Set("readMask", readMask)
  6455  	return c
  6456  }
  6457  
  6458  // Fields allows partial responses to be retrieved. See
  6459  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6460  // details.
  6461  func (c *CustomersTelemetryEventsListCall) Fields(s ...googleapi.Field) *CustomersTelemetryEventsListCall {
  6462  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6463  	return c
  6464  }
  6465  
  6466  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6467  // object's ETag matches the given value. This is useful for getting updates
  6468  // only after the object has changed since the last request.
  6469  func (c *CustomersTelemetryEventsListCall) IfNoneMatch(entityTag string) *CustomersTelemetryEventsListCall {
  6470  	c.ifNoneMatch_ = entityTag
  6471  	return c
  6472  }
  6473  
  6474  // Context sets the context to be used in this call's Do method.
  6475  func (c *CustomersTelemetryEventsListCall) Context(ctx context.Context) *CustomersTelemetryEventsListCall {
  6476  	c.ctx_ = ctx
  6477  	return c
  6478  }
  6479  
  6480  // Header returns a http.Header that can be modified by the caller to add
  6481  // headers to the request.
  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  // Do executes the "chromemanagement.customers.telemetry.events.list" call.
  6511  // Any non-2xx status code is an error. Response headers are in either
  6512  // *GoogleChromeManagementV1ListTelemetryEventsResponse.ServerResponse.Header
  6513  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  6514  // Use googleapi.IsNotModified to check whether the returned error was because
  6515  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  6549  // A non-nil error returned from f will halt the iteration.
  6550  // The provided context supersedes any context provided to the Context method.
  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  // Create: Create a telemetry notification config.
  6579  //
  6580  //   - parent: The parent resource where this notification config will be
  6581  //     created. Format: `customers/{customer}`.
  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  // Fields allows partial responses to be retrieved. See
  6590  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6591  // details.
  6592  func (c *CustomersTelemetryNotificationConfigsCreateCall) Fields(s ...googleapi.Field) *CustomersTelemetryNotificationConfigsCreateCall {
  6593  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6594  	return c
  6595  }
  6596  
  6597  // Context sets the context to be used in this call's Do method.
  6598  func (c *CustomersTelemetryNotificationConfigsCreateCall) Context(ctx context.Context) *CustomersTelemetryNotificationConfigsCreateCall {
  6599  	c.ctx_ = ctx
  6600  	return c
  6601  }
  6602  
  6603  // Header returns a http.Header that can be modified by the caller to add
  6604  // headers to the request.
  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  // Do executes the "chromemanagement.customers.telemetry.notificationConfigs.create" call.
  6635  // Any non-2xx status code is an error. Response headers are in either
  6636  // *GoogleChromeManagementV1TelemetryNotificationConfig.ServerResponse.Header
  6637  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  6638  // Use googleapi.IsNotModified to check whether the returned error was because
  6639  // http.StatusNotModified was returned.
  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  // Delete: Delete a telemetry notification config.
  6681  //
  6682  //   - name: The name of the notification config to delete. Format:
  6683  //     `customers/{customer}/telemetry/notificationConfigs/{notification_config}`.
  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  // Fields allows partial responses to be retrieved. See
  6691  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6692  // details.
  6693  func (c *CustomersTelemetryNotificationConfigsDeleteCall) Fields(s ...googleapi.Field) *CustomersTelemetryNotificationConfigsDeleteCall {
  6694  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6695  	return c
  6696  }
  6697  
  6698  // Context sets the context to be used in this call's Do method.
  6699  func (c *CustomersTelemetryNotificationConfigsDeleteCall) Context(ctx context.Context) *CustomersTelemetryNotificationConfigsDeleteCall {
  6700  	c.ctx_ = ctx
  6701  	return c
  6702  }
  6703  
  6704  // Header returns a http.Header that can be modified by the caller to add
  6705  // headers to the request.
  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  // Do executes the "chromemanagement.customers.telemetry.notificationConfigs.delete" call.
  6732  // Any non-2xx status code is an error. Response headers are in either
  6733  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  6734  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6735  // check whether the returned error was because http.StatusNotModified was
  6736  // returned.
  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  // List: List all telemetry notification configs.
  6779  //
  6780  // - parent: The parent which owns the notification configs.
  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  // PageSize sets the optional parameter "pageSize": The maximum number of
  6788  // notification configs to return. The service may return fewer than this
  6789  // value. If unspecified, at most 100 notification configs will be returned.
  6790  // The maximum value is 100; values above 100 will be coerced to 100.
  6791  func (c *CustomersTelemetryNotificationConfigsListCall) PageSize(pageSize int64) *CustomersTelemetryNotificationConfigsListCall {
  6792  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6793  	return c
  6794  }
  6795  
  6796  // PageToken sets the optional parameter "pageToken": A page token, received
  6797  // from a previous `ListTelemetryNotificationConfigs` call. Provide this to
  6798  // retrieve the subsequent page. When paginating, all other parameters provided
  6799  // to `ListTelemetryNotificationConfigs` must match the call that provided the
  6800  // page token.
  6801  func (c *CustomersTelemetryNotificationConfigsListCall) PageToken(pageToken string) *CustomersTelemetryNotificationConfigsListCall {
  6802  	c.urlParams_.Set("pageToken", pageToken)
  6803  	return c
  6804  }
  6805  
  6806  // Fields allows partial responses to be retrieved. See
  6807  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6808  // details.
  6809  func (c *CustomersTelemetryNotificationConfigsListCall) Fields(s ...googleapi.Field) *CustomersTelemetryNotificationConfigsListCall {
  6810  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6811  	return c
  6812  }
  6813  
  6814  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6815  // object's ETag matches the given value. This is useful for getting updates
  6816  // only after the object has changed since the last request.
  6817  func (c *CustomersTelemetryNotificationConfigsListCall) IfNoneMatch(entityTag string) *CustomersTelemetryNotificationConfigsListCall {
  6818  	c.ifNoneMatch_ = entityTag
  6819  	return c
  6820  }
  6821  
  6822  // Context sets the context to be used in this call's Do method.
  6823  func (c *CustomersTelemetryNotificationConfigsListCall) Context(ctx context.Context) *CustomersTelemetryNotificationConfigsListCall {
  6824  	c.ctx_ = ctx
  6825  	return c
  6826  }
  6827  
  6828  // Header returns a http.Header that can be modified by the caller to add
  6829  // headers to the request.
  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  // Do executes the "chromemanagement.customers.telemetry.notificationConfigs.list" call.
  6859  // Any non-2xx status code is an error. Response headers are in either
  6860  // *GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse.ServerRespo
  6861  // nse.Header or (if a response was returned at all) in
  6862  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6863  // whether the returned error was because http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  6897  // A non-nil error returned from f will halt the iteration.
  6898  // The provided context supersedes any context provided to the Context method.
  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  // Get: Get telemetry user.
  6927  //
  6928  // - name: Name of the `TelemetryUser` to return.
  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  // ReadMask sets the optional parameter "readMask": Read mask to specify which
  6936  // fields to return. Supported read_mask paths are: - name - org_unit_id -
  6937  // user_id - user_email - user_device.device_id -
  6938  // user_device.audio_status_report - user_device.device_activity_report -
  6939  // user_device.network_bandwidth_report - user_device.peripherals_report
  6940  func (c *CustomersTelemetryUsersGetCall) ReadMask(readMask string) *CustomersTelemetryUsersGetCall {
  6941  	c.urlParams_.Set("readMask", readMask)
  6942  	return c
  6943  }
  6944  
  6945  // Fields allows partial responses to be retrieved. See
  6946  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6947  // details.
  6948  func (c *CustomersTelemetryUsersGetCall) Fields(s ...googleapi.Field) *CustomersTelemetryUsersGetCall {
  6949  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6950  	return c
  6951  }
  6952  
  6953  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6954  // object's ETag matches the given value. This is useful for getting updates
  6955  // only after the object has changed since the last request.
  6956  func (c *CustomersTelemetryUsersGetCall) IfNoneMatch(entityTag string) *CustomersTelemetryUsersGetCall {
  6957  	c.ifNoneMatch_ = entityTag
  6958  	return c
  6959  }
  6960  
  6961  // Context sets the context to be used in this call's Do method.
  6962  func (c *CustomersTelemetryUsersGetCall) Context(ctx context.Context) *CustomersTelemetryUsersGetCall {
  6963  	c.ctx_ = ctx
  6964  	return c
  6965  }
  6966  
  6967  // Header returns a http.Header that can be modified by the caller to add
  6968  // headers to the request.
  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  // Do executes the "chromemanagement.customers.telemetry.users.get" call.
  6998  // Any non-2xx status code is an error. Response headers are in either
  6999  // *GoogleChromeManagementV1TelemetryUser.ServerResponse.Header or (if a
  7000  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7001  // googleapi.IsNotModified to check whether the returned error was because
  7002  // http.StatusNotModified was returned.
  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  // List: List all telemetry users.
  7045  //
  7046  //   - parent: Customer id or "my_customer" to use the customer associated to the
  7047  //     account making the request.
  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  // Filter sets the optional parameter "filter": Only include resources that
  7055  // match the filter. Supported filter fields: - user_id - user_org_unit_id
  7056  func (c *CustomersTelemetryUsersListCall) Filter(filter string) *CustomersTelemetryUsersListCall {
  7057  	c.urlParams_.Set("filter", filter)
  7058  	return c
  7059  }
  7060  
  7061  // PageSize sets the optional parameter "pageSize": Maximum number of results
  7062  // to return. Default value is 100. Maximum value is 1000.
  7063  func (c *CustomersTelemetryUsersListCall) PageSize(pageSize int64) *CustomersTelemetryUsersListCall {
  7064  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7065  	return c
  7066  }
  7067  
  7068  // PageToken sets the optional parameter "pageToken": Token to specify next
  7069  // page in the list.
  7070  func (c *CustomersTelemetryUsersListCall) PageToken(pageToken string) *CustomersTelemetryUsersListCall {
  7071  	c.urlParams_.Set("pageToken", pageToken)
  7072  	return c
  7073  }
  7074  
  7075  // ReadMask sets the optional parameter "readMask": Read mask to specify which
  7076  // fields to return. Supported read_mask paths are: - name - org_unit_id -
  7077  // user_id - user_email - user_device.device_id -
  7078  // user_device.audio_status_report - user_device.device_activity_report -
  7079  // user_device.network_bandwidth_report - user_device.peripherals_report
  7080  func (c *CustomersTelemetryUsersListCall) ReadMask(readMask string) *CustomersTelemetryUsersListCall {
  7081  	c.urlParams_.Set("readMask", readMask)
  7082  	return c
  7083  }
  7084  
  7085  // Fields allows partial responses to be retrieved. See
  7086  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7087  // details.
  7088  func (c *CustomersTelemetryUsersListCall) Fields(s ...googleapi.Field) *CustomersTelemetryUsersListCall {
  7089  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7090  	return c
  7091  }
  7092  
  7093  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7094  // object's ETag matches the given value. This is useful for getting updates
  7095  // only after the object has changed since the last request.
  7096  func (c *CustomersTelemetryUsersListCall) IfNoneMatch(entityTag string) *CustomersTelemetryUsersListCall {
  7097  	c.ifNoneMatch_ = entityTag
  7098  	return c
  7099  }
  7100  
  7101  // Context sets the context to be used in this call's Do method.
  7102  func (c *CustomersTelemetryUsersListCall) Context(ctx context.Context) *CustomersTelemetryUsersListCall {
  7103  	c.ctx_ = ctx
  7104  	return c
  7105  }
  7106  
  7107  // Header returns a http.Header that can be modified by the caller to add
  7108  // headers to the request.
  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  // Do executes the "chromemanagement.customers.telemetry.users.list" call.
  7138  // Any non-2xx status code is an error. Response headers are in either
  7139  // *GoogleChromeManagementV1ListTelemetryUsersResponse.ServerResponse.Header or
  7140  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  7141  // googleapi.IsNotModified to check whether the returned error was because
  7142  // http.StatusNotModified was returned.
  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  // Pages invokes f for each page of results.
  7176  // A non-nil error returned from f will halt the iteration.
  7177  // The provided context supersedes any context provided to the Context method.
  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