checks

package
v0.135.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package checks provides access to the Checks API.

For product documentation, see: https://developers.google.com/checks

Creating a client

Usage example:

import "google.golang.org/api/checks/v1alpha"
...
ctx := context.Background()
checksService, err := checks.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

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

checksService, err := checks.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

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

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsAppsOperationsCancelCall added in v0.133.0

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

func (*AccountsAppsOperationsCancelCall) Context added in v0.133.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 (*AccountsAppsOperationsCancelCall) Do added in v0.133.0

Do executes the "checks.accounts.apps.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*AccountsAppsOperationsCancelCall) Fields added in v0.133.0

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

func (*AccountsAppsOperationsCancelCall) Header added in v0.133.0

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

type AccountsAppsOperationsDeleteCall added in v0.133.0

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

func (*AccountsAppsOperationsDeleteCall) Context added in v0.133.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 (*AccountsAppsOperationsDeleteCall) Do added in v0.133.0

Do executes the "checks.accounts.apps.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*AccountsAppsOperationsDeleteCall) Fields added in v0.133.0

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

func (*AccountsAppsOperationsDeleteCall) Header added in v0.133.0

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

type AccountsAppsOperationsGetCall

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

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

Do executes the "checks.accounts.apps.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*AccountsAppsOperationsGetCall) Fields

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

func (*AccountsAppsOperationsGetCall) Header

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

func (*AccountsAppsOperationsGetCall) 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 AccountsAppsOperationsListCall added in v0.133.0

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

func (*AccountsAppsOperationsListCall) Context added in v0.133.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 (*AccountsAppsOperationsListCall) Do added in v0.133.0

Do executes the "checks.accounts.apps.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.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 (*AccountsAppsOperationsListCall) Fields added in v0.133.0

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

func (*AccountsAppsOperationsListCall) Filter added in v0.133.0

Filter sets the optional parameter "filter": The standard list filter.

func (*AccountsAppsOperationsListCall) Header added in v0.133.0

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

func (*AccountsAppsOperationsListCall) IfNoneMatch added in v0.133.0

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 (*AccountsAppsOperationsListCall) PageSize added in v0.133.0

PageSize sets the optional parameter "pageSize": The standard list page size.

func (*AccountsAppsOperationsListCall) PageToken added in v0.133.0

PageToken sets the optional parameter "pageToken": The standard list page token.

func (*AccountsAppsOperationsListCall) Pages added in v0.133.0

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 AccountsAppsOperationsService

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

func NewAccountsAppsOperationsService

func NewAccountsAppsOperationsService(s *Service) *AccountsAppsOperationsService

func (*AccountsAppsOperationsService) Cancel added in v0.133.0

Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*AccountsAppsOperationsService) Delete added in v0.133.0

Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

- name: The name of the operation resource to be deleted.

func (*AccountsAppsOperationsService) Get

Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

- name: The name of the operation resource.

func (*AccountsAppsOperationsService) List added in v0.133.0

List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

func (*AccountsAppsOperationsService) Wait added in v0.133.0

Wait: Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.

- name: The name of the operation resource to wait on.

type AccountsAppsOperationsWaitCall added in v0.133.0

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

func (*AccountsAppsOperationsWaitCall) Context added in v0.133.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 (*AccountsAppsOperationsWaitCall) Do added in v0.133.0

Do executes the "checks.accounts.apps.operations.wait" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*AccountsAppsOperationsWaitCall) Fields added in v0.133.0

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

func (*AccountsAppsOperationsWaitCall) Header added in v0.133.0

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

type AccountsAppsService

type AccountsAppsService struct {
	Operations *AccountsAppsOperationsService
	// contains filtered or unexported fields
}

func NewAccountsAppsService

func NewAccountsAppsService(s *Service) *AccountsAppsService

type AccountsService

type AccountsService struct {
	Apps *AccountsAppsService
	// contains filtered or unexported fields
}

func NewAccountsService

func NewAccountsService(s *Service) *AccountsService

type AnalyzePrivacyPolicyRequest

type AnalyzePrivacyPolicyRequest struct {
	// PrivacyPolicyPageContent: Web page raw HTML content for the privacy
	// policy page to be analyzed. Useful when the client wants to analyze a
	// privacy policy already fetched.
	PrivacyPolicyPageContent string `json:"privacyPolicyPageContent,omitempty"`

	// PrivacyPolicyUri: URL for the privacy policy page to be analyzed.
	// https://linter.aip.dev/140/uri (Use `uri` instead of `url` in field
	// name)
	PrivacyPolicyUri string `json:"privacyPolicyUri,omitempty"`

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

AnalyzePrivacyPolicyRequest: The request proto for AnalyzePrivacyPolicy method.

func (*AnalyzePrivacyPolicyRequest) MarshalJSON

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

type AnalyzePrivacyPolicyResponse

type AnalyzePrivacyPolicyResponse struct {
	// DataPurposeAnnotations: List of all data types in the privacy policy.
	DataPurposeAnnotations []*PolicyPurposeOfUseAnnotation `json:"dataPurposeAnnotations,omitempty"`

	// DataTypeAnnotations: List of all data types in the privacy policy.
	DataTypeAnnotations []*PolicyDataTypeAnnotation `json:"dataTypeAnnotations,omitempty"`

	// HtmlContent: HTML content for the privacy policy page.
	HtmlContent string `json:"htmlContent,omitempty"`

	// LastUpdatedDateInfo: Information about the date when the privacy
	// policy was last updated.
	LastUpdatedDateInfo *LastUpdatedDate `json:"lastUpdatedDateInfo,omitempty"`

	// SectionAnnotations: List of all sections in the privacy policy.
	SectionAnnotations []*PolicySectionAnnotation `json:"sectionAnnotations,omitempty"`

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

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

AnalyzePrivacyPolicyResponse: The response proto for AnalyzePrivacyPolicy method.

func (*AnalyzePrivacyPolicyResponse) MarshalJSON

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

type CancelOperationRequest added in v0.133.0

type CancelOperationRequest struct {
}

CancelOperationRequest: The request message for Operations.CancelOperation.

type Date

type Date 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:"-"`
}

Date: 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 (*Date) MarshalJSON

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

type Empty added in v0.133.0

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

Empty: 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 FindPrivacyPolicyResponse added in v0.135.0

type FindPrivacyPolicyResponse struct {
	// PrivacyPolicy: Resource name of the PrivacyPolicy that was found.
	PrivacyPolicy string `json:"privacyPolicy,omitempty"`

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

FindPrivacyPolicyResponse: Operation response for `FindPrivacyPolicy`.

func (*FindPrivacyPolicyResponse) MarshalJSON added in v0.135.0

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

type LastUpdatedDate

type LastUpdatedDate struct {
	// EndOffset: Byte offsets for the end of the date text inside the full
	// text.
	EndOffset int64 `json:"endOffset,omitempty,string"`

	// LastUpdatedDate: Date when the privacy policy was last updated.
	LastUpdatedDate *Date `json:"lastUpdatedDate,omitempty"`

	// StartOffset: Byte offsets for the start of the date text inside the
	// full text.
	StartOffset int64 `json:"startOffset,omitempty,string"`

	// TextContent: The bytes of actual text content in the section. NOTE: -
	// This will correspond to the whole sentence that includes the date. -
	// This field might contain HTML and it is not sanitized.
	TextContent string `json:"textContent,omitempty"`

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

LastUpdatedDate: Information about the date when the privacy policy was last updated.

func (*LastUpdatedDate) MarshalJSON

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

type ListOperationsResponse added in v0.133.0

type ListOperationsResponse struct {
	// NextPageToken: The standard List next-page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Operations: A list of operations that matches the specified filter in
	// the request.
	Operations []*Operation `json:"operations,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:"-"`
}

ListOperationsResponse: The response message for Operations.ListOperations.

func (*ListOperationsResponse) MarshalJSON added in v0.133.0

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

type Operation

type Operation struct {
	// Done: If the value is `false`, it means the operation is still in
	// progress. If `true`, the operation is completed, and either `error`
	// or `response` is available.
	Done bool `json:"done,omitempty"`

	// Error: The error result of the operation in case of failure or
	// cancellation.
	Error *Status `json:"error,omitempty"`

	// Metadata: Service-specific metadata associated with the operation. It
	// typically contains progress information and common metadata such as
	// create time. Some services might not provide such metadata. Any
	// method that returns a long-running operation should document the
	// metadata type, if any.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`

	// Name: The server-assigned name, which is only unique within the same
	// service that originally returns it. If you use the default HTTP
	// mapping, the `name` should be a resource name ending with
	// `operations/{unique_id}`.
	Name string `json:"name,omitempty"`

	// Response: The normal, successful response of the operation. If the
	// original method returns no data on success, such as `Delete`, the
	// response is `google.protobuf.Empty`. If the original method is
	// standard `Get`/`Create`/`Update`, the response should be the
	// resource. For other methods, the response should have the type
	// `XxxResponse`, where `Xxx` is the original method name. For example,
	// if the original method name is `TakeSnapshot()`, the inferred
	// response type is `TakeSnapshotResponse`.
	Response googleapi.RawMessage `json:"response,omitempty"`

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

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

Operation: This resource represents a long-running operation that is the result of a network API call.

func (*Operation) MarshalJSON

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

type PolicyDataTypeAnnotation

type PolicyDataTypeAnnotation struct {
	// DataType: Type of the data mentioned in the policy.
	//
	// Possible values:
	//   "DATA_TYPE_UNSPECIFIED" - Default value.
	//   "CONTACT_INFO_NAME" - Data type on the privacy policy describing
	// Contact Info name.
	//   "CONTACT_INFO_EMAIL_ADDRESS" - Data type on the privacy policy
	// describing Contact Info email address.
	//   "CONTACT_INFO_PHONE_NUMBER" - Data type on the privacy policy
	// describing Contact Info phone number.
	//   "CONTACT_INFO_MAILING_ADDRESS" - Data type on the privacy policy
	// describing Contact Info mailing address.
	//   "CONTACT_INFO_OTHER" - Data type on the privacy policy describing
	// Contact Info other.
	//   "IDENTITY_INFO_OTHER" - Data type on the privacy policy describing
	// Identity Info other.
	//   "USER_CONTENT_EMAIL_MESSAGES" - Data type on the privacy policy
	// describing User Content email messages.
	//   "USER_CONTENT_TEXT_MESSAGES" - Data type on the privacy policy
	// describing User Content text messages.
	//   "USER_CONTENT_OTHER_IN_APP_MESSAGES" - Data type on the privacy
	// policy describing User Content other in-app messages.
	//   "USER_CONTENT_PHOTOS" - Data type on the privacy policy describing
	// User Content photos.
	//   "USER_CONTENT_VIDEOS" - Data type on the privacy policy describing
	// User Content videos.
	//   "USER_CONTENT_MUSIC_FILES" - Data type on the privacy policy
	// describing User Content music files.
	//   "USER_CONTENT_VOICE_OR_SOUND_RECORDINGS" - Data type on the privacy
	// policy describing User Content voice or sound recordings.
	//   "USER_CONTENT_OTHER_AUDIO_FILES" - Data type on the privacy policy
	// describing User Content other audio files.
	//   "USER_CONTENT_FILES_AND_DOCS" - Data type on the privacy policy
	// describing User Content files or documents.
	//   "USER_CONTENT_GAMEPLAY_DATA" - Data type on the privacy policy
	// describing User Content gameplay data.
	//   "USER_CONTENT_CUSTOMER_SUPPORT" - Data type on the privacy policy
	// describing User Content customer support.
	//   "COOKIES_AND_TRACKING_ELEMENTS" - Data type on the privacy policy
	// describing Cookies and other tracking elements, e.g. web beacons.
	//   "BROWSING_HISTORY" - Data type on the privacy policy describing
	// Browsing History.
	//   "SEARCH_HISTORY" - Data type on the privacy policy describing
	// Search History.
	//   "PURCHASE_HISTORY" - Data type on the privacy policy describing
	// Purchase History.
	//   "PRODUCT_INTERACTION" - Data type on the privacy policy describing
	// Product Interaction data.
	//   "USER_GENERATED_CONTENT_OTHER" - Data type on the privacy policy
	// describing other User Generated Content.
	//   "IN_APP_ACTIONS_OTHER" - Data type on the privacy policy describing
	// other User Generated Content.
	//   "ADVERTISING" - Data type on the privacy policy describing
	// Advertising data.
	//   "APP_CRASH_LOGS" - Data type on the privacy policy describing Crash
	// Logs data.
	//   "APP_DIAGNOSTICS" - Data type on the privacy policy describing App
	// Diagnostics data.
	//   "APP_PERFORMANCE_OTHER" - Data type on the privacy policy
	// describing other App Performance data.
	//   "USER_IDENTIFIERS" - Data type on the privacy policy describing
	// User or account-level IDs.
	//   "DEVICE_IDENTIFIERS" - Data type on the privacy policy describing
	// device-level IDs.
	//   "IP_ADDRESS" - Data type on the privacy policy describing IP
	// Addresses.
	//   "CONTACTS" - Data type on the privacy policy describing Contacts
	// data.
	//   "AUTHENTICATION_DATA" - Data type on the privacy policy describing
	// Authentication data, e.g. passwords.
	//   "CALENDAR_EVENTS_OR_NOTES" - Data type on the privacy policy
	// describing Calendar events or notes.
	//   "HEALTH" - Data type on the privacy policy describing Health data.
	//   "FITNESS" - Data type on the privacy policy describing Fitness
	// data.
	//   "LOCATION_PRECISE" - Data type on the privacy policy describing
	// Precise Location data.
	//   "LOCATION_COARSE" - Data type on the privacy policy describing
	// Coarse Location data.
	//   "LOCATION_GENERAL" - Data type on the privacy policy describing
	// general Location data, without specifying precise or coarse.
	//   "APPS_ON_DEVICE" - Data type on the privacy policy describing Apps
	// on Device.
	//   "FINANCIAL_PAYMENT_INFO" - Data type on the privacy policy
	// describing Financial Payment info.
	//   "FINANCIAL_CREDIT_INFO" - Data type on the privacy policy
	// describing Financial Credit info.
	//   "FINANCIAL_OTHER" - Data type on the privacy policy describing
	// Financial other data.
	//   "PERSONAL_INFO_RACE_AND_ETHNICITY" - Data type on the privacy
	// policy describing a user’s race or ethnicity.
	//   "PERSONAL_INFO_POLITICAL_OR_RELIGIOUS_BELIEFS" - Data type on the
	// privacy policy describing a user’s political or religious beliefs.
	//   "PERSONAL_INFO_SEXUAL_ORIENTATION" - Data type on the privacy
	// policy describing a user’s sexual orientation.
	//   "PERSONAL_INFO_OTHER" - Data type on the privacy policy describing
	// Personal Info other.
	//   "GENERIC_PERSONAL_INFORMATION" - Data type on the privacy policy
	// describing generic personal information, e.g. "we collection your
	// personal information."
	//   "UNSPECIFIED_INFORMATION" - Data type on the privacy policy
	// describing information in general with no speicific type, e.g. "we
	// collect information you voluntarily provide."
	//   "OTHER_DATA" - Data type on the privacy policy describing specific
	// types of data that are not covered by others labels, or ambiguous
	// cases where no clear type exists, e.g. "we collect your movement
	// data," which could be location, fitness, or even product interaction,
	// depending on the context.
	DataType string `json:"dataType,omitempty"`

	// EndOffset: Byte offsets for the end of the data type sentence inside
	// the full text.
	EndOffset int64 `json:"endOffset,omitempty,string"`

	// Score: Score given by the model representing how confident it was
	// regarding this `text_content` being of `data_type`.
	Score float64 `json:"score,omitempty"`

	// StartOffset: Byte offsets for the start of the data type sentence
	// inside the full text.
	StartOffset int64 `json:"startOffset,omitempty,string"`

	// TextContent: Actual text content in the section. This makes it much
	// easier to consume the information. NOTE: This field might contain
	// HTML and does not guarantee a SafeHtml security contract
	// go/safehtmltypecontracts#safehtml.
	TextContent string `json:"textContent,omitempty"`

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

func (*PolicyDataTypeAnnotation) MarshalJSON

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

func (*PolicyDataTypeAnnotation) UnmarshalJSON

func (s *PolicyDataTypeAnnotation) UnmarshalJSON(data []byte) error

type PolicyPurposeOfUseAnnotation

type PolicyPurposeOfUseAnnotation struct {
	// EndOffset: Byte offsets for the end of the purpose of use sentence
	// inside the full text.
	EndOffset int64 `json:"endOffset,omitempty,string"`

	// PurposeOfUse: Purpose of use mentioned in the policy.
	//
	// Possible values:
	//   "PURPOSE_OF_USE_UNSPECIFIED" - Default value.
	//   "APP_FUNCTIONALITY" - Data is used for general app functions, or
	// interface with the user, e.g. customer support.
	//   "APP_DIAGNOSTICS_AND_PERFORMANCE" - Data is used for minimizing app
	// crashes, enabling scalability and performance, etc.
	//   "FRAUD_PREVENTION_AND_SECURITY" - Data is used for fraud
	// prevention, protecting user accounts, or other security purposes.
	//   "PRODUCT_PERSONALIZATION" - Data is used for
	// personalizing/customizing what the user sees.
	//   "ANALYTICS" - Data is used for evaluating user behavior, measuring
	// audience size, etc.
	//   "DEVELOPERS_COMMUNICATION_AND_MARKETING" - Data is used for sending
	// marketing communications directly to your users, notifications,
	// reminders, or update notices.
	//   "THIRD_PARTY_ADVERTISING" - Data is used by a third-party to
	// display ads in the app (or elsewhere).
	//   "GENERAL_ADVERTISING" - Data is used for displaying ads in the app,
	// or sharing data with entities who display ads.
	//   "LEGAL_COMPLIANCE" - Data is used for compliance with legal
	// obligations, e.g., regulations, government data requests, law
	// enforcement requests in general, etc.
	//   "MERGERS_AND_ACQUISITIONS" - If a company/organization merges or is
	// acquired it transfers users' information to another
	// company/organization.
	//   "OTHER_SPECIFIED_PURPOSE" - Any other specific purposes that are
	// not listed above.
	//   "NO_PURPOSE_MENTIONED" - The purpose of use is not explicitly
	// stated or unclear.
	PurposeOfUse string `json:"purposeOfUse,omitempty"`

	// Score: Score given by the model representing how confident it was
	// regarding this `text_content` being of `purpose_of_use`.
	Score float64 `json:"score,omitempty"`

	// StartOffset: Byte offsets for the start of the purpose of use
	// sentence inside the full text.
	StartOffset int64 `json:"startOffset,omitempty,string"`

	// TextContent: The bytes of actual text content in the sentence that
	// mentions the purpose of use. This makes it much easier to consume the
	// information. NOTE: This field might contain HTML and does not
	// guarantee a SafeHtml security contract
	// go/safehtmltypecontracts#safehtml.
	TextContent string `json:"textContent,omitempty"`

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

func (*PolicyPurposeOfUseAnnotation) MarshalJSON

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

func (*PolicyPurposeOfUseAnnotation) UnmarshalJSON

func (s *PolicyPurposeOfUseAnnotation) UnmarshalJSON(data []byte) error

type PolicySectionAnnotation

type PolicySectionAnnotation struct {
	// EndOffset: Byte offsets for the end of the section inside the full
	// text.
	EndOffset int64 `json:"endOffset,omitempty,string"`

	// Score: Score given by the model representing how confident it was
	// regarding this `text_content` being of `section_type`.
	Score float64 `json:"score,omitempty"`

	// SectionType: Type of the high-level category in the policy.
	//
	// Possible values:
	//   "SECTION_TYPE_UNSPECIFIED" - Default value.
	//   "FIRST_PARTY_COLLECTION" - Section of the privacy policy describes
	// 1st party collection practices.
	//   "FIRST_PARTY_USE" - Section of the privacy policy describes 1st
	// party use practices.
	//   "THIRD_PARTY_SHARING" - Section of the privacy policy describes 3rd
	// party sharing practices.
	//   "CHILDREN_RELATED" - Section of the privacy policy describes
	// Children related content.
	//   "DATA_RETENTION" - Section of the privacy policy describes data
	// retention practices.
	//   "PRIVACY_CONTACT" - Section of the privacy policy references
	// privacy contact information.
	//   "RIGHT_TO_DELETE" - Section of the privacy policy describes users'
	// right of data deletion.
	//   "RIGHT_TO_RESTRICT_PROCESSING" - Section of the privacy policy
	// about users' right to restrict processing.
	//   "RIGHT_TO_ACCESS" - Section of the privacy policy about users'
	// right to access their data.
	//   "RIGHT_TO_RECTIFICATION" - Section of the privacy policy about
	// users' right to correct inaccuracies.
	//   "RIGHT_TO_KNOW_ABOUT_SELLING" - Section of the privacy policy about
	// users' right to know about information selling.
	//   "RIGHT_TO_KNOW_ABOUT_SHARING" - Section of the privacy policy about
	// users' right to know about information sharing.
	//   "RIGHT_TO_OPT_OUT_FROM_SELLING" - Section of the privacy policy
	// about users' right to opt out from information selling.
	//   "RIGHT_TO_OPT_OUT_FROM_SHARING" - Section of the privacy policy
	// about users' right to opt out from information sharing.
	//   "METHOD_TO_OPT_OUT_FROM_SELLING_OR_SHARING" - Section of the
	// privacy policy about the method to opt out from selling or sharing.
	//   "AUTHORIZED_AGENT" - Section of the privacy policy about the
	// authorized agent designated by user.
	//   "CCPA_CPRA_REFERENCE" - Section of the privacy policy about the
	// mentions of the CCPA or CPRA.
	//   "DATA_PROTECTION_OFFICER" - Section of the privacy policy about the
	// mentions of data protection officer (DPO).
	//   "DATA_CONTROLLER" - Section of the privacy policy about the
	// mentions of a data controller.
	//   "DO_NOT_SELL" - Section of the privacy policy stating that the
	// company does not sell data in general (or as defined by the CCPA),
	// without exceptions.
	//   "GDPR_REFERENCE" - Section of the privacy policy about the mentions
	// of the GDPR (General Data Protection Regulation).
	//   "LAWFUL_LEGAL_BASIS" - Section of the privacy policy about
	// lawful/legal basis for data processing.
	//   "PRIVACY_SHIELD" - Section of the privacy policy about the Privacy
	// Shielf framework.
	//   "RIGHT_TO_LODGE_A_COMPLAINT" - Section of the privacy policy about
	// the right to lodge a complaint with a supervisory authority.
	//   "TRANSFER_MECHANISMS" - Section of the privacy policy about
	// transfer mechanisms of data from the EU to third countries
	//   "NO_CHILDREN_DATA_COLLECTION" - Section of the privacy policy
	// stating that the company does not collect data from children.
	//   "NO_CHILDREN_DATA_SHARING" - Section of the privacy policy stating
	// that the company does not share data from children.
	//   "CHILDREN_INFORMATION_PUBLICITY" - Section of the privacy policy
	// stating whether the app allows children to make their personal
	// information publicly available.
	//   "PARENTS_METHOD_OF_INFORMATION_DELETION" - Section of the privacy
	// policy stating to parents/caregivers/guardians how they can request
	// the deletion of their child's personal information.
	//   "PARENTS_METHOD_TO_INFORMATION_REVIEW" - Section of the privacy
	// policy stating to parents/guardians/caregivers how they can review
	// their child's personal information.
	//   "PARENTS_METHOD_TO_STOP_FURTHER_INFORMATION_COLLECTION_USE" -
	// Section of the privacy policy stating to parents/caregivers/guardians
	// how they can stop the further collection or use of their child's
	// personal information.
	//   "PARENTS_RIGHT_TO_INFORMATION_DELETION" - Section of the privacy
	// policy stating that a parent/caregiver/guardian has the right to
	// request the deletion of their child's personal. information.
	//   "PARENTS_RIGHT_TO_INFORMATION_REVIEW" - Section of the privacy
	// policy stating to parents/guardians/caregivers that they have a right
	// to review their child's personal information.
	//   "PARENTS_RIGHT_TO_STOP_FURTHER_INFORMATION_COLLECTION_USE" -
	// Section of the privacy policy stating to parents/caregivers/guardians
	// that they have the right to stop the further collection or use of
	// their child's personal information.
	SectionType string `json:"sectionType,omitempty"`

	// StartOffset: Byte offsets for the start of the section inside the
	// full text.
	StartOffset int64 `json:"startOffset,omitempty,string"`

	// TextContent: Actual text content in the section. This makes it much
	// easier to consume the information. NOTE: This field might contain
	// HTML and does not guarantee a SafeHtml security contract
	// go/safehtmltypecontracts#safehtml.
	TextContent string `json:"textContent,omitempty"`

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

func (*PolicySectionAnnotation) MarshalJSON

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

func (*PolicySectionAnnotation) UnmarshalJSON

func (s *PolicySectionAnnotation) UnmarshalJSON(data []byte) error

type PrivacypolicyAnalyzeCall

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

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

Do executes the "checks.privacypolicy.analyze" call. Exactly one of *AnalyzePrivacyPolicyResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AnalyzePrivacyPolicyResponse.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 (*PrivacypolicyAnalyzeCall) Fields

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

func (*PrivacypolicyAnalyzeCall) Header

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

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

type PrivacypolicyService

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

func NewPrivacypolicyService

func NewPrivacypolicyService(s *Service) *PrivacypolicyService

func (*PrivacypolicyService) Analyze

func (r *PrivacypolicyService) Analyze(analyzeprivacypolicyrequest *AnalyzePrivacyPolicyRequest) *PrivacypolicyAnalyzeCall

Analyze: Analyzes the privacy policy of the given policy URL or content.

type ProjectsPrivacypolicyOperationsCancelCall added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsCancelCall) Context added in v0.133.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 (*ProjectsPrivacypolicyOperationsCancelCall) Do added in v0.133.0

Do executes the "checks.projects.privacypolicy.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsPrivacypolicyOperationsCancelCall) Fields added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsCancelCall) Header added in v0.133.0

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

type ProjectsPrivacypolicyOperationsDeleteCall added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsDeleteCall) Context added in v0.133.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 (*ProjectsPrivacypolicyOperationsDeleteCall) Do added in v0.133.0

Do executes the "checks.projects.privacypolicy.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsPrivacypolicyOperationsDeleteCall) Fields added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsDeleteCall) Header added in v0.133.0

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

type ProjectsPrivacypolicyOperationsGetCall added in v0.132.0

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

func (*ProjectsPrivacypolicyOperationsGetCall) Context added in v0.132.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 (*ProjectsPrivacypolicyOperationsGetCall) Do added in v0.132.0

Do executes the "checks.projects.privacypolicy.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsPrivacypolicyOperationsGetCall) Fields added in v0.132.0

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

func (*ProjectsPrivacypolicyOperationsGetCall) Header added in v0.132.0

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

func (*ProjectsPrivacypolicyOperationsGetCall) IfNoneMatch added in v0.132.0

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 ProjectsPrivacypolicyOperationsListCall added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsListCall) Context added in v0.133.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 (*ProjectsPrivacypolicyOperationsListCall) Do added in v0.133.0

Do executes the "checks.projects.privacypolicy.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.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 (*ProjectsPrivacypolicyOperationsListCall) Fields added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsListCall) Filter added in v0.133.0

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsPrivacypolicyOperationsListCall) Header added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsListCall) IfNoneMatch added in v0.133.0

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 (*ProjectsPrivacypolicyOperationsListCall) PageSize added in v0.133.0

PageSize sets the optional parameter "pageSize": The standard list page size.

func (*ProjectsPrivacypolicyOperationsListCall) PageToken added in v0.133.0

PageToken sets the optional parameter "pageToken": The standard list page token.

func (*ProjectsPrivacypolicyOperationsListCall) Pages added in v0.133.0

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 ProjectsPrivacypolicyOperationsService added in v0.132.0

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

func NewProjectsPrivacypolicyOperationsService added in v0.132.0

func NewProjectsPrivacypolicyOperationsService(s *Service) *ProjectsPrivacypolicyOperationsService

func (*ProjectsPrivacypolicyOperationsService) Cancel added in v0.133.0

Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*ProjectsPrivacypolicyOperationsService) Delete added in v0.133.0

Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

- name: The name of the operation resource to be deleted.

func (*ProjectsPrivacypolicyOperationsService) Get added in v0.132.0

Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

- name: The name of the operation resource.

func (*ProjectsPrivacypolicyOperationsService) List added in v0.133.0

List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

func (*ProjectsPrivacypolicyOperationsService) Wait added in v0.133.0

Wait: Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.

- name: The name of the operation resource to wait on.

type ProjectsPrivacypolicyOperationsWaitCall added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsWaitCall) Context added in v0.133.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 (*ProjectsPrivacypolicyOperationsWaitCall) Do added in v0.133.0

Do executes the "checks.projects.privacypolicy.operations.wait" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsPrivacypolicyOperationsWaitCall) Fields added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsWaitCall) Header added in v0.133.0

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

func (*ProjectsPrivacypolicyOperationsWaitCall) Timeout added in v0.133.0

Timeout sets the optional parameter "timeout": The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

type ProjectsPrivacypolicyService added in v0.132.0

type ProjectsPrivacypolicyService struct {
	Operations *ProjectsPrivacypolicyOperationsService
	// contains filtered or unexported fields
}

func NewProjectsPrivacypolicyService added in v0.132.0

func NewProjectsPrivacypolicyService(s *Service) *ProjectsPrivacypolicyService

type ProjectsService added in v0.132.0

type ProjectsService struct {
	Privacypolicy *ProjectsPrivacypolicyService
	// contains filtered or unexported fields
}

func NewProjectsService added in v0.132.0

func NewProjectsService(s *Service) *ProjectsService

type Service

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

	Accounts *AccountsService

	Privacypolicy *PrivacypolicyService

	Projects *ProjectsService
	// 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.

type Status

type Status struct {
	// Code: The status code, which should be an enum value of
	// google.rpc.Code.
	Code int64 `json:"code,omitempty"`

	// Details: A list of messages that carry the error details. There is a
	// common set of message types for APIs to use.
	Details []googleapi.RawMessage `json:"details,omitempty"`

	// Message: A developer-facing error message, which should be in
	// English. Any user-facing error message should be localized and sent
	// in the google.rpc.Status.details field, or localized by the client.
	Message string `json:"message,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Code") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Code") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).

func (*Status) MarshalJSON

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

type WaitOperationRequest added in v0.133.0

type WaitOperationRequest struct {
	// Timeout: The maximum duration to wait before timing out. If left
	// blank, the wait will be at most the time permitted by the underlying
	// HTTP/RPC protocol. If RPC context deadline is also specified, the
	// shorter one will be used.
	Timeout string `json:"timeout,omitempty"`

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

WaitOperationRequest: The request message for Operations.WaitOperation.

func (*WaitOperationRequest) MarshalJSON added in v0.133.0

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

Jump to

Keyboard shortcuts

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