Documentation ¶
Overview ¶
Package chromemanagement provides access to the Chrome Management API.
For product documentation, see: http://developers.google.com/chrome/management/
Creating a client ¶
Usage example:
import "google.golang.org/api/chromemanagement/v1" ... ctx := context.Background() chromemanagementService, err := chromemanagement.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
chromemanagementService, err := chromemanagement.NewService(ctx, option.WithScopes(chromemanagement.ChromeManagementReportsReadonlyScope))
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
chromemanagementService, err := chromemanagement.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) chromemanagementService, err := chromemanagement.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type CustomersAppsAndroidGetCall
- func (c *CustomersAppsAndroidGetCall) Context(ctx context.Context) *CustomersAppsAndroidGetCall
- func (c *CustomersAppsAndroidGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error)
- func (c *CustomersAppsAndroidGetCall) Fields(s ...googleapi.Field) *CustomersAppsAndroidGetCall
- func (c *CustomersAppsAndroidGetCall) Header() http.Header
- func (c *CustomersAppsAndroidGetCall) IfNoneMatch(entityTag string) *CustomersAppsAndroidGetCall
- type CustomersAppsAndroidService
- type CustomersAppsChromeGetCall
- func (c *CustomersAppsChromeGetCall) Context(ctx context.Context) *CustomersAppsChromeGetCall
- func (c *CustomersAppsChromeGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error)
- func (c *CustomersAppsChromeGetCall) Fields(s ...googleapi.Field) *CustomersAppsChromeGetCall
- func (c *CustomersAppsChromeGetCall) Header() http.Header
- func (c *CustomersAppsChromeGetCall) IfNoneMatch(entityTag string) *CustomersAppsChromeGetCall
- type CustomersAppsChromeService
- type CustomersAppsService
- type CustomersAppsWebGetCall
- func (c *CustomersAppsWebGetCall) Context(ctx context.Context) *CustomersAppsWebGetCall
- func (c *CustomersAppsWebGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error)
- func (c *CustomersAppsWebGetCall) Fields(s ...googleapi.Field) *CustomersAppsWebGetCall
- func (c *CustomersAppsWebGetCall) Header() http.Header
- func (c *CustomersAppsWebGetCall) IfNoneMatch(entityTag string) *CustomersAppsWebGetCall
- type CustomersAppsWebService
- type CustomersReportsCountChromeVersionsCall
- func (c *CustomersReportsCountChromeVersionsCall) Context(ctx context.Context) *CustomersReportsCountChromeVersionsCall
- func (c *CustomersReportsCountChromeVersionsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeVersionsResponse, error)
- func (c *CustomersReportsCountChromeVersionsCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeVersionsCall
- func (c *CustomersReportsCountChromeVersionsCall) Filter(filter string) *CustomersReportsCountChromeVersionsCall
- func (c *CustomersReportsCountChromeVersionsCall) Header() http.Header
- func (c *CustomersReportsCountChromeVersionsCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeVersionsCall
- func (c *CustomersReportsCountChromeVersionsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeVersionsCall
- func (c *CustomersReportsCountChromeVersionsCall) PageSize(pageSize int64) *CustomersReportsCountChromeVersionsCall
- func (c *CustomersReportsCountChromeVersionsCall) PageToken(pageToken string) *CustomersReportsCountChromeVersionsCall
- func (c *CustomersReportsCountChromeVersionsCall) Pages(ctx context.Context, ...) error
- type CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) Context(ctx context.Context) *CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountInstalledAppsResponse, error)
- func (c *CustomersReportsCountInstalledAppsCall) Fields(s ...googleapi.Field) *CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) Filter(filter string) *CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) Header() http.Header
- func (c *CustomersReportsCountInstalledAppsCall) IfNoneMatch(entityTag string) *CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) OrderBy(orderBy string) *CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) PageSize(pageSize int64) *CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) PageToken(pageToken string) *CustomersReportsCountInstalledAppsCall
- func (c *CustomersReportsCountInstalledAppsCall) Pages(ctx context.Context, ...) error
- type CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) AppId(appId string) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) AppType(appType string) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) Context(ctx context.Context) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1FindInstalledAppDevicesResponse, error)
- func (c *CustomersReportsFindInstalledAppDevicesCall) Fields(s ...googleapi.Field) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) Filter(filter string) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) Header() http.Header
- func (c *CustomersReportsFindInstalledAppDevicesCall) IfNoneMatch(entityTag string) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) OrderBy(orderBy string) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) OrgUnitId(orgUnitId string) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) PageSize(pageSize int64) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) PageToken(pageToken string) *CustomersReportsFindInstalledAppDevicesCall
- func (c *CustomersReportsFindInstalledAppDevicesCall) Pages(ctx context.Context, ...) error
- type CustomersReportsService
- func (r *CustomersReportsService) CountChromeVersions(customer string) *CustomersReportsCountChromeVersionsCall
- func (r *CustomersReportsService) CountInstalledApps(customer string) *CustomersReportsCountInstalledAppsCall
- func (r *CustomersReportsService) FindInstalledAppDevices(customer string) *CustomersReportsFindInstalledAppDevicesCall
- type CustomersService
- type GoogleChromeManagementV1AndroidAppInfo
- type GoogleChromeManagementV1AndroidAppPermission
- type GoogleChromeManagementV1AppDetails
- type GoogleChromeManagementV1BrowserVersion
- type GoogleChromeManagementV1ChromeAppInfo
- type GoogleChromeManagementV1ChromeAppPermission
- type GoogleChromeManagementV1ChromeAppSiteAccess
- type GoogleChromeManagementV1CountChromeVersionsResponse
- type GoogleChromeManagementV1CountInstalledAppsResponse
- type GoogleChromeManagementV1Device
- type GoogleChromeManagementV1FindInstalledAppDevicesResponse
- type GoogleChromeManagementV1InstalledApp
- type GoogleRpcStatus
- type Service
Constants ¶
const ( // See detailed information about apps installed on Chrome browsers and // devices managed by your organization ChromeManagementAppdetailsReadonlyScope = "https://www.googleapis.com/auth/chrome.management.appdetails.readonly" // See reports about devices and Chrome browsers managed within your // organization ChromeManagementReportsReadonlyScope = "https://www.googleapis.com/auth/chrome.management.reports.readonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomersAppsAndroidGetCall ¶ added in v0.53.0
type CustomersAppsAndroidGetCall struct {
// contains filtered or unexported fields
}
func (*CustomersAppsAndroidGetCall) Context ¶ added in v0.53.0
func (c *CustomersAppsAndroidGetCall) Context(ctx context.Context) *CustomersAppsAndroidGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersAppsAndroidGetCall) Do ¶ added in v0.53.0
func (c *CustomersAppsAndroidGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error)
Do executes the "chromemanagement.customers.apps.android.get" call. Exactly one of *GoogleChromeManagementV1AppDetails or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersAppsAndroidGetCall) Fields ¶ added in v0.53.0
func (c *CustomersAppsAndroidGetCall) Fields(s ...googleapi.Field) *CustomersAppsAndroidGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersAppsAndroidGetCall) Header ¶ added in v0.53.0
func (c *CustomersAppsAndroidGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersAppsAndroidGetCall) IfNoneMatch ¶ added in v0.53.0
func (c *CustomersAppsAndroidGetCall) IfNoneMatch(entityTag string) *CustomersAppsAndroidGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CustomersAppsAndroidService ¶ added in v0.53.0
type CustomersAppsAndroidService struct {
// contains filtered or unexported fields
}
func NewCustomersAppsAndroidService ¶ added in v0.53.0
func NewCustomersAppsAndroidService(s *Service) *CustomersAppsAndroidService
func (*CustomersAppsAndroidService) Get ¶ added in v0.53.0
func (r *CustomersAppsAndroidService) Get(name string) *CustomersAppsAndroidGetCall
Get: Get a specific app for a customer by its resource name.
- name: The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@ 2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
type CustomersAppsChromeGetCall ¶ added in v0.53.0
type CustomersAppsChromeGetCall struct {
// contains filtered or unexported fields
}
func (*CustomersAppsChromeGetCall) Context ¶ added in v0.53.0
func (c *CustomersAppsChromeGetCall) Context(ctx context.Context) *CustomersAppsChromeGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersAppsChromeGetCall) Do ¶ added in v0.53.0
func (c *CustomersAppsChromeGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error)
Do executes the "chromemanagement.customers.apps.chrome.get" call. Exactly one of *GoogleChromeManagementV1AppDetails or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersAppsChromeGetCall) Fields ¶ added in v0.53.0
func (c *CustomersAppsChromeGetCall) Fields(s ...googleapi.Field) *CustomersAppsChromeGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersAppsChromeGetCall) Header ¶ added in v0.53.0
func (c *CustomersAppsChromeGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersAppsChromeGetCall) IfNoneMatch ¶ added in v0.53.0
func (c *CustomersAppsChromeGetCall) IfNoneMatch(entityTag string) *CustomersAppsChromeGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CustomersAppsChromeService ¶ added in v0.53.0
type CustomersAppsChromeService struct {
// contains filtered or unexported fields
}
func NewCustomersAppsChromeService ¶ added in v0.53.0
func NewCustomersAppsChromeService(s *Service) *CustomersAppsChromeService
func (*CustomersAppsChromeService) Get ¶ added in v0.53.0
func (r *CustomersAppsChromeService) Get(name string) *CustomersAppsChromeGetCall
Get: Get a specific app for a customer by its resource name.
- name: The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@ 2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
type CustomersAppsService ¶ added in v0.53.0
type CustomersAppsService struct { Android *CustomersAppsAndroidService Chrome *CustomersAppsChromeService Web *CustomersAppsWebService // contains filtered or unexported fields }
func NewCustomersAppsService ¶ added in v0.53.0
func NewCustomersAppsService(s *Service) *CustomersAppsService
type CustomersAppsWebGetCall ¶ added in v0.53.0
type CustomersAppsWebGetCall struct {
// contains filtered or unexported fields
}
func (*CustomersAppsWebGetCall) Context ¶ added in v0.53.0
func (c *CustomersAppsWebGetCall) Context(ctx context.Context) *CustomersAppsWebGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersAppsWebGetCall) Do ¶ added in v0.53.0
func (c *CustomersAppsWebGetCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1AppDetails, error)
Do executes the "chromemanagement.customers.apps.web.get" call. Exactly one of *GoogleChromeManagementV1AppDetails or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromeManagementV1AppDetails.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersAppsWebGetCall) Fields ¶ added in v0.53.0
func (c *CustomersAppsWebGetCall) Fields(s ...googleapi.Field) *CustomersAppsWebGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersAppsWebGetCall) Header ¶ added in v0.53.0
func (c *CustomersAppsWebGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersAppsWebGetCall) IfNoneMatch ¶ added in v0.53.0
func (c *CustomersAppsWebGetCall) IfNoneMatch(entityTag string) *CustomersAppsWebGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CustomersAppsWebService ¶ added in v0.53.0
type CustomersAppsWebService struct {
// contains filtered or unexported fields
}
func NewCustomersAppsWebService ¶ added in v0.53.0
func NewCustomersAppsWebService(s *Service) *CustomersAppsWebService
func (*CustomersAppsWebService) Get ¶ added in v0.53.0
func (r *CustomersAppsWebService) Get(name string) *CustomersAppsWebGetCall
Get: Get a specific app for a customer by its resource name.
- name: The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@ 2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
type CustomersReportsCountChromeVersionsCall ¶
type CustomersReportsCountChromeVersionsCall struct {
// contains filtered or unexported fields
}
func (*CustomersReportsCountChromeVersionsCall) Context ¶
func (c *CustomersReportsCountChromeVersionsCall) Context(ctx context.Context) *CustomersReportsCountChromeVersionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersReportsCountChromeVersionsCall) Do ¶
func (c *CustomersReportsCountChromeVersionsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeVersionsResponse, error)
Do executes the "chromemanagement.customers.reports.countChromeVersions" call. Exactly one of *GoogleChromeManagementV1CountChromeVersionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromeManagementV1CountChromeVersionsResponse.ServerResponse.He ader or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersReportsCountChromeVersionsCall) Fields ¶
func (c *CustomersReportsCountChromeVersionsCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeVersionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersReportsCountChromeVersionsCall) Filter ¶
func (c *CustomersReportsCountChromeVersionsCall) Filter(filter string) *CustomersReportsCountChromeVersionsCall
Filter sets the optional parameter "filter": Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
func (*CustomersReportsCountChromeVersionsCall) Header ¶
func (c *CustomersReportsCountChromeVersionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersReportsCountChromeVersionsCall) IfNoneMatch ¶
func (c *CustomersReportsCountChromeVersionsCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeVersionsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*CustomersReportsCountChromeVersionsCall) OrgUnitId ¶
func (c *CustomersReportsCountChromeVersionsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeVersionsCall
OrgUnitId sets the optional parameter "orgUnitId": The ID of the organizational unit.
func (*CustomersReportsCountChromeVersionsCall) PageSize ¶
func (c *CustomersReportsCountChromeVersionsCall) PageSize(pageSize int64) *CustomersReportsCountChromeVersionsCall
PageSize sets the optional parameter "pageSize": Maximum number of results to return. Maximum and default are 100.
func (*CustomersReportsCountChromeVersionsCall) PageToken ¶
func (c *CustomersReportsCountChromeVersionsCall) PageToken(pageToken string) *CustomersReportsCountChromeVersionsCall
PageToken sets the optional parameter "pageToken": Token to specify the page of the request to be returned.
func (*CustomersReportsCountChromeVersionsCall) Pages ¶
func (c *CustomersReportsCountChromeVersionsCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountChromeVersionsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type CustomersReportsCountInstalledAppsCall ¶
type CustomersReportsCountInstalledAppsCall struct {
// contains filtered or unexported fields
}
func (*CustomersReportsCountInstalledAppsCall) Context ¶
func (c *CustomersReportsCountInstalledAppsCall) Context(ctx context.Context) *CustomersReportsCountInstalledAppsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersReportsCountInstalledAppsCall) Do ¶
func (c *CustomersReportsCountInstalledAppsCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountInstalledAppsResponse, error)
Do executes the "chromemanagement.customers.reports.countInstalledApps" call. Exactly one of *GoogleChromeManagementV1CountInstalledAppsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromeManagementV1CountInstalledAppsResponse.ServerResponse.Hea der or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersReportsCountInstalledAppsCall) Fields ¶
func (c *CustomersReportsCountInstalledAppsCall) Fields(s ...googleapi.Field) *CustomersReportsCountInstalledAppsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersReportsCountInstalledAppsCall) Filter ¶
func (c *CustomersReportsCountInstalledAppsCall) Filter(filter string) *CustomersReportsCountInstalledAppsCall
Filter sets the optional parameter "filter": Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name
func (*CustomersReportsCountInstalledAppsCall) Header ¶
func (c *CustomersReportsCountInstalledAppsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersReportsCountInstalledAppsCall) IfNoneMatch ¶
func (c *CustomersReportsCountInstalledAppsCall) IfNoneMatch(entityTag string) *CustomersReportsCountInstalledAppsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*CustomersReportsCountInstalledAppsCall) OrderBy ¶
func (c *CustomersReportsCountInstalledAppsCall) OrderBy(orderBy string) *CustomersReportsCountInstalledAppsCall
OrderBy sets the optional parameter "orderBy": Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count
func (*CustomersReportsCountInstalledAppsCall) OrgUnitId ¶
func (c *CustomersReportsCountInstalledAppsCall) OrgUnitId(orgUnitId string) *CustomersReportsCountInstalledAppsCall
OrgUnitId sets the optional parameter "orgUnitId": The ID of the organizational unit.
func (*CustomersReportsCountInstalledAppsCall) PageSize ¶
func (c *CustomersReportsCountInstalledAppsCall) PageSize(pageSize int64) *CustomersReportsCountInstalledAppsCall
PageSize sets the optional parameter "pageSize": Maximum number of results to return. Maximum and default are 100.
func (*CustomersReportsCountInstalledAppsCall) PageToken ¶
func (c *CustomersReportsCountInstalledAppsCall) PageToken(pageToken string) *CustomersReportsCountInstalledAppsCall
PageToken sets the optional parameter "pageToken": Token to specify the page of the request to be returned.
func (*CustomersReportsCountInstalledAppsCall) Pages ¶
func (c *CustomersReportsCountInstalledAppsCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1CountInstalledAppsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type CustomersReportsFindInstalledAppDevicesCall ¶
type CustomersReportsFindInstalledAppDevicesCall struct {
// contains filtered or unexported fields
}
func (*CustomersReportsFindInstalledAppDevicesCall) AppId ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) AppId(appId string) *CustomersReportsFindInstalledAppDevicesCall
AppId sets the optional parameter "appId": Unique identifier of the app. For Chrome apps and extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g. com.evernote).
func (*CustomersReportsFindInstalledAppDevicesCall) AppType ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) AppType(appType string) *CustomersReportsFindInstalledAppDevicesCall
AppType sets the optional parameter "appType": Type of the app.
Possible values:
"APP_TYPE_UNSPECIFIED" - App type not specified. "EXTENSION" - Chrome extension. "APP" - Chrome app. "THEME" - Chrome theme. "HOSTED_APP" - Chrome hosted app. "ANDROID_APP" - ARC++ app.
func (*CustomersReportsFindInstalledAppDevicesCall) Context ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) Context(ctx context.Context) *CustomersReportsFindInstalledAppDevicesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersReportsFindInstalledAppDevicesCall) Do ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1FindInstalledAppDevicesResponse, error)
Do executes the "chromemanagement.customers.reports.findInstalledAppDevices" call. Exactly one of *GoogleChromeManagementV1FindInstalledAppDevicesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromeManagementV1FindInstalledAppDevicesResponse.ServerRespons e.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersReportsFindInstalledAppDevicesCall) Fields ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) Fields(s ...googleapi.Field) *CustomersReportsFindInstalledAppDevicesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersReportsFindInstalledAppDevicesCall) Filter ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) Filter(filter string) *CustomersReportsFindInstalledAppDevicesCall
Filter sets the optional parameter "filter": Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
func (*CustomersReportsFindInstalledAppDevicesCall) Header ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersReportsFindInstalledAppDevicesCall) IfNoneMatch ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) IfNoneMatch(entityTag string) *CustomersReportsFindInstalledAppDevicesCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*CustomersReportsFindInstalledAppDevicesCall) OrderBy ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) OrderBy(orderBy string) *CustomersReportsFindInstalledAppDevicesCall
OrderBy sets the optional parameter "orderBy": Field used to order results. Supported order by fields: * machine * device_id
func (*CustomersReportsFindInstalledAppDevicesCall) OrgUnitId ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) OrgUnitId(orgUnitId string) *CustomersReportsFindInstalledAppDevicesCall
OrgUnitId sets the optional parameter "orgUnitId": The ID of the organizational unit.
func (*CustomersReportsFindInstalledAppDevicesCall) PageSize ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) PageSize(pageSize int64) *CustomersReportsFindInstalledAppDevicesCall
PageSize sets the optional parameter "pageSize": Maximum number of results to return. Maximum and default are 100.
func (*CustomersReportsFindInstalledAppDevicesCall) PageToken ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) PageToken(pageToken string) *CustomersReportsFindInstalledAppDevicesCall
PageToken sets the optional parameter "pageToken": Token to specify the page of the request to be returned.
func (*CustomersReportsFindInstalledAppDevicesCall) Pages ¶
func (c *CustomersReportsFindInstalledAppDevicesCall) Pages(ctx context.Context, f func(*GoogleChromeManagementV1FindInstalledAppDevicesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type CustomersReportsService ¶
type CustomersReportsService struct {
// contains filtered or unexported fields
}
func NewCustomersReportsService ¶
func NewCustomersReportsService(s *Service) *CustomersReportsService
func (*CustomersReportsService) CountChromeVersions ¶
func (r *CustomersReportsService) CountChromeVersions(customer string) *CustomersReportsCountChromeVersionsCall
CountChromeVersions: Generate report of installed Chrome versions.
- customer: Customer id or "my_customer" to use the customer associated to the account making the request.
func (*CustomersReportsService) CountInstalledApps ¶
func (r *CustomersReportsService) CountInstalledApps(customer string) *CustomersReportsCountInstalledAppsCall
CountInstalledApps: Generate report of app installations.
- customer: Customer id or "my_customer" to use the customer associated to the account making the request.
func (*CustomersReportsService) FindInstalledAppDevices ¶
func (r *CustomersReportsService) FindInstalledAppDevices(customer string) *CustomersReportsFindInstalledAppDevicesCall
FindInstalledAppDevices: Generate report of devices that have a specified app installed.
- customer: Customer id or "my_customer" to use the customer associated to the account making the request.
type CustomersService ¶
type CustomersService struct { Apps *CustomersAppsService Reports *CustomersReportsService // contains filtered or unexported fields }
func NewCustomersService ¶
func NewCustomersService(s *Service) *CustomersService
type GoogleChromeManagementV1AndroidAppInfo ¶ added in v0.53.0
type GoogleChromeManagementV1AndroidAppInfo struct { // Permissions: Output only. Permissions requested by an Android app. Permissions []*GoogleChromeManagementV1AndroidAppPermission `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "Permissions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1AndroidAppInfo: Android app information.
func (*GoogleChromeManagementV1AndroidAppInfo) MarshalJSON ¶ added in v0.53.0
func (s *GoogleChromeManagementV1AndroidAppInfo) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1AndroidAppPermission ¶ added in v0.53.0
type GoogleChromeManagementV1AndroidAppPermission struct { // Type: Output only. The type of the permission. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Type") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1AndroidAppPermission: Permission requested by an Android app.
func (*GoogleChromeManagementV1AndroidAppPermission) MarshalJSON ¶ added in v0.53.0
func (s *GoogleChromeManagementV1AndroidAppPermission) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1AppDetails ¶ added in v0.53.0
type GoogleChromeManagementV1AppDetails struct { // AndroidAppInfo: Output only. Android app information. AndroidAppInfo *GoogleChromeManagementV1AndroidAppInfo `json:"androidAppInfo,omitempty"` // AppId: Output only. Unique store identifier for the item. Examples: // "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive // Chrome extension, "com.google.android.apps.docs" for the Google Drive // Android app. AppId string `json:"appId,omitempty"` // ChromeAppInfo: Output only. Chrome Web Store app information. ChromeAppInfo *GoogleChromeManagementV1ChromeAppInfo `json:"chromeAppInfo,omitempty"` // Description: Output only. App's description. Description string `json:"description,omitempty"` // DetailUri: Output only. The uri for the detail page of the item. DetailUri string `json:"detailUri,omitempty"` // DisplayName: Output only. App's display name. DisplayName string `json:"displayName,omitempty"` // FirstPublishTime: Output only. First published time. FirstPublishTime string `json:"firstPublishTime,omitempty"` // HomepageUri: Output only. Home page or Website uri. HomepageUri string `json:"homepageUri,omitempty"` // IconUri: Output only. A link to an image that can be used as an icon // for the product. IconUri string `json:"iconUri,omitempty"` // IsPaidApp: Output only. Indicates if the app has to be paid for OR // has paid content. IsPaidApp bool `json:"isPaidApp,omitempty"` // LatestPublishTime: Output only. Latest published time. LatestPublishTime string `json:"latestPublishTime,omitempty"` // Name: Output only. Format: // name=customers/{customer_id}/apps/{chrome|android|web}/{app_id}@{versi // on} Name string `json:"name,omitempty"` // PrivacyPolicyUri: Output only. The URI pointing to the privacy policy // of the app, if it was provided by the developer. Version-specific // field that will only be set when the requested app version is found. PrivacyPolicyUri string `json:"privacyPolicyUri,omitempty"` // Publisher: Output only. The publisher of the item. Publisher string `json:"publisher,omitempty"` // ReviewNumber: Output only. Number of reviews received. Chrome Web // Store review information will always be for the latest version of an // app. ReviewNumber int64 `json:"reviewNumber,omitempty,string"` // ReviewRating: Output only. The rating of the app (on 5 stars). Chrome // Web Store review information will always be for the latest version of // an app. ReviewRating float64 `json:"reviewRating,omitempty"` // RevisionId: Output only. App version. A new revision is committed // whenever a new version of the app is published. RevisionId string `json:"revisionId,omitempty"` // ServiceError: Output only. Information about a partial service error // if applicable. ServiceError *GoogleRpcStatus `json:"serviceError,omitempty"` // Type: Output only. App type. // // Possible values: // "APP_ITEM_TYPE_UNSPECIFIED" - App type unspecified. // "CHROME" - Chrome app. // "ANDROID" - ARC++ app. // "WEB" - Web app. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AndroidAppInfo") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AndroidAppInfo") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1AppDetails: Resource representing app details.
func (*GoogleChromeManagementV1AppDetails) MarshalJSON ¶ added in v0.53.0
func (s *GoogleChromeManagementV1AppDetails) MarshalJSON() ([]byte, error)
func (*GoogleChromeManagementV1AppDetails) UnmarshalJSON ¶ added in v0.53.0
func (s *GoogleChromeManagementV1AppDetails) UnmarshalJSON(data []byte) error
type GoogleChromeManagementV1BrowserVersion ¶
type GoogleChromeManagementV1BrowserVersion struct { // Channel: Output only. The release channel of the installed browser. // // Possible values: // "RELEASE_CHANNEL_UNSPECIFIED" - No release channel specified. // "CANARY" - Canary release channel. // "DEV" - Dev release channel. // "BETA" - Beta release channel. // "STABLE" - Stable release channel. Channel string `json:"channel,omitempty"` // Count: Output only. Count grouped by device_system and major version Count int64 `json:"count,omitempty,string"` // DeviceOsVersion: Output only. Version of the system-specified // operating system. DeviceOsVersion string `json:"deviceOsVersion,omitempty"` // System: Output only. The device operating system. // // Possible values: // "DEVICE_SYSTEM_UNSPECIFIED" - No operating system specified. // "SYSTEM_OTHER" - Other operating system. // "SYSTEM_ANDROID" - Android operating system. // "SYSTEM_IOS" - Apple iOS operating system. // "SYSTEM_CROS" - Chrome OS operating system. // "SYSTEM_WINDOWS" - Microsoft Windows operating system. // "SYSTEM_MAC" - Apple macOS operating system. // "SYSTEM_LINUX" - Linux operating system. System string `json:"system,omitempty"` // Version: Output only. The full version of the installed browser. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Channel") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Channel") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1BrowserVersion: Describes a browser version and its install count.
func (*GoogleChromeManagementV1BrowserVersion) MarshalJSON ¶
func (s *GoogleChromeManagementV1BrowserVersion) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1ChromeAppInfo ¶ added in v0.53.0
type GoogleChromeManagementV1ChromeAppInfo struct { // GoogleOwned: Output only. Whether the app or extension is built and // maintained by Google. Version-specific field that will only be set // when the requested app version is found. GoogleOwned bool `json:"googleOwned,omitempty"` // IsCwsHosted: Output only. Whether the app or extension is in a // published state in the Chrome Web Store. IsCwsHosted bool `json:"isCwsHosted,omitempty"` // IsTheme: Output only. Whether the app or extension is a theme. IsTheme bool `json:"isTheme,omitempty"` // MinUserCount: Output only. The minimum number of users using this // app. MinUserCount int64 `json:"minUserCount,omitempty"` // Permissions: Output only. Every custom permission requested by the // app. Version-specific field that will only be set when the requested // app version is found. Permissions []*GoogleChromeManagementV1ChromeAppPermission `json:"permissions,omitempty"` // SiteAccess: Output only. Every permission giving access to domains or // broad host patterns. ( e.g. www.google.com). This includes the // matches from content scripts as well as hosts in the permissions node // of the manifest. Version-specific field that will only be set when // the requested app version is found. SiteAccess []*GoogleChromeManagementV1ChromeAppSiteAccess `json:"siteAccess,omitempty"` // SupportEnabled: Output only. The app developer has enabled support // for their app. Version-specific field that will only be set when the // requested app version is found. SupportEnabled bool `json:"supportEnabled,omitempty"` // ForceSendFields is a list of field names (e.g. "GoogleOwned") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GoogleOwned") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1ChromeAppInfo: Chrome Web Store app information.
func (*GoogleChromeManagementV1ChromeAppInfo) MarshalJSON ¶ added in v0.53.0
func (s *GoogleChromeManagementV1ChromeAppInfo) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1ChromeAppPermission ¶ added in v0.53.0
type GoogleChromeManagementV1ChromeAppPermission struct { // AccessUserData: Output only. If available, whether this permissions // grants the app/extension access to user data. AccessUserData bool `json:"accessUserData,omitempty"` // DocumentationUri: Output only. If available, a URI to a page that has // documentation for the current permission. DocumentationUri string `json:"documentationUri,omitempty"` // Type: Output only. The type of the permission. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessUserData") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessUserData") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1ChromeAppPermission: Permission requested by a Chrome app or extension.
func (*GoogleChromeManagementV1ChromeAppPermission) MarshalJSON ¶ added in v0.53.0
func (s *GoogleChromeManagementV1ChromeAppPermission) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1ChromeAppSiteAccess ¶ added in v0.53.0
type GoogleChromeManagementV1ChromeAppSiteAccess struct { // HostMatch: Output only. This can contain very specific hosts, or // patterns like "*.com" for instance. HostMatch string `json:"hostMatch,omitempty"` // ForceSendFields is a list of field names (e.g. "HostMatch") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HostMatch") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1ChromeAppSiteAccess: Represent one host permission.
func (*GoogleChromeManagementV1ChromeAppSiteAccess) MarshalJSON ¶ added in v0.53.0
func (s *GoogleChromeManagementV1ChromeAppSiteAccess) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1CountChromeVersionsResponse ¶
type GoogleChromeManagementV1CountChromeVersionsResponse struct { // BrowserVersions: List of all browser versions and their install // counts. BrowserVersions []*GoogleChromeManagementV1BrowserVersion `json:"browserVersions,omitempty"` // NextPageToken: Token to specify the next page of the request. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: Total number browser versions matching request. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BrowserVersions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BrowserVersions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1CountChromeVersionsResponse: Response containing requested browser versions details and counts.
func (*GoogleChromeManagementV1CountChromeVersionsResponse) MarshalJSON ¶
func (s *GoogleChromeManagementV1CountChromeVersionsResponse) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1CountInstalledAppsResponse ¶
type GoogleChromeManagementV1CountInstalledAppsResponse struct { // InstalledApps: List of installed apps matching request. InstalledApps []*GoogleChromeManagementV1InstalledApp `json:"installedApps,omitempty"` // NextPageToken: Token to specify the next page of the request. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: Total number of installed apps matching request. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "InstalledApps") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InstalledApps") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1CountInstalledAppsResponse: Response containing details of queried installed apps.
func (*GoogleChromeManagementV1CountInstalledAppsResponse) MarshalJSON ¶
func (s *GoogleChromeManagementV1CountInstalledAppsResponse) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1Device ¶
type GoogleChromeManagementV1Device struct { // DeviceId: Output only. The ID of the device that reported this Chrome // browser information. DeviceId string `json:"deviceId,omitempty"` // Machine: Output only. The name of the machine within its local // network. Machine string `json:"machine,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1Device: Describes a device reporting Chrome browser information.
func (*GoogleChromeManagementV1Device) MarshalJSON ¶
func (s *GoogleChromeManagementV1Device) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1FindInstalledAppDevicesResponse ¶
type GoogleChromeManagementV1FindInstalledAppDevicesResponse struct { // Devices: A list of devices which have the app installed. Sorted in // ascending alphabetical order on the Device.machine field. Devices []*GoogleChromeManagementV1Device `json:"devices,omitempty"` // NextPageToken: Token to specify the next page of the request. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: Total number of devices matching request. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Devices") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Devices") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1FindInstalledAppDevicesResponse: Response containing a list of devices with queried app installed.
func (*GoogleChromeManagementV1FindInstalledAppDevicesResponse) MarshalJSON ¶
func (s *GoogleChromeManagementV1FindInstalledAppDevicesResponse) MarshalJSON() ([]byte, error)
type GoogleChromeManagementV1InstalledApp ¶
type GoogleChromeManagementV1InstalledApp struct { // AppId: Output only. Unique identifier of the app. For Chrome apps and // extensions, the 32-character id (e.g. // ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name // (e.g. com.evernote). AppId string `json:"appId,omitempty"` // AppInstallType: Output only. How the app was installed. // // Possible values: // "APP_INSTALL_TYPE_UNSPECIFIED" - Application install type not // specified. // "MULTIPLE" - Multiple app install types. // "NORMAL" - Normal app install type. // "ADMIN" - Administrator app install type. // "DEVELOPMENT" - Development app install type. // "SIDELOAD" - Sideloaded app install type. // "OTHER" - Other app install type. AppInstallType string `json:"appInstallType,omitempty"` // AppSource: Output only. Source of the installed app. // // Possible values: // "APP_SOURCE_UNSPECIFIED" - Application source not specified. // "CHROME_WEBSTORE" - Generally for extensions and Chrome apps. // "PLAY_STORE" - Play Store app. AppSource string `json:"appSource,omitempty"` // AppType: Output only. Type of the app. // // Possible values: // "APP_TYPE_UNSPECIFIED" - App type not specified. // "EXTENSION" - Chrome extension. // "APP" - Chrome app. // "THEME" - Chrome theme. // "HOSTED_APP" - Chrome hosted app. // "ANDROID_APP" - ARC++ app. AppType string `json:"appType,omitempty"` // BrowserDeviceCount: Output only. Count of browser devices with this // app installed. BrowserDeviceCount int64 `json:"browserDeviceCount,omitempty,string"` // Description: Output only. Description of the installed app. Description string `json:"description,omitempty"` // Disabled: Output only. Whether the app is disabled. Disabled bool `json:"disabled,omitempty"` // DisplayName: Output only. Name of the installed app. DisplayName string `json:"displayName,omitempty"` // HomepageUri: Output only. Homepage uri of the installed app. HomepageUri string `json:"homepageUri,omitempty"` // OsUserCount: Output only. Count of ChromeOS users with this app // installed. OsUserCount int64 `json:"osUserCount,omitempty,string"` // Permissions: Output only. Permissions of the installed app. Permissions []string `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "AppId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AppId") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleChromeManagementV1InstalledApp: Describes an installed app.
func (*GoogleChromeManagementV1InstalledApp) MarshalJSON ¶
func (s *GoogleChromeManagementV1InstalledApp) MarshalJSON() ([]byte, error)
type GoogleRpcStatus ¶ added in v0.53.0
type GoogleRpcStatus struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleRpcStatus: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (*GoogleRpcStatus) MarshalJSON ¶ added in v0.53.0
func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Customers *CustomersService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.