chromepolicy

package
v0.176.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: BSD-3-Clause Imports: 16 Imported by: 1

Documentation

Overview

Package chromepolicy provides access to the Chrome Policy API.

For product documentation, see: http://developers.google.com/chrome/policy

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/chromepolicy/v1"
...
ctx := context.Background()
chromepolicyService, err := chromepolicy.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 google.golang.org/api/option.WithScopes:

chromepolicyService, err := chromepolicy.NewService(ctx, option.WithScopes(chromepolicy.ChromeManagementPolicyReadonlyScope))

To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:

chromepolicyService, err := chromepolicy.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
chromepolicyService, err := chromepolicy.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (
	// See, edit, create or delete policies applied to Chrome OS and Chrome
	// Browsers managed within your organization
	ChromeManagementPolicyScope = "https://www.googleapis.com/auth/chrome.management.policy"

	// See policies applied to Chrome OS and Chrome Browsers managed within
	// your organization
	ChromeManagementPolicyReadonlyScope = "https://www.googleapis.com/auth/chrome.management.policy.readonly"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomersPoliciesGroupsBatchDeleteCall added in v0.92.0

type CustomersPoliciesGroupsBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesGroupsBatchDeleteCall) Context added in v0.92.0

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 (*CustomersPoliciesGroupsBatchDeleteCall) Do added in v0.92.0

Do executes the "chromepolicy.customers.policies.groups.batchDelete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*CustomersPoliciesGroupsBatchDeleteCall) Fields added in v0.92.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesGroupsBatchDeleteCall) Header added in v0.92.0

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesGroupsBatchModifyCall added in v0.92.0

type CustomersPoliciesGroupsBatchModifyCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesGroupsBatchModifyCall) Context added in v0.92.0

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 (*CustomersPoliciesGroupsBatchModifyCall) Do added in v0.92.0

Do executes the "chromepolicy.customers.policies.groups.batchModify" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*CustomersPoliciesGroupsBatchModifyCall) Fields added in v0.92.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesGroupsBatchModifyCall) Header added in v0.92.0

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesGroupsListGroupPriorityOrderingCall added in v0.92.0

type CustomersPoliciesGroupsListGroupPriorityOrderingCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesGroupsListGroupPriorityOrderingCall) Context added in v0.92.0

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 (*CustomersPoliciesGroupsListGroupPriorityOrderingCall) Do added in v0.92.0

Do executes the "chromepolicy.customers.policies.groups.listGroupPriorityOrdering" call. Exactly one of *GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse.ServerR esponse.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 (*CustomersPoliciesGroupsListGroupPriorityOrderingCall) Fields added in v0.92.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesGroupsListGroupPriorityOrderingCall) Header added in v0.92.0

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesGroupsService added in v0.92.0

type CustomersPoliciesGroupsService struct {
	// contains filtered or unexported fields
}

func NewCustomersPoliciesGroupsService added in v0.92.0

func NewCustomersPoliciesGroupsService(s *Service) *CustomersPoliciesGroupsService

func (*CustomersPoliciesGroupsService) BatchDelete added in v0.92.0

func (r *CustomersPoliciesGroupsService) BatchDelete(customer string, googlechromepolicyversionsv1batchdeletegrouppoliciesrequest *GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest) *CustomersPoliciesGroupsBatchDeleteCall

BatchDelete: Delete multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.

  • customer: ID of the Google Workspace account or literal "my_customer" for the customer associated to the request.

func (*CustomersPoliciesGroupsService) BatchModify added in v0.92.0

func (r *CustomersPoliciesGroupsService) BatchModify(customer string, googlechromepolicyversionsv1batchmodifygrouppoliciesrequest *GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest) *CustomersPoliciesGroupsBatchModifyCall

BatchModify: Modify multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.

  • customer: ID of the Google Workspace account or literal "my_customer" for the customer associated to the request.

func (*CustomersPoliciesGroupsService) ListGroupPriorityOrdering added in v0.92.0

func (r *CustomersPoliciesGroupsService) ListGroupPriorityOrdering(customer string, googlechromepolicyversionsv1listgrouppriorityorderingrequest *GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest) *CustomersPoliciesGroupsListGroupPriorityOrderingCall

ListGroupPriorityOrdering: Retrieve a group priority ordering for an app. The target app must be supplied in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the request will return the error details as part of the google.rpc.Status.

  • customer: ID of the Google Workspace account or literal "my_customer" for the customer associated to the request.

func (*CustomersPoliciesGroupsService) UpdateGroupPriorityOrdering added in v0.92.0

func (r *CustomersPoliciesGroupsService) UpdateGroupPriorityOrdering(customer string, googlechromepolicyversionsv1updategrouppriorityorderingrequest *GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest) *CustomersPoliciesGroupsUpdateGroupPriorityOrderingCall

UpdateGroupPriorityOrdering: Update a group priority ordering for an app. The target app must be supplied in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the request will return the error details as part of the google.rpc.Status.

  • customer: ID of the Google Workspace account or literal "my_customer" for the customer associated to the request.

type CustomersPoliciesGroupsUpdateGroupPriorityOrderingCall added in v0.92.0

type CustomersPoliciesGroupsUpdateGroupPriorityOrderingCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesGroupsUpdateGroupPriorityOrderingCall) Context added in v0.92.0

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 (*CustomersPoliciesGroupsUpdateGroupPriorityOrderingCall) Do added in v0.92.0

Do executes the "chromepolicy.customers.policies.groups.updateGroupPriorityOrdering" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*CustomersPoliciesGroupsUpdateGroupPriorityOrderingCall) Fields added in v0.92.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesGroupsUpdateGroupPriorityOrderingCall) Header added in v0.92.0

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesNetworksDefineCertificateCall added in v0.100.0

type CustomersPoliciesNetworksDefineCertificateCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesNetworksDefineCertificateCall) Context added in v0.100.0

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 (*CustomersPoliciesNetworksDefineCertificateCall) Do added in v0.100.0

Do executes the "chromepolicy.customers.policies.networks.defineCertificate" call. Exactly one of *GoogleChromePolicyVersionsV1DefineCertificateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1DefineCertificateResponse.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 (*CustomersPoliciesNetworksDefineCertificateCall) Fields added in v0.100.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesNetworksDefineCertificateCall) Header added in v0.100.0

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesNetworksDefineNetworkCall added in v0.100.0

type CustomersPoliciesNetworksDefineNetworkCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesNetworksDefineNetworkCall) Context added in v0.100.0

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 (*CustomersPoliciesNetworksDefineNetworkCall) Do added in v0.100.0

Do executes the "chromepolicy.customers.policies.networks.defineNetwork" call. Exactly one of *GoogleChromePolicyVersionsV1DefineNetworkResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1DefineNetworkResponse.ServerResponse.Head er 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 (*CustomersPoliciesNetworksDefineNetworkCall) Fields added in v0.100.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesNetworksDefineNetworkCall) Header added in v0.100.0

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesNetworksRemoveCertificateCall added in v0.100.0

type CustomersPoliciesNetworksRemoveCertificateCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesNetworksRemoveCertificateCall) Context added in v0.100.0

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 (*CustomersPoliciesNetworksRemoveCertificateCall) Do added in v0.100.0

Do executes the "chromepolicy.customers.policies.networks.removeCertificate" call. Exactly one of *GoogleChromePolicyVersionsV1RemoveCertificateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1RemoveCertificateResponse.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 (*CustomersPoliciesNetworksRemoveCertificateCall) Fields added in v0.100.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesNetworksRemoveCertificateCall) Header added in v0.100.0

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesNetworksRemoveNetworkCall added in v0.100.0

type CustomersPoliciesNetworksRemoveNetworkCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesNetworksRemoveNetworkCall) Context added in v0.100.0

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 (*CustomersPoliciesNetworksRemoveNetworkCall) Do added in v0.100.0

Do executes the "chromepolicy.customers.policies.networks.removeNetwork" call. Exactly one of *GoogleChromePolicyVersionsV1RemoveNetworkResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1RemoveNetworkResponse.ServerResponse.Head er 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 (*CustomersPoliciesNetworksRemoveNetworkCall) Fields added in v0.100.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesNetworksRemoveNetworkCall) Header added in v0.100.0

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesNetworksService added in v0.100.0

type CustomersPoliciesNetworksService struct {
	// contains filtered or unexported fields
}

func NewCustomersPoliciesNetworksService added in v0.100.0

func NewCustomersPoliciesNetworksService(s *Service) *CustomersPoliciesNetworksService

func (*CustomersPoliciesNetworksService) DefineCertificate added in v0.100.0

func (r *CustomersPoliciesNetworksService) DefineCertificate(customer string, googlechromepolicyversionsv1definecertificaterequest *GoogleChromePolicyVersionsV1DefineCertificateRequest) *CustomersPoliciesNetworksDefineCertificateCall

DefineCertificate: Creates a certificate at a specified OU for a customer.

- customer: The customer for which the certificate will apply.

func (*CustomersPoliciesNetworksService) DefineNetwork added in v0.100.0

func (r *CustomersPoliciesNetworksService) DefineNetwork(customer string, googlechromepolicyversionsv1definenetworkrequest *GoogleChromePolicyVersionsV1DefineNetworkRequest) *CustomersPoliciesNetworksDefineNetworkCall

DefineNetwork: Define a new network.

- customer: The customer who will own this new network.

func (*CustomersPoliciesNetworksService) RemoveCertificate added in v0.100.0

func (r *CustomersPoliciesNetworksService) RemoveCertificate(customer string, googlechromepolicyversionsv1removecertificaterequest *GoogleChromePolicyVersionsV1RemoveCertificateRequest) *CustomersPoliciesNetworksRemoveCertificateCall

RemoveCertificate: Remove an existing certificate by guid.

- customer: The customer whose certificate will be removed.

func (*CustomersPoliciesNetworksService) RemoveNetwork added in v0.100.0

func (r *CustomersPoliciesNetworksService) RemoveNetwork(customer string, googlechromepolicyversionsv1removenetworkrequest *GoogleChromePolicyVersionsV1RemoveNetworkRequest) *CustomersPoliciesNetworksRemoveNetworkCall

RemoveNetwork: Remove an existing network by guid.

- customer: The customer whose network will be removed.

type CustomersPoliciesOrgunitsBatchInheritCall

type CustomersPoliciesOrgunitsBatchInheritCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesOrgunitsBatchInheritCall) Context

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 (*CustomersPoliciesOrgunitsBatchInheritCall) Do

Do executes the "chromepolicy.customers.policies.orgunits.batchInherit" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*CustomersPoliciesOrgunitsBatchInheritCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesOrgunitsBatchInheritCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesOrgunitsBatchModifyCall

type CustomersPoliciesOrgunitsBatchModifyCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesOrgunitsBatchModifyCall) Context

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 (*CustomersPoliciesOrgunitsBatchModifyCall) Do

Do executes the "chromepolicy.customers.policies.orgunits.batchModify" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*CustomersPoliciesOrgunitsBatchModifyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesOrgunitsBatchModifyCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersPoliciesOrgunitsService

type CustomersPoliciesOrgunitsService struct {
	// contains filtered or unexported fields
}

func NewCustomersPoliciesOrgunitsService

func NewCustomersPoliciesOrgunitsService(s *Service) *CustomersPoliciesOrgunitsService

func (*CustomersPoliciesOrgunitsService) BatchInherit

func (r *CustomersPoliciesOrgunitsService) BatchInherit(customer string, googlechromepolicyversionsv1batchinheritorgunitpoliciesrequest *GoogleChromePolicyVersionsV1BatchInheritOrgUnitPoliciesRequest) *CustomersPoliciesOrgunitsBatchInheritCall

BatchInherit: Modify multiple policy values that are applied to a specific org unit so that they now inherit the value from a parent (if applicable). All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.

  • customer: ID of the G Suite account or literal "my_customer" for the customer associated to the request.

func (*CustomersPoliciesOrgunitsService) BatchModify

func (r *CustomersPoliciesOrgunitsService) BatchModify(customer string, googlechromepolicyversionsv1batchmodifyorgunitpoliciesrequest *GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest) *CustomersPoliciesOrgunitsBatchModifyCall

BatchModify: Modify multiple policy values that are applied to a specific org unit. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.

  • customer: ID of the G Suite account or literal "my_customer" for the customer associated to the request.

type CustomersPoliciesResolveCall

type CustomersPoliciesResolveCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPoliciesResolveCall) Context

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 (*CustomersPoliciesResolveCall) Do

Do executes the "chromepolicy.customers.policies.resolve" call. Exactly one of *GoogleChromePolicyVersionsV1ResolveResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1ResolveResponse.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 (*CustomersPoliciesResolveCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPoliciesResolveCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CustomersPoliciesResolveCall) Pages

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 CustomersPoliciesService

type CustomersPoliciesService struct {
	Groups *CustomersPoliciesGroupsService

	Networks *CustomersPoliciesNetworksService

	Orgunits *CustomersPoliciesOrgunitsService
	// contains filtered or unexported fields
}

func NewCustomersPoliciesService

func NewCustomersPoliciesService(s *Service) *CustomersPoliciesService

func (*CustomersPoliciesService) Resolve

func (r *CustomersPoliciesService) Resolve(customer string, googlechromepolicyversionsv1resolverequest *GoogleChromePolicyVersionsV1ResolveRequest) *CustomersPoliciesResolveCall

Resolve: Gets the resolved policy values for a list of policies that match a search query.

  • customer: ID of the G Suite account or literal "my_customer" for the customer associated to the request.

type CustomersPolicySchemasGetCall

type CustomersPolicySchemasGetCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPolicySchemasGetCall) Context

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 (*CustomersPolicySchemasGetCall) Do

Do executes the "chromepolicy.customers.policySchemas.get" call. Exactly one of *GoogleChromePolicyVersionsV1PolicySchema or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1PolicySchema.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 (*CustomersPolicySchemasGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPolicySchemasGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CustomersPolicySchemasGetCall) IfNoneMatch

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 CustomersPolicySchemasListCall

type CustomersPolicySchemasListCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPolicySchemasListCall) Context

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 (*CustomersPolicySchemasListCall) Do

Do executes the "chromepolicy.customers.policySchemas.list" call. Exactly one of *GoogleChromePolicyVersionsV1ListPolicySchemasResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1ListPolicySchemasResponse.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 (*CustomersPolicySchemasListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPolicySchemasListCall) Filter

Filter sets the optional parameter "filter": The schema filter used to find a particular schema based on fields like its resource name, description and `additionalTargetKeyNames`.

func (*CustomersPolicySchemasListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CustomersPolicySchemasListCall) IfNoneMatch

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 (*CustomersPolicySchemasListCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of policy schemas to return, defaults to 100 and has a maximum of 1000.

func (*CustomersPolicySchemasListCall) PageToken

PageToken sets the optional parameter "pageToken": The page token used to retrieve a specific page of the listing request.

func (*CustomersPolicySchemasListCall) Pages

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 CustomersPolicySchemasService

type CustomersPolicySchemasService struct {
	// contains filtered or unexported fields
}

func NewCustomersPolicySchemasService

func NewCustomersPolicySchemasService(s *Service) *CustomersPolicySchemasService

func (*CustomersPolicySchemasService) Get

Get: Get a specific policy schema for a customer by its resource name.

- name: The policy schema resource name to query.

func (*CustomersPolicySchemasService) List

List: Gets a list of policy schemas that match a specified filter value for a given customer.

- parent: The customer for which the listing request will apply.

type CustomersService

type CustomersService struct {
	Policies *CustomersPoliciesService

	PolicySchemas *CustomersPolicySchemasService
	// contains filtered or unexported fields
}

func NewCustomersService

func NewCustomersService(s *Service) *CustomersService

type GoogleChromePolicyVersionsV1AdditionalTargetKeyName added in v0.100.0

type GoogleChromePolicyVersionsV1AdditionalTargetKeyName struct {
	// Key: Key name.
	Key string `json:"key,omitempty"`

	// KeyDescription: Key description.
	KeyDescription string `json:"keyDescription,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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:"-"`
}

GoogleChromePolicyVersionsV1AdditionalTargetKeyName: Additional key names that will be used to identify the target of the policy value.

func (*GoogleChromePolicyVersionsV1AdditionalTargetKeyName) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest added in v0.100.0

type GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest struct {
	// Requests: List of policies that will be deleted as defined by the
	// `requests`. All requests in the list must follow these restrictions:
	// 1. All schemas in the list must have the same root namespace. 2. All
	// `policyTargetKey.targetResource` values must point to a group
	// resource. 3. All `policyTargetKey` values must have the same `app_id`
	// key name in the `additionalTargetKeys`. 4. No two modification
	// requests can reference the same `policySchema` + ` policyTargetKey`
	// pair.
	Requests []*GoogleChromePolicyVersionsV1DeleteGroupPolicyRequest `json:"requests,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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:"-"`
}

GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest: Request message for specifying that multiple policy values will be deleted.

func (*GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1BatchInheritOrgUnitPoliciesRequest added in v0.100.0

type GoogleChromePolicyVersionsV1BatchInheritOrgUnitPoliciesRequest struct {
	// Requests: List of policies that have to inherit their values as
	// defined by the `requests`. All requests in the list must follow these
	// restrictions: 1. All schemas in the list must have the same root
	// namespace. 2. All `policyTargetKey.targetResource` values must point
	// to an org unit resource. 3. All `policyTargetKey` values must have
	// the same key names in the ` additionalTargetKeys`. This also means if
	// one of the targets has an empty `additionalTargetKeys` map, all of
	// the targets must have an empty `additionalTargetKeys` map. 4. No two
	// modification requests can reference the same `policySchema` + `
	// policyTargetKey` pair.
	Requests []*GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest `json:"requests,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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:"-"`
}

GoogleChromePolicyVersionsV1BatchInheritOrgUnitPoliciesRequest: Request message for specifying that multiple policy values inherit their value from their parents.

func (*GoogleChromePolicyVersionsV1BatchInheritOrgUnitPoliciesRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest added in v0.100.0

type GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest struct {
	// Requests: List of policies to modify as defined by the `requests`.
	// All requests in the list must follow these restrictions: 1. All
	// schemas in the list must have the same root namespace. 2. All
	// `policyTargetKey.targetResource` values must point to a group
	// resource. 3. All `policyTargetKey` values must have the same `app_id`
	// key name in the `additionalTargetKeys`. 4. No two modification
	// requests can reference the same `policySchema` + ` policyTargetKey`
	// pair.
	Requests []*GoogleChromePolicyVersionsV1ModifyGroupPolicyRequest `json:"requests,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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:"-"`
}

GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest: Request message for modifying multiple policy values for a specific group-based target.

func (*GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest added in v0.100.0

type GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest struct {
	// Requests: List of policies to modify as defined by the `requests`.
	// All requests in the list must follow these restrictions: 1. All
	// schemas in the list must have the same root namespace. 2. All
	// `policyTargetKey.targetResource` values must point to an org unit
	// resource. 3. All `policyTargetKey` values must have the same key
	// names in the ` additionalTargetKeys`. This also means if one of the
	// targets has an empty `additionalTargetKeys` map, all of the targets
	// must have an empty `additionalTargetKeys` map. 4. No two modification
	// requests can reference the same `policySchema` + ` policyTargetKey`
	// pair.
	Requests []*GoogleChromePolicyVersionsV1ModifyOrgUnitPolicyRequest `json:"requests,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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:"-"`
}

GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest: Request message for modifying multiple policy values for a specific target.

func (*GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1CertificateReference added in v0.101.0

type GoogleChromePolicyVersionsV1CertificateReference struct {
	// Network: Output only. The name of the referencing network.
	Network string `json:"network,omitempty"`

	// OrgUnitId: Output only. The obfuscated id of the org unit the
	// referencing network is in.
	OrgUnitId string `json:"orgUnitId,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Network") 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. "Network") 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:"-"`
}

GoogleChromePolicyVersionsV1CertificateReference: Error information for removing of a specific certificate on a specific target. A reference to a certificate.

func (*GoogleChromePolicyVersionsV1CertificateReference) MarshalJSON added in v0.101.0

type GoogleChromePolicyVersionsV1DefineCertificateRequest added in v0.100.0

type GoogleChromePolicyVersionsV1DefineCertificateRequest struct {
	// CeritificateName: Optional. The optional name of the certificate. If
	// not specified, the certificate issuer will be used as the name.
	CeritificateName string `json:"ceritificateName,omitempty"`

	// Certificate: Required. The raw contents of the .PEM, .CRT, or .CER
	// file.
	Certificate string `json:"certificate,omitempty"`

	// Settings: Optional. Certificate settings within the
	// chrome.networks.certificates namespace.
	Settings []*GoogleChromePolicyVersionsV1NetworkSetting `json:"settings,omitempty"`

	// TargetResource: Required. The target resource on which this
	// certificate is applied. The following resources are supported: *
	// Organizational Unit ("orgunits/{orgunit_id}")
	TargetResource string `json:"targetResource,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CeritificateName") 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. "CeritificateName") 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:"-"`
}

GoogleChromePolicyVersionsV1DefineCertificateRequest: Request object for creating a certificate.

func (*GoogleChromePolicyVersionsV1DefineCertificateRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1DefineCertificateResponse added in v0.100.0

type GoogleChromePolicyVersionsV1DefineCertificateResponse struct {
	// NetworkId: The guid of the certificate created by the action.
	NetworkId string `json:"networkId,omitempty"`

	// Settings: the affiliated settings of the certificate (NOT
	// IMPLEMENTED)
	Settings []*GoogleChromePolicyVersionsV1NetworkSetting `json:"settings,omitempty"`

	// TargetResource: the resource at which the certificate is defined.
	TargetResource string `json:"targetResource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NetworkId") 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. "NetworkId") 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:"-"`
}

GoogleChromePolicyVersionsV1DefineCertificateResponse: Response object for creating a certificate.

func (*GoogleChromePolicyVersionsV1DefineCertificateResponse) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1DefineNetworkRequest added in v0.100.0

type GoogleChromePolicyVersionsV1DefineNetworkRequest struct {
	// Name: Required. Name of the new created network.
	Name string `json:"name,omitempty"`

	// Settings: Required. Detailed network settings.
	Settings []*GoogleChromePolicyVersionsV1NetworkSetting `json:"settings,omitempty"`

	// TargetResource: Required. The target resource on which this new
	// network will be defined. The following resources are supported: *
	// Organizational Unit ("orgunits/{orgunit_id}")
	TargetResource string `json:"targetResource,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`
}

GoogleChromePolicyVersionsV1DefineNetworkRequest: Request object for creating a new network.

func (*GoogleChromePolicyVersionsV1DefineNetworkRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1DefineNetworkResponse added in v0.100.0

type GoogleChromePolicyVersionsV1DefineNetworkResponse struct {
	// NetworkId: Network ID of the new created network.
	NetworkId string `json:"networkId,omitempty"`

	// Settings: Detailed network settings of the new created network
	Settings []*GoogleChromePolicyVersionsV1NetworkSetting `json:"settings,omitempty"`

	// TargetResource: The target resource on which this new network will be
	// defined. The following resources are supported: * Organizational Unit
	// ("orgunits/{orgunit_id}")
	TargetResource string `json:"targetResource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NetworkId") 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. "NetworkId") 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:"-"`
}

GoogleChromePolicyVersionsV1DefineNetworkResponse: Response object for creating a network.

func (*GoogleChromePolicyVersionsV1DefineNetworkResponse) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1DeleteGroupPolicyRequest added in v0.100.0

type GoogleChromePolicyVersionsV1DeleteGroupPolicyRequest struct {
	// PolicySchema: The fully qualified name of the policy schema that is
	// being inherited.
	PolicySchema string `json:"policySchema,omitempty"`

	// PolicyTargetKey: Required. The key of the target for which we want to
	// modify a policy. The target resource must point to a Group.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PolicySchema") 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. "PolicySchema") 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:"-"`
}

GoogleChromePolicyVersionsV1DeleteGroupPolicyRequest: Request parameters for deleting the policy value of a specific group target.

func (*GoogleChromePolicyVersionsV1DeleteGroupPolicyRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1FieldConstraints added in v0.107.0

type GoogleChromePolicyVersionsV1FieldConstraints struct {
	// NumericRangeConstraint: The allowed range for numeric fields.
	NumericRangeConstraint *GoogleChromePolicyVersionsV1NumericRangeConstraint `json:"numericRangeConstraint,omitempty"`

	// UploadedFileConstraints: Constraints on the uploaded file of a file
	// policy. If present, this policy requires a URL that can be fetched by
	// uploading a file with the constraints specified in this proto.
	UploadedFileConstraints *GoogleChromePolicyVersionsV1UploadedFileConstraints `json:"uploadedFileConstraints,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "NumericRangeConstraint") 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. "NumericRangeConstraint")
	// 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:"-"`
}

GoogleChromePolicyVersionsV1FieldConstraints: Information about any range constraints.

func (*GoogleChromePolicyVersionsV1FieldConstraints) MarshalJSON added in v0.107.0

type GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest added in v0.100.0

type GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest struct {
	// PolicySchema: The fully qualified name of the policy schema that is
	// being inherited.
	PolicySchema string `json:"policySchema,omitempty"`

	// PolicyTargetKey: Required. The key of the target for which we want to
	// modify a policy. The target resource must point to an Org Unit.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PolicySchema") 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. "PolicySchema") 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:"-"`
}

GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest: Request parameters for inheriting policy value of a specific org unit target from the policy value of its parent org unit.

func (*GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest added in v0.100.0

type GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest struct {
	// PolicyNamespace: The namespace of the policy type for the request.
	PolicyNamespace string `json:"policyNamespace,omitempty"`

	// PolicySchema: The schema name of the policy for the request.
	PolicySchema string `json:"policySchema,omitempty"`

	// PolicyTargetKey: Required. The key of the target for which we want to
	// retrieve the group priority ordering. The target resource must point
	// to an app.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PolicyNamespace") 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. "PolicyNamespace") 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:"-"`
}

GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest: Request message for listing the group priority ordering of an app.

func (*GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse added in v0.100.0

type GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse struct {
	// GroupIds: Output only. The group IDs, in priority ordering.
	GroupIds []string `json:"groupIds,omitempty"`

	// PolicyNamespace: Output only. The namespace of the policy type of the
	// group IDs.
	PolicyNamespace string `json:"policyNamespace,omitempty"`

	// PolicySchema: Output only. The schema name of the policy for the
	// group IDs.
	PolicySchema string `json:"policySchema,omitempty"`

	// PolicyTargetKey: Output only. The target resource for which the group
	// priority ordering has been retrieved.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "GroupIds") 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. "GroupIds") 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:"-"`
}

GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse: Response message for listing the group priority ordering of an app.

func (*GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1ListPolicySchemasResponse added in v0.100.0

type GoogleChromePolicyVersionsV1ListPolicySchemasResponse struct {
	// NextPageToken: The page token used to get the next page of policy
	// schemas.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PolicySchemas: The list of policy schemas that match the query.
	PolicySchemas []*GoogleChromePolicyVersionsV1PolicySchema `json:"policySchemas,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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:"-"`
}

GoogleChromePolicyVersionsV1ListPolicySchemasResponse: Response message for listing policy schemas that match a filter.

func (*GoogleChromePolicyVersionsV1ListPolicySchemasResponse) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1ModifyGroupPolicyRequest added in v0.100.0

type GoogleChromePolicyVersionsV1ModifyGroupPolicyRequest struct {
	// PolicyTargetKey: Required. The key of the target for which we want to
	// modify a policy. The target resource must point to a Group.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// PolicyValue: The new value for the policy.
	PolicyValue *GoogleChromePolicyVersionsV1PolicyValue `json:"policyValue,omitempty"`

	// UpdateMask: Required. Policy fields to update. Only fields in this
	// mask will be updated; other fields in `policy_value` will be ignored
	// (even if they have values). If a field is in this list it must have a
	// value in 'policy_value'.
	UpdateMask string `json:"updateMask,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PolicyTargetKey") 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. "PolicyTargetKey") 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:"-"`
}

GoogleChromePolicyVersionsV1ModifyGroupPolicyRequest: Request parameters for modifying a policy value for a specific group target.

func (*GoogleChromePolicyVersionsV1ModifyGroupPolicyRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1ModifyOrgUnitPolicyRequest added in v0.100.0

type GoogleChromePolicyVersionsV1ModifyOrgUnitPolicyRequest struct {
	// PolicyTargetKey: Required. The key of the target for which we want to
	// modify a policy. The target resource must point to an Org Unit.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// PolicyValue: The new value for the policy.
	PolicyValue *GoogleChromePolicyVersionsV1PolicyValue `json:"policyValue,omitempty"`

	// UpdateMask: Required. Policy fields to update. Only fields in this
	// mask will be updated; other fields in `policy_value` will be ignored
	// (even if they have values). If a field is in this list it must have a
	// value in 'policy_value'.
	UpdateMask string `json:"updateMask,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PolicyTargetKey") 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. "PolicyTargetKey") 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:"-"`
}

GoogleChromePolicyVersionsV1ModifyOrgUnitPolicyRequest: Request parameters for modifying a policy value for a specific org unit target.

func (*GoogleChromePolicyVersionsV1ModifyOrgUnitPolicyRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1NetworkSetting added in v0.100.0

type GoogleChromePolicyVersionsV1NetworkSetting struct {
	// PolicySchema: The fully qualified name of the network setting.
	PolicySchema string `json:"policySchema,omitempty"`

	// Value: The value of the network setting.
	Value googleapi.RawMessage `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PolicySchema") 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. "PolicySchema") 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:"-"`
}

GoogleChromePolicyVersionsV1NetworkSetting: A network setting contains network configurations.

func (*GoogleChromePolicyVersionsV1NetworkSetting) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1NumericRangeConstraint added in v0.107.0

type GoogleChromePolicyVersionsV1NumericRangeConstraint struct {
	// Maximum: Maximum value.
	Maximum int64 `json:"maximum,omitempty,string"`

	// Minimum: Minimum value.
	Minimum int64 `json:"minimum,omitempty,string"`

	// ForceSendFields is a list of field names (e.g. "Maximum") 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. "Maximum") 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:"-"`
}

GoogleChromePolicyVersionsV1NumericRangeConstraint: A constraint on upper and/or lower bounds, with at least one being set.

func (*GoogleChromePolicyVersionsV1NumericRangeConstraint) MarshalJSON added in v0.107.0

type GoogleChromePolicyVersionsV1PolicyApiLifecycle added in v0.144.0

type GoogleChromePolicyVersionsV1PolicyApiLifecycle struct {
	// DeprecatedInFavorOf: In the event that this policy was deprecated in
	// favor of another policy, the fully qualified namespace(s) of the new
	// policies as they will show in PolicyAPI. Could only be set if
	// policy_api_lifecycle_stage is API_DEPRECATED.
	DeprecatedInFavorOf []string `json:"deprecatedInFavorOf,omitempty"`

	// Description: Description about current life cycle.
	Description string `json:"description,omitempty"`

	// EndSupport: End supporting date for current policy. Attempting to
	// modify a policy after its end support date will result in a Bad
	// Request (400 error). Could only be set if policy_api_lifecycle_stage
	// is API_DEPRECATED.
	EndSupport *GoogleTypeDate `json:"endSupport,omitempty"`

	// PolicyApiLifecycleStage: Indicates current life cycle stage of the
	// policy API.
	//
	// Possible values:
	//   "API_UNSPECIFIED" - Policy Api Lifecycle is Unspecified.
	//   "API_PREVIEW" - Policy is not working yet, but giving developers
	// heads up on format. This stage can transfer to API_DEVELOPEMNT or
	// API_CURRENT.
	//   "API_DEVELOPMENT" - Policy can change format in backward
	// incompatible way (breaking change). This stage can transfer to
	// API_CURRENT or API_DEPRECATED. This could be used for policies
	// launched only to TTs or launched to selected customers for emergency
	// usage.
	//   "API_CURRENT" - Policy in official format. Policy can change format
	// in backward compatible way (non-breaking change). Example: this
	// policy can introduce a new field, which is considered non-breaking
	// change, when field masks are properly utilized. This stage can
	// transfer to API_DEPRECATED.
	//   "API_DEPRECATED" - Please stop using this policy. This policy is
	// deprecated and may/will be removed in the future. Most likely a new
	// policy was introduced to replace this one.
	PolicyApiLifecycleStage string `json:"policyApiLifecycleStage,omitempty"`

	// ScheduledToDeprecatePolicies: Corresponding to
	// deprecated_in_favor_of, the fully qualified namespace(s) of the old
	// policies that will be deprecated because of introduction of this
	// policy. This field should not be manually set but will be set and
	// exposed through PolicyAPI automatically.
	ScheduledToDeprecatePolicies []string `json:"scheduledToDeprecatePolicies,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DeprecatedInFavorOf")
	// 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. "DeprecatedInFavorOf") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicyApiLifecycle: Lifecycle information.

func (*GoogleChromePolicyVersionsV1PolicyApiLifecycle) MarshalJSON added in v0.144.0

type GoogleChromePolicyVersionsV1PolicyModificationError added in v0.111.0

type GoogleChromePolicyVersionsV1PolicyModificationError struct {
	// Errors: Output only. The non-field errors related to the
	// modification.
	Errors []string `json:"errors,omitempty"`

	// FieldErrors: Output only. The error messages related to the
	// modification.
	FieldErrors []*GoogleChromePolicyVersionsV1PolicyModificationFieldError `json:"fieldErrors,omitempty"`

	// PolicySchema: Output only. The specific policy schema modification
	// that had an error.
	PolicySchema string `json:"policySchema,omitempty"`

	// PolicyTargetKey: Output only. The specific policy target modification
	// that had error.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicyModificationError: Error information for a modification request of a specific policy on a specific target.

func (*GoogleChromePolicyVersionsV1PolicyModificationError) MarshalJSON added in v0.111.0

type GoogleChromePolicyVersionsV1PolicyModificationErrorDetails added in v0.111.0

type GoogleChromePolicyVersionsV1PolicyModificationErrorDetails struct {
	// ModificationErrors: Output only. List of specific policy
	// modifications errors that may have occurred during a modifying
	// request.
	ModificationErrors []*GoogleChromePolicyVersionsV1PolicyModificationError `json:"modificationErrors,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ModificationErrors")
	// 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. "ModificationErrors") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicyModificationErrorDetails: Details of the errors encountered during a policy modification request. This message will be returned as part of the details of a google.rpc.Status returned to the user when there is an error in their request.

func (*GoogleChromePolicyVersionsV1PolicyModificationErrorDetails) MarshalJSON added in v0.111.0

type GoogleChromePolicyVersionsV1PolicyModificationFieldError added in v0.100.0

type GoogleChromePolicyVersionsV1PolicyModificationFieldError struct {
	// Error: Output only. The error message related to the field.
	Error string `json:"error,omitempty"`

	// Field: Output only. The name of the field with the error.
	Field string `json:"field,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicyModificationFieldError: Error information for a modification request of a specific field on a specific policy.

func (*GoogleChromePolicyVersionsV1PolicyModificationFieldError) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchema added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchema struct {
	// AccessRestrictions: Output only. Specific access restrictions related
	// to this policy.
	AccessRestrictions []string `json:"accessRestrictions,omitempty"`

	// AdditionalTargetKeyNames: Output only. Additional key names that will
	// be used to identify the target of the policy value. When specifying a
	// `policyTargetKey`, each of the additional keys specified here will
	// have to be included in the `additionalTargetKeys` map.
	AdditionalTargetKeyNames []*GoogleChromePolicyVersionsV1AdditionalTargetKeyName `json:"additionalTargetKeyNames,omitempty"`

	// CategoryTitle: Title of the category in which a setting belongs.
	CategoryTitle string `json:"categoryTitle,omitempty"`

	// Definition: Schema definition using proto descriptor.
	Definition *Proto2FileDescriptorProto `json:"definition,omitempty"`

	// FieldDescriptions: Output only. Detailed description of each field
	// that is part of the schema. Fields are suggested to be displayed by
	// the ordering in this list, not by field number.
	FieldDescriptions []*GoogleChromePolicyVersionsV1PolicySchemaFieldDescription `json:"fieldDescriptions,omitempty"`

	// Name: Format:
	// name=customers/{customer}/policySchemas/{schema_namespace}
	Name string `json:"name,omitempty"`

	// Notices: Output only. Special notice messages related to setting
	// certain values in certain fields in the schema.
	Notices []*GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription `json:"notices,omitempty"`

	// PolicyApiLifecycle: Output only. Current lifecycle information.
	PolicyApiLifecycle *GoogleChromePolicyVersionsV1PolicyApiLifecycle `json:"policyApiLifecycle,omitempty"`

	// PolicyDescription: Output only. Description about the policy schema
	// for user consumption.
	PolicyDescription string `json:"policyDescription,omitempty"`

	// SchemaName: Output only. The fully qualified name of the policy
	// schema. This value is used to fill the field `policy_schema` in
	// PolicyValue when calling BatchInheritOrgUnitPolicies
	// BatchModifyOrgUnitPolicies BatchModifyGroupPolicies or
	// BatchDeleteGroupPolicies.
	SchemaName string `json:"schemaName,omitempty"`

	// SupportUri: Output only. URI to related support article for this
	// schema.
	SupportUri string `json:"supportUri,omitempty"`

	// SupportedPlatforms: Output only. List indicates that the policy will
	// only apply to devices/users on these platforms.
	//
	// Possible values:
	//   "PLATFORM_UNSPECIFIED" - Unspecified platform.
	//   "CHROME_OS" - ChromeOS.
	//   "CHROME_BROWSER" - Chrome Browser for OSX/Windows/Linux.
	//   "CHROME_BROWSER_FOR_ANDROID" - Chrome Browser for Android.
	//   "CHROME_BROWSER_FOR_IOS" - Chrome Browser for iOS.
	SupportedPlatforms []string `json:"supportedPlatforms,omitempty"`

	// ValidTargetResources: Output only. Information about applicable
	// target resources for the policy.
	//
	// Possible values:
	//   "TARGET_RESOURCE_UNSPECIFIED" - Unspecified target resource.
	//   "ORG_UNIT" - Organizational Unit target resource.
	//   "GROUP" - Group target resource.
	ValidTargetResources []string `json:"validTargetResources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccessRestrictions")
	// 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. "AccessRestrictions") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicySchema: Resource representing a policy schema.

func (*GoogleChromePolicyVersionsV1PolicySchema) MarshalJSON added in v0.100.0

func (s *GoogleChromePolicyVersionsV1PolicySchema) MarshalJSON() ([]byte, error)

type GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies struct {
	// SourceField: The source field which this field depends on.
	SourceField string `json:"sourceField,omitempty"`

	// SourceFieldValue: The value which the source field must have for this
	// field to be allowed to be set.
	SourceFieldValue string `json:"sourceFieldValue,omitempty"`

	// ForceSendFields is a list of field names (e.g. "SourceField") 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. "SourceField") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies: The field and the value it must have for another field to be allowed to be set.

func (*GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaFieldDescription added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaFieldDescription struct {
	// DefaultValue: Output only. Client default if the policy is unset.
	DefaultValue interface{} `json:"defaultValue,omitempty"`

	// Description: Deprecated. Use name and field_description instead. The
	// description for the field.
	Description string `json:"description,omitempty"`

	// Field: Output only. The name of the field for associated with this
	// description.
	Field string `json:"field,omitempty"`

	// FieldConstraints: Output only. Information on any input constraints
	// associated on the values for the field.
	FieldConstraints *GoogleChromePolicyVersionsV1FieldConstraints `json:"fieldConstraints,omitempty"`

	// FieldDependencies: Output only. Provides a list of fields and values.
	// At least one of the fields must have the corresponding value in order
	// for this field to be allowed to be set.
	FieldDependencies []*GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies `json:"fieldDependencies,omitempty"`

	// FieldDescription: Output only. The description of the field.
	FieldDescription string `json:"fieldDescription,omitempty"`

	// InputConstraint: Output only. Any input constraints associated on the
	// values for the field.
	InputConstraint string `json:"inputConstraint,omitempty"`

	// KnownValueDescriptions: Output only. If the field has a set of known
	// values, this field will provide a description for these values.
	KnownValueDescriptions []*GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription `json:"knownValueDescriptions,omitempty"`

	// Name: Output only. The name of the field.
	Name string `json:"name,omitempty"`

	// NestedFieldDescriptions: Output only. Provides the description of the
	// fields nested in this field, if the field is a message type that
	// defines multiple fields. Fields are suggested to be displayed by the
	// ordering in this list, not by field number.
	NestedFieldDescriptions []*GoogleChromePolicyVersionsV1PolicySchemaFieldDescription `json:"nestedFieldDescriptions,omitempty"`

	// RequiredItems: Output only. Provides a list of fields that are
	// required to be set if this field has a certain value.
	RequiredItems []*GoogleChromePolicyVersionsV1PolicySchemaRequiredItems `json:"requiredItems,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DefaultValue") 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. "DefaultValue") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicySchemaFieldDescription: Provides detailed information for a particular field that is part of a PolicySchema.

func (*GoogleChromePolicyVersionsV1PolicySchemaFieldDescription) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription struct {
	// Description: Output only. Additional description for this value.
	Description string `json:"description,omitempty"`

	// FieldDependencies: Output only. Field conditions required for this
	// value to be valid.
	FieldDependencies []*GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies `json:"fieldDependencies,omitempty"`

	// Value: Output only. The string represenstation of the value that can
	// be set for the field.
	Value string `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription: Provides detailed information about a known value that is allowed for a particular field in a PolicySchema.

func (*GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription struct {
	// AcknowledgementRequired: Output only. Whether the user needs to
	// acknowledge the notice message before the value can be set.
	AcknowledgementRequired bool `json:"acknowledgementRequired,omitempty"`

	// Field: Output only. The field name associated with the notice.
	Field string `json:"field,omitempty"`

	// NoticeMessage: Output only. The notice message associate with the
	// value of the field.
	NoticeMessage string `json:"noticeMessage,omitempty"`

	// NoticeValue: Output only. The value of the field that has a notice.
	// When setting the field to this value, the user may be required to
	// acknowledge the notice message in order for the value to be set.
	NoticeValue string `json:"noticeValue,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "AcknowledgementRequired") 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. "AcknowledgementRequired")
	// 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:"-"`
}

GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription: Provides special notice messages related to a particular value in a field that is part of a PolicySchema.

func (*GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaRequiredItems added in v0.100.0

type GoogleChromePolicyVersionsV1PolicySchemaRequiredItems struct {
	// FieldConditions: The value(s) of the field that provoke required
	// field enforcement. An empty field_conditions implies that any value
	// assigned to this field will provoke required field enforcement.
	FieldConditions []string `json:"fieldConditions,omitempty"`

	// RequiredFields: The fields that are required as a consequence of the
	// field conditions.
	RequiredFields []string `json:"requiredFields,omitempty"`

	// ForceSendFields is a list of field names (e.g. "FieldConditions") 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. "FieldConditions") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicySchemaRequiredItems: The fields that will become required based on the value of this field.

func (*GoogleChromePolicyVersionsV1PolicySchemaRequiredItems) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1PolicyTargetKey added in v0.100.0

type GoogleChromePolicyVersionsV1PolicyTargetKey struct {
	// AdditionalTargetKeys: Map containing the additional target key name
	// and value pairs used to further identify the target of the policy.
	AdditionalTargetKeys map[string]string `json:"additionalTargetKeys,omitempty"`

	// TargetResource: The target resource on which this policy is applied.
	// The following resources are supported: * Organizational Unit
	// ("orgunits/{orgunit_id}") * Group ("groups/{group_id}")
	TargetResource string `json:"targetResource,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "AdditionalTargetKeys") 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. "AdditionalTargetKeys") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicyTargetKey: The key used to identify the target on which the policy will be applied.

func (*GoogleChromePolicyVersionsV1PolicyTargetKey) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1PolicyValue added in v0.100.0

type GoogleChromePolicyVersionsV1PolicyValue struct {
	// PolicySchema: The fully qualified name of the policy schema
	// associated with this policy.
	PolicySchema string `json:"policySchema,omitempty"`

	// Value: The value of the policy that is compatible with the schema
	// that it is associated with.
	Value googleapi.RawMessage `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PolicySchema") 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. "PolicySchema") 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:"-"`
}

GoogleChromePolicyVersionsV1PolicyValue: A particular value for a policy managed by the service.

func (*GoogleChromePolicyVersionsV1PolicyValue) MarshalJSON added in v0.100.0

func (s *GoogleChromePolicyVersionsV1PolicyValue) MarshalJSON() ([]byte, error)

type GoogleChromePolicyVersionsV1RemoveCertificateErrorDetails added in v0.101.0

type GoogleChromePolicyVersionsV1RemoveCertificateErrorDetails struct {
	// CertificateReferences: Output only. If the certificate was not
	// removed, a list of references to the certificate that prevented it
	// from being removed. Only unreferenced certificates can be removed.
	CertificateReferences []*GoogleChromePolicyVersionsV1CertificateReference `json:"certificateReferences,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "CertificateReferences") 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. "CertificateReferences") 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:"-"`
}

GoogleChromePolicyVersionsV1RemoveCertificateErrorDetails: Details of the errors encountered during a remove certificate request. This message will be returned as part of the details of a google.rpc.Status returned to the user when there is an error in their request.

func (*GoogleChromePolicyVersionsV1RemoveCertificateErrorDetails) MarshalJSON added in v0.101.0

type GoogleChromePolicyVersionsV1RemoveCertificateRequest added in v0.100.0

type GoogleChromePolicyVersionsV1RemoveCertificateRequest struct {
	// NetworkId: Required. The GUID of the certificate to remove.
	NetworkId string `json:"networkId,omitempty"`

	// TargetResource: Required. The target resource on which this
	// certificate will be removed. The following resources are supported: *
	// Organizational Unit ("orgunits/{orgunit_id}")
	TargetResource string `json:"targetResource,omitempty"`

	// ForceSendFields is a list of field names (e.g. "NetworkId") 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. "NetworkId") 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:"-"`
}

GoogleChromePolicyVersionsV1RemoveCertificateRequest: Request object for removing a certificate.

func (*GoogleChromePolicyVersionsV1RemoveCertificateRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1RemoveCertificateResponse added in v0.100.0

type GoogleChromePolicyVersionsV1RemoveCertificateResponse struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

GoogleChromePolicyVersionsV1RemoveCertificateResponse: Response object for removing a certificate.

type GoogleChromePolicyVersionsV1RemoveNetworkRequest added in v0.100.0

type GoogleChromePolicyVersionsV1RemoveNetworkRequest struct {
	// NetworkId: Required. The GUID of the network to remove.
	NetworkId string `json:"networkId,omitempty"`

	// TargetResource: Required. The target resource on which this network
	// will be removed. The following resources are supported: *
	// Organizational Unit ("orgunits/{orgunit_id}")
	TargetResource string `json:"targetResource,omitempty"`

	// ForceSendFields is a list of field names (e.g. "NetworkId") 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. "NetworkId") 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:"-"`
}

GoogleChromePolicyVersionsV1RemoveNetworkRequest: Request object for removing a network

func (*GoogleChromePolicyVersionsV1RemoveNetworkRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1RemoveNetworkResponse added in v0.100.0

type GoogleChromePolicyVersionsV1RemoveNetworkResponse struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

GoogleChromePolicyVersionsV1RemoveNetworkResponse: Response object for removing a network.

type GoogleChromePolicyVersionsV1ResolveRequest added in v0.100.0

type GoogleChromePolicyVersionsV1ResolveRequest struct {
	// PageSize: The maximum number of policies to return, defaults to 100
	// and has a maximum of 1000.
	PageSize int64 `json:"pageSize,omitempty"`

	// PageToken: The page token used to retrieve a specific page of the
	// request.
	PageToken string `json:"pageToken,omitempty"`

	// PolicySchemaFilter: Required. The schema filter to apply to the
	// resolve request. Specify a schema name to view a particular schema,
	// for example: chrome.users.ShowLogoutButton Wildcards are supported,
	// but only in the leaf portion of the schema name. Wildcards cannot be
	// used in namespace directly. Please read
	// https://developers.google.com/chrome/policy/guides/policy-schemas for
	// details on schema namespaces. For example: Valid: "chrome.users.*",
	// "chrome.users.apps.*", "chrome.printers.*" Invalid: "*", "*.users",
	// "chrome.*", "chrome.*.apps.*"
	PolicySchemaFilter string `json:"policySchemaFilter,omitempty"`

	// PolicyTargetKey: Required. The key of the target resource on which
	// the policies should be resolved.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PageSize") 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. "PageSize") 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:"-"`
}

GoogleChromePolicyVersionsV1ResolveRequest: Request message for getting the resolved policy value for a specific target.

func (*GoogleChromePolicyVersionsV1ResolveRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1ResolveResponse added in v0.100.0

type GoogleChromePolicyVersionsV1ResolveResponse struct {
	// NextPageToken: The page token used to get the next set of resolved
	// policies found by the request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ResolvedPolicies: The list of resolved policies found by the resolve
	// request.
	ResolvedPolicies []*GoogleChromePolicyVersionsV1ResolvedPolicy `json:"resolvedPolicies,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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:"-"`
}

GoogleChromePolicyVersionsV1ResolveResponse: Response message for getting the resolved policy value for a specific target.

func (*GoogleChromePolicyVersionsV1ResolveResponse) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1ResolvedPolicy added in v0.100.0

type GoogleChromePolicyVersionsV1ResolvedPolicy struct {
	// AddedSourceKey: Output only. The added source key establishes at
	// which level an entity was explicitly added for management. This is
	// useful for certain type of policies that are only applied if they are
	// explicitly added for management. For example: apps and networks. An
	// entity can only be deleted from management in an Organizational Unit
	// that it was explicitly added to. If this is not present it means that
	// the policy is managed without the need to explicitly add an entity,
	// for example: standard user or device policies.
	AddedSourceKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"addedSourceKey,omitempty"`

	// SourceKey: Output only. The source resource from which this policy
	// value is obtained. May be the same as `targetKey` if the policy is
	// directly modified on the target, otherwise it would be another
	// resource from which the policy gets its value (if applicable). If not
	// present, the source is the default value for the customer.
	SourceKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"sourceKey,omitempty"`

	// TargetKey: Output only. The target resource for which the resolved
	// policy value applies.
	TargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"targetKey,omitempty"`

	// Value: Output only. The resolved value of the policy.
	Value *GoogleChromePolicyVersionsV1PolicyValue `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AddedSourceKey") 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. "AddedSourceKey") 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:"-"`
}

GoogleChromePolicyVersionsV1ResolvedPolicy: The resolved value of a policy for a given target.

func (*GoogleChromePolicyVersionsV1ResolvedPolicy) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest added in v0.100.0

type GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest struct {
	// GroupIds: Required. The group IDs, in desired priority ordering.
	GroupIds []string `json:"groupIds,omitempty"`

	// PolicyNamespace: The namespace of the policy type for the request.
	PolicyNamespace string `json:"policyNamespace,omitempty"`

	// PolicySchema: The schema name of the policy for the request.
	PolicySchema string `json:"policySchema,omitempty"`

	// PolicyTargetKey: Required. The key of the target for which we want to
	// update the group priority ordering. The target resource must point to
	// an app.
	PolicyTargetKey *GoogleChromePolicyVersionsV1PolicyTargetKey `json:"policyTargetKey,omitempty"`

	// ForceSendFields is a list of field names (e.g. "GroupIds") 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. "GroupIds") 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:"-"`
}

GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest: Request message for updating the group priority ordering of an app.

func (*GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest) MarshalJSON added in v0.100.0

type GoogleChromePolicyVersionsV1UploadPolicyFileRequest added in v0.97.0

type GoogleChromePolicyVersionsV1UploadPolicyFileRequest struct {
	// PolicyField: Required. The fully qualified policy schema and field
	// name this file is uploaded for. This information will be used to
	// validate the content type of the file.
	PolicyField string `json:"policyField,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PolicyField") 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. "PolicyField") 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:"-"`
}

GoogleChromePolicyVersionsV1UploadPolicyFileRequest: Request message for uploading a file for a policy.

func (*GoogleChromePolicyVersionsV1UploadPolicyFileRequest) MarshalJSON added in v0.97.0

type GoogleChromePolicyVersionsV1UploadPolicyFileResponse added in v0.97.0

type GoogleChromePolicyVersionsV1UploadPolicyFileResponse struct {
	// DownloadUri: The uri for end user to download the file.
	DownloadUri string `json:"downloadUri,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "DownloadUri") 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. "DownloadUri") 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:"-"`
}

GoogleChromePolicyVersionsV1UploadPolicyFileResponse: Response message for downloading an uploaded file.

func (*GoogleChromePolicyVersionsV1UploadPolicyFileResponse) MarshalJSON added in v0.97.0

type GoogleChromePolicyVersionsV1UploadedFileConstraints added in v0.157.0

type GoogleChromePolicyVersionsV1UploadedFileConstraints struct {
	// SizeLimitBytes: The size limit of uploaded files for a setting, in
	// bytes.
	SizeLimitBytes int64 `json:"sizeLimitBytes,omitempty,string"`

	// SupportedContentTypes: File types that can be uploaded for a setting.
	//
	// Possible values:
	//   "CONTENT_TYPE_UNSPECIFIED" - Unspecified content type.
	//   "CONTENT_TYPE_PLAIN_TEXT" - Plain text.
	//   "CONTENT_TYPE_HTML" - HTML.
	//   "CONTENT_TYPE_IMAGE_JPEG" - JPEG.
	//   "CONTENT_TYPE_IMAGE_GIF" - GIF.
	//   "CONTENT_TYPE_IMAGE_PNG" - PNG.
	//   "CONTENT_TYPE_JSON" - JSON.
	//   "CONTENT_TYPE_ZIP" - ZIP.
	//   "CONTENT_TYPE_GZIP" - GZIP.
	//   "CONTENT_TYPE_CSV" - CSV.
	//   "CONTENT_TYPE_YAML" - YAML.
	//   "CONTENT_TYPE_IMAGE_WEBP" - WEBP.
	SupportedContentTypes []string `json:"supportedContentTypes,omitempty"`

	// ForceSendFields is a list of field names (e.g. "SizeLimitBytes") 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. "SizeLimitBytes") 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:"-"`
}

GoogleChromePolicyVersionsV1UploadedFileConstraints: Constraints on the uploaded file of a file policy.

func (*GoogleChromePolicyVersionsV1UploadedFileConstraints) MarshalJSON added in v0.157.0

type GoogleProtobufEmpty

type GoogleProtobufEmpty struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

GoogleProtobufEmpty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

type GoogleTypeDate added in v0.61.0

type GoogleTypeDate struct {
	// Day: Day of a month. Must be from 1 to 31 and valid for the year and
	// month, or 0 to specify a year by itself or a year and month where the
	// day isn't significant.
	Day int64 `json:"day,omitempty"`

	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year
	// without a month and day.
	Month int64 `json:"month,omitempty"`

	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a
	// date without a year.
	Year int64 `json:"year,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Day") 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. "Day") 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:"-"`
}

GoogleTypeDate: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp

func (*GoogleTypeDate) MarshalJSON added in v0.61.0

func (s *GoogleTypeDate) MarshalJSON() ([]byte, error)

type MediaService added in v0.46.0

type MediaService struct {
	// contains filtered or unexported fields
}

func NewMediaService added in v0.46.0

func NewMediaService(s *Service) *MediaService

func (*MediaService) Upload added in v0.46.0

func (r *MediaService) Upload(customer string, googlechromepolicyversionsv1uploadpolicyfilerequest *GoogleChromePolicyVersionsV1UploadPolicyFileRequest) *MediaUploadCall

Upload: Creates an enterprise file from the content provided by user. Returns a public download url for end user.

- customer: The customer for which the file upload will apply.

type MediaUploadCall added in v0.46.0

type MediaUploadCall struct {
	// contains filtered or unexported fields
}

func (*MediaUploadCall) Context added in v0.46.0

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. This context will supersede any context previously provided to the ResumableMedia method.

func (*MediaUploadCall) Do added in v0.46.0

Do executes the "chromepolicy.media.upload" call. Exactly one of *GoogleChromePolicyVersionsV1UploadPolicyFileResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleChromePolicyVersionsV1UploadPolicyFileResponse.ServerResponse.H eader 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 (*MediaUploadCall) Fields added in v0.46.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MediaUploadCall) Header added in v0.46.0

func (c *MediaUploadCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MediaUploadCall) Media added in v0.46.0

func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*MediaUploadCall) ProgressUpdater added in v0.46.0

func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*MediaUploadCall) ResumableMedia deprecated added in v0.46.0

func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type Proto2DescriptorProto

type Proto2DescriptorProto struct {
	EnumType []*Proto2EnumDescriptorProto `json:"enumType,omitempty"`

	Field []*Proto2FieldDescriptorProto `json:"field,omitempty"`

	Name string `json:"name,omitempty"`

	NestedType []*Proto2DescriptorProto `json:"nestedType,omitempty"`

	OneofDecl []*Proto2OneofDescriptorProto `json:"oneofDecl,omitempty"`

	// ForceSendFields is a list of field names (e.g. "EnumType") 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. "EnumType") 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:"-"`
}

Proto2DescriptorProto: Describes a message type.

func (*Proto2DescriptorProto) MarshalJSON

func (s *Proto2DescriptorProto) MarshalJSON() ([]byte, error)

type Proto2EnumDescriptorProto

type Proto2EnumDescriptorProto struct {
	Name string `json:"name,omitempty"`

	Value []*Proto2EnumValueDescriptorProto `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`
}

Proto2EnumDescriptorProto: Describes an enum type.

func (*Proto2EnumDescriptorProto) MarshalJSON

func (s *Proto2EnumDescriptorProto) MarshalJSON() ([]byte, error)

type Proto2EnumValueDescriptorProto

type Proto2EnumValueDescriptorProto struct {
	Name string `json:"name,omitempty"`

	Number int64 `json:"number,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`
}

Proto2EnumValueDescriptorProto: Describes a value within an enum.

func (*Proto2EnumValueDescriptorProto) MarshalJSON

func (s *Proto2EnumValueDescriptorProto) MarshalJSON() ([]byte, error)

type Proto2FieldDescriptorProto

type Proto2FieldDescriptorProto struct {
	// DefaultValue: For numeric types, contains the original text
	// representation of the value. For booleans, "true" or "false". For
	// strings, contains the default text contents (not escaped in any way).
	// For bytes, contains the C escaped value. All bytes >= 128 are
	// escaped.
	DefaultValue string `json:"defaultValue,omitempty"`

	// JsonName: JSON name of this field. The value is set by protocol
	// compiler. If the user has set a "json_name" option on this field,
	// that option's value will be used. Otherwise, it's deduced from the
	// field's name by converting it to camelCase.
	JsonName string `json:"jsonName,omitempty"`

	// Possible values:
	//   "LABEL_OPTIONAL" - 0 is reserved for errors
	//   "LABEL_REPEATED"
	//   "LABEL_REQUIRED" - The required label is only allowed in proto2. In
	// proto3 and Editions it's explicitly prohibited. In Editions, the
	// `field_presence` feature can be used to get this behavior.
	Label string `json:"label,omitempty"`

	Name string `json:"name,omitempty"`

	Number int64 `json:"number,omitempty"`

	// OneofIndex: If set, gives the index of a oneof in the containing
	// type's oneof_decl list. This field is a member of that oneof.
	OneofIndex int64 `json:"oneofIndex,omitempty"`

	// Proto3Optional: If true, this is a proto3 "optional". When a proto3
	// field is optional, it tracks presence regardless of field type. When
	// proto3_optional is true, this field must belong to a oneof to signal
	// to old proto3 clients that presence is tracked for this field. This
	// oneof is known as a "synthetic" oneof, and this field must be its
	// sole member (each proto3 optional field gets its own synthetic
	// oneof). Synthetic oneofs exist in the descriptor only, and do not
	// generate any API. Synthetic oneofs must be ordered after all "real"
	// oneofs. For message fields, proto3_optional doesn't create any
	// semantic change, since non-repeated message fields always track
	// presence. However it still indicates the semantic detail of whether
	// the user wrote "optional" or not. This can be useful for
	// round-tripping the .proto file. For consistency we give message
	// fields a synthetic oneof also, even though it is not required to
	// track presence. This is especially important because the parser can't
	// tell if a field is a message or an enum, so it must always create a
	// synthetic oneof. Proto2 optional fields do not set this flag, because
	// they already indicate optional with `LABEL_OPTIONAL`.
	Proto3Optional bool `json:"proto3Optional,omitempty"`

	// Type: If type_name is set, this need not be set. If both this and
	// type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or
	// TYPE_GROUP.
	//
	// Possible values:
	//   "TYPE_DOUBLE" - 0 is reserved for errors. Order is weird for
	// historical reasons.
	//   "TYPE_FLOAT"
	//   "TYPE_INT64" - Not ZigZag encoded. Negative numbers take 10 bytes.
	// Use TYPE_SINT64 if negative values are likely.
	//   "TYPE_UINT64"
	//   "TYPE_INT32" - Not ZigZag encoded. Negative numbers take 10 bytes.
	// Use TYPE_SINT32 if negative values are likely.
	//   "TYPE_FIXED64"
	//   "TYPE_FIXED32"
	//   "TYPE_BOOL"
	//   "TYPE_STRING"
	//   "TYPE_GROUP" - Tag-delimited aggregate. Group type is deprecated
	// and not supported after proto2. However, Proto3 implementations
	// should still be able to parse the group wire format and treat group
	// fields as unknown fields. In Editions, the group wire format can be
	// enabled via the `message_encoding` feature.
	//   "TYPE_MESSAGE" - Length-delimited aggregate.
	//   "TYPE_BYTES" - New in version 2.
	//   "TYPE_UINT32"
	//   "TYPE_ENUM"
	//   "TYPE_SFIXED32"
	//   "TYPE_SFIXED64"
	//   "TYPE_SINT32" - Uses ZigZag encoding.
	//   "TYPE_SINT64" - Uses ZigZag encoding.
	Type string `json:"type,omitempty"`

	// TypeName: For message and enum types, this is the name of the type.
	// If the name starts with a '.', it is fully-qualified. Otherwise,
	// C++-like scoping rules are used to find the type (i.e. first the
	// nested types within this message are searched, then within the
	// parent, on up to the root namespace).
	TypeName string `json:"typeName,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DefaultValue") 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. "DefaultValue") 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:"-"`
}

Proto2FieldDescriptorProto: Describes a field within a message.

func (*Proto2FieldDescriptorProto) MarshalJSON

func (s *Proto2FieldDescriptorProto) MarshalJSON() ([]byte, error)

type Proto2FileDescriptorProto

type Proto2FileDescriptorProto struct {
	// EditionDeprecated: BEGIN GOOGLE-INTERNAL TODO(b/297898292) Deprecate
	// and remove this field in favor of enums. END GOOGLE-INTERNAL
	EditionDeprecated string `json:"editionDeprecated,omitempty"`

	EnumType []*Proto2EnumDescriptorProto `json:"enumType,omitempty"`

	// MessageType: All top-level definitions in this file.
	MessageType []*Proto2DescriptorProto `json:"messageType,omitempty"`

	// Name: file name, relative to root of source tree
	Name string `json:"name,omitempty"`

	// Package: e.g. "foo", "foo.bar", etc.
	Package string `json:"package,omitempty"`

	// Syntax: The syntax of the proto file. The supported values are
	// "proto2", "proto3", and "editions". If `edition` is present, this
	// value must be "editions".
	Syntax string `json:"syntax,omitempty"`

	// ForceSendFields is a list of field names (e.g. "EditionDeprecated")
	// 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. "EditionDeprecated") 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:"-"`
}

Proto2FileDescriptorProto: Describes a complete .proto file.

func (*Proto2FileDescriptorProto) MarshalJSON

func (s *Proto2FileDescriptorProto) MarshalJSON() ([]byte, error)

type Proto2OneofDescriptorProto

type Proto2OneofDescriptorProto struct {
	Name string `json:"name,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`
}

Proto2OneofDescriptorProto: Describes a oneof.

func (*Proto2OneofDescriptorProto) MarshalJSON

func (s *Proto2OneofDescriptorProto) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Customers *CustomersService

	Media *MediaService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

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

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL