| 1 |
// Copyright 2026 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: https://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 |
"log/slog" |
| 66 |
"net/http" |
| 67 |
"net/url" |
| 68 |
"strconv" |
| 69 |
"strings" |
| 70 |
|
| 71 |
"github.com/googleapis/gax-go/v2/internallog" |
| 72 |
googleapi "google.golang.org/api/googleapi" |
| 73 |
internal "google.golang.org/api/internal" |
| 74 |
gensupport "google.golang.org/api/internal/gensupport" |
| 75 |
option "google.golang.org/api/option" |
| 76 |
internaloption "google.golang.org/api/option/internaloption" |
| 77 |
htransport "google.golang.org/api/transport/http" |
| 78 |
) |
| 79 |
|
| 80 |
// Always reference these packages, just in case the auto-generated code |
| 81 |
// below doesn't. |
| 82 |
var _ = bytes.NewBuffer |
| 83 |
var _ = strconv.Itoa |
| 84 |
var _ = fmt.Sprintf |
| 85 |
var _ = json.NewDecoder |
| 86 |
var _ = io.Copy |
| 87 |
var _ = url.Parse |
| 88 |
var _ = gensupport.MarshalJSON |
| 89 |
var _ = googleapi.Version |
| 90 |
var _ = errors.New |
| 91 |
var _ = strings.Replace |
| 92 |
var _ = context.Canceled |
| 93 |
var _ = internaloption.WithDefaultEndpoint |
| 94 |
var _ = internal.Version |
| 95 |
var _ = internallog.New |
| 96 |
|
| 97 |
const apiId = "chromemanagement:v1" |
| 98 |
const apiName = "chromemanagement" |
| 99 |
const apiVersion = "v1" |
| 100 |
const basePath = "https://chromemanagement.googleapis.com/" |
| 101 |
const basePathTemplate = "https://chromemanagement.UNIVERSE_DOMAIN/" |
| 102 |
const mtlsBasePath = "https://chromemanagement.mtls.googleapis.com/" |
| 103 |
|
| 104 |
// OAuth2 scopes used by this API. |
| 105 |
const ( |
| 106 |
// See detailed information about apps installed on Chrome browsers and devices |
| 107 |
// managed by your organization |
| 108 |
ChromeManagementAppdetailsReadonlyScope = "https://www.googleapis.com/auth/chrome.management.appdetails.readonly" |
| 109 |
|
| 110 |
// See, edit, delete, and take other necessary actions on Chrome browser |
| 111 |
// profiles managed by your organization |
| 112 |
ChromeManagementProfilesScope = "https://www.googleapis.com/auth/chrome.management.profiles" |
| 113 |
|
| 114 |
// See Chrome browser profiles managed by your organization |
| 115 |
ChromeManagementProfilesReadonlyScope = "https://www.googleapis.com/auth/chrome.management.profiles.readonly" |
| 116 |
|
| 117 |
// See reports about devices and Chrome browsers managed within your |
| 118 |
// organization |
| 119 |
ChromeManagementReportsReadonlyScope = "https://www.googleapis.com/auth/chrome.management.reports.readonly" |
| 120 |
|
| 121 |
// See basic device and telemetry information collected from ChromeOS devices |
| 122 |
// or users managed within your organization |
| 123 |
ChromeManagementTelemetryReadonlyScope = "https://www.googleapis.com/auth/chrome.management.telemetry.readonly" |
| 124 |
) |
| 125 |
|
| 126 |
// NewService creates a new Service. |
| 127 |
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { |
| 128 |
scopesOption := internaloption.WithDefaultScopes( |
| 129 |
"https://www.googleapis.com/auth/chrome.management.appdetails.readonly", |
| 130 |
"https://www.googleapis.com/auth/chrome.management.profiles", |
| 131 |
"https://www.googleapis.com/auth/chrome.management.profiles.readonly", |
| 132 |
"https://www.googleapis.com/auth/chrome.management.reports.readonly", |
| 133 |
"https://www.googleapis.com/auth/chrome.management.telemetry.readonly", |
| 134 |
) |
| 135 |
// NOTE: prepend, so we don't override user-specified scopes. |
| 136 |
opts = append([]option.ClientOption{scopesOption}, opts...) |
| 137 |
opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) |
| 138 |
opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) |
| 139 |
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) |
| 140 |
opts = append(opts, internaloption.EnableNewAuthLibrary()) |
| 141 |
client, endpoint, err := htransport.NewClient(ctx, opts...) |
| 142 |
if err != nil { |
| 143 |
return nil, err |
| 144 |
} |
| 145 |
s := &Service{client: client, BasePath: basePath, logger: internaloption.GetLogger(opts)} |
| 146 |
s.Customers = NewCustomersService(s) |
| 147 |
s.Operations = NewOperationsService(s) |
| 148 |
if endpoint != "" { |
| 149 |
s.BasePath = endpoint |
| 150 |
} |
| 151 |
return s, nil |
| 152 |
} |
| 153 |
|
| 154 |
// New creates a new Service. It uses the provided http.Client for requests. |
| 155 |
// |
| 156 |
// Deprecated: please use NewService instead. |
| 157 |
// To provide a custom HTTP client, use option.WithHTTPClient. |
| 158 |
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. |
| 159 |
func New(client *http.Client) (*Service, error) { |
| 160 |
if client == nil { |
| 161 |
return nil, errors.New("client is nil") |
| 162 |
} |
| 163 |
return NewService(context.TODO(), option.WithHTTPClient(client)) |
| 164 |
} |
| 165 |
|
| 166 |
type Service struct { |
| 167 |
client *http.Client |
| 168 |
logger *slog.Logger |
| 169 |
BasePath string // API endpoint base URL |
| 170 |
UserAgent string // optional additional User-Agent fragment |
| 171 |
|
| 172 |
Customers *CustomersService |
| 173 |
|
| 174 |
Operations *OperationsService |
| 175 |
} |
| 176 |
|
| 177 |
func (s *Service) userAgent() string { |
| 178 |
if s.UserAgent == "" { |
| 179 |
return googleapi.UserAgent |
| 180 |
} |
| 181 |
return googleapi.UserAgent + " " + s.UserAgent |
| 182 |
} |
| 183 |
|
| 184 |
func NewCustomersService(s *Service) *CustomersService { |
| 185 |
rs := &CustomersService{s: s} |
| 186 |
rs.Apps = NewCustomersAppsService(s) |
| 187 |
rs.CertificateProvisioningProcesses = NewCustomersCertificateProvisioningProcessesService(s) |
| 188 |
rs.Profiles = NewCustomersProfilesService(s) |
| 189 |
rs.Reports = NewCustomersReportsService(s) |
| 190 |
rs.Telemetry = NewCustomersTelemetryService(s) |
| 191 |
rs.ThirdPartyProfileUsers = NewCustomersThirdPartyProfileUsersService(s) |
| 192 |
return rs |
| 193 |
} |
| 194 |
|
| 195 |
type CustomersService struct { |
| 196 |
s *Service |
| 197 |
|
| 198 |
Apps *CustomersAppsService |
| 199 |
|
| 200 |
CertificateProvisioningProcesses *CustomersCertificateProvisioningProcessesService |
| 201 |
|
| 202 |
Profiles *CustomersProfilesService |
| 203 |
|
| 204 |
Reports *CustomersReportsService |
| 205 |
|
| 206 |
Telemetry *CustomersTelemetryService |
| 207 |
|
| 208 |
ThirdPartyProfileUsers *CustomersThirdPartyProfileUsersService |
| 209 |
} |
| 210 |
|
| 211 |
func NewCustomersAppsService(s *Service) *CustomersAppsService { |
| 212 |
rs := &CustomersAppsService{s: s} |
| 213 |
rs.Android = NewCustomersAppsAndroidService(s) |
| 214 |
rs.Chrome = NewCustomersAppsChromeService(s) |
| 215 |
rs.Web = NewCustomersAppsWebService(s) |
| 216 |
return rs |
| 217 |
} |
| 218 |
|
| 219 |
type CustomersAppsService struct { |
| 220 |
s *Service |
| 221 |
|
| 222 |
Android *CustomersAppsAndroidService |
| 223 |
|
| 224 |
Chrome *CustomersAppsChromeService |
| 225 |
|
| 226 |
Web *CustomersAppsWebService |
| 227 |
} |
| 228 |
|
| 229 |
func NewCustomersAppsAndroidService(s *Service) *CustomersAppsAndroidService { |
| 230 |
rs := &CustomersAppsAndroidService{s: s} |
| 231 |
return rs |
| 232 |
} |
| 233 |
|
| 234 |
type CustomersAppsAndroidService struct { |
| 235 |
s *Service |
| 236 |
} |
| 237 |
|
| 238 |
func NewCustomersAppsChromeService(s *Service) *CustomersAppsChromeService { |
| 239 |
rs := &CustomersAppsChromeService{s: s} |
| 240 |
return rs |
| 241 |
} |
| 242 |
|
| 243 |
type CustomersAppsChromeService struct { |
| 244 |
s *Service |
| 245 |
} |
| 246 |
|
| 247 |
func NewCustomersAppsWebService(s *Service) *CustomersAppsWebService { |
| 248 |
rs := &CustomersAppsWebService{s: s} |
| 249 |
return rs |
| 250 |
} |
| 251 |
|
| 252 |
type CustomersAppsWebService struct { |
| 253 |
s *Service |
| 254 |
} |
| 255 |
|
| 256 |
func NewCustomersCertificateProvisioningProcessesService(s *Service) *CustomersCertificateProvisioningProcessesService { |
| 257 |
rs := &CustomersCertificateProvisioningProcessesService{s: s} |
| 258 |
rs.Operations = NewCustomersCertificateProvisioningProcessesOperationsService(s) |
| 259 |
return rs |
| 260 |
} |
| 261 |
|
| 262 |
type CustomersCertificateProvisioningProcessesService struct { |
| 263 |
s *Service |
| 264 |
|
| 265 |
Operations *CustomersCertificateProvisioningProcessesOperationsService |
| 266 |
} |
| 267 |
|
| 268 |
func NewCustomersCertificateProvisioningProcessesOperationsService(s *Service) *CustomersCertificateProvisioningProcessesOperationsService { |
| 269 |
rs := &CustomersCertificateProvisioningProcessesOperationsService{s: s} |
| 270 |
return rs |
| 271 |
} |
| 272 |
|
| 273 |
type CustomersCertificateProvisioningProcessesOperationsService struct { |
| 274 |
s *Service |
| 275 |
} |
| 276 |
|
| 277 |
func NewCustomersProfilesService(s *Service) *CustomersProfilesService { |
| 278 |
rs := &CustomersProfilesService{s: s} |
| 279 |
rs.Commands = NewCustomersProfilesCommandsService(s) |
| 280 |
return rs |
| 281 |
} |
| 282 |
|
| 283 |
type CustomersProfilesService struct { |
| 284 |
s *Service |
| 285 |
|
| 286 |
Commands *CustomersProfilesCommandsService |
| 287 |
} |
| 288 |
|
| 289 |
func NewCustomersProfilesCommandsService(s *Service) *CustomersProfilesCommandsService { |
| 290 |
rs := &CustomersProfilesCommandsService{s: s} |
| 291 |
return rs |
| 292 |
} |
| 293 |
|
| 294 |
type CustomersProfilesCommandsService struct { |
| 295 |
s *Service |
| 296 |
} |
| 297 |
|
| 298 |
func NewCustomersReportsService(s *Service) *CustomersReportsService { |
| 299 |
rs := &CustomersReportsService{s: s} |
| 300 |
return rs |
| 301 |
} |
| 302 |
|
| 303 |
type CustomersReportsService struct { |
| 304 |
s *Service |
| 305 |
} |
| 306 |
|
| 307 |
func NewCustomersTelemetryService(s *Service) *CustomersTelemetryService { |
| 308 |
rs := &CustomersTelemetryService{s: s} |
| 309 |
rs.Devices = NewCustomersTelemetryDevicesService(s) |
| 310 |
rs.Events = NewCustomersTelemetryEventsService(s) |
| 311 |
rs.NotificationConfigs = NewCustomersTelemetryNotificationConfigsService(s) |
| 312 |
rs.Users = NewCustomersTelemetryUsersService(s) |
| 313 |
return rs |
| 314 |
} |
| 315 |
|
| 316 |
type CustomersTelemetryService struct { |
| 317 |
s *Service |
| 318 |
|
| 319 |
Devices *CustomersTelemetryDevicesService |
| 320 |
|
| 321 |
Events *CustomersTelemetryEventsService |
| 322 |
|
| 323 |
NotificationConfigs *CustomersTelemetryNotificationConfigsService |
| 324 |
|
| 325 |
Users *CustomersTelemetryUsersService |
| 326 |
} |
| 327 |
|
| 328 |
func NewCustomersTelemetryDevicesService(s *Service) *CustomersTelemetryDevicesService { |
| 329 |
rs := &CustomersTelemetryDevicesService{s: s} |
| 330 |
return rs |
| 331 |
} |
| 332 |
|
| 333 |
type CustomersTelemetryDevicesService struct { |
| 334 |
s *Service |
| 335 |
} |
| 336 |
|
| 337 |
func NewCustomersTelemetryEventsService(s *Service) *CustomersTelemetryEventsService { |
| 338 |
rs := &CustomersTelemetryEventsService{s: s} |
| 339 |
return rs |
| 340 |
} |
| 341 |
|
| 342 |
type CustomersTelemetryEventsService struct { |
| 343 |
s *Service |
| 344 |
} |
| 345 |
|
| 346 |
func NewCustomersTelemetryNotificationConfigsService(s *Service) *CustomersTelemetryNotificationConfigsService { |
| 347 |
rs := &CustomersTelemetryNotificationConfigsService{s: s} |
| 348 |
return rs |
| 349 |
} |
| 350 |
|
| 351 |
type CustomersTelemetryNotificationConfigsService struct { |
| 352 |
s *Service |
| 353 |
} |
| 354 |
|
| 355 |
func NewCustomersTelemetryUsersService(s *Service) *CustomersTelemetryUsersService { |
| 356 |
rs := &CustomersTelemetryUsersService{s: s} |
| 357 |
return rs |
| 358 |
} |
| 359 |
|
| 360 |
type CustomersTelemetryUsersService struct { |
| 361 |
s *Service |
| 362 |
} |
| 363 |
|
| 364 |
func NewCustomersThirdPartyProfileUsersService(s *Service) *CustomersThirdPartyProfileUsersService { |
| 365 |
rs := &CustomersThirdPartyProfileUsersService{s: s} |
| 366 |
return rs |
| 367 |
} |
| 368 |
|
| 369 |
type CustomersThirdPartyProfileUsersService struct { |
| 370 |
s *Service |
| 371 |
} |
| 372 |
|
| 373 |
func NewOperationsService(s *Service) *OperationsService { |
| 374 |
rs := &OperationsService{s: s} |
| 375 |
return rs |
| 376 |
} |
| 377 |
|
| 378 |
type OperationsService struct { |
| 379 |
s *Service |
| 380 |
} |
| 381 |
|
| 382 |
// GoogleChromeManagementV1AndroidAppInfo: Android app information. |
| 383 |
type GoogleChromeManagementV1AndroidAppInfo struct { |
| 384 |
// Permissions: Output only. Permissions requested by an Android app. |
| 385 |
Permissions []*GoogleChromeManagementV1AndroidAppPermission `json:"permissions,omitempty"` |
| 386 |
// ForceSendFields is a list of field names (e.g. "Permissions") to |
| 387 |
// unconditionally include in API requests. By default, fields with empty or |
| 388 |
// default values are omitted from API requests. See |
| 389 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 390 |
// details. |
| 391 |
ForceSendFields []string `json:"-"` |
| 392 |
// NullFields is a list of field names (e.g. "Permissions") to include in API |
| 393 |
// requests with the JSON null value. By default, fields with empty values are |
| 394 |
// omitted from API requests. See |
| 395 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 396 |
NullFields []string `json:"-"` |
| 397 |
} |
| 398 |
|
| 399 |
func (s GoogleChromeManagementV1AndroidAppInfo) MarshalJSON() ([]byte, error) { |
| 400 |
type NoMethod GoogleChromeManagementV1AndroidAppInfo |
| 401 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 402 |
} |
| 403 |
|
| 404 |
// GoogleChromeManagementV1AndroidAppPermission: Permission requested by an |
| 405 |
// Android app. |
| 406 |
type GoogleChromeManagementV1AndroidAppPermission struct { |
| 407 |
// Type: Output only. The type of the permission. |
| 408 |
Type string `json:"type,omitempty"` |
| 409 |
// ForceSendFields is a list of field names (e.g. "Type") to unconditionally |
| 410 |
// include in API requests. By default, fields with empty or default values are |
| 411 |
// omitted from API requests. See |
| 412 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 413 |
// details. |
| 414 |
ForceSendFields []string `json:"-"` |
| 415 |
// NullFields is a list of field names (e.g. "Type") to include in API requests |
| 416 |
// with the JSON null value. By default, fields with empty values are omitted |
| 417 |
// from API requests. See |
| 418 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 419 |
NullFields []string `json:"-"` |
| 420 |
} |
| 421 |
|
| 422 |
func (s GoogleChromeManagementV1AndroidAppPermission) MarshalJSON() ([]byte, error) { |
| 423 |
type NoMethod GoogleChromeManagementV1AndroidAppPermission |
| 424 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 425 |
} |
| 426 |
|
| 427 |
// GoogleChromeManagementV1AppDetails: Resource representing app details. |
| 428 |
type GoogleChromeManagementV1AppDetails struct { |
| 429 |
// AndroidAppInfo: Output only. Android app information. |
| 430 |
AndroidAppInfo *GoogleChromeManagementV1AndroidAppInfo `json:"androidAppInfo,omitempty"` |
| 431 |
// AppId: Output only. Unique store identifier for the item. Examples: |
| 432 |
// "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome |
| 433 |
// extension, "com.google.android.apps.docs" for the Google Drive Android app. |
| 434 |
AppId string `json:"appId,omitempty"` |
| 435 |
// ChromeAppInfo: Output only. Chrome Web Store app information. |
| 436 |
ChromeAppInfo *GoogleChromeManagementV1ChromeAppInfo `json:"chromeAppInfo,omitempty"` |
| 437 |
// Description: Output only. App's description. |
| 438 |
Description string `json:"description,omitempty"` |
| 439 |
// DetailUri: Output only. The uri for the detail page of the item. |
| 440 |
DetailUri string `json:"detailUri,omitempty"` |
| 441 |
// DisplayName: Output only. App's display name. |
| 442 |
DisplayName string `json:"displayName,omitempty"` |
| 443 |
// FirstPublishTime: Output only. First published time. |
| 444 |
FirstPublishTime string `json:"firstPublishTime,omitempty"` |
| 445 |
// HomepageUri: Output only. Home page or Website uri. |
| 446 |
HomepageUri string `json:"homepageUri,omitempty"` |
| 447 |
// IconUri: Output only. A link to an image that can be used as an icon for the |
| 448 |
// product. |
| 449 |
IconUri string `json:"iconUri,omitempty"` |
| 450 |
// IsPaidApp: Output only. Indicates if the app has to be paid for OR has paid |
| 451 |
// content. |
| 452 |
IsPaidApp bool `json:"isPaidApp,omitempty"` |
| 453 |
// LatestPublishTime: Output only. Latest published time. |
| 454 |
LatestPublishTime string `json:"latestPublishTime,omitempty"` |
| 455 |
// Name: Output only. Format: |
| 456 |
// name=customers/{customer_id}/apps/{chrome|android|web}/{app_id}@{version} |
| 457 |
Name string `json:"name,omitempty"` |
| 458 |
// PrivacyPolicyUri: Output only. The URI pointing to the privacy policy of the |
| 459 |
// app, if it was provided by the developer. Version-specific field that will |
| 460 |
// only be set when the requested app version is found. |
| 461 |
PrivacyPolicyUri string `json:"privacyPolicyUri,omitempty"` |
| 462 |
// Publisher: Output only. The publisher of the item. |
| 463 |
Publisher string `json:"publisher,omitempty"` |
| 464 |
// ReviewNumber: Output only. Number of reviews received. Chrome Web Store |
| 465 |
// review information will always be for the latest version of an app. |
| 466 |
ReviewNumber int64 `json:"reviewNumber,omitempty,string"` |
| 467 |
// ReviewRating: Output only. The rating of the app (on 5 stars). Chrome Web |
| 468 |
// Store review information will always be for the latest version of an app. |
| 469 |
ReviewRating float64 `json:"reviewRating,omitempty"` |
| 470 |
// RevisionId: Output only. App version. A new revision is committed whenever a |
| 471 |
// new version of the app is published. |
| 472 |
RevisionId string `json:"revisionId,omitempty"` |
| 473 |
// ServiceError: Output only. Information about a partial service error if |
| 474 |
// applicable. |
| 475 |
ServiceError *GoogleRpcStatus `json:"serviceError,omitempty"` |
| 476 |
// Type: Output only. App type. |
| 477 |
// |
| 478 |
// Possible values: |
| 479 |
// "APP_ITEM_TYPE_UNSPECIFIED" - App type unspecified. |
| 480 |
// "CHROME" - Chrome app. |
| 481 |
// "ANDROID" - ARC++ app. |
| 482 |
// "WEB" - Web app. |
| 483 |
Type string `json:"type,omitempty"` |
| 484 |
|
| 485 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 486 |
googleapi.ServerResponse `json:"-"` |
| 487 |
// ForceSendFields is a list of field names (e.g. "AndroidAppInfo") to |
| 488 |
// unconditionally include in API requests. By default, fields with empty or |
| 489 |
// default values are omitted from API requests. See |
| 490 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 491 |
// details. |
| 492 |
ForceSendFields []string `json:"-"` |
| 493 |
// NullFields is a list of field names (e.g. "AndroidAppInfo") to include in |
| 494 |
// API requests with the JSON null value. By default, fields with empty values |
| 495 |
// are omitted from API requests. See |
| 496 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 497 |
NullFields []string `json:"-"` |
| 498 |
} |
| 499 |
|
| 500 |
func (s GoogleChromeManagementV1AppDetails) MarshalJSON() ([]byte, error) { |
| 501 |
type NoMethod GoogleChromeManagementV1AppDetails |
| 502 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 503 |
} |
| 504 |
|
| 505 |
func (s *GoogleChromeManagementV1AppDetails) UnmarshalJSON(data []byte) error { |
| 506 |
type NoMethod GoogleChromeManagementV1AppDetails |
| 507 |
var s1 struct { |
| 508 |
ReviewRating gensupport.JSONFloat64 `json:"reviewRating"` |
| 509 |
*NoMethod |
| 510 |
} |
| 511 |
s1.NoMethod = (*NoMethod)(s) |
| 512 |
if err := json.Unmarshal(data, &s1); err != nil { |
| 513 |
return err |
| 514 |
} |
| 515 |
s.ReviewRating = float64(s1.ReviewRating) |
| 516 |
return nil |
| 517 |
} |
| 518 |
|
| 519 |
// GoogleChromeManagementV1AppReport: App report. |
| 520 |
type GoogleChromeManagementV1AppReport struct { |
| 521 |
// ReportTime: Timestamp when the report was collected. |
| 522 |
ReportTime string `json:"reportTime,omitempty"` |
| 523 |
// UsageData: App usage data. |
| 524 |
UsageData []*GoogleChromeManagementV1AppUsageData `json:"usageData,omitempty"` |
| 525 |
// ForceSendFields is a list of field names (e.g. "ReportTime") to |
| 526 |
// unconditionally include in API requests. By default, fields with empty or |
| 527 |
// default values are omitted from API requests. See |
| 528 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 529 |
// details. |
| 530 |
ForceSendFields []string `json:"-"` |
| 531 |
// NullFields is a list of field names (e.g. "ReportTime") to include in API |
| 532 |
// requests with the JSON null value. By default, fields with empty values are |
| 533 |
// omitted from API requests. See |
| 534 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 535 |
NullFields []string `json:"-"` |
| 536 |
} |
| 537 |
|
| 538 |
func (s GoogleChromeManagementV1AppReport) MarshalJSON() ([]byte, error) { |
| 539 |
type NoMethod GoogleChromeManagementV1AppReport |
| 540 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 541 |
} |
| 542 |
|
| 543 |
// GoogleChromeManagementV1AppUsageData: App usage data. |
| 544 |
type GoogleChromeManagementV1AppUsageData struct { |
| 545 |
// AppId: App id. |
| 546 |
AppId string `json:"appId,omitempty"` |
| 547 |
// AppInstanceId: Application instance id. This will be unique per |
| 548 |
// window/instance. |
| 549 |
AppInstanceId string `json:"appInstanceId,omitempty"` |
| 550 |
// AppType: Type of app. |
| 551 |
// |
| 552 |
// Possible values: |
| 553 |
// "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED" - Application type unknown. |
| 554 |
// "APPLICATION_TYPE_ARC" - Application type arc (Android app). |
| 555 |
// "APPLICATION_TYPE_BUILT_IN" - Deprecated. This value is no longer used. |
| 556 |
// Application type built-in. |
| 557 |
// "APPLICATION_TYPE_CROSTINI" - Application type Linux (via Crostini). |
| 558 |
// "APPLICATION_TYPE_CHROME_APP" - Application type Chrome app. |
| 559 |
// "APPLICATION_TYPE_WEB" - Application type web. |
| 560 |
// "APPLICATION_TYPE_MAC_OS" - Application type Mac OS. |
| 561 |
// "APPLICATION_TYPE_PLUGIN_VM" - Application type Plugin VM. |
| 562 |
// "APPLICATION_TYPE_STANDALONE_BROWSER" - Deprecated. This value is no |
| 563 |
// longer used. Application type standalone browser (Lacros browser app). |
| 564 |
// "APPLICATION_TYPE_REMOTE" - Application type remote. |
| 565 |
// "APPLICATION_TYPE_BOREALIS" - Application type borealis. |
| 566 |
// "APPLICATION_TYPE_SYSTEM_WEB" - Application type system web. |
| 567 |
// "APPLICATION_TYPE_STANDALONE_BROWSER_CHROME_APP" - Deprecated. This value |
| 568 |
// is no longer used. Application type standalone browser chrome app. |
| 569 |
// "APPLICATION_TYPE_EXTENSION" - Application type extension. |
| 570 |
// "APPLICATION_TYPE_STANDALONE_BROWSER_EXTENSION" - Deprecated. This value |
| 571 |
// is no longer used. Application type standalone browser extension. |
| 572 |
// "APPLICATION_TYPE_BRUSCHETTA" - Application type bruschetta. |
| 573 |
AppType string `json:"appType,omitempty"` |
| 574 |
// RunningDuration: App foreground running time. |
| 575 |
RunningDuration string `json:"runningDuration,omitempty"` |
| 576 |
// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally |
| 577 |
// include in API requests. By default, fields with empty or default values are |
| 578 |
// omitted from API requests. See |
| 579 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 580 |
// details. |
| 581 |
ForceSendFields []string `json:"-"` |
| 582 |
// NullFields is a list of field names (e.g. "AppId") to include in API |
| 583 |
// requests with the JSON null value. By default, fields with empty values are |
| 584 |
// omitted from API requests. See |
| 585 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 586 |
NullFields []string `json:"-"` |
| 587 |
} |
| 588 |
|
| 589 |
func (s GoogleChromeManagementV1AppUsageData) MarshalJSON() ([]byte, error) { |
| 590 |
type NoMethod GoogleChromeManagementV1AppUsageData |
| 591 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 592 |
} |
| 593 |
|
| 594 |
// GoogleChromeManagementV1AudioStatusReport: Status data for storage. * This |
| 595 |
// field is telemetry information and this will change over time as the device |
| 596 |
// is utilized. * Data for this field is controlled via policy: |
| 597 |
// ReportDeviceAudioStatus |
| 598 |
// (https://chromeenterprise.google/policies/#ReportDeviceAudioStatus) * Data |
| 599 |
// Collection Frequency: 10 minutes * Default Data Reporting Frequency: 3 hours |
| 600 |
// - Policy Controlled: Yes * Cache: If the device is offline, the collected |
| 601 |
// data is stored locally, and will be reported when the device is next online: |
| 602 |
// No * Reported for affiliated users only: N/A * Granular permission needed: |
| 603 |
// TELEMETRY_API_AUDIO_REPORT |
| 604 |
type GoogleChromeManagementV1AudioStatusReport struct { |
| 605 |
// InputDevice: Output only. Active input device's name. |
| 606 |
InputDevice string `json:"inputDevice,omitempty"` |
| 607 |
// InputGain: Output only. Active input device's gain in [0, 100]. |
| 608 |
InputGain int64 `json:"inputGain,omitempty"` |
| 609 |
// InputMute: Output only. Is active input device mute or not. |
| 610 |
InputMute bool `json:"inputMute,omitempty"` |
| 611 |
// OutputDevice: Output only. Active output device's name. |
| 612 |
OutputDevice string `json:"outputDevice,omitempty"` |
| 613 |
// OutputMute: Output only. Is active output device mute or not. |
| 614 |
OutputMute bool `json:"outputMute,omitempty"` |
| 615 |
// OutputVolume: Output only. Active output device's volume in [0, 100]. |
| 616 |
OutputVolume int64 `json:"outputVolume,omitempty"` |
| 617 |
// ReportTime: Output only. Timestamp of when the sample was collected on |
| 618 |
// device. |
| 619 |
ReportTime string `json:"reportTime,omitempty"` |
| 620 |
// ForceSendFields is a list of field names (e.g. "InputDevice") to |
| 621 |
// unconditionally include in API requests. By default, fields with empty or |
| 622 |
// default values are omitted from API requests. See |
| 623 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 624 |
// details. |
| 625 |
ForceSendFields []string `json:"-"` |
| 626 |
// NullFields is a list of field names (e.g. "InputDevice") to include in API |
| 627 |
// requests with the JSON null value. By default, fields with empty values are |
| 628 |
// omitted from API requests. See |
| 629 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 630 |
NullFields []string `json:"-"` |
| 631 |
} |
| 632 |
|
| 633 |
func (s GoogleChromeManagementV1AudioStatusReport) MarshalJSON() ([]byte, error) { |
| 634 |
type NoMethod GoogleChromeManagementV1AudioStatusReport |
| 635 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 636 |
} |
| 637 |
|
| 638 |
// GoogleChromeManagementV1BatteryInfo: Information about the battery. * This |
| 639 |
// field provides device information, which is static and will not change over |
| 640 |
// time. * Data for this field is controlled via policy: |
| 641 |
// ReportDevicePowerStatus |
| 642 |
// (https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data |
| 643 |
// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 |
| 644 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 645 |
// collected data is stored locally, and will be reported when the device is |
| 646 |
// next online: No * Reported for affiliated users only: N/A * Granular |
| 647 |
// permission needed: TELEMETRY_API_BATTERY_INFO |
| 648 |
type GoogleChromeManagementV1BatteryInfo struct { |
| 649 |
// DesignCapacity: Output only. Design capacity (mAmpere-hours). |
| 650 |
DesignCapacity int64 `json:"designCapacity,omitempty,string"` |
| 651 |
// DesignMinVoltage: Output only. Designed minimum output voltage (mV) |
| 652 |
DesignMinVoltage int64 `json:"designMinVoltage,omitempty"` |
| 653 |
// ManufactureDate: Output only. The date the battery was manufactured. |
| 654 |
ManufactureDate *GoogleTypeDate `json:"manufactureDate,omitempty"` |
| 655 |
// Manufacturer: Output only. Battery manufacturer. |
| 656 |
Manufacturer string `json:"manufacturer,omitempty"` |
| 657 |
// SerialNumber: Output only. Battery serial number. |
| 658 |
SerialNumber string `json:"serialNumber,omitempty"` |
| 659 |
// Technology: Output only. Technology of the battery. Example: Li-ion |
| 660 |
Technology string `json:"technology,omitempty"` |
| 661 |
// ForceSendFields is a list of field names (e.g. "DesignCapacity") to |
| 662 |
// unconditionally include in API requests. By default, fields with empty or |
| 663 |
// default values are omitted from API requests. See |
| 664 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 665 |
// details. |
| 666 |
ForceSendFields []string `json:"-"` |
| 667 |
// NullFields is a list of field names (e.g. "DesignCapacity") to include in |
| 668 |
// API requests with the JSON null value. By default, fields with empty values |
| 669 |
// are omitted from API requests. See |
| 670 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 671 |
NullFields []string `json:"-"` |
| 672 |
} |
| 673 |
|
| 674 |
func (s GoogleChromeManagementV1BatteryInfo) MarshalJSON() ([]byte, error) { |
| 675 |
type NoMethod GoogleChromeManagementV1BatteryInfo |
| 676 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 677 |
} |
| 678 |
|
| 679 |
// GoogleChromeManagementV1BatterySampleReport: Sampling data for battery. * |
| 680 |
// This field is telemetry information and this will change over time as the |
| 681 |
// device is utilized. * Data for this field is controlled via policy: |
| 682 |
// ReportDevicePowerStatus |
| 683 |
// (https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data |
| 684 |
// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 |
| 685 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 686 |
// collected data is stored locally, and will be reported when the device is |
| 687 |
// next online: No * Reported for affiliated users only: N/A |
| 688 |
type GoogleChromeManagementV1BatterySampleReport struct { |
| 689 |
// ChargeRate: Output only. Battery charge percentage. |
| 690 |
ChargeRate int64 `json:"chargeRate,omitempty"` |
| 691 |
// Current: Output only. Battery current (mA). |
| 692 |
Current int64 `json:"current,omitempty,string"` |
| 693 |
// DischargeRate: Output only. The battery discharge rate measured in mW. |
| 694 |
// Positive if the battery is being discharged, negative if it's being charged. |
| 695 |
DischargeRate int64 `json:"dischargeRate,omitempty"` |
| 696 |
// RemainingCapacity: Output only. Battery remaining capacity (mAmpere-hours). |
| 697 |
RemainingCapacity int64 `json:"remainingCapacity,omitempty,string"` |
| 698 |
// ReportTime: Output only. Timestamp of when the sample was collected on |
| 699 |
// device |
| 700 |
ReportTime string `json:"reportTime,omitempty"` |
| 701 |
// Status: Output only. Battery status read from sysfs. Example: Discharging |
| 702 |
Status string `json:"status,omitempty"` |
| 703 |
// Temperature: Output only. Temperature in Celsius degrees. |
| 704 |
Temperature int64 `json:"temperature,omitempty"` |
| 705 |
// Voltage: Output only. Battery voltage (millivolt). |
| 706 |
Voltage int64 `json:"voltage,omitempty,string"` |
| 707 |
// ForceSendFields is a list of field names (e.g. "ChargeRate") to |
| 708 |
// unconditionally include in API requests. By default, fields with empty or |
| 709 |
// default values are omitted from API requests. See |
| 710 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 711 |
// details. |
| 712 |
ForceSendFields []string `json:"-"` |
| 713 |
// NullFields is a list of field names (e.g. "ChargeRate") to include in API |
| 714 |
// requests with the JSON null value. By default, fields with empty values are |
| 715 |
// omitted from API requests. See |
| 716 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 717 |
NullFields []string `json:"-"` |
| 718 |
} |
| 719 |
|
| 720 |
func (s GoogleChromeManagementV1BatterySampleReport) MarshalJSON() ([]byte, error) { |
| 721 |
type NoMethod GoogleChromeManagementV1BatterySampleReport |
| 722 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 723 |
} |
| 724 |
|
| 725 |
// GoogleChromeManagementV1BatteryStatusReport: Status data for battery. * This |
| 726 |
// field is telemetry information and this will change over time as the device |
| 727 |
// is utilized. * Data for this field is controlled via policy: |
| 728 |
// ReportDevicePowerStatus |
| 729 |
// (https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data |
| 730 |
// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 |
| 731 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 732 |
// collected data is stored locally, and will be reported when the device is |
| 733 |
// next online: No * Reported for affiliated users only: N/A * Granular |
| 734 |
// permission needed: TELEMETRY_API_BATTERY_REPORT |
| 735 |
type GoogleChromeManagementV1BatteryStatusReport struct { |
| 736 |
// BatteryHealth: Output only. Battery health. |
| 737 |
// |
| 738 |
// Possible values: |
| 739 |
// "BATTERY_HEALTH_UNSPECIFIED" - Health unknown. |
| 740 |
// "BATTERY_HEALTH_NORMAL" - Battery is healthy, full charge capacity / |
| 741 |
// design capacity > 80% |
| 742 |
// "BATTERY_REPLACE_SOON" - Battery is moderately unhealthy and suggested to |
| 743 |
// be replaced soon, full charge capacity / design capacity 75% - 80% |
| 744 |
// "BATTERY_REPLACE_NOW" - Battery is unhealthy and suggested to be replaced, |
| 745 |
// full charge capacity / design capacity < 75% |
| 746 |
BatteryHealth string `json:"batteryHealth,omitempty"` |
| 747 |
// CycleCount: Output only. Cycle count. |
| 748 |
CycleCount int64 `json:"cycleCount,omitempty"` |
| 749 |
// FullChargeCapacity: Output only. Full charge capacity (mAmpere-hours). |
| 750 |
FullChargeCapacity int64 `json:"fullChargeCapacity,omitempty,string"` |
| 751 |
// ReportTime: Output only. Timestamp of when the sample was collected on |
| 752 |
// device |
| 753 |
ReportTime string `json:"reportTime,omitempty"` |
| 754 |
// Sample: Output only. Sampling data for the battery sorted in a decreasing |
| 755 |
// order of report_time. |
| 756 |
Sample []*GoogleChromeManagementV1BatterySampleReport `json:"sample,omitempty"` |
| 757 |
// SerialNumber: Output only. Battery serial number. |
| 758 |
SerialNumber string `json:"serialNumber,omitempty"` |
| 759 |
// ForceSendFields is a list of field names (e.g. "BatteryHealth") to |
| 760 |
// unconditionally include in API requests. By default, fields with empty or |
| 761 |
// default values are omitted from API requests. See |
| 762 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 763 |
// details. |
| 764 |
ForceSendFields []string `json:"-"` |
| 765 |
// NullFields is a list of field names (e.g. "BatteryHealth") to include in API |
| 766 |
// requests with the JSON null value. By default, fields with empty values are |
| 767 |
// omitted from API requests. See |
| 768 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 769 |
NullFields []string `json:"-"` |
| 770 |
} |
| 771 |
|
| 772 |
func (s GoogleChromeManagementV1BatteryStatusReport) MarshalJSON() ([]byte, error) { |
| 773 |
type NoMethod GoogleChromeManagementV1BatteryStatusReport |
| 774 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 775 |
} |
| 776 |
|
| 777 |
// GoogleChromeManagementV1BootPerformanceReport: Boot performance report of a |
| 778 |
// device. * This field is telemetry information and this will change over time |
| 779 |
// as the device is utilized. * Data for this field is controlled via policy: |
| 780 |
// ReportDeviceBootMode |
| 781 |
// (https://chromeenterprise.google/policies/#ReportDeviceBootMode) * Data |
| 782 |
// Collection Frequency: On every boot up event * Default Data Reporting |
| 783 |
// Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is |
| 784 |
// offline, the collected data is stored locally, and will be reported when the |
| 785 |
// device is next online: Yes * Reported for affiliated users only: N/A * |
| 786 |
// Granular permission needed: TELEMETRY_API_OS_REPORT |
| 787 |
type GoogleChromeManagementV1BootPerformanceReport struct { |
| 788 |
// BootUpDuration: Total time to boot up. |
| 789 |
BootUpDuration string `json:"bootUpDuration,omitempty"` |
| 790 |
// BootUpTime: The timestamp when power came on. |
| 791 |
BootUpTime string `json:"bootUpTime,omitempty"` |
| 792 |
// ReportTime: Timestamp when the report was collected. |
| 793 |
ReportTime string `json:"reportTime,omitempty"` |
| 794 |
// ShutdownDuration: Total time since shutdown start to power off. |
| 795 |
ShutdownDuration string `json:"shutdownDuration,omitempty"` |
| 796 |
// ShutdownReason: The shutdown reason. |
| 797 |
// |
| 798 |
// Possible values: |
| 799 |
// "SHUTDOWN_REASON_UNSPECIFIED" - Shutdown reason is not specified. |
| 800 |
// "USER_REQUEST" - User initiated. |
| 801 |
// "SYSTEM_UPDATE" - System update initiated. |
| 802 |
// "LOW_BATTERY" - Shutdown due to low battery. |
| 803 |
// "OTHER" - Shutdown due to other reasons. |
| 804 |
ShutdownReason string `json:"shutdownReason,omitempty"` |
| 805 |
// ShutdownTime: The timestamp when shutdown. |
| 806 |
ShutdownTime string `json:"shutdownTime,omitempty"` |
| 807 |
// ForceSendFields is a list of field names (e.g. "BootUpDuration") to |
| 808 |
// unconditionally include in API requests. By default, fields with empty or |
| 809 |
// default values are omitted from API requests. See |
| 810 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 811 |
// details. |
| 812 |
ForceSendFields []string `json:"-"` |
| 813 |
// NullFields is a list of field names (e.g. "BootUpDuration") to include in |
| 814 |
// API requests with the JSON null value. By default, fields with empty values |
| 815 |
// are omitted from API requests. See |
| 816 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 817 |
NullFields []string `json:"-"` |
| 818 |
} |
| 819 |
|
| 820 |
func (s GoogleChromeManagementV1BootPerformanceReport) MarshalJSON() ([]byte, error) { |
| 821 |
type NoMethod GoogleChromeManagementV1BootPerformanceReport |
| 822 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 823 |
} |
| 824 |
|
| 825 |
// GoogleChromeManagementV1BrowserVersion: Describes a browser version and its |
| 826 |
// install count. |
| 827 |
type GoogleChromeManagementV1BrowserVersion struct { |
| 828 |
// Channel: Output only. The release channel of the installed browser. |
| 829 |
// |
| 830 |
// Possible values: |
| 831 |
// "RELEASE_CHANNEL_UNSPECIFIED" - No release channel specified. |
| 832 |
// "CANARY" - Canary release channel. |
| 833 |
// "DEV" - Dev release channel. |
| 834 |
// "BETA" - Beta release channel. |
| 835 |
// "STABLE" - Stable release channel. |
| 836 |
Channel string `json:"channel,omitempty"` |
| 837 |
// Count: Output only. Count grouped by device_system and major version |
| 838 |
Count int64 `json:"count,omitempty,string"` |
| 839 |
// DeviceOsVersion: Output only. Version of the system-specified operating |
| 840 |
// system. |
| 841 |
DeviceOsVersion string `json:"deviceOsVersion,omitempty"` |
| 842 |
// System: Output only. The device operating system. |
| 843 |
// |
| 844 |
// Possible values: |
| 845 |
// "DEVICE_SYSTEM_UNSPECIFIED" - No operating system specified. |
| 846 |
// "SYSTEM_OTHER" - Other operating system. |
| 847 |
// "SYSTEM_ANDROID" - Android operating system. |
| 848 |
// "SYSTEM_IOS" - Apple iOS operating system. |
| 849 |
// "SYSTEM_CROS" - ChromeOS operating system. |
| 850 |
// "SYSTEM_WINDOWS" - Microsoft Windows operating system. |
| 851 |
// "SYSTEM_MAC" - Apple macOS operating system. |
| 852 |
// "SYSTEM_LINUX" - Linux operating system. |
| 853 |
System string `json:"system,omitempty"` |
| 854 |
// Version: Output only. The full version of the installed browser. |
| 855 |
Version string `json:"version,omitempty"` |
| 856 |
// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally |
| 857 |
// include in API requests. By default, fields with empty or default values are |
| 858 |
// omitted from API requests. See |
| 859 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 860 |
// details. |
| 861 |
ForceSendFields []string `json:"-"` |
| 862 |
// NullFields is a list of field names (e.g. "Channel") to include in API |
| 863 |
// requests with the JSON null value. By default, fields with empty values are |
| 864 |
// omitted from API requests. See |
| 865 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 866 |
NullFields []string `json:"-"` |
| 867 |
} |
| 868 |
|
| 869 |
func (s GoogleChromeManagementV1BrowserVersion) MarshalJSON() ([]byte, error) { |
| 870 |
type NoMethod GoogleChromeManagementV1BrowserVersion |
| 871 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 872 |
} |
| 873 |
|
| 874 |
// GoogleChromeManagementV1ChromeAppInfo: Chrome Web Store app information. |
| 875 |
type GoogleChromeManagementV1ChromeAppInfo struct { |
| 876 |
// GoogleOwned: Output only. Whether the app or extension is built and |
| 877 |
// maintained by Google. Version-specific field that will only be set when the |
| 878 |
// requested app version is found. |
| 879 |
GoogleOwned bool `json:"googleOwned,omitempty"` |
| 880 |
// IsCwsHosted: Output only. Whether the app or extension is in a published |
| 881 |
// state in the Chrome Web Store. |
| 882 |
IsCwsHosted bool `json:"isCwsHosted,omitempty"` |
| 883 |
// IsExtensionPolicySupported: Output only. Whether an app supports policy for |
| 884 |
// extensions. |
| 885 |
IsExtensionPolicySupported bool `json:"isExtensionPolicySupported,omitempty"` |
| 886 |
// IsKioskOnly: Output only. Whether the app is only for Kiosk mode on ChromeOS |
| 887 |
// devices |
| 888 |
IsKioskOnly bool `json:"isKioskOnly,omitempty"` |
| 889 |
// IsTheme: Output only. Whether the app or extension is a theme. |
| 890 |
IsTheme bool `json:"isTheme,omitempty"` |
| 891 |
// KioskEnabled: Output only. Whether this app is enabled for Kiosk mode on |
| 892 |
// ChromeOS devices |
| 893 |
KioskEnabled bool `json:"kioskEnabled,omitempty"` |
| 894 |
// ManifestVersion: Output only. The version of this extension's manifest. |
| 895 |
ManifestVersion int64 `json:"manifestVersion,omitempty,string"` |
| 896 |
// MinUserCount: Output only. The minimum number of users using this app. |
| 897 |
MinUserCount int64 `json:"minUserCount,omitempty"` |
| 898 |
// Permissions: Output only. Every custom permission requested by the app. |
| 899 |
// Version-specific field that will only be set when the requested app version |
| 900 |
// is found. |
| 901 |
Permissions []*GoogleChromeManagementV1ChromeAppPermission `json:"permissions,omitempty"` |
| 902 |
// SiteAccess: Output only. Every permission giving access to domains or broad |
| 903 |
// host patterns. ( e.g. www.google.com). This includes the matches from |
| 904 |
// content scripts as well as hosts in the permissions node of the manifest. |
| 905 |
// Version-specific field that will only be set when the requested app version |
| 906 |
// is found. |
| 907 |
SiteAccess []*GoogleChromeManagementV1ChromeAppSiteAccess `json:"siteAccess,omitempty"` |
| 908 |
// SupportEnabled: Output only. The app developer has enabled support for their |
| 909 |
// app. Version-specific field that will only be set when the requested app |
| 910 |
// version is found. |
| 911 |
SupportEnabled bool `json:"supportEnabled,omitempty"` |
| 912 |
// Type: Output only. Types of an item in the Chrome Web Store |
| 913 |
// |
| 914 |
// Possible values: |
| 915 |
// "ITEM_TYPE_UNSPECIFIED" - Unspecified ItemType. |
| 916 |
// "EXTENSION" - Chrome Extensions. |
| 917 |
// "OTHERS" - Any other type than extension. |
| 918 |
Type string `json:"type,omitempty"` |
| 919 |
// ForceSendFields is a list of field names (e.g. "GoogleOwned") to |
| 920 |
// unconditionally include in API requests. By default, fields with empty or |
| 921 |
// default values are omitted from API requests. See |
| 922 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 923 |
// details. |
| 924 |
ForceSendFields []string `json:"-"` |
| 925 |
// NullFields is a list of field names (e.g. "GoogleOwned") to include in API |
| 926 |
// requests with the JSON null value. By default, fields with empty values are |
| 927 |
// omitted from API requests. See |
| 928 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 929 |
NullFields []string `json:"-"` |
| 930 |
} |
| 931 |
|
| 932 |
func (s GoogleChromeManagementV1ChromeAppInfo) MarshalJSON() ([]byte, error) { |
| 933 |
type NoMethod GoogleChromeManagementV1ChromeAppInfo |
| 934 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 935 |
} |
| 936 |
|
| 937 |
// GoogleChromeManagementV1ChromeAppPermission: Permission requested by a |
| 938 |
// Chrome app or extension. |
| 939 |
type GoogleChromeManagementV1ChromeAppPermission struct { |
| 940 |
// AccessUserData: Output only. If available, whether this permissions grants |
| 941 |
// the app/extension access to user data. |
| 942 |
AccessUserData bool `json:"accessUserData,omitempty"` |
| 943 |
// DocumentationUri: Output only. If available, a URI to a page that has |
| 944 |
// documentation for the current permission. |
| 945 |
DocumentationUri string `json:"documentationUri,omitempty"` |
| 946 |
// Type: Output only. The type of the permission. |
| 947 |
Type string `json:"type,omitempty"` |
| 948 |
// ForceSendFields is a list of field names (e.g. "AccessUserData") to |
| 949 |
// unconditionally include in API requests. By default, fields with empty or |
| 950 |
// default values are omitted from API requests. See |
| 951 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 952 |
// details. |
| 953 |
ForceSendFields []string `json:"-"` |
| 954 |
// NullFields is a list of field names (e.g. "AccessUserData") to include in |
| 955 |
// API requests with the JSON null value. By default, fields with empty values |
| 956 |
// are omitted from API requests. See |
| 957 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 958 |
NullFields []string `json:"-"` |
| 959 |
} |
| 960 |
|
| 961 |
func (s GoogleChromeManagementV1ChromeAppPermission) MarshalJSON() ([]byte, error) { |
| 962 |
type NoMethod GoogleChromeManagementV1ChromeAppPermission |
| 963 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 964 |
} |
| 965 |
|
| 966 |
// GoogleChromeManagementV1ChromeAppRequest: Details of an app installation |
| 967 |
// request. |
| 968 |
type GoogleChromeManagementV1ChromeAppRequest struct { |
| 969 |
// AppDetails: Output only. Format: |
| 970 |
// app_details=customers/{customer_id}/apps/chrome/{app_id} |
| 971 |
AppDetails string `json:"appDetails,omitempty"` |
| 972 |
// AppId: Output only. Unique store identifier for the app. Example: |
| 973 |
// "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome |
| 974 |
// extension. |
| 975 |
AppId string `json:"appId,omitempty"` |
| 976 |
// DetailUri: Output only. The uri for the detail page of the item. |
| 977 |
DetailUri string `json:"detailUri,omitempty"` |
| 978 |
// DisplayName: Output only. App's display name. |
| 979 |
DisplayName string `json:"displayName,omitempty"` |
| 980 |
// IconUri: Output only. A link to an image that can be used as an icon for the |
| 981 |
// product. |
| 982 |
IconUri string `json:"iconUri,omitempty"` |
| 983 |
// LatestRequestTime: Output only. The timestamp of the most recently made |
| 984 |
// request for this app. |
| 985 |
LatestRequestTime string `json:"latestRequestTime,omitempty"` |
| 986 |
// RequestCount: Output only. Total count of requests for this app. |
| 987 |
RequestCount int64 `json:"requestCount,omitempty,string"` |
| 988 |
// ForceSendFields is a list of field names (e.g. "AppDetails") to |
| 989 |
// unconditionally include in API requests. By default, fields with empty or |
| 990 |
// default values are omitted from API requests. See |
| 991 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 992 |
// details. |
| 993 |
ForceSendFields []string `json:"-"` |
| 994 |
// NullFields is a list of field names (e.g. "AppDetails") to include in API |
| 995 |
// requests with the JSON null value. By default, fields with empty values are |
| 996 |
// omitted from API requests. See |
| 997 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 998 |
NullFields []string `json:"-"` |
| 999 |
} |
| 1000 |
|
| 1001 |
func (s GoogleChromeManagementV1ChromeAppRequest) MarshalJSON() ([]byte, error) { |
| 1002 |
type NoMethod GoogleChromeManagementV1ChromeAppRequest |
| 1003 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1004 |
} |
| 1005 |
|
| 1006 |
// GoogleChromeManagementV1ChromeAppSiteAccess: Represent one host permission. |
| 1007 |
type GoogleChromeManagementV1ChromeAppSiteAccess struct { |
| 1008 |
// HostMatch: Output only. This can contain very specific hosts, or patterns |
| 1009 |
// like "*.com" for instance. |
| 1010 |
HostMatch string `json:"hostMatch,omitempty"` |
| 1011 |
// ForceSendFields is a list of field names (e.g. "HostMatch") to |
| 1012 |
// unconditionally include in API requests. By default, fields with empty or |
| 1013 |
// default values are omitted from API requests. See |
| 1014 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1015 |
// details. |
| 1016 |
ForceSendFields []string `json:"-"` |
| 1017 |
// NullFields is a list of field names (e.g. "HostMatch") to include in API |
| 1018 |
// requests with the JSON null value. By default, fields with empty values are |
| 1019 |
// omitted from API requests. See |
| 1020 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1021 |
NullFields []string `json:"-"` |
| 1022 |
} |
| 1023 |
|
| 1024 |
func (s GoogleChromeManagementV1ChromeAppSiteAccess) MarshalJSON() ([]byte, error) { |
| 1025 |
type NoMethod GoogleChromeManagementV1ChromeAppSiteAccess |
| 1026 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1027 |
} |
| 1028 |
|
| 1029 |
// GoogleChromeManagementV1CountActiveDevicesResponse: Response containing the |
| 1030 |
// number of active devices. |
| 1031 |
type GoogleChromeManagementV1CountActiveDevicesResponse struct { |
| 1032 |
// SevenDaysCount: Number of active devices in the 7 days leading up to the |
| 1033 |
// date specified in the request. |
| 1034 |
SevenDaysCount int64 `json:"sevenDaysCount,omitempty,string"` |
| 1035 |
// ThirtyDaysCount: Number of active devices in the 30 days leading up to the |
| 1036 |
// date specified in the request. |
| 1037 |
ThirtyDaysCount int64 `json:"thirtyDaysCount,omitempty,string"` |
| 1038 |
|
| 1039 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1040 |
googleapi.ServerResponse `json:"-"` |
| 1041 |
// ForceSendFields is a list of field names (e.g. "SevenDaysCount") to |
| 1042 |
// unconditionally include in API requests. By default, fields with empty or |
| 1043 |
// default values are omitted from API requests. See |
| 1044 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1045 |
// details. |
| 1046 |
ForceSendFields []string `json:"-"` |
| 1047 |
// NullFields is a list of field names (e.g. "SevenDaysCount") to include in |
| 1048 |
// API requests with the JSON null value. By default, fields with empty values |
| 1049 |
// are omitted from API requests. See |
| 1050 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1051 |
NullFields []string `json:"-"` |
| 1052 |
} |
| 1053 |
|
| 1054 |
func (s GoogleChromeManagementV1CountActiveDevicesResponse) MarshalJSON() ([]byte, error) { |
| 1055 |
type NoMethod GoogleChromeManagementV1CountActiveDevicesResponse |
| 1056 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1057 |
} |
| 1058 |
|
| 1059 |
// GoogleChromeManagementV1CountChromeAppRequestsResponse: Response containing |
| 1060 |
// summary of requested app installations. |
| 1061 |
type GoogleChromeManagementV1CountChromeAppRequestsResponse struct { |
| 1062 |
// NextPageToken: Token to specify the next page in the list. |
| 1063 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1064 |
// RequestedApps: Count of requested apps matching request. |
| 1065 |
RequestedApps []*GoogleChromeManagementV1ChromeAppRequest `json:"requestedApps,omitempty"` |
| 1066 |
// TotalSize: Total number of matching app requests. |
| 1067 |
TotalSize int64 `json:"totalSize,omitempty"` |
| 1068 |
|
| 1069 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1070 |
googleapi.ServerResponse `json:"-"` |
| 1071 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 1072 |
// unconditionally include in API requests. By default, fields with empty or |
| 1073 |
// default values are omitted from API requests. See |
| 1074 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1075 |
// details. |
| 1076 |
ForceSendFields []string `json:"-"` |
| 1077 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 1078 |
// requests with the JSON null value. By default, fields with empty values are |
| 1079 |
// omitted from API requests. See |
| 1080 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1081 |
NullFields []string `json:"-"` |
| 1082 |
} |
| 1083 |
|
| 1084 |
func (s GoogleChromeManagementV1CountChromeAppRequestsResponse) MarshalJSON() ([]byte, error) { |
| 1085 |
type NoMethod GoogleChromeManagementV1CountChromeAppRequestsResponse |
| 1086 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1087 |
} |
| 1088 |
|
| 1089 |
// GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse: |
| 1090 |
// Response containing counts for browsers that need attention. |
| 1091 |
type GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse struct { |
| 1092 |
// NoRecentActivityCount: Number of browsers that haven’t had any recent |
| 1093 |
// activity |
| 1094 |
NoRecentActivityCount int64 `json:"noRecentActivityCount,omitempty,string"` |
| 1095 |
// PendingBrowserUpdateCount: Number of browsers that are pending an OS update |
| 1096 |
PendingBrowserUpdateCount int64 `json:"pendingBrowserUpdateCount,omitempty,string"` |
| 1097 |
// RecentlyEnrolledCount: Number of browsers that have been recently enrolled |
| 1098 |
RecentlyEnrolledCount int64 `json:"recentlyEnrolledCount,omitempty,string"` |
| 1099 |
|
| 1100 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1101 |
googleapi.ServerResponse `json:"-"` |
| 1102 |
// ForceSendFields is a list of field names (e.g. "NoRecentActivityCount") to |
| 1103 |
// unconditionally include in API requests. By default, fields with empty or |
| 1104 |
// default values are omitted from API requests. See |
| 1105 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1106 |
// details. |
| 1107 |
ForceSendFields []string `json:"-"` |
| 1108 |
// NullFields is a list of field names (e.g. "NoRecentActivityCount") to |
| 1109 |
// include in API requests with the JSON null value. By default, fields with |
| 1110 |
// empty values are omitted from API requests. See |
| 1111 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1112 |
NullFields []string `json:"-"` |
| 1113 |
} |
| 1114 |
|
| 1115 |
func (s GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse) MarshalJSON() ([]byte, error) { |
| 1116 |
type NoMethod GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse |
| 1117 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1118 |
} |
| 1119 |
|
| 1120 |
// GoogleChromeManagementV1CountChromeCrashEventsResponse: Response contains a |
| 1121 |
// list of CrashEventCountByVersionPerDay which count the chrome crash at the |
| 1122 |
// certain date. |
| 1123 |
type GoogleChromeManagementV1CountChromeCrashEventsResponse struct { |
| 1124 |
// CrashEventCounts: Crash event counts grouped by date and browser version. |
| 1125 |
CrashEventCounts []*GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount `json:"crashEventCounts,omitempty"` |
| 1126 |
|
| 1127 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1128 |
googleapi.ServerResponse `json:"-"` |
| 1129 |
// ForceSendFields is a list of field names (e.g. "CrashEventCounts") to |
| 1130 |
// unconditionally include in API requests. By default, fields with empty or |
| 1131 |
// default values are omitted from API requests. See |
| 1132 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1133 |
// details. |
| 1134 |
ForceSendFields []string `json:"-"` |
| 1135 |
// NullFields is a list of field names (e.g. "CrashEventCounts") to include in |
| 1136 |
// API requests with the JSON null value. By default, fields with empty values |
| 1137 |
// are omitted from API requests. See |
| 1138 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1139 |
NullFields []string `json:"-"` |
| 1140 |
} |
| 1141 |
|
| 1142 |
func (s GoogleChromeManagementV1CountChromeCrashEventsResponse) MarshalJSON() ([]byte, error) { |
| 1143 |
type NoMethod GoogleChromeManagementV1CountChromeCrashEventsResponse |
| 1144 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1145 |
} |
| 1146 |
|
| 1147 |
// GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount: The |
| 1148 |
// `count` of the Chrome crash events at the `date`. |
| 1149 |
type GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount struct { |
| 1150 |
// BrowserVersion: Browser version this is counting. |
| 1151 |
BrowserVersion string `json:"browserVersion,omitempty"` |
| 1152 |
// Count: Total count of crash events. |
| 1153 |
Count int64 `json:"count,omitempty,string"` |
| 1154 |
// Date: Date of the crash event. |
| 1155 |
Date *GoogleTypeDate `json:"date,omitempty"` |
| 1156 |
// ForceSendFields is a list of field names (e.g. "BrowserVersion") to |
| 1157 |
// unconditionally include in API requests. By default, fields with empty or |
| 1158 |
// default values are omitted from API requests. See |
| 1159 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1160 |
// details. |
| 1161 |
ForceSendFields []string `json:"-"` |
| 1162 |
// NullFields is a list of field names (e.g. "BrowserVersion") to include in |
| 1163 |
// API requests with the JSON null value. By default, fields with empty values |
| 1164 |
// are omitted from API requests. See |
| 1165 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1166 |
NullFields []string `json:"-"` |
| 1167 |
} |
| 1168 |
|
| 1169 |
func (s GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount) MarshalJSON() ([]byte, error) { |
| 1170 |
type NoMethod GoogleChromeManagementV1CountChromeCrashEventsResponseCrashEventCount |
| 1171 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1172 |
} |
| 1173 |
|
| 1174 |
// GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse: |
| 1175 |
// |
| 1176 |
// Response containing a list of devices expiring in each month of a selected |
| 1177 |
// |
| 1178 |
// time frame. Counts are grouped by model and Auto Update Expiration date. |
| 1179 |
type GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse struct { |
| 1180 |
// DeviceAueCountReports: The list of reports sorted by auto update expiration |
| 1181 |
// date in ascending order. |
| 1182 |
DeviceAueCountReports []*GoogleChromeManagementV1DeviceAueCountReport `json:"deviceAueCountReports,omitempty"` |
| 1183 |
|
| 1184 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1185 |
googleapi.ServerResponse `json:"-"` |
| 1186 |
// ForceSendFields is a list of field names (e.g. "DeviceAueCountReports") to |
| 1187 |
// unconditionally include in API requests. By default, fields with empty or |
| 1188 |
// default values are omitted from API requests. See |
| 1189 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1190 |
// details. |
| 1191 |
ForceSendFields []string `json:"-"` |
| 1192 |
// NullFields is a list of field names (e.g. "DeviceAueCountReports") to |
| 1193 |
// include in API requests with the JSON null value. By default, fields with |
| 1194 |
// empty values are omitted from API requests. See |
| 1195 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1196 |
NullFields []string `json:"-"` |
| 1197 |
} |
| 1198 |
|
| 1199 |
func (s GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse) MarshalJSON() ([]byte, error) { |
| 1200 |
type NoMethod GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse |
| 1201 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1202 |
} |
| 1203 |
|
| 1204 |
// GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse: |
| 1205 |
// Response containing counts for devices that need attention. |
| 1206 |
type GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse struct { |
| 1207 |
// NoRecentPolicySyncCount: Number of ChromeOS devices have not synced policies |
| 1208 |
// in the past 28 days. |
| 1209 |
NoRecentPolicySyncCount int64 `json:"noRecentPolicySyncCount,omitempty,string"` |
| 1210 |
// NoRecentUserActivityCount: Number of ChromeOS devices that have not seen any |
| 1211 |
// user activity in the past 28 days. |
| 1212 |
NoRecentUserActivityCount int64 `json:"noRecentUserActivityCount,omitempty,string"` |
| 1213 |
// OsVersionNotCompliantCount: Number of devices whose OS version is not |
| 1214 |
// compliant. |
| 1215 |
OsVersionNotCompliantCount int64 `json:"osVersionNotCompliantCount,omitempty,string"` |
| 1216 |
// PendingUpdate: Number of devices that are pending an OS update. |
| 1217 |
PendingUpdate int64 `json:"pendingUpdate,omitempty,string"` |
| 1218 |
// UnsupportedPolicyCount: Number of devices that are unable to apply a policy |
| 1219 |
// due to an OS version mismatch. |
| 1220 |
UnsupportedPolicyCount int64 `json:"unsupportedPolicyCount,omitempty,string"` |
| 1221 |
|
| 1222 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1223 |
googleapi.ServerResponse `json:"-"` |
| 1224 |
// ForceSendFields is a list of field names (e.g. "NoRecentPolicySyncCount") to |
| 1225 |
// unconditionally include in API requests. By default, fields with empty or |
| 1226 |
// default values are omitted from API requests. See |
| 1227 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1228 |
// details. |
| 1229 |
ForceSendFields []string `json:"-"` |
| 1230 |
// NullFields is a list of field names (e.g. "NoRecentPolicySyncCount") to |
| 1231 |
// include in API requests with the JSON null value. By default, fields with |
| 1232 |
// empty values are omitted from API requests. See |
| 1233 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1234 |
NullFields []string `json:"-"` |
| 1235 |
} |
| 1236 |
|
| 1237 |
func (s GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse) MarshalJSON() ([]byte, error) { |
| 1238 |
type NoMethod GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse |
| 1239 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1240 |
} |
| 1241 |
|
| 1242 |
// GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse: Response |
| 1243 |
// containing a list of devices with a specific type of hardware specification |
| 1244 |
// from the requested hardware type. |
| 1245 |
type GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse struct { |
| 1246 |
// CpuReports: The DeviceHardwareCountReport for device cpu type (for example |
| 1247 |
// Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz). |
| 1248 |
CpuReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"cpuReports,omitempty"` |
| 1249 |
// MemoryReports: The DeviceHardwareCountReport for device memory amount in |
| 1250 |
// gigabytes (for example 16). |
| 1251 |
MemoryReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"memoryReports,omitempty"` |
| 1252 |
// ModelReports: The DeviceHardwareCountReport for device model type (for |
| 1253 |
// example Acer C7 Chromebook). |
| 1254 |
ModelReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"modelReports,omitempty"` |
| 1255 |
// StorageReports: The DeviceHardwareCountReport for device storage amount in |
| 1256 |
// gigabytes (for example 128). |
| 1257 |
StorageReports []*GoogleChromeManagementV1DeviceHardwareCountReport `json:"storageReports,omitempty"` |
| 1258 |
|
| 1259 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1260 |
googleapi.ServerResponse `json:"-"` |
| 1261 |
// ForceSendFields is a list of field names (e.g. "CpuReports") to |
| 1262 |
// unconditionally include in API requests. By default, fields with empty or |
| 1263 |
// default values are omitted from API requests. See |
| 1264 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1265 |
// details. |
| 1266 |
ForceSendFields []string `json:"-"` |
| 1267 |
// NullFields is a list of field names (e.g. "CpuReports") to include in API |
| 1268 |
// requests with the JSON null value. By default, fields with empty values are |
| 1269 |
// omitted from API requests. See |
| 1270 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1271 |
NullFields []string `json:"-"` |
| 1272 |
} |
| 1273 |
|
| 1274 |
func (s GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse) MarshalJSON() ([]byte, error) { |
| 1275 |
type NoMethod GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse |
| 1276 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1277 |
} |
| 1278 |
|
| 1279 |
// GoogleChromeManagementV1CountChromeVersionsResponse: Response containing |
| 1280 |
// requested browser versions details and counts. |
| 1281 |
type GoogleChromeManagementV1CountChromeVersionsResponse struct { |
| 1282 |
// BrowserVersions: List of all browser versions and their install counts. |
| 1283 |
BrowserVersions []*GoogleChromeManagementV1BrowserVersion `json:"browserVersions,omitempty"` |
| 1284 |
// NextPageToken: Token to specify the next page of the request. |
| 1285 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1286 |
// TotalSize: Total number browser versions matching request. |
| 1287 |
TotalSize int64 `json:"totalSize,omitempty"` |
| 1288 |
|
| 1289 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1290 |
googleapi.ServerResponse `json:"-"` |
| 1291 |
// ForceSendFields is a list of field names (e.g. "BrowserVersions") to |
| 1292 |
// unconditionally include in API requests. By default, fields with empty or |
| 1293 |
// default values are omitted from API requests. See |
| 1294 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1295 |
// details. |
| 1296 |
ForceSendFields []string `json:"-"` |
| 1297 |
// NullFields is a list of field names (e.g. "BrowserVersions") to include in |
| 1298 |
// API requests with the JSON null value. By default, fields with empty values |
| 1299 |
// are omitted from API requests. See |
| 1300 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1301 |
NullFields []string `json:"-"` |
| 1302 |
} |
| 1303 |
|
| 1304 |
func (s GoogleChromeManagementV1CountChromeVersionsResponse) MarshalJSON() ([]byte, error) { |
| 1305 |
type NoMethod GoogleChromeManagementV1CountChromeVersionsResponse |
| 1306 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1307 |
} |
| 1308 |
|
| 1309 |
// GoogleChromeManagementV1CountDevicesPerBootTypeResponse: Response containing |
| 1310 |
// the number of devices with the given boot type. |
| 1311 |
type GoogleChromeManagementV1CountDevicesPerBootTypeResponse struct { |
| 1312 |
// DevBootTypeCount: Number of devices with dev boot type. |
| 1313 |
DevBootTypeCount int64 `json:"devBootTypeCount,omitempty,string"` |
| 1314 |
// UnreportedBootTypeCount: Number of devices with unreported boot type. |
| 1315 |
UnreportedBootTypeCount int64 `json:"unreportedBootTypeCount,omitempty,string"` |
| 1316 |
// VerifiedBootTypeCount: Number of devices with verified boot type. |
| 1317 |
VerifiedBootTypeCount int64 `json:"verifiedBootTypeCount,omitempty,string"` |
| 1318 |
|
| 1319 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1320 |
googleapi.ServerResponse `json:"-"` |
| 1321 |
// ForceSendFields is a list of field names (e.g. "DevBootTypeCount") to |
| 1322 |
// unconditionally include in API requests. By default, fields with empty or |
| 1323 |
// default values are omitted from API requests. See |
| 1324 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1325 |
// details. |
| 1326 |
ForceSendFields []string `json:"-"` |
| 1327 |
// NullFields is a list of field names (e.g. "DevBootTypeCount") to include in |
| 1328 |
// API requests with the JSON null value. By default, fields with empty values |
| 1329 |
// are omitted from API requests. See |
| 1330 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1331 |
NullFields []string `json:"-"` |
| 1332 |
} |
| 1333 |
|
| 1334 |
func (s GoogleChromeManagementV1CountDevicesPerBootTypeResponse) MarshalJSON() ([]byte, error) { |
| 1335 |
type NoMethod GoogleChromeManagementV1CountDevicesPerBootTypeResponse |
| 1336 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1337 |
} |
| 1338 |
|
| 1339 |
// GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse: Response |
| 1340 |
// containing the number of devices with the given channel. |
| 1341 |
type GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse struct { |
| 1342 |
// BetaChannelCount: Number of devices with beta release channel. |
| 1343 |
BetaChannelCount int64 `json:"betaChannelCount,omitempty,string"` |
| 1344 |
// CanaryChannelCount: Number of devices with canary release channel. |
| 1345 |
CanaryChannelCount int64 `json:"canaryChannelCount,omitempty,string"` |
| 1346 |
// DevChannelCount: Number of devices with dev release channel. |
| 1347 |
DevChannelCount int64 `json:"devChannelCount,omitempty,string"` |
| 1348 |
// LtcChannelCount: Number of devices with ltc release channel. |
| 1349 |
LtcChannelCount int64 `json:"ltcChannelCount,omitempty,string"` |
| 1350 |
// LtsChannelCount: Number of devices with lts release channel. |
| 1351 |
LtsChannelCount int64 `json:"ltsChannelCount,omitempty,string"` |
| 1352 |
// StableChannelCount: Number of devices with stable release channel. |
| 1353 |
StableChannelCount int64 `json:"stableChannelCount,omitempty,string"` |
| 1354 |
// UnreportedChannelCount: Number of devices with an unreported release |
| 1355 |
// channel. |
| 1356 |
UnreportedChannelCount int64 `json:"unreportedChannelCount,omitempty,string"` |
| 1357 |
// UnsupportedChannelCount: Number of devices with unsupported release channel. |
| 1358 |
UnsupportedChannelCount int64 `json:"unsupportedChannelCount,omitempty,string"` |
| 1359 |
|
| 1360 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1361 |
googleapi.ServerResponse `json:"-"` |
| 1362 |
// ForceSendFields is a list of field names (e.g. "BetaChannelCount") to |
| 1363 |
// unconditionally include in API requests. By default, fields with empty or |
| 1364 |
// default values are omitted from API requests. See |
| 1365 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1366 |
// details. |
| 1367 |
ForceSendFields []string `json:"-"` |
| 1368 |
// NullFields is a list of field names (e.g. "BetaChannelCount") to include in |
| 1369 |
// API requests with the JSON null value. By default, fields with empty values |
| 1370 |
// are omitted from API requests. See |
| 1371 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1372 |
NullFields []string `json:"-"` |
| 1373 |
} |
| 1374 |
|
| 1375 |
func (s GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse) MarshalJSON() ([]byte, error) { |
| 1376 |
type NoMethod GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse |
| 1377 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1378 |
} |
| 1379 |
|
| 1380 |
// GoogleChromeManagementV1CountInstalledAppsResponse: Response containing |
| 1381 |
// details of queried installed apps. |
| 1382 |
type GoogleChromeManagementV1CountInstalledAppsResponse struct { |
| 1383 |
// InstalledApps: List of installed apps matching request. |
| 1384 |
InstalledApps []*GoogleChromeManagementV1InstalledApp `json:"installedApps,omitempty"` |
| 1385 |
// NextPageToken: Token to specify the next page of the request. |
| 1386 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1387 |
// TotalSize: Total number of installed apps matching request. |
| 1388 |
TotalSize int64 `json:"totalSize,omitempty"` |
| 1389 |
|
| 1390 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1391 |
googleapi.ServerResponse `json:"-"` |
| 1392 |
// ForceSendFields is a list of field names (e.g. "InstalledApps") to |
| 1393 |
// unconditionally include in API requests. By default, fields with empty or |
| 1394 |
// default values are omitted from API requests. See |
| 1395 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1396 |
// details. |
| 1397 |
ForceSendFields []string `json:"-"` |
| 1398 |
// NullFields is a list of field names (e.g. "InstalledApps") to include in API |
| 1399 |
// requests with the JSON null value. By default, fields with empty values are |
| 1400 |
// omitted from API requests. See |
| 1401 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1402 |
NullFields []string `json:"-"` |
| 1403 |
} |
| 1404 |
|
| 1405 |
func (s GoogleChromeManagementV1CountInstalledAppsResponse) MarshalJSON() ([]byte, error) { |
| 1406 |
type NoMethod GoogleChromeManagementV1CountInstalledAppsResponse |
| 1407 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1408 |
} |
| 1409 |
|
| 1410 |
// GoogleChromeManagementV1CountPrintJobsByPrinterResponse: Response containing |
| 1411 |
// a summary printing report for each printer from the specified organizational |
| 1412 |
// unit for the requested time interval. |
| 1413 |
type GoogleChromeManagementV1CountPrintJobsByPrinterResponse struct { |
| 1414 |
// NextPageToken: Pagination token for requesting the next page. |
| 1415 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1416 |
// PrinterReports: List of PrinterReports matching request. |
| 1417 |
PrinterReports []*GoogleChromeManagementV1PrinterReport `json:"printerReports,omitempty"` |
| 1418 |
// TotalSize: Total number of printers matching request. |
| 1419 |
TotalSize int64 `json:"totalSize,omitempty,string"` |
| 1420 |
|
| 1421 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1422 |
googleapi.ServerResponse `json:"-"` |
| 1423 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 1424 |
// unconditionally include in API requests. By default, fields with empty or |
| 1425 |
// default values are omitted from API requests. See |
| 1426 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1427 |
// details. |
| 1428 |
ForceSendFields []string `json:"-"` |
| 1429 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 1430 |
// requests with the JSON null value. By default, fields with empty values are |
| 1431 |
// omitted from API requests. See |
| 1432 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1433 |
NullFields []string `json:"-"` |
| 1434 |
} |
| 1435 |
|
| 1436 |
func (s GoogleChromeManagementV1CountPrintJobsByPrinterResponse) MarshalJSON() ([]byte, error) { |
| 1437 |
type NoMethod GoogleChromeManagementV1CountPrintJobsByPrinterResponse |
| 1438 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1439 |
} |
| 1440 |
|
| 1441 |
// GoogleChromeManagementV1CountPrintJobsByUserResponse: Response containing a |
| 1442 |
// summary printing report for each user that has initiated a print job with a |
| 1443 |
// printer from the specified organizational unit during the requested time |
| 1444 |
// interval. |
| 1445 |
type GoogleChromeManagementV1CountPrintJobsByUserResponse struct { |
| 1446 |
// NextPageToken: Pagination token for requesting the next page. |
| 1447 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1448 |
// TotalSize: Total number of users matching request. |
| 1449 |
TotalSize int64 `json:"totalSize,omitempty,string"` |
| 1450 |
// UserPrintReports: List of UserPrintReports matching request. |
| 1451 |
UserPrintReports []*GoogleChromeManagementV1UserPrintReport `json:"userPrintReports,omitempty"` |
| 1452 |
|
| 1453 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1454 |
googleapi.ServerResponse `json:"-"` |
| 1455 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 1456 |
// unconditionally include in API requests. By default, fields with empty or |
| 1457 |
// default values are omitted from API requests. See |
| 1458 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1459 |
// details. |
| 1460 |
ForceSendFields []string `json:"-"` |
| 1461 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 1462 |
// requests with the JSON null value. By default, fields with empty values are |
| 1463 |
// omitted from API requests. See |
| 1464 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1465 |
NullFields []string `json:"-"` |
| 1466 |
} |
| 1467 |
|
| 1468 |
func (s GoogleChromeManagementV1CountPrintJobsByUserResponse) MarshalJSON() ([]byte, error) { |
| 1469 |
type NoMethod GoogleChromeManagementV1CountPrintJobsByUserResponse |
| 1470 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1471 |
} |
| 1472 |
|
| 1473 |
// GoogleChromeManagementV1CpuInfo: CPU specifications for the device * This |
| 1474 |
// field provides device information, which is static and will not change over |
| 1475 |
// time. * Data for this field is controlled via policy: ReportDeviceCpuInfo |
| 1476 |
// (https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data |
| 1477 |
// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 |
| 1478 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 1479 |
// collected data is stored locally, and will be reported when the device is |
| 1480 |
// next online: No * Reported for affiliated users only: N/A * Granular |
| 1481 |
// permission needed: TELEMETRY_API_CPU_INFO |
| 1482 |
type GoogleChromeManagementV1CpuInfo struct { |
| 1483 |
// Architecture: Output only. Architecture type for the CPU. * This field |
| 1484 |
// provides device information, which is static and will not change over time. |
| 1485 |
// * Data for this field is controlled via policy: ReportDeviceCpuInfo |
| 1486 |
// (https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data |
| 1487 |
// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 |
| 1488 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 1489 |
// collected data is stored locally, and will be reported when the device is |
| 1490 |
// next online: No * Reported for affiliated users only: N/A |
| 1491 |
// |
| 1492 |
// Possible values: |
| 1493 |
// "ARCHITECTURE_UNSPECIFIED" - Architecture unknown. |
| 1494 |
// "X64" - x64 architecture |
| 1495 |
Architecture string `json:"architecture,omitempty"` |
| 1496 |
// KeylockerConfigured: Output only. Whether keylocker is configured.`TRUE` = |
| 1497 |
// Enabled; `FALSE` = disabled. Only reported if keylockerSupported = `TRUE`. |
| 1498 |
KeylockerConfigured bool `json:"keylockerConfigured,omitempty"` |
| 1499 |
// KeylockerSupported: Output only. Whether keylocker is supported. |
| 1500 |
KeylockerSupported bool `json:"keylockerSupported,omitempty"` |
| 1501 |
// MaxClockSpeed: Output only. The max CPU clock speed in kHz. |
| 1502 |
MaxClockSpeed int64 `json:"maxClockSpeed,omitempty"` |
| 1503 |
// Model: Output only. The CPU model name. Example: Intel(R) Core(TM) i5-8250U |
| 1504 |
// CPU @ 1.60GHz |
| 1505 |
Model string `json:"model,omitempty"` |
| 1506 |
// ForceSendFields is a list of field names (e.g. "Architecture") to |
| 1507 |
// unconditionally include in API requests. By default, fields with empty or |
| 1508 |
// default values are omitted from API requests. See |
| 1509 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1510 |
// details. |
| 1511 |
ForceSendFields []string `json:"-"` |
| 1512 |
// NullFields is a list of field names (e.g. "Architecture") to include in API |
| 1513 |
// requests with the JSON null value. By default, fields with empty values are |
| 1514 |
// omitted from API requests. See |
| 1515 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1516 |
NullFields []string `json:"-"` |
| 1517 |
} |
| 1518 |
|
| 1519 |
func (s GoogleChromeManagementV1CpuInfo) MarshalJSON() ([]byte, error) { |
| 1520 |
type NoMethod GoogleChromeManagementV1CpuInfo |
| 1521 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1522 |
} |
| 1523 |
|
| 1524 |
// GoogleChromeManagementV1CpuStatusReport: Provides information about the |
| 1525 |
// status of the CPU. * This field is telemetry information and this will |
| 1526 |
// change over time as the device is utilized. * Data for this field is |
| 1527 |
// controlled via policy: ReportDeviceCpuInfo |
| 1528 |
// (https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data |
| 1529 |
// Collection Frequency: Every 10 minutes * Default Data Reporting Frequency: 3 |
| 1530 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 1531 |
// collected data is stored locally, and will be reported when the device is |
| 1532 |
// next online: No * Reported for affiliated users only: N/A * Granular |
| 1533 |
// permission needed: TELEMETRY_API_CPU_REPORT |
| 1534 |
type GoogleChromeManagementV1CpuStatusReport struct { |
| 1535 |
// CpuTemperatureInfo: Output only. CPU temperature sample info per CPU core in |
| 1536 |
// Celsius |
| 1537 |
CpuTemperatureInfo []*GoogleChromeManagementV1CpuTemperatureInfo `json:"cpuTemperatureInfo,omitempty"` |
| 1538 |
// CpuUtilizationPct: Output only. Sample of CPU utilization (0-100 percent). |
| 1539 |
CpuUtilizationPct int64 `json:"cpuUtilizationPct,omitempty"` |
| 1540 |
// ReportTime: Output only. The timestamp in milliseconds representing time at |
| 1541 |
// which this report was sampled. |
| 1542 |
ReportTime string `json:"reportTime,omitempty"` |
| 1543 |
// SampleFrequency: Output only. Frequency the report is sampled. |
| 1544 |
SampleFrequency string `json:"sampleFrequency,omitempty"` |
| 1545 |
// ForceSendFields is a list of field names (e.g. "CpuTemperatureInfo") to |
| 1546 |
// unconditionally include in API requests. By default, fields with empty or |
| 1547 |
// default values are omitted from API requests. See |
| 1548 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1549 |
// details. |
| 1550 |
ForceSendFields []string `json:"-"` |
| 1551 |
// NullFields is a list of field names (e.g. "CpuTemperatureInfo") to include |
| 1552 |
// in API requests with the JSON null value. By default, fields with empty |
| 1553 |
// values are omitted from API requests. See |
| 1554 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1555 |
NullFields []string `json:"-"` |
| 1556 |
} |
| 1557 |
|
| 1558 |
func (s GoogleChromeManagementV1CpuStatusReport) MarshalJSON() ([]byte, error) { |
| 1559 |
type NoMethod GoogleChromeManagementV1CpuStatusReport |
| 1560 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1561 |
} |
| 1562 |
|
| 1563 |
// GoogleChromeManagementV1CpuTemperatureInfo: CPU temperature of a device. |
| 1564 |
// Sampled per CPU core in Celsius. * This field is telemetry information and |
| 1565 |
// this will change over time as the device is utilized. * Data for this field |
| 1566 |
// is controlled via policy: ReportDeviceCpuInfo |
| 1567 |
// (https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data |
| 1568 |
// Collection Frequency: Every 10 minutes * Default Data Reporting Frequency: 3 |
| 1569 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 1570 |
// collected data is stored locally, and will be reported when the device is |
| 1571 |
// next online: No * Reported for affiliated users only: N/A |
| 1572 |
type GoogleChromeManagementV1CpuTemperatureInfo struct { |
| 1573 |
// Label: Output only. CPU label. Example: Core 0 |
| 1574 |
Label string `json:"label,omitempty"` |
| 1575 |
// TemperatureCelsius: Output only. CPU temperature in Celsius. |
| 1576 |
TemperatureCelsius int64 `json:"temperatureCelsius,omitempty"` |
| 1577 |
// ForceSendFields is a list of field names (e.g. "Label") to unconditionally |
| 1578 |
// include in API requests. By default, fields with empty or default values are |
| 1579 |
// omitted from API requests. See |
| 1580 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1581 |
// details. |
| 1582 |
ForceSendFields []string `json:"-"` |
| 1583 |
// NullFields is a list of field names (e.g. "Label") to include in API |
| 1584 |
// requests with the JSON null value. By default, fields with empty values are |
| 1585 |
// omitted from API requests. See |
| 1586 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1587 |
NullFields []string `json:"-"` |
| 1588 |
} |
| 1589 |
|
| 1590 |
func (s GoogleChromeManagementV1CpuTemperatureInfo) MarshalJSON() ([]byte, error) { |
| 1591 |
type NoMethod GoogleChromeManagementV1CpuTemperatureInfo |
| 1592 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1593 |
} |
| 1594 |
|
| 1595 |
// GoogleChromeManagementV1Device: Describes a device reporting Chrome browser |
| 1596 |
// information. |
| 1597 |
type GoogleChromeManagementV1Device struct { |
| 1598 |
// DeviceId: Output only. The ID of the device that reported this Chrome |
| 1599 |
// browser information. |
| 1600 |
DeviceId string `json:"deviceId,omitempty"` |
| 1601 |
// Machine: Output only. The name of the machine within its local network. |
| 1602 |
Machine string `json:"machine,omitempty"` |
| 1603 |
// ForceSendFields is a list of field names (e.g. "DeviceId") to |
| 1604 |
// unconditionally include in API requests. By default, fields with empty or |
| 1605 |
// default values are omitted from API requests. See |
| 1606 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1607 |
// details. |
| 1608 |
ForceSendFields []string `json:"-"` |
| 1609 |
// NullFields is a list of field names (e.g. "DeviceId") to include in API |
| 1610 |
// requests with the JSON null value. By default, fields with empty values are |
| 1611 |
// omitted from API requests. See |
| 1612 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1613 |
NullFields []string `json:"-"` |
| 1614 |
} |
| 1615 |
|
| 1616 |
func (s GoogleChromeManagementV1Device) MarshalJSON() ([]byte, error) { |
| 1617 |
type NoMethod GoogleChromeManagementV1Device |
| 1618 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1619 |
} |
| 1620 |
|
| 1621 |
// GoogleChromeManagementV1DeviceActivityReport: Device activity report. * |
| 1622 |
// Granular permission needed: TELEMETRY_API_DEVICE_ACTIVITY_REPORT |
| 1623 |
type GoogleChromeManagementV1DeviceActivityReport struct { |
| 1624 |
// DeviceActivityState: Output only. Device activity state. |
| 1625 |
// |
| 1626 |
// Possible values: |
| 1627 |
// "DEVICE_ACTIVITY_STATE_UNSPECIFIED" - Device activity state is |
| 1628 |
// unspecified. |
| 1629 |
// "ACTIVE" - Device is currently being used. |
| 1630 |
// "IDLE" - Device is currently idle. |
| 1631 |
// "LOCKED" - Device is currently locked. |
| 1632 |
DeviceActivityState string `json:"deviceActivityState,omitempty"` |
| 1633 |
// ReportTime: Output only. Timestamp of when the report was collected. |
| 1634 |
ReportTime string `json:"reportTime,omitempty"` |
| 1635 |
// ForceSendFields is a list of field names (e.g. "DeviceActivityState") to |
| 1636 |
// unconditionally include in API requests. By default, fields with empty or |
| 1637 |
// default values are omitted from API requests. See |
| 1638 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1639 |
// details. |
| 1640 |
ForceSendFields []string `json:"-"` |
| 1641 |
// NullFields is a list of field names (e.g. "DeviceActivityState") to include |
| 1642 |
// in API requests with the JSON null value. By default, fields with empty |
| 1643 |
// values are omitted from API requests. See |
| 1644 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1645 |
NullFields []string `json:"-"` |
| 1646 |
} |
| 1647 |
|
| 1648 |
func (s GoogleChromeManagementV1DeviceActivityReport) MarshalJSON() ([]byte, error) { |
| 1649 |
type NoMethod GoogleChromeManagementV1DeviceActivityReport |
| 1650 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1651 |
} |
| 1652 |
|
| 1653 |
// GoogleChromeManagementV1DeviceAueCountReport: Report for |
| 1654 |
// CountChromeDevicesPerAueDateResponse, contains the count of devices of a |
| 1655 |
// specific model and auto update expiration range. |
| 1656 |
type GoogleChromeManagementV1DeviceAueCountReport struct { |
| 1657 |
// AueMonth: Enum value of month corresponding to the auto update expiration |
| 1658 |
// date in UTC time zone. If the device is already expired, this field is |
| 1659 |
// empty. |
| 1660 |
// |
| 1661 |
// Possible values: |
| 1662 |
// "MONTH_UNSPECIFIED" - The unspecified month. |
| 1663 |
// "JANUARY" - The month of January. |
| 1664 |
// "FEBRUARY" - The month of February. |
| 1665 |
// "MARCH" - The month of March. |
| 1666 |
// "APRIL" - The month of April. |
| 1667 |
// "MAY" - The month of May. |
| 1668 |
// "JUNE" - The month of June. |
| 1669 |
// "JULY" - The month of July. |
| 1670 |
// "AUGUST" - The month of August. |
| 1671 |
// "SEPTEMBER" - The month of September. |
| 1672 |
// "OCTOBER" - The month of October. |
| 1673 |
// "NOVEMBER" - The month of November. |
| 1674 |
// "DECEMBER" - The month of December. |
| 1675 |
AueMonth string `json:"aueMonth,omitempty"` |
| 1676 |
// AueYear: Int value of year corresponding to the Auto Update Expiration date |
| 1677 |
// in UTC time zone. If the device is already expired, this field is empty. |
| 1678 |
AueYear int64 `json:"aueYear,omitempty,string"` |
| 1679 |
// Count: Count of devices of this model. |
| 1680 |
Count int64 `json:"count,omitempty,string"` |
| 1681 |
// Expired: Boolean value for whether or not the device has already expired. |
| 1682 |
Expired bool `json:"expired,omitempty"` |
| 1683 |
// Model: Public model name of the devices. |
| 1684 |
Model string `json:"model,omitempty"` |
| 1685 |
// ForceSendFields is a list of field names (e.g. "AueMonth") to |
| 1686 |
// unconditionally include in API requests. By default, fields with empty or |
| 1687 |
// default values are omitted from API requests. See |
| 1688 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1689 |
// details. |
| 1690 |
ForceSendFields []string `json:"-"` |
| 1691 |
// NullFields is a list of field names (e.g. "AueMonth") to include in API |
| 1692 |
// requests with the JSON null value. By default, fields with empty values are |
| 1693 |
// omitted from API requests. See |
| 1694 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1695 |
NullFields []string `json:"-"` |
| 1696 |
} |
| 1697 |
|
| 1698 |
func (s GoogleChromeManagementV1DeviceAueCountReport) MarshalJSON() ([]byte, error) { |
| 1699 |
type NoMethod GoogleChromeManagementV1DeviceAueCountReport |
| 1700 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1701 |
} |
| 1702 |
|
| 1703 |
// GoogleChromeManagementV1DeviceHardwareCountReport: Report for |
| 1704 |
// CountChromeDevicesPerHardwareSpecResponse, contains the count of devices |
| 1705 |
// with a unique hardware specification. |
| 1706 |
type GoogleChromeManagementV1DeviceHardwareCountReport struct { |
| 1707 |
// Bucket: Public name of the hardware specification. |
| 1708 |
Bucket string `json:"bucket,omitempty"` |
| 1709 |
// Count: Count of devices with a unique hardware specification. |
| 1710 |
Count int64 `json:"count,omitempty,string"` |
| 1711 |
// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally |
| 1712 |
// include in API requests. By default, fields with empty or default values are |
| 1713 |
// omitted from API requests. See |
| 1714 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1715 |
// details. |
| 1716 |
ForceSendFields []string `json:"-"` |
| 1717 |
// NullFields is a list of field names (e.g. "Bucket") to include in API |
| 1718 |
// requests with the JSON null value. By default, fields with empty values are |
| 1719 |
// omitted from API requests. See |
| 1720 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1721 |
NullFields []string `json:"-"` |
| 1722 |
} |
| 1723 |
|
| 1724 |
func (s GoogleChromeManagementV1DeviceHardwareCountReport) MarshalJSON() ([]byte, error) { |
| 1725 |
type NoMethod GoogleChromeManagementV1DeviceHardwareCountReport |
| 1726 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1727 |
} |
| 1728 |
|
| 1729 |
// GoogleChromeManagementV1DeviceRequestingExtensionDetails: Details of a |
| 1730 |
// device requesting an extension, including the name of the device and the |
| 1731 |
// justification of the request. |
| 1732 |
type GoogleChromeManagementV1DeviceRequestingExtensionDetails struct { |
| 1733 |
// DeviceName: The name of a device that has requested the extension. |
| 1734 |
DeviceName string `json:"deviceName,omitempty"` |
| 1735 |
// Justification: Request justification as entered by the user. |
| 1736 |
Justification string `json:"justification,omitempty"` |
| 1737 |
// ForceSendFields is a list of field names (e.g. "DeviceName") to |
| 1738 |
// unconditionally include in API requests. By default, fields with empty or |
| 1739 |
// default values are omitted from API requests. See |
| 1740 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1741 |
// details. |
| 1742 |
ForceSendFields []string `json:"-"` |
| 1743 |
// NullFields is a list of field names (e.g. "DeviceName") to include in API |
| 1744 |
// requests with the JSON null value. By default, fields with empty values are |
| 1745 |
// omitted from API requests. See |
| 1746 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1747 |
NullFields []string `json:"-"` |
| 1748 |
} |
| 1749 |
|
| 1750 |
func (s GoogleChromeManagementV1DeviceRequestingExtensionDetails) MarshalJSON() ([]byte, error) { |
| 1751 |
type NoMethod GoogleChromeManagementV1DeviceRequestingExtensionDetails |
| 1752 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1753 |
} |
| 1754 |
|
| 1755 |
// GoogleChromeManagementV1DiskInfo: Status of the single storage device. |
| 1756 |
type GoogleChromeManagementV1DiskInfo struct { |
| 1757 |
// BytesReadThisSession: Output only. Number of bytes read since last boot. |
| 1758 |
BytesReadThisSession int64 `json:"bytesReadThisSession,omitempty,string"` |
| 1759 |
// BytesWrittenThisSession: Output only. Number of bytes written since last |
| 1760 |
// boot. |
| 1761 |
BytesWrittenThisSession int64 `json:"bytesWrittenThisSession,omitempty,string"` |
| 1762 |
// DiscardTimeThisSession: Output only. Time spent discarding since last boot. |
| 1763 |
// Discarding is writing to clear blocks which are no longer in use. Supported |
| 1764 |
// on kernels 4.18+. |
| 1765 |
DiscardTimeThisSession string `json:"discardTimeThisSession,omitempty"` |
| 1766 |
// Health: Output only. Disk health. |
| 1767 |
Health string `json:"health,omitempty"` |
| 1768 |
// IoTimeThisSession: Output only. Counts the time the disk and queue were |
| 1769 |
// busy, so unlike the fields above, parallel requests are not counted multiple |
| 1770 |
// times. |
| 1771 |
IoTimeThisSession string `json:"ioTimeThisSession,omitempty"` |
| 1772 |
// Manufacturer: Output only. Disk manufacturer. |
| 1773 |
Manufacturer string `json:"manufacturer,omitempty"` |
| 1774 |
// Model: Output only. Disk model. |
| 1775 |
Model string `json:"model,omitempty"` |
| 1776 |
// ReadTimeThisSession: Output only. Time spent reading from disk since last |
| 1777 |
// boot. |
| 1778 |
ReadTimeThisSession string `json:"readTimeThisSession,omitempty"` |
| 1779 |
// SerialNumber: Output only. Disk serial number. |
| 1780 |
SerialNumber string `json:"serialNumber,omitempty"` |
| 1781 |
// SizeBytes: Output only. Disk size. |
| 1782 |
SizeBytes int64 `json:"sizeBytes,omitempty,string"` |
| 1783 |
// Type: Output only. Disk type: eMMC / NVMe / ATA / SCSI. |
| 1784 |
Type string `json:"type,omitempty"` |
| 1785 |
// VolumeIds: Output only. Disk volumes. |
| 1786 |
VolumeIds []string `json:"volumeIds,omitempty"` |
| 1787 |
// WriteTimeThisSession: Output only. Time spent writing to disk since last |
| 1788 |
// boot. |
| 1789 |
WriteTimeThisSession string `json:"writeTimeThisSession,omitempty"` |
| 1790 |
// ForceSendFields is a list of field names (e.g. "BytesReadThisSession") to |
| 1791 |
// unconditionally include in API requests. By default, fields with empty or |
| 1792 |
// default values are omitted from API requests. See |
| 1793 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1794 |
// details. |
| 1795 |
ForceSendFields []string `json:"-"` |
| 1796 |
// NullFields is a list of field names (e.g. "BytesReadThisSession") to include |
| 1797 |
// in API requests with the JSON null value. By default, fields with empty |
| 1798 |
// values are omitted from API requests. See |
| 1799 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1800 |
NullFields []string `json:"-"` |
| 1801 |
} |
| 1802 |
|
| 1803 |
func (s GoogleChromeManagementV1DiskInfo) MarshalJSON() ([]byte, error) { |
| 1804 |
type NoMethod GoogleChromeManagementV1DiskInfo |
| 1805 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1806 |
} |
| 1807 |
|
| 1808 |
// GoogleChromeManagementV1DisplayDevice: Information of a display device. |
| 1809 |
type GoogleChromeManagementV1DisplayDevice struct { |
| 1810 |
// DisplayHeightMm: Output only. Display height in millimeters. |
| 1811 |
DisplayHeightMm int64 `json:"displayHeightMm,omitempty"` |
| 1812 |
// DisplayName: Output only. Display device name. |
| 1813 |
DisplayName string `json:"displayName,omitempty"` |
| 1814 |
// DisplayWidthMm: Output only. Display width in millimeters. |
| 1815 |
DisplayWidthMm int64 `json:"displayWidthMm,omitempty"` |
| 1816 |
// EdidVersion: Output only. EDID version. |
| 1817 |
EdidVersion string `json:"edidVersion,omitempty"` |
| 1818 |
// Internal: Output only. Is display internal or not. |
| 1819 |
Internal bool `json:"internal,omitempty"` |
| 1820 |
// ManufactureYear: Output only. Year of manufacture. |
| 1821 |
ManufactureYear int64 `json:"manufactureYear,omitempty"` |
| 1822 |
// ManufacturerId: Output only. Three letter manufacturer ID. |
| 1823 |
ManufacturerId string `json:"manufacturerId,omitempty"` |
| 1824 |
// ModelId: Output only. Manufacturer product code. |
| 1825 |
ModelId int64 `json:"modelId,omitempty"` |
| 1826 |
// SerialNumber: Output only. Serial number. |
| 1827 |
SerialNumber int64 `json:"serialNumber,omitempty"` |
| 1828 |
// ForceSendFields is a list of field names (e.g. "DisplayHeightMm") to |
| 1829 |
// unconditionally include in API requests. By default, fields with empty or |
| 1830 |
// default values are omitted from API requests. See |
| 1831 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1832 |
// details. |
| 1833 |
ForceSendFields []string `json:"-"` |
| 1834 |
// NullFields is a list of field names (e.g. "DisplayHeightMm") to include in |
| 1835 |
// API requests with the JSON null value. By default, fields with empty values |
| 1836 |
// are omitted from API requests. See |
| 1837 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1838 |
NullFields []string `json:"-"` |
| 1839 |
} |
| 1840 |
|
| 1841 |
func (s GoogleChromeManagementV1DisplayDevice) MarshalJSON() ([]byte, error) { |
| 1842 |
type NoMethod GoogleChromeManagementV1DisplayDevice |
| 1843 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1844 |
} |
| 1845 |
|
| 1846 |
// GoogleChromeManagementV1DisplayInfo: Information for a display. |
| 1847 |
type GoogleChromeManagementV1DisplayInfo struct { |
| 1848 |
// DeviceId: Output only. Represents the graphics card device id. |
| 1849 |
DeviceId int64 `json:"deviceId,omitempty,string"` |
| 1850 |
// DisplayName: Output only. Display device name. |
| 1851 |
DisplayName string `json:"displayName,omitempty"` |
| 1852 |
// EdidVersion: Output only. EDID version. |
| 1853 |
EdidVersion string `json:"edidVersion,omitempty"` |
| 1854 |
// IsInternal: Output only. Indicates if display is internal or not. |
| 1855 |
IsInternal bool `json:"isInternal,omitempty"` |
| 1856 |
// RefreshRate: Output only. Refresh rate in Hz. |
| 1857 |
RefreshRate int64 `json:"refreshRate,omitempty"` |
| 1858 |
// ResolutionHeight: Output only. Resolution height in pixels. |
| 1859 |
ResolutionHeight int64 `json:"resolutionHeight,omitempty"` |
| 1860 |
// ResolutionWidth: Output only. Resolution width in pixels. |
| 1861 |
ResolutionWidth int64 `json:"resolutionWidth,omitempty"` |
| 1862 |
// SerialNumber: Output only. Serial number. |
| 1863 |
SerialNumber int64 `json:"serialNumber,omitempty"` |
| 1864 |
// ForceSendFields is a list of field names (e.g. "DeviceId") to |
| 1865 |
// unconditionally include in API requests. By default, fields with empty or |
| 1866 |
// default values are omitted from API requests. See |
| 1867 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1868 |
// details. |
| 1869 |
ForceSendFields []string `json:"-"` |
| 1870 |
// NullFields is a list of field names (e.g. "DeviceId") to include in API |
| 1871 |
// requests with the JSON null value. By default, fields with empty values are |
| 1872 |
// omitted from API requests. See |
| 1873 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1874 |
NullFields []string `json:"-"` |
| 1875 |
} |
| 1876 |
|
| 1877 |
func (s GoogleChromeManagementV1DisplayInfo) MarshalJSON() ([]byte, error) { |
| 1878 |
type NoMethod GoogleChromeManagementV1DisplayInfo |
| 1879 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1880 |
} |
| 1881 |
|
| 1882 |
// GoogleChromeManagementV1EnumeratePrintJobsResponse: Response containing a |
| 1883 |
// list of print jobs. |
| 1884 |
type GoogleChromeManagementV1EnumeratePrintJobsResponse struct { |
| 1885 |
// NextPageToken: A token, which can be used in a subsequent request to |
| 1886 |
// retrieve the next page. If this field is omitted, there are no subsequent |
| 1887 |
// pages. |
| 1888 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1889 |
// PrintJobs: List of requested print jobs. |
| 1890 |
PrintJobs []*GoogleChromeManagementV1PrintJob `json:"printJobs,omitempty"` |
| 1891 |
// TotalSize: Total number of print jobs matching request. |
| 1892 |
TotalSize int64 `json:"totalSize,omitempty,string"` |
| 1893 |
|
| 1894 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1895 |
googleapi.ServerResponse `json:"-"` |
| 1896 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 1897 |
// unconditionally include in API requests. By default, fields with empty or |
| 1898 |
// default values are omitted from API requests. See |
| 1899 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1900 |
// details. |
| 1901 |
ForceSendFields []string `json:"-"` |
| 1902 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 1903 |
// requests with the JSON null value. By default, fields with empty values are |
| 1904 |
// omitted from API requests. See |
| 1905 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1906 |
NullFields []string `json:"-"` |
| 1907 |
} |
| 1908 |
|
| 1909 |
func (s GoogleChromeManagementV1EnumeratePrintJobsResponse) MarshalJSON() ([]byte, error) { |
| 1910 |
type NoMethod GoogleChromeManagementV1EnumeratePrintJobsResponse |
| 1911 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1912 |
} |
| 1913 |
|
| 1914 |
// GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse: Response |
| 1915 |
// containing a list of devices that have requested the queried extension. |
| 1916 |
type GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse struct { |
| 1917 |
// DeviceDetails: Details of devices that have requested the queried extension. |
| 1918 |
DeviceDetails []*GoogleChromeManagementV1DeviceRequestingExtensionDetails `json:"deviceDetails,omitempty"` |
| 1919 |
// NextPageToken: Optional. Token to specify the next page in the list. Token |
| 1920 |
// expires after 1 day. |
| 1921 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1922 |
// TotalSize: Optional. Total number of devices in response. |
| 1923 |
TotalSize int64 `json:"totalSize,omitempty"` |
| 1924 |
|
| 1925 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1926 |
googleapi.ServerResponse `json:"-"` |
| 1927 |
// ForceSendFields is a list of field names (e.g. "DeviceDetails") to |
| 1928 |
// unconditionally include in API requests. By default, fields with empty or |
| 1929 |
// default values are omitted from API requests. See |
| 1930 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1931 |
// details. |
| 1932 |
ForceSendFields []string `json:"-"` |
| 1933 |
// NullFields is a list of field names (e.g. "DeviceDetails") to include in API |
| 1934 |
// requests with the JSON null value. By default, fields with empty values are |
| 1935 |
// omitted from API requests. See |
| 1936 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1937 |
NullFields []string `json:"-"` |
| 1938 |
} |
| 1939 |
|
| 1940 |
func (s GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse) MarshalJSON() ([]byte, error) { |
| 1941 |
type NoMethod GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse |
| 1942 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1943 |
} |
| 1944 |
|
| 1945 |
// GoogleChromeManagementV1FetchUsersRequestingExtensionResponse: Response |
| 1946 |
// containing a list of users that have requested the queried extension. |
| 1947 |
type GoogleChromeManagementV1FetchUsersRequestingExtensionResponse struct { |
| 1948 |
// NextPageToken: Token to specify the next page in the list. |
| 1949 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1950 |
// TotalSize: Total number of users in response. |
| 1951 |
TotalSize int64 `json:"totalSize,omitempty"` |
| 1952 |
// UserDetails: Details of users that have requested the queried extension. |
| 1953 |
UserDetails []*GoogleChromeManagementV1UserRequestingExtensionDetails `json:"userDetails,omitempty"` |
| 1954 |
|
| 1955 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1956 |
googleapi.ServerResponse `json:"-"` |
| 1957 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 1958 |
// unconditionally include in API requests. By default, fields with empty or |
| 1959 |
// default values are omitted from API requests. See |
| 1960 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1961 |
// details. |
| 1962 |
ForceSendFields []string `json:"-"` |
| 1963 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 1964 |
// requests with the JSON null value. By default, fields with empty values are |
| 1965 |
// omitted from API requests. See |
| 1966 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1967 |
NullFields []string `json:"-"` |
| 1968 |
} |
| 1969 |
|
| 1970 |
func (s GoogleChromeManagementV1FetchUsersRequestingExtensionResponse) MarshalJSON() ([]byte, error) { |
| 1971 |
type NoMethod GoogleChromeManagementV1FetchUsersRequestingExtensionResponse |
| 1972 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 1973 |
} |
| 1974 |
|
| 1975 |
// GoogleChromeManagementV1FindInstalledAppDevicesResponse: Response containing |
| 1976 |
// a list of devices with queried app installed. |
| 1977 |
type GoogleChromeManagementV1FindInstalledAppDevicesResponse struct { |
| 1978 |
// Devices: A list of devices which have the app installed. Sorted in ascending |
| 1979 |
// alphabetical order on the Device.machine field. |
| 1980 |
Devices []*GoogleChromeManagementV1Device `json:"devices,omitempty"` |
| 1981 |
// NextPageToken: Token to specify the next page of the request. |
| 1982 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 1983 |
// TotalSize: Total number of devices matching request. |
| 1984 |
TotalSize int64 `json:"totalSize,omitempty"` |
| 1985 |
|
| 1986 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 1987 |
googleapi.ServerResponse `json:"-"` |
| 1988 |
// ForceSendFields is a list of field names (e.g. "Devices") to unconditionally |
| 1989 |
// include in API requests. By default, fields with empty or default values are |
| 1990 |
// omitted from API requests. See |
| 1991 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 1992 |
// details. |
| 1993 |
ForceSendFields []string `json:"-"` |
| 1994 |
// NullFields is a list of field names (e.g. "Devices") to include in API |
| 1995 |
// requests with the JSON null value. By default, fields with empty values are |
| 1996 |
// omitted from API requests. See |
| 1997 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 1998 |
NullFields []string `json:"-"` |
| 1999 |
} |
| 2000 |
|
| 2001 |
func (s GoogleChromeManagementV1FindInstalledAppDevicesResponse) MarshalJSON() ([]byte, error) { |
| 2002 |
type NoMethod GoogleChromeManagementV1FindInstalledAppDevicesResponse |
| 2003 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2004 |
} |
| 2005 |
|
| 2006 |
// GoogleChromeManagementV1GraphicsAdapterInfo: Information of a graphics |
| 2007 |
// adapter (GPU). |
| 2008 |
type GoogleChromeManagementV1GraphicsAdapterInfo struct { |
| 2009 |
// Adapter: Output only. Adapter name. Example: Mesa DRI Intel(R) UHD Graphics |
| 2010 |
// 620 (Kabylake GT2). |
| 2011 |
Adapter string `json:"adapter,omitempty"` |
| 2012 |
// DeviceId: Output only. Represents the graphics card device id. |
| 2013 |
DeviceId int64 `json:"deviceId,omitempty,string"` |
| 2014 |
// DriverVersion: Output only. Version of the GPU driver. |
| 2015 |
DriverVersion string `json:"driverVersion,omitempty"` |
| 2016 |
// ForceSendFields is a list of field names (e.g. "Adapter") to unconditionally |
| 2017 |
// include in API requests. By default, fields with empty or default values are |
| 2018 |
// omitted from API requests. See |
| 2019 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2020 |
// details. |
| 2021 |
ForceSendFields []string `json:"-"` |
| 2022 |
// NullFields is a list of field names (e.g. "Adapter") to include in API |
| 2023 |
// requests with the JSON null value. By default, fields with empty values are |
| 2024 |
// omitted from API requests. See |
| 2025 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2026 |
NullFields []string `json:"-"` |
| 2027 |
} |
| 2028 |
|
| 2029 |
func (s GoogleChromeManagementV1GraphicsAdapterInfo) MarshalJSON() ([]byte, error) { |
| 2030 |
type NoMethod GoogleChromeManagementV1GraphicsAdapterInfo |
| 2031 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2032 |
} |
| 2033 |
|
| 2034 |
// GoogleChromeManagementV1GraphicsInfo: Information of the graphics subsystem. |
| 2035 |
// * This field provides device information, which is static and will not |
| 2036 |
// change over time. * Data for this field is controlled via policy: |
| 2037 |
// ReportDeviceGraphicsStatus |
| 2038 |
// (https://chromeenterprise.google/policies/#ReportDeviceGraphicsStatus) * |
| 2039 |
// Data Collection Frequency: Only at Upload * Default Data Reporting |
| 2040 |
// Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is |
| 2041 |
// offline, the collected data is stored locally, and will be reported when the |
| 2042 |
// device is next online: No * Reported for affiliated users only: N/A * |
| 2043 |
// Granular permission needed: TELEMETRY_API_GRAPHICS_INFO |
| 2044 |
type GoogleChromeManagementV1GraphicsInfo struct { |
| 2045 |
// AdapterInfo: Output only. Information about the graphics adapter (GPU). |
| 2046 |
AdapterInfo *GoogleChromeManagementV1GraphicsAdapterInfo `json:"adapterInfo,omitempty"` |
| 2047 |
// DisplayDevices: Output only. Information about the display(s) of the device. |
| 2048 |
DisplayDevices []*GoogleChromeManagementV1DisplayDevice `json:"displayDevices,omitempty"` |
| 2049 |
// EprivacySupported: Output only. Is ePrivacy screen supported or not. |
| 2050 |
EprivacySupported bool `json:"eprivacySupported,omitempty"` |
| 2051 |
// TouchScreenInfo: Output only. Information about the internal touch screen(s) |
| 2052 |
// of the device. |
| 2053 |
TouchScreenInfo *GoogleChromeManagementV1TouchScreenInfo `json:"touchScreenInfo,omitempty"` |
| 2054 |
// ForceSendFields is a list of field names (e.g. "AdapterInfo") to |
| 2055 |
// unconditionally include in API requests. By default, fields with empty or |
| 2056 |
// default values are omitted from API requests. See |
| 2057 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2058 |
// details. |
| 2059 |
ForceSendFields []string `json:"-"` |
| 2060 |
// NullFields is a list of field names (e.g. "AdapterInfo") to include in API |
| 2061 |
// requests with the JSON null value. By default, fields with empty values are |
| 2062 |
// omitted from API requests. See |
| 2063 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2064 |
NullFields []string `json:"-"` |
| 2065 |
} |
| 2066 |
|
| 2067 |
func (s GoogleChromeManagementV1GraphicsInfo) MarshalJSON() ([]byte, error) { |
| 2068 |
type NoMethod GoogleChromeManagementV1GraphicsInfo |
| 2069 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2070 |
} |
| 2071 |
|
| 2072 |
// GoogleChromeManagementV1GraphicsStatusReport: Information of the graphics |
| 2073 |
// subsystem. * This field is telemetry information and this will change over |
| 2074 |
// time as the device is utilized. * Data for this field is controlled via |
| 2075 |
// policy: ReportDeviceGraphicsInfo |
| 2076 |
// (https://chromeenterprise.google/policies/#ReportDeviceGraphicsInfo) * Data |
| 2077 |
// Collection Frequency: 3 hours. * Default Data Reporting Frequency: 3 hours - |
| 2078 |
// Policy Controlled: Yes * Cache: If the device is offline, the collected data |
| 2079 |
// is stored locally, and will be reported when the device is next online: No * |
| 2080 |
// Reported for affiliated users only: N/A * Granular permission needed: |
| 2081 |
// TELEMETRY_API_GRAPHICS_REPORT |
| 2082 |
type GoogleChromeManagementV1GraphicsStatusReport struct { |
| 2083 |
// Displays: Output only. Information about the displays for the device. |
| 2084 |
Displays []*GoogleChromeManagementV1DisplayInfo `json:"displays,omitempty"` |
| 2085 |
// ReportTime: Output only. Time at which the graphics data was reported. |
| 2086 |
ReportTime string `json:"reportTime,omitempty"` |
| 2087 |
// ForceSendFields is a list of field names (e.g. "Displays") 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. "Displays") 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 GoogleChromeManagementV1GraphicsStatusReport) MarshalJSON() ([]byte, error) { |
| 2101 |
type NoMethod GoogleChromeManagementV1GraphicsStatusReport |
| 2102 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2103 |
} |
| 2104 |
|
| 2105 |
// GoogleChromeManagementV1HeartbeatStatusReport: Heartbeat status report of a |
| 2106 |
// device. * Available for Kiosks * This field provides online/offline/unknown |
| 2107 |
// status of a device and will only be included if the status has changed (e.g. |
| 2108 |
// Online -> Offline) * Data for this field is controlled via policy: |
| 2109 |
// HeartbeatEnabled |
| 2110 |
// (https://chromeenterprise.google/policies/#HeartbeatEnabled) [More |
| 2111 |
// Info](https://support.google.com/chrome/a/answer/6179663#:~:text=On%20the%20C |
| 2112 |
// hrome,device%20status%20alerts) * Heartbeat Frequency: 2 mins * Note: If a |
| 2113 |
// device goes offline, it can take up to 12 minutes for the online status of |
| 2114 |
// the device to be updated * Cache: If the device is offline, the collected |
| 2115 |
// data is stored locally, and will be reported when the device is next online: |
| 2116 |
// N/A * Reported for affiliated users only: N/A * Granular permission needed: |
| 2117 |
// TELEMETRY_API_DEVICE_ACTIVITY_REPORT |
| 2118 |
type GoogleChromeManagementV1HeartbeatStatusReport struct { |
| 2119 |
// ReportTime: Timestamp of when status changed was detected |
| 2120 |
ReportTime string `json:"reportTime,omitempty"` |
| 2121 |
// State: State the device changed to |
| 2122 |
// |
| 2123 |
// Possible values: |
| 2124 |
// "STATE_UNSPECIFIED" - State not specified |
| 2125 |
// "UNKNOWN" - Device is not eligible for heartbeat monitoring |
| 2126 |
// "ONLINE" - Device is online |
| 2127 |
// "OFFLINE" - Device is offline |
| 2128 |
// "DEVICE_OUTDATED" - Device is outdated |
| 2129 |
State string `json:"state,omitempty"` |
| 2130 |
// ForceSendFields is a list of field names (e.g. "ReportTime") to |
| 2131 |
// unconditionally include in API requests. By default, fields with empty or |
| 2132 |
// default values are omitted from API requests. See |
| 2133 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2134 |
// details. |
| 2135 |
ForceSendFields []string `json:"-"` |
| 2136 |
// NullFields is a list of field names (e.g. "ReportTime") to include in API |
| 2137 |
// requests with the JSON null value. By default, fields with empty values are |
| 2138 |
// omitted from API requests. See |
| 2139 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2140 |
NullFields []string `json:"-"` |
| 2141 |
} |
| 2142 |
|
| 2143 |
func (s GoogleChromeManagementV1HeartbeatStatusReport) MarshalJSON() ([]byte, error) { |
| 2144 |
type NoMethod GoogleChromeManagementV1HeartbeatStatusReport |
| 2145 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2146 |
} |
| 2147 |
|
| 2148 |
// GoogleChromeManagementV1HttpsLatencyRoutineData: Data that describes the |
| 2149 |
// result of the HTTPS latency diagnostics routine, with the HTTPS requests |
| 2150 |
// issued to Google websites. |
| 2151 |
type GoogleChromeManagementV1HttpsLatencyRoutineData struct { |
| 2152 |
// Latency: Output only. HTTPS latency if routine succeeded or failed because |
| 2153 |
// of HIGH_LATENCY or VERY_HIGH_LATENCY. |
| 2154 |
Latency string `json:"latency,omitempty"` |
| 2155 |
// Problem: Output only. HTTPS latency routine problem if a problem occurred. |
| 2156 |
// |
| 2157 |
// Possible values: |
| 2158 |
// "HTTPS_LATENCY_PROBLEM_UNSPECIFIED" - HTTPS latency problem not specified. |
| 2159 |
// "FAILED_DNS_RESOLUTIONS" - One or more DNS resolutions resulted in a |
| 2160 |
// failure. |
| 2161 |
// "FAILED_HTTPS_REQUESTS" - One or more HTTPS requests resulted in a |
| 2162 |
// failure. |
| 2163 |
// "HIGH_LATENCY" - Average HTTPS request latency time between 500ms and |
| 2164 |
// 1000ms is high. |
| 2165 |
// "VERY_HIGH_LATENCY" - Average HTTPS request latency time greater than |
| 2166 |
// 1000ms is very high. |
| 2167 |
Problem string `json:"problem,omitempty"` |
| 2168 |
// ForceSendFields is a list of field names (e.g. "Latency") to unconditionally |
| 2169 |
// include in API requests. By default, fields with empty or default values are |
| 2170 |
// omitted from API requests. See |
| 2171 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2172 |
// details. |
| 2173 |
ForceSendFields []string `json:"-"` |
| 2174 |
// NullFields is a list of field names (e.g. "Latency") to include in API |
| 2175 |
// requests with the JSON null value. By default, fields with empty values are |
| 2176 |
// omitted from API requests. See |
| 2177 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2178 |
NullFields []string `json:"-"` |
| 2179 |
} |
| 2180 |
|
| 2181 |
func (s GoogleChromeManagementV1HttpsLatencyRoutineData) MarshalJSON() ([]byte, error) { |
| 2182 |
type NoMethod GoogleChromeManagementV1HttpsLatencyRoutineData |
| 2183 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2184 |
} |
| 2185 |
|
| 2186 |
// GoogleChromeManagementV1InstalledApp: Describes an installed app. |
| 2187 |
type GoogleChromeManagementV1InstalledApp struct { |
| 2188 |
// AppId: Output only. Unique identifier of the app. For Chrome apps and |
| 2189 |
// extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For |
| 2190 |
// Android apps, the package name (e.g. com.evernote). |
| 2191 |
AppId string `json:"appId,omitempty"` |
| 2192 |
// AppInstallType: Output only. How the app was installed. |
| 2193 |
// |
| 2194 |
// Possible values: |
| 2195 |
// "APP_INSTALL_TYPE_UNSPECIFIED" - Application install type not specified. |
| 2196 |
// "MULTIPLE" - Multiple app install types. |
| 2197 |
// "NORMAL" - Normal app install type. |
| 2198 |
// "ADMIN" - Administrator app install type. |
| 2199 |
// "DEVELOPMENT" - Development app install type. |
| 2200 |
// "SIDELOAD" - Sideloaded app install type. |
| 2201 |
// "OTHER" - Other app install type. |
| 2202 |
AppInstallType string `json:"appInstallType,omitempty"` |
| 2203 |
// AppSource: Output only. Source of the installed app. |
| 2204 |
// |
| 2205 |
// Possible values: |
| 2206 |
// "APP_SOURCE_UNSPECIFIED" - Application source not specified. |
| 2207 |
// "CHROME_WEBSTORE" - Generally for extensions and Chrome apps. |
| 2208 |
// "PLAY_STORE" - Play Store app. |
| 2209 |
AppSource string `json:"appSource,omitempty"` |
| 2210 |
// AppType: Output only. Type of the app. |
| 2211 |
// |
| 2212 |
// Possible values: |
| 2213 |
// "APP_TYPE_UNSPECIFIED" - App type not specified. |
| 2214 |
// "EXTENSION" - Chrome extension. |
| 2215 |
// "APP" - Chrome app. |
| 2216 |
// "THEME" - Chrome theme. |
| 2217 |
// "HOSTED_APP" - Chrome hosted app. |
| 2218 |
// "ANDROID_APP" - ARC++ app. |
| 2219 |
AppType string `json:"appType,omitempty"` |
| 2220 |
// BrowserDeviceCount: Output only. Count of browser devices with this app |
| 2221 |
// installed. |
| 2222 |
BrowserDeviceCount int64 `json:"browserDeviceCount,omitempty,string"` |
| 2223 |
// Description: Output only. Description of the installed app. |
| 2224 |
Description string `json:"description,omitempty"` |
| 2225 |
// Disabled: Output only. Whether the app is disabled. |
| 2226 |
Disabled bool `json:"disabled,omitempty"` |
| 2227 |
// DisplayName: Output only. Name of the installed app. |
| 2228 |
DisplayName string `json:"displayName,omitempty"` |
| 2229 |
// HomepageUri: Output only. Homepage uri of the installed app. |
| 2230 |
HomepageUri string `json:"homepageUri,omitempty"` |
| 2231 |
// OsUserCount: Output only. Count of ChromeOS users with this app installed. |
| 2232 |
OsUserCount int64 `json:"osUserCount,omitempty,string"` |
| 2233 |
// Permissions: Output only. Permissions of the installed app. |
| 2234 |
Permissions []string `json:"permissions,omitempty"` |
| 2235 |
// RiskAssessment: Output only. If available, the risk assessment data about |
| 2236 |
// this extension. |
| 2237 |
RiskAssessment *GoogleChromeManagementV1RiskAssessmentData `json:"riskAssessment,omitempty"` |
| 2238 |
// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally |
| 2239 |
// include in API requests. By default, fields with empty or default values are |
| 2240 |
// omitted from API requests. See |
| 2241 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2242 |
// details. |
| 2243 |
ForceSendFields []string `json:"-"` |
| 2244 |
// NullFields is a list of field names (e.g. "AppId") to include in API |
| 2245 |
// requests with the JSON null value. By default, fields with empty values are |
| 2246 |
// omitted from API requests. See |
| 2247 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2248 |
NullFields []string `json:"-"` |
| 2249 |
} |
| 2250 |
|
| 2251 |
func (s GoogleChromeManagementV1InstalledApp) MarshalJSON() ([]byte, error) { |
| 2252 |
type NoMethod GoogleChromeManagementV1InstalledApp |
| 2253 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2254 |
} |
| 2255 |
|
| 2256 |
// GoogleChromeManagementV1KioskAppStatusReport: Kiosk app status report of a |
| 2257 |
// device. * Available for Kiosks * This field provides the app id and version |
| 2258 |
// number running on a kiosk device and the timestamp of when the report was |
| 2259 |
// last updated * Data for this field is controlled via policy: |
| 2260 |
// ReportDeviceSessionStatus |
| 2261 |
// (https://chromeenterprise.google/policies/#ReportDeviceSessionStatus) * Data |
| 2262 |
// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 |
| 2263 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 2264 |
// collected data is stored locally, and will be reported when the device is |
| 2265 |
// next online: No * Reported for affiliated users only: N/A * Granular |
| 2266 |
// permission needed: TELEMETRY_API_APPS_REPORT |
| 2267 |
type GoogleChromeManagementV1KioskAppStatusReport struct { |
| 2268 |
// AppId: App id of kiosk app for example "mdmkkicfmmkgmpkmkdikhlbggogpicma" |
| 2269 |
AppId string `json:"appId,omitempty"` |
| 2270 |
// AppVersion: App version number of kiosk app for example "1.10.118" |
| 2271 |
AppVersion string `json:"appVersion,omitempty"` |
| 2272 |
// ReportTime: Timestamp of when report was collected |
| 2273 |
ReportTime string `json:"reportTime,omitempty"` |
| 2274 |
// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally |
| 2275 |
// include in API requests. By default, fields with empty or default values are |
| 2276 |
// omitted from API requests. See |
| 2277 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2278 |
// details. |
| 2279 |
ForceSendFields []string `json:"-"` |
| 2280 |
// NullFields is a list of field names (e.g. "AppId") to include in API |
| 2281 |
// requests with the JSON null value. By default, fields with empty values are |
| 2282 |
// omitted from API requests. See |
| 2283 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2284 |
NullFields []string `json:"-"` |
| 2285 |
} |
| 2286 |
|
| 2287 |
func (s GoogleChromeManagementV1KioskAppStatusReport) MarshalJSON() ([]byte, error) { |
| 2288 |
type NoMethod GoogleChromeManagementV1KioskAppStatusReport |
| 2289 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2290 |
} |
| 2291 |
|
| 2292 |
type GoogleChromeManagementV1ListTelemetryDevicesResponse struct { |
| 2293 |
// Devices: Telemetry devices returned in the response. |
| 2294 |
Devices []*GoogleChromeManagementV1TelemetryDevice `json:"devices,omitempty"` |
| 2295 |
// NextPageToken: Token to specify next page in the list. |
| 2296 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 2297 |
|
| 2298 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 2299 |
googleapi.ServerResponse `json:"-"` |
| 2300 |
// ForceSendFields is a list of field names (e.g. "Devices") to unconditionally |
| 2301 |
// include in API requests. By default, fields with empty or default values are |
| 2302 |
// omitted from API requests. See |
| 2303 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2304 |
// details. |
| 2305 |
ForceSendFields []string `json:"-"` |
| 2306 |
// NullFields is a list of field names (e.g. "Devices") to include in API |
| 2307 |
// requests with the JSON null value. By default, fields with empty values are |
| 2308 |
// omitted from API requests. See |
| 2309 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2310 |
NullFields []string `json:"-"` |
| 2311 |
} |
| 2312 |
|
| 2313 |
func (s GoogleChromeManagementV1ListTelemetryDevicesResponse) MarshalJSON() ([]byte, error) { |
| 2314 |
type NoMethod GoogleChromeManagementV1ListTelemetryDevicesResponse |
| 2315 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2316 |
} |
| 2317 |
|
| 2318 |
// GoogleChromeManagementV1ListTelemetryEventsResponse: Response message for |
| 2319 |
// listing telemetry events for a customer. |
| 2320 |
type GoogleChromeManagementV1ListTelemetryEventsResponse struct { |
| 2321 |
// NextPageToken: Token to specify next page in the list. |
| 2322 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 2323 |
// TelemetryEvents: Telemetry events returned in the response. |
| 2324 |
TelemetryEvents []*GoogleChromeManagementV1TelemetryEvent `json:"telemetryEvents,omitempty"` |
| 2325 |
|
| 2326 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 2327 |
googleapi.ServerResponse `json:"-"` |
| 2328 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 2329 |
// unconditionally include in API requests. By default, fields with empty or |
| 2330 |
// default values are omitted from API requests. See |
| 2331 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2332 |
// details. |
| 2333 |
ForceSendFields []string `json:"-"` |
| 2334 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 2335 |
// requests with the JSON null value. By default, fields with empty values are |
| 2336 |
// omitted from API requests. See |
| 2337 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2338 |
NullFields []string `json:"-"` |
| 2339 |
} |
| 2340 |
|
| 2341 |
func (s GoogleChromeManagementV1ListTelemetryEventsResponse) MarshalJSON() ([]byte, error) { |
| 2342 |
type NoMethod GoogleChromeManagementV1ListTelemetryEventsResponse |
| 2343 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2344 |
} |
| 2345 |
|
| 2346 |
// GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse: Response |
| 2347 |
// message for listing notification configs for a customer. |
| 2348 |
type GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse struct { |
| 2349 |
// NextPageToken: A token, which can be sent as `page_token` to retrieve the |
| 2350 |
// next page. If this field is omitted, there are no subsequent pages. |
| 2351 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 2352 |
// TelemetryNotificationConfigs: The telemetry notification configs from the |
| 2353 |
// specified customer. |
| 2354 |
TelemetryNotificationConfigs []*GoogleChromeManagementV1TelemetryNotificationConfig `json:"telemetryNotificationConfigs,omitempty"` |
| 2355 |
|
| 2356 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 2357 |
googleapi.ServerResponse `json:"-"` |
| 2358 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 2359 |
// unconditionally include in API requests. By default, fields with empty or |
| 2360 |
// default values are omitted from API requests. See |
| 2361 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2362 |
// details. |
| 2363 |
ForceSendFields []string `json:"-"` |
| 2364 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 2365 |
// requests with the JSON null value. By default, fields with empty values are |
| 2366 |
// omitted from API requests. See |
| 2367 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2368 |
NullFields []string `json:"-"` |
| 2369 |
} |
| 2370 |
|
| 2371 |
func (s GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse) MarshalJSON() ([]byte, error) { |
| 2372 |
type NoMethod GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse |
| 2373 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2374 |
} |
| 2375 |
|
| 2376 |
// GoogleChromeManagementV1ListTelemetryUsersResponse: Response message for |
| 2377 |
// listing telemetry users for a customer. |
| 2378 |
type GoogleChromeManagementV1ListTelemetryUsersResponse struct { |
| 2379 |
// NextPageToken: Token to specify next page in the list. |
| 2380 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 2381 |
// TelemetryUsers: Telemetry users returned in the response. |
| 2382 |
TelemetryUsers []*GoogleChromeManagementV1TelemetryUser `json:"telemetryUsers,omitempty"` |
| 2383 |
|
| 2384 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 2385 |
googleapi.ServerResponse `json:"-"` |
| 2386 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 2387 |
// unconditionally include in API requests. By default, fields with empty or |
| 2388 |
// default values are omitted from API requests. See |
| 2389 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2390 |
// details. |
| 2391 |
ForceSendFields []string `json:"-"` |
| 2392 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 2393 |
// requests with the JSON null value. By default, fields with empty values are |
| 2394 |
// omitted from API requests. See |
| 2395 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2396 |
NullFields []string `json:"-"` |
| 2397 |
} |
| 2398 |
|
| 2399 |
func (s GoogleChromeManagementV1ListTelemetryUsersResponse) MarshalJSON() ([]byte, error) { |
| 2400 |
type NoMethod GoogleChromeManagementV1ListTelemetryUsersResponse |
| 2401 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2402 |
} |
| 2403 |
|
| 2404 |
// GoogleChromeManagementV1MemoryInfo: Memory information of a device. * This |
| 2405 |
// field has both telemetry and device information: - `totalRamBytes` - Device |
| 2406 |
// information - `availableRamBytes` - Telemetry information - |
| 2407 |
// `totalMemoryEncryption` - Device information * Data for this field is |
| 2408 |
// controlled via policy: ReportDeviceMemoryInfo |
| 2409 |
// (https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data |
| 2410 |
// Collection Frequency: - `totalRamBytes` - Only at upload - |
| 2411 |
// `availableRamBytes` - Every 10 minutes - `totalMemoryEncryption` - at device |
| 2412 |
// startup * Default Data Reporting Frequency: - `totalRamBytes` - 3 hours - |
| 2413 |
// `availableRamBytes` - 3 hours - `totalMemoryEncryption` - at device startup |
| 2414 |
// - Policy Controlled: Yes * Cache: If the device is offline, the collected |
| 2415 |
// data is stored locally, and will be reported when the device is next online: |
| 2416 |
// only for `totalMemoryEncryption` * Reported for affiliated users only: N/A * |
| 2417 |
// Granular permission needed: TELEMETRY_API_MEMORY_INFO |
| 2418 |
type GoogleChromeManagementV1MemoryInfo struct { |
| 2419 |
// AvailableRamBytes: Output only. Amount of available RAM in bytes. |
| 2420 |
AvailableRamBytes int64 `json:"availableRamBytes,omitempty,string"` |
| 2421 |
// TotalMemoryEncryption: Output only. Total memory encryption info for the |
| 2422 |
// device. |
| 2423 |
TotalMemoryEncryption *GoogleChromeManagementV1TotalMemoryEncryptionInfo `json:"totalMemoryEncryption,omitempty"` |
| 2424 |
// TotalRamBytes: Output only. Total RAM in bytes. |
| 2425 |
TotalRamBytes int64 `json:"totalRamBytes,omitempty,string"` |
| 2426 |
// ForceSendFields is a list of field names (e.g. "AvailableRamBytes") to |
| 2427 |
// unconditionally include in API requests. By default, fields with empty or |
| 2428 |
// default values are omitted from API requests. See |
| 2429 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2430 |
// details. |
| 2431 |
ForceSendFields []string `json:"-"` |
| 2432 |
// NullFields is a list of field names (e.g. "AvailableRamBytes") to include in |
| 2433 |
// API requests with the JSON null value. By default, fields with empty values |
| 2434 |
// are omitted from API requests. See |
| 2435 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2436 |
NullFields []string `json:"-"` |
| 2437 |
} |
| 2438 |
|
| 2439 |
func (s GoogleChromeManagementV1MemoryInfo) MarshalJSON() ([]byte, error) { |
| 2440 |
type NoMethod GoogleChromeManagementV1MemoryInfo |
| 2441 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2442 |
} |
| 2443 |
|
| 2444 |
// GoogleChromeManagementV1MemoryStatusReport: Contains samples of memory |
| 2445 |
// status reports. * This field is telemetry information and this will change |
| 2446 |
// over time as the device is utilized. * Data for this field is controlled via |
| 2447 |
// policy: ReportDeviceMemoryInfo |
| 2448 |
// (https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data |
| 2449 |
// Collection Frequency: Only at upload, SystemRamFreeByes is collected every |
| 2450 |
// 10 minutes * Default Data Reporting Frequency: Every 3 hours - Policy |
| 2451 |
// Controlled: Yes * Cache: If the device is offline, the collected data is |
| 2452 |
// stored locally, and will be reported when the device is next online: No * |
| 2453 |
// Reported for affiliated users only: N/A * Granular permission needed: |
| 2454 |
// TELEMETRY_API_MEMORY_REPORT |
| 2455 |
type GoogleChromeManagementV1MemoryStatusReport struct { |
| 2456 |
// PageFaults: Output only. Number of page faults during this collection |
| 2457 |
PageFaults int64 `json:"pageFaults,omitempty"` |
| 2458 |
// ReportTime: Output only. The timestamp in milliseconds representing time at |
| 2459 |
// which this report was sampled. |
| 2460 |
ReportTime string `json:"reportTime,omitempty"` |
| 2461 |
// SampleFrequency: Output only. Frequency the report is sampled. |
| 2462 |
SampleFrequency string `json:"sampleFrequency,omitempty"` |
| 2463 |
// SystemRamFreeBytes: Output only. Amount of free RAM in bytes (unreliable due |
| 2464 |
// to Garbage Collection). |
| 2465 |
SystemRamFreeBytes int64 `json:"systemRamFreeBytes,omitempty,string"` |
| 2466 |
// ForceSendFields is a list of field names (e.g. "PageFaults") to |
| 2467 |
// unconditionally include in API requests. By default, fields with empty or |
| 2468 |
// default values are omitted from API requests. See |
| 2469 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2470 |
// details. |
| 2471 |
ForceSendFields []string `json:"-"` |
| 2472 |
// NullFields is a list of field names (e.g. "PageFaults") to include in API |
| 2473 |
// requests with the JSON null value. By default, fields with empty values are |
| 2474 |
// omitted from API requests. See |
| 2475 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2476 |
NullFields []string `json:"-"` |
| 2477 |
} |
| 2478 |
|
| 2479 |
func (s GoogleChromeManagementV1MemoryStatusReport) MarshalJSON() ([]byte, error) { |
| 2480 |
type NoMethod GoogleChromeManagementV1MemoryStatusReport |
| 2481 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2482 |
} |
| 2483 |
|
| 2484 |
// GoogleChromeManagementV1NetworkBandwidthReport: Network bandwidth report. * |
| 2485 |
// Granular permission needed: TELEMETRY_API_NETWORK_REPORT |
| 2486 |
type GoogleChromeManagementV1NetworkBandwidthReport struct { |
| 2487 |
// DownloadSpeedKbps: Output only. Download speed in kilobits per second. |
| 2488 |
DownloadSpeedKbps int64 `json:"downloadSpeedKbps,omitempty,string"` |
| 2489 |
// ReportTime: Output only. Timestamp of when the report was collected. |
| 2490 |
ReportTime string `json:"reportTime,omitempty"` |
| 2491 |
// ForceSendFields is a list of field names (e.g. "DownloadSpeedKbps") to |
| 2492 |
// unconditionally include in API requests. By default, fields with empty or |
| 2493 |
// default values are omitted from API requests. See |
| 2494 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2495 |
// details. |
| 2496 |
ForceSendFields []string `json:"-"` |
| 2497 |
// NullFields is a list of field names (e.g. "DownloadSpeedKbps") to include in |
| 2498 |
// API requests with the JSON null value. By default, fields with empty values |
| 2499 |
// are omitted from API requests. See |
| 2500 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2501 |
NullFields []string `json:"-"` |
| 2502 |
} |
| 2503 |
|
| 2504 |
func (s GoogleChromeManagementV1NetworkBandwidthReport) MarshalJSON() ([]byte, error) { |
| 2505 |
type NoMethod GoogleChromeManagementV1NetworkBandwidthReport |
| 2506 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2507 |
} |
| 2508 |
|
| 2509 |
// GoogleChromeManagementV1NetworkDevice: Details about the network device. * |
| 2510 |
// This field provides device information, which is static and will not change |
| 2511 |
// over time. * Data for this field is controlled via policy: |
| 2512 |
// ReportNetworkDeviceConfiguration |
| 2513 |
// (https://chromeenterprise.google/policies/#ReportNetworkDeviceConfiguration) |
| 2514 |
// * Data Collection Frequency: At device startup * Default Data Reporting |
| 2515 |
// Frequency: At device startup - Policy Controlled: Yes * Cache: If the device |
| 2516 |
// is offline, the collected data is stored locally, and will be reported when |
| 2517 |
// the device is next online: Yes * Reported for affiliated users only: N/A |
| 2518 |
type GoogleChromeManagementV1NetworkDevice struct { |
| 2519 |
// Iccid: Output only. The integrated circuit card ID associated with the |
| 2520 |
// device's sim card. |
| 2521 |
Iccid string `json:"iccid,omitempty"` |
| 2522 |
// Imei: Output only. IMEI (if applicable) of the corresponding network device. |
| 2523 |
Imei string `json:"imei,omitempty"` |
| 2524 |
// MacAddress: Output only. MAC address (if applicable) of the corresponding |
| 2525 |
// network device. |
| 2526 |
MacAddress string `json:"macAddress,omitempty"` |
| 2527 |
// Mdn: Output only. The mobile directory number associated with the device's |
| 2528 |
// sim card. |
| 2529 |
Mdn string `json:"mdn,omitempty"` |
| 2530 |
// Meid: Output only. MEID (if applicable) of the corresponding network device. |
| 2531 |
Meid string `json:"meid,omitempty"` |
| 2532 |
// Type: Output only. Network device type. |
| 2533 |
// |
| 2534 |
// Possible values: |
| 2535 |
// "NETWORK_DEVICE_TYPE_UNSPECIFIED" - Network device type not specified. |
| 2536 |
// "CELLULAR_DEVICE" - Cellular device. |
| 2537 |
// "ETHERNET_DEVICE" - Ethernet device. |
| 2538 |
// "WIFI_DEVICE" - Wifi device. |
| 2539 |
Type string `json:"type,omitempty"` |
| 2540 |
// ForceSendFields is a list of field names (e.g. "Iccid") to unconditionally |
| 2541 |
// include in API requests. By default, fields with empty or default values are |
| 2542 |
// omitted from API requests. See |
| 2543 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2544 |
// details. |
| 2545 |
ForceSendFields []string `json:"-"` |
| 2546 |
// NullFields is a list of field names (e.g. "Iccid") to include in API |
| 2547 |
// requests with the JSON null value. By default, fields with empty values are |
| 2548 |
// omitted from API requests. See |
| 2549 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2550 |
NullFields []string `json:"-"` |
| 2551 |
} |
| 2552 |
|
| 2553 |
func (s GoogleChromeManagementV1NetworkDevice) MarshalJSON() ([]byte, error) { |
| 2554 |
type NoMethod GoogleChromeManagementV1NetworkDevice |
| 2555 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2556 |
} |
| 2557 |
|
| 2558 |
// GoogleChromeManagementV1NetworkDiagnosticsReport: Network testing results to |
| 2559 |
// determine the health of the device's network connection, for example whether |
| 2560 |
// the HTTPS latency is high or normal. * Granular permission needed: |
| 2561 |
// TELEMETRY_API_NETWORK_REPORT |
| 2562 |
type GoogleChromeManagementV1NetworkDiagnosticsReport struct { |
| 2563 |
// HttpsLatencyData: Output only. HTTPS latency test data. |
| 2564 |
HttpsLatencyData *GoogleChromeManagementV1HttpsLatencyRoutineData `json:"httpsLatencyData,omitempty"` |
| 2565 |
// ReportTime: Output only. Timestamp of when the diagnostics were collected. |
| 2566 |
ReportTime string `json:"reportTime,omitempty"` |
| 2567 |
// ForceSendFields is a list of field names (e.g. "HttpsLatencyData") to |
| 2568 |
// unconditionally include in API requests. By default, fields with empty or |
| 2569 |
// default values are omitted from API requests. See |
| 2570 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2571 |
// details. |
| 2572 |
ForceSendFields []string `json:"-"` |
| 2573 |
// NullFields is a list of field names (e.g. "HttpsLatencyData") to include in |
| 2574 |
// API requests with the JSON null value. By default, fields with empty values |
| 2575 |
// are omitted from API requests. See |
| 2576 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2577 |
NullFields []string `json:"-"` |
| 2578 |
} |
| 2579 |
|
| 2580 |
func (s GoogleChromeManagementV1NetworkDiagnosticsReport) MarshalJSON() ([]byte, error) { |
| 2581 |
type NoMethod GoogleChromeManagementV1NetworkDiagnosticsReport |
| 2582 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2583 |
} |
| 2584 |
|
| 2585 |
// GoogleChromeManagementV1NetworkInfo: Network device information. * This |
| 2586 |
// field provides device information, which is static and will not change over |
| 2587 |
// time. * Data for this field is controlled via policy: |
| 2588 |
// ReportNetworkDeviceConfiguration |
| 2589 |
// (https://chromeenterprise.google/policies/#ReportNetworkDeviceConfiguration) |
| 2590 |
// * Data Collection Frequency: At device startup * Default Data Reporting |
| 2591 |
// Frequency: At device startup - Policy Controlled: Yes * Cache: If the device |
| 2592 |
// is offline, the collected data is stored locally, and will be reported when |
| 2593 |
// the device is next online: Yes * Reported for affiliated users only: N/A * |
| 2594 |
// Granular permission needed: TELEMETRY_API_NETWORK_INFO |
| 2595 |
type GoogleChromeManagementV1NetworkInfo struct { |
| 2596 |
// NetworkDevices: Output only. List of network devices. |
| 2597 |
NetworkDevices []*GoogleChromeManagementV1NetworkDevice `json:"networkDevices,omitempty"` |
| 2598 |
// ForceSendFields is a list of field names (e.g. "NetworkDevices") to |
| 2599 |
// unconditionally include in API requests. By default, fields with empty or |
| 2600 |
// default values are omitted from API requests. See |
| 2601 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2602 |
// details. |
| 2603 |
ForceSendFields []string `json:"-"` |
| 2604 |
// NullFields is a list of field names (e.g. "NetworkDevices") to include in |
| 2605 |
// API requests with the JSON null value. By default, fields with empty values |
| 2606 |
// are omitted from API requests. See |
| 2607 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2608 |
NullFields []string `json:"-"` |
| 2609 |
} |
| 2610 |
|
| 2611 |
func (s GoogleChromeManagementV1NetworkInfo) MarshalJSON() ([]byte, error) { |
| 2612 |
type NoMethod GoogleChromeManagementV1NetworkInfo |
| 2613 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2614 |
} |
| 2615 |
|
| 2616 |
// GoogleChromeManagementV1NetworkStatusReport: State of visible/configured |
| 2617 |
// networks. * This field is telemetry information and this will change over |
| 2618 |
// time as the device is utilized. * Data for this field is controlled via |
| 2619 |
// policy: ReportNetworkStatus |
| 2620 |
// (https://chromeenterprise.google/policies/#ReportNetworkStatus) * Data |
| 2621 |
// Collection Frequency: 60 minutes * Default Data Reporting Frequency: 3 hours |
| 2622 |
// - Policy Controlled: Yes * Cache: If the device is offline, the collected |
| 2623 |
// data is stored locally, and will be reported when the device is next online: |
| 2624 |
// Yes * Reported for affiliated users only: Yes * Granular permission needed: |
| 2625 |
// TELEMETRY_API_NETWORK_REPORT |
| 2626 |
type GoogleChromeManagementV1NetworkStatusReport struct { |
| 2627 |
// ConnectionState: Output only. Current connection state of the network. |
| 2628 |
// |
| 2629 |
// Possible values: |
| 2630 |
// "NETWORK_CONNECTION_STATE_UNSPECIFIED" - Network connection state |
| 2631 |
// unspecified. |
| 2632 |
// "ONLINE" - The network is connected and internet connectivity is |
| 2633 |
// available. |
| 2634 |
// "CONNECTED" - The network is connected and not in a detected portal state, |
| 2635 |
// but internet connectivity may not be available. |
| 2636 |
// "PORTAL" - The network is connected but a portal state was detected. |
| 2637 |
// Internet connectivity may be limited. |
| 2638 |
// "CONNECTING" - The network is in the process of connecting. |
| 2639 |
// "NOT_CONNECTED" - The network is not connected. |
| 2640 |
ConnectionState string `json:"connectionState,omitempty"` |
| 2641 |
// ConnectionType: Output only. Network connection type. |
| 2642 |
// |
| 2643 |
// Possible values: |
| 2644 |
// "NETWORK_TYPE_UNSPECIFIED" - Network connection type unspecified |
| 2645 |
// "CELLULAR" - Cellular network connection. |
| 2646 |
// "ETHERNET" - Ethernet network connection. |
| 2647 |
// "TETHER" - Tether network connection. |
| 2648 |
// "VPN" - VPN network connection. |
| 2649 |
// "WIFI" - Wifi network connection. |
| 2650 |
ConnectionType string `json:"connectionType,omitempty"` |
| 2651 |
// EncryptionOn: Output only. Whether the wifi encryption key is turned off. |
| 2652 |
EncryptionOn bool `json:"encryptionOn,omitempty"` |
| 2653 |
// GatewayIpAddress: Output only. Gateway IP address. |
| 2654 |
GatewayIpAddress string `json:"gatewayIpAddress,omitempty"` |
| 2655 |
// GatewayIpv6Address: Output only. The gateway IPv6 for this interface, if |
| 2656 |
// detected |
| 2657 |
GatewayIpv6Address string `json:"gatewayIpv6Address,omitempty"` |
| 2658 |
// Guid: Output only. Network connection guid. |
| 2659 |
Guid string `json:"guid,omitempty"` |
| 2660 |
// Ipv6Address: Output only. IPv6 addresses assigned to this network, if any. |
| 2661 |
// Each address is a string in standard IPv6 text representation (e.g., |
| 2662 |
// "2001:db8::1"). |
| 2663 |
Ipv6Address []string `json:"ipv6Address,omitempty"` |
| 2664 |
// LanIpAddress: Output only. LAN IP address. |
| 2665 |
LanIpAddress string `json:"lanIpAddress,omitempty"` |
| 2666 |
// LinkDownSpeedKbps: Output only. The maximum downstream bandwidth in Kilobits |
| 2667 |
// per second (Kbps), if reported by the network interface or connection. |
| 2668 |
LinkDownSpeedKbps int64 `json:"linkDownSpeedKbps,omitempty,string"` |
| 2669 |
// Metered: Output only. Whether the network was detected as metered. |
| 2670 |
Metered bool `json:"metered,omitempty"` |
| 2671 |
// ReceivingBitRateMbps: Output only. Receiving bit rate measured in Megabits |
| 2672 |
// per second. |
| 2673 |
ReceivingBitRateMbps int64 `json:"receivingBitRateMbps,omitempty,string"` |
| 2674 |
// ReportTime: Output only. Time at which the network state was reported. |
| 2675 |
ReportTime string `json:"reportTime,omitempty"` |
| 2676 |
// SampleFrequency: Output only. Frequency the report is sampled. |
| 2677 |
SampleFrequency string `json:"sampleFrequency,omitempty"` |
| 2678 |
// SignalStrengthDbm: Output only. Signal strength for wireless networks |
| 2679 |
// measured in decibels. |
| 2680 |
SignalStrengthDbm int64 `json:"signalStrengthDbm,omitempty"` |
| 2681 |
// TransmissionBitRateMbps: Output only. Transmission bit rate measured in |
| 2682 |
// Megabits per second. |
| 2683 |
TransmissionBitRateMbps int64 `json:"transmissionBitRateMbps,omitempty,string"` |
| 2684 |
// TransmissionPowerDbm: Output only. Transmission power measured in decibels. |
| 2685 |
TransmissionPowerDbm int64 `json:"transmissionPowerDbm,omitempty"` |
| 2686 |
// WifiLinkQuality: Output only. Wifi link quality. Value ranges from [0, 70]. |
| 2687 |
// 0 indicates no signal and 70 indicates a strong signal. |
| 2688 |
WifiLinkQuality int64 `json:"wifiLinkQuality,omitempty,string"` |
| 2689 |
// WifiPowerManagementEnabled: Output only. Wifi power management enabled |
| 2690 |
WifiPowerManagementEnabled bool `json:"wifiPowerManagementEnabled,omitempty"` |
| 2691 |
// ForceSendFields is a list of field names (e.g. "ConnectionState") to |
| 2692 |
// unconditionally include in API requests. By default, fields with empty or |
| 2693 |
// default values are omitted from API requests. See |
| 2694 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2695 |
// details. |
| 2696 |
ForceSendFields []string `json:"-"` |
| 2697 |
// NullFields is a list of field names (e.g. "ConnectionState") to include in |
| 2698 |
// API requests with the JSON null value. By default, fields with empty values |
| 2699 |
// are omitted from API requests. See |
| 2700 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2701 |
NullFields []string `json:"-"` |
| 2702 |
} |
| 2703 |
|
| 2704 |
func (s GoogleChromeManagementV1NetworkStatusReport) MarshalJSON() ([]byte, error) { |
| 2705 |
type NoMethod GoogleChromeManagementV1NetworkStatusReport |
| 2706 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2707 |
} |
| 2708 |
|
| 2709 |
// GoogleChromeManagementV1OsUpdateStatus: Contains information regarding the |
| 2710 |
// current OS update status. * This field is telemetry information and this |
| 2711 |
// will change over time as the device is utilized. * Data for this field is |
| 2712 |
// controlled via policy: ReportDeviceOsUpdateStatus |
| 2713 |
// (https://chromeenterprise.google/policies/#ReportDeviceOsUpdateStatus) * |
| 2714 |
// Data Collection Frequency: Only at Upload * Default Data Reporting |
| 2715 |
// Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is |
| 2716 |
// offline, the collected data is stored locally, and will be reported when the |
| 2717 |
// device is next online: No * Reported for affiliated users only: N/A * |
| 2718 |
// Granular permission needed: TELEMETRY_API_OS_REPORT |
| 2719 |
type GoogleChromeManagementV1OsUpdateStatus struct { |
| 2720 |
// LastRebootTime: Output only. Timestamp of the last reboot. |
| 2721 |
LastRebootTime string `json:"lastRebootTime,omitempty"` |
| 2722 |
// LastUpdateCheckTime: Output only. Timestamp of the last update check. |
| 2723 |
LastUpdateCheckTime string `json:"lastUpdateCheckTime,omitempty"` |
| 2724 |
// LastUpdateTime: Output only. Timestamp of the last successful update. |
| 2725 |
LastUpdateTime string `json:"lastUpdateTime,omitempty"` |
| 2726 |
// NewPlatformVersion: Output only. New platform version of the os image being |
| 2727 |
// downloaded and applied. It is only set when update status is |
| 2728 |
// OS_IMAGE_DOWNLOAD_IN_PROGRESS or OS_UPDATE_NEED_REBOOT. Note this could be a |
| 2729 |
// dummy "0.0.0.0" for OS_UPDATE_NEED_REBOOT status for some edge cases, e.g. |
| 2730 |
// update engine is restarted without a reboot. |
| 2731 |
NewPlatformVersion string `json:"newPlatformVersion,omitempty"` |
| 2732 |
// NewRequestedPlatformVersion: Output only. New requested platform version |
| 2733 |
// from the pending updated kiosk app. |
| 2734 |
NewRequestedPlatformVersion string `json:"newRequestedPlatformVersion,omitempty"` |
| 2735 |
// UpdateState: Output only. Current state of the os update. |
| 2736 |
// |
| 2737 |
// Possible values: |
| 2738 |
// "UPDATE_STATE_UNSPECIFIED" - State unspecified. |
| 2739 |
// "OS_IMAGE_DOWNLOAD_NOT_STARTED" - OS has not started downloading. |
| 2740 |
// "OS_IMAGE_DOWNLOAD_IN_PROGRESS" - OS has started download on device. |
| 2741 |
// "OS_UPDATE_NEED_REBOOT" - Device needs reboot to finish upload. |
| 2742 |
UpdateState string `json:"updateState,omitempty"` |
| 2743 |
// ForceSendFields is a list of field names (e.g. "LastRebootTime") to |
| 2744 |
// unconditionally include in API requests. By default, fields with empty or |
| 2745 |
// default values are omitted from API requests. See |
| 2746 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2747 |
// details. |
| 2748 |
ForceSendFields []string `json:"-"` |
| 2749 |
// NullFields is a list of field names (e.g. "LastRebootTime") to include in |
| 2750 |
// API requests with the JSON null value. By default, fields with empty values |
| 2751 |
// are omitted from API requests. See |
| 2752 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2753 |
NullFields []string `json:"-"` |
| 2754 |
} |
| 2755 |
|
| 2756 |
func (s GoogleChromeManagementV1OsUpdateStatus) MarshalJSON() ([]byte, error) { |
| 2757 |
type NoMethod GoogleChromeManagementV1OsUpdateStatus |
| 2758 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2759 |
} |
| 2760 |
|
| 2761 |
// GoogleChromeManagementV1PeripheralsReport: Peripherals report. * Granular |
| 2762 |
// permission needed: TELEMETRY_API_PERIPHERALS_REPORT |
| 2763 |
type GoogleChromeManagementV1PeripheralsReport struct { |
| 2764 |
// ReportTime: Output only. Timestamp of when the report was collected. |
| 2765 |
ReportTime string `json:"reportTime,omitempty"` |
| 2766 |
// UsbPeripheralReport: Reports of all usb connected devices. |
| 2767 |
UsbPeripheralReport []*GoogleChromeManagementV1UsbPeripheralReport `json:"usbPeripheralReport,omitempty"` |
| 2768 |
// ForceSendFields is a list of field names (e.g. "ReportTime") to |
| 2769 |
// unconditionally include in API requests. By default, fields with empty or |
| 2770 |
// default values are omitted from API requests. See |
| 2771 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2772 |
// details. |
| 2773 |
ForceSendFields []string `json:"-"` |
| 2774 |
// NullFields is a list of field names (e.g. "ReportTime") to include in API |
| 2775 |
// requests with the JSON null value. By default, fields with empty values are |
| 2776 |
// omitted from API requests. See |
| 2777 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2778 |
NullFields []string `json:"-"` |
| 2779 |
} |
| 2780 |
|
| 2781 |
func (s GoogleChromeManagementV1PeripheralsReport) MarshalJSON() ([]byte, error) { |
| 2782 |
type NoMethod GoogleChromeManagementV1PeripheralsReport |
| 2783 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2784 |
} |
| 2785 |
|
| 2786 |
// GoogleChromeManagementV1PrintJob: Represents a request to print a document |
| 2787 |
// that has been submitted to a printer. |
| 2788 |
type GoogleChromeManagementV1PrintJob struct { |
| 2789 |
// ColorMode: Color mode. |
| 2790 |
// |
| 2791 |
// Possible values: |
| 2792 |
// "COLOR_MODE_UNSPECIFIED" - Unspecified. |
| 2793 |
// "BLACK_AND_WHITE" - Black and white. |
| 2794 |
// "COLOR" - Color. |
| 2795 |
ColorMode string `json:"colorMode,omitempty"` |
| 2796 |
// CompleteTime: Print job completion timestamp. |
| 2797 |
CompleteTime string `json:"completeTime,omitempty"` |
| 2798 |
// CopyCount: Number of copies. |
| 2799 |
CopyCount int64 `json:"copyCount,omitempty"` |
| 2800 |
// CreateTime: Print job creation timestamp. |
| 2801 |
CreateTime string `json:"createTime,omitempty"` |
| 2802 |
// DocumentPageCount: Number of pages in the document. |
| 2803 |
DocumentPageCount int64 `json:"documentPageCount,omitempty"` |
| 2804 |
// DuplexMode: Duplex mode. |
| 2805 |
// |
| 2806 |
// Possible values: |
| 2807 |
// "DUPLEX_MODE_UNSPECIFIED" - Unspecified. |
| 2808 |
// "ONE_SIDED" - One-sided. |
| 2809 |
// "TWO_SIDED_LONG_EDGE" - Two-sided flipping over long edge. |
| 2810 |
// "TWO_SIDED_SHORT_EDGE" - Two-sided flipping over short edge. |
| 2811 |
DuplexMode string `json:"duplexMode,omitempty"` |
| 2812 |
// Id: Unique ID of the print job. |
| 2813 |
Id string `json:"id,omitempty"` |
| 2814 |
// Printer: Name of the printer used for printing. |
| 2815 |
Printer string `json:"printer,omitempty"` |
| 2816 |
// PrinterId: API ID of the printer used for printing. |
| 2817 |
PrinterId string `json:"printerId,omitempty"` |
| 2818 |
// State: The final state of the job. |
| 2819 |
// |
| 2820 |
// Possible values: |
| 2821 |
// "STATE_UNSPECIFIED" - Print job is in an unspecified state. |
| 2822 |
// "PRINTED" - The document was successfully printed. |
| 2823 |
// "CANCELLED" - Print job was cancelled. |
| 2824 |
// "FAILED" - Print job failed. |
| 2825 |
State string `json:"state,omitempty"` |
| 2826 |
// Title: The title of the document. |
| 2827 |
Title string `json:"title,omitempty"` |
| 2828 |
// UserEmail: The primary e-mail address of the user who submitted the print |
| 2829 |
// job. |
| 2830 |
UserEmail string `json:"userEmail,omitempty"` |
| 2831 |
// UserId: The unique Directory API ID of the user who submitted the print job. |
| 2832 |
UserId string `json:"userId,omitempty"` |
| 2833 |
// ForceSendFields is a list of field names (e.g. "ColorMode") to |
| 2834 |
// unconditionally include in API requests. By default, fields with empty or |
| 2835 |
// default values are omitted from API requests. See |
| 2836 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2837 |
// details. |
| 2838 |
ForceSendFields []string `json:"-"` |
| 2839 |
// NullFields is a list of field names (e.g. "ColorMode") to include in API |
| 2840 |
// requests with the JSON null value. By default, fields with empty values are |
| 2841 |
// omitted from API requests. See |
| 2842 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2843 |
NullFields []string `json:"-"` |
| 2844 |
} |
| 2845 |
|
| 2846 |
func (s GoogleChromeManagementV1PrintJob) MarshalJSON() ([]byte, error) { |
| 2847 |
type NoMethod GoogleChromeManagementV1PrintJob |
| 2848 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2849 |
} |
| 2850 |
|
| 2851 |
// GoogleChromeManagementV1PrinterReport: Report for CountPrintJobsByPrinter, |
| 2852 |
// contains statistics on printer usage. Contains the total number of print |
| 2853 |
// jobs initiated with this printer, the number of users and the number of |
| 2854 |
// devices that have initiated at least one print job with this printer. |
| 2855 |
type GoogleChromeManagementV1PrinterReport struct { |
| 2856 |
// DeviceCount: Number of chrome devices that have been used to send print jobs |
| 2857 |
// to the specified printer. |
| 2858 |
DeviceCount int64 `json:"deviceCount,omitempty,string"` |
| 2859 |
// JobCount: Number of print jobs sent to the printer. |
| 2860 |
JobCount int64 `json:"jobCount,omitempty,string"` |
| 2861 |
// Printer: Printer name. |
| 2862 |
Printer string `json:"printer,omitempty"` |
| 2863 |
// PrinterId: Printer API ID. |
| 2864 |
PrinterId string `json:"printerId,omitempty"` |
| 2865 |
// PrinterModel: Printer model. |
| 2866 |
PrinterModel string `json:"printerModel,omitempty"` |
| 2867 |
// UserCount: Number of users that have sent print jobs to the printer. |
| 2868 |
UserCount int64 `json:"userCount,omitempty,string"` |
| 2869 |
// ForceSendFields is a list of field names (e.g. "DeviceCount") to |
| 2870 |
// unconditionally include in API requests. By default, fields with empty or |
| 2871 |
// default values are omitted from API requests. See |
| 2872 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2873 |
// details. |
| 2874 |
ForceSendFields []string `json:"-"` |
| 2875 |
// NullFields is a list of field names (e.g. "DeviceCount") to include in API |
| 2876 |
// requests with the JSON null value. By default, fields with empty values are |
| 2877 |
// omitted from API requests. See |
| 2878 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2879 |
NullFields []string `json:"-"` |
| 2880 |
} |
| 2881 |
|
| 2882 |
func (s GoogleChromeManagementV1PrinterReport) MarshalJSON() ([]byte, error) { |
| 2883 |
type NoMethod GoogleChromeManagementV1PrinterReport |
| 2884 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2885 |
} |
| 2886 |
|
| 2887 |
// GoogleChromeManagementV1RiskAssessment: Risk assessment for a Chrome |
| 2888 |
// extension. |
| 2889 |
type GoogleChromeManagementV1RiskAssessment struct { |
| 2890 |
// Assessment: Risk assessment for the extension. Currently, this is a |
| 2891 |
// numerical value, and its interpretation is specific to each risk assessment |
| 2892 |
// provider. |
| 2893 |
Assessment string `json:"assessment,omitempty"` |
| 2894 |
// DetailsUrl: A URL that a user can navigate to for more information about the |
| 2895 |
// risk assessment. |
| 2896 |
DetailsUrl string `json:"detailsUrl,omitempty"` |
| 2897 |
// Version: The version of the extension that this assessment applies to. |
| 2898 |
Version string `json:"version,omitempty"` |
| 2899 |
// ForceSendFields is a list of field names (e.g. "Assessment") to |
| 2900 |
// unconditionally include in API requests. By default, fields with empty or |
| 2901 |
// default values are omitted from API requests. See |
| 2902 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2903 |
// details. |
| 2904 |
ForceSendFields []string `json:"-"` |
| 2905 |
// NullFields is a list of field names (e.g. "Assessment") to include in API |
| 2906 |
// requests with the JSON null value. By default, fields with empty values are |
| 2907 |
// omitted from API requests. See |
| 2908 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2909 |
NullFields []string `json:"-"` |
| 2910 |
} |
| 2911 |
|
| 2912 |
func (s GoogleChromeManagementV1RiskAssessment) MarshalJSON() ([]byte, error) { |
| 2913 |
type NoMethod GoogleChromeManagementV1RiskAssessment |
| 2914 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2915 |
} |
| 2916 |
|
| 2917 |
// GoogleChromeManagementV1RiskAssessmentData: Risk assessment data about an |
| 2918 |
// extension/app. |
| 2919 |
type GoogleChromeManagementV1RiskAssessmentData struct { |
| 2920 |
// Entries: Individual risk assessments. |
| 2921 |
Entries []*GoogleChromeManagementV1RiskAssessmentEntry `json:"entries,omitempty"` |
| 2922 |
// OverallRiskLevel: Overall assessed risk level across all entries. This will |
| 2923 |
// be the highest risk level from all entries. |
| 2924 |
// |
| 2925 |
// Possible values: |
| 2926 |
// "RISK_LEVEL_UNSPECIFIED" - Risk level not specified. |
| 2927 |
// "RISK_LEVEL_LOW" - Extension that represents a low risk. |
| 2928 |
// "RISK_LEVEL_MEDIUM" - Extension that represents a medium risk. |
| 2929 |
// "RISK_LEVEL_HIGH" - Extension that represents a high risk. |
| 2930 |
OverallRiskLevel string `json:"overallRiskLevel,omitempty"` |
| 2931 |
// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally |
| 2932 |
// include in API requests. By default, fields with empty or default values are |
| 2933 |
// omitted from API requests. See |
| 2934 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2935 |
// details. |
| 2936 |
ForceSendFields []string `json:"-"` |
| 2937 |
// NullFields is a list of field names (e.g. "Entries") to include in API |
| 2938 |
// requests with the JSON null value. By default, fields with empty values are |
| 2939 |
// omitted from API requests. See |
| 2940 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2941 |
NullFields []string `json:"-"` |
| 2942 |
} |
| 2943 |
|
| 2944 |
func (s GoogleChromeManagementV1RiskAssessmentData) MarshalJSON() ([]byte, error) { |
| 2945 |
type NoMethod GoogleChromeManagementV1RiskAssessmentData |
| 2946 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2947 |
} |
| 2948 |
|
| 2949 |
// GoogleChromeManagementV1RiskAssessmentEntry: One risk assessment entry. |
| 2950 |
type GoogleChromeManagementV1RiskAssessmentEntry struct { |
| 2951 |
// Provider: Output only. The risk assessment provider from which this entry |
| 2952 |
// comes from. |
| 2953 |
// |
| 2954 |
// Possible values: |
| 2955 |
// "RISK_ASSESSMENT_PROVIDER_UNSPECIFIED" - Default value when no provider is |
| 2956 |
// specified. |
| 2957 |
// "RISK_ASSESSMENT_PROVIDER_CRXCAVATOR" - CRXcavator. |
| 2958 |
// "RISK_ASSESSMENT_PROVIDER_SPIN_AI" - Spin.Ai. |
| 2959 |
// "RISK_ASSESSMENT_PROVIDER_LAYERX" - LayerX Security. |
| 2960 |
// "RISK_ASSESSMENT_PROVIDER_SPIN_AI_V2" - Spin.AI V2. |
| 2961 |
Provider string `json:"provider,omitempty"` |
| 2962 |
// RiskAssessment: Output only. The details of the provider's risk assessment. |
| 2963 |
RiskAssessment *GoogleChromeManagementV1RiskAssessment `json:"riskAssessment,omitempty"` |
| 2964 |
// RiskLevel: Output only. The bucketed risk level for the risk assessment. |
| 2965 |
// |
| 2966 |
// Possible values: |
| 2967 |
// "RISK_LEVEL_UNSPECIFIED" - Risk level not specified. |
| 2968 |
// "RISK_LEVEL_LOW" - Extension that represents a low risk. |
| 2969 |
// "RISK_LEVEL_MEDIUM" - Extension that represents a medium risk. |
| 2970 |
// "RISK_LEVEL_HIGH" - Extension that represents a high risk. |
| 2971 |
RiskLevel string `json:"riskLevel,omitempty"` |
| 2972 |
// ForceSendFields is a list of field names (e.g. "Provider") to |
| 2973 |
// unconditionally include in API requests. By default, fields with empty or |
| 2974 |
// default values are omitted from API requests. See |
| 2975 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 2976 |
// details. |
| 2977 |
ForceSendFields []string `json:"-"` |
| 2978 |
// NullFields is a list of field names (e.g. "Provider") to include in API |
| 2979 |
// requests with the JSON null value. By default, fields with empty values are |
| 2980 |
// omitted from API requests. See |
| 2981 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 2982 |
NullFields []string `json:"-"` |
| 2983 |
} |
| 2984 |
|
| 2985 |
func (s GoogleChromeManagementV1RiskAssessmentEntry) MarshalJSON() ([]byte, error) { |
| 2986 |
type NoMethod GoogleChromeManagementV1RiskAssessmentEntry |
| 2987 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 2988 |
} |
| 2989 |
|
| 2990 |
// GoogleChromeManagementV1RuntimeCountersReport: Runtime counters retrieved |
| 2991 |
// from CPU. Currently the runtime counters telemetry is only supported by |
| 2992 |
// Intel vPro PSR on Gen 14+. |
| 2993 |
type GoogleChromeManagementV1RuntimeCountersReport struct { |
| 2994 |
// EnterHibernationCount: Number of times that the device has entered into the |
| 2995 |
// hibernation state. Currently obtained via the PSR, count from S0->S4. |
| 2996 |
EnterHibernationCount int64 `json:"enterHibernationCount,omitempty,string"` |
| 2997 |
// EnterPoweroffCount: Number of times that the device has entered into the |
| 2998 |
// power-off state. Currently obtained via the PSR, count from S0->S5. |
| 2999 |
EnterPoweroffCount int64 `json:"enterPoweroffCount,omitempty,string"` |
| 3000 |
// EnterSleepCount: Number of times that the device has entered into the sleep |
| 3001 |
// state. Currently obtained via the PSR, count from S0->S3. |
| 3002 |
EnterSleepCount int64 `json:"enterSleepCount,omitempty,string"` |
| 3003 |
// ReportTime: Timestamp when the report was collected. |
| 3004 |
ReportTime string `json:"reportTime,omitempty"` |
| 3005 |
// UptimeRuntimeDuration: Total lifetime runtime. Currently always S0 runtime |
| 3006 |
// from Intel vPro PSR. |
| 3007 |
UptimeRuntimeDuration string `json:"uptimeRuntimeDuration,omitempty"` |
| 3008 |
// ForceSendFields is a list of field names (e.g. "EnterHibernationCount") to |
| 3009 |
// unconditionally include in API requests. By default, fields with empty or |
| 3010 |
// default values are omitted from API requests. See |
| 3011 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3012 |
// details. |
| 3013 |
ForceSendFields []string `json:"-"` |
| 3014 |
// NullFields is a list of field names (e.g. "EnterHibernationCount") to |
| 3015 |
// include in API requests with the JSON null value. By default, fields with |
| 3016 |
// empty values are omitted from API requests. See |
| 3017 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3018 |
NullFields []string `json:"-"` |
| 3019 |
} |
| 3020 |
|
| 3021 |
func (s GoogleChromeManagementV1RuntimeCountersReport) MarshalJSON() ([]byte, error) { |
| 3022 |
type NoMethod GoogleChromeManagementV1RuntimeCountersReport |
| 3023 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3024 |
} |
| 3025 |
|
| 3026 |
// GoogleChromeManagementV1StorageInfo: Status data for storage. * This field |
| 3027 |
// is telemetry information and this will change over time as the device is |
| 3028 |
// utilized. * Data for this field is controlled via policy: |
| 3029 |
// ReportDeviceStorageStatus |
| 3030 |
// (https://chromeenterprise.google/policies/#ReportDeviceStorageStatus) * Data |
| 3031 |
// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 |
| 3032 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 3033 |
// collected data is stored locally, and will be reported when the device is |
| 3034 |
// next online: No * Reported for affiliated users only: N/A * Granular |
| 3035 |
// permission needed: TELEMETRY_API_STORAGE_INFO |
| 3036 |
type GoogleChromeManagementV1StorageInfo struct { |
| 3037 |
// AvailableDiskBytes: The available space for user data storage in the device |
| 3038 |
// in bytes. |
| 3039 |
AvailableDiskBytes int64 `json:"availableDiskBytes,omitempty,string"` |
| 3040 |
// TotalDiskBytes: The total space for user data storage in the device in |
| 3041 |
// bytes. |
| 3042 |
TotalDiskBytes int64 `json:"totalDiskBytes,omitempty,string"` |
| 3043 |
// Volume: Information for disk volumes |
| 3044 |
Volume []*GoogleChromeManagementV1StorageInfoDiskVolume `json:"volume,omitempty"` |
| 3045 |
// ForceSendFields is a list of field names (e.g. "AvailableDiskBytes") to |
| 3046 |
// unconditionally include in API requests. By default, fields with empty or |
| 3047 |
// default values are omitted from API requests. See |
| 3048 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3049 |
// details. |
| 3050 |
ForceSendFields []string `json:"-"` |
| 3051 |
// NullFields is a list of field names (e.g. "AvailableDiskBytes") to include |
| 3052 |
// in API requests with the JSON null value. By default, fields with empty |
| 3053 |
// values are omitted from API requests. See |
| 3054 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3055 |
NullFields []string `json:"-"` |
| 3056 |
} |
| 3057 |
|
| 3058 |
func (s GoogleChromeManagementV1StorageInfo) MarshalJSON() ([]byte, error) { |
| 3059 |
type NoMethod GoogleChromeManagementV1StorageInfo |
| 3060 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3061 |
} |
| 3062 |
|
| 3063 |
// GoogleChromeManagementV1StorageInfoDiskVolume: Information for disk volumes |
| 3064 |
type GoogleChromeManagementV1StorageInfoDiskVolume struct { |
| 3065 |
// StorageFreeBytes: Free storage space in bytes. |
| 3066 |
StorageFreeBytes int64 `json:"storageFreeBytes,omitempty,string"` |
| 3067 |
// StorageTotalBytes: Total storage space in bytes. |
| 3068 |
StorageTotalBytes int64 `json:"storageTotalBytes,omitempty,string"` |
| 3069 |
// VolumeId: Disk volume id. |
| 3070 |
VolumeId string `json:"volumeId,omitempty"` |
| 3071 |
// ForceSendFields is a list of field names (e.g. "StorageFreeBytes") to |
| 3072 |
// unconditionally include in API requests. By default, fields with empty or |
| 3073 |
// default values are omitted from API requests. See |
| 3074 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3075 |
// details. |
| 3076 |
ForceSendFields []string `json:"-"` |
| 3077 |
// NullFields is a list of field names (e.g. "StorageFreeBytes") to include in |
| 3078 |
// API requests with the JSON null value. By default, fields with empty values |
| 3079 |
// are omitted from API requests. See |
| 3080 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3081 |
NullFields []string `json:"-"` |
| 3082 |
} |
| 3083 |
|
| 3084 |
func (s GoogleChromeManagementV1StorageInfoDiskVolume) MarshalJSON() ([]byte, error) { |
| 3085 |
type NoMethod GoogleChromeManagementV1StorageInfoDiskVolume |
| 3086 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3087 |
} |
| 3088 |
|
| 3089 |
// GoogleChromeManagementV1StorageStatusReport: Status data for storage. * This |
| 3090 |
// field is telemetry information and this will change over time as the device |
| 3091 |
// is utilized. * Data for this field is controlled via policy: |
| 3092 |
// ReportDeviceStorageStatus |
| 3093 |
// (https://chromeenterprise.google/policies/#ReportDeviceStorageStatus) * Data |
| 3094 |
// Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 |
| 3095 |
// hours - Policy Controlled: Yes * Cache: If the device is offline, the |
| 3096 |
// collected data is stored locally, and will be reported when the device is |
| 3097 |
// next online: No * Reported for affiliated users only: N/A * Granular |
| 3098 |
// permission needed: TELEMETRY_API_STORAGE_REPORT |
| 3099 |
type GoogleChromeManagementV1StorageStatusReport struct { |
| 3100 |
// Disk: Output only. Reports on disk. |
| 3101 |
Disk []*GoogleChromeManagementV1DiskInfo `json:"disk,omitempty"` |
| 3102 |
// ReportTime: Output only. Timestamp of when the sample was collected on |
| 3103 |
// device |
| 3104 |
ReportTime string `json:"reportTime,omitempty"` |
| 3105 |
// ForceSendFields is a list of field names (e.g. "Disk") to unconditionally |
| 3106 |
// include in API requests. By default, fields with empty or default values are |
| 3107 |
// omitted from API requests. See |
| 3108 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3109 |
// details. |
| 3110 |
ForceSendFields []string `json:"-"` |
| 3111 |
// NullFields is a list of field names (e.g. "Disk") to include in API requests |
| 3112 |
// with the JSON null value. By default, fields with empty values are omitted |
| 3113 |
// from API requests. See |
| 3114 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3115 |
NullFields []string `json:"-"` |
| 3116 |
} |
| 3117 |
|
| 3118 |
func (s GoogleChromeManagementV1StorageStatusReport) MarshalJSON() ([]byte, error) { |
| 3119 |
type NoMethod GoogleChromeManagementV1StorageStatusReport |
| 3120 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3121 |
} |
| 3122 |
|
| 3123 |
// GoogleChromeManagementV1TelemetryAppInstallEvent: App installation data. |
| 3124 |
type GoogleChromeManagementV1TelemetryAppInstallEvent struct { |
| 3125 |
// AppId: App id. For PWAs this is the start URL, and for extensions this is |
| 3126 |
// the extension id. |
| 3127 |
AppId string `json:"appId,omitempty"` |
| 3128 |
// AppInstallReason: App installation reason. |
| 3129 |
// |
| 3130 |
// Possible values: |
| 3131 |
// "APPLICATION_INSTALL_REASON_UNSPECIFIED" - Application install reason is |
| 3132 |
// unknown. |
| 3133 |
// "APPLICATION_INSTALL_REASON_SYSTEM" - Application installed with the |
| 3134 |
// system and is considered part of the OS. |
| 3135 |
// "APPLICATION_INSTALL_REASON_POLICY" - Application installed by policy. |
| 3136 |
// "APPLICATION_INSTALL_REASON_OEM" - Application installed by an original |
| 3137 |
// equipment manufacturer (OEM). |
| 3138 |
// "APPLICATION_INSTALL_REASON_DEFAULT" - Application installed by default, |
| 3139 |
// but is not considered a system app. |
| 3140 |
// "APPLICATION_INSTALL_REASON_SYNC" - Application installed by sync. |
| 3141 |
// "APPLICATION_INSTALL_REASON_USER" - Application installed by user action. |
| 3142 |
// "APPLICATION_INSTALL_REASON_SUB_APP" - Application installed bt SubApp API |
| 3143 |
// call. |
| 3144 |
// "APPLICATION_INSTALL_REASON_KIOSK" - Application installed by Kiosk on |
| 3145 |
// Chrome OS. |
| 3146 |
// "APPLICATION_INSTALL_REASON_COMMAND_LINE" - Application installed by |
| 3147 |
// command line argument. |
| 3148 |
AppInstallReason string `json:"appInstallReason,omitempty"` |
| 3149 |
// AppInstallSource: App installation source. |
| 3150 |
// |
| 3151 |
// Possible values: |
| 3152 |
// "APPLICATION_INSTALL_SOURCE_UNSPECIFIED" - Application install source is |
| 3153 |
// unknown. |
| 3154 |
// "APPLICATION_INSTALL_SOURCE_SYSTEM" - Application installed as part of |
| 3155 |
// Chrome OS. |
| 3156 |
// "APPLICATION_INSTALL_SOURCE_SYNC" - Application install source is a sync. |
| 3157 |
// "APPLICATION_INSTALL_SOURCE_PLAY_STORE" - Application install source is |
| 3158 |
// the Play store. |
| 3159 |
// "APPLICATION_INSTALL_SOURCE_CHROME_WEB_STORE" - Application install source |
| 3160 |
// is the Chrome web store. |
| 3161 |
// "APPLICATION_INSTALL_SOURCE_BROWSER" - Application install source is a |
| 3162 |
// browser. |
| 3163 |
AppInstallSource string `json:"appInstallSource,omitempty"` |
| 3164 |
// AppInstallTime: App installation time depending on the app lifecycle. |
| 3165 |
// |
| 3166 |
// Possible values: |
| 3167 |
// "APPLICATION_INSTALL_TIME_UNSPECIFIED" - Application install time unknown. |
| 3168 |
// "APPLICATION_INSTALL_TIME_INIT" - Application install is initialized. |
| 3169 |
// "APPLICATION_INSTALL_TIME_RUNNING" - Application install is currently |
| 3170 |
// running. |
| 3171 |
AppInstallTime string `json:"appInstallTime,omitempty"` |
| 3172 |
// AppType: Type of app. |
| 3173 |
// |
| 3174 |
// Possible values: |
| 3175 |
// "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED" - Application type unknown. |
| 3176 |
// "APPLICATION_TYPE_ARC" - Application type arc (Android app). |
| 3177 |
// "APPLICATION_TYPE_BUILT_IN" - Deprecated. This value is no longer used. |
| 3178 |
// Application type built-in. |
| 3179 |
// "APPLICATION_TYPE_CROSTINI" - Application type Linux (via Crostini). |
| 3180 |
// "APPLICATION_TYPE_CHROME_APP" - Application type Chrome app. |
| 3181 |
// "APPLICATION_TYPE_WEB" - Application type web. |
| 3182 |
// "APPLICATION_TYPE_MAC_OS" - Application type Mac OS. |
| 3183 |
// "APPLICATION_TYPE_PLUGIN_VM" - Application type Plugin VM. |
| 3184 |
// "APPLICATION_TYPE_STANDALONE_BROWSER" - Deprecated. This value is no |
| 3185 |
// longer used. Application type standalone browser (Lacros browser app). |
| 3186 |
// "APPLICATION_TYPE_REMOTE" - Application type remote. |
| 3187 |
// "APPLICATION_TYPE_BOREALIS" - Application type borealis. |
| 3188 |
// "APPLICATION_TYPE_SYSTEM_WEB" - Application type system web. |
| 3189 |
// "APPLICATION_TYPE_STANDALONE_BROWSER_CHROME_APP" - Deprecated. This value |
| 3190 |
// is no longer used. Application type standalone browser chrome app. |
| 3191 |
// "APPLICATION_TYPE_EXTENSION" - Application type extension. |
| 3192 |
// "APPLICATION_TYPE_STANDALONE_BROWSER_EXTENSION" - Deprecated. This value |
| 3193 |
// is no longer used. Application type standalone browser extension. |
| 3194 |
// "APPLICATION_TYPE_BRUSCHETTA" - Application type bruschetta. |
| 3195 |
AppType string `json:"appType,omitempty"` |
| 3196 |
// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally |
| 3197 |
// include in API requests. By default, fields with empty or default values are |
| 3198 |
// omitted from API requests. See |
| 3199 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3200 |
// details. |
| 3201 |
ForceSendFields []string `json:"-"` |
| 3202 |
// NullFields is a list of field names (e.g. "AppId") to include in API |
| 3203 |
// requests with the JSON null value. By default, fields with empty values are |
| 3204 |
// omitted from API requests. See |
| 3205 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3206 |
NullFields []string `json:"-"` |
| 3207 |
} |
| 3208 |
|
| 3209 |
func (s GoogleChromeManagementV1TelemetryAppInstallEvent) MarshalJSON() ([]byte, error) { |
| 3210 |
type NoMethod GoogleChromeManagementV1TelemetryAppInstallEvent |
| 3211 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3212 |
} |
| 3213 |
|
| 3214 |
// GoogleChromeManagementV1TelemetryAppLaunchEvent: App launch data. |
| 3215 |
type GoogleChromeManagementV1TelemetryAppLaunchEvent struct { |
| 3216 |
// AppId: App id. For PWAs this is the start URL, and for extensions this is |
| 3217 |
// the extension id. |
| 3218 |
AppId string `json:"appId,omitempty"` |
| 3219 |
// AppLaunchSource: App launch source. |
| 3220 |
// |
| 3221 |
// Possible values: |
| 3222 |
// "APPLICATION_LAUNCH_SOURCE_UNSPECIFIED" - Application launch source |
| 3223 |
// unknown. |
| 3224 |
// "APPLICATION_LAUNCH_SOURCE_APP_LIST_GRID" - Application launched from the |
| 3225 |
// grid of apps, not the search box. |
| 3226 |
// "APPLICATION_LAUNCH_SOURCE_APP_LIST_GRID_CONTEXT_MENU" - Application |
| 3227 |
// launched from the grid of apps, off of the context menu. |
| 3228 |
// "APPLICATION_LAUNCH_SOURCE_APP_LIST_QUERY" - Application launched from |
| 3229 |
// query-dependent results (larger icons). |
| 3230 |
// "APPLICATION_LAUNCH_SOURCE_APP_LIST_QUERY_CONTEXT_MENU" - Application |
| 3231 |
// launched from query-dependent results, off of the context menu. |
| 3232 |
// "APPLICATION_LAUNCH_SOURCE_APP_LIST_RECOMMENDATION" - Application launched |
| 3233 |
// from query-less recommendations (smaller icons). |
| 3234 |
// "APPLICATION_LAUNCH_SOURCE_PARENTAL_CONTROLS" - Application launched from |
| 3235 |
// the Parental Controls Settings section and Per App time notification. |
| 3236 |
// "APPLICATION_LAUNCH_SOURCE_SHELF" - Application launched from shelf. |
| 3237 |
// "APPLICATION_LAUNCH_SOURCE_FILE_MANAGER" - Application launched from the |
| 3238 |
// file manager |
| 3239 |
// "APPLICATION_LAUNCH_SOURCE_LINK" - Application launched from left click on |
| 3240 |
// a link in the browser. |
| 3241 |
// "APPLICATION_LAUNCH_SOURCE_OMNIBOX" - Application launched from entering a |
| 3242 |
// URL in the Omnibox on the browser. |
| 3243 |
// "APPLICATION_LAUNCH_SOURCE_CHROME_INTERNAL" - Application launched from a |
| 3244 |
// Chrome internal call. |
| 3245 |
// "APPLICATION_LAUNCH_SOURCE_KEYBOARD" - Application launched from keyboard |
| 3246 |
// shortcut for opening app. |
| 3247 |
// "APPLICATION_LAUNCH_SOURCE_OTHER_APP" - Application launched from clicking |
| 3248 |
// a link in another app or WebUI. |
| 3249 |
// "APPLICATION_LAUNCH_SOURCE_MENU" - Application launched from menu. |
| 3250 |
// "APPLICATION_LAUNCH_SOURCE_INSTALLED_NOTIFICATION" - Application launched |
| 3251 |
// from the installed notification. |
| 3252 |
// "APPLICATION_LAUNCH_SOURCE_TEST" - Application launched from a test. |
| 3253 |
// "APPLICATION_LAUNCH_SOURCE_ARC" - Application launched from Arc. |
| 3254 |
// "APPLICATION_LAUNCH_SOURCE_SHARESHEET" - Application launched from |
| 3255 |
// Sharesheet. |
| 3256 |
// "APPLICATION_LAUNCH_SOURCE_RELEASE_NOTES_NOTIFICATION" - Application |
| 3257 |
// launched from the release notes notification. |
| 3258 |
// "APPLICATION_LAUNCH_SOURCE_FULL_RESTORE" - Application launched from a |
| 3259 |
// full restore. |
| 3260 |
// "APPLICATION_LAUNCH_SOURCE_SMART_TEXT_CONTEXT_MENU" - Application launched |
| 3261 |
// from a smart text selection context menu. |
| 3262 |
// "APPLICATION_LAUNCH_SOURCE_DISCOVER_TAB_NOTIFICATION" - Application |
| 3263 |
// launched from a discover tab notification. |
| 3264 |
// "APPLICATION_LAUNCH_SOURCE_MANAGEMENT_API" - Application launched from the |
| 3265 |
// Management API. |
| 3266 |
// "APPLICATION_LAUNCH_SOURCE_KIOSK" - Application launched from kiosk. |
| 3267 |
// "APPLICATION_LAUNCH_SOURCE_COMMAND_LINE" - Application launched from the |
| 3268 |
// command line. |
| 3269 |
// "APPLICATION_LAUNCH_SOURCE_BACKGROUND_MODE" - Application launched from |
| 3270 |
// background mode. |
| 3271 |
// "APPLICATION_LAUNCH_SOURCE_NEW_TAB_PAGE" - Application launched from the |
| 3272 |
// new tab page. |
| 3273 |
// "APPLICATION_LAUNCH_SOURCE_INTENT_URL" - Application launched from an |
| 3274 |
// intent URL. |
| 3275 |
// "APPLICATION_LAUNCH_SOURCE_OS_LOGIN" - Application launched from OS login. |
| 3276 |
// "APPLICATION_LAUNCH_SOURCE_PROTOCOL_HANDLER" - Application launched from |
| 3277 |
// protocol handler. |
| 3278 |
// "APPLICATION_LAUNCH_SOURCE_URL_HANDLER" - Application launched from URL |
| 3279 |
// handler. |
| 3280 |
// "APPLICATION_LAUNCH_SOURCE_LOCK_SCREEN" - Application launched from lock |
| 3281 |
// screen app launcher. |
| 3282 |
// "APPLICATION_LAUNCH_SOURCE_APP_HOME_PAGE" - Application launched from app |
| 3283 |
// home (chrome://apps) page. |
| 3284 |
// "APPLICATION_LAUNCH_SOURCE_REPARENTING" - Application launched from moving |
| 3285 |
// content into an app. |
| 3286 |
// "APPLICATION_LAUNCH_SOURCE_PROFILE_MENU" - Application launched from |
| 3287 |
// profile menu of installable chrome://password-manager WebUI. |
| 3288 |
// "APPLICATION_LAUNCH_SOURCE_SYSTEM_TRAY_CALENDAR" - Application launched |
| 3289 |
// from system tray calendar. |
| 3290 |
// "APPLICATION_LAUNCH_SOURCE_INSTALLER" - Application launched from source |
| 3291 |
// installer. |
| 3292 |
// "APPLICATION_LAUNCH_SOURCE_FIRST_RUN" - Count first-run Help app launches |
| 3293 |
// separately so that we can understand the number of user-triggered launches. |
| 3294 |
// "APPLICATION_LAUNCH_SOURCE_WELCOME_TOUR" - Application launched from |
| 3295 |
// welcome tour. |
| 3296 |
// "APPLICATION_LAUNCH_SOURCE_FOCUS_MODE" - Applicationed launched from focus |
| 3297 |
// panel. |
| 3298 |
// "APPLICATION_LAUNCH_SOURCE_SPARKY" - Application launched from |
| 3299 |
// experimental feature Sparky. |
| 3300 |
// "APPLICATION_LAUNCH_SOURCE_NAVIGATION_CAPTURING" - Application launched |
| 3301 |
// from navigation capturing. |
| 3302 |
// "APPLICATION_LAUNCH_SOURCE_WEB_INSTALL_API" - Application launched from |
| 3303 |
// web install API. |
| 3304 |
AppLaunchSource string `json:"appLaunchSource,omitempty"` |
| 3305 |
// AppType: Type of app. |
| 3306 |
// |
| 3307 |
// Possible values: |
| 3308 |
// "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED" - Application type unknown. |
| 3309 |
// "APPLICATION_TYPE_ARC" - Application type arc (Android app). |
| 3310 |
// "APPLICATION_TYPE_BUILT_IN" - Deprecated. This value is no longer used. |
| 3311 |
// Application type built-in. |
| 3312 |
// "APPLICATION_TYPE_CROSTINI" - Application type Linux (via Crostini). |
| 3313 |
// "APPLICATION_TYPE_CHROME_APP" - Application type Chrome app. |
| 3314 |
// "APPLICATION_TYPE_WEB" - Application type web. |
| 3315 |
// "APPLICATION_TYPE_MAC_OS" - Application type Mac OS. |
| 3316 |
// "APPLICATION_TYPE_PLUGIN_VM" - Application type Plugin VM. |
| 3317 |
// "APPLICATION_TYPE_STANDALONE_BROWSER" - Deprecated. This value is no |
| 3318 |
// longer used. Application type standalone browser (Lacros browser app). |
| 3319 |
// "APPLICATION_TYPE_REMOTE" - Application type remote. |
| 3320 |
// "APPLICATION_TYPE_BOREALIS" - Application type borealis. |
| 3321 |
// "APPLICATION_TYPE_SYSTEM_WEB" - Application type system web. |
| 3322 |
// "APPLICATION_TYPE_STANDALONE_BROWSER_CHROME_APP" - Deprecated. This value |
| 3323 |
// is no longer used. Application type standalone browser chrome app. |
| 3324 |
// "APPLICATION_TYPE_EXTENSION" - Application type extension. |
| 3325 |
// "APPLICATION_TYPE_STANDALONE_BROWSER_EXTENSION" - Deprecated. This value |
| 3326 |
// is no longer used. Application type standalone browser extension. |
| 3327 |
// "APPLICATION_TYPE_BRUSCHETTA" - Application type bruschetta. |
| 3328 |
AppType string `json:"appType,omitempty"` |
| 3329 |
// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally |
| 3330 |
// include in API requests. By default, fields with empty or default values are |
| 3331 |
// omitted from API requests. See |
| 3332 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3333 |
// details. |
| 3334 |
ForceSendFields []string `json:"-"` |
| 3335 |
// NullFields is a list of field names (e.g. "AppId") to include in API |
| 3336 |
// requests with the JSON null value. By default, fields with empty values are |
| 3337 |
// omitted from API requests. See |
| 3338 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3339 |
NullFields []string `json:"-"` |
| 3340 |
} |
| 3341 |
|
| 3342 |
func (s GoogleChromeManagementV1TelemetryAppLaunchEvent) MarshalJSON() ([]byte, error) { |
| 3343 |
type NoMethod GoogleChromeManagementV1TelemetryAppLaunchEvent |
| 3344 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3345 |
} |
| 3346 |
|
| 3347 |
// GoogleChromeManagementV1TelemetryAppUninstallEvent: App uninstall data. |
| 3348 |
type GoogleChromeManagementV1TelemetryAppUninstallEvent struct { |
| 3349 |
// AppId: App id. For PWAs this is the start URL, and for extensions this is |
| 3350 |
// the extension id. |
| 3351 |
AppId string `json:"appId,omitempty"` |
| 3352 |
// AppType: Type of app. |
| 3353 |
// |
| 3354 |
// Possible values: |
| 3355 |
// "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED" - Application type unknown. |
| 3356 |
// "APPLICATION_TYPE_ARC" - Application type arc (Android app). |
| 3357 |
// "APPLICATION_TYPE_BUILT_IN" - Deprecated. This value is no longer used. |
| 3358 |
// Application type built-in. |
| 3359 |
// "APPLICATION_TYPE_CROSTINI" - Application type Linux (via Crostini). |
| 3360 |
// "APPLICATION_TYPE_CHROME_APP" - Application type Chrome app. |
| 3361 |
// "APPLICATION_TYPE_WEB" - Application type web. |
| 3362 |
// "APPLICATION_TYPE_MAC_OS" - Application type Mac OS. |
| 3363 |
// "APPLICATION_TYPE_PLUGIN_VM" - Application type Plugin VM. |
| 3364 |
// "APPLICATION_TYPE_STANDALONE_BROWSER" - Deprecated. This value is no |
| 3365 |
// longer used. Application type standalone browser (Lacros browser app). |
| 3366 |
// "APPLICATION_TYPE_REMOTE" - Application type remote. |
| 3367 |
// "APPLICATION_TYPE_BOREALIS" - Application type borealis. |
| 3368 |
// "APPLICATION_TYPE_SYSTEM_WEB" - Application type system web. |
| 3369 |
// "APPLICATION_TYPE_STANDALONE_BROWSER_CHROME_APP" - Deprecated. This value |
| 3370 |
// is no longer used. Application type standalone browser chrome app. |
| 3371 |
// "APPLICATION_TYPE_EXTENSION" - Application type extension. |
| 3372 |
// "APPLICATION_TYPE_STANDALONE_BROWSER_EXTENSION" - Deprecated. This value |
| 3373 |
// is no longer used. Application type standalone browser extension. |
| 3374 |
// "APPLICATION_TYPE_BRUSCHETTA" - Application type bruschetta. |
| 3375 |
AppType string `json:"appType,omitempty"` |
| 3376 |
// AppUninstallSource: App uninstall source. |
| 3377 |
// |
| 3378 |
// Possible values: |
| 3379 |
// "APPLICATION_UNINSTALL_SOURCE_UNSPECIFIED" - Application uninstall source |
| 3380 |
// unknown. |
| 3381 |
// "APPLICATION_UNINSTALL_SOURCE_APP_LIST" - Application uninstalled from the |
| 3382 |
// App List (Launcher). |
| 3383 |
// "APPLICATION_UNINSTALL_SOURCE_APP_MANAGEMENT" - Application uninstalled |
| 3384 |
// from the App Managedment page. |
| 3385 |
// "APPLICATION_UNINSTALL_SOURCE_SHELF" - Application uninstalled from the |
| 3386 |
// Shelf. |
| 3387 |
// "APPLICATION_UNINSTALL_SOURCE_MIGRATION" - Application uninstalled by app |
| 3388 |
// migration. |
| 3389 |
AppUninstallSource string `json:"appUninstallSource,omitempty"` |
| 3390 |
// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally |
| 3391 |
// include in API requests. By default, fields with empty or default values are |
| 3392 |
// omitted from API requests. See |
| 3393 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3394 |
// details. |
| 3395 |
ForceSendFields []string `json:"-"` |
| 3396 |
// NullFields is a list of field names (e.g. "AppId") to include in API |
| 3397 |
// requests with the JSON null value. By default, fields with empty values are |
| 3398 |
// omitted from API requests. See |
| 3399 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3400 |
NullFields []string `json:"-"` |
| 3401 |
} |
| 3402 |
|
| 3403 |
func (s GoogleChromeManagementV1TelemetryAppUninstallEvent) MarshalJSON() ([]byte, error) { |
| 3404 |
type NoMethod GoogleChromeManagementV1TelemetryAppUninstallEvent |
| 3405 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3406 |
} |
| 3407 |
|
| 3408 |
// GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent: |
| 3409 |
// `TelemetryAudioSevereUnderrunEvent` is triggered when a audio devices run |
| 3410 |
// out of buffer data for more than 5 seconds. * Granular permission needed: |
| 3411 |
// TELEMETRY_API_AUDIO_REPORT |
| 3412 |
type GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent struct { |
| 3413 |
} |
| 3414 |
|
| 3415 |
// GoogleChromeManagementV1TelemetryDevice: Telemetry data collected from a |
| 3416 |
// managed device. * Granular permission needed: TELEMETRY_API_DEVICE |
| 3417 |
type GoogleChromeManagementV1TelemetryDevice struct { |
| 3418 |
// AppReport: Output only. App reports collected periodically sorted in a |
| 3419 |
// decreasing order of report_time. |
| 3420 |
AppReport []*GoogleChromeManagementV1AppReport `json:"appReport,omitempty"` |
| 3421 |
// AudioStatusReport: Output only. Audio reports collected periodically sorted |
| 3422 |
// in a decreasing order of report_time. |
| 3423 |
AudioStatusReport []*GoogleChromeManagementV1AudioStatusReport `json:"audioStatusReport,omitempty"` |
| 3424 |
// BatteryInfo: Output only. Information on battery specs for the device. |
| 3425 |
BatteryInfo []*GoogleChromeManagementV1BatteryInfo `json:"batteryInfo,omitempty"` |
| 3426 |
// BatteryStatusReport: Output only. Battery reports collected periodically. |
| 3427 |
BatteryStatusReport []*GoogleChromeManagementV1BatteryStatusReport `json:"batteryStatusReport,omitempty"` |
| 3428 |
// BootPerformanceReport: Output only. Boot performance reports of the device. |
| 3429 |
BootPerformanceReport []*GoogleChromeManagementV1BootPerformanceReport `json:"bootPerformanceReport,omitempty"` |
| 3430 |
// CpuInfo: Output only. Information regarding CPU specs for the device. |
| 3431 |
CpuInfo []*GoogleChromeManagementV1CpuInfo `json:"cpuInfo,omitempty"` |
| 3432 |
// CpuStatusReport: Output only. CPU status reports collected periodically |
| 3433 |
// sorted in a decreasing order of report_time. |
| 3434 |
CpuStatusReport []*GoogleChromeManagementV1CpuStatusReport `json:"cpuStatusReport,omitempty"` |
| 3435 |
// Customer: Output only. Google Workspace Customer whose enterprise enrolled |
| 3436 |
// the device. |
| 3437 |
Customer string `json:"customer,omitempty"` |
| 3438 |
// DeviceId: Output only. The unique Directory API ID of the device. This value |
| 3439 |
// is the same as the Admin Console's Directory API ID in the ChromeOS Devices |
| 3440 |
// tab |
| 3441 |
DeviceId string `json:"deviceId,omitempty"` |
| 3442 |
// GraphicsInfo: Output only. Contains information regarding Graphic |
| 3443 |
// peripherals for the device. |
| 3444 |
GraphicsInfo *GoogleChromeManagementV1GraphicsInfo `json:"graphicsInfo,omitempty"` |
| 3445 |
// GraphicsStatusReport: Output only. Graphics reports collected periodically. |
| 3446 |
GraphicsStatusReport []*GoogleChromeManagementV1GraphicsStatusReport `json:"graphicsStatusReport,omitempty"` |
| 3447 |
// HeartbeatStatusReport: Output only. Heartbeat status report containing |
| 3448 |
// timestamps periodically sorted in decreasing order of report_time |
| 3449 |
HeartbeatStatusReport []*GoogleChromeManagementV1HeartbeatStatusReport `json:"heartbeatStatusReport,omitempty"` |
| 3450 |
// KioskAppStatusReport: Output only. Kiosk app status report for the kiosk |
| 3451 |
// device |
| 3452 |
KioskAppStatusReport []*GoogleChromeManagementV1KioskAppStatusReport `json:"kioskAppStatusReport,omitempty"` |
| 3453 |
// MemoryInfo: Output only. Information regarding memory specs for the device. |
| 3454 |
MemoryInfo *GoogleChromeManagementV1MemoryInfo `json:"memoryInfo,omitempty"` |
| 3455 |
// MemoryStatusReport: Output only. Memory status reports collected |
| 3456 |
// periodically sorted decreasing by report_time. |
| 3457 |
MemoryStatusReport []*GoogleChromeManagementV1MemoryStatusReport `json:"memoryStatusReport,omitempty"` |
| 3458 |
// Name: Output only. Resource name of the device. |
| 3459 |
Name string `json:"name,omitempty"` |
| 3460 |
// NetworkBandwidthReport: Output only. Network bandwidth reports collected |
| 3461 |
// periodically sorted in a decreasing order of report_time. |
| 3462 |
NetworkBandwidthReport []*GoogleChromeManagementV1NetworkBandwidthReport `json:"networkBandwidthReport,omitempty"` |
| 3463 |
// NetworkDiagnosticsReport: Output only. Network diagnostics collected |
| 3464 |
// periodically. |
| 3465 |
NetworkDiagnosticsReport []*GoogleChromeManagementV1NetworkDiagnosticsReport `json:"networkDiagnosticsReport,omitempty"` |
| 3466 |
// NetworkInfo: Output only. Network devices information. |
| 3467 |
NetworkInfo *GoogleChromeManagementV1NetworkInfo `json:"networkInfo,omitempty"` |
| 3468 |
// NetworkStatusReport: Output only. Network specs collected periodically. |
| 3469 |
NetworkStatusReport []*GoogleChromeManagementV1NetworkStatusReport `json:"networkStatusReport,omitempty"` |
| 3470 |
// OrgUnitId: Output only. Organization unit ID of the device. |
| 3471 |
OrgUnitId string `json:"orgUnitId,omitempty"` |
| 3472 |
// OsUpdateStatus: Output only. Contains relevant information regarding |
| 3473 |
// ChromeOS update status. |
| 3474 |
OsUpdateStatus []*GoogleChromeManagementV1OsUpdateStatus `json:"osUpdateStatus,omitempty"` |
| 3475 |
// PeripheralsReport: Output only. Peripherals reports collected periodically |
| 3476 |
// sorted in a decreasing order of report_time. |
| 3477 |
PeripheralsReport []*GoogleChromeManagementV1PeripheralsReport `json:"peripheralsReport,omitempty"` |
| 3478 |
// RuntimeCountersReport: Output only. Runtime counters reports collected |
| 3479 |
// device lifetime runtime, as well as the counts of S0->S3, S0->S4, and S0->S5 |
| 3480 |
// transitions, meaning entering into sleep, hibernation, and power-off states |
| 3481 |
RuntimeCountersReport []*GoogleChromeManagementV1RuntimeCountersReport `json:"runtimeCountersReport,omitempty"` |
| 3482 |
// SerialNumber: Output only. Device serial number. This value is the same as |
| 3483 |
// the Admin Console's Serial Number in the ChromeOS Devices tab. |
| 3484 |
SerialNumber string `json:"serialNumber,omitempty"` |
| 3485 |
// StorageInfo: Output only. Information of storage specs for the device. |
| 3486 |
StorageInfo *GoogleChromeManagementV1StorageInfo `json:"storageInfo,omitempty"` |
| 3487 |
// StorageStatusReport: Output only. Storage reports collected periodically. |
| 3488 |
StorageStatusReport []*GoogleChromeManagementV1StorageStatusReport `json:"storageStatusReport,omitempty"` |
| 3489 |
// ThunderboltInfo: Output only. Information on Thunderbolt bus. |
| 3490 |
ThunderboltInfo []*GoogleChromeManagementV1ThunderboltInfo `json:"thunderboltInfo,omitempty"` |
| 3491 |
|
| 3492 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 3493 |
googleapi.ServerResponse `json:"-"` |
| 3494 |
// ForceSendFields is a list of field names (e.g. "AppReport") to |
| 3495 |
// unconditionally include in API requests. By default, fields with empty or |
| 3496 |
// default values are omitted from API requests. See |
| 3497 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3498 |
// details. |
| 3499 |
ForceSendFields []string `json:"-"` |
| 3500 |
// NullFields is a list of field names (e.g. "AppReport") to include in API |
| 3501 |
// requests with the JSON null value. By default, fields with empty values are |
| 3502 |
// omitted from API requests. See |
| 3503 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3504 |
NullFields []string `json:"-"` |
| 3505 |
} |
| 3506 |
|
| 3507 |
func (s GoogleChromeManagementV1TelemetryDevice) MarshalJSON() ([]byte, error) { |
| 3508 |
type NoMethod GoogleChromeManagementV1TelemetryDevice |
| 3509 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3510 |
} |
| 3511 |
|
| 3512 |
// GoogleChromeManagementV1TelemetryDeviceInfo: Information about a device |
| 3513 |
// associated with telemetry data. * Granular Permission needed: |
| 3514 |
// TELEMETRY_API_DEVICE |
| 3515 |
type GoogleChromeManagementV1TelemetryDeviceInfo struct { |
| 3516 |
// DeviceId: Output only. The unique Directory API ID of the device. This value |
| 3517 |
// is the same as the Admin Console's Directory API ID in the ChromeOS Devices |
| 3518 |
// tab. |
| 3519 |
DeviceId string `json:"deviceId,omitempty"` |
| 3520 |
// OrgUnitId: Output only. Organization unit ID of the device. |
| 3521 |
OrgUnitId string `json:"orgUnitId,omitempty"` |
| 3522 |
// ForceSendFields is a list of field names (e.g. "DeviceId") to |
| 3523 |
// unconditionally include in API requests. By default, fields with empty or |
| 3524 |
// default values are omitted from API requests. See |
| 3525 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3526 |
// details. |
| 3527 |
ForceSendFields []string `json:"-"` |
| 3528 |
// NullFields is a list of field names (e.g. "DeviceId") to include in API |
| 3529 |
// requests with the JSON null value. By default, fields with empty values are |
| 3530 |
// omitted from API requests. See |
| 3531 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3532 |
NullFields []string `json:"-"` |
| 3533 |
} |
| 3534 |
|
| 3535 |
func (s GoogleChromeManagementV1TelemetryDeviceInfo) MarshalJSON() ([]byte, error) { |
| 3536 |
type NoMethod GoogleChromeManagementV1TelemetryDeviceInfo |
| 3537 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3538 |
} |
| 3539 |
|
| 3540 |
// GoogleChromeManagementV1TelemetryEvent: Telemetry data reported by a managed |
| 3541 |
// device. |
| 3542 |
type GoogleChromeManagementV1TelemetryEvent struct { |
| 3543 |
// AppInstallEvent: Output only. Payload for app install event. Present only |
| 3544 |
// when `event_type` is `APP_INSTALLED`. |
| 3545 |
AppInstallEvent *GoogleChromeManagementV1TelemetryAppInstallEvent `json:"appInstallEvent,omitempty"` |
| 3546 |
// AppLaunchEvent: Output only. Payload for app launch event.Present only when |
| 3547 |
// `event_type` is `APP_LAUNCHED`. |
| 3548 |
AppLaunchEvent *GoogleChromeManagementV1TelemetryAppLaunchEvent `json:"appLaunchEvent,omitempty"` |
| 3549 |
// AppUninstallEvent: Output only. Payload for app uninstall event. Present |
| 3550 |
// only when `event_type` is `APP_UNINSTALLED`. |
| 3551 |
AppUninstallEvent *GoogleChromeManagementV1TelemetryAppUninstallEvent `json:"appUninstallEvent,omitempty"` |
| 3552 |
// AudioSevereUnderrunEvent: Output only. Payload for audio severe underrun |
| 3553 |
// event. Present only when the `event_type` field is `AUDIO_SEVERE_UNDERRUN`. |
| 3554 |
AudioSevereUnderrunEvent *GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent `json:"audioSevereUnderrunEvent,omitempty"` |
| 3555 |
// Device: Output only. Information about the device associated with the event. |
| 3556 |
Device *GoogleChromeManagementV1TelemetryDeviceInfo `json:"device,omitempty"` |
| 3557 |
// EventType: The event type of the current event. |
| 3558 |
// |
| 3559 |
// Possible values: |
| 3560 |
// "EVENT_TYPE_UNSPECIFIED" - Event type unknown. |
| 3561 |
// "AUDIO_SEVERE_UNDERRUN" - Triggered when a audio devices run out of buffer |
| 3562 |
// data for more than 5 seconds. |
| 3563 |
// "NETWORK_STATE_CHANGE" - Triggered immediately on any changes to a network |
| 3564 |
// connection. |
| 3565 |
// "USB_ADDED" - Triggered when USB devices are added. |
| 3566 |
// "USB_REMOVED" - Triggered when USB devices are removed. |
| 3567 |
// "NETWORK_HTTPS_LATENCY_CHANGE" - Triggered when a new HTTPS latency |
| 3568 |
// problem was detected or the device has recovered form an existing HTTPS |
| 3569 |
// latency problem. |
| 3570 |
// "WIFI_SIGNAL_STRENGTH_LOW" - Triggered when connected WiFi network signal |
| 3571 |
// strength drops below -70dBm. |
| 3572 |
// "WIFI_SIGNAL_STRENGTH_RECOVERED" - Triggered when connected WiFi network |
| 3573 |
// signal strength is recovered from a signal drop. |
| 3574 |
// "VPN_CONNECTION_STATE_CHANGE" - Triggered on changes to VPN connections. |
| 3575 |
// "APP_INSTALLED" - Triggered when an app is installed. |
| 3576 |
// "APP_UNINSTALLED" - Triggered when an app is uninstalled. |
| 3577 |
// "APP_LAUNCHED" - Triggered when an app is launched. |
| 3578 |
// "OS_CRASH" - Triggered when a crash occurs. |
| 3579 |
// "EXTERNAL_DISPLAY_CONNECTED" - Triggered when an external display is |
| 3580 |
// connected. |
| 3581 |
// "EXTERNAL_DISPLAY_DISCONNECTED" - Triggered when an external display is |
| 3582 |
// disconnected. |
| 3583 |
EventType string `json:"eventType,omitempty"` |
| 3584 |
// ExternalDisplaysEvent: Output only. Payload for external display |
| 3585 |
// connected/disconnected event. Present only when `event_type` is |
| 3586 |
// `EXTERNAL_DISPLAY_CONNECTED` or `EXTERNAL_DISPLAY_DISCONNECTED`. |
| 3587 |
ExternalDisplaysEvent *GoogleChromeManagementV1TelemetryExternalDisplayEvent `json:"externalDisplaysEvent,omitempty"` |
| 3588 |
// HttpsLatencyChangeEvent: Output only. Payload for HTTPS latency change |
| 3589 |
// event. Present only when `event_type` is `NETWORK_HTTPS_LATENCY_CHANGE`. |
| 3590 |
HttpsLatencyChangeEvent *GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent `json:"httpsLatencyChangeEvent,omitempty"` |
| 3591 |
// Name: Output only. Resource name of the event. |
| 3592 |
Name string `json:"name,omitempty"` |
| 3593 |
// NetworkStateChangeEvent: Output only. Payload for network connection state |
| 3594 |
// change event. Present only when `event_type` is `NETWORK_STATE_CHANGE`. |
| 3595 |
NetworkStateChangeEvent *GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent `json:"networkStateChangeEvent,omitempty"` |
| 3596 |
// OsCrashEvent: Output only. Payload for OS crash event. Present only when |
| 3597 |
// `event_type` is `OS_CRASH`. |
| 3598 |
OsCrashEvent *GoogleChromeManagementV1TelemetryOsCrashEvent `json:"osCrashEvent,omitempty"` |
| 3599 |
// ReportTime: Timestamp that represents when the event was reported. |
| 3600 |
ReportTime string `json:"reportTime,omitempty"` |
| 3601 |
// UsbPeripheralsEvent: Output only. Payload for usb peripherals event. Present |
| 3602 |
// only when the `event_type` field is either `USB_ADDED` or `USB_REMOVED`. |
| 3603 |
UsbPeripheralsEvent *GoogleChromeManagementV1TelemetryUsbPeripheralsEvent `json:"usbPeripheralsEvent,omitempty"` |
| 3604 |
// User: Output only. Information about the user associated with the event. |
| 3605 |
User *GoogleChromeManagementV1TelemetryUserInfo `json:"user,omitempty"` |
| 3606 |
// VpnConnectionStateChangeEvent: Output only. Payload for VPN connection state |
| 3607 |
// change event. Present only when `event_type` is |
| 3608 |
// `VPN_CONNECTION_STATE_CHANGE`. |
| 3609 |
VpnConnectionStateChangeEvent *GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent `json:"vpnConnectionStateChangeEvent,omitempty"` |
| 3610 |
// WifiSignalStrengthEvent: Output only. Payload for WiFi signal strength |
| 3611 |
// events. Present only when `event_type` is `WIFI_SIGNAL_STRENGTH_LOW` or |
| 3612 |
// `WIFI_SIGNAL_STRENGTH_RECOVERED`. |
| 3613 |
WifiSignalStrengthEvent *GoogleChromeManagementV1TelemetryNetworkSignalStrengthEvent `json:"wifiSignalStrengthEvent,omitempty"` |
| 3614 |
// ForceSendFields is a list of field names (e.g. "AppInstallEvent") to |
| 3615 |
// unconditionally include in API requests. By default, fields with empty or |
| 3616 |
// default values are omitted from API requests. See |
| 3617 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3618 |
// details. |
| 3619 |
ForceSendFields []string `json:"-"` |
| 3620 |
// NullFields is a list of field names (e.g. "AppInstallEvent") to include in |
| 3621 |
// API requests with the JSON null value. By default, fields with empty values |
| 3622 |
// are omitted from API requests. See |
| 3623 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3624 |
NullFields []string `json:"-"` |
| 3625 |
} |
| 3626 |
|
| 3627 |
func (s GoogleChromeManagementV1TelemetryEvent) MarshalJSON() ([]byte, error) { |
| 3628 |
type NoMethod GoogleChromeManagementV1TelemetryEvent |
| 3629 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3630 |
} |
| 3631 |
|
| 3632 |
// GoogleChromeManagementV1TelemetryEventNotificationFilter: Configures how the |
| 3633 |
// telemetry events should be filtered. |
| 3634 |
type GoogleChromeManagementV1TelemetryEventNotificationFilter struct { |
| 3635 |
// EventTypes: Only sends the notifications for events of these types. Must not |
| 3636 |
// be empty. |
| 3637 |
// |
| 3638 |
// Possible values: |
| 3639 |
// "EVENT_TYPE_UNSPECIFIED" - Event type unknown. |
| 3640 |
// "AUDIO_SEVERE_UNDERRUN" - Triggered when a audio devices run out of buffer |
| 3641 |
// data for more than 5 seconds. |
| 3642 |
// "NETWORK_STATE_CHANGE" - Triggered immediately on any changes to a network |
| 3643 |
// connection. |
| 3644 |
// "USB_ADDED" - Triggered when USB devices are added. |
| 3645 |
// "USB_REMOVED" - Triggered when USB devices are removed. |
| 3646 |
// "NETWORK_HTTPS_LATENCY_CHANGE" - Triggered when a new HTTPS latency |
| 3647 |
// problem was detected or the device has recovered form an existing HTTPS |
| 3648 |
// latency problem. |
| 3649 |
// "WIFI_SIGNAL_STRENGTH_LOW" - Triggered when connected WiFi network signal |
| 3650 |
// strength drops below -70dBm. |
| 3651 |
// "WIFI_SIGNAL_STRENGTH_RECOVERED" - Triggered when connected WiFi network |
| 3652 |
// signal strength is recovered from a signal drop. |
| 3653 |
// "VPN_CONNECTION_STATE_CHANGE" - Triggered on changes to VPN connections. |
| 3654 |
// "APP_INSTALLED" - Triggered when an app is installed. |
| 3655 |
// "APP_UNINSTALLED" - Triggered when an app is uninstalled. |
| 3656 |
// "APP_LAUNCHED" - Triggered when an app is launched. |
| 3657 |
// "OS_CRASH" - Triggered when a crash occurs. |
| 3658 |
// "EXTERNAL_DISPLAY_CONNECTED" - Triggered when an external display is |
| 3659 |
// connected. |
| 3660 |
// "EXTERNAL_DISPLAY_DISCONNECTED" - Triggered when an external display is |
| 3661 |
// disconnected. |
| 3662 |
EventTypes []string `json:"eventTypes,omitempty"` |
| 3663 |
// ForceSendFields is a list of field names (e.g. "EventTypes") to |
| 3664 |
// unconditionally include in API requests. By default, fields with empty or |
| 3665 |
// default values are omitted from API requests. See |
| 3666 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3667 |
// details. |
| 3668 |
ForceSendFields []string `json:"-"` |
| 3669 |
// NullFields is a list of field names (e.g. "EventTypes") to include in API |
| 3670 |
// requests with the JSON null value. By default, fields with empty values are |
| 3671 |
// omitted from API requests. See |
| 3672 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3673 |
NullFields []string `json:"-"` |
| 3674 |
} |
| 3675 |
|
| 3676 |
func (s GoogleChromeManagementV1TelemetryEventNotificationFilter) MarshalJSON() ([]byte, error) { |
| 3677 |
type NoMethod GoogleChromeManagementV1TelemetryEventNotificationFilter |
| 3678 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3679 |
} |
| 3680 |
|
| 3681 |
// GoogleChromeManagementV1TelemetryExternalDisplayData: External display data. |
| 3682 |
type GoogleChromeManagementV1TelemetryExternalDisplayData struct { |
| 3683 |
// DisplayName: The display name. |
| 3684 |
DisplayName string `json:"displayName,omitempty"` |
| 3685 |
// EdidVersion: The EDID version. |
| 3686 |
EdidVersion string `json:"edidVersion,omitempty"` |
| 3687 |
// RefreshRate: The refresh rate. |
| 3688 |
RefreshRate int64 `json:"refreshRate,omitempty,string"` |
| 3689 |
// ResolutionHorizontal: The horizontal resolution. |
| 3690 |
ResolutionHorizontal int64 `json:"resolutionHorizontal,omitempty"` |
| 3691 |
// ResolutionVertical: The vertical resolution. |
| 3692 |
ResolutionVertical int64 `json:"resolutionVertical,omitempty"` |
| 3693 |
// SerialNumber: The serial number. |
| 3694 |
SerialNumber int64 `json:"serialNumber,omitempty"` |
| 3695 |
// ForceSendFields is a list of field names (e.g. "DisplayName") to |
| 3696 |
// unconditionally include in API requests. By default, fields with empty or |
| 3697 |
// default values are omitted from API requests. See |
| 3698 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3699 |
// details. |
| 3700 |
ForceSendFields []string `json:"-"` |
| 3701 |
// NullFields is a list of field names (e.g. "DisplayName") to include in API |
| 3702 |
// requests with the JSON null value. By default, fields with empty values are |
| 3703 |
// omitted from API requests. See |
| 3704 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3705 |
NullFields []string `json:"-"` |
| 3706 |
} |
| 3707 |
|
| 3708 |
func (s GoogleChromeManagementV1TelemetryExternalDisplayData) MarshalJSON() ([]byte, error) { |
| 3709 |
type NoMethod GoogleChromeManagementV1TelemetryExternalDisplayData |
| 3710 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3711 |
} |
| 3712 |
|
| 3713 |
// GoogleChromeManagementV1TelemetryExternalDisplayEvent: External display |
| 3714 |
// connected/disconnected event payload. |
| 3715 |
type GoogleChromeManagementV1TelemetryExternalDisplayEvent struct { |
| 3716 |
// ExternalDisplayData: List of external displays that were |
| 3717 |
// connected/disconnected. |
| 3718 |
ExternalDisplayData []*GoogleChromeManagementV1TelemetryExternalDisplayData `json:"externalDisplayData,omitempty"` |
| 3719 |
// ForceSendFields is a list of field names (e.g. "ExternalDisplayData") to |
| 3720 |
// unconditionally include in API requests. By default, fields with empty or |
| 3721 |
// default values are omitted from API requests. See |
| 3722 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3723 |
// details. |
| 3724 |
ForceSendFields []string `json:"-"` |
| 3725 |
// NullFields is a list of field names (e.g. "ExternalDisplayData") to include |
| 3726 |
// in API requests with the JSON null value. By default, fields with empty |
| 3727 |
// values are omitted from API requests. See |
| 3728 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3729 |
NullFields []string `json:"-"` |
| 3730 |
} |
| 3731 |
|
| 3732 |
func (s GoogleChromeManagementV1TelemetryExternalDisplayEvent) MarshalJSON() ([]byte, error) { |
| 3733 |
type NoMethod GoogleChromeManagementV1TelemetryExternalDisplayEvent |
| 3734 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3735 |
} |
| 3736 |
|
| 3737 |
// GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent: Https latency |
| 3738 |
// routine is run periodically and `TelemetryHttpsLatencyChangeEvent` is |
| 3739 |
// triggered if a latency problem was detected or if the device has recovered |
| 3740 |
// from a latency problem. * Granular permission needed: |
| 3741 |
// TELEMETRY_API_NETWORK_REPORT |
| 3742 |
type GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent struct { |
| 3743 |
// HttpsLatencyRoutineData: HTTPS latency routine data that triggered the |
| 3744 |
// event. |
| 3745 |
HttpsLatencyRoutineData *GoogleChromeManagementV1HttpsLatencyRoutineData `json:"httpsLatencyRoutineData,omitempty"` |
| 3746 |
// HttpsLatencyState: Current HTTPS latency state. |
| 3747 |
// |
| 3748 |
// Possible values: |
| 3749 |
// "HTTPS_LATENCY_STATE_UNSPECIFIED" - HTTPS latency state is unspecified. |
| 3750 |
// "RECOVERY" - HTTPS latency recovered from a problem. |
| 3751 |
// "PROBLEM" - HTTPS latency problem. |
| 3752 |
HttpsLatencyState string `json:"httpsLatencyState,omitempty"` |
| 3753 |
// ForceSendFields is a list of field names (e.g. "HttpsLatencyRoutineData") to |
| 3754 |
// unconditionally include in API requests. By default, fields with empty or |
| 3755 |
// default values are omitted from API requests. See |
| 3756 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3757 |
// details. |
| 3758 |
ForceSendFields []string `json:"-"` |
| 3759 |
// NullFields is a list of field names (e.g. "HttpsLatencyRoutineData") to |
| 3760 |
// include in API requests with the JSON null value. By default, fields with |
| 3761 |
// empty values are omitted from API requests. See |
| 3762 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3763 |
NullFields []string `json:"-"` |
| 3764 |
} |
| 3765 |
|
| 3766 |
func (s GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent) MarshalJSON() ([]byte, error) { |
| 3767 |
type NoMethod GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent |
| 3768 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3769 |
} |
| 3770 |
|
| 3771 |
// GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent: |
| 3772 |
// `TelemetryNetworkConnectionStateChangeEvent` is triggered on network |
| 3773 |
// connection state changes. * Granular permission needed: |
| 3774 |
// TELEMETRY_API_NETWORK_REPORT |
| 3775 |
type GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent struct { |
| 3776 |
// ConnectionState: Current connection state of the network. |
| 3777 |
// |
| 3778 |
// Possible values: |
| 3779 |
// "NETWORK_CONNECTION_STATE_UNSPECIFIED" - Network connection state |
| 3780 |
// unspecified. |
| 3781 |
// "ONLINE" - The network is connected and internet connectivity is |
| 3782 |
// available. |
| 3783 |
// "CONNECTED" - The network is connected and not in a detected portal state, |
| 3784 |
// but internet connectivity may not be available. |
| 3785 |
// "PORTAL" - The network is connected but a portal state was detected. |
| 3786 |
// Internet connectivity may be limited. |
| 3787 |
// "CONNECTING" - The network is in the process of connecting. |
| 3788 |
// "NOT_CONNECTED" - The network is not connected. |
| 3789 |
ConnectionState string `json:"connectionState,omitempty"` |
| 3790 |
// Guid: Unique identifier of the network. |
| 3791 |
Guid string `json:"guid,omitempty"` |
| 3792 |
// ForceSendFields is a list of field names (e.g. "ConnectionState") to |
| 3793 |
// unconditionally include in API requests. By default, fields with empty or |
| 3794 |
// default values are omitted from API requests. See |
| 3795 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3796 |
// details. |
| 3797 |
ForceSendFields []string `json:"-"` |
| 3798 |
// NullFields is a list of field names (e.g. "ConnectionState") to include in |
| 3799 |
// API requests with the JSON null value. By default, fields with empty values |
| 3800 |
// are omitted from API requests. See |
| 3801 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3802 |
NullFields []string `json:"-"` |
| 3803 |
} |
| 3804 |
|
| 3805 |
func (s GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent) MarshalJSON() ([]byte, error) { |
| 3806 |
type NoMethod GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent |
| 3807 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3808 |
} |
| 3809 |
|
| 3810 |
// GoogleChromeManagementV1TelemetryNetworkSignalStrengthEvent: |
| 3811 |
// `TelemetryNetworkSignalStrengthEvent` is triggered on WiFi signal strength |
| 3812 |
// events. * Granular permission needed: TELEMETRY_API_NETWORK_REPORT |
| 3813 |
type GoogleChromeManagementV1TelemetryNetworkSignalStrengthEvent struct { |
| 3814 |
// Guid: Unique identifier of the network. |
| 3815 |
Guid string `json:"guid,omitempty"` |
| 3816 |
// SignalStrengthDbm: Signal strength RSSI value. |
| 3817 |
SignalStrengthDbm int64 `json:"signalStrengthDbm,omitempty"` |
| 3818 |
// ForceSendFields is a list of field names (e.g. "Guid") to unconditionally |
| 3819 |
// include in API requests. By default, fields with empty or default values are |
| 3820 |
// omitted from API requests. See |
| 3821 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3822 |
// details. |
| 3823 |
ForceSendFields []string `json:"-"` |
| 3824 |
// NullFields is a list of field names (e.g. "Guid") to include in API requests |
| 3825 |
// with the JSON null value. By default, fields with empty values are omitted |
| 3826 |
// from API requests. See |
| 3827 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3828 |
NullFields []string `json:"-"` |
| 3829 |
} |
| 3830 |
|
| 3831 |
func (s GoogleChromeManagementV1TelemetryNetworkSignalStrengthEvent) MarshalJSON() ([]byte, error) { |
| 3832 |
type NoMethod GoogleChromeManagementV1TelemetryNetworkSignalStrengthEvent |
| 3833 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3834 |
} |
| 3835 |
|
| 3836 |
// GoogleChromeManagementV1TelemetryNotificationConfig: Configuration to |
| 3837 |
// receive notifications of telemetry data. |
| 3838 |
type GoogleChromeManagementV1TelemetryNotificationConfig struct { |
| 3839 |
// Customer: Output only. Google Workspace customer that owns the resource. |
| 3840 |
Customer string `json:"customer,omitempty"` |
| 3841 |
// Filter: Only send notifications for telemetry data matching this filter. |
| 3842 |
Filter *GoogleChromeManagementV1TelemetryNotificationFilter `json:"filter,omitempty"` |
| 3843 |
// GoogleCloudPubsubTopic: The pubsub topic to which notifications are |
| 3844 |
// published to. |
| 3845 |
GoogleCloudPubsubTopic string `json:"googleCloudPubsubTopic,omitempty"` |
| 3846 |
// Name: Output only. Resource name of the notification configuration. |
| 3847 |
Name string `json:"name,omitempty"` |
| 3848 |
|
| 3849 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 3850 |
googleapi.ServerResponse `json:"-"` |
| 3851 |
// ForceSendFields is a list of field names (e.g. "Customer") to |
| 3852 |
// unconditionally include in API requests. By default, fields with empty or |
| 3853 |
// default values are omitted from API requests. See |
| 3854 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3855 |
// details. |
| 3856 |
ForceSendFields []string `json:"-"` |
| 3857 |
// NullFields is a list of field names (e.g. "Customer") to include in API |
| 3858 |
// requests with the JSON null value. By default, fields with empty values are |
| 3859 |
// omitted from API requests. See |
| 3860 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3861 |
NullFields []string `json:"-"` |
| 3862 |
} |
| 3863 |
|
| 3864 |
func (s GoogleChromeManagementV1TelemetryNotificationConfig) MarshalJSON() ([]byte, error) { |
| 3865 |
type NoMethod GoogleChromeManagementV1TelemetryNotificationConfig |
| 3866 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3867 |
} |
| 3868 |
|
| 3869 |
// GoogleChromeManagementV1TelemetryNotificationFilter: Configures how the |
| 3870 |
// telemetry data should be filtered. |
| 3871 |
type GoogleChromeManagementV1TelemetryNotificationFilter struct { |
| 3872 |
// DeviceId: If set, only sends notifications for telemetry data coming from |
| 3873 |
// this device. |
| 3874 |
DeviceId string `json:"deviceId,omitempty"` |
| 3875 |
// DeviceOrgUnitId: If set, only sends notifications for telemetry data coming |
| 3876 |
// from devices in this org unit. |
| 3877 |
DeviceOrgUnitId string `json:"deviceOrgUnitId,omitempty"` |
| 3878 |
// TelemetryEventNotificationFilter: Only sends notifications for the telemetry |
| 3879 |
// events matching this filter. |
| 3880 |
TelemetryEventNotificationFilter *GoogleChromeManagementV1TelemetryEventNotificationFilter `json:"telemetryEventNotificationFilter,omitempty"` |
| 3881 |
// UserEmail: If set, only sends notifications for telemetry data coming from |
| 3882 |
// devices owned by this user. |
| 3883 |
UserEmail string `json:"userEmail,omitempty"` |
| 3884 |
// UserOrgUnitId: If set, only sends notifications for telemetry data coming |
| 3885 |
// from devices owned by users in this org unit. |
| 3886 |
UserOrgUnitId string `json:"userOrgUnitId,omitempty"` |
| 3887 |
// ForceSendFields is a list of field names (e.g. "DeviceId") to |
| 3888 |
// unconditionally include in API requests. By default, fields with empty or |
| 3889 |
// default values are omitted from API requests. See |
| 3890 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3891 |
// details. |
| 3892 |
ForceSendFields []string `json:"-"` |
| 3893 |
// NullFields is a list of field names (e.g. "DeviceId") to include in API |
| 3894 |
// requests with the JSON null value. By default, fields with empty values are |
| 3895 |
// omitted from API requests. See |
| 3896 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3897 |
NullFields []string `json:"-"` |
| 3898 |
} |
| 3899 |
|
| 3900 |
func (s GoogleChromeManagementV1TelemetryNotificationFilter) MarshalJSON() ([]byte, error) { |
| 3901 |
type NoMethod GoogleChromeManagementV1TelemetryNotificationFilter |
| 3902 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3903 |
} |
| 3904 |
|
| 3905 |
// GoogleChromeManagementV1TelemetryOsCrashEvent: OS crash data. |
| 3906 |
type GoogleChromeManagementV1TelemetryOsCrashEvent struct { |
| 3907 |
// CrashId: Crash id. |
| 3908 |
CrashId string `json:"crashId,omitempty"` |
| 3909 |
// CrashType: Crash type. |
| 3910 |
// |
| 3911 |
// Possible values: |
| 3912 |
// "CRASH_TYPE_UNSPECIFIED" - Crash type unknown. |
| 3913 |
// "CRASH_TYPE_KERNEL" - Kernel crash. |
| 3914 |
// "CRASH_TYPE_EMBEDDED_CONTROLLER" - Embedded controller crash. |
| 3915 |
CrashType string `json:"crashType,omitempty"` |
| 3916 |
// SessionType: Session type. |
| 3917 |
// |
| 3918 |
// Possible values: |
| 3919 |
// "SESSION_TYPE_UNSPECIFIED" - Session type unknown. |
| 3920 |
// "SESSION_TYPE_SIGNED_IN_USER" - Signed in user. |
| 3921 |
// "SESSION_TYPE_KIOSK" - Kiosk. |
| 3922 |
// "SESSION_TYPE_MANAGED_GUEST" - Managed guest session. |
| 3923 |
// "SESSION_TYPE_ACTIVE_DIRECTORY" - Active directory session. |
| 3924 |
SessionType string `json:"sessionType,omitempty"` |
| 3925 |
// ForceSendFields is a list of field names (e.g. "CrashId") to unconditionally |
| 3926 |
// include in API requests. By default, fields with empty or default values are |
| 3927 |
// omitted from API requests. See |
| 3928 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3929 |
// details. |
| 3930 |
ForceSendFields []string `json:"-"` |
| 3931 |
// NullFields is a list of field names (e.g. "CrashId") to include in API |
| 3932 |
// requests with the JSON null value. By default, fields with empty values are |
| 3933 |
// omitted from API requests. See |
| 3934 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3935 |
NullFields []string `json:"-"` |
| 3936 |
} |
| 3937 |
|
| 3938 |
func (s GoogleChromeManagementV1TelemetryOsCrashEvent) MarshalJSON() ([]byte, error) { |
| 3939 |
type NoMethod GoogleChromeManagementV1TelemetryOsCrashEvent |
| 3940 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3941 |
} |
| 3942 |
|
| 3943 |
// GoogleChromeManagementV1TelemetryUsbPeripheralsEvent: |
| 3944 |
// `TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or |
| 3945 |
// removed. * Granular permission needed: TELEMETRY_API_PERIPHERALS_REPORT |
| 3946 |
type GoogleChromeManagementV1TelemetryUsbPeripheralsEvent struct { |
| 3947 |
// UsbPeripheralReport: List of usb devices that were either added or removed. |
| 3948 |
UsbPeripheralReport []*GoogleChromeManagementV1UsbPeripheralReport `json:"usbPeripheralReport,omitempty"` |
| 3949 |
// ForceSendFields is a list of field names (e.g. "UsbPeripheralReport") to |
| 3950 |
// unconditionally include in API requests. By default, fields with empty or |
| 3951 |
// default values are omitted from API requests. See |
| 3952 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3953 |
// details. |
| 3954 |
ForceSendFields []string `json:"-"` |
| 3955 |
// NullFields is a list of field names (e.g. "UsbPeripheralReport") to include |
| 3956 |
// in API requests with the JSON null value. By default, fields with empty |
| 3957 |
// values are omitted from API requests. See |
| 3958 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3959 |
NullFields []string `json:"-"` |
| 3960 |
} |
| 3961 |
|
| 3962 |
func (s GoogleChromeManagementV1TelemetryUsbPeripheralsEvent) MarshalJSON() ([]byte, error) { |
| 3963 |
type NoMethod GoogleChromeManagementV1TelemetryUsbPeripheralsEvent |
| 3964 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 3965 |
} |
| 3966 |
|
| 3967 |
// GoogleChromeManagementV1TelemetryUser: Telemetry data collected from a |
| 3968 |
// managed user. * Granular permission needed: TELEMETRY_API_USER |
| 3969 |
type GoogleChromeManagementV1TelemetryUser struct { |
| 3970 |
// Customer: G Suite Customer whose enterprise enrolled the device. |
| 3971 |
Customer string `json:"customer,omitempty"` |
| 3972 |
// Name: Resource name of the user. |
| 3973 |
Name string `json:"name,omitempty"` |
| 3974 |
// OrgUnitId: Organization unit of the user. |
| 3975 |
OrgUnitId string `json:"orgUnitId,omitempty"` |
| 3976 |
// UserDevice: Telemetry data collected from a managed user and device. |
| 3977 |
UserDevice []*GoogleChromeManagementV1TelemetryUserDevice `json:"userDevice,omitempty"` |
| 3978 |
// UserEmail: Email address of the user. |
| 3979 |
UserEmail string `json:"userEmail,omitempty"` |
| 3980 |
// UserId: Directory ID of the user. |
| 3981 |
UserId string `json:"userId,omitempty"` |
| 3982 |
|
| 3983 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 3984 |
googleapi.ServerResponse `json:"-"` |
| 3985 |
// ForceSendFields is a list of field names (e.g. "Customer") to |
| 3986 |
// unconditionally include in API requests. By default, fields with empty or |
| 3987 |
// default values are omitted from API requests. See |
| 3988 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 3989 |
// details. |
| 3990 |
ForceSendFields []string `json:"-"` |
| 3991 |
// NullFields is a list of field names (e.g. "Customer") to include in API |
| 3992 |
// requests with the JSON null value. By default, fields with empty values are |
| 3993 |
// omitted from API requests. See |
| 3994 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 3995 |
NullFields []string `json:"-"` |
| 3996 |
} |
| 3997 |
|
| 3998 |
func (s GoogleChromeManagementV1TelemetryUser) MarshalJSON() ([]byte, error) { |
| 3999 |
type NoMethod GoogleChromeManagementV1TelemetryUser |
| 4000 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4001 |
} |
| 4002 |
|
| 4003 |
// GoogleChromeManagementV1TelemetryUserDevice: Telemetry data collected for a |
| 4004 |
// managed user and device. * Granular permission needed: TELEMETRY_API_DEVICE |
| 4005 |
type GoogleChromeManagementV1TelemetryUserDevice struct { |
| 4006 |
// AppReport: Output only. App reports collected periodically sorted in a |
| 4007 |
// decreasing order of report_time. |
| 4008 |
AppReport []*GoogleChromeManagementV1AppReport `json:"appReport,omitempty"` |
| 4009 |
// AudioStatusReport: Output only. Audio reports collected periodically sorted |
| 4010 |
// in a decreasing order of report_time. |
| 4011 |
AudioStatusReport []*GoogleChromeManagementV1AudioStatusReport `json:"audioStatusReport,omitempty"` |
| 4012 |
// DeviceActivityReport: Output only. Device activity reports collected |
| 4013 |
// periodically sorted in a decreasing order of report_time. |
| 4014 |
DeviceActivityReport []*GoogleChromeManagementV1DeviceActivityReport `json:"deviceActivityReport,omitempty"` |
| 4015 |
// DeviceId: The unique Directory API ID of the device. This value is the same |
| 4016 |
// as the Admin Console's Directory API ID in the ChromeOS Devices tab. |
| 4017 |
DeviceId string `json:"deviceId,omitempty"` |
| 4018 |
// NetworkBandwidthReport: Output only. Network bandwidth reports collected |
| 4019 |
// periodically sorted in a decreasing order of report_time. |
| 4020 |
NetworkBandwidthReport []*GoogleChromeManagementV1NetworkBandwidthReport `json:"networkBandwidthReport,omitempty"` |
| 4021 |
// PeripheralsReport: Output only. Peripherals reports collected periodically |
| 4022 |
// sorted in a decreasing order of report_time. |
| 4023 |
PeripheralsReport []*GoogleChromeManagementV1PeripheralsReport `json:"peripheralsReport,omitempty"` |
| 4024 |
// ForceSendFields is a list of field names (e.g. "AppReport") to |
| 4025 |
// unconditionally include in API requests. By default, fields with empty or |
| 4026 |
// default values are omitted from API requests. See |
| 4027 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4028 |
// details. |
| 4029 |
ForceSendFields []string `json:"-"` |
| 4030 |
// NullFields is a list of field names (e.g. "AppReport") to include in API |
| 4031 |
// requests with the JSON null value. By default, fields with empty values are |
| 4032 |
// omitted from API requests. See |
| 4033 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4034 |
NullFields []string `json:"-"` |
| 4035 |
} |
| 4036 |
|
| 4037 |
func (s GoogleChromeManagementV1TelemetryUserDevice) MarshalJSON() ([]byte, error) { |
| 4038 |
type NoMethod GoogleChromeManagementV1TelemetryUserDevice |
| 4039 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4040 |
} |
| 4041 |
|
| 4042 |
// GoogleChromeManagementV1TelemetryUserInfo: Information about a user |
| 4043 |
// associated with telemetry data. * Granular permission needed: |
| 4044 |
// TELEMETRY_API_USER |
| 4045 |
type GoogleChromeManagementV1TelemetryUserInfo struct { |
| 4046 |
// Email: Output only. User's email. |
| 4047 |
Email string `json:"email,omitempty"` |
| 4048 |
// OrgUnitId: Output only. Organization unit ID of the user. |
| 4049 |
OrgUnitId string `json:"orgUnitId,omitempty"` |
| 4050 |
// ForceSendFields is a list of field names (e.g. "Email") to unconditionally |
| 4051 |
// include in API requests. By default, fields with empty or default values are |
| 4052 |
// omitted from API requests. See |
| 4053 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4054 |
// details. |
| 4055 |
ForceSendFields []string `json:"-"` |
| 4056 |
// NullFields is a list of field names (e.g. "Email") to include in API |
| 4057 |
// requests with the JSON null value. By default, fields with empty values are |
| 4058 |
// omitted from API requests. See |
| 4059 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4060 |
NullFields []string `json:"-"` |
| 4061 |
} |
| 4062 |
|
| 4063 |
func (s GoogleChromeManagementV1TelemetryUserInfo) MarshalJSON() ([]byte, error) { |
| 4064 |
type NoMethod GoogleChromeManagementV1TelemetryUserInfo |
| 4065 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4066 |
} |
| 4067 |
|
| 4068 |
// GoogleChromeManagementV1ThunderboltInfo: Thunderbolt bus info. * This field |
| 4069 |
// provides device information, which is static and will not change over time. |
| 4070 |
// * Data for this field is controlled via policy: ReportDeviceSecurityStatus |
| 4071 |
// (https://chromeenterprise.google/policies/#ReportDeviceSecurityStatus) * |
| 4072 |
// Data Collection Frequency: At device startup * Default Data Reporting |
| 4073 |
// Frequency: At device startup - Policy Controlled: No * Cache: If the device |
| 4074 |
// is offline, the collected data is stored locally, and will be reported when |
| 4075 |
// the device is next online: Yes * Reported for affiliated users only: N/A * |
| 4076 |
// Granular permission needed: TELEMETRY_API_BUS_DEVICE_INFO |
| 4077 |
type GoogleChromeManagementV1ThunderboltInfo struct { |
| 4078 |
// SecurityLevel: Security level of the Thunderbolt bus. |
| 4079 |
// |
| 4080 |
// Possible values: |
| 4081 |
// "THUNDERBOLT_SECURITY_LEVEL_UNSPECIFIED" - Thunderbolt security level is |
| 4082 |
// not set. |
| 4083 |
// "THUNDERBOLT_SECURITY_NONE_LEVEL" - All devices are automatically |
| 4084 |
// connected by the firmware. No user approval is needed. |
| 4085 |
// "THUNDERBOLT_SECURITY_USER_LEVEL" - User is asked whether the device is |
| 4086 |
// allowed to be connected. |
| 4087 |
// "THUNDERBOLT_SECURITY_SECURE_LEVEL" - User is asked whether the device is |
| 4088 |
// allowed to be connected. In addition the device is sent a challenge that |
| 4089 |
// should match the expected one based on a random key written to the key sysfs |
| 4090 |
// attribute |
| 4091 |
// "THUNDERBOLT_SECURITY_DP_ONLY_LEVEL" - The firmware automatically creates |
| 4092 |
// tunnels for Thunderbolt. |
| 4093 |
// "THUNDERBOLT_SECURITY_USB_ONLY_LEVEL" - The firmware automatically creates |
| 4094 |
// tunnels for the USB controller and Display Port in a dock. All PCIe links |
| 4095 |
// downstream of the dock are removed. |
| 4096 |
// "THUNDERBOLT_SECURITY_NO_PCIE_LEVEL" - PCIE tunneling is disabled. |
| 4097 |
SecurityLevel string `json:"securityLevel,omitempty"` |
| 4098 |
// ForceSendFields is a list of field names (e.g. "SecurityLevel") to |
| 4099 |
// unconditionally include in API requests. By default, fields with empty or |
| 4100 |
// default values are omitted from API requests. See |
| 4101 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4102 |
// details. |
| 4103 |
ForceSendFields []string `json:"-"` |
| 4104 |
// NullFields is a list of field names (e.g. "SecurityLevel") to include in API |
| 4105 |
// requests with the JSON null value. By default, fields with empty values are |
| 4106 |
// omitted from API requests. See |
| 4107 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4108 |
NullFields []string `json:"-"` |
| 4109 |
} |
| 4110 |
|
| 4111 |
func (s GoogleChromeManagementV1ThunderboltInfo) MarshalJSON() ([]byte, error) { |
| 4112 |
type NoMethod GoogleChromeManagementV1ThunderboltInfo |
| 4113 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4114 |
} |
| 4115 |
|
| 4116 |
// GoogleChromeManagementV1TotalMemoryEncryptionInfo: Memory encryption |
| 4117 |
// information of a device. * This field provides device information, which is |
| 4118 |
// static and will not change over time. * Data for this field is controlled |
| 4119 |
// via policy: ReportDeviceMemoryInfo |
| 4120 |
// (https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data |
| 4121 |
// Collection Frequency: At device startup * Default Data Reporting Frequency: |
| 4122 |
// At device startup - Policy Controlled: Yes * Cache: If the device is |
| 4123 |
// offline, the collected data is stored locally, and will be reported when the |
| 4124 |
// device is next online: Yes * Reported for affiliated users only: N/A |
| 4125 |
type GoogleChromeManagementV1TotalMemoryEncryptionInfo struct { |
| 4126 |
// EncryptionAlgorithm: Memory encryption algorithm. |
| 4127 |
// |
| 4128 |
// Possible values: |
| 4129 |
// "MEMORY_ENCRYPTION_ALGORITHM_UNSPECIFIED" - Memory encryption algorithm is |
| 4130 |
// not set. |
| 4131 |
// "MEMORY_ENCRYPTION_ALGORITHM_UNKNOWN" - The memory encryption algorithm |
| 4132 |
// being used is unknown. |
| 4133 |
// "MEMORY_ENCRYPTION_ALGORITHM_AES_XTS_128" - The memory encryption |
| 4134 |
// algorithm is using the AES_XTS encryption algorithm with a 128 bit block |
| 4135 |
// cypher. |
| 4136 |
// "MEMORY_ENCRYPTION_ALGORITHM_AES_XTS_256" - The memory encryption |
| 4137 |
// algorithm is using the AES_XTS encryption algorithm with a 256 bit block |
| 4138 |
// cypher. |
| 4139 |
EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"` |
| 4140 |
// EncryptionState: The state of memory encryption on the device. |
| 4141 |
// |
| 4142 |
// Possible values: |
| 4143 |
// "MEMORY_ENCRYPTION_STATE_UNSPECIFIED" - Memory encryption state is not |
| 4144 |
// set. |
| 4145 |
// "MEMORY_ENCRYPTION_STATE_UNKNOWN" - The memory encryption state is |
| 4146 |
// unknown. |
| 4147 |
// "MEMORY_ENCRYPTION_STATE_DISABLED" - Memory encrpytion on the device is |
| 4148 |
// disabled. |
| 4149 |
// "MEMORY_ENCRYPTION_STATE_TME" - Memory encryption on the device uses total |
| 4150 |
// memory encryption. |
| 4151 |
// "MEMORY_ENCRYPTION_STATE_MKTME" - Memory encryption on the device uses |
| 4152 |
// multi-key total memory encryption. |
| 4153 |
EncryptionState string `json:"encryptionState,omitempty"` |
| 4154 |
// KeyLength: The length of the encryption keys. |
| 4155 |
KeyLength int64 `json:"keyLength,omitempty,string"` |
| 4156 |
// MaxKeys: The maximum number of keys that can be used for encryption. |
| 4157 |
MaxKeys int64 `json:"maxKeys,omitempty,string"` |
| 4158 |
// ForceSendFields is a list of field names (e.g. "EncryptionAlgorithm") to |
| 4159 |
// unconditionally include in API requests. By default, fields with empty or |
| 4160 |
// default values are omitted from API requests. See |
| 4161 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4162 |
// details. |
| 4163 |
ForceSendFields []string `json:"-"` |
| 4164 |
// NullFields is a list of field names (e.g. "EncryptionAlgorithm") to include |
| 4165 |
// in API requests with the JSON null value. By default, fields with empty |
| 4166 |
// values are omitted from API requests. See |
| 4167 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4168 |
NullFields []string `json:"-"` |
| 4169 |
} |
| 4170 |
|
| 4171 |
func (s GoogleChromeManagementV1TotalMemoryEncryptionInfo) MarshalJSON() ([]byte, error) { |
| 4172 |
type NoMethod GoogleChromeManagementV1TotalMemoryEncryptionInfo |
| 4173 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4174 |
} |
| 4175 |
|
| 4176 |
// GoogleChromeManagementV1TouchScreenDevice: Information of an internal touch |
| 4177 |
// screen device. |
| 4178 |
type GoogleChromeManagementV1TouchScreenDevice struct { |
| 4179 |
// DisplayName: Output only. Touch screen device display name. |
| 4180 |
DisplayName string `json:"displayName,omitempty"` |
| 4181 |
// StylusCapable: Output only. Touch screen device is stylus capable or not. |
| 4182 |
StylusCapable bool `json:"stylusCapable,omitempty"` |
| 4183 |
// TouchPointCount: Output only. Number of touch points supported on the |
| 4184 |
// device. |
| 4185 |
TouchPointCount int64 `json:"touchPointCount,omitempty"` |
| 4186 |
// ForceSendFields is a list of field names (e.g. "DisplayName") to |
| 4187 |
// unconditionally include in API requests. By default, fields with empty or |
| 4188 |
// default values are omitted from API requests. See |
| 4189 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4190 |
// details. |
| 4191 |
ForceSendFields []string `json:"-"` |
| 4192 |
// NullFields is a list of field names (e.g. "DisplayName") to include in API |
| 4193 |
// requests with the JSON null value. By default, fields with empty values are |
| 4194 |
// omitted from API requests. See |
| 4195 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4196 |
NullFields []string `json:"-"` |
| 4197 |
} |
| 4198 |
|
| 4199 |
func (s GoogleChromeManagementV1TouchScreenDevice) MarshalJSON() ([]byte, error) { |
| 4200 |
type NoMethod GoogleChromeManagementV1TouchScreenDevice |
| 4201 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4202 |
} |
| 4203 |
|
| 4204 |
// GoogleChromeManagementV1TouchScreenInfo: Information on the device touch |
| 4205 |
// screen. |
| 4206 |
type GoogleChromeManagementV1TouchScreenInfo struct { |
| 4207 |
// Devices: Output only. List of the internal touch screen devices. |
| 4208 |
Devices []*GoogleChromeManagementV1TouchScreenDevice `json:"devices,omitempty"` |
| 4209 |
// TouchpadLibrary: Output only. Touchpad library name used by the input stack. |
| 4210 |
TouchpadLibrary string `json:"touchpadLibrary,omitempty"` |
| 4211 |
// ForceSendFields is a list of field names (e.g. "Devices") to unconditionally |
| 4212 |
// include in API requests. By default, fields with empty or default values are |
| 4213 |
// omitted from API requests. See |
| 4214 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4215 |
// details. |
| 4216 |
ForceSendFields []string `json:"-"` |
| 4217 |
// NullFields is a list of field names (e.g. "Devices") to include in API |
| 4218 |
// requests with the JSON null value. By default, fields with empty values are |
| 4219 |
// omitted from API requests. See |
| 4220 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4221 |
NullFields []string `json:"-"` |
| 4222 |
} |
| 4223 |
|
| 4224 |
func (s GoogleChromeManagementV1TouchScreenInfo) MarshalJSON() ([]byte, error) { |
| 4225 |
type NoMethod GoogleChromeManagementV1TouchScreenInfo |
| 4226 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4227 |
} |
| 4228 |
|
| 4229 |
// GoogleChromeManagementV1UsbPeripheralReport: USB connected peripheral |
| 4230 |
// report. |
| 4231 |
type GoogleChromeManagementV1UsbPeripheralReport struct { |
| 4232 |
// Categories: Output only. Categories the device belongs to |
| 4233 |
// https://www.usb.org/defined-class-codes |
| 4234 |
Categories []string `json:"categories,omitempty"` |
| 4235 |
// ClassId: Output only. Class ID https://www.usb.org/defined-class-codes |
| 4236 |
ClassId int64 `json:"classId,omitempty"` |
| 4237 |
// FirmwareVersion: Output only. Firmware version |
| 4238 |
FirmwareVersion string `json:"firmwareVersion,omitempty"` |
| 4239 |
// Name: Output only. Device name, model name, or product name |
| 4240 |
Name string `json:"name,omitempty"` |
| 4241 |
// Pid: Output only. Product ID |
| 4242 |
Pid int64 `json:"pid,omitempty"` |
| 4243 |
// SubclassId: Output only. Subclass ID https://www.usb.org/defined-class-codes |
| 4244 |
SubclassId int64 `json:"subclassId,omitempty"` |
| 4245 |
// Vendor: Output only. Vendor name |
| 4246 |
Vendor string `json:"vendor,omitempty"` |
| 4247 |
// Vid: Output only. Vendor ID |
| 4248 |
Vid int64 `json:"vid,omitempty"` |
| 4249 |
// ForceSendFields is a list of field names (e.g. "Categories") to |
| 4250 |
// unconditionally include in API requests. By default, fields with empty or |
| 4251 |
// default values are omitted from API requests. See |
| 4252 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4253 |
// details. |
| 4254 |
ForceSendFields []string `json:"-"` |
| 4255 |
// NullFields is a list of field names (e.g. "Categories") to include in API |
| 4256 |
// requests with the JSON null value. By default, fields with empty values are |
| 4257 |
// omitted from API requests. See |
| 4258 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4259 |
NullFields []string `json:"-"` |
| 4260 |
} |
| 4261 |
|
| 4262 |
func (s GoogleChromeManagementV1UsbPeripheralReport) MarshalJSON() ([]byte, error) { |
| 4263 |
type NoMethod GoogleChromeManagementV1UsbPeripheralReport |
| 4264 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4265 |
} |
| 4266 |
|
| 4267 |
// GoogleChromeManagementV1UserPrintReport: Report for CountPrintJobsByUser, |
| 4268 |
// contains printing statistics for a user. Contains the number of printers, |
| 4269 |
// the number of devices used to initiate print jobs, and the number of print |
| 4270 |
// jobs initiated. |
| 4271 |
type GoogleChromeManagementV1UserPrintReport struct { |
| 4272 |
// DeviceCount: Number of chrome devices that have been used to initiate print |
| 4273 |
// jobs by the user. |
| 4274 |
DeviceCount int64 `json:"deviceCount,omitempty,string"` |
| 4275 |
// JobCount: Number of print jobs initiated by the user. |
| 4276 |
JobCount int64 `json:"jobCount,omitempty,string"` |
| 4277 |
// PrinterCount: Number of printers used by the user. |
| 4278 |
PrinterCount int64 `json:"printerCount,omitempty,string"` |
| 4279 |
// UserEmail: The primary e-mail address of the user. |
| 4280 |
UserEmail string `json:"userEmail,omitempty"` |
| 4281 |
// UserId: The unique Directory API ID of the user. |
| 4282 |
UserId string `json:"userId,omitempty"` |
| 4283 |
// ForceSendFields is a list of field names (e.g. "DeviceCount") to |
| 4284 |
// unconditionally include in API requests. By default, fields with empty or |
| 4285 |
// default values are omitted from API requests. See |
| 4286 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4287 |
// details. |
| 4288 |
ForceSendFields []string `json:"-"` |
| 4289 |
// NullFields is a list of field names (e.g. "DeviceCount") to include in API |
| 4290 |
// requests with the JSON null value. By default, fields with empty values are |
| 4291 |
// omitted from API requests. See |
| 4292 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4293 |
NullFields []string `json:"-"` |
| 4294 |
} |
| 4295 |
|
| 4296 |
func (s GoogleChromeManagementV1UserPrintReport) MarshalJSON() ([]byte, error) { |
| 4297 |
type NoMethod GoogleChromeManagementV1UserPrintReport |
| 4298 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4299 |
} |
| 4300 |
|
| 4301 |
// GoogleChromeManagementV1UserRequestingExtensionDetails: Details of a user |
| 4302 |
// requesting an extension, including the email and the justification. |
| 4303 |
type GoogleChromeManagementV1UserRequestingExtensionDetails struct { |
| 4304 |
// Email: The e-mail address of a user that has requested the extension. |
| 4305 |
Email string `json:"email,omitempty"` |
| 4306 |
// Justification: Request justification as entered by the user. |
| 4307 |
Justification string `json:"justification,omitempty"` |
| 4308 |
// ForceSendFields is a list of field names (e.g. "Email") to unconditionally |
| 4309 |
// include in API requests. By default, fields with empty or default values are |
| 4310 |
// omitted from API requests. See |
| 4311 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4312 |
// details. |
| 4313 |
ForceSendFields []string `json:"-"` |
| 4314 |
// NullFields is a list of field names (e.g. "Email") to include in API |
| 4315 |
// requests with the JSON null value. By default, fields with empty values are |
| 4316 |
// omitted from API requests. See |
| 4317 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4318 |
NullFields []string `json:"-"` |
| 4319 |
} |
| 4320 |
|
| 4321 |
func (s GoogleChromeManagementV1UserRequestingExtensionDetails) MarshalJSON() ([]byte, error) { |
| 4322 |
type NoMethod GoogleChromeManagementV1UserRequestingExtensionDetails |
| 4323 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4324 |
} |
| 4325 |
|
| 4326 |
// GoogleChromeManagementVersionsV1AttestationCredential: Information of public |
| 4327 |
// key associated with a Chrome browser profile. |
| 4328 |
type GoogleChromeManagementVersionsV1AttestationCredential struct { |
| 4329 |
// KeyRotationTime: Output only. Latest rotation timestamp of the public key |
| 4330 |
// rotation. |
| 4331 |
KeyRotationTime string `json:"keyRotationTime,omitempty"` |
| 4332 |
// KeyTrustLevel: Output only. Trust level of the public key. |
| 4333 |
// |
| 4334 |
// Possible values: |
| 4335 |
// "KEY_TRUST_LEVEL_UNSPECIFIED" - Represents an unspecified public key trust |
| 4336 |
// level. |
| 4337 |
// "CHROME_BROWSER_HW_KEY" - Represents a HW key. |
| 4338 |
// "CHROME_BROWSER_OS_KEY" - Represents an OS key. |
| 4339 |
KeyTrustLevel string `json:"keyTrustLevel,omitempty"` |
| 4340 |
// KeyType: Output only. Type of the public key. |
| 4341 |
// |
| 4342 |
// Possible values: |
| 4343 |
// "KEY_TYPE_UNSPECIFIED" - Represents an unspecified public key type. |
| 4344 |
// "RSA_KEY" - Represents a RSA key. |
| 4345 |
// "EC_KEY" - Represents an EC key. |
| 4346 |
KeyType string `json:"keyType,omitempty"` |
| 4347 |
// PublicKey: Output only. Value of the public key. |
| 4348 |
PublicKey string `json:"publicKey,omitempty"` |
| 4349 |
// ForceSendFields is a list of field names (e.g. "KeyRotationTime") to |
| 4350 |
// unconditionally include in API requests. By default, fields with empty or |
| 4351 |
// default values are omitted from API requests. See |
| 4352 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4353 |
// details. |
| 4354 |
ForceSendFields []string `json:"-"` |
| 4355 |
// NullFields is a list of field names (e.g. "KeyRotationTime") to include in |
| 4356 |
// API requests with the JSON null value. By default, fields with empty values |
| 4357 |
// are omitted from API requests. See |
| 4358 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4359 |
NullFields []string `json:"-"` |
| 4360 |
} |
| 4361 |
|
| 4362 |
func (s GoogleChromeManagementVersionsV1AttestationCredential) MarshalJSON() ([]byte, error) { |
| 4363 |
type NoMethod GoogleChromeManagementVersionsV1AttestationCredential |
| 4364 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4365 |
} |
| 4366 |
|
| 4367 |
// GoogleChromeManagementVersionsV1CertificateProvisioningProcess: A |
| 4368 |
// certificate provisioning process. |
| 4369 |
type GoogleChromeManagementVersionsV1CertificateProvisioningProcess struct { |
| 4370 |
// ChromeOsDevice: Output only. The client certificate is being provisioned for |
| 4371 |
// a ChromeOS device. This contains information about the device. |
| 4372 |
ChromeOsDevice *GoogleChromeManagementVersionsV1ChromeOsDevice `json:"chromeOsDevice,omitempty"` |
| 4373 |
// ChromeOsUserSession: Output only. The client certificate is being |
| 4374 |
// provisioned for a ChromeOS user. This contains information about the current |
| 4375 |
// user session. |
| 4376 |
ChromeOsUserSession *GoogleChromeManagementVersionsV1ChromeOsUserSession `json:"chromeOsUserSession,omitempty"` |
| 4377 |
// FailureMessage: Output only. A message describing why this |
| 4378 |
// `CertificateProvisioningProcess` has failed. Presence of this field |
| 4379 |
// indicates that the `CertificateProvisioningProcess` has failed. |
| 4380 |
FailureMessage string `json:"failureMessage,omitempty"` |
| 4381 |
// GenericCaConnection: Output only. The CA connection is a generic CA |
| 4382 |
// connection. |
| 4383 |
GenericCaConnection *GoogleChromeManagementVersionsV1GenericCaConnection `json:"genericCaConnection,omitempty"` |
| 4384 |
// GenericProfile: Output only. The profile is a generic certificate |
| 4385 |
// provisioning profile. |
| 4386 |
GenericProfile *GoogleChromeManagementVersionsV1GenericProfile `json:"genericProfile,omitempty"` |
| 4387 |
// IssuedCertificate: Output only. The issued certificate for this |
| 4388 |
// `CertificateProvisioningProcess` in PEM format. |
| 4389 |
IssuedCertificate string `json:"issuedCertificate,omitempty"` |
| 4390 |
// Name: Identifier. Resource name of the `CertificateProvisioningProcess`. The |
| 4391 |
// name pattern is given as |
| 4392 |
// `customers/{customer}/certificateProvisioningProcesses/{certificate_provision |
| 4393 |
// ing_process}` with `{customer}` being the obfuscated customer id and |
| 4394 |
// `{certificate_provisioning_process}` being the certificate provisioning |
| 4395 |
// process id. |
| 4396 |
Name string `json:"name,omitempty"` |
| 4397 |
// ProvisioningProfileId: Output only. The ID of the certificate provisioning |
| 4398 |
// profile. |
| 4399 |
ProvisioningProfileId string `json:"provisioningProfileId,omitempty"` |
| 4400 |
// ScepCaConnection: Output only. The CA connection is a SCEP CA connection. |
| 4401 |
ScepCaConnection *GoogleChromeManagementVersionsV1ScepCaConnection `json:"scepCaConnection,omitempty"` |
| 4402 |
// ScepProfile: Output only. The profile is a SCEP certificate provisioning |
| 4403 |
// profile. |
| 4404 |
ScepProfile *GoogleChromeManagementVersionsV1ScepProfile `json:"scepProfile,omitempty"` |
| 4405 |
// SignData: Output only. The data that the client was asked to sign. This |
| 4406 |
// field is only present after the `SignData` operation has been initiated. |
| 4407 |
SignData string `json:"signData,omitempty"` |
| 4408 |
// Signature: Output only. The signature of `signature_algorithm`, generated |
| 4409 |
// using the client's private key using `signature_algorithm`. This field is |
| 4410 |
// only present after the `SignData` operation has finished. |
| 4411 |
Signature string `json:"signature,omitempty"` |
| 4412 |
// SignatureAlgorithm: Output only. The signature algorithm that the client and |
| 4413 |
// backend components use when processing `sign_data`. If the `profile_type` is |
| 4414 |
// a `GenericProfile`, this field will only be present after the `SignData` |
| 4415 |
// operation was initiated. If the `profile_type` is a `ScepProfile`, the field |
| 4416 |
// will always be present. |
| 4417 |
// |
| 4418 |
// Possible values: |
| 4419 |
// "SIGNATURE_ALGORITHM_UNSPECIFIED" - Default value. This value is unused. |
| 4420 |
// "SIGNATURE_ALGORITHM_RSA_PKCS1_V1_5_SHA256" - The server-side builds the |
| 4421 |
// PKCS#1 DigestInfo and sends a SHA256 hash of it to the client. The client |
| 4422 |
// should sign using RSA with PKCS#1 v1.5 padding. |
| 4423 |
// "SIGNATURE_ALGORITHM_ECDSA_SHA256" - The server-side builds the PKCS#1 |
| 4424 |
// DigestInfo and sends it unhashed to the client. The client is responsible |
| 4425 |
// for signing and hashing using the P-256 curve. |
| 4426 |
SignatureAlgorithm string `json:"signatureAlgorithm,omitempty"` |
| 4427 |
// StartTime: Output only. Server-generated timestamp of when the certificate |
| 4428 |
// provisioning process has been created. |
| 4429 |
StartTime string `json:"startTime,omitempty"` |
| 4430 |
// SubjectPublicKeyInfo: Output only. The public key for which a certificate |
| 4431 |
// should be provisioned. Represented as a DER-encoded X.509 |
| 4432 |
// SubjectPublicKeyInfo. |
| 4433 |
SubjectPublicKeyInfo string `json:"subjectPublicKeyInfo,omitempty"` |
| 4434 |
|
| 4435 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 4436 |
googleapi.ServerResponse `json:"-"` |
| 4437 |
// ForceSendFields is a list of field names (e.g. "ChromeOsDevice") to |
| 4438 |
// unconditionally include in API requests. By default, fields with empty or |
| 4439 |
// default values are omitted from API requests. See |
| 4440 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4441 |
// details. |
| 4442 |
ForceSendFields []string `json:"-"` |
| 4443 |
// NullFields is a list of field names (e.g. "ChromeOsDevice") to include in |
| 4444 |
// API requests with the JSON null value. By default, fields with empty values |
| 4445 |
// are omitted from API requests. See |
| 4446 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4447 |
NullFields []string `json:"-"` |
| 4448 |
} |
| 4449 |
|
| 4450 |
func (s GoogleChromeManagementVersionsV1CertificateProvisioningProcess) MarshalJSON() ([]byte, error) { |
| 4451 |
type NoMethod GoogleChromeManagementVersionsV1CertificateProvisioningProcess |
| 4452 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4453 |
} |
| 4454 |
|
| 4455 |
// GoogleChromeManagementVersionsV1ChromeBrowserProfile: A representation of a |
| 4456 |
// Chrome browser profile. |
| 4457 |
type GoogleChromeManagementVersionsV1ChromeBrowserProfile struct { |
| 4458 |
// AffiliationState: Output only. The specific affiliation state of the |
| 4459 |
// profile. |
| 4460 |
// |
| 4461 |
// Possible values: |
| 4462 |
// "AFFILIATION_STATE_UNSPECIFIED" - Unspecified affiliation state. |
| 4463 |
// "UNAFFILIATED_GENERIC" - Unaffiliated - but we do not have the details for |
| 4464 |
// the type of unaffiliated profile. |
| 4465 |
// "PROFILE_ONLY" - Unaffiliated - A managed profile that appears on a |
| 4466 |
// totally unamanaged browser. |
| 4467 |
// "UNAFFILIATED_LOCAL_MACHINE" - Unaffiliated - A managed profile that |
| 4468 |
// appears on a machine that is locally managed by a different organization |
| 4469 |
// (through platform management mechanisms like GPO). |
| 4470 |
// "UNAFFILIATED_CLOUD_MACHINE" - Unaffiliated - A managed profile that |
| 4471 |
// appears on a managed browser that is cloud managed by a different |
| 4472 |
// organization (using Chrome Browser Cloud Management). |
| 4473 |
// "AFFILIATED_CLOUD_MANAGED" - Affiliated - Both the profile and the managed |
| 4474 |
// browser are managed by the same organization. |
| 4475 |
AffiliationState string `json:"affiliationState,omitempty"` |
| 4476 |
// AnnotatedLocation: Optional. Location of the profile annotated by the admin. |
| 4477 |
AnnotatedLocation string `json:"annotatedLocation,omitempty"` |
| 4478 |
// AnnotatedUser: Optional. User of the profile annotated by the admin. |
| 4479 |
AnnotatedUser string `json:"annotatedUser,omitempty"` |
| 4480 |
// AttestationCredential: Output only. Attestation credential information of |
| 4481 |
// the profile. |
| 4482 |
AttestationCredential *GoogleChromeManagementVersionsV1AttestationCredential `json:"attestationCredential,omitempty"` |
| 4483 |
// BrowserChannel: Output only. Channel of the browser on which the profile |
| 4484 |
// exists. |
| 4485 |
BrowserChannel string `json:"browserChannel,omitempty"` |
| 4486 |
// BrowserVersion: Output only. Version of the browser on which the profile |
| 4487 |
// exists. |
| 4488 |
BrowserVersion string `json:"browserVersion,omitempty"` |
| 4489 |
// DeviceInfo: Output only. Basic information of the device on which the |
| 4490 |
// profile exists. This information is only available for the affiliated |
| 4491 |
// profiles. |
| 4492 |
DeviceInfo *GoogleChromeManagementVersionsV1DeviceInfo `json:"deviceInfo,omitempty"` |
| 4493 |
// DisplayName: Output only. Profile display name set by client. |
| 4494 |
DisplayName string `json:"displayName,omitempty"` |
| 4495 |
// Etag: Output only. Etag of this ChromeBrowserProfile resource. This etag can |
| 4496 |
// be used with UPDATE operation to ensure consistency. |
| 4497 |
Etag string `json:"etag,omitempty"` |
| 4498 |
// ExtensionCount: Output only. Number of extensions installed on the profile. |
| 4499 |
ExtensionCount int64 `json:"extensionCount,omitempty,string"` |
| 4500 |
// FirstEnrollmentTime: Output only. Timestamp of the first enrollment of the |
| 4501 |
// profile. |
| 4502 |
FirstEnrollmentTime string `json:"firstEnrollmentTime,omitempty"` |
| 4503 |
// IdentityProvider: Output only. Identify provider of the profile. |
| 4504 |
// |
| 4505 |
// Possible values: |
| 4506 |
// "IDENTITY_PROVIDER_UNSPECIFIED" - Represents an unspecified identity |
| 4507 |
// provider. |
| 4508 |
// "GOOGLE_IDENTITY_PROVIDER" - Represents a Google identity provider. |
| 4509 |
// "EXTERNAL_IDENTITY_PROVIDER" - Represents an external identity provider. |
| 4510 |
IdentityProvider string `json:"identityProvider,omitempty"` |
| 4511 |
// LastActivityTime: Output only. Timestamp of the latest activity by the |
| 4512 |
// profile. |
| 4513 |
LastActivityTime string `json:"lastActivityTime,omitempty"` |
| 4514 |
// LastPolicyFetchTime: Output only. Timestamp of the latest policy fetch by |
| 4515 |
// the profile. |
| 4516 |
LastPolicyFetchTime string `json:"lastPolicyFetchTime,omitempty"` |
| 4517 |
// LastPolicySyncTime: Output only. Timestamp of the latest policy sync by the |
| 4518 |
// profile. |
| 4519 |
LastPolicySyncTime string `json:"lastPolicySyncTime,omitempty"` |
| 4520 |
// LastStatusReportTime: Output only. Timestamp of the latest status report by |
| 4521 |
// the profile. |
| 4522 |
LastStatusReportTime string `json:"lastStatusReportTime,omitempty"` |
| 4523 |
// Name: Identifier. Format: |
| 4524 |
// customers/{customer_id}/profiles/{profile_permanent_id} |
| 4525 |
Name string `json:"name,omitempty"` |
| 4526 |
// OsPlatformType: Output only. OS platform of the device on which the profile |
| 4527 |
// exists. |
| 4528 |
OsPlatformType string `json:"osPlatformType,omitempty"` |
| 4529 |
// OsPlatformVersion: Output only. Major OS platform version of the device on |
| 4530 |
// which the profile exists, from profile reporting. |
| 4531 |
OsPlatformVersion string `json:"osPlatformVersion,omitempty"` |
| 4532 |
// OsVersion: Output only. OS version of the device on which the profile |
| 4533 |
// exists. |
| 4534 |
OsVersion string `json:"osVersion,omitempty"` |
| 4535 |
// PolicyCount: Output only. Number of policies applied on the profile. |
| 4536 |
PolicyCount int64 `json:"policyCount,omitempty,string"` |
| 4537 |
// ProfileId: Output only. Chrome client side profile ID. |
| 4538 |
ProfileId string `json:"profileId,omitempty"` |
| 4539 |
// ProfilePermanentId: Output only. Profile permanent ID is the unique |
| 4540 |
// identifier of a profile within one customer. |
| 4541 |
ProfilePermanentId string `json:"profilePermanentId,omitempty"` |
| 4542 |
// ReportingData: Output only. Detailed reporting data of the profile. This |
| 4543 |
// information is only available when the profile reporting policy is enabled. |
| 4544 |
ReportingData *GoogleChromeManagementVersionsV1ReportingData `json:"reportingData,omitempty"` |
| 4545 |
// SupportsFcmNotifications: Output only. Whether the profile supports FCM |
| 4546 |
// notifications. |
| 4547 |
SupportsFcmNotifications bool `json:"supportsFcmNotifications,omitempty"` |
| 4548 |
// UserEmail: Output only. Email address of the user to which the profile |
| 4549 |
// belongs. |
| 4550 |
UserEmail string `json:"userEmail,omitempty"` |
| 4551 |
// UserId: Output only. Unique Directory API ID of the user that can be used in |
| 4552 |
// Admin SDK Users API. |
| 4553 |
UserId string `json:"userId,omitempty"` |
| 4554 |
|
| 4555 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 4556 |
googleapi.ServerResponse `json:"-"` |
| 4557 |
// ForceSendFields is a list of field names (e.g. "AffiliationState") to |
| 4558 |
// unconditionally include in API requests. By default, fields with empty or |
| 4559 |
// default values are omitted from API requests. See |
| 4560 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4561 |
// details. |
| 4562 |
ForceSendFields []string `json:"-"` |
| 4563 |
// NullFields is a list of field names (e.g. "AffiliationState") to include in |
| 4564 |
// API requests with the JSON null value. By default, fields with empty values |
| 4565 |
// are omitted from API requests. See |
| 4566 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4567 |
NullFields []string `json:"-"` |
| 4568 |
} |
| 4569 |
|
| 4570 |
func (s GoogleChromeManagementVersionsV1ChromeBrowserProfile) MarshalJSON() ([]byte, error) { |
| 4571 |
type NoMethod GoogleChromeManagementVersionsV1ChromeBrowserProfile |
| 4572 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4573 |
} |
| 4574 |
|
| 4575 |
// GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand: A |
| 4576 |
// representation of a remote command for a Chrome browser profile. |
| 4577 |
type GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand struct { |
| 4578 |
// CommandResult: Output only. Result of the remote command. |
| 4579 |
CommandResult *GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult `json:"commandResult,omitempty"` |
| 4580 |
// CommandState: Output only. State of the remote command. |
| 4581 |
// |
| 4582 |
// Possible values: |
| 4583 |
// "COMMAND_STATE_UNSPECIFIED" - Represents an unspecified command state. |
| 4584 |
// "PENDING" - Represents a command in a pending state. |
| 4585 |
// "EXPIRED" - Represents a command that has expired. |
| 4586 |
// "EXECUTED_BY_CLIENT" - Represents a command that has been executed by the |
| 4587 |
// client. |
| 4588 |
CommandState string `json:"commandState,omitempty"` |
| 4589 |
// CommandType: Required. Type of the remote command. The only supported |
| 4590 |
// command_type is "clearBrowsingData". |
| 4591 |
CommandType string `json:"commandType,omitempty"` |
| 4592 |
// IssueTime: Output only. Timestamp of the issurance of the remote command. |
| 4593 |
IssueTime string `json:"issueTime,omitempty"` |
| 4594 |
// Name: Identifier. Format: |
| 4595 |
// customers/{customer_id}/profiles/{profile_permanent_id}/commands/{command_id} |
| 4596 |
Name string `json:"name,omitempty"` |
| 4597 |
// Payload: Required. Payload of the remote command. The payload for |
| 4598 |
// "clearBrowsingData" command supports: - fields "clearCache" and |
| 4599 |
// "clearCookies" - values of boolean type. |
| 4600 |
Payload googleapi.RawMessage `json:"payload,omitempty"` |
| 4601 |
// ValidDuration: Output only. Valid duration of the remote command. |
| 4602 |
ValidDuration string `json:"validDuration,omitempty"` |
| 4603 |
|
| 4604 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 4605 |
googleapi.ServerResponse `json:"-"` |
| 4606 |
// ForceSendFields is a list of field names (e.g. "CommandResult") to |
| 4607 |
// unconditionally include in API requests. By default, fields with empty or |
| 4608 |
// default values are omitted from API requests. See |
| 4609 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4610 |
// details. |
| 4611 |
ForceSendFields []string `json:"-"` |
| 4612 |
// NullFields is a list of field names (e.g. "CommandResult") to include in API |
| 4613 |
// requests with the JSON null value. By default, fields with empty values are |
| 4614 |
// omitted from API requests. See |
| 4615 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4616 |
NullFields []string `json:"-"` |
| 4617 |
} |
| 4618 |
|
| 4619 |
func (s GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand) MarshalJSON() ([]byte, error) { |
| 4620 |
type NoMethod GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand |
| 4621 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4622 |
} |
| 4623 |
|
| 4624 |
// GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult: |
| 4625 |
// Result of the execution of a command. |
| 4626 |
type GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult struct { |
| 4627 |
// ClientExecutionTime: Output only. Timestamp of the client execution of the |
| 4628 |
// remote command. |
| 4629 |
ClientExecutionTime string `json:"clientExecutionTime,omitempty"` |
| 4630 |
// ResultCode: Output only. Result code that indicates the type of error or |
| 4631 |
// success of the command. |
| 4632 |
ResultCode string `json:"resultCode,omitempty"` |
| 4633 |
// ResultType: Output only. Result type of the remote command. |
| 4634 |
// |
| 4635 |
// Possible values: |
| 4636 |
// "COMMAND_RESULT_TYPE_UNSPECIFIED" - Represents an unspecified command |
| 4637 |
// result. |
| 4638 |
// "IGNORED" - Represents a command with an ignored result. |
| 4639 |
// "FAILURE" - Represents a failed command. |
| 4640 |
// "SUCCESS" - Represents a succeeded command. |
| 4641 |
ResultType string `json:"resultType,omitempty"` |
| 4642 |
// ForceSendFields is a list of field names (e.g. "ClientExecutionTime") to |
| 4643 |
// unconditionally include in API requests. By default, fields with empty or |
| 4644 |
// default values are omitted from API requests. See |
| 4645 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4646 |
// details. |
| 4647 |
ForceSendFields []string `json:"-"` |
| 4648 |
// NullFields is a list of field names (e.g. "ClientExecutionTime") to include |
| 4649 |
// in API requests with the JSON null value. By default, fields with empty |
| 4650 |
// values are omitted from API requests. See |
| 4651 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4652 |
NullFields []string `json:"-"` |
| 4653 |
} |
| 4654 |
|
| 4655 |
func (s GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult) MarshalJSON() ([]byte, error) { |
| 4656 |
type NoMethod GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult |
| 4657 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4658 |
} |
| 4659 |
|
| 4660 |
// GoogleChromeManagementVersionsV1ChromeOsDevice: Describes the ChromeOS |
| 4661 |
// device that a `CertificateProvisioningProcess` belongs to. |
| 4662 |
type GoogleChromeManagementVersionsV1ChromeOsDevice struct { |
| 4663 |
// DeviceDirectoryApiId: Output only. The unique Directory API ID of the |
| 4664 |
// device. This value is the same as the Admin Console's Directory API ID in |
| 4665 |
// the ChromeOS Devices tab. |
| 4666 |
DeviceDirectoryApiId string `json:"deviceDirectoryApiId,omitempty"` |
| 4667 |
// SerialNumber: Output only. Device serial number. This value is the same as |
| 4668 |
// the Admin Console's Serial Number in the ChromeOS Devices tab. |
| 4669 |
SerialNumber string `json:"serialNumber,omitempty"` |
| 4670 |
// ForceSendFields is a list of field names (e.g. "DeviceDirectoryApiId") to |
| 4671 |
// unconditionally include in API requests. By default, fields with empty or |
| 4672 |
// default values are omitted from API requests. See |
| 4673 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4674 |
// details. |
| 4675 |
ForceSendFields []string `json:"-"` |
| 4676 |
// NullFields is a list of field names (e.g. "DeviceDirectoryApiId") to include |
| 4677 |
// in API requests with the JSON null value. By default, fields with empty |
| 4678 |
// values are omitted from API requests. See |
| 4679 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4680 |
NullFields []string `json:"-"` |
| 4681 |
} |
| 4682 |
|
| 4683 |
func (s GoogleChromeManagementVersionsV1ChromeOsDevice) MarshalJSON() ([]byte, error) { |
| 4684 |
type NoMethod GoogleChromeManagementVersionsV1ChromeOsDevice |
| 4685 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4686 |
} |
| 4687 |
|
| 4688 |
// GoogleChromeManagementVersionsV1ChromeOsUserSession: Describes the ChromeOS |
| 4689 |
// user session that a `CertificateProvisioningProcess` belongs to. |
| 4690 |
type GoogleChromeManagementVersionsV1ChromeOsUserSession struct { |
| 4691 |
// ChromeOsDevice: Output only. This field contains information about the |
| 4692 |
// ChromeOS device that the user session is running on. It is only set if the |
| 4693 |
// user is affiliated, i.e., if the user is managed by the same organization |
| 4694 |
// that manages the ChromeOS device. |
| 4695 |
ChromeOsDevice *GoogleChromeManagementVersionsV1ChromeOsDevice `json:"chromeOsDevice,omitempty"` |
| 4696 |
// UserDirectoryApiId: Output only. The unique Directory API ID of the user. |
| 4697 |
UserDirectoryApiId string `json:"userDirectoryApiId,omitempty"` |
| 4698 |
// UserPrimaryEmail: Output only. The primary e-mail address of the user. |
| 4699 |
UserPrimaryEmail string `json:"userPrimaryEmail,omitempty"` |
| 4700 |
// ForceSendFields is a list of field names (e.g. "ChromeOsDevice") to |
| 4701 |
// unconditionally include in API requests. By default, fields with empty or |
| 4702 |
// default values are omitted from API requests. See |
| 4703 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4704 |
// details. |
| 4705 |
ForceSendFields []string `json:"-"` |
| 4706 |
// NullFields is a list of field names (e.g. "ChromeOsDevice") to include in |
| 4707 |
// API requests with the JSON null value. By default, fields with empty values |
| 4708 |
// are omitted from API requests. See |
| 4709 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4710 |
NullFields []string `json:"-"` |
| 4711 |
} |
| 4712 |
|
| 4713 |
func (s GoogleChromeManagementVersionsV1ChromeOsUserSession) MarshalJSON() ([]byte, error) { |
| 4714 |
type NoMethod GoogleChromeManagementVersionsV1ChromeOsUserSession |
| 4715 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4716 |
} |
| 4717 |
|
| 4718 |
// GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessRequest: |
| 4719 |
// Request message for claiming a certificate provisioning process. |
| 4720 |
type GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessRequest struct { |
| 4721 |
// CallerInstanceId: Required. The instance id of the caller. |
| 4722 |
CallerInstanceId string `json:"callerInstanceId,omitempty"` |
| 4723 |
// ForceSendFields is a list of field names (e.g. "CallerInstanceId") to |
| 4724 |
// unconditionally include in API requests. By default, fields with empty or |
| 4725 |
// default values are omitted from API requests. See |
| 4726 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4727 |
// details. |
| 4728 |
ForceSendFields []string `json:"-"` |
| 4729 |
// NullFields is a list of field names (e.g. "CallerInstanceId") to include in |
| 4730 |
// API requests with the JSON null value. By default, fields with empty values |
| 4731 |
// are omitted from API requests. See |
| 4732 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4733 |
NullFields []string `json:"-"` |
| 4734 |
} |
| 4735 |
|
| 4736 |
func (s GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessRequest) MarshalJSON() ([]byte, error) { |
| 4737 |
type NoMethod GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessRequest |
| 4738 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4739 |
} |
| 4740 |
|
| 4741 |
// GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse: |
| 4742 |
// Response message for claiming a certificate provisioning process. |
| 4743 |
type GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse struct { |
| 4744 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 4745 |
googleapi.ServerResponse `json:"-"` |
| 4746 |
} |
| 4747 |
|
| 4748 |
// GoogleChromeManagementVersionsV1DeviceInfo: Information of a device that |
| 4749 |
// runs a Chrome browser profile. |
| 4750 |
type GoogleChromeManagementVersionsV1DeviceInfo struct { |
| 4751 |
// AffiliatedDeviceId: Output only. Device ID that identifies the affiliated |
| 4752 |
// device on which the profile exists. If the device type is CHROME_BROWSER, |
| 4753 |
// then this represents a unique Directory API ID of the device that can be |
| 4754 |
// used in Admin SDK Browsers API. |
| 4755 |
AffiliatedDeviceId string `json:"affiliatedDeviceId,omitempty"` |
| 4756 |
// DeviceType: Output only. Type of the device on which the profile exists. |
| 4757 |
// |
| 4758 |
// Possible values: |
| 4759 |
// "DEVICE_TYPE_UNSPECIFIED" - Represents an unspecified device type. |
| 4760 |
// "CHROME_BROWSER" - Represents a Chrome browser device. |
| 4761 |
DeviceType string `json:"deviceType,omitempty"` |
| 4762 |
// Hostname: Output only. Hostname of the device on which the profile exists. |
| 4763 |
Hostname string `json:"hostname,omitempty"` |
| 4764 |
// Machine: Output only. Machine name of the device on which the profile |
| 4765 |
// exists. On platforms which do not report the machine name (currently iOS and |
| 4766 |
// Android) this is instead set to the browser's device_id - but note that this |
| 4767 |
// is a different device_id than the |affiliated_device_id|. |
| 4768 |
Machine string `json:"machine,omitempty"` |
| 4769 |
// ForceSendFields is a list of field names (e.g. "AffiliatedDeviceId") to |
| 4770 |
// unconditionally include in API requests. By default, fields with empty or |
| 4771 |
// default values are omitted from API requests. See |
| 4772 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4773 |
// details. |
| 4774 |
ForceSendFields []string `json:"-"` |
| 4775 |
// NullFields is a list of field names (e.g. "AffiliatedDeviceId") to include |
| 4776 |
// in API requests with the JSON null value. By default, fields with empty |
| 4777 |
// values are omitted from API requests. See |
| 4778 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4779 |
NullFields []string `json:"-"` |
| 4780 |
} |
| 4781 |
|
| 4782 |
func (s GoogleChromeManagementVersionsV1DeviceInfo) MarshalJSON() ([]byte, error) { |
| 4783 |
type NoMethod GoogleChromeManagementVersionsV1DeviceInfo |
| 4784 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4785 |
} |
| 4786 |
|
| 4787 |
// GoogleChromeManagementVersionsV1GenericCaConnection: Describes a generic |
| 4788 |
// Certificate Authority Connection. |
| 4789 |
type GoogleChromeManagementVersionsV1GenericCaConnection struct { |
| 4790 |
// CaConnectionAdapterConfigReference: Output only. A string that references |
| 4791 |
// the administrator-provided configuration for the certification authority |
| 4792 |
// service. |
| 4793 |
CaConnectionAdapterConfigReference string `json:"caConnectionAdapterConfigReference,omitempty"` |
| 4794 |
// ForceSendFields is a list of field names (e.g. |
| 4795 |
// "CaConnectionAdapterConfigReference") to unconditionally include in API |
| 4796 |
// requests. By default, fields with empty or default values are omitted from |
| 4797 |
// API requests. See |
| 4798 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4799 |
// details. |
| 4800 |
ForceSendFields []string `json:"-"` |
| 4801 |
// NullFields is a list of field names (e.g. |
| 4802 |
// "CaConnectionAdapterConfigReference") to include in API requests with the |
| 4803 |
// JSON null value. By default, fields with empty values are omitted from API |
| 4804 |
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for |
| 4805 |
// more details. |
| 4806 |
NullFields []string `json:"-"` |
| 4807 |
} |
| 4808 |
|
| 4809 |
func (s GoogleChromeManagementVersionsV1GenericCaConnection) MarshalJSON() ([]byte, error) { |
| 4810 |
type NoMethod GoogleChromeManagementVersionsV1GenericCaConnection |
| 4811 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4812 |
} |
| 4813 |
|
| 4814 |
// GoogleChromeManagementVersionsV1GenericProfile: Describes a generic |
| 4815 |
// certificate provisioning profile. |
| 4816 |
type GoogleChromeManagementVersionsV1GenericProfile struct { |
| 4817 |
// ProfileAdapterConfigReference: Output only. A string that references the |
| 4818 |
// administrator-provided configuration for the certificate provisioning |
| 4819 |
// profile. |
| 4820 |
ProfileAdapterConfigReference string `json:"profileAdapterConfigReference,omitempty"` |
| 4821 |
// ForceSendFields is a list of field names (e.g. |
| 4822 |
// "ProfileAdapterConfigReference") to unconditionally include in API requests. |
| 4823 |
// By default, fields with empty or default values are omitted from API |
| 4824 |
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields |
| 4825 |
// for more details. |
| 4826 |
ForceSendFields []string `json:"-"` |
| 4827 |
// NullFields is a list of field names (e.g. "ProfileAdapterConfigReference") |
| 4828 |
// to include in API requests with the JSON null value. By default, fields with |
| 4829 |
// empty values are omitted from API requests. See |
| 4830 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4831 |
NullFields []string `json:"-"` |
| 4832 |
} |
| 4833 |
|
| 4834 |
func (s GoogleChromeManagementVersionsV1GenericProfile) MarshalJSON() ([]byte, error) { |
| 4835 |
type NoMethod GoogleChromeManagementVersionsV1GenericProfile |
| 4836 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4837 |
} |
| 4838 |
|
| 4839 |
// GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse: |
| 4840 |
// Response to ListChromeBrowserProfileCommands method. |
| 4841 |
type GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse struct { |
| 4842 |
// ChromeBrowserProfileCommands: The list of commands returned. |
| 4843 |
ChromeBrowserProfileCommands []*GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand `json:"chromeBrowserProfileCommands,omitempty"` |
| 4844 |
// NextPageToken: The pagination token that can be used to list the next page. |
| 4845 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 4846 |
// TotalSize: Total size represents an estimated number of resources returned. |
| 4847 |
TotalSize int64 `json:"totalSize,omitempty,string"` |
| 4848 |
|
| 4849 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 4850 |
googleapi.ServerResponse `json:"-"` |
| 4851 |
// ForceSendFields is a list of field names (e.g. |
| 4852 |
// "ChromeBrowserProfileCommands") to unconditionally include in API requests. |
| 4853 |
// By default, fields with empty or default values are omitted from API |
| 4854 |
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields |
| 4855 |
// for more details. |
| 4856 |
ForceSendFields []string `json:"-"` |
| 4857 |
// NullFields is a list of field names (e.g. "ChromeBrowserProfileCommands") to |
| 4858 |
// include in API requests with the JSON null value. By default, fields with |
| 4859 |
// empty values are omitted from API requests. See |
| 4860 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4861 |
NullFields []string `json:"-"` |
| 4862 |
} |
| 4863 |
|
| 4864 |
func (s GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse) MarshalJSON() ([]byte, error) { |
| 4865 |
type NoMethod GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse |
| 4866 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4867 |
} |
| 4868 |
|
| 4869 |
// GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse: Response |
| 4870 |
// to ListChromeBrowserProfiles method. |
| 4871 |
type GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse struct { |
| 4872 |
// ChromeBrowserProfiles: The list of profiles returned. |
| 4873 |
ChromeBrowserProfiles []*GoogleChromeManagementVersionsV1ChromeBrowserProfile `json:"chromeBrowserProfiles,omitempty"` |
| 4874 |
// NextPageToken: The pagination token that can be used to list the next page. |
| 4875 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 4876 |
// TotalSize: Total size represents an estimated number of resources returned. |
| 4877 |
// Not guaranteed to be accurate above 10k profiles. |
| 4878 |
TotalSize int64 `json:"totalSize,omitempty,string"` |
| 4879 |
|
| 4880 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 4881 |
googleapi.ServerResponse `json:"-"` |
| 4882 |
// ForceSendFields is a list of field names (e.g. "ChromeBrowserProfiles") to |
| 4883 |
// unconditionally include in API requests. By default, fields with empty or |
| 4884 |
// default values are omitted from API requests. See |
| 4885 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4886 |
// details. |
| 4887 |
ForceSendFields []string `json:"-"` |
| 4888 |
// NullFields is a list of field names (e.g. "ChromeBrowserProfiles") to |
| 4889 |
// include in API requests with the JSON null value. By default, fields with |
| 4890 |
// empty values are omitted from API requests. See |
| 4891 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4892 |
NullFields []string `json:"-"` |
| 4893 |
} |
| 4894 |
|
| 4895 |
func (s GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse) MarshalJSON() ([]byte, error) { |
| 4896 |
type NoMethod GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse |
| 4897 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4898 |
} |
| 4899 |
|
| 4900 |
// GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest: Request to |
| 4901 |
// MoveThirdPartyProfileUser method. |
| 4902 |
type GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest struct { |
| 4903 |
// DestinationOrgUnit: Required. Destination organizational unit where the |
| 4904 |
// third party chrome profile user will be moved to. |
| 4905 |
DestinationOrgUnit string `json:"destinationOrgUnit,omitempty"` |
| 4906 |
// ForceSendFields is a list of field names (e.g. "DestinationOrgUnit") to |
| 4907 |
// unconditionally include in API requests. By default, fields with empty or |
| 4908 |
// default values are omitted from API requests. See |
| 4909 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4910 |
// details. |
| 4911 |
ForceSendFields []string `json:"-"` |
| 4912 |
// NullFields is a list of field names (e.g. "DestinationOrgUnit") to include |
| 4913 |
// in API requests with the JSON null value. By default, fields with empty |
| 4914 |
// values are omitted from API requests. See |
| 4915 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4916 |
NullFields []string `json:"-"` |
| 4917 |
} |
| 4918 |
|
| 4919 |
func (s GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest) MarshalJSON() ([]byte, error) { |
| 4920 |
type NoMethod GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest |
| 4921 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4922 |
} |
| 4923 |
|
| 4924 |
// GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse: Response |
| 4925 |
// for MoveThirdPartyProfileUser method. |
| 4926 |
type GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse struct { |
| 4927 |
// ThirdPartyProfileUser: Output only. The moved third party profile user. |
| 4928 |
ThirdPartyProfileUser *GoogleChromeManagementVersionsV1ThirdPartyProfileUser `json:"thirdPartyProfileUser,omitempty"` |
| 4929 |
|
| 4930 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 4931 |
googleapi.ServerResponse `json:"-"` |
| 4932 |
// ForceSendFields is a list of field names (e.g. "ThirdPartyProfileUser") to |
| 4933 |
// unconditionally include in API requests. By default, fields with empty or |
| 4934 |
// default values are omitted from API requests. See |
| 4935 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4936 |
// details. |
| 4937 |
ForceSendFields []string `json:"-"` |
| 4938 |
// NullFields is a list of field names (e.g. "ThirdPartyProfileUser") to |
| 4939 |
// include in API requests with the JSON null value. By default, fields with |
| 4940 |
// empty values are omitted from API requests. See |
| 4941 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4942 |
NullFields []string `json:"-"` |
| 4943 |
} |
| 4944 |
|
| 4945 |
func (s GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse) MarshalJSON() ([]byte, error) { |
| 4946 |
type NoMethod GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse |
| 4947 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4948 |
} |
| 4949 |
|
| 4950 |
// GoogleChromeManagementVersionsV1ReportingData: Reporting data of a Chrome |
| 4951 |
// browser profile. |
| 4952 |
type GoogleChromeManagementVersionsV1ReportingData struct { |
| 4953 |
// BrowserExecutablePath: Output only. Executable path of the installed Chrome |
| 4954 |
// browser. A valid path is included only in affiliated profiles. |
| 4955 |
BrowserExecutablePath string `json:"browserExecutablePath,omitempty"` |
| 4956 |
// ExtensionData: Output only. Information of the extensions installed on the |
| 4957 |
// profile. |
| 4958 |
ExtensionData []*GoogleChromeManagementVersionsV1ReportingDataExtensionData `json:"extensionData,omitempty"` |
| 4959 |
// ExtensionPolicyData: Output only. Information of the policies applied on the |
| 4960 |
// extensions. |
| 4961 |
ExtensionPolicyData []*GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData `json:"extensionPolicyData,omitempty"` |
| 4962 |
// InstalledBrowserVersion: Output only. Updated version of a browser, if it is |
| 4963 |
// different from the active browser version. |
| 4964 |
InstalledBrowserVersion string `json:"installedBrowserVersion,omitempty"` |
| 4965 |
// PolicyData: Output only. Information of the policies applied on the profile. |
| 4966 |
PolicyData []*GoogleChromeManagementVersionsV1ReportingDataPolicyData `json:"policyData,omitempty"` |
| 4967 |
// ProfilePath: Output only. Path of the profile. A valid path is included only |
| 4968 |
// in affiliated profiles. |
| 4969 |
ProfilePath string `json:"profilePath,omitempty"` |
| 4970 |
// ForceSendFields is a list of field names (e.g. "BrowserExecutablePath") to |
| 4971 |
// unconditionally include in API requests. By default, fields with empty or |
| 4972 |
// default values are omitted from API requests. See |
| 4973 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 4974 |
// details. |
| 4975 |
ForceSendFields []string `json:"-"` |
| 4976 |
// NullFields is a list of field names (e.g. "BrowserExecutablePath") to |
| 4977 |
// include in API requests with the JSON null value. By default, fields with |
| 4978 |
// empty values are omitted from API requests. See |
| 4979 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 4980 |
NullFields []string `json:"-"` |
| 4981 |
} |
| 4982 |
|
| 4983 |
func (s GoogleChromeManagementVersionsV1ReportingData) MarshalJSON() ([]byte, error) { |
| 4984 |
type NoMethod GoogleChromeManagementVersionsV1ReportingData |
| 4985 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 4986 |
} |
| 4987 |
|
| 4988 |
// GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData: |
| 4989 |
// Information of conflicting policy applied on a Chrome browser profile. |
| 4990 |
type GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData struct { |
| 4991 |
// Source: Output only. Source of the policy. |
| 4992 |
// |
| 4993 |
// Possible values: |
| 4994 |
// "POLICY_SOURCE_UNSPECIFIED" - Represents an unspecified policy source. |
| 4995 |
// "MACHINE_PLATFORM" - Represents a machine level platform policy. |
| 4996 |
// "USER_PLATFORM" - Represents a user level platform policy. |
| 4997 |
// "MACHINE_LEVEL_USER_CLOUD" - Represents a machine level user cloud policy. |
| 4998 |
// "USER_CLOUD" - Represents a user level cloud policy. |
| 4999 |
// "MACHINE_MERGED" - Represents a machine level merged policy. |
| 5000 |
Source string `json:"source,omitempty"` |
| 5001 |
// ForceSendFields is a list of field names (e.g. "Source") to unconditionally |
| 5002 |
// include in API requests. By default, fields with empty or default values are |
| 5003 |
// omitted from API requests. See |
| 5004 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5005 |
// details. |
| 5006 |
ForceSendFields []string `json:"-"` |
| 5007 |
// NullFields is a list of field names (e.g. "Source") to include in API |
| 5008 |
// requests with the JSON null value. By default, fields with empty values are |
| 5009 |
// omitted from API requests. See |
| 5010 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5011 |
NullFields []string `json:"-"` |
| 5012 |
} |
| 5013 |
|
| 5014 |
func (s GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData) MarshalJSON() ([]byte, error) { |
| 5015 |
type NoMethod GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData |
| 5016 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5017 |
} |
| 5018 |
|
| 5019 |
// GoogleChromeManagementVersionsV1ReportingDataExtensionData: Information of |
| 5020 |
// an extension installed on a Chrome browser profile. |
| 5021 |
type GoogleChromeManagementVersionsV1ReportingDataExtensionData struct { |
| 5022 |
// Description: Output only. Description of the extension. |
| 5023 |
Description string `json:"description,omitempty"` |
| 5024 |
// ExtensionId: Output only. ID of the extension. |
| 5025 |
ExtensionId string `json:"extensionId,omitempty"` |
| 5026 |
// ExtensionType: Output only. Type of the extension. |
| 5027 |
// |
| 5028 |
// Possible values: |
| 5029 |
// "EXTENSION_TYPE_UNSPECIFIED" - Represents an unspecified extension type. |
| 5030 |
// "EXTENSION" - Represents an extension. |
| 5031 |
// "APP" - Represents an app. |
| 5032 |
// "THEME" - Represents a theme. |
| 5033 |
// "HOSTED_APP" - Represents a hosted app. |
| 5034 |
ExtensionType string `json:"extensionType,omitempty"` |
| 5035 |
// HomepageUri: Output only. The URL of the homepage of the extension. |
| 5036 |
HomepageUri string `json:"homepageUri,omitempty"` |
| 5037 |
// InstallationType: Output only. Installation type of the extension. |
| 5038 |
// |
| 5039 |
// Possible values: |
| 5040 |
// "INSTALLATION_TYPE_UNSPECIFIED" - Represents an unspecified installation |
| 5041 |
// type. |
| 5042 |
// "MULTIPLE" - Represents instances of the extension having mixed |
| 5043 |
// installation types. |
| 5044 |
// "NORMAL" - Represents a normal installation type. |
| 5045 |
// "ADMIN" - Represents an installation by admin. |
| 5046 |
// "DEVELOPMENT" - Represents a development installation type. |
| 5047 |
// "SIDELOAD" - Represents a sideload installation type. |
| 5048 |
// "OTHER" - Represents an installation type that is not covered in the other |
| 5049 |
// options. |
| 5050 |
InstallationType string `json:"installationType,omitempty"` |
| 5051 |
// IsDisabled: Output only. Represents whether the user disabled the extension. |
| 5052 |
IsDisabled bool `json:"isDisabled,omitempty"` |
| 5053 |
// IsWebstoreExtension: Output only. Represents whether the extension is from |
| 5054 |
// the webstore. |
| 5055 |
IsWebstoreExtension bool `json:"isWebstoreExtension,omitempty"` |
| 5056 |
// ManifestVersion: Output only. Manifest version of the extension. |
| 5057 |
ManifestVersion int64 `json:"manifestVersion,omitempty"` |
| 5058 |
// Name: Output only. Name of the extension. |
| 5059 |
Name string `json:"name,omitempty"` |
| 5060 |
// Permissions: Output only. Permissions requested by the extension. |
| 5061 |
Permissions []string `json:"permissions,omitempty"` |
| 5062 |
// Version: Output only. Version of the extension. |
| 5063 |
Version string `json:"version,omitempty"` |
| 5064 |
// ForceSendFields is a list of field names (e.g. "Description") to |
| 5065 |
// unconditionally include in API requests. By default, fields with empty or |
| 5066 |
// default values are omitted from API requests. See |
| 5067 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5068 |
// details. |
| 5069 |
ForceSendFields []string `json:"-"` |
| 5070 |
// NullFields is a list of field names (e.g. "Description") to include in API |
| 5071 |
// requests with the JSON null value. By default, fields with empty values are |
| 5072 |
// omitted from API requests. See |
| 5073 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5074 |
NullFields []string `json:"-"` |
| 5075 |
} |
| 5076 |
|
| 5077 |
func (s GoogleChromeManagementVersionsV1ReportingDataExtensionData) MarshalJSON() ([]byte, error) { |
| 5078 |
type NoMethod GoogleChromeManagementVersionsV1ReportingDataExtensionData |
| 5079 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5080 |
} |
| 5081 |
|
| 5082 |
// GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData: |
| 5083 |
// Information of the policies applied on an extension. |
| 5084 |
type GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData struct { |
| 5085 |
// ExtensionId: Output only. ID of the extension. |
| 5086 |
ExtensionId string `json:"extensionId,omitempty"` |
| 5087 |
// ExtensionName: Output only. Name of the extension. |
| 5088 |
ExtensionName string `json:"extensionName,omitempty"` |
| 5089 |
// PolicyData: Output only. Information of the policies applied on the |
| 5090 |
// extension. |
| 5091 |
PolicyData []*GoogleChromeManagementVersionsV1ReportingDataPolicyData `json:"policyData,omitempty"` |
| 5092 |
// ForceSendFields is a list of field names (e.g. "ExtensionId") to |
| 5093 |
// unconditionally include in API requests. By default, fields with empty or |
| 5094 |
// default values are omitted from API requests. See |
| 5095 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5096 |
// details. |
| 5097 |
ForceSendFields []string `json:"-"` |
| 5098 |
// NullFields is a list of field names (e.g. "ExtensionId") to include in API |
| 5099 |
// requests with the JSON null value. By default, fields with empty values are |
| 5100 |
// omitted from API requests. See |
| 5101 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5102 |
NullFields []string `json:"-"` |
| 5103 |
} |
| 5104 |
|
| 5105 |
func (s GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData) MarshalJSON() ([]byte, error) { |
| 5106 |
type NoMethod GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData |
| 5107 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5108 |
} |
| 5109 |
|
| 5110 |
// GoogleChromeManagementVersionsV1ReportingDataPolicyData: Information of a |
| 5111 |
// policy applied on a Chrome browser profile. |
| 5112 |
type GoogleChromeManagementVersionsV1ReportingDataPolicyData struct { |
| 5113 |
// Conflicts: Output only. Conflicting policy information. |
| 5114 |
Conflicts []*GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData `json:"conflicts,omitempty"` |
| 5115 |
// Error: Output only. Error message of the policy, if any. |
| 5116 |
Error string `json:"error,omitempty"` |
| 5117 |
// Name: Output only. Name of the policy. |
| 5118 |
Name string `json:"name,omitempty"` |
| 5119 |
// Source: Output only. Source of the policy. |
| 5120 |
// |
| 5121 |
// Possible values: |
| 5122 |
// "POLICY_SOURCE_UNSPECIFIED" - Represents an unspecified policy source. |
| 5123 |
// "MACHINE_PLATFORM" - Represents a machine level platform policy. |
| 5124 |
// "USER_PLATFORM" - Represents a user level platform policy. |
| 5125 |
// "MACHINE_LEVEL_USER_CLOUD" - Represents a machine level user cloud policy. |
| 5126 |
// "USER_CLOUD" - Represents a user level cloud policy. |
| 5127 |
// "MACHINE_MERGED" - Represents a machine level merged policy. |
| 5128 |
Source string `json:"source,omitempty"` |
| 5129 |
// Value: Output only. Value of the policy. |
| 5130 |
Value string `json:"value,omitempty"` |
| 5131 |
// ForceSendFields is a list of field names (e.g. "Conflicts") to |
| 5132 |
// unconditionally include in API requests. By default, fields with empty or |
| 5133 |
// default values are omitted from API requests. See |
| 5134 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5135 |
// details. |
| 5136 |
ForceSendFields []string `json:"-"` |
| 5137 |
// NullFields is a list of field names (e.g. "Conflicts") to include in API |
| 5138 |
// requests with the JSON null value. By default, fields with empty values are |
| 5139 |
// omitted from API requests. See |
| 5140 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5141 |
NullFields []string `json:"-"` |
| 5142 |
} |
| 5143 |
|
| 5144 |
func (s GoogleChromeManagementVersionsV1ReportingDataPolicyData) MarshalJSON() ([]byte, error) { |
| 5145 |
type NoMethod GoogleChromeManagementVersionsV1ReportingDataPolicyData |
| 5146 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5147 |
} |
| 5148 |
|
| 5149 |
// GoogleChromeManagementVersionsV1ScepCaConnection: Describes a SCEP |
| 5150 |
// Certificate Authority Connection. |
| 5151 |
type GoogleChromeManagementVersionsV1ScepCaConnection struct { |
| 5152 |
// CaConnectionAdapterConfigReference: Output only. A string that references |
| 5153 |
// the administrator-provided configuration for the certification authority |
| 5154 |
// service. |
| 5155 |
CaConnectionAdapterConfigReference string `json:"caConnectionAdapterConfigReference,omitempty"` |
| 5156 |
// ForceSendFields is a list of field names (e.g. |
| 5157 |
// "CaConnectionAdapterConfigReference") to unconditionally include in API |
| 5158 |
// requests. By default, fields with empty or default values are omitted from |
| 5159 |
// API requests. See |
| 5160 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5161 |
// details. |
| 5162 |
ForceSendFields []string `json:"-"` |
| 5163 |
// NullFields is a list of field names (e.g. |
| 5164 |
// "CaConnectionAdapterConfigReference") to include in API requests with the |
| 5165 |
// JSON null value. By default, fields with empty values are omitted from API |
| 5166 |
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for |
| 5167 |
// more details. |
| 5168 |
NullFields []string `json:"-"` |
| 5169 |
} |
| 5170 |
|
| 5171 |
func (s GoogleChromeManagementVersionsV1ScepCaConnection) MarshalJSON() ([]byte, error) { |
| 5172 |
type NoMethod GoogleChromeManagementVersionsV1ScepCaConnection |
| 5173 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5174 |
} |
| 5175 |
|
| 5176 |
// GoogleChromeManagementVersionsV1ScepProfile: Describes a SCEP certificate |
| 5177 |
// provisioning profile. |
| 5178 |
type GoogleChromeManagementVersionsV1ScepProfile struct { |
| 5179 |
// CertificateTemplateName: Output only. The certificate template name as |
| 5180 |
// defined by the admin on their on-prem infrastructure. The Certificate |
| 5181 |
// Authority uses this name to identify the certificate template. |
| 5182 |
CertificateTemplateName string `json:"certificateTemplateName,omitempty"` |
| 5183 |
// Country: Output only. The country of the subject. |
| 5184 |
Country string `json:"country,omitempty"` |
| 5185 |
// KeyUsages: Output only. The allowed key usages for certificate's key. |
| 5186 |
// |
| 5187 |
// Possible values: |
| 5188 |
// "KEY_USAGE_UNSPECIFIED" - The key usage is unspecified. |
| 5189 |
// "KEY_USAGE_SIGNING" - The key can be used for signing. |
| 5190 |
// "KEY_USAGE_KEY_ENCIPHERMENT" - The key can be used for key encipherment. |
| 5191 |
KeyUsages []string `json:"keyUsages,omitempty"` |
| 5192 |
// Locality: Output only. The locality of the subject. |
| 5193 |
Locality string `json:"locality,omitempty"` |
| 5194 |
// Organization: Output only. The name of the organization the subject belongs |
| 5195 |
// to. |
| 5196 |
Organization string `json:"organization,omitempty"` |
| 5197 |
// OrganizationalUnits: Output only. The organizational units of the subject. |
| 5198 |
OrganizationalUnits []string `json:"organizationalUnits,omitempty"` |
| 5199 |
// State: Output only. The state of the subject. |
| 5200 |
State string `json:"state,omitempty"` |
| 5201 |
// SubjectAltNames: Output only. The subject alternative names. |
| 5202 |
SubjectAltNames []*GoogleChromeManagementVersionsV1SubjectAltName `json:"subjectAltNames,omitempty"` |
| 5203 |
// SubjectCommonName: Output only. The common name of the subject. |
| 5204 |
SubjectCommonName string `json:"subjectCommonName,omitempty"` |
| 5205 |
// ForceSendFields is a list of field names (e.g. "CertificateTemplateName") to |
| 5206 |
// unconditionally include in API requests. By default, fields with empty or |
| 5207 |
// default values are omitted from API requests. See |
| 5208 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5209 |
// details. |
| 5210 |
ForceSendFields []string `json:"-"` |
| 5211 |
// NullFields is a list of field names (e.g. "CertificateTemplateName") to |
| 5212 |
// include in API requests with the JSON null value. By default, fields with |
| 5213 |
// empty values are omitted from API requests. See |
| 5214 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5215 |
NullFields []string `json:"-"` |
| 5216 |
} |
| 5217 |
|
| 5218 |
func (s GoogleChromeManagementVersionsV1ScepProfile) MarshalJSON() ([]byte, error) { |
| 5219 |
type NoMethod GoogleChromeManagementVersionsV1ScepProfile |
| 5220 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5221 |
} |
| 5222 |
|
| 5223 |
// GoogleChromeManagementVersionsV1SetFailureRequest: Request message for |
| 5224 |
// marking a certificate provisioning process as failed. |
| 5225 |
type GoogleChromeManagementVersionsV1SetFailureRequest struct { |
| 5226 |
// ErrorMessage: Required. A message describing the failure details. It is |
| 5227 |
// displayed on the ChromeOS client device. |
| 5228 |
ErrorMessage string `json:"errorMessage,omitempty"` |
| 5229 |
// ForceSendFields is a list of field names (e.g. "ErrorMessage") to |
| 5230 |
// unconditionally include in API requests. By default, fields with empty or |
| 5231 |
// default values are omitted from API requests. See |
| 5232 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5233 |
// details. |
| 5234 |
ForceSendFields []string `json:"-"` |
| 5235 |
// NullFields is a list of field names (e.g. "ErrorMessage") to include in API |
| 5236 |
// requests with the JSON null value. By default, fields with empty values are |
| 5237 |
// omitted from API requests. See |
| 5238 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5239 |
NullFields []string `json:"-"` |
| 5240 |
} |
| 5241 |
|
| 5242 |
func (s GoogleChromeManagementVersionsV1SetFailureRequest) MarshalJSON() ([]byte, error) { |
| 5243 |
type NoMethod GoogleChromeManagementVersionsV1SetFailureRequest |
| 5244 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5245 |
} |
| 5246 |
|
| 5247 |
// GoogleChromeManagementVersionsV1SetFailureResponse: Response message for |
| 5248 |
// publishing a failure for a certificate provisioning process. |
| 5249 |
type GoogleChromeManagementVersionsV1SetFailureResponse struct { |
| 5250 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 5251 |
googleapi.ServerResponse `json:"-"` |
| 5252 |
} |
| 5253 |
|
| 5254 |
// GoogleChromeManagementVersionsV1SignDataMetadata: Metadata for the |
| 5255 |
// long-running operation returned by signData. |
| 5256 |
type GoogleChromeManagementVersionsV1SignDataMetadata struct { |
| 5257 |
// StartTime: Output only. Start time of the SignData operation. |
| 5258 |
StartTime string `json:"startTime,omitempty"` |
| 5259 |
// ForceSendFields is a list of field names (e.g. "StartTime") to |
| 5260 |
// unconditionally include in API requests. By default, fields with empty or |
| 5261 |
// default values are omitted from API requests. See |
| 5262 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5263 |
// details. |
| 5264 |
ForceSendFields []string `json:"-"` |
| 5265 |
// NullFields is a list of field names (e.g. "StartTime") to include in API |
| 5266 |
// requests with the JSON null value. By default, fields with empty values are |
| 5267 |
// omitted from API requests. See |
| 5268 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5269 |
NullFields []string `json:"-"` |
| 5270 |
} |
| 5271 |
|
| 5272 |
func (s GoogleChromeManagementVersionsV1SignDataMetadata) MarshalJSON() ([]byte, error) { |
| 5273 |
type NoMethod GoogleChromeManagementVersionsV1SignDataMetadata |
| 5274 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5275 |
} |
| 5276 |
|
| 5277 |
// GoogleChromeManagementVersionsV1SignDataRequest: Request message for |
| 5278 |
// requesting a signature from the client that initated a certificate |
| 5279 |
// provisioning process. |
| 5280 |
type GoogleChromeManagementVersionsV1SignDataRequest struct { |
| 5281 |
// SignData: Required. The data that the client was asked to sign. |
| 5282 |
SignData string `json:"signData,omitempty"` |
| 5283 |
// SignatureAlgorithm: Required. The signature algorithm that the adapter |
| 5284 |
// expects the client and backend components to use when processing |
| 5285 |
// `sign_data`. |
| 5286 |
// |
| 5287 |
// Possible values: |
| 5288 |
// "SIGNATURE_ALGORITHM_UNSPECIFIED" - Default value. This value is unused. |
| 5289 |
// "SIGNATURE_ALGORITHM_RSA_PKCS1_V1_5_SHA256" - The server-side builds the |
| 5290 |
// PKCS#1 DigestInfo and sends a SHA256 hash of it to the client. The client |
| 5291 |
// should sign using RSA with PKCS#1 v1.5 padding. |
| 5292 |
// "SIGNATURE_ALGORITHM_ECDSA_SHA256" - The server-side builds the PKCS#1 |
| 5293 |
// DigestInfo and sends it unhashed to the client. The client is responsible |
| 5294 |
// for signing and hashing using the P-256 curve. |
| 5295 |
SignatureAlgorithm string `json:"signatureAlgorithm,omitempty"` |
| 5296 |
// ForceSendFields is a list of field names (e.g. "SignData") to |
| 5297 |
// unconditionally include in API requests. By default, fields with empty or |
| 5298 |
// default values are omitted from API requests. See |
| 5299 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5300 |
// details. |
| 5301 |
ForceSendFields []string `json:"-"` |
| 5302 |
// NullFields is a list of field names (e.g. "SignData") to include in API |
| 5303 |
// requests with the JSON null value. By default, fields with empty values are |
| 5304 |
// omitted from API requests. See |
| 5305 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5306 |
NullFields []string `json:"-"` |
| 5307 |
} |
| 5308 |
|
| 5309 |
func (s GoogleChromeManagementVersionsV1SignDataRequest) MarshalJSON() ([]byte, error) { |
| 5310 |
type NoMethod GoogleChromeManagementVersionsV1SignDataRequest |
| 5311 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5312 |
} |
| 5313 |
|
| 5314 |
// GoogleChromeManagementVersionsV1SignDataResponse: Response message for |
| 5315 |
// requesting a signature from the client that initated a certificate |
| 5316 |
// provisioning process. |
| 5317 |
type GoogleChromeManagementVersionsV1SignDataResponse struct { |
| 5318 |
// CertificateProvisioningProcess: Output only. The certificate provisioning |
| 5319 |
// process. The signature generated by the client will be available in the |
| 5320 |
// `signature` field of `CertificateProvisioningProcess`. |
| 5321 |
CertificateProvisioningProcess *GoogleChromeManagementVersionsV1CertificateProvisioningProcess `json:"certificateProvisioningProcess,omitempty"` |
| 5322 |
// ForceSendFields is a list of field names (e.g. |
| 5323 |
// "CertificateProvisioningProcess") to unconditionally include in API |
| 5324 |
// requests. By default, fields with empty or default values are omitted from |
| 5325 |
// API requests. See |
| 5326 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5327 |
// details. |
| 5328 |
ForceSendFields []string `json:"-"` |
| 5329 |
// NullFields is a list of field names (e.g. "CertificateProvisioningProcess") |
| 5330 |
// to include in API requests with the JSON null value. By default, fields with |
| 5331 |
// empty values are omitted from API requests. See |
| 5332 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5333 |
NullFields []string `json:"-"` |
| 5334 |
} |
| 5335 |
|
| 5336 |
func (s GoogleChromeManagementVersionsV1SignDataResponse) MarshalJSON() ([]byte, error) { |
| 5337 |
type NoMethod GoogleChromeManagementVersionsV1SignDataResponse |
| 5338 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5339 |
} |
| 5340 |
|
| 5341 |
// GoogleChromeManagementVersionsV1SubjectAltName: Describes a subject |
| 5342 |
// alternative name. |
| 5343 |
type GoogleChromeManagementVersionsV1SubjectAltName struct { |
| 5344 |
// Type: Output only. The type of the SubjectAltName extension. |
| 5345 |
// |
| 5346 |
// Possible values: |
| 5347 |
// "SUBJECT_ALT_NAME_TYPE_UNSPECIFIED" - The subject alternative name type is |
| 5348 |
// unspecified. |
| 5349 |
// "RFC822_NAME" - The subject alternative name type is an email address |
| 5350 |
// adhering to RFC822. |
| 5351 |
// "DNS_NAME" - The subject alternative name type is a Domain Name System |
| 5352 |
// (DNS). |
| 5353 |
// "OTHER_NAME_USER_PRINCIPAL_NAME" - The subject alternative name type is a |
| 5354 |
// User Principal Name (UPN). |
| 5355 |
// "UNIFORM_RESOURCE_IDENTIFIER" - The subject alternative name type is a |
| 5356 |
// Uniform Resource Identifier (URI). |
| 5357 |
Type string `json:"type,omitempty"` |
| 5358 |
// Value: Output only. The value of the subject alternative name with respect |
| 5359 |
// to the `type`. |
| 5360 |
Value string `json:"value,omitempty"` |
| 5361 |
// ForceSendFields is a list of field names (e.g. "Type") to unconditionally |
| 5362 |
// include in API requests. By default, fields with empty or default values are |
| 5363 |
// omitted from API requests. See |
| 5364 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5365 |
// details. |
| 5366 |
ForceSendFields []string `json:"-"` |
| 5367 |
// NullFields is a list of field names (e.g. "Type") to include in API requests |
| 5368 |
// with the JSON null value. By default, fields with empty values are omitted |
| 5369 |
// from API requests. See |
| 5370 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5371 |
NullFields []string `json:"-"` |
| 5372 |
} |
| 5373 |
|
| 5374 |
func (s GoogleChromeManagementVersionsV1SubjectAltName) MarshalJSON() ([]byte, error) { |
| 5375 |
type NoMethod GoogleChromeManagementVersionsV1SubjectAltName |
| 5376 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5377 |
} |
| 5378 |
|
| 5379 |
// GoogleChromeManagementVersionsV1ThirdPartyProfileUser: A representation of |
| 5380 |
// non-Google (third party) user that is associated with a managed Chrome |
| 5381 |
// profile. |
| 5382 |
type GoogleChromeManagementVersionsV1ThirdPartyProfileUser struct { |
| 5383 |
// Name: Identifier. Format: |
| 5384 |
// customers/{customer_id}/thirdPartyProfileUsers/{third_party_profile_user_id} |
| 5385 |
Name string `json:"name,omitempty"` |
| 5386 |
// OrgUnitId: Output only. The ID of the organizational unit assigned to the |
| 5387 |
// user. |
| 5388 |
OrgUnitId string `json:"orgUnitId,omitempty"` |
| 5389 |
// ForceSendFields is a list of field names (e.g. "Name") to unconditionally |
| 5390 |
// include in API requests. By default, fields with empty or default values are |
| 5391 |
// omitted from API requests. See |
| 5392 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5393 |
// details. |
| 5394 |
ForceSendFields []string `json:"-"` |
| 5395 |
// NullFields is a list of field names (e.g. "Name") to include in API requests |
| 5396 |
// with the JSON null value. By default, fields with empty values are omitted |
| 5397 |
// from API requests. See |
| 5398 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5399 |
NullFields []string `json:"-"` |
| 5400 |
} |
| 5401 |
|
| 5402 |
func (s GoogleChromeManagementVersionsV1ThirdPartyProfileUser) MarshalJSON() ([]byte, error) { |
| 5403 |
type NoMethod GoogleChromeManagementVersionsV1ThirdPartyProfileUser |
| 5404 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5405 |
} |
| 5406 |
|
| 5407 |
// GoogleChromeManagementVersionsV1UploadCertificateRequest: Request message |
| 5408 |
// for uploading an issued certificate for a certificate provisioning process. |
| 5409 |
type GoogleChromeManagementVersionsV1UploadCertificateRequest struct { |
| 5410 |
// CertificatePem: Required. The issued certificate in PEM format. |
| 5411 |
CertificatePem string `json:"certificatePem,omitempty"` |
| 5412 |
// ForceSendFields is a list of field names (e.g. "CertificatePem") to |
| 5413 |
// unconditionally include in API requests. By default, fields with empty or |
| 5414 |
// default values are omitted from API requests. See |
| 5415 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5416 |
// details. |
| 5417 |
ForceSendFields []string `json:"-"` |
| 5418 |
// NullFields is a list of field names (e.g. "CertificatePem") to include in |
| 5419 |
// API requests with the JSON null value. By default, fields with empty values |
| 5420 |
// are omitted from API requests. See |
| 5421 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5422 |
NullFields []string `json:"-"` |
| 5423 |
} |
| 5424 |
|
| 5425 |
func (s GoogleChromeManagementVersionsV1UploadCertificateRequest) MarshalJSON() ([]byte, error) { |
| 5426 |
type NoMethod GoogleChromeManagementVersionsV1UploadCertificateRequest |
| 5427 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5428 |
} |
| 5429 |
|
| 5430 |
// GoogleChromeManagementVersionsV1UploadCertificateResponse: Response message |
| 5431 |
// for publishing an issued certificate for a certificate provisioning process. |
| 5432 |
type GoogleChromeManagementVersionsV1UploadCertificateResponse struct { |
| 5433 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 5434 |
googleapi.ServerResponse `json:"-"` |
| 5435 |
} |
| 5436 |
|
| 5437 |
// GoogleLongrunningCancelOperationRequest: The request message for |
| 5438 |
// Operations.CancelOperation. |
| 5439 |
type GoogleLongrunningCancelOperationRequest struct { |
| 5440 |
} |
| 5441 |
|
| 5442 |
// GoogleLongrunningListOperationsResponse: The response message for |
| 5443 |
// Operations.ListOperations. |
| 5444 |
type GoogleLongrunningListOperationsResponse struct { |
| 5445 |
// NextPageToken: The standard List next-page token. |
| 5446 |
NextPageToken string `json:"nextPageToken,omitempty"` |
| 5447 |
// Operations: A list of operations that matches the specified filter in the |
| 5448 |
// request. |
| 5449 |
Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` |
| 5450 |
// Unreachable: Unordered list. Unreachable resources. Populated when the |
| 5451 |
// request sets `ListOperationsRequest.return_partial_success` and reads across |
| 5452 |
// collections. For example, when attempting to list all resources across all |
| 5453 |
// supported locations. |
| 5454 |
Unreachable []string `json:"unreachable,omitempty"` |
| 5455 |
|
| 5456 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 5457 |
googleapi.ServerResponse `json:"-"` |
| 5458 |
// ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| 5459 |
// unconditionally include in API requests. By default, fields with empty or |
| 5460 |
// default values are omitted from API requests. See |
| 5461 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5462 |
// details. |
| 5463 |
ForceSendFields []string `json:"-"` |
| 5464 |
// NullFields is a list of field names (e.g. "NextPageToken") to include in API |
| 5465 |
// requests with the JSON null value. By default, fields with empty values are |
| 5466 |
// omitted from API requests. See |
| 5467 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5468 |
NullFields []string `json:"-"` |
| 5469 |
} |
| 5470 |
|
| 5471 |
func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { |
| 5472 |
type NoMethod GoogleLongrunningListOperationsResponse |
| 5473 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5474 |
} |
| 5475 |
|
| 5476 |
// GoogleLongrunningOperation: This resource represents a long-running |
| 5477 |
// operation that is the result of a network API call. |
| 5478 |
type GoogleLongrunningOperation struct { |
| 5479 |
// Done: If the value is `false`, it means the operation is still in progress. |
| 5480 |
// If `true`, the operation is completed, and either `error` or `response` is |
| 5481 |
// available. |
| 5482 |
Done bool `json:"done,omitempty"` |
| 5483 |
// Error: The error result of the operation in case of failure or cancellation. |
| 5484 |
Error *GoogleRpcStatus `json:"error,omitempty"` |
| 5485 |
// Metadata: Service-specific metadata associated with the operation. It |
| 5486 |
// typically contains progress information and common metadata such as create |
| 5487 |
// time. Some services might not provide such metadata. Any method that returns |
| 5488 |
// a long-running operation should document the metadata type, if any. |
| 5489 |
Metadata googleapi.RawMessage `json:"metadata,omitempty"` |
| 5490 |
// Name: The server-assigned name, which is only unique within the same service |
| 5491 |
// that originally returns it. If you use the default HTTP mapping, the `name` |
| 5492 |
// should be a resource name ending with `operations/{unique_id}`. |
| 5493 |
Name string `json:"name,omitempty"` |
| 5494 |
// Response: The normal, successful response of the operation. If the original |
| 5495 |
// method returns no data on success, such as `Delete`, the response is |
| 5496 |
// `google.protobuf.Empty`. If the original method is standard |
| 5497 |
// `Get`/`Create`/`Update`, the response should be the resource. For other |
| 5498 |
// methods, the response should have the type `XxxResponse`, where `Xxx` is the |
| 5499 |
// original method name. For example, if the original method name is |
| 5500 |
// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 5501 |
Response googleapi.RawMessage `json:"response,omitempty"` |
| 5502 |
|
| 5503 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 5504 |
googleapi.ServerResponse `json:"-"` |
| 5505 |
// ForceSendFields is a list of field names (e.g. "Done") to unconditionally |
| 5506 |
// include in API requests. By default, fields with empty or default values are |
| 5507 |
// omitted from API requests. See |
| 5508 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5509 |
// details. |
| 5510 |
ForceSendFields []string `json:"-"` |
| 5511 |
// NullFields is a list of field names (e.g. "Done") to include in API requests |
| 5512 |
// with the JSON null value. By default, fields with empty values are omitted |
| 5513 |
// from API requests. See |
| 5514 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5515 |
NullFields []string `json:"-"` |
| 5516 |
} |
| 5517 |
|
| 5518 |
func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { |
| 5519 |
type NoMethod GoogleLongrunningOperation |
| 5520 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5521 |
} |
| 5522 |
|
| 5523 |
// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid |
| 5524 |
// defining duplicated empty messages in your APIs. A typical example is to use |
| 5525 |
// it as the request or the response type of an API method. For instance: |
| 5526 |
// service Foo { rpc Bar(google.protobuf.Empty) returns |
| 5527 |
// (google.protobuf.Empty); } |
| 5528 |
type GoogleProtobufEmpty struct { |
| 5529 |
// ServerResponse contains the HTTP response code and headers from the server. |
| 5530 |
googleapi.ServerResponse `json:"-"` |
| 5531 |
} |
| 5532 |
|
| 5533 |
// GoogleRpcStatus: The `Status` type defines a logical error model that is |
| 5534 |
// suitable for different programming environments, including REST APIs and RPC |
| 5535 |
// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message |
| 5536 |
// contains three pieces of data: error code, error message, and error details. |
| 5537 |
// You can find out more about this error model and how to work with it in the |
| 5538 |
// API Design Guide (https://cloud.google.com/apis/design/errors). |
| 5539 |
type GoogleRpcStatus struct { |
| 5540 |
// Code: The status code, which should be an enum value of google.rpc.Code. |
| 5541 |
Code int64 `json:"code,omitempty"` |
| 5542 |
// Details: A list of messages that carry the error details. There is a common |
| 5543 |
// set of message types for APIs to use. |
| 5544 |
Details []googleapi.RawMessage `json:"details,omitempty"` |
| 5545 |
// Message: A developer-facing error message, which should be in English. Any |
| 5546 |
// user-facing error message should be localized and sent in the |
| 5547 |
// google.rpc.Status.details field, or localized by the client. |
| 5548 |
Message string `json:"message,omitempty"` |
| 5549 |
// ForceSendFields is a list of field names (e.g. "Code") to unconditionally |
| 5550 |
// include in API requests. By default, fields with empty or default values are |
| 5551 |
// omitted from API requests. See |
| 5552 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5553 |
// details. |
| 5554 |
ForceSendFields []string `json:"-"` |
| 5555 |
// NullFields is a list of field names (e.g. "Code") to include in API requests |
| 5556 |
// with the JSON null value. By default, fields with empty values are omitted |
| 5557 |
// from API requests. See |
| 5558 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5559 |
NullFields []string `json:"-"` |
| 5560 |
} |
| 5561 |
|
| 5562 |
func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { |
| 5563 |
type NoMethod GoogleRpcStatus |
| 5564 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5565 |
} |
| 5566 |
|
| 5567 |
// GoogleTypeDate: Represents a whole or partial calendar date, such as a |
| 5568 |
// birthday. The time of day and time zone are either specified elsewhere or |
| 5569 |
// are insignificant. The date is relative to the Gregorian Calendar. This can |
| 5570 |
// represent one of the following: * A full date, with non-zero year, month, |
| 5571 |
// and day values. * A month and day, with a zero year (for example, an |
| 5572 |
// anniversary). * A year on its own, with a zero month and a zero day. * A |
| 5573 |
// year and month, with a zero day (for example, a credit card expiration |
| 5574 |
// date). Related types: * google.type.TimeOfDay * google.type.DateTime * |
| 5575 |
// google.protobuf.Timestamp |
| 5576 |
type GoogleTypeDate struct { |
| 5577 |
// Day: Day of a month. Must be from 1 to 31 and valid for the year and month, |
| 5578 |
// or 0 to specify a year by itself or a year and month where the day isn't |
| 5579 |
// significant. |
| 5580 |
Day int64 `json:"day,omitempty"` |
| 5581 |
// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without |
| 5582 |
// a month and day. |
| 5583 |
Month int64 `json:"month,omitempty"` |
| 5584 |
// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date |
| 5585 |
// without a year. |
| 5586 |
Year int64 `json:"year,omitempty"` |
| 5587 |
// ForceSendFields is a list of field names (e.g. "Day") to unconditionally |
| 5588 |
// include in API requests. By default, fields with empty or default values are |
| 5589 |
// omitted from API requests. See |
| 5590 |
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more |
| 5591 |
// details. |
| 5592 |
ForceSendFields []string `json:"-"` |
| 5593 |
// NullFields is a list of field names (e.g. "Day") to include in API requests |
| 5594 |
// with the JSON null value. By default, fields with empty values are omitted |
| 5595 |
// from API requests. See |
| 5596 |
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. |
| 5597 |
NullFields []string `json:"-"` |
| 5598 |
} |
| 5599 |
|
| 5600 |
func (s GoogleTypeDate) MarshalJSON() ([]byte, error) { |
| 5601 |
type NoMethod GoogleTypeDate |
| 5602 |
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) |
| 5603 |
} |
| 5604 |
|
| 5605 |
type CustomersAppsCountChromeAppRequestsCall struct { |
| 5606 |
s *Service |
| 5607 |
customer string |
| 5608 |
urlParams_ gensupport.URLParams |
| 5609 |
ifNoneMatch_ string |
| 5610 |
ctx_ context.Context |
| 5611 |
header_ http.Header |
| 5612 |
} |
| 5613 |
|
| 5614 |
// CountChromeAppRequests: Generate summary of app installation requests. |
| 5615 |
// |
| 5616 |
// - customer: Customer id or "my_customer" to use the customer associated to |
| 5617 |
// the account making the request. |
| 5618 |
func (r *CustomersAppsService) CountChromeAppRequests(customer string) *CustomersAppsCountChromeAppRequestsCall { |
| 5619 |
c := &CustomersAppsCountChromeAppRequestsCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 5620 |
c.customer = customer |
| 5621 |
return c |
| 5622 |
} |
| 5623 |
|
| 5624 |
// OrderBy sets the optional parameter "orderBy": Field used to order results. |
| 5625 |
// Supported fields: * request_count * latest_request_time |
| 5626 |
func (c *CustomersAppsCountChromeAppRequestsCall) OrderBy(orderBy string) *CustomersAppsCountChromeAppRequestsCall { |
| 5627 |
c.urlParams_.Set("orderBy", orderBy) |
| 5628 |
return c |
| 5629 |
} |
| 5630 |
|
| 5631 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 5632 |
// organizational unit. |
| 5633 |
func (c *CustomersAppsCountChromeAppRequestsCall) OrgUnitId(orgUnitId string) *CustomersAppsCountChromeAppRequestsCall { |
| 5634 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 5635 |
return c |
| 5636 |
} |
| 5637 |
|
| 5638 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 5639 |
// to return. Maximum and default are 50, anything above will be coerced to 50. |
| 5640 |
func (c *CustomersAppsCountChromeAppRequestsCall) PageSize(pageSize int64) *CustomersAppsCountChromeAppRequestsCall { |
| 5641 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 5642 |
return c |
| 5643 |
} |
| 5644 |
|
| 5645 |
// PageToken sets the optional parameter "pageToken": Token to specify the page |
| 5646 |
// of the request to be returned. |
| 5647 |
func (c *CustomersAppsCountChromeAppRequestsCall) PageToken(pageToken string) *CustomersAppsCountChromeAppRequestsCall { |
| 5648 |
c.urlParams_.Set("pageToken", pageToken) |
| 5649 |
return c |
| 5650 |
} |
| 5651 |
|
| 5652 |
// Fields allows partial responses to be retrieved. See |
| 5653 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 5654 |
// details. |
| 5655 |
func (c *CustomersAppsCountChromeAppRequestsCall) Fields(s ...googleapi.Field) *CustomersAppsCountChromeAppRequestsCall { |
| 5656 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 5657 |
return c |
| 5658 |
} |
| 5659 |
|
| 5660 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 5661 |
// object's ETag matches the given value. This is useful for getting updates |
| 5662 |
// only after the object has changed since the last request. |
| 5663 |
func (c *CustomersAppsCountChromeAppRequestsCall) IfNoneMatch(entityTag string) *CustomersAppsCountChromeAppRequestsCall { |
| 5664 |
c.ifNoneMatch_ = entityTag |
| 5665 |
return c |
| 5666 |
} |
| 5667 |
|
| 5668 |
// Context sets the context to be used in this call's Do method. |
| 5669 |
func (c *CustomersAppsCountChromeAppRequestsCall) Context(ctx context.Context) *CustomersAppsCountChromeAppRequestsCall { |
| 5670 |
c.ctx_ = ctx |
| 5671 |
return c |
| 5672 |
} |
| 5673 |
|
| 5674 |
// Header returns a http.Header that can be modified by the caller to add |
| 5675 |
// headers to the request. |
| 5676 |
func (c *CustomersAppsCountChromeAppRequestsCall) Header() http.Header { |
| 5677 |
if c.header_ == nil { |
| 5678 |
c.header_ = make(http.Header) |
| 5679 |
} |
| 5680 |
return c.header_ |
| 5681 |
} |
| 5682 |
|
| 5683 |
func (c *CustomersAppsCountChromeAppRequestsCall) doRequest(alt string) (*http.Response, error) { |
| 5684 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 5685 |
if c.ifNoneMatch_ != "" { |
| 5686 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 5687 |
} |
| 5688 |
c.urlParams_.Set("alt", alt) |
| 5689 |
c.urlParams_.Set("prettyPrint", "false") |
| 5690 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/apps:countChromeAppRequests") |
| 5691 |
urls += "?" + c.urlParams_.Encode() |
| 5692 |
req, err := http.NewRequest("GET", urls, nil) |
| 5693 |
if err != nil { |
| 5694 |
return nil, err |
| 5695 |
} |
| 5696 |
req.Header = reqHeaders |
| 5697 |
googleapi.Expand(req.URL, map[string]string{ |
| 5698 |
"customer": c.customer, |
| 5699 |
}) |
| 5700 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.countChromeAppRequests", "request", internallog.HTTPRequest(req, nil)) |
| 5701 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 5702 |
} |
| 5703 |
|
| 5704 |
// Do executes the "chromemanagement.customers.apps.countChromeAppRequests" call. |
| 5705 |
// Any non-2xx status code is an error. Response headers are in either |
| 5706 |
// *GoogleChromeManagementV1CountChromeAppRequestsResponse.ServerResponse.Header |
| 5707 |
// |
| 5708 |
// or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 5709 |
// |
| 5710 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 5711 |
// http.StatusNotModified was returned. |
| 5712 |
func (c *CustomersAppsCountChromeAppRequestsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeAppRequestsResponse, error) { |
| 5713 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 5714 |
res, err := c.doRequest("json") |
| 5715 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 5716 |
if res.Body != nil { |
| 5717 |
res.Body.Close() |
| 5718 |
} |
| 5719 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 5720 |
Code: res.StatusCode, |
| 5721 |
Header: res.Header, |
| 5722 |
}) |
| 5723 |
} |
| 5724 |
if err != nil { |
| 5725 |
return nil, err |
| 5726 |
} |
| 5727 |
defer googleapi.CloseBody(res) |
| 5728 |
if err := googleapi.CheckResponse(res); err != nil { |
| 5729 |
return nil, gensupport.WrapError(err) |
| 5730 |
} |
| 5731 |
ret := &GoogleChromeManagementV1CountChromeAppRequestsResponse{ |
| 5732 |
ServerResponse: googleapi.ServerResponse{ |
| 5733 |
Header: res.Header, |
| 5734 |
HTTPStatusCode: res.StatusCode, |
| 5735 |
}, |
| 5736 |
} |
| 5737 |
target := &ret |
| 5738 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 5739 |
if err != nil { |
| 5740 |
return nil, err |
| 5741 |
} |
| 5742 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.countChromeAppRequests", "response", internallog.HTTPResponse(res, b)) |
| 5743 |
return ret, nil |
| 5744 |
} |
| 5745 |
|
| 5746 |
// Pages invokes f for each page of results. |
| 5747 |
// A non-nil error returned from f will halt the iteration. |
| 5748 |
// The provided context supersedes any context provided to the Context method. |
| 5749 |
func (c *CustomersAppsCountChromeAppRequestsCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountChromeAppRequestsResponse) error) error { |
| 5750 |
c.ctx_ = ctx |
| 5751 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 5752 |
for { |
| 5753 |
x, err := c.Do() |
| 5754 |
if err != nil { |
| 5755 |
return err |
| 5756 |
} |
| 5757 |
if err := f(x); err != nil { |
| 5758 |
return err |
| 5759 |
} |
| 5760 |
if x.NextPageToken == "" { |
| 5761 |
return nil |
| 5762 |
} |
| 5763 |
c.PageToken(x.NextPageToken) |
| 5764 |
} |
| 5765 |
} |
| 5766 |
|
| 5767 |
type CustomersAppsFetchDevicesRequestingExtensionCall struct { |
| 5768 |
s *Service |
| 5769 |
customer string |
| 5770 |
urlParams_ gensupport.URLParams |
| 5771 |
ifNoneMatch_ string |
| 5772 |
ctx_ context.Context |
| 5773 |
header_ http.Header |
| 5774 |
} |
| 5775 |
|
| 5776 |
// FetchDevicesRequestingExtension: Get a list of devices that have requested |
| 5777 |
// to install an extension. |
| 5778 |
// |
| 5779 |
// - customer: The customer ID or "my_customer" prefixed with "customers/". |
| 5780 |
func (r *CustomersAppsService) FetchDevicesRequestingExtension(customer string) *CustomersAppsFetchDevicesRequestingExtensionCall { |
| 5781 |
c := &CustomersAppsFetchDevicesRequestingExtensionCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 5782 |
c.customer = customer |
| 5783 |
return c |
| 5784 |
} |
| 5785 |
|
| 5786 |
// ExtensionId sets the optional parameter "extensionId": Required. The |
| 5787 |
// extension for which we want to find requesting devices. |
| 5788 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) ExtensionId(extensionId string) *CustomersAppsFetchDevicesRequestingExtensionCall { |
| 5789 |
c.urlParams_.Set("extensionId", extensionId) |
| 5790 |
return c |
| 5791 |
} |
| 5792 |
|
| 5793 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 5794 |
// organizational unit. Only consider devices that directly belong to this org |
| 5795 |
// unit, i.e. sub-orgunits are not counted. If omitted, all data will be |
| 5796 |
// returned. |
| 5797 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) OrgUnitId(orgUnitId string) *CustomersAppsFetchDevicesRequestingExtensionCall { |
| 5798 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 5799 |
return c |
| 5800 |
} |
| 5801 |
|
| 5802 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 5803 |
// to return. Maximum and default are 50. Any page size larger than 50 will be |
| 5804 |
// coerced to 50. |
| 5805 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) PageSize(pageSize int64) *CustomersAppsFetchDevicesRequestingExtensionCall { |
| 5806 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 5807 |
return c |
| 5808 |
} |
| 5809 |
|
| 5810 |
// PageToken sets the optional parameter "pageToken": Token to specify the page |
| 5811 |
// of the request to be returned. Token expires after 1 day. |
| 5812 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) PageToken(pageToken string) *CustomersAppsFetchDevicesRequestingExtensionCall { |
| 5813 |
c.urlParams_.Set("pageToken", pageToken) |
| 5814 |
return c |
| 5815 |
} |
| 5816 |
|
| 5817 |
// Fields allows partial responses to be retrieved. See |
| 5818 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 5819 |
// details. |
| 5820 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) Fields(s ...googleapi.Field) *CustomersAppsFetchDevicesRequestingExtensionCall { |
| 5821 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 5822 |
return c |
| 5823 |
} |
| 5824 |
|
| 5825 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 5826 |
// object's ETag matches the given value. This is useful for getting updates |
| 5827 |
// only after the object has changed since the last request. |
| 5828 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) IfNoneMatch(entityTag string) *CustomersAppsFetchDevicesRequestingExtensionCall { |
| 5829 |
c.ifNoneMatch_ = entityTag |
| 5830 |
return c |
| 5831 |
} |
| 5832 |
|
| 5833 |
// Context sets the context to be used in this call's Do method. |
| 5834 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) Context(ctx context.Context) *CustomersAppsFetchDevicesRequestingExtensionCall { |
| 5835 |
c.ctx_ = ctx |
| 5836 |
return c |
| 5837 |
} |
| 5838 |
|
| 5839 |
// Header returns a http.Header that can be modified by the caller to add |
| 5840 |
// headers to the request. |
| 5841 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) Header() http.Header { |
| 5842 |
if c.header_ == nil { |
| 5843 |
c.header_ = make(http.Header) |
| 5844 |
} |
| 5845 |
return c.header_ |
| 5846 |
} |
| 5847 |
|
| 5848 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) doRequest(alt string) (*http.Response, error) { |
| 5849 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 5850 |
if c.ifNoneMatch_ != "" { |
| 5851 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 5852 |
} |
| 5853 |
c.urlParams_.Set("alt", alt) |
| 5854 |
c.urlParams_.Set("prettyPrint", "false") |
| 5855 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/apps:fetchDevicesRequestingExtension") |
| 5856 |
urls += "?" + c.urlParams_.Encode() |
| 5857 |
req, err := http.NewRequest("GET", urls, nil) |
| 5858 |
if err != nil { |
| 5859 |
return nil, err |
| 5860 |
} |
| 5861 |
req.Header = reqHeaders |
| 5862 |
googleapi.Expand(req.URL, map[string]string{ |
| 5863 |
"customer": c.customer, |
| 5864 |
}) |
| 5865 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.fetchDevicesRequestingExtension", "request", internallog.HTTPRequest(req, nil)) |
| 5866 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 5867 |
} |
| 5868 |
|
| 5869 |
// Do executes the "chromemanagement.customers.apps.fetchDevicesRequestingExtension" call. |
| 5870 |
// Any non-2xx status code is an error. Response headers are in either |
| 5871 |
// *GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse.ServerRespon |
| 5872 |
// se.Header or (if a response was returned at all) in |
| 5873 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 5874 |
// whether the returned error was because http.StatusNotModified was returned. |
| 5875 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse, error) { |
| 5876 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 5877 |
res, err := c.doRequest("json") |
| 5878 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 5879 |
if res.Body != nil { |
| 5880 |
res.Body.Close() |
| 5881 |
} |
| 5882 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 5883 |
Code: res.StatusCode, |
| 5884 |
Header: res.Header, |
| 5885 |
}) |
| 5886 |
} |
| 5887 |
if err != nil { |
| 5888 |
return nil, err |
| 5889 |
} |
| 5890 |
defer googleapi.CloseBody(res) |
| 5891 |
if err := googleapi.CheckResponse(res); err != nil { |
| 5892 |
return nil, gensupport.WrapError(err) |
| 5893 |
} |
| 5894 |
ret := &GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse{ |
| 5895 |
ServerResponse: googleapi.ServerResponse{ |
| 5896 |
Header: res.Header, |
| 5897 |
HTTPStatusCode: res.StatusCode, |
| 5898 |
}, |
| 5899 |
} |
| 5900 |
target := &ret |
| 5901 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 5902 |
if err != nil { |
| 5903 |
return nil, err |
| 5904 |
} |
| 5905 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.fetchDevicesRequestingExtension", "response", internallog.HTTPResponse(res, b)) |
| 5906 |
return ret, nil |
| 5907 |
} |
| 5908 |
|
| 5909 |
// Pages invokes f for each page of results. |
| 5910 |
// A non-nil error returned from f will halt the iteration. |
| 5911 |
// The provided context supersedes any context provided to the Context method. |
| 5912 |
func (c *CustomersAppsFetchDevicesRequestingExtensionCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse) error) error { |
| 5913 |
c.ctx_ = ctx |
| 5914 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 5915 |
for { |
| 5916 |
x, err := c.Do() |
| 5917 |
if err != nil { |
| 5918 |
return err |
| 5919 |
} |
| 5920 |
if err := f(x); err != nil { |
| 5921 |
return err |
| 5922 |
} |
| 5923 |
if x.NextPageToken == "" { |
| 5924 |
return nil |
| 5925 |
} |
| 5926 |
c.PageToken(x.NextPageToken) |
| 5927 |
} |
| 5928 |
} |
| 5929 |
|
| 5930 |
type CustomersAppsFetchUsersRequestingExtensionCall struct { |
| 5931 |
s *Service |
| 5932 |
customer string |
| 5933 |
urlParams_ gensupport.URLParams |
| 5934 |
ifNoneMatch_ string |
| 5935 |
ctx_ context.Context |
| 5936 |
header_ http.Header |
| 5937 |
} |
| 5938 |
|
| 5939 |
// FetchUsersRequestingExtension: Get a list of users that have requested to |
| 5940 |
// install an extension. |
| 5941 |
// |
| 5942 |
// - customer: The customer ID or "my_customer" prefixed with "customers/". |
| 5943 |
func (r *CustomersAppsService) FetchUsersRequestingExtension(customer string) *CustomersAppsFetchUsersRequestingExtensionCall { |
| 5944 |
c := &CustomersAppsFetchUsersRequestingExtensionCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 5945 |
c.customer = customer |
| 5946 |
return c |
| 5947 |
} |
| 5948 |
|
| 5949 |
// ExtensionId sets the optional parameter "extensionId": Required. The |
| 5950 |
// extension for which we want to find the requesting users. |
| 5951 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) ExtensionId(extensionId string) *CustomersAppsFetchUsersRequestingExtensionCall { |
| 5952 |
c.urlParams_.Set("extensionId", extensionId) |
| 5953 |
return c |
| 5954 |
} |
| 5955 |
|
| 5956 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 5957 |
// organizational unit. Only consider devices that directly belong to this org |
| 5958 |
// unit, i.e. sub-orgunits are not counted. If omitted, all data will be |
| 5959 |
// returned. |
| 5960 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) OrgUnitId(orgUnitId string) *CustomersAppsFetchUsersRequestingExtensionCall { |
| 5961 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 5962 |
return c |
| 5963 |
} |
| 5964 |
|
| 5965 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 5966 |
// to return. Maximum and default are 50. Any page size larger than 50 will be |
| 5967 |
// coerced to 50. |
| 5968 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) PageSize(pageSize int64) *CustomersAppsFetchUsersRequestingExtensionCall { |
| 5969 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 5970 |
return c |
| 5971 |
} |
| 5972 |
|
| 5973 |
// PageToken sets the optional parameter "pageToken": Token to specify the page |
| 5974 |
// of the request to be returned. Token expires after 1 day. |
| 5975 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) PageToken(pageToken string) *CustomersAppsFetchUsersRequestingExtensionCall { |
| 5976 |
c.urlParams_.Set("pageToken", pageToken) |
| 5977 |
return c |
| 5978 |
} |
| 5979 |
|
| 5980 |
// Fields allows partial responses to be retrieved. See |
| 5981 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 5982 |
// details. |
| 5983 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) Fields(s ...googleapi.Field) *CustomersAppsFetchUsersRequestingExtensionCall { |
| 5984 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 5985 |
return c |
| 5986 |
} |
| 5987 |
|
| 5988 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 5989 |
// object's ETag matches the given value. This is useful for getting updates |
| 5990 |
// only after the object has changed since the last request. |
| 5991 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) IfNoneMatch(entityTag string) *CustomersAppsFetchUsersRequestingExtensionCall { |
| 5992 |
c.ifNoneMatch_ = entityTag |
| 5993 |
return c |
| 5994 |
} |
| 5995 |
|
| 5996 |
// Context sets the context to be used in this call's Do method. |
| 5997 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) Context(ctx context.Context) *CustomersAppsFetchUsersRequestingExtensionCall { |
| 5998 |
c.ctx_ = ctx |
| 5999 |
return c |
| 6000 |
} |
| 6001 |
|
| 6002 |
// Header returns a http.Header that can be modified by the caller to add |
| 6003 |
// headers to the request. |
| 6004 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) Header() http.Header { |
| 6005 |
if c.header_ == nil { |
| 6006 |
c.header_ = make(http.Header) |
| 6007 |
} |
| 6008 |
return c.header_ |
| 6009 |
} |
| 6010 |
|
| 6011 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) doRequest(alt string) (*http.Response, error) { |
| 6012 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 6013 |
if c.ifNoneMatch_ != "" { |
| 6014 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 6015 |
} |
| 6016 |
c.urlParams_.Set("alt", alt) |
| 6017 |
c.urlParams_.Set("prettyPrint", "false") |
| 6018 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/apps:fetchUsersRequestingExtension") |
| 6019 |
urls += "?" + c.urlParams_.Encode() |
| 6020 |
req, err := http.NewRequest("GET", urls, nil) |
| 6021 |
if err != nil { |
| 6022 |
return nil, err |
| 6023 |
} |
| 6024 |
req.Header = reqHeaders |
| 6025 |
googleapi.Expand(req.URL, map[string]string{ |
| 6026 |
"customer": c.customer, |
| 6027 |
}) |
| 6028 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.fetchUsersRequestingExtension", "request", internallog.HTTPRequest(req, nil)) |
| 6029 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6030 |
} |
| 6031 |
|
| 6032 |
// Do executes the "chromemanagement.customers.apps.fetchUsersRequestingExtension" call. |
| 6033 |
// Any non-2xx status code is an error. Response headers are in either |
| 6034 |
// *GoogleChromeManagementV1FetchUsersRequestingExtensionResponse.ServerResponse |
| 6035 |
// .Header or (if a response was returned at all) in |
| 6036 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 6037 |
// whether the returned error was because http.StatusNotModified was returned. |
| 6038 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1FetchUsersRequestingExtensionResponse, error) { |
| 6039 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6040 |
res, err := c.doRequest("json") |
| 6041 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6042 |
if res.Body != nil { |
| 6043 |
res.Body.Close() |
| 6044 |
} |
| 6045 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6046 |
Code: res.StatusCode, |
| 6047 |
Header: res.Header, |
| 6048 |
}) |
| 6049 |
} |
| 6050 |
if err != nil { |
| 6051 |
return nil, err |
| 6052 |
} |
| 6053 |
defer googleapi.CloseBody(res) |
| 6054 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6055 |
return nil, gensupport.WrapError(err) |
| 6056 |
} |
| 6057 |
ret := &GoogleChromeManagementV1FetchUsersRequestingExtensionResponse{ |
| 6058 |
ServerResponse: googleapi.ServerResponse{ |
| 6059 |
Header: res.Header, |
| 6060 |
HTTPStatusCode: res.StatusCode, |
| 6061 |
}, |
| 6062 |
} |
| 6063 |
target := &ret |
| 6064 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6065 |
if err != nil { |
| 6066 |
return nil, err |
| 6067 |
} |
| 6068 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.fetchUsersRequestingExtension", "response", internallog.HTTPResponse(res, b)) |
| 6069 |
return ret, nil |
| 6070 |
} |
| 6071 |
|
| 6072 |
// Pages invokes f for each page of results. |
| 6073 |
// A non-nil error returned from f will halt the iteration. |
| 6074 |
// The provided context supersedes any context provided to the Context method. |
| 6075 |
func (c *CustomersAppsFetchUsersRequestingExtensionCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1FetchUsersRequestingExtensionResponse) error) error { |
| 6076 |
c.ctx_ = ctx |
| 6077 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 6078 |
for { |
| 6079 |
x, err := c.Do() |
| 6080 |
if err != nil { |
| 6081 |
return err |
| 6082 |
} |
| 6083 |
if err := f(x); err != nil { |
| 6084 |
return err |
| 6085 |
} |
| 6086 |
if x.NextPageToken == "" { |
| 6087 |
return nil |
| 6088 |
} |
| 6089 |
c.PageToken(x.NextPageToken) |
| 6090 |
} |
| 6091 |
} |
| 6092 |
|
| 6093 |
type CustomersAppsAndroidGetCall struct { |
| 6094 |
s *Service |
| 6095 |
name string |
| 6096 |
urlParams_ gensupport.URLParams |
| 6097 |
ifNoneMatch_ string |
| 6098 |
ctx_ context.Context |
| 6099 |
header_ http.Header |
| 6100 |
} |
| 6101 |
|
| 6102 |
// Get: Get a specific app for a customer by its resource name. |
| 6103 |
// |
| 6104 |
// - name: The app for which details are being queried. Examples: |
| 6105 |
// "customers/my_customer/apps/chrome/[email protected]" |
| 6106 |
// for the Save to Google Drive Chrome extension version 2.1.2, |
| 6107 |
// "customers/my_customer/apps/android/com.google.android.apps.docs" for the |
| 6108 |
// Google Drive Android app's latest version. |
| 6109 |
func (r *CustomersAppsAndroidService) Get(name string) *CustomersAppsAndroidGetCall { |
| 6110 |
c := &CustomersAppsAndroidGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 6111 |
c.name = name |
| 6112 |
return c |
| 6113 |
} |
| 6114 |
|
| 6115 |
// Fields allows partial responses to be retrieved. See |
| 6116 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 6117 |
// details. |
| 6118 |
func (c *CustomersAppsAndroidGetCall) Fields(s ...googleapi.Field) *CustomersAppsAndroidGetCall { |
| 6119 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 6120 |
return c |
| 6121 |
} |
| 6122 |
|
| 6123 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 6124 |
// object's ETag matches the given value. This is useful for getting updates |
| 6125 |
// only after the object has changed since the last request. |
| 6126 |
func (c *CustomersAppsAndroidGetCall) IfNoneMatch(entityTag string) *CustomersAppsAndroidGetCall { |
| 6127 |
c.ifNoneMatch_ = entityTag |
| 6128 |
return c |
| 6129 |
} |
| 6130 |
|
| 6131 |
// Context sets the context to be used in this call's Do method. |
| 6132 |
func (c *CustomersAppsAndroidGetCall) Context(ctx context.Context) *CustomersAppsAndroidGetCall { |
| 6133 |
c.ctx_ = ctx |
| 6134 |
return c |
| 6135 |
} |
| 6136 |
|
| 6137 |
// Header returns a http.Header that can be modified by the caller to add |
| 6138 |
// headers to the request. |
| 6139 |
func (c *CustomersAppsAndroidGetCall) Header() http.Header { |
| 6140 |
if c.header_ == nil { |
| 6141 |
c.header_ = make(http.Header) |
| 6142 |
} |
| 6143 |
return c.header_ |
| 6144 |
} |
| 6145 |
|
| 6146 |
func (c *CustomersAppsAndroidGetCall) doRequest(alt string) (*http.Response, error) { |
| 6147 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 6148 |
if c.ifNoneMatch_ != "" { |
| 6149 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 6150 |
} |
| 6151 |
c.urlParams_.Set("alt", alt) |
| 6152 |
c.urlParams_.Set("prettyPrint", "false") |
| 6153 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 6154 |
urls += "?" + c.urlParams_.Encode() |
| 6155 |
req, err := http.NewRequest("GET", urls, nil) |
| 6156 |
if err != nil { |
| 6157 |
return nil, err |
| 6158 |
} |
| 6159 |
req.Header = reqHeaders |
| 6160 |
googleapi.Expand(req.URL, map[string]string{ |
| 6161 |
"name": c.name, |
| 6162 |
}) |
| 6163 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.android.get", "request", internallog.HTTPRequest(req, nil)) |
| 6164 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6165 |
} |
| 6166 |
|
| 6167 |
// Do executes the "chromemanagement.customers.apps.android.get" call. |
| 6168 |
// Any non-2xx status code is an error. Response headers are in either |
| 6169 |
// *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response |
| 6170 |
// was returned at all) in error.(*googleapi.Error).Header. Use |
| 6171 |
// googleapi.IsNotModified to check whether the returned error was because |
| 6172 |
// http.StatusNotModified was returned. |
| 6173 |
func (c *CustomersAppsAndroidGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error) { |
| 6174 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6175 |
res, err := c.doRequest("json") |
| 6176 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6177 |
if res.Body != nil { |
| 6178 |
res.Body.Close() |
| 6179 |
} |
| 6180 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6181 |
Code: res.StatusCode, |
| 6182 |
Header: res.Header, |
| 6183 |
}) |
| 6184 |
} |
| 6185 |
if err != nil { |
| 6186 |
return nil, err |
| 6187 |
} |
| 6188 |
defer googleapi.CloseBody(res) |
| 6189 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6190 |
return nil, gensupport.WrapError(err) |
| 6191 |
} |
| 6192 |
ret := &GoogleChromeManagementV1AppDetails{ |
| 6193 |
ServerResponse: googleapi.ServerResponse{ |
| 6194 |
Header: res.Header, |
| 6195 |
HTTPStatusCode: res.StatusCode, |
| 6196 |
}, |
| 6197 |
} |
| 6198 |
target := &ret |
| 6199 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6200 |
if err != nil { |
| 6201 |
return nil, err |
| 6202 |
} |
| 6203 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.android.get", "response", internallog.HTTPResponse(res, b)) |
| 6204 |
return ret, nil |
| 6205 |
} |
| 6206 |
|
| 6207 |
type CustomersAppsChromeGetCall struct { |
| 6208 |
s *Service |
| 6209 |
name string |
| 6210 |
urlParams_ gensupport.URLParams |
| 6211 |
ifNoneMatch_ string |
| 6212 |
ctx_ context.Context |
| 6213 |
header_ http.Header |
| 6214 |
} |
| 6215 |
|
| 6216 |
// Get: Get a specific app for a customer by its resource name. |
| 6217 |
// |
| 6218 |
// - name: The app for which details are being queried. Examples: |
| 6219 |
// "customers/my_customer/apps/chrome/[email protected]" |
| 6220 |
// for the Save to Google Drive Chrome extension version 2.1.2, |
| 6221 |
// "customers/my_customer/apps/android/com.google.android.apps.docs" for the |
| 6222 |
// Google Drive Android app's latest version. |
| 6223 |
func (r *CustomersAppsChromeService) Get(name string) *CustomersAppsChromeGetCall { |
| 6224 |
c := &CustomersAppsChromeGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 6225 |
c.name = name |
| 6226 |
return c |
| 6227 |
} |
| 6228 |
|
| 6229 |
// Fields allows partial responses to be retrieved. See |
| 6230 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 6231 |
// details. |
| 6232 |
func (c *CustomersAppsChromeGetCall) Fields(s ...googleapi.Field) *CustomersAppsChromeGetCall { |
| 6233 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 6234 |
return c |
| 6235 |
} |
| 6236 |
|
| 6237 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 6238 |
// object's ETag matches the given value. This is useful for getting updates |
| 6239 |
// only after the object has changed since the last request. |
| 6240 |
func (c *CustomersAppsChromeGetCall) IfNoneMatch(entityTag string) *CustomersAppsChromeGetCall { |
| 6241 |
c.ifNoneMatch_ = entityTag |
| 6242 |
return c |
| 6243 |
} |
| 6244 |
|
| 6245 |
// Context sets the context to be used in this call's Do method. |
| 6246 |
func (c *CustomersAppsChromeGetCall) Context(ctx context.Context) *CustomersAppsChromeGetCall { |
| 6247 |
c.ctx_ = ctx |
| 6248 |
return c |
| 6249 |
} |
| 6250 |
|
| 6251 |
// Header returns a http.Header that can be modified by the caller to add |
| 6252 |
// headers to the request. |
| 6253 |
func (c *CustomersAppsChromeGetCall) Header() http.Header { |
| 6254 |
if c.header_ == nil { |
| 6255 |
c.header_ = make(http.Header) |
| 6256 |
} |
| 6257 |
return c.header_ |
| 6258 |
} |
| 6259 |
|
| 6260 |
func (c *CustomersAppsChromeGetCall) doRequest(alt string) (*http.Response, error) { |
| 6261 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 6262 |
if c.ifNoneMatch_ != "" { |
| 6263 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 6264 |
} |
| 6265 |
c.urlParams_.Set("alt", alt) |
| 6266 |
c.urlParams_.Set("prettyPrint", "false") |
| 6267 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 6268 |
urls += "?" + c.urlParams_.Encode() |
| 6269 |
req, err := http.NewRequest("GET", urls, nil) |
| 6270 |
if err != nil { |
| 6271 |
return nil, err |
| 6272 |
} |
| 6273 |
req.Header = reqHeaders |
| 6274 |
googleapi.Expand(req.URL, map[string]string{ |
| 6275 |
"name": c.name, |
| 6276 |
}) |
| 6277 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.chrome.get", "request", internallog.HTTPRequest(req, nil)) |
| 6278 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6279 |
} |
| 6280 |
|
| 6281 |
// Do executes the "chromemanagement.customers.apps.chrome.get" call. |
| 6282 |
// Any non-2xx status code is an error. Response headers are in either |
| 6283 |
// *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response |
| 6284 |
// was returned at all) in error.(*googleapi.Error).Header. Use |
| 6285 |
// googleapi.IsNotModified to check whether the returned error was because |
| 6286 |
// http.StatusNotModified was returned. |
| 6287 |
func (c *CustomersAppsChromeGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error) { |
| 6288 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6289 |
res, err := c.doRequest("json") |
| 6290 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6291 |
if res.Body != nil { |
| 6292 |
res.Body.Close() |
| 6293 |
} |
| 6294 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6295 |
Code: res.StatusCode, |
| 6296 |
Header: res.Header, |
| 6297 |
}) |
| 6298 |
} |
| 6299 |
if err != nil { |
| 6300 |
return nil, err |
| 6301 |
} |
| 6302 |
defer googleapi.CloseBody(res) |
| 6303 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6304 |
return nil, gensupport.WrapError(err) |
| 6305 |
} |
| 6306 |
ret := &GoogleChromeManagementV1AppDetails{ |
| 6307 |
ServerResponse: googleapi.ServerResponse{ |
| 6308 |
Header: res.Header, |
| 6309 |
HTTPStatusCode: res.StatusCode, |
| 6310 |
}, |
| 6311 |
} |
| 6312 |
target := &ret |
| 6313 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6314 |
if err != nil { |
| 6315 |
return nil, err |
| 6316 |
} |
| 6317 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.chrome.get", "response", internallog.HTTPResponse(res, b)) |
| 6318 |
return ret, nil |
| 6319 |
} |
| 6320 |
|
| 6321 |
type CustomersAppsWebGetCall struct { |
| 6322 |
s *Service |
| 6323 |
name string |
| 6324 |
urlParams_ gensupport.URLParams |
| 6325 |
ifNoneMatch_ string |
| 6326 |
ctx_ context.Context |
| 6327 |
header_ http.Header |
| 6328 |
} |
| 6329 |
|
| 6330 |
// Get: Get a specific app for a customer by its resource name. |
| 6331 |
// |
| 6332 |
// - name: The app for which details are being queried. Examples: |
| 6333 |
// "customers/my_customer/apps/chrome/[email protected]" |
| 6334 |
// for the Save to Google Drive Chrome extension version 2.1.2, |
| 6335 |
// "customers/my_customer/apps/android/com.google.android.apps.docs" for the |
| 6336 |
// Google Drive Android app's latest version. |
| 6337 |
func (r *CustomersAppsWebService) Get(name string) *CustomersAppsWebGetCall { |
| 6338 |
c := &CustomersAppsWebGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 6339 |
c.name = name |
| 6340 |
return c |
| 6341 |
} |
| 6342 |
|
| 6343 |
// Fields allows partial responses to be retrieved. See |
| 6344 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 6345 |
// details. |
| 6346 |
func (c *CustomersAppsWebGetCall) Fields(s ...googleapi.Field) *CustomersAppsWebGetCall { |
| 6347 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 6348 |
return c |
| 6349 |
} |
| 6350 |
|
| 6351 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 6352 |
// object's ETag matches the given value. This is useful for getting updates |
| 6353 |
// only after the object has changed since the last request. |
| 6354 |
func (c *CustomersAppsWebGetCall) IfNoneMatch(entityTag string) *CustomersAppsWebGetCall { |
| 6355 |
c.ifNoneMatch_ = entityTag |
| 6356 |
return c |
| 6357 |
} |
| 6358 |
|
| 6359 |
// Context sets the context to be used in this call's Do method. |
| 6360 |
func (c *CustomersAppsWebGetCall) Context(ctx context.Context) *CustomersAppsWebGetCall { |
| 6361 |
c.ctx_ = ctx |
| 6362 |
return c |
| 6363 |
} |
| 6364 |
|
| 6365 |
// Header returns a http.Header that can be modified by the caller to add |
| 6366 |
// headers to the request. |
| 6367 |
func (c *CustomersAppsWebGetCall) Header() http.Header { |
| 6368 |
if c.header_ == nil { |
| 6369 |
c.header_ = make(http.Header) |
| 6370 |
} |
| 6371 |
return c.header_ |
| 6372 |
} |
| 6373 |
|
| 6374 |
func (c *CustomersAppsWebGetCall) doRequest(alt string) (*http.Response, error) { |
| 6375 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 6376 |
if c.ifNoneMatch_ != "" { |
| 6377 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 6378 |
} |
| 6379 |
c.urlParams_.Set("alt", alt) |
| 6380 |
c.urlParams_.Set("prettyPrint", "false") |
| 6381 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 6382 |
urls += "?" + c.urlParams_.Encode() |
| 6383 |
req, err := http.NewRequest("GET", urls, nil) |
| 6384 |
if err != nil { |
| 6385 |
return nil, err |
| 6386 |
} |
| 6387 |
req.Header = reqHeaders |
| 6388 |
googleapi.Expand(req.URL, map[string]string{ |
| 6389 |
"name": c.name, |
| 6390 |
}) |
| 6391 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.web.get", "request", internallog.HTTPRequest(req, nil)) |
| 6392 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6393 |
} |
| 6394 |
|
| 6395 |
// Do executes the "chromemanagement.customers.apps.web.get" call. |
| 6396 |
// Any non-2xx status code is an error. Response headers are in either |
| 6397 |
// *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response |
| 6398 |
// was returned at all) in error.(*googleapi.Error).Header. Use |
| 6399 |
// googleapi.IsNotModified to check whether the returned error was because |
| 6400 |
// http.StatusNotModified was returned. |
| 6401 |
func (c *CustomersAppsWebGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error) { |
| 6402 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6403 |
res, err := c.doRequest("json") |
| 6404 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6405 |
if res.Body != nil { |
| 6406 |
res.Body.Close() |
| 6407 |
} |
| 6408 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6409 |
Code: res.StatusCode, |
| 6410 |
Header: res.Header, |
| 6411 |
}) |
| 6412 |
} |
| 6413 |
if err != nil { |
| 6414 |
return nil, err |
| 6415 |
} |
| 6416 |
defer googleapi.CloseBody(res) |
| 6417 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6418 |
return nil, gensupport.WrapError(err) |
| 6419 |
} |
| 6420 |
ret := &GoogleChromeManagementV1AppDetails{ |
| 6421 |
ServerResponse: googleapi.ServerResponse{ |
| 6422 |
Header: res.Header, |
| 6423 |
HTTPStatusCode: res.StatusCode, |
| 6424 |
}, |
| 6425 |
} |
| 6426 |
target := &ret |
| 6427 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6428 |
if err != nil { |
| 6429 |
return nil, err |
| 6430 |
} |
| 6431 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.apps.web.get", "response", internallog.HTTPResponse(res, b)) |
| 6432 |
return ret, nil |
| 6433 |
} |
| 6434 |
|
| 6435 |
type CustomersCertificateProvisioningProcessesClaimCall struct { |
| 6436 |
s *Service |
| 6437 |
name string |
| 6438 |
googlechromemanagementversionsv1claimcertificateprovisioningprocessrequest *GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessRequest |
| 6439 |
urlParams_ gensupport.URLParams |
| 6440 |
ctx_ context.Context |
| 6441 |
header_ http.Header |
| 6442 |
} |
| 6443 |
|
| 6444 |
// Claim: Claims a certificate provisioning process. For each certificate |
| 6445 |
// provisioning process, this operation can succeed only for one |
| 6446 |
// `caller_instance_id`. |
| 6447 |
// |
| 6448 |
// - name: Resource name of the `CertificateProvisioningProcess` to claim. The |
| 6449 |
// name pattern is given as |
| 6450 |
// `customers/{customer}/certificateProvisioningProcesses/{certificate_provisi |
| 6451 |
// oning_process}` with `{customer}` being the obfuscated customer id and |
| 6452 |
// `{certificate_provisioning_process}` being the certificate provisioning |
| 6453 |
// process id. |
| 6454 |
func (r *CustomersCertificateProvisioningProcessesService) Claim(name string, googlechromemanagementversionsv1claimcertificateprovisioningprocessrequest *GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessRequest) *CustomersCertificateProvisioningProcessesClaimCall { |
| 6455 |
c := &CustomersCertificateProvisioningProcessesClaimCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 6456 |
c.name = name |
| 6457 |
c.googlechromemanagementversionsv1claimcertificateprovisioningprocessrequest = googlechromemanagementversionsv1claimcertificateprovisioningprocessrequest |
| 6458 |
return c |
| 6459 |
} |
| 6460 |
|
| 6461 |
// Fields allows partial responses to be retrieved. See |
| 6462 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 6463 |
// details. |
| 6464 |
func (c *CustomersCertificateProvisioningProcessesClaimCall) Fields(s ...googleapi.Field) *CustomersCertificateProvisioningProcessesClaimCall { |
| 6465 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 6466 |
return c |
| 6467 |
} |
| 6468 |
|
| 6469 |
// Context sets the context to be used in this call's Do method. |
| 6470 |
func (c *CustomersCertificateProvisioningProcessesClaimCall) Context(ctx context.Context) *CustomersCertificateProvisioningProcessesClaimCall { |
| 6471 |
c.ctx_ = ctx |
| 6472 |
return c |
| 6473 |
} |
| 6474 |
|
| 6475 |
// Header returns a http.Header that can be modified by the caller to add |
| 6476 |
// headers to the request. |
| 6477 |
func (c *CustomersCertificateProvisioningProcessesClaimCall) Header() http.Header { |
| 6478 |
if c.header_ == nil { |
| 6479 |
c.header_ = make(http.Header) |
| 6480 |
} |
| 6481 |
return c.header_ |
| 6482 |
} |
| 6483 |
|
| 6484 |
func (c *CustomersCertificateProvisioningProcessesClaimCall) doRequest(alt string) (*http.Response, error) { |
| 6485 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) |
| 6486 |
body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlechromemanagementversionsv1claimcertificateprovisioningprocessrequest) |
| 6487 |
if err != nil { |
| 6488 |
return nil, err |
| 6489 |
} |
| 6490 |
c.urlParams_.Set("alt", alt) |
| 6491 |
c.urlParams_.Set("prettyPrint", "false") |
| 6492 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:claim") |
| 6493 |
urls += "?" + c.urlParams_.Encode() |
| 6494 |
req, err := http.NewRequest("POST", urls, body) |
| 6495 |
if err != nil { |
| 6496 |
return nil, err |
| 6497 |
} |
| 6498 |
req.Header = reqHeaders |
| 6499 |
googleapi.Expand(req.URL, map[string]string{ |
| 6500 |
"name": c.name, |
| 6501 |
}) |
| 6502 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.claim", "request", internallog.HTTPRequest(req, body.Bytes())) |
| 6503 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6504 |
} |
| 6505 |
|
| 6506 |
// Do executes the "chromemanagement.customers.certificateProvisioningProcesses.claim" call. |
| 6507 |
// Any non-2xx status code is an error. Response headers are in either |
| 6508 |
// *GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse. |
| 6509 |
// ServerResponse.Header or (if a response was returned at all) in |
| 6510 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 6511 |
// whether the returned error was because http.StatusNotModified was returned. |
| 6512 |
func (c *CustomersCertificateProvisioningProcessesClaimCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse, error) { |
| 6513 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6514 |
res, err := c.doRequest("json") |
| 6515 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6516 |
if res.Body != nil { |
| 6517 |
res.Body.Close() |
| 6518 |
} |
| 6519 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6520 |
Code: res.StatusCode, |
| 6521 |
Header: res.Header, |
| 6522 |
}) |
| 6523 |
} |
| 6524 |
if err != nil { |
| 6525 |
return nil, err |
| 6526 |
} |
| 6527 |
defer googleapi.CloseBody(res) |
| 6528 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6529 |
return nil, gensupport.WrapError(err) |
| 6530 |
} |
| 6531 |
ret := &GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse{ |
| 6532 |
ServerResponse: googleapi.ServerResponse{ |
| 6533 |
Header: res.Header, |
| 6534 |
HTTPStatusCode: res.StatusCode, |
| 6535 |
}, |
| 6536 |
} |
| 6537 |
target := &ret |
| 6538 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6539 |
if err != nil { |
| 6540 |
return nil, err |
| 6541 |
} |
| 6542 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.claim", "response", internallog.HTTPResponse(res, b)) |
| 6543 |
return ret, nil |
| 6544 |
} |
| 6545 |
|
| 6546 |
type CustomersCertificateProvisioningProcessesGetCall struct { |
| 6547 |
s *Service |
| 6548 |
name string |
| 6549 |
urlParams_ gensupport.URLParams |
| 6550 |
ifNoneMatch_ string |
| 6551 |
ctx_ context.Context |
| 6552 |
header_ http.Header |
| 6553 |
} |
| 6554 |
|
| 6555 |
// Get: Retrieves a certificate provisioning process. |
| 6556 |
// |
| 6557 |
// - name: Resource name of the `CertificateProvisioningProcess` to return. The |
| 6558 |
// name pattern is given as |
| 6559 |
// `customers/{customer}/certificateProvisioningProcesses/{certificate_provisi |
| 6560 |
// oning_process}` with `{customer}` being the obfuscated customer id and |
| 6561 |
// `{certificate_provisioning_process}` being the certificate provisioning |
| 6562 |
// process id. |
| 6563 |
func (r *CustomersCertificateProvisioningProcessesService) Get(name string) *CustomersCertificateProvisioningProcessesGetCall { |
| 6564 |
c := &CustomersCertificateProvisioningProcessesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 6565 |
c.name = name |
| 6566 |
return c |
| 6567 |
} |
| 6568 |
|
| 6569 |
// Fields allows partial responses to be retrieved. See |
| 6570 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 6571 |
// details. |
| 6572 |
func (c *CustomersCertificateProvisioningProcessesGetCall) Fields(s ...googleapi.Field) *CustomersCertificateProvisioningProcessesGetCall { |
| 6573 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 6574 |
return c |
| 6575 |
} |
| 6576 |
|
| 6577 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 6578 |
// object's ETag matches the given value. This is useful for getting updates |
| 6579 |
// only after the object has changed since the last request. |
| 6580 |
func (c *CustomersCertificateProvisioningProcessesGetCall) IfNoneMatch(entityTag string) *CustomersCertificateProvisioningProcessesGetCall { |
| 6581 |
c.ifNoneMatch_ = entityTag |
| 6582 |
return c |
| 6583 |
} |
| 6584 |
|
| 6585 |
// Context sets the context to be used in this call's Do method. |
| 6586 |
func (c *CustomersCertificateProvisioningProcessesGetCall) Context(ctx context.Context) *CustomersCertificateProvisioningProcessesGetCall { |
| 6587 |
c.ctx_ = ctx |
| 6588 |
return c |
| 6589 |
} |
| 6590 |
|
| 6591 |
// Header returns a http.Header that can be modified by the caller to add |
| 6592 |
// headers to the request. |
| 6593 |
func (c *CustomersCertificateProvisioningProcessesGetCall) Header() http.Header { |
| 6594 |
if c.header_ == nil { |
| 6595 |
c.header_ = make(http.Header) |
| 6596 |
} |
| 6597 |
return c.header_ |
| 6598 |
} |
| 6599 |
|
| 6600 |
func (c *CustomersCertificateProvisioningProcessesGetCall) doRequest(alt string) (*http.Response, error) { |
| 6601 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 6602 |
if c.ifNoneMatch_ != "" { |
| 6603 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 6604 |
} |
| 6605 |
c.urlParams_.Set("alt", alt) |
| 6606 |
c.urlParams_.Set("prettyPrint", "false") |
| 6607 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 6608 |
urls += "?" + c.urlParams_.Encode() |
| 6609 |
req, err := http.NewRequest("GET", urls, nil) |
| 6610 |
if err != nil { |
| 6611 |
return nil, err |
| 6612 |
} |
| 6613 |
req.Header = reqHeaders |
| 6614 |
googleapi.Expand(req.URL, map[string]string{ |
| 6615 |
"name": c.name, |
| 6616 |
}) |
| 6617 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.get", "request", internallog.HTTPRequest(req, nil)) |
| 6618 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6619 |
} |
| 6620 |
|
| 6621 |
// Do executes the "chromemanagement.customers.certificateProvisioningProcesses.get" call. |
| 6622 |
// Any non-2xx status code is an error. Response headers are in either |
| 6623 |
// *GoogleChromeManagementVersionsV1CertificateProvisioningProcess.ServerRespons |
| 6624 |
// e.Header or (if a response was returned at all) in |
| 6625 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 6626 |
// whether the returned error was because http.StatusNotModified was returned. |
| 6627 |
func (c *CustomersCertificateProvisioningProcessesGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1CertificateProvisioningProcess, error) { |
| 6628 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6629 |
res, err := c.doRequest("json") |
| 6630 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6631 |
if res.Body != nil { |
| 6632 |
res.Body.Close() |
| 6633 |
} |
| 6634 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6635 |
Code: res.StatusCode, |
| 6636 |
Header: res.Header, |
| 6637 |
}) |
| 6638 |
} |
| 6639 |
if err != nil { |
| 6640 |
return nil, err |
| 6641 |
} |
| 6642 |
defer googleapi.CloseBody(res) |
| 6643 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6644 |
return nil, gensupport.WrapError(err) |
| 6645 |
} |
| 6646 |
ret := &GoogleChromeManagementVersionsV1CertificateProvisioningProcess{ |
| 6647 |
ServerResponse: googleapi.ServerResponse{ |
| 6648 |
Header: res.Header, |
| 6649 |
HTTPStatusCode: res.StatusCode, |
| 6650 |
}, |
| 6651 |
} |
| 6652 |
target := &ret |
| 6653 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6654 |
if err != nil { |
| 6655 |
return nil, err |
| 6656 |
} |
| 6657 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.get", "response", internallog.HTTPResponse(res, b)) |
| 6658 |
return ret, nil |
| 6659 |
} |
| 6660 |
|
| 6661 |
type CustomersCertificateProvisioningProcessesSetFailureCall struct { |
| 6662 |
s *Service |
| 6663 |
name string |
| 6664 |
googlechromemanagementversionsv1setfailurerequest *GoogleChromeManagementVersionsV1SetFailureRequest |
| 6665 |
urlParams_ gensupport.URLParams |
| 6666 |
ctx_ context.Context |
| 6667 |
header_ http.Header |
| 6668 |
} |
| 6669 |
|
| 6670 |
// SetFailure: Marks a certificate provisioning process as failed. |
| 6671 |
// |
| 6672 |
// - name: Resource name of the `CertificateProvisioningProcess` to return. The |
| 6673 |
// name pattern is given as |
| 6674 |
// `customers/{customer}/certificateProvisioningProcesses/{certificate_provisi |
| 6675 |
// oning_process}` with `{customer}` being the obfuscated customer id and |
| 6676 |
// `{certificate_provisioning_process}` being the certificate provisioning |
| 6677 |
// process id. |
| 6678 |
func (r *CustomersCertificateProvisioningProcessesService) SetFailure(name string, googlechromemanagementversionsv1setfailurerequest *GoogleChromeManagementVersionsV1SetFailureRequest) *CustomersCertificateProvisioningProcessesSetFailureCall { |
| 6679 |
c := &CustomersCertificateProvisioningProcessesSetFailureCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 6680 |
c.name = name |
| 6681 |
c.googlechromemanagementversionsv1setfailurerequest = googlechromemanagementversionsv1setfailurerequest |
| 6682 |
return c |
| 6683 |
} |
| 6684 |
|
| 6685 |
// Fields allows partial responses to be retrieved. See |
| 6686 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 6687 |
// details. |
| 6688 |
func (c *CustomersCertificateProvisioningProcessesSetFailureCall) Fields(s ...googleapi.Field) *CustomersCertificateProvisioningProcessesSetFailureCall { |
| 6689 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 6690 |
return c |
| 6691 |
} |
| 6692 |
|
| 6693 |
// Context sets the context to be used in this call's Do method. |
| 6694 |
func (c *CustomersCertificateProvisioningProcessesSetFailureCall) Context(ctx context.Context) *CustomersCertificateProvisioningProcessesSetFailureCall { |
| 6695 |
c.ctx_ = ctx |
| 6696 |
return c |
| 6697 |
} |
| 6698 |
|
| 6699 |
// Header returns a http.Header that can be modified by the caller to add |
| 6700 |
// headers to the request. |
| 6701 |
func (c *CustomersCertificateProvisioningProcessesSetFailureCall) Header() http.Header { |
| 6702 |
if c.header_ == nil { |
| 6703 |
c.header_ = make(http.Header) |
| 6704 |
} |
| 6705 |
return c.header_ |
| 6706 |
} |
| 6707 |
|
| 6708 |
func (c *CustomersCertificateProvisioningProcessesSetFailureCall) doRequest(alt string) (*http.Response, error) { |
| 6709 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) |
| 6710 |
body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlechromemanagementversionsv1setfailurerequest) |
| 6711 |
if err != nil { |
| 6712 |
return nil, err |
| 6713 |
} |
| 6714 |
c.urlParams_.Set("alt", alt) |
| 6715 |
c.urlParams_.Set("prettyPrint", "false") |
| 6716 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setFailure") |
| 6717 |
urls += "?" + c.urlParams_.Encode() |
| 6718 |
req, err := http.NewRequest("POST", urls, body) |
| 6719 |
if err != nil { |
| 6720 |
return nil, err |
| 6721 |
} |
| 6722 |
req.Header = reqHeaders |
| 6723 |
googleapi.Expand(req.URL, map[string]string{ |
| 6724 |
"name": c.name, |
| 6725 |
}) |
| 6726 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.setFailure", "request", internallog.HTTPRequest(req, body.Bytes())) |
| 6727 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6728 |
} |
| 6729 |
|
| 6730 |
// Do executes the "chromemanagement.customers.certificateProvisioningProcesses.setFailure" call. |
| 6731 |
// Any non-2xx status code is an error. Response headers are in either |
| 6732 |
// *GoogleChromeManagementVersionsV1SetFailureResponse.ServerResponse.Header or |
| 6733 |
// (if a response was returned at all) in error.(*googleapi.Error).Header. Use |
| 6734 |
// googleapi.IsNotModified to check whether the returned error was because |
| 6735 |
// http.StatusNotModified was returned. |
| 6736 |
func (c *CustomersCertificateProvisioningProcessesSetFailureCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1SetFailureResponse, error) { |
| 6737 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6738 |
res, err := c.doRequest("json") |
| 6739 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6740 |
if res.Body != nil { |
| 6741 |
res.Body.Close() |
| 6742 |
} |
| 6743 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6744 |
Code: res.StatusCode, |
| 6745 |
Header: res.Header, |
| 6746 |
}) |
| 6747 |
} |
| 6748 |
if err != nil { |
| 6749 |
return nil, err |
| 6750 |
} |
| 6751 |
defer googleapi.CloseBody(res) |
| 6752 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6753 |
return nil, gensupport.WrapError(err) |
| 6754 |
} |
| 6755 |
ret := &GoogleChromeManagementVersionsV1SetFailureResponse{ |
| 6756 |
ServerResponse: googleapi.ServerResponse{ |
| 6757 |
Header: res.Header, |
| 6758 |
HTTPStatusCode: res.StatusCode, |
| 6759 |
}, |
| 6760 |
} |
| 6761 |
target := &ret |
| 6762 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6763 |
if err != nil { |
| 6764 |
return nil, err |
| 6765 |
} |
| 6766 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.setFailure", "response", internallog.HTTPResponse(res, b)) |
| 6767 |
return ret, nil |
| 6768 |
} |
| 6769 |
|
| 6770 |
type CustomersCertificateProvisioningProcessesSignDataCall struct { |
| 6771 |
s *Service |
| 6772 |
name string |
| 6773 |
googlechromemanagementversionsv1signdatarequest *GoogleChromeManagementVersionsV1SignDataRequest |
| 6774 |
urlParams_ gensupport.URLParams |
| 6775 |
ctx_ context.Context |
| 6776 |
header_ http.Header |
| 6777 |
} |
| 6778 |
|
| 6779 |
// SignData: Requests the client that initiated a certificate provisioning |
| 6780 |
// process to sign data. This should only be called after |
| 6781 |
// `ClaimCertificateProvisioningProcess` has been successfully executed. |
| 6782 |
// |
| 6783 |
// - name: Resource name of the `CertificateProvisioningProcess` to return. The |
| 6784 |
// name pattern is given as |
| 6785 |
// `customers/{customer}/certificateProvisioningProcesses/{certificate_provisi |
| 6786 |
// oning_process}` with `{customer}` being the obfuscated customer id and |
| 6787 |
// `{certificate_provisioning_process}` being the certificate provisioning |
| 6788 |
// process id. |
| 6789 |
func (r *CustomersCertificateProvisioningProcessesService) SignData(name string, googlechromemanagementversionsv1signdatarequest *GoogleChromeManagementVersionsV1SignDataRequest) *CustomersCertificateProvisioningProcessesSignDataCall { |
| 6790 |
c := &CustomersCertificateProvisioningProcessesSignDataCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 6791 |
c.name = name |
| 6792 |
c.googlechromemanagementversionsv1signdatarequest = googlechromemanagementversionsv1signdatarequest |
| 6793 |
return c |
| 6794 |
} |
| 6795 |
|
| 6796 |
// Fields allows partial responses to be retrieved. See |
| 6797 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 6798 |
// details. |
| 6799 |
func (c *CustomersCertificateProvisioningProcessesSignDataCall) Fields(s ...googleapi.Field) *CustomersCertificateProvisioningProcessesSignDataCall { |
| 6800 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 6801 |
return c |
| 6802 |
} |
| 6803 |
|
| 6804 |
// Context sets the context to be used in this call's Do method. |
| 6805 |
func (c *CustomersCertificateProvisioningProcessesSignDataCall) Context(ctx context.Context) *CustomersCertificateProvisioningProcessesSignDataCall { |
| 6806 |
c.ctx_ = ctx |
| 6807 |
return c |
| 6808 |
} |
| 6809 |
|
| 6810 |
// Header returns a http.Header that can be modified by the caller to add |
| 6811 |
// headers to the request. |
| 6812 |
func (c *CustomersCertificateProvisioningProcessesSignDataCall) Header() http.Header { |
| 6813 |
if c.header_ == nil { |
| 6814 |
c.header_ = make(http.Header) |
| 6815 |
} |
| 6816 |
return c.header_ |
| 6817 |
} |
| 6818 |
|
| 6819 |
func (c *CustomersCertificateProvisioningProcessesSignDataCall) doRequest(alt string) (*http.Response, error) { |
| 6820 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) |
| 6821 |
body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlechromemanagementversionsv1signdatarequest) |
| 6822 |
if err != nil { |
| 6823 |
return nil, err |
| 6824 |
} |
| 6825 |
c.urlParams_.Set("alt", alt) |
| 6826 |
c.urlParams_.Set("prettyPrint", "false") |
| 6827 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:signData") |
| 6828 |
urls += "?" + c.urlParams_.Encode() |
| 6829 |
req, err := http.NewRequest("POST", urls, body) |
| 6830 |
if err != nil { |
| 6831 |
return nil, err |
| 6832 |
} |
| 6833 |
req.Header = reqHeaders |
| 6834 |
googleapi.Expand(req.URL, map[string]string{ |
| 6835 |
"name": c.name, |
| 6836 |
}) |
| 6837 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.signData", "request", internallog.HTTPRequest(req, body.Bytes())) |
| 6838 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6839 |
} |
| 6840 |
|
| 6841 |
// Do executes the "chromemanagement.customers.certificateProvisioningProcesses.signData" call. |
| 6842 |
// Any non-2xx status code is an error. Response headers are in either |
| 6843 |
// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was |
| 6844 |
// returned at all) in error.(*googleapi.Error).Header. Use |
| 6845 |
// googleapi.IsNotModified to check whether the returned error was because |
| 6846 |
// http.StatusNotModified was returned. |
| 6847 |
func (c *CustomersCertificateProvisioningProcessesSignDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { |
| 6848 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6849 |
res, err := c.doRequest("json") |
| 6850 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6851 |
if res.Body != nil { |
| 6852 |
res.Body.Close() |
| 6853 |
} |
| 6854 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6855 |
Code: res.StatusCode, |
| 6856 |
Header: res.Header, |
| 6857 |
}) |
| 6858 |
} |
| 6859 |
if err != nil { |
| 6860 |
return nil, err |
| 6861 |
} |
| 6862 |
defer googleapi.CloseBody(res) |
| 6863 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6864 |
return nil, gensupport.WrapError(err) |
| 6865 |
} |
| 6866 |
ret := &GoogleLongrunningOperation{ |
| 6867 |
ServerResponse: googleapi.ServerResponse{ |
| 6868 |
Header: res.Header, |
| 6869 |
HTTPStatusCode: res.StatusCode, |
| 6870 |
}, |
| 6871 |
} |
| 6872 |
target := &ret |
| 6873 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6874 |
if err != nil { |
| 6875 |
return nil, err |
| 6876 |
} |
| 6877 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.signData", "response", internallog.HTTPResponse(res, b)) |
| 6878 |
return ret, nil |
| 6879 |
} |
| 6880 |
|
| 6881 |
type CustomersCertificateProvisioningProcessesUploadCertificateCall struct { |
| 6882 |
s *Service |
| 6883 |
name string |
| 6884 |
googlechromemanagementversionsv1uploadcertificaterequest *GoogleChromeManagementVersionsV1UploadCertificateRequest |
| 6885 |
urlParams_ gensupport.URLParams |
| 6886 |
ctx_ context.Context |
| 6887 |
header_ http.Header |
| 6888 |
} |
| 6889 |
|
| 6890 |
// UploadCertificate: Uploads a successfully issued certificate for a |
| 6891 |
// certificate provisioning process. |
| 6892 |
// |
| 6893 |
// - name: Resource name of the `CertificateProvisioningProcess` to return. The |
| 6894 |
// name pattern is given as |
| 6895 |
// `customers/{customer}/certificateProvisioningProcesses/{certificate_provisi |
| 6896 |
// oning_process}` with `{customer}` being the obfuscated customer id and |
| 6897 |
// `{certificate_provisioning_process}` being the certificate provisioning |
| 6898 |
// process id. |
| 6899 |
func (r *CustomersCertificateProvisioningProcessesService) UploadCertificate(name string, googlechromemanagementversionsv1uploadcertificaterequest *GoogleChromeManagementVersionsV1UploadCertificateRequest) *CustomersCertificateProvisioningProcessesUploadCertificateCall { |
| 6900 |
c := &CustomersCertificateProvisioningProcessesUploadCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 6901 |
c.name = name |
| 6902 |
c.googlechromemanagementversionsv1uploadcertificaterequest = googlechromemanagementversionsv1uploadcertificaterequest |
| 6903 |
return c |
| 6904 |
} |
| 6905 |
|
| 6906 |
// Fields allows partial responses to be retrieved. See |
| 6907 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 6908 |
// details. |
| 6909 |
func (c *CustomersCertificateProvisioningProcessesUploadCertificateCall) Fields(s ...googleapi.Field) *CustomersCertificateProvisioningProcessesUploadCertificateCall { |
| 6910 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 6911 |
return c |
| 6912 |
} |
| 6913 |
|
| 6914 |
// Context sets the context to be used in this call's Do method. |
| 6915 |
func (c *CustomersCertificateProvisioningProcessesUploadCertificateCall) Context(ctx context.Context) *CustomersCertificateProvisioningProcessesUploadCertificateCall { |
| 6916 |
c.ctx_ = ctx |
| 6917 |
return c |
| 6918 |
} |
| 6919 |
|
| 6920 |
// Header returns a http.Header that can be modified by the caller to add |
| 6921 |
// headers to the request. |
| 6922 |
func (c *CustomersCertificateProvisioningProcessesUploadCertificateCall) Header() http.Header { |
| 6923 |
if c.header_ == nil { |
| 6924 |
c.header_ = make(http.Header) |
| 6925 |
} |
| 6926 |
return c.header_ |
| 6927 |
} |
| 6928 |
|
| 6929 |
func (c *CustomersCertificateProvisioningProcessesUploadCertificateCall) doRequest(alt string) (*http.Response, error) { |
| 6930 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) |
| 6931 |
body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlechromemanagementversionsv1uploadcertificaterequest) |
| 6932 |
if err != nil { |
| 6933 |
return nil, err |
| 6934 |
} |
| 6935 |
c.urlParams_.Set("alt", alt) |
| 6936 |
c.urlParams_.Set("prettyPrint", "false") |
| 6937 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:uploadCertificate") |
| 6938 |
urls += "?" + c.urlParams_.Encode() |
| 6939 |
req, err := http.NewRequest("POST", urls, body) |
| 6940 |
if err != nil { |
| 6941 |
return nil, err |
| 6942 |
} |
| 6943 |
req.Header = reqHeaders |
| 6944 |
googleapi.Expand(req.URL, map[string]string{ |
| 6945 |
"name": c.name, |
| 6946 |
}) |
| 6947 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.uploadCertificate", "request", internallog.HTTPRequest(req, body.Bytes())) |
| 6948 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 6949 |
} |
| 6950 |
|
| 6951 |
// Do executes the "chromemanagement.customers.certificateProvisioningProcesses.uploadCertificate" call. |
| 6952 |
// Any non-2xx status code is an error. Response headers are in either |
| 6953 |
// *GoogleChromeManagementVersionsV1UploadCertificateResponse.ServerResponse.Hea |
| 6954 |
// der or (if a response was returned at all) in |
| 6955 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 6956 |
// whether the returned error was because http.StatusNotModified was returned. |
| 6957 |
func (c *CustomersCertificateProvisioningProcessesUploadCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1UploadCertificateResponse, error) { |
| 6958 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 6959 |
res, err := c.doRequest("json") |
| 6960 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 6961 |
if res.Body != nil { |
| 6962 |
res.Body.Close() |
| 6963 |
} |
| 6964 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 6965 |
Code: res.StatusCode, |
| 6966 |
Header: res.Header, |
| 6967 |
}) |
| 6968 |
} |
| 6969 |
if err != nil { |
| 6970 |
return nil, err |
| 6971 |
} |
| 6972 |
defer googleapi.CloseBody(res) |
| 6973 |
if err := googleapi.CheckResponse(res); err != nil { |
| 6974 |
return nil, gensupport.WrapError(err) |
| 6975 |
} |
| 6976 |
ret := &GoogleChromeManagementVersionsV1UploadCertificateResponse{ |
| 6977 |
ServerResponse: googleapi.ServerResponse{ |
| 6978 |
Header: res.Header, |
| 6979 |
HTTPStatusCode: res.StatusCode, |
| 6980 |
}, |
| 6981 |
} |
| 6982 |
target := &ret |
| 6983 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 6984 |
if err != nil { |
| 6985 |
return nil, err |
| 6986 |
} |
| 6987 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.uploadCertificate", "response", internallog.HTTPResponse(res, b)) |
| 6988 |
return ret, nil |
| 6989 |
} |
| 6990 |
|
| 6991 |
type CustomersCertificateProvisioningProcessesOperationsGetCall struct { |
| 6992 |
s *Service |
| 6993 |
name string |
| 6994 |
urlParams_ gensupport.URLParams |
| 6995 |
ifNoneMatch_ string |
| 6996 |
ctx_ context.Context |
| 6997 |
header_ http.Header |
| 6998 |
} |
| 6999 |
|
| 7000 |
// Get: Gets the latest state of a long-running operation. Clients can use this |
| 7001 |
// method to poll the operation result at intervals as recommended by the API |
| 7002 |
// service. |
| 7003 |
// |
| 7004 |
// - name: The name of the operation resource. |
| 7005 |
func (r *CustomersCertificateProvisioningProcessesOperationsService) Get(name string) *CustomersCertificateProvisioningProcessesOperationsGetCall { |
| 7006 |
c := &CustomersCertificateProvisioningProcessesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 7007 |
c.name = name |
| 7008 |
return c |
| 7009 |
} |
| 7010 |
|
| 7011 |
// Fields allows partial responses to be retrieved. See |
| 7012 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 7013 |
// details. |
| 7014 |
func (c *CustomersCertificateProvisioningProcessesOperationsGetCall) Fields(s ...googleapi.Field) *CustomersCertificateProvisioningProcessesOperationsGetCall { |
| 7015 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 7016 |
return c |
| 7017 |
} |
| 7018 |
|
| 7019 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 7020 |
// object's ETag matches the given value. This is useful for getting updates |
| 7021 |
// only after the object has changed since the last request. |
| 7022 |
func (c *CustomersCertificateProvisioningProcessesOperationsGetCall) IfNoneMatch(entityTag string) *CustomersCertificateProvisioningProcessesOperationsGetCall { |
| 7023 |
c.ifNoneMatch_ = entityTag |
| 7024 |
return c |
| 7025 |
} |
| 7026 |
|
| 7027 |
// Context sets the context to be used in this call's Do method. |
| 7028 |
func (c *CustomersCertificateProvisioningProcessesOperationsGetCall) Context(ctx context.Context) *CustomersCertificateProvisioningProcessesOperationsGetCall { |
| 7029 |
c.ctx_ = ctx |
| 7030 |
return c |
| 7031 |
} |
| 7032 |
|
| 7033 |
// Header returns a http.Header that can be modified by the caller to add |
| 7034 |
// headers to the request. |
| 7035 |
func (c *CustomersCertificateProvisioningProcessesOperationsGetCall) Header() http.Header { |
| 7036 |
if c.header_ == nil { |
| 7037 |
c.header_ = make(http.Header) |
| 7038 |
} |
| 7039 |
return c.header_ |
| 7040 |
} |
| 7041 |
|
| 7042 |
func (c *CustomersCertificateProvisioningProcessesOperationsGetCall) doRequest(alt string) (*http.Response, error) { |
| 7043 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 7044 |
if c.ifNoneMatch_ != "" { |
| 7045 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 7046 |
} |
| 7047 |
c.urlParams_.Set("alt", alt) |
| 7048 |
c.urlParams_.Set("prettyPrint", "false") |
| 7049 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 7050 |
urls += "?" + c.urlParams_.Encode() |
| 7051 |
req, err := http.NewRequest("GET", urls, nil) |
| 7052 |
if err != nil { |
| 7053 |
return nil, err |
| 7054 |
} |
| 7055 |
req.Header = reqHeaders |
| 7056 |
googleapi.Expand(req.URL, map[string]string{ |
| 7057 |
"name": c.name, |
| 7058 |
}) |
| 7059 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.operations.get", "request", internallog.HTTPRequest(req, nil)) |
| 7060 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 7061 |
} |
| 7062 |
|
| 7063 |
// Do executes the "chromemanagement.customers.certificateProvisioningProcesses.operations.get" call. |
| 7064 |
// Any non-2xx status code is an error. Response headers are in either |
| 7065 |
// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was |
| 7066 |
// returned at all) in error.(*googleapi.Error).Header. Use |
| 7067 |
// googleapi.IsNotModified to check whether the returned error was because |
| 7068 |
// http.StatusNotModified was returned. |
| 7069 |
func (c *CustomersCertificateProvisioningProcessesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { |
| 7070 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 7071 |
res, err := c.doRequest("json") |
| 7072 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 7073 |
if res.Body != nil { |
| 7074 |
res.Body.Close() |
| 7075 |
} |
| 7076 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 7077 |
Code: res.StatusCode, |
| 7078 |
Header: res.Header, |
| 7079 |
}) |
| 7080 |
} |
| 7081 |
if err != nil { |
| 7082 |
return nil, err |
| 7083 |
} |
| 7084 |
defer googleapi.CloseBody(res) |
| 7085 |
if err := googleapi.CheckResponse(res); err != nil { |
| 7086 |
return nil, gensupport.WrapError(err) |
| 7087 |
} |
| 7088 |
ret := &GoogleLongrunningOperation{ |
| 7089 |
ServerResponse: googleapi.ServerResponse{ |
| 7090 |
Header: res.Header, |
| 7091 |
HTTPStatusCode: res.StatusCode, |
| 7092 |
}, |
| 7093 |
} |
| 7094 |
target := &ret |
| 7095 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 7096 |
if err != nil { |
| 7097 |
return nil, err |
| 7098 |
} |
| 7099 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.certificateProvisioningProcesses.operations.get", "response", internallog.HTTPResponse(res, b)) |
| 7100 |
return ret, nil |
| 7101 |
} |
| 7102 |
|
| 7103 |
type CustomersProfilesDeleteCall struct { |
| 7104 |
s *Service |
| 7105 |
name string |
| 7106 |
urlParams_ gensupport.URLParams |
| 7107 |
ctx_ context.Context |
| 7108 |
header_ http.Header |
| 7109 |
} |
| 7110 |
|
| 7111 |
// Delete: Deletes the data collected from a Chrome browser profile. |
| 7112 |
// |
| 7113 |
// - name: Format: customers/{customer_id}/profiles/{profile_permanent_id}. |
| 7114 |
func (r *CustomersProfilesService) Delete(name string) *CustomersProfilesDeleteCall { |
| 7115 |
c := &CustomersProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 7116 |
c.name = name |
| 7117 |
return c |
| 7118 |
} |
| 7119 |
|
| 7120 |
// Fields allows partial responses to be retrieved. See |
| 7121 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 7122 |
// details. |
| 7123 |
func (c *CustomersProfilesDeleteCall) Fields(s ...googleapi.Field) *CustomersProfilesDeleteCall { |
| 7124 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 7125 |
return c |
| 7126 |
} |
| 7127 |
|
| 7128 |
// Context sets the context to be used in this call's Do method. |
| 7129 |
func (c *CustomersProfilesDeleteCall) Context(ctx context.Context) *CustomersProfilesDeleteCall { |
| 7130 |
c.ctx_ = ctx |
| 7131 |
return c |
| 7132 |
} |
| 7133 |
|
| 7134 |
// Header returns a http.Header that can be modified by the caller to add |
| 7135 |
// headers to the request. |
| 7136 |
func (c *CustomersProfilesDeleteCall) Header() http.Header { |
| 7137 |
if c.header_ == nil { |
| 7138 |
c.header_ = make(http.Header) |
| 7139 |
} |
| 7140 |
return c.header_ |
| 7141 |
} |
| 7142 |
|
| 7143 |
func (c *CustomersProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { |
| 7144 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 7145 |
c.urlParams_.Set("alt", alt) |
| 7146 |
c.urlParams_.Set("prettyPrint", "false") |
| 7147 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 7148 |
urls += "?" + c.urlParams_.Encode() |
| 7149 |
req, err := http.NewRequest("DELETE", urls, nil) |
| 7150 |
if err != nil { |
| 7151 |
return nil, err |
| 7152 |
} |
| 7153 |
req.Header = reqHeaders |
| 7154 |
googleapi.Expand(req.URL, map[string]string{ |
| 7155 |
"name": c.name, |
| 7156 |
}) |
| 7157 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.delete", "request", internallog.HTTPRequest(req, nil)) |
| 7158 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 7159 |
} |
| 7160 |
|
| 7161 |
// Do executes the "chromemanagement.customers.profiles.delete" call. |
| 7162 |
// Any non-2xx status code is an error. Response headers are in either |
| 7163 |
// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at |
| 7164 |
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to |
| 7165 |
// check whether the returned error was because http.StatusNotModified was |
| 7166 |
// returned. |
| 7167 |
func (c *CustomersProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { |
| 7168 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 7169 |
res, err := c.doRequest("json") |
| 7170 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 7171 |
if res.Body != nil { |
| 7172 |
res.Body.Close() |
| 7173 |
} |
| 7174 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 7175 |
Code: res.StatusCode, |
| 7176 |
Header: res.Header, |
| 7177 |
}) |
| 7178 |
} |
| 7179 |
if err != nil { |
| 7180 |
return nil, err |
| 7181 |
} |
| 7182 |
defer googleapi.CloseBody(res) |
| 7183 |
if err := googleapi.CheckResponse(res); err != nil { |
| 7184 |
return nil, gensupport.WrapError(err) |
| 7185 |
} |
| 7186 |
ret := &GoogleProtobufEmpty{ |
| 7187 |
ServerResponse: googleapi.ServerResponse{ |
| 7188 |
Header: res.Header, |
| 7189 |
HTTPStatusCode: res.StatusCode, |
| 7190 |
}, |
| 7191 |
} |
| 7192 |
target := &ret |
| 7193 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 7194 |
if err != nil { |
| 7195 |
return nil, err |
| 7196 |
} |
| 7197 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.delete", "response", internallog.HTTPResponse(res, b)) |
| 7198 |
return ret, nil |
| 7199 |
} |
| 7200 |
|
| 7201 |
type CustomersProfilesGetCall struct { |
| 7202 |
s *Service |
| 7203 |
name string |
| 7204 |
urlParams_ gensupport.URLParams |
| 7205 |
ifNoneMatch_ string |
| 7206 |
ctx_ context.Context |
| 7207 |
header_ http.Header |
| 7208 |
} |
| 7209 |
|
| 7210 |
// Get: Gets a Chrome browser profile with customer ID and profile permanent |
| 7211 |
// ID. |
| 7212 |
// |
| 7213 |
// - name: Format: customers/{customer_id}/profiles/{profile_permanent_id}. |
| 7214 |
func (r *CustomersProfilesService) Get(name string) *CustomersProfilesGetCall { |
| 7215 |
c := &CustomersProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 7216 |
c.name = name |
| 7217 |
return c |
| 7218 |
} |
| 7219 |
|
| 7220 |
// Fields allows partial responses to be retrieved. See |
| 7221 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 7222 |
// details. |
| 7223 |
func (c *CustomersProfilesGetCall) Fields(s ...googleapi.Field) *CustomersProfilesGetCall { |
| 7224 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 7225 |
return c |
| 7226 |
} |
| 7227 |
|
| 7228 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 7229 |
// object's ETag matches the given value. This is useful for getting updates |
| 7230 |
// only after the object has changed since the last request. |
| 7231 |
func (c *CustomersProfilesGetCall) IfNoneMatch(entityTag string) *CustomersProfilesGetCall { |
| 7232 |
c.ifNoneMatch_ = entityTag |
| 7233 |
return c |
| 7234 |
} |
| 7235 |
|
| 7236 |
// Context sets the context to be used in this call's Do method. |
| 7237 |
func (c *CustomersProfilesGetCall) Context(ctx context.Context) *CustomersProfilesGetCall { |
| 7238 |
c.ctx_ = ctx |
| 7239 |
return c |
| 7240 |
} |
| 7241 |
|
| 7242 |
// Header returns a http.Header that can be modified by the caller to add |
| 7243 |
// headers to the request. |
| 7244 |
func (c *CustomersProfilesGetCall) Header() http.Header { |
| 7245 |
if c.header_ == nil { |
| 7246 |
c.header_ = make(http.Header) |
| 7247 |
} |
| 7248 |
return c.header_ |
| 7249 |
} |
| 7250 |
|
| 7251 |
func (c *CustomersProfilesGetCall) doRequest(alt string) (*http.Response, error) { |
| 7252 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 7253 |
if c.ifNoneMatch_ != "" { |
| 7254 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 7255 |
} |
| 7256 |
c.urlParams_.Set("alt", alt) |
| 7257 |
c.urlParams_.Set("prettyPrint", "false") |
| 7258 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 7259 |
urls += "?" + c.urlParams_.Encode() |
| 7260 |
req, err := http.NewRequest("GET", urls, nil) |
| 7261 |
if err != nil { |
| 7262 |
return nil, err |
| 7263 |
} |
| 7264 |
req.Header = reqHeaders |
| 7265 |
googleapi.Expand(req.URL, map[string]string{ |
| 7266 |
"name": c.name, |
| 7267 |
}) |
| 7268 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.get", "request", internallog.HTTPRequest(req, nil)) |
| 7269 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 7270 |
} |
| 7271 |
|
| 7272 |
// Do executes the "chromemanagement.customers.profiles.get" call. |
| 7273 |
// Any non-2xx status code is an error. Response headers are in either |
| 7274 |
// *GoogleChromeManagementVersionsV1ChromeBrowserProfile.ServerResponse.Header |
| 7275 |
// or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 7276 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 7277 |
// http.StatusNotModified was returned. |
| 7278 |
func (c *CustomersProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1ChromeBrowserProfile, error) { |
| 7279 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 7280 |
res, err := c.doRequest("json") |
| 7281 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 7282 |
if res.Body != nil { |
| 7283 |
res.Body.Close() |
| 7284 |
} |
| 7285 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 7286 |
Code: res.StatusCode, |
| 7287 |
Header: res.Header, |
| 7288 |
}) |
| 7289 |
} |
| 7290 |
if err != nil { |
| 7291 |
return nil, err |
| 7292 |
} |
| 7293 |
defer googleapi.CloseBody(res) |
| 7294 |
if err := googleapi.CheckResponse(res); err != nil { |
| 7295 |
return nil, gensupport.WrapError(err) |
| 7296 |
} |
| 7297 |
ret := &GoogleChromeManagementVersionsV1ChromeBrowserProfile{ |
| 7298 |
ServerResponse: googleapi.ServerResponse{ |
| 7299 |
Header: res.Header, |
| 7300 |
HTTPStatusCode: res.StatusCode, |
| 7301 |
}, |
| 7302 |
} |
| 7303 |
target := &ret |
| 7304 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 7305 |
if err != nil { |
| 7306 |
return nil, err |
| 7307 |
} |
| 7308 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.get", "response", internallog.HTTPResponse(res, b)) |
| 7309 |
return ret, nil |
| 7310 |
} |
| 7311 |
|
| 7312 |
type CustomersProfilesListCall struct { |
| 7313 |
s *Service |
| 7314 |
parent string |
| 7315 |
urlParams_ gensupport.URLParams |
| 7316 |
ifNoneMatch_ string |
| 7317 |
ctx_ context.Context |
| 7318 |
header_ http.Header |
| 7319 |
} |
| 7320 |
|
| 7321 |
// List: Lists Chrome browser profiles of a customer based on the given search |
| 7322 |
// and sorting criteria. |
| 7323 |
// |
| 7324 |
// - parent: Format: customers/{customer_id}. |
| 7325 |
func (r *CustomersProfilesService) List(parent string) *CustomersProfilesListCall { |
| 7326 |
c := &CustomersProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 7327 |
c.parent = parent |
| 7328 |
return c |
| 7329 |
} |
| 7330 |
|
| 7331 |
// Filter sets the optional parameter "filter": The filter used to filter |
| 7332 |
// profiles. The following fields can be used in the filter: - profile_id - |
| 7333 |
// display_name - user_email - last_activity_time - last_policy_sync_time - |
| 7334 |
// last_status_report_time - first_enrollment_time - os_platform_type - |
| 7335 |
// os_version - browser_version - browser_channel - policy_count - |
| 7336 |
// extension_count - identity_provider - affiliation_state - |
| 7337 |
// os_platform_version - ouId Any of the above fields can be used to specify a |
| 7338 |
// filter, and filtering by multiple fields is supported with AND operator. |
| 7339 |
// String type fields and enum type fields support '=' and '!=' operators. The |
| 7340 |
// integer type and the timestamp type fields support '=', '!=', '<', '>', '<=' |
| 7341 |
// and '>=' operators. Timestamps expect an RFC-3339 formatted string (e.g. |
| 7342 |
// 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type |
| 7343 |
// field filter. In addition, string literal filtering is also supported, for |
| 7344 |
// example, 'ABC' as a filter maps to a filter that checks if any of the |
| 7345 |
// filterable string type fields contains 'ABC'. Organization unit number can |
| 7346 |
// be used as a filtering criteria here by specifying 'ouId = |
| 7347 |
// ${your_org_unit_id}', please note that only single OU ID matching is |
| 7348 |
// supported. |
| 7349 |
func (c *CustomersProfilesListCall) Filter(filter string) *CustomersProfilesListCall { |
| 7350 |
c.urlParams_.Set("filter", filter) |
| 7351 |
return c |
| 7352 |
} |
| 7353 |
|
| 7354 |
// OrderBy sets the optional parameter "orderBy": The fields used to specify |
| 7355 |
// the ordering of the results. The supported fields are: - profile_id - |
| 7356 |
// display_name - user_email - last_activity_time - last_policy_sync_time - |
| 7357 |
// last_status_report_time - first_enrollment_time - os_platform_type - |
| 7358 |
// os_version - browser_version - browser_channel - policy_count - |
| 7359 |
// extension_count - identity_provider - affiliation_state - |
| 7360 |
// os_platform_version By default, sorting is in ascending order, to specify |
| 7361 |
// descending order for a field, a suffix " desc" should be added to the field |
| 7362 |
// name. The default ordering is the descending order of |
| 7363 |
// last_status_report_time. |
| 7364 |
func (c *CustomersProfilesListCall) OrderBy(orderBy string) *CustomersProfilesListCall { |
| 7365 |
c.urlParams_.Set("orderBy", orderBy) |
| 7366 |
return c |
| 7367 |
} |
| 7368 |
|
| 7369 |
// PageSize sets the optional parameter "pageSize": The maximum number of |
| 7370 |
// profiles to return. The default page size is 100 if page_size is |
| 7371 |
// unspecified, and the maximum page size allowed is 200. |
| 7372 |
func (c *CustomersProfilesListCall) PageSize(pageSize int64) *CustomersProfilesListCall { |
| 7373 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 7374 |
return c |
| 7375 |
} |
| 7376 |
|
| 7377 |
// PageToken sets the optional parameter "pageToken": The page token used to |
| 7378 |
// retrieve a specific page of the listing request. |
| 7379 |
func (c *CustomersProfilesListCall) PageToken(pageToken string) *CustomersProfilesListCall { |
| 7380 |
c.urlParams_.Set("pageToken", pageToken) |
| 7381 |
return c |
| 7382 |
} |
| 7383 |
|
| 7384 |
// Fields allows partial responses to be retrieved. See |
| 7385 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 7386 |
// details. |
| 7387 |
func (c *CustomersProfilesListCall) Fields(s ...googleapi.Field) *CustomersProfilesListCall { |
| 7388 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 7389 |
return c |
| 7390 |
} |
| 7391 |
|
| 7392 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 7393 |
// object's ETag matches the given value. This is useful for getting updates |
| 7394 |
// only after the object has changed since the last request. |
| 7395 |
func (c *CustomersProfilesListCall) IfNoneMatch(entityTag string) *CustomersProfilesListCall { |
| 7396 |
c.ifNoneMatch_ = entityTag |
| 7397 |
return c |
| 7398 |
} |
| 7399 |
|
| 7400 |
// Context sets the context to be used in this call's Do method. |
| 7401 |
func (c *CustomersProfilesListCall) Context(ctx context.Context) *CustomersProfilesListCall { |
| 7402 |
c.ctx_ = ctx |
| 7403 |
return c |
| 7404 |
} |
| 7405 |
|
| 7406 |
// Header returns a http.Header that can be modified by the caller to add |
| 7407 |
// headers to the request. |
| 7408 |
func (c *CustomersProfilesListCall) Header() http.Header { |
| 7409 |
if c.header_ == nil { |
| 7410 |
c.header_ = make(http.Header) |
| 7411 |
} |
| 7412 |
return c.header_ |
| 7413 |
} |
| 7414 |
|
| 7415 |
func (c *CustomersProfilesListCall) doRequest(alt string) (*http.Response, error) { |
| 7416 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 7417 |
if c.ifNoneMatch_ != "" { |
| 7418 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 7419 |
} |
| 7420 |
c.urlParams_.Set("alt", alt) |
| 7421 |
c.urlParams_.Set("prettyPrint", "false") |
| 7422 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/profiles") |
| 7423 |
urls += "?" + c.urlParams_.Encode() |
| 7424 |
req, err := http.NewRequest("GET", urls, nil) |
| 7425 |
if err != nil { |
| 7426 |
return nil, err |
| 7427 |
} |
| 7428 |
req.Header = reqHeaders |
| 7429 |
googleapi.Expand(req.URL, map[string]string{ |
| 7430 |
"parent": c.parent, |
| 7431 |
}) |
| 7432 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.list", "request", internallog.HTTPRequest(req, nil)) |
| 7433 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 7434 |
} |
| 7435 |
|
| 7436 |
// Do executes the "chromemanagement.customers.profiles.list" call. |
| 7437 |
// Any non-2xx status code is an error. Response headers are in either |
| 7438 |
// *GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse.ServerResp |
| 7439 |
// onse.Header or (if a response was returned at all) in |
| 7440 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 7441 |
// whether the returned error was because http.StatusNotModified was returned. |
| 7442 |
func (c *CustomersProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse, error) { |
| 7443 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 7444 |
res, err := c.doRequest("json") |
| 7445 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 7446 |
if res.Body != nil { |
| 7447 |
res.Body.Close() |
| 7448 |
} |
| 7449 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 7450 |
Code: res.StatusCode, |
| 7451 |
Header: res.Header, |
| 7452 |
}) |
| 7453 |
} |
| 7454 |
if err != nil { |
| 7455 |
return nil, err |
| 7456 |
} |
| 7457 |
defer googleapi.CloseBody(res) |
| 7458 |
if err := googleapi.CheckResponse(res); err != nil { |
| 7459 |
return nil, gensupport.WrapError(err) |
| 7460 |
} |
| 7461 |
ret := &GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse{ |
| 7462 |
ServerResponse: googleapi.ServerResponse{ |
| 7463 |
Header: res.Header, |
| 7464 |
HTTPStatusCode: res.StatusCode, |
| 7465 |
}, |
| 7466 |
} |
| 7467 |
target := &ret |
| 7468 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 7469 |
if err != nil { |
| 7470 |
return nil, err |
| 7471 |
} |
| 7472 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.list", "response", internallog.HTTPResponse(res, b)) |
| 7473 |
return ret, nil |
| 7474 |
} |
| 7475 |
|
| 7476 |
// Pages invokes f for each page of results. |
| 7477 |
// A non-nil error returned from f will halt the iteration. |
| 7478 |
// The provided context supersedes any context provided to the Context method. |
| 7479 |
func (c *CustomersProfilesListCall) Pages(ctx context.Context, f func(*GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse) error) error { |
| 7480 |
c.ctx_ = ctx |
| 7481 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 7482 |
for { |
| 7483 |
x, err := c.Do() |
| 7484 |
if err != nil { |
| 7485 |
return err |
| 7486 |
} |
| 7487 |
if err := f(x); err != nil { |
| 7488 |
return err |
| 7489 |
} |
| 7490 |
if x.NextPageToken == "" { |
| 7491 |
return nil |
| 7492 |
} |
| 7493 |
c.PageToken(x.NextPageToken) |
| 7494 |
} |
| 7495 |
} |
| 7496 |
|
| 7497 |
type CustomersProfilesCommandsCreateCall struct { |
| 7498 |
s *Service |
| 7499 |
parent string |
| 7500 |
googlechromemanagementversionsv1chromebrowserprofilecommand *GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand |
| 7501 |
urlParams_ gensupport.URLParams |
| 7502 |
ctx_ context.Context |
| 7503 |
header_ http.Header |
| 7504 |
} |
| 7505 |
|
| 7506 |
// Create: Creates a Chrome browser profile remote command. |
| 7507 |
// |
| 7508 |
// - parent: Format: customers/{customer_id}/profiles/{profile_permanent_id}. |
| 7509 |
func (r *CustomersProfilesCommandsService) Create(parent string, googlechromemanagementversionsv1chromebrowserprofilecommand *GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand) *CustomersProfilesCommandsCreateCall { |
| 7510 |
c := &CustomersProfilesCommandsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 7511 |
c.parent = parent |
| 7512 |
c.googlechromemanagementversionsv1chromebrowserprofilecommand = googlechromemanagementversionsv1chromebrowserprofilecommand |
| 7513 |
return c |
| 7514 |
} |
| 7515 |
|
| 7516 |
// Fields allows partial responses to be retrieved. See |
| 7517 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 7518 |
// details. |
| 7519 |
func (c *CustomersProfilesCommandsCreateCall) Fields(s ...googleapi.Field) *CustomersProfilesCommandsCreateCall { |
| 7520 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 7521 |
return c |
| 7522 |
} |
| 7523 |
|
| 7524 |
// Context sets the context to be used in this call's Do method. |
| 7525 |
func (c *CustomersProfilesCommandsCreateCall) Context(ctx context.Context) *CustomersProfilesCommandsCreateCall { |
| 7526 |
c.ctx_ = ctx |
| 7527 |
return c |
| 7528 |
} |
| 7529 |
|
| 7530 |
// Header returns a http.Header that can be modified by the caller to add |
| 7531 |
// headers to the request. |
| 7532 |
func (c *CustomersProfilesCommandsCreateCall) Header() http.Header { |
| 7533 |
if c.header_ == nil { |
| 7534 |
c.header_ = make(http.Header) |
| 7535 |
} |
| 7536 |
return c.header_ |
| 7537 |
} |
| 7538 |
|
| 7539 |
func (c *CustomersProfilesCommandsCreateCall) doRequest(alt string) (*http.Response, error) { |
| 7540 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) |
| 7541 |
body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlechromemanagementversionsv1chromebrowserprofilecommand) |
| 7542 |
if err != nil { |
| 7543 |
return nil, err |
| 7544 |
} |
| 7545 |
c.urlParams_.Set("alt", alt) |
| 7546 |
c.urlParams_.Set("prettyPrint", "false") |
| 7547 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/commands") |
| 7548 |
urls += "?" + c.urlParams_.Encode() |
| 7549 |
req, err := http.NewRequest("POST", urls, body) |
| 7550 |
if err != nil { |
| 7551 |
return nil, err |
| 7552 |
} |
| 7553 |
req.Header = reqHeaders |
| 7554 |
googleapi.Expand(req.URL, map[string]string{ |
| 7555 |
"parent": c.parent, |
| 7556 |
}) |
| 7557 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.commands.create", "request", internallog.HTTPRequest(req, body.Bytes())) |
| 7558 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 7559 |
} |
| 7560 |
|
| 7561 |
// Do executes the "chromemanagement.customers.profiles.commands.create" call. |
| 7562 |
// Any non-2xx status code is an error. Response headers are in either |
| 7563 |
// *GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand.ServerResponse.H |
| 7564 |
// eader or (if a response was returned at all) in |
| 7565 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 7566 |
// whether the returned error was because http.StatusNotModified was returned. |
| 7567 |
func (c *CustomersProfilesCommandsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand, error) { |
| 7568 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 7569 |
res, err := c.doRequest("json") |
| 7570 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 7571 |
if res.Body != nil { |
| 7572 |
res.Body.Close() |
| 7573 |
} |
| 7574 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 7575 |
Code: res.StatusCode, |
| 7576 |
Header: res.Header, |
| 7577 |
}) |
| 7578 |
} |
| 7579 |
if err != nil { |
| 7580 |
return nil, err |
| 7581 |
} |
| 7582 |
defer googleapi.CloseBody(res) |
| 7583 |
if err := googleapi.CheckResponse(res); err != nil { |
| 7584 |
return nil, gensupport.WrapError(err) |
| 7585 |
} |
| 7586 |
ret := &GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand{ |
| 7587 |
ServerResponse: googleapi.ServerResponse{ |
| 7588 |
Header: res.Header, |
| 7589 |
HTTPStatusCode: res.StatusCode, |
| 7590 |
}, |
| 7591 |
} |
| 7592 |
target := &ret |
| 7593 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 7594 |
if err != nil { |
| 7595 |
return nil, err |
| 7596 |
} |
| 7597 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.commands.create", "response", internallog.HTTPResponse(res, b)) |
| 7598 |
return ret, nil |
| 7599 |
} |
| 7600 |
|
| 7601 |
type CustomersProfilesCommandsGetCall struct { |
| 7602 |
s *Service |
| 7603 |
name string |
| 7604 |
urlParams_ gensupport.URLParams |
| 7605 |
ifNoneMatch_ string |
| 7606 |
ctx_ context.Context |
| 7607 |
header_ http.Header |
| 7608 |
} |
| 7609 |
|
| 7610 |
// Get: Gets a Chrome browser profile remote command. |
| 7611 |
// |
| 7612 |
// - name: Format: |
| 7613 |
// customers/{customer_id}/profiles/{profile_permanent_id}/commands/{command_i |
| 7614 |
// d}. |
| 7615 |
func (r *CustomersProfilesCommandsService) Get(name string) *CustomersProfilesCommandsGetCall { |
| 7616 |
c := &CustomersProfilesCommandsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 7617 |
c.name = name |
| 7618 |
return c |
| 7619 |
} |
| 7620 |
|
| 7621 |
// Fields allows partial responses to be retrieved. See |
| 7622 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 7623 |
// details. |
| 7624 |
func (c *CustomersProfilesCommandsGetCall) Fields(s ...googleapi.Field) *CustomersProfilesCommandsGetCall { |
| 7625 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 7626 |
return c |
| 7627 |
} |
| 7628 |
|
| 7629 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 7630 |
// object's ETag matches the given value. This is useful for getting updates |
| 7631 |
// only after the object has changed since the last request. |
| 7632 |
func (c *CustomersProfilesCommandsGetCall) IfNoneMatch(entityTag string) *CustomersProfilesCommandsGetCall { |
| 7633 |
c.ifNoneMatch_ = entityTag |
| 7634 |
return c |
| 7635 |
} |
| 7636 |
|
| 7637 |
// Context sets the context to be used in this call's Do method. |
| 7638 |
func (c *CustomersProfilesCommandsGetCall) Context(ctx context.Context) *CustomersProfilesCommandsGetCall { |
| 7639 |
c.ctx_ = ctx |
| 7640 |
return c |
| 7641 |
} |
| 7642 |
|
| 7643 |
// Header returns a http.Header that can be modified by the caller to add |
| 7644 |
// headers to the request. |
| 7645 |
func (c *CustomersProfilesCommandsGetCall) Header() http.Header { |
| 7646 |
if c.header_ == nil { |
| 7647 |
c.header_ = make(http.Header) |
| 7648 |
} |
| 7649 |
return c.header_ |
| 7650 |
} |
| 7651 |
|
| 7652 |
func (c *CustomersProfilesCommandsGetCall) doRequest(alt string) (*http.Response, error) { |
| 7653 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 7654 |
if c.ifNoneMatch_ != "" { |
| 7655 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 7656 |
} |
| 7657 |
c.urlParams_.Set("alt", alt) |
| 7658 |
c.urlParams_.Set("prettyPrint", "false") |
| 7659 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 7660 |
urls += "?" + c.urlParams_.Encode() |
| 7661 |
req, err := http.NewRequest("GET", urls, nil) |
| 7662 |
if err != nil { |
| 7663 |
return nil, err |
| 7664 |
} |
| 7665 |
req.Header = reqHeaders |
| 7666 |
googleapi.Expand(req.URL, map[string]string{ |
| 7667 |
"name": c.name, |
| 7668 |
}) |
| 7669 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.commands.get", "request", internallog.HTTPRequest(req, nil)) |
| 7670 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 7671 |
} |
| 7672 |
|
| 7673 |
// Do executes the "chromemanagement.customers.profiles.commands.get" call. |
| 7674 |
// Any non-2xx status code is an error. Response headers are in either |
| 7675 |
// *GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand.ServerResponse.H |
| 7676 |
// eader or (if a response was returned at all) in |
| 7677 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 7678 |
// whether the returned error was because http.StatusNotModified was returned. |
| 7679 |
func (c *CustomersProfilesCommandsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand, error) { |
| 7680 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 7681 |
res, err := c.doRequest("json") |
| 7682 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 7683 |
if res.Body != nil { |
| 7684 |
res.Body.Close() |
| 7685 |
} |
| 7686 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 7687 |
Code: res.StatusCode, |
| 7688 |
Header: res.Header, |
| 7689 |
}) |
| 7690 |
} |
| 7691 |
if err != nil { |
| 7692 |
return nil, err |
| 7693 |
} |
| 7694 |
defer googleapi.CloseBody(res) |
| 7695 |
if err := googleapi.CheckResponse(res); err != nil { |
| 7696 |
return nil, gensupport.WrapError(err) |
| 7697 |
} |
| 7698 |
ret := &GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand{ |
| 7699 |
ServerResponse: googleapi.ServerResponse{ |
| 7700 |
Header: res.Header, |
| 7701 |
HTTPStatusCode: res.StatusCode, |
| 7702 |
}, |
| 7703 |
} |
| 7704 |
target := &ret |
| 7705 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 7706 |
if err != nil { |
| 7707 |
return nil, err |
| 7708 |
} |
| 7709 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.commands.get", "response", internallog.HTTPResponse(res, b)) |
| 7710 |
return ret, nil |
| 7711 |
} |
| 7712 |
|
| 7713 |
type CustomersProfilesCommandsListCall struct { |
| 7714 |
s *Service |
| 7715 |
parent string |
| 7716 |
urlParams_ gensupport.URLParams |
| 7717 |
ifNoneMatch_ string |
| 7718 |
ctx_ context.Context |
| 7719 |
header_ http.Header |
| 7720 |
} |
| 7721 |
|
| 7722 |
// List: Lists remote commands of a Chrome browser profile. |
| 7723 |
// |
| 7724 |
// - parent: Format: customers/{customer_id}/profiles/{profile_permanent_id}. |
| 7725 |
func (r *CustomersProfilesCommandsService) List(parent string) *CustomersProfilesCommandsListCall { |
| 7726 |
c := &CustomersProfilesCommandsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 7727 |
c.parent = parent |
| 7728 |
return c |
| 7729 |
} |
| 7730 |
|
| 7731 |
// PageSize sets the optional parameter "pageSize": The maximum number of |
| 7732 |
// commands to return. The default page size is 100 if page_size is |
| 7733 |
// unspecified, and the maximum page size allowed is 100. |
| 7734 |
func (c *CustomersProfilesCommandsListCall) PageSize(pageSize int64) *CustomersProfilesCommandsListCall { |
| 7735 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 7736 |
return c |
| 7737 |
} |
| 7738 |
|
| 7739 |
// PageToken sets the optional parameter "pageToken": The page token used to |
| 7740 |
// retrieve a specific page of the listing request. |
| 7741 |
func (c *CustomersProfilesCommandsListCall) PageToken(pageToken string) *CustomersProfilesCommandsListCall { |
| 7742 |
c.urlParams_.Set("pageToken", pageToken) |
| 7743 |
return c |
| 7744 |
} |
| 7745 |
|
| 7746 |
// Fields allows partial responses to be retrieved. See |
| 7747 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 7748 |
// details. |
| 7749 |
func (c *CustomersProfilesCommandsListCall) Fields(s ...googleapi.Field) *CustomersProfilesCommandsListCall { |
| 7750 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 7751 |
return c |
| 7752 |
} |
| 7753 |
|
| 7754 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 7755 |
// object's ETag matches the given value. This is useful for getting updates |
| 7756 |
// only after the object has changed since the last request. |
| 7757 |
func (c *CustomersProfilesCommandsListCall) IfNoneMatch(entityTag string) *CustomersProfilesCommandsListCall { |
| 7758 |
c.ifNoneMatch_ = entityTag |
| 7759 |
return c |
| 7760 |
} |
| 7761 |
|
| 7762 |
// Context sets the context to be used in this call's Do method. |
| 7763 |
func (c *CustomersProfilesCommandsListCall) Context(ctx context.Context) *CustomersProfilesCommandsListCall { |
| 7764 |
c.ctx_ = ctx |
| 7765 |
return c |
| 7766 |
} |
| 7767 |
|
| 7768 |
// Header returns a http.Header that can be modified by the caller to add |
| 7769 |
// headers to the request. |
| 7770 |
func (c *CustomersProfilesCommandsListCall) Header() http.Header { |
| 7771 |
if c.header_ == nil { |
| 7772 |
c.header_ = make(http.Header) |
| 7773 |
} |
| 7774 |
return c.header_ |
| 7775 |
} |
| 7776 |
|
| 7777 |
func (c *CustomersProfilesCommandsListCall) doRequest(alt string) (*http.Response, error) { |
| 7778 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 7779 |
if c.ifNoneMatch_ != "" { |
| 7780 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 7781 |
} |
| 7782 |
c.urlParams_.Set("alt", alt) |
| 7783 |
c.urlParams_.Set("prettyPrint", "false") |
| 7784 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/commands") |
| 7785 |
urls += "?" + c.urlParams_.Encode() |
| 7786 |
req, err := http.NewRequest("GET", urls, nil) |
| 7787 |
if err != nil { |
| 7788 |
return nil, err |
| 7789 |
} |
| 7790 |
req.Header = reqHeaders |
| 7791 |
googleapi.Expand(req.URL, map[string]string{ |
| 7792 |
"parent": c.parent, |
| 7793 |
}) |
| 7794 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.commands.list", "request", internallog.HTTPRequest(req, nil)) |
| 7795 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 7796 |
} |
| 7797 |
|
| 7798 |
// Do executes the "chromemanagement.customers.profiles.commands.list" call. |
| 7799 |
// Any non-2xx status code is an error. Response headers are in either |
| 7800 |
// *GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse.Ser |
| 7801 |
// verResponse.Header or (if a response was returned at all) in |
| 7802 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 7803 |
// whether the returned error was because http.StatusNotModified was returned. |
| 7804 |
func (c *CustomersProfilesCommandsListCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse, error) { |
| 7805 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 7806 |
res, err := c.doRequest("json") |
| 7807 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 7808 |
if res.Body != nil { |
| 7809 |
res.Body.Close() |
| 7810 |
} |
| 7811 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 7812 |
Code: res.StatusCode, |
| 7813 |
Header: res.Header, |
| 7814 |
}) |
| 7815 |
} |
| 7816 |
if err != nil { |
| 7817 |
return nil, err |
| 7818 |
} |
| 7819 |
defer googleapi.CloseBody(res) |
| 7820 |
if err := googleapi.CheckResponse(res); err != nil { |
| 7821 |
return nil, gensupport.WrapError(err) |
| 7822 |
} |
| 7823 |
ret := &GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse{ |
| 7824 |
ServerResponse: googleapi.ServerResponse{ |
| 7825 |
Header: res.Header, |
| 7826 |
HTTPStatusCode: res.StatusCode, |
| 7827 |
}, |
| 7828 |
} |
| 7829 |
target := &ret |
| 7830 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 7831 |
if err != nil { |
| 7832 |
return nil, err |
| 7833 |
} |
| 7834 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.profiles.commands.list", "response", internallog.HTTPResponse(res, b)) |
| 7835 |
return ret, nil |
| 7836 |
} |
| 7837 |
|
| 7838 |
// Pages invokes f for each page of results. |
| 7839 |
// A non-nil error returned from f will halt the iteration. |
| 7840 |
// The provided context supersedes any context provided to the Context method. |
| 7841 |
func (c *CustomersProfilesCommandsListCall) Pages(ctx context.Context, f func(*GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse) error) error { |
| 7842 |
c.ctx_ = ctx |
| 7843 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 7844 |
for { |
| 7845 |
x, err := c.Do() |
| 7846 |
if err != nil { |
| 7847 |
return err |
| 7848 |
} |
| 7849 |
if err := f(x); err != nil { |
| 7850 |
return err |
| 7851 |
} |
| 7852 |
if x.NextPageToken == "" { |
| 7853 |
return nil |
| 7854 |
} |
| 7855 |
c.PageToken(x.NextPageToken) |
| 7856 |
} |
| 7857 |
} |
| 7858 |
|
| 7859 |
type CustomersReportsCountActiveDevicesCall struct { |
| 7860 |
s *Service |
| 7861 |
customer string |
| 7862 |
urlParams_ gensupport.URLParams |
| 7863 |
ifNoneMatch_ string |
| 7864 |
ctx_ context.Context |
| 7865 |
header_ http.Header |
| 7866 |
} |
| 7867 |
|
| 7868 |
// CountActiveDevices: Get a count of active devices per set time frames. |
| 7869 |
// |
| 7870 |
// - customer: Obfuscated customer ID prefixed with "customers/C" or |
| 7871 |
// "customers/my_customer". |
| 7872 |
func (r *CustomersReportsService) CountActiveDevices(customer string) *CustomersReportsCountActiveDevicesCall { |
| 7873 |
c := &CustomersReportsCountActiveDevicesCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 7874 |
c.customer = customer |
| 7875 |
return c |
| 7876 |
} |
| 7877 |
|
| 7878 |
// DateDay sets the optional parameter "date.day": Day of a month. Must be from |
| 7879 |
// 1 to 31 and valid for the year and month, or 0 to specify a year by itself |
| 7880 |
// or a year and month where the day isn't significant. |
| 7881 |
func (c *CustomersReportsCountActiveDevicesCall) DateDay(dateDay int64) *CustomersReportsCountActiveDevicesCall { |
| 7882 |
c.urlParams_.Set("date.day", fmt.Sprint(dateDay)) |
| 7883 |
return c |
| 7884 |
} |
| 7885 |
|
| 7886 |
// DateMonth sets the optional parameter "date.month": Month of a year. Must be |
| 7887 |
// from 1 to 12, or 0 to specify a year without a month and day. |
| 7888 |
func (c *CustomersReportsCountActiveDevicesCall) DateMonth(dateMonth int64) *CustomersReportsCountActiveDevicesCall { |
| 7889 |
c.urlParams_.Set("date.month", fmt.Sprint(dateMonth)) |
| 7890 |
return c |
| 7891 |
} |
| 7892 |
|
| 7893 |
// DateYear sets the optional parameter "date.year": Year of the date. Must be |
| 7894 |
// from 1 to 9999, or 0 to specify a date without a year. |
| 7895 |
func (c *CustomersReportsCountActiveDevicesCall) DateYear(dateYear int64) *CustomersReportsCountActiveDevicesCall { |
| 7896 |
c.urlParams_.Set("date.year", fmt.Sprint(dateYear)) |
| 7897 |
return c |
| 7898 |
} |
| 7899 |
|
| 7900 |
// Fields allows partial responses to be retrieved. See |
| 7901 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 7902 |
// details. |
| 7903 |
func (c *CustomersReportsCountActiveDevicesCall) Fields(s ...googleapi.Field) *CustomersReportsCountActiveDevicesCall { |
| 7904 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 7905 |
return c |
| 7906 |
} |
| 7907 |
|
| 7908 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 7909 |
// object's ETag matches the given value. This is useful for getting updates |
| 7910 |
// only after the object has changed since the last request. |
| 7911 |
func (c *CustomersReportsCountActiveDevicesCall) IfNoneMatch(entityTag string) *CustomersReportsCountActiveDevicesCall { |
| 7912 |
c.ifNoneMatch_ = entityTag |
| 7913 |
return c |
| 7914 |
} |
| 7915 |
|
| 7916 |
// Context sets the context to be used in this call's Do method. |
| 7917 |
func (c *CustomersReportsCountActiveDevicesCall) Context(ctx context.Context) *CustomersReportsCountActiveDevicesCall { |
| 7918 |
c.ctx_ = ctx |
| 7919 |
return c |
| 7920 |
} |
| 7921 |
|
| 7922 |
// Header returns a http.Header that can be modified by the caller to add |
| 7923 |
// headers to the request. |
| 7924 |
func (c *CustomersReportsCountActiveDevicesCall) Header() http.Header { |
| 7925 |
if c.header_ == nil { |
| 7926 |
c.header_ = make(http.Header) |
| 7927 |
} |
| 7928 |
return c.header_ |
| 7929 |
} |
| 7930 |
|
| 7931 |
func (c *CustomersReportsCountActiveDevicesCall) doRequest(alt string) (*http.Response, error) { |
| 7932 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 7933 |
if c.ifNoneMatch_ != "" { |
| 7934 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 7935 |
} |
| 7936 |
c.urlParams_.Set("alt", alt) |
| 7937 |
c.urlParams_.Set("prettyPrint", "false") |
| 7938 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countActiveDevices") |
| 7939 |
urls += "?" + c.urlParams_.Encode() |
| 7940 |
req, err := http.NewRequest("GET", urls, nil) |
| 7941 |
if err != nil { |
| 7942 |
return nil, err |
| 7943 |
} |
| 7944 |
req.Header = reqHeaders |
| 7945 |
googleapi.Expand(req.URL, map[string]string{ |
| 7946 |
"customer": c.customer, |
| 7947 |
}) |
| 7948 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countActiveDevices", "request", internallog.HTTPRequest(req, nil)) |
| 7949 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 7950 |
} |
| 7951 |
|
| 7952 |
// Do executes the "chromemanagement.customers.reports.countActiveDevices" call. |
| 7953 |
// Any non-2xx status code is an error. Response headers are in either |
| 7954 |
// *GoogleChromeManagementV1CountActiveDevicesResponse.ServerResponse.Header or |
| 7955 |
// (if a response was returned at all) in error.(*googleapi.Error).Header. Use |
| 7956 |
// googleapi.IsNotModified to check whether the returned error was because |
| 7957 |
// http.StatusNotModified was returned. |
| 7958 |
func (c *CustomersReportsCountActiveDevicesCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountActiveDevicesResponse, error) { |
| 7959 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 7960 |
res, err := c.doRequest("json") |
| 7961 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 7962 |
if res.Body != nil { |
| 7963 |
res.Body.Close() |
| 7964 |
} |
| 7965 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 7966 |
Code: res.StatusCode, |
| 7967 |
Header: res.Header, |
| 7968 |
}) |
| 7969 |
} |
| 7970 |
if err != nil { |
| 7971 |
return nil, err |
| 7972 |
} |
| 7973 |
defer googleapi.CloseBody(res) |
| 7974 |
if err := googleapi.CheckResponse(res); err != nil { |
| 7975 |
return nil, gensupport.WrapError(err) |
| 7976 |
} |
| 7977 |
ret := &GoogleChromeManagementV1CountActiveDevicesResponse{ |
| 7978 |
ServerResponse: googleapi.ServerResponse{ |
| 7979 |
Header: res.Header, |
| 7980 |
HTTPStatusCode: res.StatusCode, |
| 7981 |
}, |
| 7982 |
} |
| 7983 |
target := &ret |
| 7984 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 7985 |
if err != nil { |
| 7986 |
return nil, err |
| 7987 |
} |
| 7988 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countActiveDevices", "response", internallog.HTTPResponse(res, b)) |
| 7989 |
return ret, nil |
| 7990 |
} |
| 7991 |
|
| 7992 |
type CustomersReportsCountChromeBrowsersNeedingAttentionCall struct { |
| 7993 |
s *Service |
| 7994 |
customer string |
| 7995 |
urlParams_ gensupport.URLParams |
| 7996 |
ifNoneMatch_ string |
| 7997 |
ctx_ context.Context |
| 7998 |
header_ http.Header |
| 7999 |
} |
| 8000 |
|
| 8001 |
// CountChromeBrowsersNeedingAttention: Count of Chrome Browsers that have been |
| 8002 |
// recently enrolled, have new policy to be synced, or have no recent activity. |
| 8003 |
// |
| 8004 |
// - customer: The customer ID or "my_customer" prefixed with "customers/". |
| 8005 |
func (r *CustomersReportsService) CountChromeBrowsersNeedingAttention(customer string) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { |
| 8006 |
c := &CustomersReportsCountChromeBrowsersNeedingAttentionCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 8007 |
c.customer = customer |
| 8008 |
return c |
| 8009 |
} |
| 8010 |
|
| 8011 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 8012 |
// organizational unit. If omitted, all data will be returned. |
| 8013 |
func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { |
| 8014 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 8015 |
return c |
| 8016 |
} |
| 8017 |
|
| 8018 |
// Fields allows partial responses to be retrieved. See |
| 8019 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 8020 |
// details. |
| 8021 |
func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { |
| 8022 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 8023 |
return c |
| 8024 |
} |
| 8025 |
|
| 8026 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 8027 |
// object's ETag matches the given value. This is useful for getting updates |
| 8028 |
// only after the object has changed since the last request. |
| 8029 |
func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { |
| 8030 |
c.ifNoneMatch_ = entityTag |
| 8031 |
return c |
| 8032 |
} |
| 8033 |
|
| 8034 |
// Context sets the context to be used in this call's Do method. |
| 8035 |
func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Context(ctx context.Context) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { |
| 8036 |
c.ctx_ = ctx |
| 8037 |
return c |
| 8038 |
} |
| 8039 |
|
| 8040 |
// Header returns a http.Header that can be modified by the caller to add |
| 8041 |
// headers to the request. |
| 8042 |
func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Header() http.Header { |
| 8043 |
if c.header_ == nil { |
| 8044 |
c.header_ = make(http.Header) |
| 8045 |
} |
| 8046 |
return c.header_ |
| 8047 |
} |
| 8048 |
|
| 8049 |
func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) doRequest(alt string) (*http.Response, error) { |
| 8050 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 8051 |
if c.ifNoneMatch_ != "" { |
| 8052 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 8053 |
} |
| 8054 |
c.urlParams_.Set("alt", alt) |
| 8055 |
c.urlParams_.Set("prettyPrint", "false") |
| 8056 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countChromeBrowsersNeedingAttention") |
| 8057 |
urls += "?" + c.urlParams_.Encode() |
| 8058 |
req, err := http.NewRequest("GET", urls, nil) |
| 8059 |
if err != nil { |
| 8060 |
return nil, err |
| 8061 |
} |
| 8062 |
req.Header = reqHeaders |
| 8063 |
googleapi.Expand(req.URL, map[string]string{ |
| 8064 |
"customer": c.customer, |
| 8065 |
}) |
| 8066 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention", "request", internallog.HTTPRequest(req, nil)) |
| 8067 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 8068 |
} |
| 8069 |
|
| 8070 |
// Do executes the "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention" call. |
| 8071 |
// Any non-2xx status code is an error. Response headers are in either |
| 8072 |
// *GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse.ServerRe |
| 8073 |
// sponse.Header or (if a response was returned at all) in |
| 8074 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 8075 |
// whether the returned error was because http.StatusNotModified was returned. |
| 8076 |
func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse, error) { |
| 8077 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 8078 |
res, err := c.doRequest("json") |
| 8079 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 8080 |
if res.Body != nil { |
| 8081 |
res.Body.Close() |
| 8082 |
} |
| 8083 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 8084 |
Code: res.StatusCode, |
| 8085 |
Header: res.Header, |
| 8086 |
}) |
| 8087 |
} |
| 8088 |
if err != nil { |
| 8089 |
return nil, err |
| 8090 |
} |
| 8091 |
defer googleapi.CloseBody(res) |
| 8092 |
if err := googleapi.CheckResponse(res); err != nil { |
| 8093 |
return nil, gensupport.WrapError(err) |
| 8094 |
} |
| 8095 |
ret := &GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse{ |
| 8096 |
ServerResponse: googleapi.ServerResponse{ |
| 8097 |
Header: res.Header, |
| 8098 |
HTTPStatusCode: res.StatusCode, |
| 8099 |
}, |
| 8100 |
} |
| 8101 |
target := &ret |
| 8102 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 8103 |
if err != nil { |
| 8104 |
return nil, err |
| 8105 |
} |
| 8106 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention", "response", internallog.HTTPResponse(res, b)) |
| 8107 |
return ret, nil |
| 8108 |
} |
| 8109 |
|
| 8110 |
type CustomersReportsCountChromeCrashEventsCall struct { |
| 8111 |
s *Service |
| 8112 |
customer string |
| 8113 |
urlParams_ gensupport.URLParams |
| 8114 |
ifNoneMatch_ string |
| 8115 |
ctx_ context.Context |
| 8116 |
header_ http.Header |
| 8117 |
} |
| 8118 |
|
| 8119 |
// CountChromeCrashEvents: Get a count of Chrome crash events. |
| 8120 |
// |
| 8121 |
// - customer: Customer ID. |
| 8122 |
func (r *CustomersReportsService) CountChromeCrashEvents(customer string) *CustomersReportsCountChromeCrashEventsCall { |
| 8123 |
c := &CustomersReportsCountChromeCrashEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 8124 |
c.customer = customer |
| 8125 |
return c |
| 8126 |
} |
| 8127 |
|
| 8128 |
// Filter sets the optional parameter "filter": Query string to filter results, |
| 8129 |
// AND-separated fields in EBNF syntax. Supported filter fields: * |
| 8130 |
// major_browser_version * minor_browser_version * browser_channel * |
| 8131 |
// device_platform * past_number_days Example: `major_browser_version = 'M115' |
| 8132 |
// AND past_number_days = '28'`. |
| 8133 |
func (c *CustomersReportsCountChromeCrashEventsCall) Filter(filter string) *CustomersReportsCountChromeCrashEventsCall { |
| 8134 |
c.urlParams_.Set("filter", filter) |
| 8135 |
return c |
| 8136 |
} |
| 8137 |
|
| 8138 |
// OrderBy sets the optional parameter "orderBy": Field used to order results. |
| 8139 |
// Supported order by fields: * browser_version * count * date |
| 8140 |
func (c *CustomersReportsCountChromeCrashEventsCall) OrderBy(orderBy string) *CustomersReportsCountChromeCrashEventsCall { |
| 8141 |
c.urlParams_.Set("orderBy", orderBy) |
| 8142 |
return c |
| 8143 |
} |
| 8144 |
|
| 8145 |
// OrgUnitId sets the optional parameter "orgUnitId": If specified, only count |
| 8146 |
// the number of crash events of the devices in this organizational unit. |
| 8147 |
func (c *CustomersReportsCountChromeCrashEventsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeCrashEventsCall { |
| 8148 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 8149 |
return c |
| 8150 |
} |
| 8151 |
|
| 8152 |
// Fields allows partial responses to be retrieved. See |
| 8153 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 8154 |
// details. |
| 8155 |
func (c *CustomersReportsCountChromeCrashEventsCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeCrashEventsCall { |
| 8156 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 8157 |
return c |
| 8158 |
} |
| 8159 |
|
| 8160 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 8161 |
// object's ETag matches the given value. This is useful for getting updates |
| 8162 |
// only after the object has changed since the last request. |
| 8163 |
func (c *CustomersReportsCountChromeCrashEventsCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeCrashEventsCall { |
| 8164 |
c.ifNoneMatch_ = entityTag |
| 8165 |
return c |
| 8166 |
} |
| 8167 |
|
| 8168 |
// Context sets the context to be used in this call's Do method. |
| 8169 |
func (c *CustomersReportsCountChromeCrashEventsCall) Context(ctx context.Context) *CustomersReportsCountChromeCrashEventsCall { |
| 8170 |
c.ctx_ = ctx |
| 8171 |
return c |
| 8172 |
} |
| 8173 |
|
| 8174 |
// Header returns a http.Header that can be modified by the caller to add |
| 8175 |
// headers to the request. |
| 8176 |
func (c *CustomersReportsCountChromeCrashEventsCall) Header() http.Header { |
| 8177 |
if c.header_ == nil { |
| 8178 |
c.header_ = make(http.Header) |
| 8179 |
} |
| 8180 |
return c.header_ |
| 8181 |
} |
| 8182 |
|
| 8183 |
func (c *CustomersReportsCountChromeCrashEventsCall) doRequest(alt string) (*http.Response, error) { |
| 8184 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 8185 |
if c.ifNoneMatch_ != "" { |
| 8186 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 8187 |
} |
| 8188 |
c.urlParams_.Set("alt", alt) |
| 8189 |
c.urlParams_.Set("prettyPrint", "false") |
| 8190 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countChromeCrashEvents") |
| 8191 |
urls += "?" + c.urlParams_.Encode() |
| 8192 |
req, err := http.NewRequest("GET", urls, nil) |
| 8193 |
if err != nil { |
| 8194 |
return nil, err |
| 8195 |
} |
| 8196 |
req.Header = reqHeaders |
| 8197 |
googleapi.Expand(req.URL, map[string]string{ |
| 8198 |
"customer": c.customer, |
| 8199 |
}) |
| 8200 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeCrashEvents", "request", internallog.HTTPRequest(req, nil)) |
| 8201 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 8202 |
} |
| 8203 |
|
| 8204 |
// Do executes the "chromemanagement.customers.reports.countChromeCrashEvents" call. |
| 8205 |
// Any non-2xx status code is an error. Response headers are in either |
| 8206 |
// *GoogleChromeManagementV1CountChromeCrashEventsResponse.ServerResponse.Header |
| 8207 |
// |
| 8208 |
// or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 8209 |
// |
| 8210 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 8211 |
// http.StatusNotModified was returned. |
| 8212 |
func (c *CustomersReportsCountChromeCrashEventsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeCrashEventsResponse, error) { |
| 8213 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 8214 |
res, err := c.doRequest("json") |
| 8215 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 8216 |
if res.Body != nil { |
| 8217 |
res.Body.Close() |
| 8218 |
} |
| 8219 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 8220 |
Code: res.StatusCode, |
| 8221 |
Header: res.Header, |
| 8222 |
}) |
| 8223 |
} |
| 8224 |
if err != nil { |
| 8225 |
return nil, err |
| 8226 |
} |
| 8227 |
defer googleapi.CloseBody(res) |
| 8228 |
if err := googleapi.CheckResponse(res); err != nil { |
| 8229 |
return nil, gensupport.WrapError(err) |
| 8230 |
} |
| 8231 |
ret := &GoogleChromeManagementV1CountChromeCrashEventsResponse{ |
| 8232 |
ServerResponse: googleapi.ServerResponse{ |
| 8233 |
Header: res.Header, |
| 8234 |
HTTPStatusCode: res.StatusCode, |
| 8235 |
}, |
| 8236 |
} |
| 8237 |
target := &ret |
| 8238 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 8239 |
if err != nil { |
| 8240 |
return nil, err |
| 8241 |
} |
| 8242 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeCrashEvents", "response", internallog.HTTPResponse(res, b)) |
| 8243 |
return ret, nil |
| 8244 |
} |
| 8245 |
|
| 8246 |
type CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall struct { |
| 8247 |
s *Service |
| 8248 |
customer string |
| 8249 |
urlParams_ gensupport.URLParams |
| 8250 |
ifNoneMatch_ string |
| 8251 |
ctx_ context.Context |
| 8252 |
header_ http.Header |
| 8253 |
} |
| 8254 |
|
| 8255 |
// CountChromeDevicesReachingAutoExpirationDate: Generate report of the number |
| 8256 |
// of devices expiring in each month of the selected time frame. Devices are |
| 8257 |
// grouped by auto update expiration date and model. Further information can be |
| 8258 |
// found here (https://support.google.com/chrome/a/answer/10564947). |
| 8259 |
// |
| 8260 |
// - customer: The customer ID or "my_customer" prefixed with "customers/". |
| 8261 |
func (r *CustomersReportsService) CountChromeDevicesReachingAutoExpirationDate(customer string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { |
| 8262 |
c := &CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 8263 |
c.customer = customer |
| 8264 |
return c |
| 8265 |
} |
| 8266 |
|
| 8267 |
// MaxAueDate sets the optional parameter "maxAueDate": Maximum expiration date |
| 8268 |
// in format yyyy-mm-dd in UTC timezone. If included returns all devices that |
| 8269 |
// have already expired and devices with auto expiration date equal to or |
| 8270 |
// earlier than the maximum date. |
| 8271 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) MaxAueDate(maxAueDate string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { |
| 8272 |
c.urlParams_.Set("maxAueDate", maxAueDate) |
| 8273 |
return c |
| 8274 |
} |
| 8275 |
|
| 8276 |
// MinAueDate sets the optional parameter "minAueDate": Maximum expiration date |
| 8277 |
// in format yyyy-mm-dd in UTC timezone. If included returns all devices that |
| 8278 |
// have already expired and devices with auto expiration date equal to or later |
| 8279 |
// than the minimum date. |
| 8280 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) MinAueDate(minAueDate string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { |
| 8281 |
c.urlParams_.Set("minAueDate", minAueDate) |
| 8282 |
return c |
| 8283 |
} |
| 8284 |
|
| 8285 |
// OrgUnitId sets the optional parameter "orgUnitId": The organizational unit |
| 8286 |
// ID, if omitted, will return data for all organizational units. |
| 8287 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { |
| 8288 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 8289 |
return c |
| 8290 |
} |
| 8291 |
|
| 8292 |
// Fields allows partial responses to be retrieved. See |
| 8293 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 8294 |
// details. |
| 8295 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { |
| 8296 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 8297 |
return c |
| 8298 |
} |
| 8299 |
|
| 8300 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 8301 |
// object's ETag matches the given value. This is useful for getting updates |
| 8302 |
// only after the object has changed since the last request. |
| 8303 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { |
| 8304 |
c.ifNoneMatch_ = entityTag |
| 8305 |
return c |
| 8306 |
} |
| 8307 |
|
| 8308 |
// Context sets the context to be used in this call's Do method. |
| 8309 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Context(ctx context.Context) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { |
| 8310 |
c.ctx_ = ctx |
| 8311 |
return c |
| 8312 |
} |
| 8313 |
|
| 8314 |
// Header returns a http.Header that can be modified by the caller to add |
| 8315 |
// headers to the request. |
| 8316 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Header() http.Header { |
| 8317 |
if c.header_ == nil { |
| 8318 |
c.header_ = make(http.Header) |
| 8319 |
} |
| 8320 |
return c.header_ |
| 8321 |
} |
| 8322 |
|
| 8323 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) doRequest(alt string) (*http.Response, error) { |
| 8324 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 8325 |
if c.ifNoneMatch_ != "" { |
| 8326 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 8327 |
} |
| 8328 |
c.urlParams_.Set("alt", alt) |
| 8329 |
c.urlParams_.Set("prettyPrint", "false") |
| 8330 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate") |
| 8331 |
urls += "?" + c.urlParams_.Encode() |
| 8332 |
req, err := http.NewRequest("GET", urls, nil) |
| 8333 |
if err != nil { |
| 8334 |
return nil, err |
| 8335 |
} |
| 8336 |
req.Header = reqHeaders |
| 8337 |
googleapi.Expand(req.URL, map[string]string{ |
| 8338 |
"customer": c.customer, |
| 8339 |
}) |
| 8340 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate", "request", internallog.HTTPRequest(req, nil)) |
| 8341 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 8342 |
} |
| 8343 |
|
| 8344 |
// Do executes the "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate" call. |
| 8345 |
// Any non-2xx status code is an error. Response headers are in either |
| 8346 |
// *GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse |
| 8347 |
// .ServerResponse.Header or (if a response was returned at all) in |
| 8348 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 8349 |
// whether the returned error was because http.StatusNotModified was returned. |
| 8350 |
func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse, error) { |
| 8351 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 8352 |
res, err := c.doRequest("json") |
| 8353 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 8354 |
if res.Body != nil { |
| 8355 |
res.Body.Close() |
| 8356 |
} |
| 8357 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 8358 |
Code: res.StatusCode, |
| 8359 |
Header: res.Header, |
| 8360 |
}) |
| 8361 |
} |
| 8362 |
if err != nil { |
| 8363 |
return nil, err |
| 8364 |
} |
| 8365 |
defer googleapi.CloseBody(res) |
| 8366 |
if err := googleapi.CheckResponse(res); err != nil { |
| 8367 |
return nil, gensupport.WrapError(err) |
| 8368 |
} |
| 8369 |
ret := &GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse{ |
| 8370 |
ServerResponse: googleapi.ServerResponse{ |
| 8371 |
Header: res.Header, |
| 8372 |
HTTPStatusCode: res.StatusCode, |
| 8373 |
}, |
| 8374 |
} |
| 8375 |
target := &ret |
| 8376 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 8377 |
if err != nil { |
| 8378 |
return nil, err |
| 8379 |
} |
| 8380 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate", "response", internallog.HTTPResponse(res, b)) |
| 8381 |
return ret, nil |
| 8382 |
} |
| 8383 |
|
| 8384 |
type CustomersReportsCountChromeDevicesThatNeedAttentionCall struct { |
| 8385 |
s *Service |
| 8386 |
customer string |
| 8387 |
urlParams_ gensupport.URLParams |
| 8388 |
ifNoneMatch_ string |
| 8389 |
ctx_ context.Context |
| 8390 |
header_ http.Header |
| 8391 |
} |
| 8392 |
|
| 8393 |
// CountChromeDevicesThatNeedAttention: Counts of ChromeOS devices that have |
| 8394 |
// not synced policies or have lacked user activity in the past 28 days, are |
| 8395 |
// out of date, or are not complaint. Further information can be found here |
| 8396 |
// https://support.google.com/chrome/a/answer/10564947 |
| 8397 |
// |
| 8398 |
// - customer: The customer ID or "my_customer" prefixed with "customers/". |
| 8399 |
func (r *CustomersReportsService) CountChromeDevicesThatNeedAttention(customer string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { |
| 8400 |
c := &CustomersReportsCountChromeDevicesThatNeedAttentionCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 8401 |
c.customer = customer |
| 8402 |
return c |
| 8403 |
} |
| 8404 |
|
| 8405 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 8406 |
// organizational unit. If omitted, all data will be returned. |
| 8407 |
func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { |
| 8408 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 8409 |
return c |
| 8410 |
} |
| 8411 |
|
| 8412 |
// ReadMask sets the optional parameter "readMask": Required. Mask of the |
| 8413 |
// fields that should be populated in the returned report. |
| 8414 |
func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) ReadMask(readMask string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { |
| 8415 |
c.urlParams_.Set("readMask", readMask) |
| 8416 |
return c |
| 8417 |
} |
| 8418 |
|
| 8419 |
// Fields allows partial responses to be retrieved. See |
| 8420 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 8421 |
// details. |
| 8422 |
func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { |
| 8423 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 8424 |
return c |
| 8425 |
} |
| 8426 |
|
| 8427 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 8428 |
// object's ETag matches the given value. This is useful for getting updates |
| 8429 |
// only after the object has changed since the last request. |
| 8430 |
func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { |
| 8431 |
c.ifNoneMatch_ = entityTag |
| 8432 |
return c |
| 8433 |
} |
| 8434 |
|
| 8435 |
// Context sets the context to be used in this call's Do method. |
| 8436 |
func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Context(ctx context.Context) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { |
| 8437 |
c.ctx_ = ctx |
| 8438 |
return c |
| 8439 |
} |
| 8440 |
|
| 8441 |
// Header returns a http.Header that can be modified by the caller to add |
| 8442 |
// headers to the request. |
| 8443 |
func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Header() http.Header { |
| 8444 |
if c.header_ == nil { |
| 8445 |
c.header_ = make(http.Header) |
| 8446 |
} |
| 8447 |
return c.header_ |
| 8448 |
} |
| 8449 |
|
| 8450 |
func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) doRequest(alt string) (*http.Response, error) { |
| 8451 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 8452 |
if c.ifNoneMatch_ != "" { |
| 8453 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 8454 |
} |
| 8455 |
c.urlParams_.Set("alt", alt) |
| 8456 |
c.urlParams_.Set("prettyPrint", "false") |
| 8457 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countChromeDevicesThatNeedAttention") |
| 8458 |
urls += "?" + c.urlParams_.Encode() |
| 8459 |
req, err := http.NewRequest("GET", urls, nil) |
| 8460 |
if err != nil { |
| 8461 |
return nil, err |
| 8462 |
} |
| 8463 |
req.Header = reqHeaders |
| 8464 |
googleapi.Expand(req.URL, map[string]string{ |
| 8465 |
"customer": c.customer, |
| 8466 |
}) |
| 8467 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention", "request", internallog.HTTPRequest(req, nil)) |
| 8468 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 8469 |
} |
| 8470 |
|
| 8471 |
// Do executes the "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention" call. |
| 8472 |
// Any non-2xx status code is an error. Response headers are in either |
| 8473 |
// *GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse.ServerRe |
| 8474 |
// sponse.Header or (if a response was returned at all) in |
| 8475 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 8476 |
// whether the returned error was because http.StatusNotModified was returned. |
| 8477 |
func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse, error) { |
| 8478 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 8479 |
res, err := c.doRequest("json") |
| 8480 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 8481 |
if res.Body != nil { |
| 8482 |
res.Body.Close() |
| 8483 |
} |
| 8484 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 8485 |
Code: res.StatusCode, |
| 8486 |
Header: res.Header, |
| 8487 |
}) |
| 8488 |
} |
| 8489 |
if err != nil { |
| 8490 |
return nil, err |
| 8491 |
} |
| 8492 |
defer googleapi.CloseBody(res) |
| 8493 |
if err := googleapi.CheckResponse(res); err != nil { |
| 8494 |
return nil, gensupport.WrapError(err) |
| 8495 |
} |
| 8496 |
ret := &GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse{ |
| 8497 |
ServerResponse: googleapi.ServerResponse{ |
| 8498 |
Header: res.Header, |
| 8499 |
HTTPStatusCode: res.StatusCode, |
| 8500 |
}, |
| 8501 |
} |
| 8502 |
target := &ret |
| 8503 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 8504 |
if err != nil { |
| 8505 |
return nil, err |
| 8506 |
} |
| 8507 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention", "response", internallog.HTTPResponse(res, b)) |
| 8508 |
return ret, nil |
| 8509 |
} |
| 8510 |
|
| 8511 |
type CustomersReportsCountChromeHardwareFleetDevicesCall struct { |
| 8512 |
s *Service |
| 8513 |
customer string |
| 8514 |
urlParams_ gensupport.URLParams |
| 8515 |
ifNoneMatch_ string |
| 8516 |
ctx_ context.Context |
| 8517 |
header_ http.Header |
| 8518 |
} |
| 8519 |
|
| 8520 |
// CountChromeHardwareFleetDevices: Counts of devices with a specific hardware |
| 8521 |
// specification from the requested hardware type (for example model name, |
| 8522 |
// processor type). Further information can be found here |
| 8523 |
// https://support.google.com/chrome/a/answer/10564947 |
| 8524 |
// |
| 8525 |
// - customer: The customer ID or "my_customer". |
| 8526 |
func (r *CustomersReportsService) CountChromeHardwareFleetDevices(customer string) *CustomersReportsCountChromeHardwareFleetDevicesCall { |
| 8527 |
c := &CustomersReportsCountChromeHardwareFleetDevicesCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 8528 |
c.customer = customer |
| 8529 |
return c |
| 8530 |
} |
| 8531 |
|
| 8532 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 8533 |
// organizational unit. If omitted, all data will be returned. |
| 8534 |
func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeHardwareFleetDevicesCall { |
| 8535 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 8536 |
return c |
| 8537 |
} |
| 8538 |
|
| 8539 |
// ReadMask sets the optional parameter "readMask": Required. Mask of the |
| 8540 |
// fields that should be populated in the returned report. |
| 8541 |
func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) ReadMask(readMask string) *CustomersReportsCountChromeHardwareFleetDevicesCall { |
| 8542 |
c.urlParams_.Set("readMask", readMask) |
| 8543 |
return c |
| 8544 |
} |
| 8545 |
|
| 8546 |
// Fields allows partial responses to be retrieved. See |
| 8547 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 8548 |
// details. |
| 8549 |
func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeHardwareFleetDevicesCall { |
| 8550 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 8551 |
return c |
| 8552 |
} |
| 8553 |
|
| 8554 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 8555 |
// object's ETag matches the given value. This is useful for getting updates |
| 8556 |
// only after the object has changed since the last request. |
| 8557 |
func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeHardwareFleetDevicesCall { |
| 8558 |
c.ifNoneMatch_ = entityTag |
| 8559 |
return c |
| 8560 |
} |
| 8561 |
|
| 8562 |
// Context sets the context to be used in this call's Do method. |
| 8563 |
func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) Context(ctx context.Context) *CustomersReportsCountChromeHardwareFleetDevicesCall { |
| 8564 |
c.ctx_ = ctx |
| 8565 |
return c |
| 8566 |
} |
| 8567 |
|
| 8568 |
// Header returns a http.Header that can be modified by the caller to add |
| 8569 |
// headers to the request. |
| 8570 |
func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) Header() http.Header { |
| 8571 |
if c.header_ == nil { |
| 8572 |
c.header_ = make(http.Header) |
| 8573 |
} |
| 8574 |
return c.header_ |
| 8575 |
} |
| 8576 |
|
| 8577 |
func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) doRequest(alt string) (*http.Response, error) { |
| 8578 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 8579 |
if c.ifNoneMatch_ != "" { |
| 8580 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 8581 |
} |
| 8582 |
c.urlParams_.Set("alt", alt) |
| 8583 |
c.urlParams_.Set("prettyPrint", "false") |
| 8584 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countChromeHardwareFleetDevices") |
| 8585 |
urls += "?" + c.urlParams_.Encode() |
| 8586 |
req, err := http.NewRequest("GET", urls, nil) |
| 8587 |
if err != nil { |
| 8588 |
return nil, err |
| 8589 |
} |
| 8590 |
req.Header = reqHeaders |
| 8591 |
googleapi.Expand(req.URL, map[string]string{ |
| 8592 |
"customer": c.customer, |
| 8593 |
}) |
| 8594 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeHardwareFleetDevices", "request", internallog.HTTPRequest(req, nil)) |
| 8595 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 8596 |
} |
| 8597 |
|
| 8598 |
// Do executes the "chromemanagement.customers.reports.countChromeHardwareFleetDevices" call. |
| 8599 |
// Any non-2xx status code is an error. Response headers are in either |
| 8600 |
// *GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse.ServerRespon |
| 8601 |
// se.Header or (if a response was returned at all) in |
| 8602 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 8603 |
// whether the returned error was because http.StatusNotModified was returned. |
| 8604 |
func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse, error) { |
| 8605 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 8606 |
res, err := c.doRequest("json") |
| 8607 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 8608 |
if res.Body != nil { |
| 8609 |
res.Body.Close() |
| 8610 |
} |
| 8611 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 8612 |
Code: res.StatusCode, |
| 8613 |
Header: res.Header, |
| 8614 |
}) |
| 8615 |
} |
| 8616 |
if err != nil { |
| 8617 |
return nil, err |
| 8618 |
} |
| 8619 |
defer googleapi.CloseBody(res) |
| 8620 |
if err := googleapi.CheckResponse(res); err != nil { |
| 8621 |
return nil, gensupport.WrapError(err) |
| 8622 |
} |
| 8623 |
ret := &GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse{ |
| 8624 |
ServerResponse: googleapi.ServerResponse{ |
| 8625 |
Header: res.Header, |
| 8626 |
HTTPStatusCode: res.StatusCode, |
| 8627 |
}, |
| 8628 |
} |
| 8629 |
target := &ret |
| 8630 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 8631 |
if err != nil { |
| 8632 |
return nil, err |
| 8633 |
} |
| 8634 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeHardwareFleetDevices", "response", internallog.HTTPResponse(res, b)) |
| 8635 |
return ret, nil |
| 8636 |
} |
| 8637 |
|
| 8638 |
type CustomersReportsCountChromeVersionsCall struct { |
| 8639 |
s *Service |
| 8640 |
customer string |
| 8641 |
urlParams_ gensupport.URLParams |
| 8642 |
ifNoneMatch_ string |
| 8643 |
ctx_ context.Context |
| 8644 |
header_ http.Header |
| 8645 |
} |
| 8646 |
|
| 8647 |
// CountChromeVersions: Generate report of installed Chrome versions. |
| 8648 |
// |
| 8649 |
// - customer: Customer id or "my_customer" to use the customer associated to |
| 8650 |
// the account making the request. |
| 8651 |
func (r *CustomersReportsService) CountChromeVersions(customer string) *CustomersReportsCountChromeVersionsCall { |
| 8652 |
c := &CustomersReportsCountChromeVersionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 8653 |
c.customer = customer |
| 8654 |
return c |
| 8655 |
} |
| 8656 |
|
| 8657 |
// Filter sets the optional parameter "filter": Query string to filter results, |
| 8658 |
// AND-separated fields in EBNF syntax. Note: OR operations are not supported |
| 8659 |
// in this filter. Supported filter fields: * last_active_date |
| 8660 |
func (c *CustomersReportsCountChromeVersionsCall) Filter(filter string) *CustomersReportsCountChromeVersionsCall { |
| 8661 |
c.urlParams_.Set("filter", filter) |
| 8662 |
return c |
| 8663 |
} |
| 8664 |
|
| 8665 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 8666 |
// organizational unit. |
| 8667 |
func (c *CustomersReportsCountChromeVersionsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeVersionsCall { |
| 8668 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 8669 |
return c |
| 8670 |
} |
| 8671 |
|
| 8672 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 8673 |
// to return. Maximum and default are 100. |
| 8674 |
func (c *CustomersReportsCountChromeVersionsCall) PageSize(pageSize int64) *CustomersReportsCountChromeVersionsCall { |
| 8675 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 8676 |
return c |
| 8677 |
} |
| 8678 |
|
| 8679 |
// PageToken sets the optional parameter "pageToken": Token to specify the page |
| 8680 |
// of the request to be returned. |
| 8681 |
func (c *CustomersReportsCountChromeVersionsCall) PageToken(pageToken string) *CustomersReportsCountChromeVersionsCall { |
| 8682 |
c.urlParams_.Set("pageToken", pageToken) |
| 8683 |
return c |
| 8684 |
} |
| 8685 |
|
| 8686 |
// Fields allows partial responses to be retrieved. See |
| 8687 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 8688 |
// details. |
| 8689 |
func (c *CustomersReportsCountChromeVersionsCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeVersionsCall { |
| 8690 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 8691 |
return c |
| 8692 |
} |
| 8693 |
|
| 8694 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 8695 |
// object's ETag matches the given value. This is useful for getting updates |
| 8696 |
// only after the object has changed since the last request. |
| 8697 |
func (c *CustomersReportsCountChromeVersionsCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeVersionsCall { |
| 8698 |
c.ifNoneMatch_ = entityTag |
| 8699 |
return c |
| 8700 |
} |
| 8701 |
|
| 8702 |
// Context sets the context to be used in this call's Do method. |
| 8703 |
func (c *CustomersReportsCountChromeVersionsCall) Context(ctx context.Context) *CustomersReportsCountChromeVersionsCall { |
| 8704 |
c.ctx_ = ctx |
| 8705 |
return c |
| 8706 |
} |
| 8707 |
|
| 8708 |
// Header returns a http.Header that can be modified by the caller to add |
| 8709 |
// headers to the request. |
| 8710 |
func (c *CustomersReportsCountChromeVersionsCall) Header() http.Header { |
| 8711 |
if c.header_ == nil { |
| 8712 |
c.header_ = make(http.Header) |
| 8713 |
} |
| 8714 |
return c.header_ |
| 8715 |
} |
| 8716 |
|
| 8717 |
func (c *CustomersReportsCountChromeVersionsCall) doRequest(alt string) (*http.Response, error) { |
| 8718 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 8719 |
if c.ifNoneMatch_ != "" { |
| 8720 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 8721 |
} |
| 8722 |
c.urlParams_.Set("alt", alt) |
| 8723 |
c.urlParams_.Set("prettyPrint", "false") |
| 8724 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countChromeVersions") |
| 8725 |
urls += "?" + c.urlParams_.Encode() |
| 8726 |
req, err := http.NewRequest("GET", urls, nil) |
| 8727 |
if err != nil { |
| 8728 |
return nil, err |
| 8729 |
} |
| 8730 |
req.Header = reqHeaders |
| 8731 |
googleapi.Expand(req.URL, map[string]string{ |
| 8732 |
"customer": c.customer, |
| 8733 |
}) |
| 8734 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeVersions", "request", internallog.HTTPRequest(req, nil)) |
| 8735 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 8736 |
} |
| 8737 |
|
| 8738 |
// Do executes the "chromemanagement.customers.reports.countChromeVersions" call. |
| 8739 |
// Any non-2xx status code is an error. Response headers are in either |
| 8740 |
// *GoogleChromeManagementV1CountChromeVersionsResponse.ServerResponse.Header |
| 8741 |
// or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 8742 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 8743 |
// http.StatusNotModified was returned. |
| 8744 |
func (c *CustomersReportsCountChromeVersionsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeVersionsResponse, error) { |
| 8745 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 8746 |
res, err := c.doRequest("json") |
| 8747 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 8748 |
if res.Body != nil { |
| 8749 |
res.Body.Close() |
| 8750 |
} |
| 8751 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 8752 |
Code: res.StatusCode, |
| 8753 |
Header: res.Header, |
| 8754 |
}) |
| 8755 |
} |
| 8756 |
if err != nil { |
| 8757 |
return nil, err |
| 8758 |
} |
| 8759 |
defer googleapi.CloseBody(res) |
| 8760 |
if err := googleapi.CheckResponse(res); err != nil { |
| 8761 |
return nil, gensupport.WrapError(err) |
| 8762 |
} |
| 8763 |
ret := &GoogleChromeManagementV1CountChromeVersionsResponse{ |
| 8764 |
ServerResponse: googleapi.ServerResponse{ |
| 8765 |
Header: res.Header, |
| 8766 |
HTTPStatusCode: res.StatusCode, |
| 8767 |
}, |
| 8768 |
} |
| 8769 |
target := &ret |
| 8770 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 8771 |
if err != nil { |
| 8772 |
return nil, err |
| 8773 |
} |
| 8774 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countChromeVersions", "response", internallog.HTTPResponse(res, b)) |
| 8775 |
return ret, nil |
| 8776 |
} |
| 8777 |
|
| 8778 |
// Pages invokes f for each page of results. |
| 8779 |
// A non-nil error returned from f will halt the iteration. |
| 8780 |
// The provided context supersedes any context provided to the Context method. |
| 8781 |
func (c *CustomersReportsCountChromeVersionsCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountChromeVersionsResponse) error) error { |
| 8782 |
c.ctx_ = ctx |
| 8783 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 8784 |
for { |
| 8785 |
x, err := c.Do() |
| 8786 |
if err != nil { |
| 8787 |
return err |
| 8788 |
} |
| 8789 |
if err := f(x); err != nil { |
| 8790 |
return err |
| 8791 |
} |
| 8792 |
if x.NextPageToken == "" { |
| 8793 |
return nil |
| 8794 |
} |
| 8795 |
c.PageToken(x.NextPageToken) |
| 8796 |
} |
| 8797 |
} |
| 8798 |
|
| 8799 |
type CustomersReportsCountDevicesPerBootTypeCall struct { |
| 8800 |
s *Service |
| 8801 |
customer string |
| 8802 |
urlParams_ gensupport.URLParams |
| 8803 |
ifNoneMatch_ string |
| 8804 |
ctx_ context.Context |
| 8805 |
header_ http.Header |
| 8806 |
} |
| 8807 |
|
| 8808 |
// CountDevicesPerBootType: Get a count of devices per boot type. |
| 8809 |
// |
| 8810 |
// - customer: Obfuscated customer ID prefixed with "customers/C" or |
| 8811 |
// "customers/my_customer". |
| 8812 |
func (r *CustomersReportsService) CountDevicesPerBootType(customer string) *CustomersReportsCountDevicesPerBootTypeCall { |
| 8813 |
c := &CustomersReportsCountDevicesPerBootTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 8814 |
c.customer = customer |
| 8815 |
return c |
| 8816 |
} |
| 8817 |
|
| 8818 |
// DateDay sets the optional parameter "date.day": Day of a month. Must be from |
| 8819 |
// 1 to 31 and valid for the year and month, or 0 to specify a year by itself |
| 8820 |
// or a year and month where the day isn't significant. |
| 8821 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) DateDay(dateDay int64) *CustomersReportsCountDevicesPerBootTypeCall { |
| 8822 |
c.urlParams_.Set("date.day", fmt.Sprint(dateDay)) |
| 8823 |
return c |
| 8824 |
} |
| 8825 |
|
| 8826 |
// DateMonth sets the optional parameter "date.month": Month of a year. Must be |
| 8827 |
// from 1 to 12, or 0 to specify a year without a month and day. |
| 8828 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) DateMonth(dateMonth int64) *CustomersReportsCountDevicesPerBootTypeCall { |
| 8829 |
c.urlParams_.Set("date.month", fmt.Sprint(dateMonth)) |
| 8830 |
return c |
| 8831 |
} |
| 8832 |
|
| 8833 |
// DateYear sets the optional parameter "date.year": Year of the date. Must be |
| 8834 |
// from 1 to 9999, or 0 to specify a date without a year. |
| 8835 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) DateYear(dateYear int64) *CustomersReportsCountDevicesPerBootTypeCall { |
| 8836 |
c.urlParams_.Set("date.year", fmt.Sprint(dateYear)) |
| 8837 |
return c |
| 8838 |
} |
| 8839 |
|
| 8840 |
// Fields allows partial responses to be retrieved. See |
| 8841 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 8842 |
// details. |
| 8843 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) Fields(s ...googleapi.Field) *CustomersReportsCountDevicesPerBootTypeCall { |
| 8844 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 8845 |
return c |
| 8846 |
} |
| 8847 |
|
| 8848 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 8849 |
// object's ETag matches the given value. This is useful for getting updates |
| 8850 |
// only after the object has changed since the last request. |
| 8851 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) IfNoneMatch(entityTag string) *CustomersReportsCountDevicesPerBootTypeCall { |
| 8852 |
c.ifNoneMatch_ = entityTag |
| 8853 |
return c |
| 8854 |
} |
| 8855 |
|
| 8856 |
// Context sets the context to be used in this call's Do method. |
| 8857 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) Context(ctx context.Context) *CustomersReportsCountDevicesPerBootTypeCall { |
| 8858 |
c.ctx_ = ctx |
| 8859 |
return c |
| 8860 |
} |
| 8861 |
|
| 8862 |
// Header returns a http.Header that can be modified by the caller to add |
| 8863 |
// headers to the request. |
| 8864 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) Header() http.Header { |
| 8865 |
if c.header_ == nil { |
| 8866 |
c.header_ = make(http.Header) |
| 8867 |
} |
| 8868 |
return c.header_ |
| 8869 |
} |
| 8870 |
|
| 8871 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) doRequest(alt string) (*http.Response, error) { |
| 8872 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 8873 |
if c.ifNoneMatch_ != "" { |
| 8874 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 8875 |
} |
| 8876 |
c.urlParams_.Set("alt", alt) |
| 8877 |
c.urlParams_.Set("prettyPrint", "false") |
| 8878 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countDevicesPerBootType") |
| 8879 |
urls += "?" + c.urlParams_.Encode() |
| 8880 |
req, err := http.NewRequest("GET", urls, nil) |
| 8881 |
if err != nil { |
| 8882 |
return nil, err |
| 8883 |
} |
| 8884 |
req.Header = reqHeaders |
| 8885 |
googleapi.Expand(req.URL, map[string]string{ |
| 8886 |
"customer": c.customer, |
| 8887 |
}) |
| 8888 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countDevicesPerBootType", "request", internallog.HTTPRequest(req, nil)) |
| 8889 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 8890 |
} |
| 8891 |
|
| 8892 |
// Do executes the "chromemanagement.customers.reports.countDevicesPerBootType" call. |
| 8893 |
// Any non-2xx status code is an error. Response headers are in either |
| 8894 |
// *GoogleChromeManagementV1CountDevicesPerBootTypeResponse.ServerResponse.Heade |
| 8895 |
// r or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 8896 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 8897 |
// http.StatusNotModified was returned. |
| 8898 |
func (c *CustomersReportsCountDevicesPerBootTypeCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountDevicesPerBootTypeResponse, error) { |
| 8899 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 8900 |
res, err := c.doRequest("json") |
| 8901 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 8902 |
if res.Body != nil { |
| 8903 |
res.Body.Close() |
| 8904 |
} |
| 8905 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 8906 |
Code: res.StatusCode, |
| 8907 |
Header: res.Header, |
| 8908 |
}) |
| 8909 |
} |
| 8910 |
if err != nil { |
| 8911 |
return nil, err |
| 8912 |
} |
| 8913 |
defer googleapi.CloseBody(res) |
| 8914 |
if err := googleapi.CheckResponse(res); err != nil { |
| 8915 |
return nil, gensupport.WrapError(err) |
| 8916 |
} |
| 8917 |
ret := &GoogleChromeManagementV1CountDevicesPerBootTypeResponse{ |
| 8918 |
ServerResponse: googleapi.ServerResponse{ |
| 8919 |
Header: res.Header, |
| 8920 |
HTTPStatusCode: res.StatusCode, |
| 8921 |
}, |
| 8922 |
} |
| 8923 |
target := &ret |
| 8924 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 8925 |
if err != nil { |
| 8926 |
return nil, err |
| 8927 |
} |
| 8928 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countDevicesPerBootType", "response", internallog.HTTPResponse(res, b)) |
| 8929 |
return ret, nil |
| 8930 |
} |
| 8931 |
|
| 8932 |
type CustomersReportsCountDevicesPerReleaseChannelCall struct { |
| 8933 |
s *Service |
| 8934 |
customer string |
| 8935 |
urlParams_ gensupport.URLParams |
| 8936 |
ifNoneMatch_ string |
| 8937 |
ctx_ context.Context |
| 8938 |
header_ http.Header |
| 8939 |
} |
| 8940 |
|
| 8941 |
// CountDevicesPerReleaseChannel: Get a count of devices per channel. |
| 8942 |
// |
| 8943 |
// - customer: Obfuscated customer ID prefixed with "customers/C" or |
| 8944 |
// "customers/my_customer". |
| 8945 |
func (r *CustomersReportsService) CountDevicesPerReleaseChannel(customer string) *CustomersReportsCountDevicesPerReleaseChannelCall { |
| 8946 |
c := &CustomersReportsCountDevicesPerReleaseChannelCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 8947 |
c.customer = customer |
| 8948 |
return c |
| 8949 |
} |
| 8950 |
|
| 8951 |
// DateDay sets the optional parameter "date.day": Day of a month. Must be from |
| 8952 |
// 1 to 31 and valid for the year and month, or 0 to specify a year by itself |
| 8953 |
// or a year and month where the day isn't significant. |
| 8954 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) DateDay(dateDay int64) *CustomersReportsCountDevicesPerReleaseChannelCall { |
| 8955 |
c.urlParams_.Set("date.day", fmt.Sprint(dateDay)) |
| 8956 |
return c |
| 8957 |
} |
| 8958 |
|
| 8959 |
// DateMonth sets the optional parameter "date.month": Month of a year. Must be |
| 8960 |
// from 1 to 12, or 0 to specify a year without a month and day. |
| 8961 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) DateMonth(dateMonth int64) *CustomersReportsCountDevicesPerReleaseChannelCall { |
| 8962 |
c.urlParams_.Set("date.month", fmt.Sprint(dateMonth)) |
| 8963 |
return c |
| 8964 |
} |
| 8965 |
|
| 8966 |
// DateYear sets the optional parameter "date.year": Year of the date. Must be |
| 8967 |
// from 1 to 9999, or 0 to specify a date without a year. |
| 8968 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) DateYear(dateYear int64) *CustomersReportsCountDevicesPerReleaseChannelCall { |
| 8969 |
c.urlParams_.Set("date.year", fmt.Sprint(dateYear)) |
| 8970 |
return c |
| 8971 |
} |
| 8972 |
|
| 8973 |
// Fields allows partial responses to be retrieved. See |
| 8974 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 8975 |
// details. |
| 8976 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) Fields(s ...googleapi.Field) *CustomersReportsCountDevicesPerReleaseChannelCall { |
| 8977 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 8978 |
return c |
| 8979 |
} |
| 8980 |
|
| 8981 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 8982 |
// object's ETag matches the given value. This is useful for getting updates |
| 8983 |
// only after the object has changed since the last request. |
| 8984 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) IfNoneMatch(entityTag string) *CustomersReportsCountDevicesPerReleaseChannelCall { |
| 8985 |
c.ifNoneMatch_ = entityTag |
| 8986 |
return c |
| 8987 |
} |
| 8988 |
|
| 8989 |
// Context sets the context to be used in this call's Do method. |
| 8990 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) Context(ctx context.Context) *CustomersReportsCountDevicesPerReleaseChannelCall { |
| 8991 |
c.ctx_ = ctx |
| 8992 |
return c |
| 8993 |
} |
| 8994 |
|
| 8995 |
// Header returns a http.Header that can be modified by the caller to add |
| 8996 |
// headers to the request. |
| 8997 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) Header() http.Header { |
| 8998 |
if c.header_ == nil { |
| 8999 |
c.header_ = make(http.Header) |
| 9000 |
} |
| 9001 |
return c.header_ |
| 9002 |
} |
| 9003 |
|
| 9004 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) doRequest(alt string) (*http.Response, error) { |
| 9005 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 9006 |
if c.ifNoneMatch_ != "" { |
| 9007 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 9008 |
} |
| 9009 |
c.urlParams_.Set("alt", alt) |
| 9010 |
c.urlParams_.Set("prettyPrint", "false") |
| 9011 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countDevicesPerReleaseChannel") |
| 9012 |
urls += "?" + c.urlParams_.Encode() |
| 9013 |
req, err := http.NewRequest("GET", urls, nil) |
| 9014 |
if err != nil { |
| 9015 |
return nil, err |
| 9016 |
} |
| 9017 |
req.Header = reqHeaders |
| 9018 |
googleapi.Expand(req.URL, map[string]string{ |
| 9019 |
"customer": c.customer, |
| 9020 |
}) |
| 9021 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countDevicesPerReleaseChannel", "request", internallog.HTTPRequest(req, nil)) |
| 9022 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 9023 |
} |
| 9024 |
|
| 9025 |
// Do executes the "chromemanagement.customers.reports.countDevicesPerReleaseChannel" call. |
| 9026 |
// Any non-2xx status code is an error. Response headers are in either |
| 9027 |
// *GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse.ServerResponse |
| 9028 |
// .Header or (if a response was returned at all) in |
| 9029 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 9030 |
// whether the returned error was because http.StatusNotModified was returned. |
| 9031 |
func (c *CustomersReportsCountDevicesPerReleaseChannelCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse, error) { |
| 9032 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 9033 |
res, err := c.doRequest("json") |
| 9034 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 9035 |
if res.Body != nil { |
| 9036 |
res.Body.Close() |
| 9037 |
} |
| 9038 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 9039 |
Code: res.StatusCode, |
| 9040 |
Header: res.Header, |
| 9041 |
}) |
| 9042 |
} |
| 9043 |
if err != nil { |
| 9044 |
return nil, err |
| 9045 |
} |
| 9046 |
defer googleapi.CloseBody(res) |
| 9047 |
if err := googleapi.CheckResponse(res); err != nil { |
| 9048 |
return nil, gensupport.WrapError(err) |
| 9049 |
} |
| 9050 |
ret := &GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse{ |
| 9051 |
ServerResponse: googleapi.ServerResponse{ |
| 9052 |
Header: res.Header, |
| 9053 |
HTTPStatusCode: res.StatusCode, |
| 9054 |
}, |
| 9055 |
} |
| 9056 |
target := &ret |
| 9057 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 9058 |
if err != nil { |
| 9059 |
return nil, err |
| 9060 |
} |
| 9061 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countDevicesPerReleaseChannel", "response", internallog.HTTPResponse(res, b)) |
| 9062 |
return ret, nil |
| 9063 |
} |
| 9064 |
|
| 9065 |
type CustomersReportsCountInstalledAppsCall struct { |
| 9066 |
s *Service |
| 9067 |
customer string |
| 9068 |
urlParams_ gensupport.URLParams |
| 9069 |
ifNoneMatch_ string |
| 9070 |
ctx_ context.Context |
| 9071 |
header_ http.Header |
| 9072 |
} |
| 9073 |
|
| 9074 |
// CountInstalledApps: Generate report of app installations. |
| 9075 |
// |
| 9076 |
// - customer: Customer id or "my_customer" to use the customer associated to |
| 9077 |
// the account making the request. |
| 9078 |
func (r *CustomersReportsService) CountInstalledApps(customer string) *CustomersReportsCountInstalledAppsCall { |
| 9079 |
c := &CustomersReportsCountInstalledAppsCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 9080 |
c.customer = customer |
| 9081 |
return c |
| 9082 |
} |
| 9083 |
|
| 9084 |
// Filter sets the optional parameter "filter": Query string to filter results, |
| 9085 |
// AND-separated fields in EBNF syntax. Note: OR operations are not supported |
| 9086 |
// in this filter. Supported filter fields: * app_name * app_type * |
| 9087 |
// install_type * number_of_permissions * total_install_count * |
| 9088 |
// latest_profile_active_date * permission_name * app_id * manifest_versions * |
| 9089 |
// risk_score |
| 9090 |
func (c *CustomersReportsCountInstalledAppsCall) Filter(filter string) *CustomersReportsCountInstalledAppsCall { |
| 9091 |
c.urlParams_.Set("filter", filter) |
| 9092 |
return c |
| 9093 |
} |
| 9094 |
|
| 9095 |
// OrderBy sets the optional parameter "orderBy": Field used to order results. |
| 9096 |
// Supported order by fields: * app_name * app_type * install_type * |
| 9097 |
// number_of_permissions * total_install_count * app_id * manifest_versions * |
| 9098 |
// risk_score |
| 9099 |
func (c *CustomersReportsCountInstalledAppsCall) OrderBy(orderBy string) *CustomersReportsCountInstalledAppsCall { |
| 9100 |
c.urlParams_.Set("orderBy", orderBy) |
| 9101 |
return c |
| 9102 |
} |
| 9103 |
|
| 9104 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 9105 |
// organizational unit. |
| 9106 |
func (c *CustomersReportsCountInstalledAppsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountInstalledAppsCall { |
| 9107 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 9108 |
return c |
| 9109 |
} |
| 9110 |
|
| 9111 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 9112 |
// to return. Maximum and default are 100. |
| 9113 |
func (c *CustomersReportsCountInstalledAppsCall) PageSize(pageSize int64) *CustomersReportsCountInstalledAppsCall { |
| 9114 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 9115 |
return c |
| 9116 |
} |
| 9117 |
|
| 9118 |
// PageToken sets the optional parameter "pageToken": Token to specify the page |
| 9119 |
// of the request to be returned. |
| 9120 |
func (c *CustomersReportsCountInstalledAppsCall) PageToken(pageToken string) *CustomersReportsCountInstalledAppsCall { |
| 9121 |
c.urlParams_.Set("pageToken", pageToken) |
| 9122 |
return c |
| 9123 |
} |
| 9124 |
|
| 9125 |
// Fields allows partial responses to be retrieved. See |
| 9126 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 9127 |
// details. |
| 9128 |
func (c *CustomersReportsCountInstalledAppsCall) Fields(s ...googleapi.Field) *CustomersReportsCountInstalledAppsCall { |
| 9129 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 9130 |
return c |
| 9131 |
} |
| 9132 |
|
| 9133 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 9134 |
// object's ETag matches the given value. This is useful for getting updates |
| 9135 |
// only after the object has changed since the last request. |
| 9136 |
func (c *CustomersReportsCountInstalledAppsCall) IfNoneMatch(entityTag string) *CustomersReportsCountInstalledAppsCall { |
| 9137 |
c.ifNoneMatch_ = entityTag |
| 9138 |
return c |
| 9139 |
} |
| 9140 |
|
| 9141 |
// Context sets the context to be used in this call's Do method. |
| 9142 |
func (c *CustomersReportsCountInstalledAppsCall) Context(ctx context.Context) *CustomersReportsCountInstalledAppsCall { |
| 9143 |
c.ctx_ = ctx |
| 9144 |
return c |
| 9145 |
} |
| 9146 |
|
| 9147 |
// Header returns a http.Header that can be modified by the caller to add |
| 9148 |
// headers to the request. |
| 9149 |
func (c *CustomersReportsCountInstalledAppsCall) Header() http.Header { |
| 9150 |
if c.header_ == nil { |
| 9151 |
c.header_ = make(http.Header) |
| 9152 |
} |
| 9153 |
return c.header_ |
| 9154 |
} |
| 9155 |
|
| 9156 |
func (c *CustomersReportsCountInstalledAppsCall) doRequest(alt string) (*http.Response, error) { |
| 9157 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 9158 |
if c.ifNoneMatch_ != "" { |
| 9159 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 9160 |
} |
| 9161 |
c.urlParams_.Set("alt", alt) |
| 9162 |
c.urlParams_.Set("prettyPrint", "false") |
| 9163 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countInstalledApps") |
| 9164 |
urls += "?" + c.urlParams_.Encode() |
| 9165 |
req, err := http.NewRequest("GET", urls, nil) |
| 9166 |
if err != nil { |
| 9167 |
return nil, err |
| 9168 |
} |
| 9169 |
req.Header = reqHeaders |
| 9170 |
googleapi.Expand(req.URL, map[string]string{ |
| 9171 |
"customer": c.customer, |
| 9172 |
}) |
| 9173 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countInstalledApps", "request", internallog.HTTPRequest(req, nil)) |
| 9174 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 9175 |
} |
| 9176 |
|
| 9177 |
// Do executes the "chromemanagement.customers.reports.countInstalledApps" call. |
| 9178 |
// Any non-2xx status code is an error. Response headers are in either |
| 9179 |
// *GoogleChromeManagementV1CountInstalledAppsResponse.ServerResponse.Header or |
| 9180 |
// (if a response was returned at all) in error.(*googleapi.Error).Header. Use |
| 9181 |
// googleapi.IsNotModified to check whether the returned error was because |
| 9182 |
// http.StatusNotModified was returned. |
| 9183 |
func (c *CustomersReportsCountInstalledAppsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountInstalledAppsResponse, error) { |
| 9184 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 9185 |
res, err := c.doRequest("json") |
| 9186 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 9187 |
if res.Body != nil { |
| 9188 |
res.Body.Close() |
| 9189 |
} |
| 9190 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 9191 |
Code: res.StatusCode, |
| 9192 |
Header: res.Header, |
| 9193 |
}) |
| 9194 |
} |
| 9195 |
if err != nil { |
| 9196 |
return nil, err |
| 9197 |
} |
| 9198 |
defer googleapi.CloseBody(res) |
| 9199 |
if err := googleapi.CheckResponse(res); err != nil { |
| 9200 |
return nil, gensupport.WrapError(err) |
| 9201 |
} |
| 9202 |
ret := &GoogleChromeManagementV1CountInstalledAppsResponse{ |
| 9203 |
ServerResponse: googleapi.ServerResponse{ |
| 9204 |
Header: res.Header, |
| 9205 |
HTTPStatusCode: res.StatusCode, |
| 9206 |
}, |
| 9207 |
} |
| 9208 |
target := &ret |
| 9209 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 9210 |
if err != nil { |
| 9211 |
return nil, err |
| 9212 |
} |
| 9213 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countInstalledApps", "response", internallog.HTTPResponse(res, b)) |
| 9214 |
return ret, nil |
| 9215 |
} |
| 9216 |
|
| 9217 |
// Pages invokes f for each page of results. |
| 9218 |
// A non-nil error returned from f will halt the iteration. |
| 9219 |
// The provided context supersedes any context provided to the Context method. |
| 9220 |
func (c *CustomersReportsCountInstalledAppsCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountInstalledAppsResponse) error) error { |
| 9221 |
c.ctx_ = ctx |
| 9222 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 9223 |
for { |
| 9224 |
x, err := c.Do() |
| 9225 |
if err != nil { |
| 9226 |
return err |
| 9227 |
} |
| 9228 |
if err := f(x); err != nil { |
| 9229 |
return err |
| 9230 |
} |
| 9231 |
if x.NextPageToken == "" { |
| 9232 |
return nil |
| 9233 |
} |
| 9234 |
c.PageToken(x.NextPageToken) |
| 9235 |
} |
| 9236 |
} |
| 9237 |
|
| 9238 |
type CustomersReportsCountPrintJobsByPrinterCall struct { |
| 9239 |
s *Service |
| 9240 |
customer string |
| 9241 |
urlParams_ gensupport.URLParams |
| 9242 |
ifNoneMatch_ string |
| 9243 |
ctx_ context.Context |
| 9244 |
header_ http.Header |
| 9245 |
} |
| 9246 |
|
| 9247 |
// CountPrintJobsByPrinter: Get a summary of printing done by each printer. |
| 9248 |
// |
| 9249 |
// - customer: Customer ID prefixed with "customers/" or |
| 9250 |
// "customers/my_customer" to use the customer associated to the account |
| 9251 |
// making the request. |
| 9252 |
func (r *CustomersReportsService) CountPrintJobsByPrinter(customer string) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9253 |
c := &CustomersReportsCountPrintJobsByPrinterCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 9254 |
c.customer = customer |
| 9255 |
return c |
| 9256 |
} |
| 9257 |
|
| 9258 |
// Filter sets the optional parameter "filter": Query string to filter results, |
| 9259 |
// AND-separated fields in EBNF syntax. Note: OR operations are not supported |
| 9260 |
// in this filter. Note: Only >= and <= comparators are supported in this |
| 9261 |
// filter. Supported filter fields: * complete_time |
| 9262 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) Filter(filter string) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9263 |
c.urlParams_.Set("filter", filter) |
| 9264 |
return c |
| 9265 |
} |
| 9266 |
|
| 9267 |
// OrderBy sets the optional parameter "orderBy": Field used to order results. |
| 9268 |
// If omitted, results will be ordered in ascending order of the 'printer' |
| 9269 |
// field. Supported order_by fields: * printer * job_count * device_count * |
| 9270 |
// user_count |
| 9271 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) OrderBy(orderBy string) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9272 |
c.urlParams_.Set("orderBy", orderBy) |
| 9273 |
return c |
| 9274 |
} |
| 9275 |
|
| 9276 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 9277 |
// to return. Maximum and default are 100. |
| 9278 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) PageSize(pageSize int64) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9279 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 9280 |
return c |
| 9281 |
} |
| 9282 |
|
| 9283 |
// PageToken sets the optional parameter "pageToken": Token to specify the page |
| 9284 |
// of the response to be returned. |
| 9285 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) PageToken(pageToken string) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9286 |
c.urlParams_.Set("pageToken", pageToken) |
| 9287 |
return c |
| 9288 |
} |
| 9289 |
|
| 9290 |
// PrinterOrgUnitId sets the optional parameter "printerOrgUnitId": The ID of |
| 9291 |
// the organizational unit for printers. If specified, only data for printers |
| 9292 |
// from the specified organizational unit will be returned. If omitted, data |
| 9293 |
// for printers from all organizational units will be returned. |
| 9294 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) PrinterOrgUnitId(printerOrgUnitId string) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9295 |
c.urlParams_.Set("printerOrgUnitId", printerOrgUnitId) |
| 9296 |
return c |
| 9297 |
} |
| 9298 |
|
| 9299 |
// Fields allows partial responses to be retrieved. See |
| 9300 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 9301 |
// details. |
| 9302 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) Fields(s ...googleapi.Field) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9303 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 9304 |
return c |
| 9305 |
} |
| 9306 |
|
| 9307 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 9308 |
// object's ETag matches the given value. This is useful for getting updates |
| 9309 |
// only after the object has changed since the last request. |
| 9310 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) IfNoneMatch(entityTag string) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9311 |
c.ifNoneMatch_ = entityTag |
| 9312 |
return c |
| 9313 |
} |
| 9314 |
|
| 9315 |
// Context sets the context to be used in this call's Do method. |
| 9316 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) Context(ctx context.Context) *CustomersReportsCountPrintJobsByPrinterCall { |
| 9317 |
c.ctx_ = ctx |
| 9318 |
return c |
| 9319 |
} |
| 9320 |
|
| 9321 |
// Header returns a http.Header that can be modified by the caller to add |
| 9322 |
// headers to the request. |
| 9323 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) Header() http.Header { |
| 9324 |
if c.header_ == nil { |
| 9325 |
c.header_ = make(http.Header) |
| 9326 |
} |
| 9327 |
return c.header_ |
| 9328 |
} |
| 9329 |
|
| 9330 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) doRequest(alt string) (*http.Response, error) { |
| 9331 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 9332 |
if c.ifNoneMatch_ != "" { |
| 9333 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 9334 |
} |
| 9335 |
c.urlParams_.Set("alt", alt) |
| 9336 |
c.urlParams_.Set("prettyPrint", "false") |
| 9337 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countPrintJobsByPrinter") |
| 9338 |
urls += "?" + c.urlParams_.Encode() |
| 9339 |
req, err := http.NewRequest("GET", urls, nil) |
| 9340 |
if err != nil { |
| 9341 |
return nil, err |
| 9342 |
} |
| 9343 |
req.Header = reqHeaders |
| 9344 |
googleapi.Expand(req.URL, map[string]string{ |
| 9345 |
"customer": c.customer, |
| 9346 |
}) |
| 9347 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countPrintJobsByPrinter", "request", internallog.HTTPRequest(req, nil)) |
| 9348 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 9349 |
} |
| 9350 |
|
| 9351 |
// Do executes the "chromemanagement.customers.reports.countPrintJobsByPrinter" call. |
| 9352 |
// Any non-2xx status code is an error. Response headers are in either |
| 9353 |
// *GoogleChromeManagementV1CountPrintJobsByPrinterResponse.ServerResponse.Heade |
| 9354 |
// r or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 9355 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 9356 |
// http.StatusNotModified was returned. |
| 9357 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountPrintJobsByPrinterResponse, error) { |
| 9358 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 9359 |
res, err := c.doRequest("json") |
| 9360 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 9361 |
if res.Body != nil { |
| 9362 |
res.Body.Close() |
| 9363 |
} |
| 9364 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 9365 |
Code: res.StatusCode, |
| 9366 |
Header: res.Header, |
| 9367 |
}) |
| 9368 |
} |
| 9369 |
if err != nil { |
| 9370 |
return nil, err |
| 9371 |
} |
| 9372 |
defer googleapi.CloseBody(res) |
| 9373 |
if err := googleapi.CheckResponse(res); err != nil { |
| 9374 |
return nil, gensupport.WrapError(err) |
| 9375 |
} |
| 9376 |
ret := &GoogleChromeManagementV1CountPrintJobsByPrinterResponse{ |
| 9377 |
ServerResponse: googleapi.ServerResponse{ |
| 9378 |
Header: res.Header, |
| 9379 |
HTTPStatusCode: res.StatusCode, |
| 9380 |
}, |
| 9381 |
} |
| 9382 |
target := &ret |
| 9383 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 9384 |
if err != nil { |
| 9385 |
return nil, err |
| 9386 |
} |
| 9387 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countPrintJobsByPrinter", "response", internallog.HTTPResponse(res, b)) |
| 9388 |
return ret, nil |
| 9389 |
} |
| 9390 |
|
| 9391 |
// Pages invokes f for each page of results. |
| 9392 |
// A non-nil error returned from f will halt the iteration. |
| 9393 |
// The provided context supersedes any context provided to the Context method. |
| 9394 |
func (c *CustomersReportsCountPrintJobsByPrinterCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountPrintJobsByPrinterResponse) error) error { |
| 9395 |
c.ctx_ = ctx |
| 9396 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 9397 |
for { |
| 9398 |
x, err := c.Do() |
| 9399 |
if err != nil { |
| 9400 |
return err |
| 9401 |
} |
| 9402 |
if err := f(x); err != nil { |
| 9403 |
return err |
| 9404 |
} |
| 9405 |
if x.NextPageToken == "" { |
| 9406 |
return nil |
| 9407 |
} |
| 9408 |
c.PageToken(x.NextPageToken) |
| 9409 |
} |
| 9410 |
} |
| 9411 |
|
| 9412 |
type CustomersReportsCountPrintJobsByUserCall struct { |
| 9413 |
s *Service |
| 9414 |
customer string |
| 9415 |
urlParams_ gensupport.URLParams |
| 9416 |
ifNoneMatch_ string |
| 9417 |
ctx_ context.Context |
| 9418 |
header_ http.Header |
| 9419 |
} |
| 9420 |
|
| 9421 |
// CountPrintJobsByUser: Get a summary of printing done by each user. |
| 9422 |
// |
| 9423 |
// - customer: Customer ID prefixed with "customers/" or |
| 9424 |
// "customers/my_customer" to use the customer associated to the account |
| 9425 |
// making the request. |
| 9426 |
func (r *CustomersReportsService) CountPrintJobsByUser(customer string) *CustomersReportsCountPrintJobsByUserCall { |
| 9427 |
c := &CustomersReportsCountPrintJobsByUserCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 9428 |
c.customer = customer |
| 9429 |
return c |
| 9430 |
} |
| 9431 |
|
| 9432 |
// Filter sets the optional parameter "filter": Query string to filter results, |
| 9433 |
// AND-separated fields in EBNF syntax. Note: OR operations are not supported |
| 9434 |
// in this filter. Note: Only >= and <= comparators are supported in this |
| 9435 |
// filter. Supported filter fields: * complete_time |
| 9436 |
func (c *CustomersReportsCountPrintJobsByUserCall) Filter(filter string) *CustomersReportsCountPrintJobsByUserCall { |
| 9437 |
c.urlParams_.Set("filter", filter) |
| 9438 |
return c |
| 9439 |
} |
| 9440 |
|
| 9441 |
// OrderBy sets the optional parameter "orderBy": Field used to order results. |
| 9442 |
// If omitted, results will be ordered in ascending order of the 'user_email' |
| 9443 |
// field. Supported order_by fields: * user_email * job_count * printer_count * |
| 9444 |
// device_count |
| 9445 |
func (c *CustomersReportsCountPrintJobsByUserCall) OrderBy(orderBy string) *CustomersReportsCountPrintJobsByUserCall { |
| 9446 |
c.urlParams_.Set("orderBy", orderBy) |
| 9447 |
return c |
| 9448 |
} |
| 9449 |
|
| 9450 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 9451 |
// to return. Maximum and default are 100. |
| 9452 |
func (c *CustomersReportsCountPrintJobsByUserCall) PageSize(pageSize int64) *CustomersReportsCountPrintJobsByUserCall { |
| 9453 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 9454 |
return c |
| 9455 |
} |
| 9456 |
|
| 9457 |
// PageToken sets the optional parameter "pageToken": Token to specify the page |
| 9458 |
// of the response to be returned. |
| 9459 |
func (c *CustomersReportsCountPrintJobsByUserCall) PageToken(pageToken string) *CustomersReportsCountPrintJobsByUserCall { |
| 9460 |
c.urlParams_.Set("pageToken", pageToken) |
| 9461 |
return c |
| 9462 |
} |
| 9463 |
|
| 9464 |
// PrinterOrgUnitId sets the optional parameter "printerOrgUnitId": The ID of |
| 9465 |
// the organizational unit for printers. If specified, only print jobs |
| 9466 |
// initiated with printers from the specified organizational unit will be |
| 9467 |
// counted. If omitted, all print jobs will be counted. |
| 9468 |
func (c *CustomersReportsCountPrintJobsByUserCall) PrinterOrgUnitId(printerOrgUnitId string) *CustomersReportsCountPrintJobsByUserCall { |
| 9469 |
c.urlParams_.Set("printerOrgUnitId", printerOrgUnitId) |
| 9470 |
return c |
| 9471 |
} |
| 9472 |
|
| 9473 |
// Fields allows partial responses to be retrieved. See |
| 9474 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 9475 |
// details. |
| 9476 |
func (c *CustomersReportsCountPrintJobsByUserCall) Fields(s ...googleapi.Field) *CustomersReportsCountPrintJobsByUserCall { |
| 9477 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 9478 |
return c |
| 9479 |
} |
| 9480 |
|
| 9481 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 9482 |
// object's ETag matches the given value. This is useful for getting updates |
| 9483 |
// only after the object has changed since the last request. |
| 9484 |
func (c *CustomersReportsCountPrintJobsByUserCall) IfNoneMatch(entityTag string) *CustomersReportsCountPrintJobsByUserCall { |
| 9485 |
c.ifNoneMatch_ = entityTag |
| 9486 |
return c |
| 9487 |
} |
| 9488 |
|
| 9489 |
// Context sets the context to be used in this call's Do method. |
| 9490 |
func (c *CustomersReportsCountPrintJobsByUserCall) Context(ctx context.Context) *CustomersReportsCountPrintJobsByUserCall { |
| 9491 |
c.ctx_ = ctx |
| 9492 |
return c |
| 9493 |
} |
| 9494 |
|
| 9495 |
// Header returns a http.Header that can be modified by the caller to add |
| 9496 |
// headers to the request. |
| 9497 |
func (c *CustomersReportsCountPrintJobsByUserCall) Header() http.Header { |
| 9498 |
if c.header_ == nil { |
| 9499 |
c.header_ = make(http.Header) |
| 9500 |
} |
| 9501 |
return c.header_ |
| 9502 |
} |
| 9503 |
|
| 9504 |
func (c *CustomersReportsCountPrintJobsByUserCall) doRequest(alt string) (*http.Response, error) { |
| 9505 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 9506 |
if c.ifNoneMatch_ != "" { |
| 9507 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 9508 |
} |
| 9509 |
c.urlParams_.Set("alt", alt) |
| 9510 |
c.urlParams_.Set("prettyPrint", "false") |
| 9511 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:countPrintJobsByUser") |
| 9512 |
urls += "?" + c.urlParams_.Encode() |
| 9513 |
req, err := http.NewRequest("GET", urls, nil) |
| 9514 |
if err != nil { |
| 9515 |
return nil, err |
| 9516 |
} |
| 9517 |
req.Header = reqHeaders |
| 9518 |
googleapi.Expand(req.URL, map[string]string{ |
| 9519 |
"customer": c.customer, |
| 9520 |
}) |
| 9521 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countPrintJobsByUser", "request", internallog.HTTPRequest(req, nil)) |
| 9522 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 9523 |
} |
| 9524 |
|
| 9525 |
// Do executes the "chromemanagement.customers.reports.countPrintJobsByUser" call. |
| 9526 |
// Any non-2xx status code is an error. Response headers are in either |
| 9527 |
// *GoogleChromeManagementV1CountPrintJobsByUserResponse.ServerResponse.Header |
| 9528 |
// or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 9529 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 9530 |
// http.StatusNotModified was returned. |
| 9531 |
func (c *CustomersReportsCountPrintJobsByUserCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountPrintJobsByUserResponse, error) { |
| 9532 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 9533 |
res, err := c.doRequest("json") |
| 9534 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 9535 |
if res.Body != nil { |
| 9536 |
res.Body.Close() |
| 9537 |
} |
| 9538 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 9539 |
Code: res.StatusCode, |
| 9540 |
Header: res.Header, |
| 9541 |
}) |
| 9542 |
} |
| 9543 |
if err != nil { |
| 9544 |
return nil, err |
| 9545 |
} |
| 9546 |
defer googleapi.CloseBody(res) |
| 9547 |
if err := googleapi.CheckResponse(res); err != nil { |
| 9548 |
return nil, gensupport.WrapError(err) |
| 9549 |
} |
| 9550 |
ret := &GoogleChromeManagementV1CountPrintJobsByUserResponse{ |
| 9551 |
ServerResponse: googleapi.ServerResponse{ |
| 9552 |
Header: res.Header, |
| 9553 |
HTTPStatusCode: res.StatusCode, |
| 9554 |
}, |
| 9555 |
} |
| 9556 |
target := &ret |
| 9557 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 9558 |
if err != nil { |
| 9559 |
return nil, err |
| 9560 |
} |
| 9561 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.countPrintJobsByUser", "response", internallog.HTTPResponse(res, b)) |
| 9562 |
return ret, nil |
| 9563 |
} |
| 9564 |
|
| 9565 |
// Pages invokes f for each page of results. |
| 9566 |
// A non-nil error returned from f will halt the iteration. |
| 9567 |
// The provided context supersedes any context provided to the Context method. |
| 9568 |
func (c *CustomersReportsCountPrintJobsByUserCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountPrintJobsByUserResponse) error) error { |
| 9569 |
c.ctx_ = ctx |
| 9570 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 9571 |
for { |
| 9572 |
x, err := c.Do() |
| 9573 |
if err != nil { |
| 9574 |
return err |
| 9575 |
} |
| 9576 |
if err := f(x); err != nil { |
| 9577 |
return err |
| 9578 |
} |
| 9579 |
if x.NextPageToken == "" { |
| 9580 |
return nil |
| 9581 |
} |
| 9582 |
c.PageToken(x.NextPageToken) |
| 9583 |
} |
| 9584 |
} |
| 9585 |
|
| 9586 |
type CustomersReportsEnumeratePrintJobsCall struct { |
| 9587 |
s *Service |
| 9588 |
customer string |
| 9589 |
urlParams_ gensupport.URLParams |
| 9590 |
ifNoneMatch_ string |
| 9591 |
ctx_ context.Context |
| 9592 |
header_ http.Header |
| 9593 |
} |
| 9594 |
|
| 9595 |
// EnumeratePrintJobs: Get a list of print jobs. |
| 9596 |
// |
| 9597 |
// - customer: Customer ID prefixed with "customers/" or |
| 9598 |
// "customers/my_customer" to use the customer associated to the account |
| 9599 |
// making the request. |
| 9600 |
func (r *CustomersReportsService) EnumeratePrintJobs(customer string) *CustomersReportsEnumeratePrintJobsCall { |
| 9601 |
c := &CustomersReportsEnumeratePrintJobsCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 9602 |
c.customer = customer |
| 9603 |
return c |
| 9604 |
} |
| 9605 |
|
| 9606 |
// Filter sets the optional parameter "filter": Query string to filter results, |
| 9607 |
// AND-separated fields in EBNF syntax. Note: OR operations are not supported |
| 9608 |
// in this filter. Note: Only >= and <= comparators are supported for |
| 9609 |
// `complete_time`. Note: Only = comparator supported for `user_id` and |
| 9610 |
// `printer_id`. Supported filter fields: * complete_time * printer_id * |
| 9611 |
// user_id |
| 9612 |
func (c *CustomersReportsEnumeratePrintJobsCall) Filter(filter string) *CustomersReportsEnumeratePrintJobsCall { |
| 9613 |
c.urlParams_.Set("filter", filter) |
| 9614 |
return c |
| 9615 |
} |
| 9616 |
|
| 9617 |
// OrderBy sets the optional parameter "orderBy": Field used to order results. |
| 9618 |
// If not specified, results will be ordered in descending order of the |
| 9619 |
// `complete_time` field. Supported order by fields: * title * state * |
| 9620 |
// create_time * complete_time * document_page_count * color_mode * duplex_mode |
| 9621 |
// * printer * user_email |
| 9622 |
func (c *CustomersReportsEnumeratePrintJobsCall) OrderBy(orderBy string) *CustomersReportsEnumeratePrintJobsCall { |
| 9623 |
c.urlParams_.Set("orderBy", orderBy) |
| 9624 |
return c |
| 9625 |
} |
| 9626 |
|
| 9627 |
// PageSize sets the optional parameter "pageSize": The number of print jobs in |
| 9628 |
// the page from 0 to 100 inclusive, if page_size is not specified or zero, the |
| 9629 |
// size will be 50. |
| 9630 |
func (c *CustomersReportsEnumeratePrintJobsCall) PageSize(pageSize int64) *CustomersReportsEnumeratePrintJobsCall { |
| 9631 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 9632 |
return c |
| 9633 |
} |
| 9634 |
|
| 9635 |
// PageToken sets the optional parameter "pageToken": A page token received |
| 9636 |
// from a previous `EnumeratePrintJobs` call. Provide this to retrieve the |
| 9637 |
// subsequent page. If omitted, the first page of results will be returned. |
| 9638 |
// When paginating, all other parameters provided to `EnumeratePrintJobs` must |
| 9639 |
// match the call that provided the page token. |
| 9640 |
func (c *CustomersReportsEnumeratePrintJobsCall) PageToken(pageToken string) *CustomersReportsEnumeratePrintJobsCall { |
| 9641 |
c.urlParams_.Set("pageToken", pageToken) |
| 9642 |
return c |
| 9643 |
} |
| 9644 |
|
| 9645 |
// PrinterOrgUnitId sets the optional parameter "printerOrgUnitId": The ID of |
| 9646 |
// the organizational unit for printers. If specified, only print jobs |
| 9647 |
// submitted to printers from the specified organizational unit will be |
| 9648 |
// returned. |
| 9649 |
func (c *CustomersReportsEnumeratePrintJobsCall) PrinterOrgUnitId(printerOrgUnitId string) *CustomersReportsEnumeratePrintJobsCall { |
| 9650 |
c.urlParams_.Set("printerOrgUnitId", printerOrgUnitId) |
| 9651 |
return c |
| 9652 |
} |
| 9653 |
|
| 9654 |
// Fields allows partial responses to be retrieved. See |
| 9655 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 9656 |
// details. |
| 9657 |
func (c *CustomersReportsEnumeratePrintJobsCall) Fields(s ...googleapi.Field) *CustomersReportsEnumeratePrintJobsCall { |
| 9658 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 9659 |
return c |
| 9660 |
} |
| 9661 |
|
| 9662 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 9663 |
// object's ETag matches the given value. This is useful for getting updates |
| 9664 |
// only after the object has changed since the last request. |
| 9665 |
func (c *CustomersReportsEnumeratePrintJobsCall) IfNoneMatch(entityTag string) *CustomersReportsEnumeratePrintJobsCall { |
| 9666 |
c.ifNoneMatch_ = entityTag |
| 9667 |
return c |
| 9668 |
} |
| 9669 |
|
| 9670 |
// Context sets the context to be used in this call's Do method. |
| 9671 |
func (c *CustomersReportsEnumeratePrintJobsCall) Context(ctx context.Context) *CustomersReportsEnumeratePrintJobsCall { |
| 9672 |
c.ctx_ = ctx |
| 9673 |
return c |
| 9674 |
} |
| 9675 |
|
| 9676 |
// Header returns a http.Header that can be modified by the caller to add |
| 9677 |
// headers to the request. |
| 9678 |
func (c *CustomersReportsEnumeratePrintJobsCall) Header() http.Header { |
| 9679 |
if c.header_ == nil { |
| 9680 |
c.header_ = make(http.Header) |
| 9681 |
} |
| 9682 |
return c.header_ |
| 9683 |
} |
| 9684 |
|
| 9685 |
func (c *CustomersReportsEnumeratePrintJobsCall) doRequest(alt string) (*http.Response, error) { |
| 9686 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 9687 |
if c.ifNoneMatch_ != "" { |
| 9688 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 9689 |
} |
| 9690 |
c.urlParams_.Set("alt", alt) |
| 9691 |
c.urlParams_.Set("prettyPrint", "false") |
| 9692 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:enumeratePrintJobs") |
| 9693 |
urls += "?" + c.urlParams_.Encode() |
| 9694 |
req, err := http.NewRequest("GET", urls, nil) |
| 9695 |
if err != nil { |
| 9696 |
return nil, err |
| 9697 |
} |
| 9698 |
req.Header = reqHeaders |
| 9699 |
googleapi.Expand(req.URL, map[string]string{ |
| 9700 |
"customer": c.customer, |
| 9701 |
}) |
| 9702 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.enumeratePrintJobs", "request", internallog.HTTPRequest(req, nil)) |
| 9703 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 9704 |
} |
| 9705 |
|
| 9706 |
// Do executes the "chromemanagement.customers.reports.enumeratePrintJobs" call. |
| 9707 |
// Any non-2xx status code is an error. Response headers are in either |
| 9708 |
// *GoogleChromeManagementV1EnumeratePrintJobsResponse.ServerResponse.Header or |
| 9709 |
// (if a response was returned at all) in error.(*googleapi.Error).Header. Use |
| 9710 |
// googleapi.IsNotModified to check whether the returned error was because |
| 9711 |
// http.StatusNotModified was returned. |
| 9712 |
func (c *CustomersReportsEnumeratePrintJobsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1EnumeratePrintJobsResponse, error) { |
| 9713 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 9714 |
res, err := c.doRequest("json") |
| 9715 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 9716 |
if res.Body != nil { |
| 9717 |
res.Body.Close() |
| 9718 |
} |
| 9719 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 9720 |
Code: res.StatusCode, |
| 9721 |
Header: res.Header, |
| 9722 |
}) |
| 9723 |
} |
| 9724 |
if err != nil { |
| 9725 |
return nil, err |
| 9726 |
} |
| 9727 |
defer googleapi.CloseBody(res) |
| 9728 |
if err := googleapi.CheckResponse(res); err != nil { |
| 9729 |
return nil, gensupport.WrapError(err) |
| 9730 |
} |
| 9731 |
ret := &GoogleChromeManagementV1EnumeratePrintJobsResponse{ |
| 9732 |
ServerResponse: googleapi.ServerResponse{ |
| 9733 |
Header: res.Header, |
| 9734 |
HTTPStatusCode: res.StatusCode, |
| 9735 |
}, |
| 9736 |
} |
| 9737 |
target := &ret |
| 9738 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 9739 |
if err != nil { |
| 9740 |
return nil, err |
| 9741 |
} |
| 9742 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.enumeratePrintJobs", "response", internallog.HTTPResponse(res, b)) |
| 9743 |
return ret, nil |
| 9744 |
} |
| 9745 |
|
| 9746 |
// Pages invokes f for each page of results. |
| 9747 |
// A non-nil error returned from f will halt the iteration. |
| 9748 |
// The provided context supersedes any context provided to the Context method. |
| 9749 |
func (c *CustomersReportsEnumeratePrintJobsCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1EnumeratePrintJobsResponse) error) error { |
| 9750 |
c.ctx_ = ctx |
| 9751 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 9752 |
for { |
| 9753 |
x, err := c.Do() |
| 9754 |
if err != nil { |
| 9755 |
return err |
| 9756 |
} |
| 9757 |
if err := f(x); err != nil { |
| 9758 |
return err |
| 9759 |
} |
| 9760 |
if x.NextPageToken == "" { |
| 9761 |
return nil |
| 9762 |
} |
| 9763 |
c.PageToken(x.NextPageToken) |
| 9764 |
} |
| 9765 |
} |
| 9766 |
|
| 9767 |
type CustomersReportsFindInstalledAppDevicesCall struct { |
| 9768 |
s *Service |
| 9769 |
customer string |
| 9770 |
urlParams_ gensupport.URLParams |
| 9771 |
ifNoneMatch_ string |
| 9772 |
ctx_ context.Context |
| 9773 |
header_ http.Header |
| 9774 |
} |
| 9775 |
|
| 9776 |
// FindInstalledAppDevices: Generate report of managed Chrome browser devices |
| 9777 |
// that have a specified app installed. |
| 9778 |
// |
| 9779 |
// - customer: Customer id or "my_customer" to use the customer associated to |
| 9780 |
// the account making the request. |
| 9781 |
func (r *CustomersReportsService) FindInstalledAppDevices(customer string) *CustomersReportsFindInstalledAppDevicesCall { |
| 9782 |
c := &CustomersReportsFindInstalledAppDevicesCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 9783 |
c.customer = customer |
| 9784 |
return c |
| 9785 |
} |
| 9786 |
|
| 9787 |
// AppId sets the optional parameter "appId": Unique identifier of the app. For |
| 9788 |
// Chrome apps and extensions, the 32-character id (e.g. |
| 9789 |
// ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g. |
| 9790 |
// com.evernote). |
| 9791 |
func (c *CustomersReportsFindInstalledAppDevicesCall) AppId(appId string) *CustomersReportsFindInstalledAppDevicesCall { |
| 9792 |
c.urlParams_.Set("appId", appId) |
| 9793 |
return c |
| 9794 |
} |
| 9795 |
|
| 9796 |
// AppType sets the optional parameter "appType": Type of the app. If not |
| 9797 |
// provided, an app type will be inferred from the format of the app ID. |
| 9798 |
// |
| 9799 |
// Possible values: |
| 9800 |
// |
| 9801 |
// "APP_TYPE_UNSPECIFIED" - App type not specified. |
| 9802 |
// "EXTENSION" - Chrome extension. |
| 9803 |
// "APP" - Chrome app. |
| 9804 |
// "THEME" - Chrome theme. |
| 9805 |
// "HOSTED_APP" - Chrome hosted app. |
| 9806 |
// "ANDROID_APP" - ARC++ app. |
| 9807 |
func (c *CustomersReportsFindInstalledAppDevicesCall) AppType(appType string) *CustomersReportsFindInstalledAppDevicesCall { |
| 9808 |
c.urlParams_.Set("appType", appType) |
| 9809 |
return c |
| 9810 |
} |
| 9811 |
|
| 9812 |
// Filter sets the optional parameter "filter": Query string to filter results, |
| 9813 |
// AND-separated fields in EBNF syntax. Note: OR operations are not supported |
| 9814 |
// in this filter. Supported filter fields: * last_active_date |
| 9815 |
func (c *CustomersReportsFindInstalledAppDevicesCall) Filter(filter string) *CustomersReportsFindInstalledAppDevicesCall { |
| 9816 |
c.urlParams_.Set("filter", filter) |
| 9817 |
return c |
| 9818 |
} |
| 9819 |
|
| 9820 |
// OrderBy sets the optional parameter "orderBy": Field used to order results. |
| 9821 |
// Supported order by fields: * machine * device_id |
| 9822 |
func (c *CustomersReportsFindInstalledAppDevicesCall) OrderBy(orderBy string) *CustomersReportsFindInstalledAppDevicesCall { |
| 9823 |
c.urlParams_.Set("orderBy", orderBy) |
| 9824 |
return c |
| 9825 |
} |
| 9826 |
|
| 9827 |
// OrgUnitId sets the optional parameter "orgUnitId": The ID of the |
| 9828 |
// organizational unit. |
| 9829 |
func (c *CustomersReportsFindInstalledAppDevicesCall) OrgUnitId(orgUnitId string) *CustomersReportsFindInstalledAppDevicesCall { |
| 9830 |
c.urlParams_.Set("orgUnitId", orgUnitId) |
| 9831 |
return c |
| 9832 |
} |
| 9833 |
|
| 9834 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 9835 |
// to return. Maximum and default are 100. |
| 9836 |
func (c *CustomersReportsFindInstalledAppDevicesCall) PageSize(pageSize int64) *CustomersReportsFindInstalledAppDevicesCall { |
| 9837 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 9838 |
return c |
| 9839 |
} |
| 9840 |
|
| 9841 |
// PageToken sets the optional parameter "pageToken": Token to specify the page |
| 9842 |
// of the request to be returned. |
| 9843 |
func (c *CustomersReportsFindInstalledAppDevicesCall) PageToken(pageToken string) *CustomersReportsFindInstalledAppDevicesCall { |
| 9844 |
c.urlParams_.Set("pageToken", pageToken) |
| 9845 |
return c |
| 9846 |
} |
| 9847 |
|
| 9848 |
// Fields allows partial responses to be retrieved. See |
| 9849 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 9850 |
// details. |
| 9851 |
func (c *CustomersReportsFindInstalledAppDevicesCall) Fields(s ...googleapi.Field) *CustomersReportsFindInstalledAppDevicesCall { |
| 9852 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 9853 |
return c |
| 9854 |
} |
| 9855 |
|
| 9856 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 9857 |
// object's ETag matches the given value. This is useful for getting updates |
| 9858 |
// only after the object has changed since the last request. |
| 9859 |
func (c *CustomersReportsFindInstalledAppDevicesCall) IfNoneMatch(entityTag string) *CustomersReportsFindInstalledAppDevicesCall { |
| 9860 |
c.ifNoneMatch_ = entityTag |
| 9861 |
return c |
| 9862 |
} |
| 9863 |
|
| 9864 |
// Context sets the context to be used in this call's Do method. |
| 9865 |
func (c *CustomersReportsFindInstalledAppDevicesCall) Context(ctx context.Context) *CustomersReportsFindInstalledAppDevicesCall { |
| 9866 |
c.ctx_ = ctx |
| 9867 |
return c |
| 9868 |
} |
| 9869 |
|
| 9870 |
// Header returns a http.Header that can be modified by the caller to add |
| 9871 |
// headers to the request. |
| 9872 |
func (c *CustomersReportsFindInstalledAppDevicesCall) Header() http.Header { |
| 9873 |
if c.header_ == nil { |
| 9874 |
c.header_ = make(http.Header) |
| 9875 |
} |
| 9876 |
return c.header_ |
| 9877 |
} |
| 9878 |
|
| 9879 |
func (c *CustomersReportsFindInstalledAppDevicesCall) doRequest(alt string) (*http.Response, error) { |
| 9880 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 9881 |
if c.ifNoneMatch_ != "" { |
| 9882 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 9883 |
} |
| 9884 |
c.urlParams_.Set("alt", alt) |
| 9885 |
c.urlParams_.Set("prettyPrint", "false") |
| 9886 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/reports:findInstalledAppDevices") |
| 9887 |
urls += "?" + c.urlParams_.Encode() |
| 9888 |
req, err := http.NewRequest("GET", urls, nil) |
| 9889 |
if err != nil { |
| 9890 |
return nil, err |
| 9891 |
} |
| 9892 |
req.Header = reqHeaders |
| 9893 |
googleapi.Expand(req.URL, map[string]string{ |
| 9894 |
"customer": c.customer, |
| 9895 |
}) |
| 9896 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.findInstalledAppDevices", "request", internallog.HTTPRequest(req, nil)) |
| 9897 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 9898 |
} |
| 9899 |
|
| 9900 |
// Do executes the "chromemanagement.customers.reports.findInstalledAppDevices" call. |
| 9901 |
// Any non-2xx status code is an error. Response headers are in either |
| 9902 |
// *GoogleChromeManagementV1FindInstalledAppDevicesResponse.ServerResponse.Heade |
| 9903 |
// r or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 9904 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 9905 |
// http.StatusNotModified was returned. |
| 9906 |
func (c *CustomersReportsFindInstalledAppDevicesCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1FindInstalledAppDevicesResponse, error) { |
| 9907 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 9908 |
res, err := c.doRequest("json") |
| 9909 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 9910 |
if res.Body != nil { |
| 9911 |
res.Body.Close() |
| 9912 |
} |
| 9913 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 9914 |
Code: res.StatusCode, |
| 9915 |
Header: res.Header, |
| 9916 |
}) |
| 9917 |
} |
| 9918 |
if err != nil { |
| 9919 |
return nil, err |
| 9920 |
} |
| 9921 |
defer googleapi.CloseBody(res) |
| 9922 |
if err := googleapi.CheckResponse(res); err != nil { |
| 9923 |
return nil, gensupport.WrapError(err) |
| 9924 |
} |
| 9925 |
ret := &GoogleChromeManagementV1FindInstalledAppDevicesResponse{ |
| 9926 |
ServerResponse: googleapi.ServerResponse{ |
| 9927 |
Header: res.Header, |
| 9928 |
HTTPStatusCode: res.StatusCode, |
| 9929 |
}, |
| 9930 |
} |
| 9931 |
target := &ret |
| 9932 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 9933 |
if err != nil { |
| 9934 |
return nil, err |
| 9935 |
} |
| 9936 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.reports.findInstalledAppDevices", "response", internallog.HTTPResponse(res, b)) |
| 9937 |
return ret, nil |
| 9938 |
} |
| 9939 |
|
| 9940 |
// Pages invokes f for each page of results. |
| 9941 |
// A non-nil error returned from f will halt the iteration. |
| 9942 |
// The provided context supersedes any context provided to the Context method. |
| 9943 |
func (c *CustomersReportsFindInstalledAppDevicesCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1FindInstalledAppDevicesResponse) error) error { |
| 9944 |
c.ctx_ = ctx |
| 9945 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 9946 |
for { |
| 9947 |
x, err := c.Do() |
| 9948 |
if err != nil { |
| 9949 |
return err |
| 9950 |
} |
| 9951 |
if err := f(x); err != nil { |
| 9952 |
return err |
| 9953 |
} |
| 9954 |
if x.NextPageToken == "" { |
| 9955 |
return nil |
| 9956 |
} |
| 9957 |
c.PageToken(x.NextPageToken) |
| 9958 |
} |
| 9959 |
} |
| 9960 |
|
| 9961 |
type CustomersTelemetryDevicesGetCall struct { |
| 9962 |
s *Service |
| 9963 |
name string |
| 9964 |
urlParams_ gensupport.URLParams |
| 9965 |
ifNoneMatch_ string |
| 9966 |
ctx_ context.Context |
| 9967 |
header_ http.Header |
| 9968 |
} |
| 9969 |
|
| 9970 |
// Get: Get telemetry device. |
| 9971 |
// |
| 9972 |
// - name: Name of the `TelemetryDevice` to return. |
| 9973 |
func (r *CustomersTelemetryDevicesService) Get(name string) *CustomersTelemetryDevicesGetCall { |
| 9974 |
c := &CustomersTelemetryDevicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 9975 |
c.name = name |
| 9976 |
return c |
| 9977 |
} |
| 9978 |
|
| 9979 |
// ReadMask sets the optional parameter "readMask": Required. Read mask to |
| 9980 |
// specify which fields to return. Supported read_mask paths are: - name - |
| 9981 |
// org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - |
| 9982 |
// memory_info - memory_status_report - network_info - |
| 9983 |
// network_diagnostics_report - network_status_report - os_update_status - |
| 9984 |
// graphics_info - graphics_status_report - battery_info - |
| 9985 |
// battery_status_report - storage_info - storage_status_report - |
| 9986 |
// thunderbolt_info - audio_status_report - boot_performance_report - |
| 9987 |
// heartbeat_status_report - network_bandwidth_report - peripherals_report - |
| 9988 |
// kiosk_app_status_report - app_report - runtime_counters_report |
| 9989 |
func (c *CustomersTelemetryDevicesGetCall) ReadMask(readMask string) *CustomersTelemetryDevicesGetCall { |
| 9990 |
c.urlParams_.Set("readMask", readMask) |
| 9991 |
return c |
| 9992 |
} |
| 9993 |
|
| 9994 |
// Fields allows partial responses to be retrieved. See |
| 9995 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 9996 |
// details. |
| 9997 |
func (c *CustomersTelemetryDevicesGetCall) Fields(s ...googleapi.Field) *CustomersTelemetryDevicesGetCall { |
| 9998 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 9999 |
return c |
| 10000 |
} |
| 10001 |
|
| 10002 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 10003 |
// object's ETag matches the given value. This is useful for getting updates |
| 10004 |
// only after the object has changed since the last request. |
| 10005 |
func (c *CustomersTelemetryDevicesGetCall) IfNoneMatch(entityTag string) *CustomersTelemetryDevicesGetCall { |
| 10006 |
c.ifNoneMatch_ = entityTag |
| 10007 |
return c |
| 10008 |
} |
| 10009 |
|
| 10010 |
// Context sets the context to be used in this call's Do method. |
| 10011 |
func (c *CustomersTelemetryDevicesGetCall) Context(ctx context.Context) *CustomersTelemetryDevicesGetCall { |
| 10012 |
c.ctx_ = ctx |
| 10013 |
return c |
| 10014 |
} |
| 10015 |
|
| 10016 |
// Header returns a http.Header that can be modified by the caller to add |
| 10017 |
// headers to the request. |
| 10018 |
func (c *CustomersTelemetryDevicesGetCall) Header() http.Header { |
| 10019 |
if c.header_ == nil { |
| 10020 |
c.header_ = make(http.Header) |
| 10021 |
} |
| 10022 |
return c.header_ |
| 10023 |
} |
| 10024 |
|
| 10025 |
func (c *CustomersTelemetryDevicesGetCall) doRequest(alt string) (*http.Response, error) { |
| 10026 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 10027 |
if c.ifNoneMatch_ != "" { |
| 10028 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 10029 |
} |
| 10030 |
c.urlParams_.Set("alt", alt) |
| 10031 |
c.urlParams_.Set("prettyPrint", "false") |
| 10032 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 10033 |
urls += "?" + c.urlParams_.Encode() |
| 10034 |
req, err := http.NewRequest("GET", urls, nil) |
| 10035 |
if err != nil { |
| 10036 |
return nil, err |
| 10037 |
} |
| 10038 |
req.Header = reqHeaders |
| 10039 |
googleapi.Expand(req.URL, map[string]string{ |
| 10040 |
"name": c.name, |
| 10041 |
}) |
| 10042 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.devices.get", "request", internallog.HTTPRequest(req, nil)) |
| 10043 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 10044 |
} |
| 10045 |
|
| 10046 |
// Do executes the "chromemanagement.customers.telemetry.devices.get" call. |
| 10047 |
// Any non-2xx status code is an error. Response headers are in either |
| 10048 |
// *GoogleChromeManagementV1TelemetryDevice.ServerResponse.Header or (if a |
| 10049 |
// response was returned at all) in error.(*googleapi.Error).Header. Use |
| 10050 |
// googleapi.IsNotModified to check whether the returned error was because |
| 10051 |
// http.StatusNotModified was returned. |
| 10052 |
func (c *CustomersTelemetryDevicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1TelemetryDevice, error) { |
| 10053 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 10054 |
res, err := c.doRequest("json") |
| 10055 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 10056 |
if res.Body != nil { |
| 10057 |
res.Body.Close() |
| 10058 |
} |
| 10059 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 10060 |
Code: res.StatusCode, |
| 10061 |
Header: res.Header, |
| 10062 |
}) |
| 10063 |
} |
| 10064 |
if err != nil { |
| 10065 |
return nil, err |
| 10066 |
} |
| 10067 |
defer googleapi.CloseBody(res) |
| 10068 |
if err := googleapi.CheckResponse(res); err != nil { |
| 10069 |
return nil, gensupport.WrapError(err) |
| 10070 |
} |
| 10071 |
ret := &GoogleChromeManagementV1TelemetryDevice{ |
| 10072 |
ServerResponse: googleapi.ServerResponse{ |
| 10073 |
Header: res.Header, |
| 10074 |
HTTPStatusCode: res.StatusCode, |
| 10075 |
}, |
| 10076 |
} |
| 10077 |
target := &ret |
| 10078 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 10079 |
if err != nil { |
| 10080 |
return nil, err |
| 10081 |
} |
| 10082 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.devices.get", "response", internallog.HTTPResponse(res, b)) |
| 10083 |
return ret, nil |
| 10084 |
} |
| 10085 |
|
| 10086 |
type CustomersTelemetryDevicesListCall struct { |
| 10087 |
s *Service |
| 10088 |
parent string |
| 10089 |
urlParams_ gensupport.URLParams |
| 10090 |
ifNoneMatch_ string |
| 10091 |
ctx_ context.Context |
| 10092 |
header_ http.Header |
| 10093 |
} |
| 10094 |
|
| 10095 |
// List: List all telemetry devices. |
| 10096 |
// |
| 10097 |
// - parent: Customer id or "my_customer" to use the customer associated to the |
| 10098 |
// account making the request. |
| 10099 |
func (r *CustomersTelemetryDevicesService) List(parent string) *CustomersTelemetryDevicesListCall { |
| 10100 |
c := &CustomersTelemetryDevicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 10101 |
c.parent = parent |
| 10102 |
return c |
| 10103 |
} |
| 10104 |
|
| 10105 |
// Filter sets the optional parameter "filter": Only include resources that |
| 10106 |
// match the filter. Requests that don't specify a "reports_timestamp" value |
| 10107 |
// will default to returning only recent reports. Specify |
| 10108 |
// "reports_timestamp>=0" to get all report data. Supported filter fields: - |
| 10109 |
// org_unit_id - serial_number - device_id - reports_timestamp The |
| 10110 |
// "reports_timestamp" filter accepts either the Unix Epoch milliseconds format |
| 10111 |
// or the RFC3339 UTC "Zulu" format with nanosecond resolution and up to nine |
| 10112 |
// fractional digits. Both formats should be surrounded by simple double |
| 10113 |
// quotes. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z", |
| 10114 |
// "1679283943823". |
| 10115 |
func (c *CustomersTelemetryDevicesListCall) Filter(filter string) *CustomersTelemetryDevicesListCall { |
| 10116 |
c.urlParams_.Set("filter", filter) |
| 10117 |
return c |
| 10118 |
} |
| 10119 |
|
| 10120 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 10121 |
// to return. Default value is 100. Maximum value is 1000. |
| 10122 |
func (c *CustomersTelemetryDevicesListCall) PageSize(pageSize int64) *CustomersTelemetryDevicesListCall { |
| 10123 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 10124 |
return c |
| 10125 |
} |
| 10126 |
|
| 10127 |
// PageToken sets the optional parameter "pageToken": Token to specify next |
| 10128 |
// page in the list. |
| 10129 |
func (c *CustomersTelemetryDevicesListCall) PageToken(pageToken string) *CustomersTelemetryDevicesListCall { |
| 10130 |
c.urlParams_.Set("pageToken", pageToken) |
| 10131 |
return c |
| 10132 |
} |
| 10133 |
|
| 10134 |
// ReadMask sets the optional parameter "readMask": Required. Read mask to |
| 10135 |
// specify which fields to return. Supported read_mask paths are: - name - |
| 10136 |
// org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - |
| 10137 |
// memory_info - memory_status_report - network_info - |
| 10138 |
// network_diagnostics_report - network_status_report - os_update_status - |
| 10139 |
// graphics_info - graphics_status_report - battery_info - |
| 10140 |
// battery_status_report - storage_info - storage_status_report - |
| 10141 |
// thunderbolt_info - audio_status_report - boot_performance_report - |
| 10142 |
// heartbeat_status_report - network_bandwidth_report - peripherals_report - |
| 10143 |
// kiosk_app_status_report - app_report - runtime_counters_report |
| 10144 |
func (c *CustomersTelemetryDevicesListCall) ReadMask(readMask string) *CustomersTelemetryDevicesListCall { |
| 10145 |
c.urlParams_.Set("readMask", readMask) |
| 10146 |
return c |
| 10147 |
} |
| 10148 |
|
| 10149 |
// Fields allows partial responses to be retrieved. See |
| 10150 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 10151 |
// details. |
| 10152 |
func (c *CustomersTelemetryDevicesListCall) Fields(s ...googleapi.Field) *CustomersTelemetryDevicesListCall { |
| 10153 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 10154 |
return c |
| 10155 |
} |
| 10156 |
|
| 10157 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 10158 |
// object's ETag matches the given value. This is useful for getting updates |
| 10159 |
// only after the object has changed since the last request. |
| 10160 |
func (c *CustomersTelemetryDevicesListCall) IfNoneMatch(entityTag string) *CustomersTelemetryDevicesListCall { |
| 10161 |
c.ifNoneMatch_ = entityTag |
| 10162 |
return c |
| 10163 |
} |
| 10164 |
|
| 10165 |
// Context sets the context to be used in this call's Do method. |
| 10166 |
func (c *CustomersTelemetryDevicesListCall) Context(ctx context.Context) *CustomersTelemetryDevicesListCall { |
| 10167 |
c.ctx_ = ctx |
| 10168 |
return c |
| 10169 |
} |
| 10170 |
|
| 10171 |
// Header returns a http.Header that can be modified by the caller to add |
| 10172 |
// headers to the request. |
| 10173 |
func (c *CustomersTelemetryDevicesListCall) Header() http.Header { |
| 10174 |
if c.header_ == nil { |
| 10175 |
c.header_ = make(http.Header) |
| 10176 |
} |
| 10177 |
return c.header_ |
| 10178 |
} |
| 10179 |
|
| 10180 |
func (c *CustomersTelemetryDevicesListCall) doRequest(alt string) (*http.Response, error) { |
| 10181 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 10182 |
if c.ifNoneMatch_ != "" { |
| 10183 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 10184 |
} |
| 10185 |
c.urlParams_.Set("alt", alt) |
| 10186 |
c.urlParams_.Set("prettyPrint", "false") |
| 10187 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/telemetry/devices") |
| 10188 |
urls += "?" + c.urlParams_.Encode() |
| 10189 |
req, err := http.NewRequest("GET", urls, nil) |
| 10190 |
if err != nil { |
| 10191 |
return nil, err |
| 10192 |
} |
| 10193 |
req.Header = reqHeaders |
| 10194 |
googleapi.Expand(req.URL, map[string]string{ |
| 10195 |
"parent": c.parent, |
| 10196 |
}) |
| 10197 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.devices.list", "request", internallog.HTTPRequest(req, nil)) |
| 10198 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 10199 |
} |
| 10200 |
|
| 10201 |
// Do executes the "chromemanagement.customers.telemetry.devices.list" call. |
| 10202 |
// Any non-2xx status code is an error. Response headers are in either |
| 10203 |
// *GoogleChromeManagementV1ListTelemetryDevicesResponse.ServerResponse.Header |
| 10204 |
// or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 10205 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 10206 |
// http.StatusNotModified was returned. |
| 10207 |
func (c *CustomersTelemetryDevicesListCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1ListTelemetryDevicesResponse, error) { |
| 10208 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 10209 |
res, err := c.doRequest("json") |
| 10210 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 10211 |
if res.Body != nil { |
| 10212 |
res.Body.Close() |
| 10213 |
} |
| 10214 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 10215 |
Code: res.StatusCode, |
| 10216 |
Header: res.Header, |
| 10217 |
}) |
| 10218 |
} |
| 10219 |
if err != nil { |
| 10220 |
return nil, err |
| 10221 |
} |
| 10222 |
defer googleapi.CloseBody(res) |
| 10223 |
if err := googleapi.CheckResponse(res); err != nil { |
| 10224 |
return nil, gensupport.WrapError(err) |
| 10225 |
} |
| 10226 |
ret := &GoogleChromeManagementV1ListTelemetryDevicesResponse{ |
| 10227 |
ServerResponse: googleapi.ServerResponse{ |
| 10228 |
Header: res.Header, |
| 10229 |
HTTPStatusCode: res.StatusCode, |
| 10230 |
}, |
| 10231 |
} |
| 10232 |
target := &ret |
| 10233 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 10234 |
if err != nil { |
| 10235 |
return nil, err |
| 10236 |
} |
| 10237 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.devices.list", "response", internallog.HTTPResponse(res, b)) |
| 10238 |
return ret, nil |
| 10239 |
} |
| 10240 |
|
| 10241 |
// Pages invokes f for each page of results. |
| 10242 |
// A non-nil error returned from f will halt the iteration. |
| 10243 |
// The provided context supersedes any context provided to the Context method. |
| 10244 |
func (c *CustomersTelemetryDevicesListCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1ListTelemetryDevicesResponse) error) error { |
| 10245 |
c.ctx_ = ctx |
| 10246 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 10247 |
for { |
| 10248 |
x, err := c.Do() |
| 10249 |
if err != nil { |
| 10250 |
return err |
| 10251 |
} |
| 10252 |
if err := f(x); err != nil { |
| 10253 |
return err |
| 10254 |
} |
| 10255 |
if x.NextPageToken == "" { |
| 10256 |
return nil |
| 10257 |
} |
| 10258 |
c.PageToken(x.NextPageToken) |
| 10259 |
} |
| 10260 |
} |
| 10261 |
|
| 10262 |
type CustomersTelemetryEventsListCall struct { |
| 10263 |
s *Service |
| 10264 |
parent string |
| 10265 |
urlParams_ gensupport.URLParams |
| 10266 |
ifNoneMatch_ string |
| 10267 |
ctx_ context.Context |
| 10268 |
header_ http.Header |
| 10269 |
} |
| 10270 |
|
| 10271 |
// List: List telemetry events. |
| 10272 |
// |
| 10273 |
// - parent: Customer id or "my_customer" to use the customer associated to the |
| 10274 |
// account making the request. |
| 10275 |
func (r *CustomersTelemetryEventsService) List(parent string) *CustomersTelemetryEventsListCall { |
| 10276 |
c := &CustomersTelemetryEventsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 10277 |
c.parent = parent |
| 10278 |
return c |
| 10279 |
} |
| 10280 |
|
| 10281 |
// Filter sets the optional parameter "filter": Only include resources that |
| 10282 |
// match the filter. Although this parameter is currently optional, this |
| 10283 |
// parameter will be required- please specify at least 1 event type. Supported |
| 10284 |
// filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id |
| 10285 |
// - timestamp - event_type The "timestamp" filter accepts either the Unix |
| 10286 |
// Epoch milliseconds format or the RFC3339 UTC "Zulu" format with nanosecond |
| 10287 |
// resolution and up to nine fractional digits. Both formats should be |
| 10288 |
// surrounded by simple double quotes. Examples: "2014-10-02T15:01:23Z", |
| 10289 |
// "2014-10-02T15:01:23.045123456Z", "1679283943823". |
| 10290 |
func (c *CustomersTelemetryEventsListCall) Filter(filter string) *CustomersTelemetryEventsListCall { |
| 10291 |
c.urlParams_.Set("filter", filter) |
| 10292 |
return c |
| 10293 |
} |
| 10294 |
|
| 10295 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 10296 |
// to return. Default value is 100. Maximum value is 1000. |
| 10297 |
func (c *CustomersTelemetryEventsListCall) PageSize(pageSize int64) *CustomersTelemetryEventsListCall { |
| 10298 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 10299 |
return c |
| 10300 |
} |
| 10301 |
|
| 10302 |
// PageToken sets the optional parameter "pageToken": Token to specify next |
| 10303 |
// page in the list. |
| 10304 |
func (c *CustomersTelemetryEventsListCall) PageToken(pageToken string) *CustomersTelemetryEventsListCall { |
| 10305 |
c.urlParams_.Set("pageToken", pageToken) |
| 10306 |
return c |
| 10307 |
} |
| 10308 |
|
| 10309 |
// ReadMask sets the optional parameter "readMask": Required. Read mask to |
| 10310 |
// specify which fields to return. Although currently required, this field will |
| 10311 |
// become optional, while the filter parameter with an event type will be come |
| 10312 |
// required. Supported read_mask paths are: - device - user - |
| 10313 |
// audio_severe_underrun_event - usb_peripherals_event - |
| 10314 |
// https_latency_change_event - network_state_change_event - |
| 10315 |
// wifi_signal_strength_event - vpn_connection_state_change_event - |
| 10316 |
// app_install_event - app_uninstall_event - app_launch_event - os_crash_event |
| 10317 |
// - external_displays_event |
| 10318 |
func (c *CustomersTelemetryEventsListCall) ReadMask(readMask string) *CustomersTelemetryEventsListCall { |
| 10319 |
c.urlParams_.Set("readMask", readMask) |
| 10320 |
return c |
| 10321 |
} |
| 10322 |
|
| 10323 |
// Fields allows partial responses to be retrieved. See |
| 10324 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 10325 |
// details. |
| 10326 |
func (c *CustomersTelemetryEventsListCall) Fields(s ...googleapi.Field) *CustomersTelemetryEventsListCall { |
| 10327 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 10328 |
return c |
| 10329 |
} |
| 10330 |
|
| 10331 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 10332 |
// object's ETag matches the given value. This is useful for getting updates |
| 10333 |
// only after the object has changed since the last request. |
| 10334 |
func (c *CustomersTelemetryEventsListCall) IfNoneMatch(entityTag string) *CustomersTelemetryEventsListCall { |
| 10335 |
c.ifNoneMatch_ = entityTag |
| 10336 |
return c |
| 10337 |
} |
| 10338 |
|
| 10339 |
// Context sets the context to be used in this call's Do method. |
| 10340 |
func (c *CustomersTelemetryEventsListCall) Context(ctx context.Context) *CustomersTelemetryEventsListCall { |
| 10341 |
c.ctx_ = ctx |
| 10342 |
return c |
| 10343 |
} |
| 10344 |
|
| 10345 |
// Header returns a http.Header that can be modified by the caller to add |
| 10346 |
// headers to the request. |
| 10347 |
func (c *CustomersTelemetryEventsListCall) Header() http.Header { |
| 10348 |
if c.header_ == nil { |
| 10349 |
c.header_ = make(http.Header) |
| 10350 |
} |
| 10351 |
return c.header_ |
| 10352 |
} |
| 10353 |
|
| 10354 |
func (c *CustomersTelemetryEventsListCall) doRequest(alt string) (*http.Response, error) { |
| 10355 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 10356 |
if c.ifNoneMatch_ != "" { |
| 10357 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 10358 |
} |
| 10359 |
c.urlParams_.Set("alt", alt) |
| 10360 |
c.urlParams_.Set("prettyPrint", "false") |
| 10361 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/telemetry/events") |
| 10362 |
urls += "?" + c.urlParams_.Encode() |
| 10363 |
req, err := http.NewRequest("GET", urls, nil) |
| 10364 |
if err != nil { |
| 10365 |
return nil, err |
| 10366 |
} |
| 10367 |
req.Header = reqHeaders |
| 10368 |
googleapi.Expand(req.URL, map[string]string{ |
| 10369 |
"parent": c.parent, |
| 10370 |
}) |
| 10371 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.events.list", "request", internallog.HTTPRequest(req, nil)) |
| 10372 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 10373 |
} |
| 10374 |
|
| 10375 |
// Do executes the "chromemanagement.customers.telemetry.events.list" call. |
| 10376 |
// Any non-2xx status code is an error. Response headers are in either |
| 10377 |
// *GoogleChromeManagementV1ListTelemetryEventsResponse.ServerResponse.Header |
| 10378 |
// or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 10379 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 10380 |
// http.StatusNotModified was returned. |
| 10381 |
func (c *CustomersTelemetryEventsListCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1ListTelemetryEventsResponse, error) { |
| 10382 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 10383 |
res, err := c.doRequest("json") |
| 10384 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 10385 |
if res.Body != nil { |
| 10386 |
res.Body.Close() |
| 10387 |
} |
| 10388 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 10389 |
Code: res.StatusCode, |
| 10390 |
Header: res.Header, |
| 10391 |
}) |
| 10392 |
} |
| 10393 |
if err != nil { |
| 10394 |
return nil, err |
| 10395 |
} |
| 10396 |
defer googleapi.CloseBody(res) |
| 10397 |
if err := googleapi.CheckResponse(res); err != nil { |
| 10398 |
return nil, gensupport.WrapError(err) |
| 10399 |
} |
| 10400 |
ret := &GoogleChromeManagementV1ListTelemetryEventsResponse{ |
| 10401 |
ServerResponse: googleapi.ServerResponse{ |
| 10402 |
Header: res.Header, |
| 10403 |
HTTPStatusCode: res.StatusCode, |
| 10404 |
}, |
| 10405 |
} |
| 10406 |
target := &ret |
| 10407 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 10408 |
if err != nil { |
| 10409 |
return nil, err |
| 10410 |
} |
| 10411 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.events.list", "response", internallog.HTTPResponse(res, b)) |
| 10412 |
return ret, nil |
| 10413 |
} |
| 10414 |
|
| 10415 |
// Pages invokes f for each page of results. |
| 10416 |
// A non-nil error returned from f will halt the iteration. |
| 10417 |
// The provided context supersedes any context provided to the Context method. |
| 10418 |
func (c *CustomersTelemetryEventsListCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1ListTelemetryEventsResponse) error) error { |
| 10419 |
c.ctx_ = ctx |
| 10420 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 10421 |
for { |
| 10422 |
x, err := c.Do() |
| 10423 |
if err != nil { |
| 10424 |
return err |
| 10425 |
} |
| 10426 |
if err := f(x); err != nil { |
| 10427 |
return err |
| 10428 |
} |
| 10429 |
if x.NextPageToken == "" { |
| 10430 |
return nil |
| 10431 |
} |
| 10432 |
c.PageToken(x.NextPageToken) |
| 10433 |
} |
| 10434 |
} |
| 10435 |
|
| 10436 |
type CustomersTelemetryNotificationConfigsCreateCall struct { |
| 10437 |
s *Service |
| 10438 |
parent string |
| 10439 |
googlechromemanagementv1telemetrynotificationconfig *GoogleChromeManagementV1TelemetryNotificationConfig |
| 10440 |
urlParams_ gensupport.URLParams |
| 10441 |
ctx_ context.Context |
| 10442 |
header_ http.Header |
| 10443 |
} |
| 10444 |
|
| 10445 |
// Create: Create a telemetry notification config. |
| 10446 |
// |
| 10447 |
// - parent: The parent resource where this notification config will be |
| 10448 |
// created. Format: `customers/{customer}`. |
| 10449 |
func (r *CustomersTelemetryNotificationConfigsService) Create(parent string, googlechromemanagementv1telemetrynotificationconfig *GoogleChromeManagementV1TelemetryNotificationConfig) *CustomersTelemetryNotificationConfigsCreateCall { |
| 10450 |
c := &CustomersTelemetryNotificationConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 10451 |
c.parent = parent |
| 10452 |
c.googlechromemanagementv1telemetrynotificationconfig = googlechromemanagementv1telemetrynotificationconfig |
| 10453 |
return c |
| 10454 |
} |
| 10455 |
|
| 10456 |
// Fields allows partial responses to be retrieved. See |
| 10457 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 10458 |
// details. |
| 10459 |
func (c *CustomersTelemetryNotificationConfigsCreateCall) Fields(s ...googleapi.Field) *CustomersTelemetryNotificationConfigsCreateCall { |
| 10460 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 10461 |
return c |
| 10462 |
} |
| 10463 |
|
| 10464 |
// Context sets the context to be used in this call's Do method. |
| 10465 |
func (c *CustomersTelemetryNotificationConfigsCreateCall) Context(ctx context.Context) *CustomersTelemetryNotificationConfigsCreateCall { |
| 10466 |
c.ctx_ = ctx |
| 10467 |
return c |
| 10468 |
} |
| 10469 |
|
| 10470 |
// Header returns a http.Header that can be modified by the caller to add |
| 10471 |
// headers to the request. |
| 10472 |
func (c *CustomersTelemetryNotificationConfigsCreateCall) Header() http.Header { |
| 10473 |
if c.header_ == nil { |
| 10474 |
c.header_ = make(http.Header) |
| 10475 |
} |
| 10476 |
return c.header_ |
| 10477 |
} |
| 10478 |
|
| 10479 |
func (c *CustomersTelemetryNotificationConfigsCreateCall) doRequest(alt string) (*http.Response, error) { |
| 10480 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) |
| 10481 |
body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlechromemanagementv1telemetrynotificationconfig) |
| 10482 |
if err != nil { |
| 10483 |
return nil, err |
| 10484 |
} |
| 10485 |
c.urlParams_.Set("alt", alt) |
| 10486 |
c.urlParams_.Set("prettyPrint", "false") |
| 10487 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/telemetry/notificationConfigs") |
| 10488 |
urls += "?" + c.urlParams_.Encode() |
| 10489 |
req, err := http.NewRequest("POST", urls, body) |
| 10490 |
if err != nil { |
| 10491 |
return nil, err |
| 10492 |
} |
| 10493 |
req.Header = reqHeaders |
| 10494 |
googleapi.Expand(req.URL, map[string]string{ |
| 10495 |
"parent": c.parent, |
| 10496 |
}) |
| 10497 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.notificationConfigs.create", "request", internallog.HTTPRequest(req, body.Bytes())) |
| 10498 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 10499 |
} |
| 10500 |
|
| 10501 |
// Do executes the "chromemanagement.customers.telemetry.notificationConfigs.create" call. |
| 10502 |
// Any non-2xx status code is an error. Response headers are in either |
| 10503 |
// *GoogleChromeManagementV1TelemetryNotificationConfig.ServerResponse.Header |
| 10504 |
// or (if a response was returned at all) in error.(*googleapi.Error).Header. |
| 10505 |
// Use googleapi.IsNotModified to check whether the returned error was because |
| 10506 |
// http.StatusNotModified was returned. |
| 10507 |
func (c *CustomersTelemetryNotificationConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1TelemetryNotificationConfig, error) { |
| 10508 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 10509 |
res, err := c.doRequest("json") |
| 10510 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 10511 |
if res.Body != nil { |
| 10512 |
res.Body.Close() |
| 10513 |
} |
| 10514 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 10515 |
Code: res.StatusCode, |
| 10516 |
Header: res.Header, |
| 10517 |
}) |
| 10518 |
} |
| 10519 |
if err != nil { |
| 10520 |
return nil, err |
| 10521 |
} |
| 10522 |
defer googleapi.CloseBody(res) |
| 10523 |
if err := googleapi.CheckResponse(res); err != nil { |
| 10524 |
return nil, gensupport.WrapError(err) |
| 10525 |
} |
| 10526 |
ret := &GoogleChromeManagementV1TelemetryNotificationConfig{ |
| 10527 |
ServerResponse: googleapi.ServerResponse{ |
| 10528 |
Header: res.Header, |
| 10529 |
HTTPStatusCode: res.StatusCode, |
| 10530 |
}, |
| 10531 |
} |
| 10532 |
target := &ret |
| 10533 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 10534 |
if err != nil { |
| 10535 |
return nil, err |
| 10536 |
} |
| 10537 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.notificationConfigs.create", "response", internallog.HTTPResponse(res, b)) |
| 10538 |
return ret, nil |
| 10539 |
} |
| 10540 |
|
| 10541 |
type CustomersTelemetryNotificationConfigsDeleteCall struct { |
| 10542 |
s *Service |
| 10543 |
name string |
| 10544 |
urlParams_ gensupport.URLParams |
| 10545 |
ctx_ context.Context |
| 10546 |
header_ http.Header |
| 10547 |
} |
| 10548 |
|
| 10549 |
// Delete: Delete a telemetry notification config. |
| 10550 |
// |
| 10551 |
// - name: The name of the notification config to delete. Format: |
| 10552 |
// `customers/{customer}/telemetry/notificationConfigs/{notification_config}`. |
| 10553 |
func (r *CustomersTelemetryNotificationConfigsService) Delete(name string) *CustomersTelemetryNotificationConfigsDeleteCall { |
| 10554 |
c := &CustomersTelemetryNotificationConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 10555 |
c.name = name |
| 10556 |
return c |
| 10557 |
} |
| 10558 |
|
| 10559 |
// Fields allows partial responses to be retrieved. See |
| 10560 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 10561 |
// details. |
| 10562 |
func (c *CustomersTelemetryNotificationConfigsDeleteCall) Fields(s ...googleapi.Field) *CustomersTelemetryNotificationConfigsDeleteCall { |
| 10563 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 10564 |
return c |
| 10565 |
} |
| 10566 |
|
| 10567 |
// Context sets the context to be used in this call's Do method. |
| 10568 |
func (c *CustomersTelemetryNotificationConfigsDeleteCall) Context(ctx context.Context) *CustomersTelemetryNotificationConfigsDeleteCall { |
| 10569 |
c.ctx_ = ctx |
| 10570 |
return c |
| 10571 |
} |
| 10572 |
|
| 10573 |
// Header returns a http.Header that can be modified by the caller to add |
| 10574 |
// headers to the request. |
| 10575 |
func (c *CustomersTelemetryNotificationConfigsDeleteCall) Header() http.Header { |
| 10576 |
if c.header_ == nil { |
| 10577 |
c.header_ = make(http.Header) |
| 10578 |
} |
| 10579 |
return c.header_ |
| 10580 |
} |
| 10581 |
|
| 10582 |
func (c *CustomersTelemetryNotificationConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { |
| 10583 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 10584 |
c.urlParams_.Set("alt", alt) |
| 10585 |
c.urlParams_.Set("prettyPrint", "false") |
| 10586 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 10587 |
urls += "?" + c.urlParams_.Encode() |
| 10588 |
req, err := http.NewRequest("DELETE", urls, nil) |
| 10589 |
if err != nil { |
| 10590 |
return nil, err |
| 10591 |
} |
| 10592 |
req.Header = reqHeaders |
| 10593 |
googleapi.Expand(req.URL, map[string]string{ |
| 10594 |
"name": c.name, |
| 10595 |
}) |
| 10596 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.notificationConfigs.delete", "request", internallog.HTTPRequest(req, nil)) |
| 10597 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 10598 |
} |
| 10599 |
|
| 10600 |
// Do executes the "chromemanagement.customers.telemetry.notificationConfigs.delete" call. |
| 10601 |
// Any non-2xx status code is an error. Response headers are in either |
| 10602 |
// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at |
| 10603 |
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to |
| 10604 |
// check whether the returned error was because http.StatusNotModified was |
| 10605 |
// returned. |
| 10606 |
func (c *CustomersTelemetryNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { |
| 10607 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 10608 |
res, err := c.doRequest("json") |
| 10609 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 10610 |
if res.Body != nil { |
| 10611 |
res.Body.Close() |
| 10612 |
} |
| 10613 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 10614 |
Code: res.StatusCode, |
| 10615 |
Header: res.Header, |
| 10616 |
}) |
| 10617 |
} |
| 10618 |
if err != nil { |
| 10619 |
return nil, err |
| 10620 |
} |
| 10621 |
defer googleapi.CloseBody(res) |
| 10622 |
if err := googleapi.CheckResponse(res); err != nil { |
| 10623 |
return nil, gensupport.WrapError(err) |
| 10624 |
} |
| 10625 |
ret := &GoogleProtobufEmpty{ |
| 10626 |
ServerResponse: googleapi.ServerResponse{ |
| 10627 |
Header: res.Header, |
| 10628 |
HTTPStatusCode: res.StatusCode, |
| 10629 |
}, |
| 10630 |
} |
| 10631 |
target := &ret |
| 10632 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 10633 |
if err != nil { |
| 10634 |
return nil, err |
| 10635 |
} |
| 10636 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.notificationConfigs.delete", "response", internallog.HTTPResponse(res, b)) |
| 10637 |
return ret, nil |
| 10638 |
} |
| 10639 |
|
| 10640 |
type CustomersTelemetryNotificationConfigsListCall struct { |
| 10641 |
s *Service |
| 10642 |
parent string |
| 10643 |
urlParams_ gensupport.URLParams |
| 10644 |
ifNoneMatch_ string |
| 10645 |
ctx_ context.Context |
| 10646 |
header_ http.Header |
| 10647 |
} |
| 10648 |
|
| 10649 |
// List: List all telemetry notification configs. |
| 10650 |
// |
| 10651 |
// - parent: The parent which owns the notification configs. |
| 10652 |
func (r *CustomersTelemetryNotificationConfigsService) List(parent string) *CustomersTelemetryNotificationConfigsListCall { |
| 10653 |
c := &CustomersTelemetryNotificationConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 10654 |
c.parent = parent |
| 10655 |
return c |
| 10656 |
} |
| 10657 |
|
| 10658 |
// PageSize sets the optional parameter "pageSize": The maximum number of |
| 10659 |
// notification configs to return. The service may return fewer than this |
| 10660 |
// value. If unspecified, at most 100 notification configs will be returned. |
| 10661 |
// The maximum value is 100; values above 100 will be coerced to 100. |
| 10662 |
func (c *CustomersTelemetryNotificationConfigsListCall) PageSize(pageSize int64) *CustomersTelemetryNotificationConfigsListCall { |
| 10663 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 10664 |
return c |
| 10665 |
} |
| 10666 |
|
| 10667 |
// PageToken sets the optional parameter "pageToken": A page token, received |
| 10668 |
// from a previous `ListTelemetryNotificationConfigs` call. Provide this to |
| 10669 |
// retrieve the subsequent page. When paginating, all other parameters provided |
| 10670 |
// to `ListTelemetryNotificationConfigs` must match the call that provided the |
| 10671 |
// page token. |
| 10672 |
func (c *CustomersTelemetryNotificationConfigsListCall) PageToken(pageToken string) *CustomersTelemetryNotificationConfigsListCall { |
| 10673 |
c.urlParams_.Set("pageToken", pageToken) |
| 10674 |
return c |
| 10675 |
} |
| 10676 |
|
| 10677 |
// Fields allows partial responses to be retrieved. See |
| 10678 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 10679 |
// details. |
| 10680 |
func (c *CustomersTelemetryNotificationConfigsListCall) Fields(s ...googleapi.Field) *CustomersTelemetryNotificationConfigsListCall { |
| 10681 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 10682 |
return c |
| 10683 |
} |
| 10684 |
|
| 10685 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 10686 |
// object's ETag matches the given value. This is useful for getting updates |
| 10687 |
// only after the object has changed since the last request. |
| 10688 |
func (c *CustomersTelemetryNotificationConfigsListCall) IfNoneMatch(entityTag string) *CustomersTelemetryNotificationConfigsListCall { |
| 10689 |
c.ifNoneMatch_ = entityTag |
| 10690 |
return c |
| 10691 |
} |
| 10692 |
|
| 10693 |
// Context sets the context to be used in this call's Do method. |
| 10694 |
func (c *CustomersTelemetryNotificationConfigsListCall) Context(ctx context.Context) *CustomersTelemetryNotificationConfigsListCall { |
| 10695 |
c.ctx_ = ctx |
| 10696 |
return c |
| 10697 |
} |
| 10698 |
|
| 10699 |
// Header returns a http.Header that can be modified by the caller to add |
| 10700 |
// headers to the request. |
| 10701 |
func (c *CustomersTelemetryNotificationConfigsListCall) Header() http.Header { |
| 10702 |
if c.header_ == nil { |
| 10703 |
c.header_ = make(http.Header) |
| 10704 |
} |
| 10705 |
return c.header_ |
| 10706 |
} |
| 10707 |
|
| 10708 |
func (c *CustomersTelemetryNotificationConfigsListCall) doRequest(alt string) (*http.Response, error) { |
| 10709 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 10710 |
if c.ifNoneMatch_ != "" { |
| 10711 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 10712 |
} |
| 10713 |
c.urlParams_.Set("alt", alt) |
| 10714 |
c.urlParams_.Set("prettyPrint", "false") |
| 10715 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/telemetry/notificationConfigs") |
| 10716 |
urls += "?" + c.urlParams_.Encode() |
| 10717 |
req, err := http.NewRequest("GET", urls, nil) |
| 10718 |
if err != nil { |
| 10719 |
return nil, err |
| 10720 |
} |
| 10721 |
req.Header = reqHeaders |
| 10722 |
googleapi.Expand(req.URL, map[string]string{ |
| 10723 |
"parent": c.parent, |
| 10724 |
}) |
| 10725 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.notificationConfigs.list", "request", internallog.HTTPRequest(req, nil)) |
| 10726 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 10727 |
} |
| 10728 |
|
| 10729 |
// Do executes the "chromemanagement.customers.telemetry.notificationConfigs.list" call. |
| 10730 |
// Any non-2xx status code is an error. Response headers are in either |
| 10731 |
// *GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse.ServerRespo |
| 10732 |
// nse.Header or (if a response was returned at all) in |
| 10733 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 10734 |
// whether the returned error was because http.StatusNotModified was returned. |
| 10735 |
func (c *CustomersTelemetryNotificationConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse, error) { |
| 10736 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 10737 |
res, err := c.doRequest("json") |
| 10738 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 10739 |
if res.Body != nil { |
| 10740 |
res.Body.Close() |
| 10741 |
} |
| 10742 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 10743 |
Code: res.StatusCode, |
| 10744 |
Header: res.Header, |
| 10745 |
}) |
| 10746 |
} |
| 10747 |
if err != nil { |
| 10748 |
return nil, err |
| 10749 |
} |
| 10750 |
defer googleapi.CloseBody(res) |
| 10751 |
if err := googleapi.CheckResponse(res); err != nil { |
| 10752 |
return nil, gensupport.WrapError(err) |
| 10753 |
} |
| 10754 |
ret := &GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse{ |
| 10755 |
ServerResponse: googleapi.ServerResponse{ |
| 10756 |
Header: res.Header, |
| 10757 |
HTTPStatusCode: res.StatusCode, |
| 10758 |
}, |
| 10759 |
} |
| 10760 |
target := &ret |
| 10761 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 10762 |
if err != nil { |
| 10763 |
return nil, err |
| 10764 |
} |
| 10765 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.notificationConfigs.list", "response", internallog.HTTPResponse(res, b)) |
| 10766 |
return ret, nil |
| 10767 |
} |
| 10768 |
|
| 10769 |
// Pages invokes f for each page of results. |
| 10770 |
// A non-nil error returned from f will halt the iteration. |
| 10771 |
// The provided context supersedes any context provided to the Context method. |
| 10772 |
func (c *CustomersTelemetryNotificationConfigsListCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse) error) error { |
| 10773 |
c.ctx_ = ctx |
| 10774 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 10775 |
for { |
| 10776 |
x, err := c.Do() |
| 10777 |
if err != nil { |
| 10778 |
return err |
| 10779 |
} |
| 10780 |
if err := f(x); err != nil { |
| 10781 |
return err |
| 10782 |
} |
| 10783 |
if x.NextPageToken == "" { |
| 10784 |
return nil |
| 10785 |
} |
| 10786 |
c.PageToken(x.NextPageToken) |
| 10787 |
} |
| 10788 |
} |
| 10789 |
|
| 10790 |
type CustomersTelemetryUsersGetCall struct { |
| 10791 |
s *Service |
| 10792 |
name string |
| 10793 |
urlParams_ gensupport.URLParams |
| 10794 |
ifNoneMatch_ string |
| 10795 |
ctx_ context.Context |
| 10796 |
header_ http.Header |
| 10797 |
} |
| 10798 |
|
| 10799 |
// Get: Get telemetry user. |
| 10800 |
// |
| 10801 |
// - name: Name of the `TelemetryUser` to return. |
| 10802 |
func (r *CustomersTelemetryUsersService) Get(name string) *CustomersTelemetryUsersGetCall { |
| 10803 |
c := &CustomersTelemetryUsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 10804 |
c.name = name |
| 10805 |
return c |
| 10806 |
} |
| 10807 |
|
| 10808 |
// ReadMask sets the optional parameter "readMask": Read mask to specify which |
| 10809 |
// fields to return. Supported read_mask paths are: - name - org_unit_id - |
| 10810 |
// user_id - user_email - user_device.device_id - |
| 10811 |
// user_device.audio_status_report - user_device.device_activity_report - |
| 10812 |
// user_device.network_bandwidth_report - user_device.peripherals_report - |
| 10813 |
// user_device.app_report |
| 10814 |
func (c *CustomersTelemetryUsersGetCall) ReadMask(readMask string) *CustomersTelemetryUsersGetCall { |
| 10815 |
c.urlParams_.Set("readMask", readMask) |
| 10816 |
return c |
| 10817 |
} |
| 10818 |
|
| 10819 |
// Fields allows partial responses to be retrieved. See |
| 10820 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 10821 |
// details. |
| 10822 |
func (c *CustomersTelemetryUsersGetCall) Fields(s ...googleapi.Field) *CustomersTelemetryUsersGetCall { |
| 10823 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 10824 |
return c |
| 10825 |
} |
| 10826 |
|
| 10827 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 10828 |
// object's ETag matches the given value. This is useful for getting updates |
| 10829 |
// only after the object has changed since the last request. |
| 10830 |
func (c *CustomersTelemetryUsersGetCall) IfNoneMatch(entityTag string) *CustomersTelemetryUsersGetCall { |
| 10831 |
c.ifNoneMatch_ = entityTag |
| 10832 |
return c |
| 10833 |
} |
| 10834 |
|
| 10835 |
// Context sets the context to be used in this call's Do method. |
| 10836 |
func (c *CustomersTelemetryUsersGetCall) Context(ctx context.Context) *CustomersTelemetryUsersGetCall { |
| 10837 |
c.ctx_ = ctx |
| 10838 |
return c |
| 10839 |
} |
| 10840 |
|
| 10841 |
// Header returns a http.Header that can be modified by the caller to add |
| 10842 |
// headers to the request. |
| 10843 |
func (c *CustomersTelemetryUsersGetCall) Header() http.Header { |
| 10844 |
if c.header_ == nil { |
| 10845 |
c.header_ = make(http.Header) |
| 10846 |
} |
| 10847 |
return c.header_ |
| 10848 |
} |
| 10849 |
|
| 10850 |
func (c *CustomersTelemetryUsersGetCall) doRequest(alt string) (*http.Response, error) { |
| 10851 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 10852 |
if c.ifNoneMatch_ != "" { |
| 10853 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 10854 |
} |
| 10855 |
c.urlParams_.Set("alt", alt) |
| 10856 |
c.urlParams_.Set("prettyPrint", "false") |
| 10857 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 10858 |
urls += "?" + c.urlParams_.Encode() |
| 10859 |
req, err := http.NewRequest("GET", urls, nil) |
| 10860 |
if err != nil { |
| 10861 |
return nil, err |
| 10862 |
} |
| 10863 |
req.Header = reqHeaders |
| 10864 |
googleapi.Expand(req.URL, map[string]string{ |
| 10865 |
"name": c.name, |
| 10866 |
}) |
| 10867 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.users.get", "request", internallog.HTTPRequest(req, nil)) |
| 10868 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 10869 |
} |
| 10870 |
|
| 10871 |
// Do executes the "chromemanagement.customers.telemetry.users.get" call. |
| 10872 |
// Any non-2xx status code is an error. Response headers are in either |
| 10873 |
// *GoogleChromeManagementV1TelemetryUser.ServerResponse.Header or (if a |
| 10874 |
// response was returned at all) in error.(*googleapi.Error).Header. Use |
| 10875 |
// googleapi.IsNotModified to check whether the returned error was because |
| 10876 |
// http.StatusNotModified was returned. |
| 10877 |
func (c *CustomersTelemetryUsersGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1TelemetryUser, error) { |
| 10878 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 10879 |
res, err := c.doRequest("json") |
| 10880 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 10881 |
if res.Body != nil { |
| 10882 |
res.Body.Close() |
| 10883 |
} |
| 10884 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 10885 |
Code: res.StatusCode, |
| 10886 |
Header: res.Header, |
| 10887 |
}) |
| 10888 |
} |
| 10889 |
if err != nil { |
| 10890 |
return nil, err |
| 10891 |
} |
| 10892 |
defer googleapi.CloseBody(res) |
| 10893 |
if err := googleapi.CheckResponse(res); err != nil { |
| 10894 |
return nil, gensupport.WrapError(err) |
| 10895 |
} |
| 10896 |
ret := &GoogleChromeManagementV1TelemetryUser{ |
| 10897 |
ServerResponse: googleapi.ServerResponse{ |
| 10898 |
Header: res.Header, |
| 10899 |
HTTPStatusCode: res.StatusCode, |
| 10900 |
}, |
| 10901 |
} |
| 10902 |
target := &ret |
| 10903 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 10904 |
if err != nil { |
| 10905 |
return nil, err |
| 10906 |
} |
| 10907 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.users.get", "response", internallog.HTTPResponse(res, b)) |
| 10908 |
return ret, nil |
| 10909 |
} |
| 10910 |
|
| 10911 |
type CustomersTelemetryUsersListCall struct { |
| 10912 |
s *Service |
| 10913 |
parent string |
| 10914 |
urlParams_ gensupport.URLParams |
| 10915 |
ifNoneMatch_ string |
| 10916 |
ctx_ context.Context |
| 10917 |
header_ http.Header |
| 10918 |
} |
| 10919 |
|
| 10920 |
// List: List all telemetry users. |
| 10921 |
// |
| 10922 |
// - parent: Customer id or "my_customer" to use the customer associated to the |
| 10923 |
// account making the request. |
| 10924 |
func (r *CustomersTelemetryUsersService) List(parent string) *CustomersTelemetryUsersListCall { |
| 10925 |
c := &CustomersTelemetryUsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 10926 |
c.parent = parent |
| 10927 |
return c |
| 10928 |
} |
| 10929 |
|
| 10930 |
// Filter sets the optional parameter "filter": Only include resources that |
| 10931 |
// match the filter. Supported filter fields: - user_id - user_org_unit_id |
| 10932 |
func (c *CustomersTelemetryUsersListCall) Filter(filter string) *CustomersTelemetryUsersListCall { |
| 10933 |
c.urlParams_.Set("filter", filter) |
| 10934 |
return c |
| 10935 |
} |
| 10936 |
|
| 10937 |
// PageSize sets the optional parameter "pageSize": Maximum number of results |
| 10938 |
// to return. Default value is 100. Maximum value is 1000. |
| 10939 |
func (c *CustomersTelemetryUsersListCall) PageSize(pageSize int64) *CustomersTelemetryUsersListCall { |
| 10940 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 10941 |
return c |
| 10942 |
} |
| 10943 |
|
| 10944 |
// PageToken sets the optional parameter "pageToken": Token to specify next |
| 10945 |
// page in the list. |
| 10946 |
func (c *CustomersTelemetryUsersListCall) PageToken(pageToken string) *CustomersTelemetryUsersListCall { |
| 10947 |
c.urlParams_.Set("pageToken", pageToken) |
| 10948 |
return c |
| 10949 |
} |
| 10950 |
|
| 10951 |
// ReadMask sets the optional parameter "readMask": Read mask to specify which |
| 10952 |
// fields to return. Supported read_mask paths are: - name - org_unit_id - |
| 10953 |
// user_id - user_email - user_device.device_id - |
| 10954 |
// user_device.audio_status_report - user_device.device_activity_report - |
| 10955 |
// user_device.network_bandwidth_report - user_device.peripherals_report - |
| 10956 |
// user_device.app_report |
| 10957 |
func (c *CustomersTelemetryUsersListCall) ReadMask(readMask string) *CustomersTelemetryUsersListCall { |
| 10958 |
c.urlParams_.Set("readMask", readMask) |
| 10959 |
return c |
| 10960 |
} |
| 10961 |
|
| 10962 |
// Fields allows partial responses to be retrieved. See |
| 10963 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 10964 |
// details. |
| 10965 |
func (c *CustomersTelemetryUsersListCall) Fields(s ...googleapi.Field) *CustomersTelemetryUsersListCall { |
| 10966 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 10967 |
return c |
| 10968 |
} |
| 10969 |
|
| 10970 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 10971 |
// object's ETag matches the given value. This is useful for getting updates |
| 10972 |
// only after the object has changed since the last request. |
| 10973 |
func (c *CustomersTelemetryUsersListCall) IfNoneMatch(entityTag string) *CustomersTelemetryUsersListCall { |
| 10974 |
c.ifNoneMatch_ = entityTag |
| 10975 |
return c |
| 10976 |
} |
| 10977 |
|
| 10978 |
// Context sets the context to be used in this call's Do method. |
| 10979 |
func (c *CustomersTelemetryUsersListCall) Context(ctx context.Context) *CustomersTelemetryUsersListCall { |
| 10980 |
c.ctx_ = ctx |
| 10981 |
return c |
| 10982 |
} |
| 10983 |
|
| 10984 |
// Header returns a http.Header that can be modified by the caller to add |
| 10985 |
// headers to the request. |
| 10986 |
func (c *CustomersTelemetryUsersListCall) Header() http.Header { |
| 10987 |
if c.header_ == nil { |
| 10988 |
c.header_ = make(http.Header) |
| 10989 |
} |
| 10990 |
return c.header_ |
| 10991 |
} |
| 10992 |
|
| 10993 |
func (c *CustomersTelemetryUsersListCall) doRequest(alt string) (*http.Response, error) { |
| 10994 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 10995 |
if c.ifNoneMatch_ != "" { |
| 10996 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 10997 |
} |
| 10998 |
c.urlParams_.Set("alt", alt) |
| 10999 |
c.urlParams_.Set("prettyPrint", "false") |
| 11000 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/telemetry/users") |
| 11001 |
urls += "?" + c.urlParams_.Encode() |
| 11002 |
req, err := http.NewRequest("GET", urls, nil) |
| 11003 |
if err != nil { |
| 11004 |
return nil, err |
| 11005 |
} |
| 11006 |
req.Header = reqHeaders |
| 11007 |
googleapi.Expand(req.URL, map[string]string{ |
| 11008 |
"parent": c.parent, |
| 11009 |
}) |
| 11010 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.users.list", "request", internallog.HTTPRequest(req, nil)) |
| 11011 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 11012 |
} |
| 11013 |
|
| 11014 |
// Do executes the "chromemanagement.customers.telemetry.users.list" call. |
| 11015 |
// Any non-2xx status code is an error. Response headers are in either |
| 11016 |
// *GoogleChromeManagementV1ListTelemetryUsersResponse.ServerResponse.Header or |
| 11017 |
// (if a response was returned at all) in error.(*googleapi.Error).Header. Use |
| 11018 |
// googleapi.IsNotModified to check whether the returned error was because |
| 11019 |
// http.StatusNotModified was returned. |
| 11020 |
func (c *CustomersTelemetryUsersListCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1ListTelemetryUsersResponse, error) { |
| 11021 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 11022 |
res, err := c.doRequest("json") |
| 11023 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 11024 |
if res.Body != nil { |
| 11025 |
res.Body.Close() |
| 11026 |
} |
| 11027 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 11028 |
Code: res.StatusCode, |
| 11029 |
Header: res.Header, |
| 11030 |
}) |
| 11031 |
} |
| 11032 |
if err != nil { |
| 11033 |
return nil, err |
| 11034 |
} |
| 11035 |
defer googleapi.CloseBody(res) |
| 11036 |
if err := googleapi.CheckResponse(res); err != nil { |
| 11037 |
return nil, gensupport.WrapError(err) |
| 11038 |
} |
| 11039 |
ret := &GoogleChromeManagementV1ListTelemetryUsersResponse{ |
| 11040 |
ServerResponse: googleapi.ServerResponse{ |
| 11041 |
Header: res.Header, |
| 11042 |
HTTPStatusCode: res.StatusCode, |
| 11043 |
}, |
| 11044 |
} |
| 11045 |
target := &ret |
| 11046 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 11047 |
if err != nil { |
| 11048 |
return nil, err |
| 11049 |
} |
| 11050 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.telemetry.users.list", "response", internallog.HTTPResponse(res, b)) |
| 11051 |
return ret, nil |
| 11052 |
} |
| 11053 |
|
| 11054 |
// Pages invokes f for each page of results. |
| 11055 |
// A non-nil error returned from f will halt the iteration. |
| 11056 |
// The provided context supersedes any context provided to the Context method. |
| 11057 |
func (c *CustomersTelemetryUsersListCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1ListTelemetryUsersResponse) error) error { |
| 11058 |
c.ctx_ = ctx |
| 11059 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 11060 |
for { |
| 11061 |
x, err := c.Do() |
| 11062 |
if err != nil { |
| 11063 |
return err |
| 11064 |
} |
| 11065 |
if err := f(x); err != nil { |
| 11066 |
return err |
| 11067 |
} |
| 11068 |
if x.NextPageToken == "" { |
| 11069 |
return nil |
| 11070 |
} |
| 11071 |
c.PageToken(x.NextPageToken) |
| 11072 |
} |
| 11073 |
} |
| 11074 |
|
| 11075 |
type CustomersThirdPartyProfileUsersMoveCall struct { |
| 11076 |
s *Service |
| 11077 |
name string |
| 11078 |
googlechromemanagementversionsv1movethirdpartyprofileuserrequest *GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest |
| 11079 |
urlParams_ gensupport.URLParams |
| 11080 |
ctx_ context.Context |
| 11081 |
header_ http.Header |
| 11082 |
} |
| 11083 |
|
| 11084 |
// Move: Moves a third party chrome profile user to a destination OU. All |
| 11085 |
// profiles associated to that user will be moved to the destination OU. |
| 11086 |
// |
| 11087 |
// - name: Format: |
| 11088 |
// customers/{customer_id}/thirdPartyProfileUsers/{third_party_profile_user_id |
| 11089 |
// }. |
| 11090 |
func (r *CustomersThirdPartyProfileUsersService) Move(name string, googlechromemanagementversionsv1movethirdpartyprofileuserrequest *GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest) *CustomersThirdPartyProfileUsersMoveCall { |
| 11091 |
c := &CustomersThirdPartyProfileUsersMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 11092 |
c.name = name |
| 11093 |
c.googlechromemanagementversionsv1movethirdpartyprofileuserrequest = googlechromemanagementversionsv1movethirdpartyprofileuserrequest |
| 11094 |
return c |
| 11095 |
} |
| 11096 |
|
| 11097 |
// Fields allows partial responses to be retrieved. See |
| 11098 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 11099 |
// details. |
| 11100 |
func (c *CustomersThirdPartyProfileUsersMoveCall) Fields(s ...googleapi.Field) *CustomersThirdPartyProfileUsersMoveCall { |
| 11101 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 11102 |
return c |
| 11103 |
} |
| 11104 |
|
| 11105 |
// Context sets the context to be used in this call's Do method. |
| 11106 |
func (c *CustomersThirdPartyProfileUsersMoveCall) Context(ctx context.Context) *CustomersThirdPartyProfileUsersMoveCall { |
| 11107 |
c.ctx_ = ctx |
| 11108 |
return c |
| 11109 |
} |
| 11110 |
|
| 11111 |
// Header returns a http.Header that can be modified by the caller to add |
| 11112 |
// headers to the request. |
| 11113 |
func (c *CustomersThirdPartyProfileUsersMoveCall) Header() http.Header { |
| 11114 |
if c.header_ == nil { |
| 11115 |
c.header_ = make(http.Header) |
| 11116 |
} |
| 11117 |
return c.header_ |
| 11118 |
} |
| 11119 |
|
| 11120 |
func (c *CustomersThirdPartyProfileUsersMoveCall) doRequest(alt string) (*http.Response, error) { |
| 11121 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) |
| 11122 |
body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlechromemanagementversionsv1movethirdpartyprofileuserrequest) |
| 11123 |
if err != nil { |
| 11124 |
return nil, err |
| 11125 |
} |
| 11126 |
c.urlParams_.Set("alt", alt) |
| 11127 |
c.urlParams_.Set("prettyPrint", "false") |
| 11128 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:move") |
| 11129 |
urls += "?" + c.urlParams_.Encode() |
| 11130 |
req, err := http.NewRequest("POST", urls, body) |
| 11131 |
if err != nil { |
| 11132 |
return nil, err |
| 11133 |
} |
| 11134 |
req.Header = reqHeaders |
| 11135 |
googleapi.Expand(req.URL, map[string]string{ |
| 11136 |
"name": c.name, |
| 11137 |
}) |
| 11138 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.customers.thirdPartyProfileUsers.move", "request", internallog.HTTPRequest(req, body.Bytes())) |
| 11139 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 11140 |
} |
| 11141 |
|
| 11142 |
// Do executes the "chromemanagement.customers.thirdPartyProfileUsers.move" call. |
| 11143 |
// Any non-2xx status code is an error. Response headers are in either |
| 11144 |
// *GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse.ServerResp |
| 11145 |
// onse.Header or (if a response was returned at all) in |
| 11146 |
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check |
| 11147 |
// whether the returned error was because http.StatusNotModified was returned. |
| 11148 |
func (c *CustomersThirdPartyProfileUsersMoveCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse, error) { |
| 11149 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 11150 |
res, err := c.doRequest("json") |
| 11151 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 11152 |
if res.Body != nil { |
| 11153 |
res.Body.Close() |
| 11154 |
} |
| 11155 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 11156 |
Code: res.StatusCode, |
| 11157 |
Header: res.Header, |
| 11158 |
}) |
| 11159 |
} |
| 11160 |
if err != nil { |
| 11161 |
return nil, err |
| 11162 |
} |
| 11163 |
defer googleapi.CloseBody(res) |
| 11164 |
if err := googleapi.CheckResponse(res); err != nil { |
| 11165 |
return nil, gensupport.WrapError(err) |
| 11166 |
} |
| 11167 |
ret := &GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse{ |
| 11168 |
ServerResponse: googleapi.ServerResponse{ |
| 11169 |
Header: res.Header, |
| 11170 |
HTTPStatusCode: res.StatusCode, |
| 11171 |
}, |
| 11172 |
} |
| 11173 |
target := &ret |
| 11174 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 11175 |
if err != nil { |
| 11176 |
return nil, err |
| 11177 |
} |
| 11178 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.customers.thirdPartyProfileUsers.move", "response", internallog.HTTPResponse(res, b)) |
| 11179 |
return ret, nil |
| 11180 |
} |
| 11181 |
|
| 11182 |
type OperationsCancelCall struct { |
| 11183 |
s *Service |
| 11184 |
name string |
| 11185 |
googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest |
| 11186 |
urlParams_ gensupport.URLParams |
| 11187 |
ctx_ context.Context |
| 11188 |
header_ http.Header |
| 11189 |
} |
| 11190 |
|
| 11191 |
// Cancel: Starts asynchronous cancellation on a long-running operation. The |
| 11192 |
// server makes a best effort to cancel the operation, but success is not |
| 11193 |
// guaranteed. If the server doesn't support this method, it returns |
| 11194 |
// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or |
| 11195 |
// other methods to check whether the cancellation succeeded or whether the |
| 11196 |
// operation completed despite cancellation. On successful cancellation, the |
| 11197 |
// operation is not deleted; instead, it becomes an operation with an |
| 11198 |
// Operation.error value with a google.rpc.Status.code of `1`, corresponding to |
| 11199 |
// `Code.CANCELLED`. |
| 11200 |
// |
| 11201 |
// - name: The name of the operation resource to be cancelled. |
| 11202 |
func (r *OperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OperationsCancelCall { |
| 11203 |
c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 11204 |
c.name = name |
| 11205 |
c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest |
| 11206 |
return c |
| 11207 |
} |
| 11208 |
|
| 11209 |
// Fields allows partial responses to be retrieved. See |
| 11210 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 11211 |
// details. |
| 11212 |
func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { |
| 11213 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 11214 |
return c |
| 11215 |
} |
| 11216 |
|
| 11217 |
// Context sets the context to be used in this call's Do method. |
| 11218 |
func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { |
| 11219 |
c.ctx_ = ctx |
| 11220 |
return c |
| 11221 |
} |
| 11222 |
|
| 11223 |
// Header returns a http.Header that can be modified by the caller to add |
| 11224 |
// headers to the request. |
| 11225 |
func (c *OperationsCancelCall) Header() http.Header { |
| 11226 |
if c.header_ == nil { |
| 11227 |
c.header_ = make(http.Header) |
| 11228 |
} |
| 11229 |
return c.header_ |
| 11230 |
} |
| 11231 |
|
| 11232 |
func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { |
| 11233 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) |
| 11234 |
body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlelongrunningcanceloperationrequest) |
| 11235 |
if err != nil { |
| 11236 |
return nil, err |
| 11237 |
} |
| 11238 |
c.urlParams_.Set("alt", alt) |
| 11239 |
c.urlParams_.Set("prettyPrint", "false") |
| 11240 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") |
| 11241 |
urls += "?" + c.urlParams_.Encode() |
| 11242 |
req, err := http.NewRequest("POST", urls, body) |
| 11243 |
if err != nil { |
| 11244 |
return nil, err |
| 11245 |
} |
| 11246 |
req.Header = reqHeaders |
| 11247 |
googleapi.Expand(req.URL, map[string]string{ |
| 11248 |
"name": c.name, |
| 11249 |
}) |
| 11250 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.operations.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) |
| 11251 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 11252 |
} |
| 11253 |
|
| 11254 |
// Do executes the "chromemanagement.operations.cancel" call. |
| 11255 |
// Any non-2xx status code is an error. Response headers are in either |
| 11256 |
// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at |
| 11257 |
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to |
| 11258 |
// check whether the returned error was because http.StatusNotModified was |
| 11259 |
// returned. |
| 11260 |
func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { |
| 11261 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 11262 |
res, err := c.doRequest("json") |
| 11263 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 11264 |
if res.Body != nil { |
| 11265 |
res.Body.Close() |
| 11266 |
} |
| 11267 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 11268 |
Code: res.StatusCode, |
| 11269 |
Header: res.Header, |
| 11270 |
}) |
| 11271 |
} |
| 11272 |
if err != nil { |
| 11273 |
return nil, err |
| 11274 |
} |
| 11275 |
defer googleapi.CloseBody(res) |
| 11276 |
if err := googleapi.CheckResponse(res); err != nil { |
| 11277 |
return nil, gensupport.WrapError(err) |
| 11278 |
} |
| 11279 |
ret := &GoogleProtobufEmpty{ |
| 11280 |
ServerResponse: googleapi.ServerResponse{ |
| 11281 |
Header: res.Header, |
| 11282 |
HTTPStatusCode: res.StatusCode, |
| 11283 |
}, |
| 11284 |
} |
| 11285 |
target := &ret |
| 11286 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 11287 |
if err != nil { |
| 11288 |
return nil, err |
| 11289 |
} |
| 11290 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.operations.cancel", "response", internallog.HTTPResponse(res, b)) |
| 11291 |
return ret, nil |
| 11292 |
} |
| 11293 |
|
| 11294 |
type OperationsDeleteCall struct { |
| 11295 |
s *Service |
| 11296 |
name string |
| 11297 |
urlParams_ gensupport.URLParams |
| 11298 |
ctx_ context.Context |
| 11299 |
header_ http.Header |
| 11300 |
} |
| 11301 |
|
| 11302 |
// Delete: Deletes a long-running operation. This method indicates that the |
| 11303 |
// client is no longer interested in the operation result. It does not cancel |
| 11304 |
// the operation. If the server doesn't support this method, it returns |
| 11305 |
// `google.rpc.Code.UNIMPLEMENTED`. |
| 11306 |
// |
| 11307 |
// - name: The name of the operation resource to be deleted. |
| 11308 |
func (r *OperationsService) Delete(name string) *OperationsDeleteCall { |
| 11309 |
c := &OperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 11310 |
c.name = name |
| 11311 |
return c |
| 11312 |
} |
| 11313 |
|
| 11314 |
// Fields allows partial responses to be retrieved. See |
| 11315 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 11316 |
// details. |
| 11317 |
func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall { |
| 11318 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 11319 |
return c |
| 11320 |
} |
| 11321 |
|
| 11322 |
// Context sets the context to be used in this call's Do method. |
| 11323 |
func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall { |
| 11324 |
c.ctx_ = ctx |
| 11325 |
return c |
| 11326 |
} |
| 11327 |
|
| 11328 |
// Header returns a http.Header that can be modified by the caller to add |
| 11329 |
// headers to the request. |
| 11330 |
func (c *OperationsDeleteCall) Header() http.Header { |
| 11331 |
if c.header_ == nil { |
| 11332 |
c.header_ = make(http.Header) |
| 11333 |
} |
| 11334 |
return c.header_ |
| 11335 |
} |
| 11336 |
|
| 11337 |
func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { |
| 11338 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 11339 |
c.urlParams_.Set("alt", alt) |
| 11340 |
c.urlParams_.Set("prettyPrint", "false") |
| 11341 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 11342 |
urls += "?" + c.urlParams_.Encode() |
| 11343 |
req, err := http.NewRequest("DELETE", urls, nil) |
| 11344 |
if err != nil { |
| 11345 |
return nil, err |
| 11346 |
} |
| 11347 |
req.Header = reqHeaders |
| 11348 |
googleapi.Expand(req.URL, map[string]string{ |
| 11349 |
"name": c.name, |
| 11350 |
}) |
| 11351 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.operations.delete", "request", internallog.HTTPRequest(req, nil)) |
| 11352 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 11353 |
} |
| 11354 |
|
| 11355 |
// Do executes the "chromemanagement.operations.delete" call. |
| 11356 |
// Any non-2xx status code is an error. Response headers are in either |
| 11357 |
// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at |
| 11358 |
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to |
| 11359 |
// check whether the returned error was because http.StatusNotModified was |
| 11360 |
// returned. |
| 11361 |
func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { |
| 11362 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 11363 |
res, err := c.doRequest("json") |
| 11364 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 11365 |
if res.Body != nil { |
| 11366 |
res.Body.Close() |
| 11367 |
} |
| 11368 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 11369 |
Code: res.StatusCode, |
| 11370 |
Header: res.Header, |
| 11371 |
}) |
| 11372 |
} |
| 11373 |
if err != nil { |
| 11374 |
return nil, err |
| 11375 |
} |
| 11376 |
defer googleapi.CloseBody(res) |
| 11377 |
if err := googleapi.CheckResponse(res); err != nil { |
| 11378 |
return nil, gensupport.WrapError(err) |
| 11379 |
} |
| 11380 |
ret := &GoogleProtobufEmpty{ |
| 11381 |
ServerResponse: googleapi.ServerResponse{ |
| 11382 |
Header: res.Header, |
| 11383 |
HTTPStatusCode: res.StatusCode, |
| 11384 |
}, |
| 11385 |
} |
| 11386 |
target := &ret |
| 11387 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 11388 |
if err != nil { |
| 11389 |
return nil, err |
| 11390 |
} |
| 11391 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.operations.delete", "response", internallog.HTTPResponse(res, b)) |
| 11392 |
return ret, nil |
| 11393 |
} |
| 11394 |
|
| 11395 |
type OperationsListCall struct { |
| 11396 |
s *Service |
| 11397 |
name string |
| 11398 |
urlParams_ gensupport.URLParams |
| 11399 |
ifNoneMatch_ string |
| 11400 |
ctx_ context.Context |
| 11401 |
header_ http.Header |
| 11402 |
} |
| 11403 |
|
| 11404 |
// List: Lists operations that match the specified filter in the request. If |
| 11405 |
// the server doesn't support this method, it returns `UNIMPLEMENTED`. |
| 11406 |
// |
| 11407 |
// - name: The name of the operation's parent resource. |
| 11408 |
func (r *OperationsService) List(name string) *OperationsListCall { |
| 11409 |
c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} |
| 11410 |
c.name = name |
| 11411 |
return c |
| 11412 |
} |
| 11413 |
|
| 11414 |
// Filter sets the optional parameter "filter": The standard list filter. |
| 11415 |
func (c *OperationsListCall) Filter(filter string) *OperationsListCall { |
| 11416 |
c.urlParams_.Set("filter", filter) |
| 11417 |
return c |
| 11418 |
} |
| 11419 |
|
| 11420 |
// PageSize sets the optional parameter "pageSize": The standard list page |
| 11421 |
// size. |
| 11422 |
func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { |
| 11423 |
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) |
| 11424 |
return c |
| 11425 |
} |
| 11426 |
|
| 11427 |
// PageToken sets the optional parameter "pageToken": The standard list page |
| 11428 |
// token. |
| 11429 |
func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { |
| 11430 |
c.urlParams_.Set("pageToken", pageToken) |
| 11431 |
return c |
| 11432 |
} |
| 11433 |
|
| 11434 |
// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": |
| 11435 |
// When set to `true`, operations that are reachable are returned as normal, |
| 11436 |
// and those that are unreachable are returned in the |
| 11437 |
// ListOperationsResponse.unreachable field. This can only be `true` when |
| 11438 |
// reading across collections. For example, when `parent` is set to |
| 11439 |
// "projects/example/locations/-". This field is not supported by default and |
| 11440 |
// will result in an `UNIMPLEMENTED` error if set unless explicitly documented |
| 11441 |
// otherwise in service or product specific documentation. |
| 11442 |
func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { |
| 11443 |
c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) |
| 11444 |
return c |
| 11445 |
} |
| 11446 |
|
| 11447 |
// Fields allows partial responses to be retrieved. See |
| 11448 |
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more |
| 11449 |
// details. |
| 11450 |
func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { |
| 11451 |
c.urlParams_.Set("fields", googleapi.CombineFields(s)) |
| 11452 |
return c |
| 11453 |
} |
| 11454 |
|
| 11455 |
// IfNoneMatch sets an optional parameter which makes the operation fail if the |
| 11456 |
// object's ETag matches the given value. This is useful for getting updates |
| 11457 |
// only after the object has changed since the last request. |
| 11458 |
func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { |
| 11459 |
c.ifNoneMatch_ = entityTag |
| 11460 |
return c |
| 11461 |
} |
| 11462 |
|
| 11463 |
// Context sets the context to be used in this call's Do method. |
| 11464 |
func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { |
| 11465 |
c.ctx_ = ctx |
| 11466 |
return c |
| 11467 |
} |
| 11468 |
|
| 11469 |
// Header returns a http.Header that can be modified by the caller to add |
| 11470 |
// headers to the request. |
| 11471 |
func (c *OperationsListCall) Header() http.Header { |
| 11472 |
if c.header_ == nil { |
| 11473 |
c.header_ = make(http.Header) |
| 11474 |
} |
| 11475 |
return c.header_ |
| 11476 |
} |
| 11477 |
|
| 11478 |
func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { |
| 11479 |
reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) |
| 11480 |
if c.ifNoneMatch_ != "" { |
| 11481 |
reqHeaders.Set("If-None-Match", c.ifNoneMatch_) |
| 11482 |
} |
| 11483 |
c.urlParams_.Set("alt", alt) |
| 11484 |
c.urlParams_.Set("prettyPrint", "false") |
| 11485 |
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") |
| 11486 |
urls += "?" + c.urlParams_.Encode() |
| 11487 |
req, err := http.NewRequest("GET", urls, nil) |
| 11488 |
if err != nil { |
| 11489 |
return nil, err |
| 11490 |
} |
| 11491 |
req.Header = reqHeaders |
| 11492 |
googleapi.Expand(req.URL, map[string]string{ |
| 11493 |
"name": c.name, |
| 11494 |
}) |
| 11495 |
c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chromemanagement.operations.list", "request", internallog.HTTPRequest(req, nil)) |
| 11496 |
return gensupport.SendRequest(c.ctx_, c.s.client, req) |
| 11497 |
} |
| 11498 |
|
| 11499 |
// Do executes the "chromemanagement.operations.list" call. |
| 11500 |
// Any non-2xx status code is an error. Response headers are in either |
| 11501 |
// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a |
| 11502 |
// response was returned at all) in error.(*googleapi.Error).Header. Use |
| 11503 |
// googleapi.IsNotModified to check whether the returned error was because |
| 11504 |
// http.StatusNotModified was returned. |
| 11505 |
func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { |
| 11506 |
gensupport.SetOptions(c.urlParams_, opts...) |
| 11507 |
res, err := c.doRequest("json") |
| 11508 |
if res != nil && res.StatusCode == http.StatusNotModified { |
| 11509 |
if res.Body != nil { |
| 11510 |
res.Body.Close() |
| 11511 |
} |
| 11512 |
return nil, gensupport.WrapError(&googleapi.Error{ |
| 11513 |
Code: res.StatusCode, |
| 11514 |
Header: res.Header, |
| 11515 |
}) |
| 11516 |
} |
| 11517 |
if err != nil { |
| 11518 |
return nil, err |
| 11519 |
} |
| 11520 |
defer googleapi.CloseBody(res) |
| 11521 |
if err := googleapi.CheckResponse(res); err != nil { |
| 11522 |
return nil, gensupport.WrapError(err) |
| 11523 |
} |
| 11524 |
ret := &GoogleLongrunningListOperationsResponse{ |
| 11525 |
ServerResponse: googleapi.ServerResponse{ |
| 11526 |
Header: res.Header, |
| 11527 |
HTTPStatusCode: res.StatusCode, |
| 11528 |
}, |
| 11529 |
} |
| 11530 |
target := &ret |
| 11531 |
b, err := gensupport.DecodeResponseBytes(target, res) |
| 11532 |
if err != nil { |
| 11533 |
return nil, err |
| 11534 |
} |
| 11535 |
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chromemanagement.operations.list", "response", internallog.HTTPResponse(res, b)) |
| 11536 |
return ret, nil |
| 11537 |
} |
| 11538 |
|
| 11539 |
// Pages invokes f for each page of results. |
| 11540 |
// A non-nil error returned from f will halt the iteration. |
| 11541 |
// The provided context supersedes any context provided to the Context method. |
| 11542 |
func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { |
| 11543 |
c.ctx_ = ctx |
| 11544 |
defer c.PageToken(c.urlParams_.Get("pageToken")) |
| 11545 |
for { |
| 11546 |
x, err := c.Do() |
| 11547 |
if err != nil { |
| 11548 |
return err |
| 11549 |
} |
| 11550 |
if err := f(x); err != nil { |
| 11551 |
return err |
| 11552 |
} |
| 11553 |
if x.NextPageToken == "" { |
| 11554 |
return nil |
| 11555 |
} |
| 11556 |
c.PageToken(x.NextPageToken) |
| 11557 |
} |
| 11558 |
} |