recaptchaenterprise

package
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: BSD-3-Clause Imports: 16 Imported by: 1

Documentation

Overview

Package recaptchaenterprise provides access to the reCAPTCHA Enterprise API.

For product documentation, see: https://cloud.google.com/recaptcha-enterprise/

Creating a client

Usage example:

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

recaptchaenterpriseService, err := recaptchaenterprise.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, ...)
recaptchaenterpriseService, err := recaptchaenterprise.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

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

Index

Constants

View Source
const (
	// See, edit, configure, and delete your Google Cloud data and see the
	// email address for your Google Account.
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment struct {
	// Labels: Labels for this request.
	//
	// Possible values:
	//   "ACCOUNT_DEFENDER_LABEL_UNSPECIFIED" - Default unspecified type.
	//   "PROFILE_MATCH" - The request matches a known good profile for the
	// user.
	//   "SUSPICIOUS_LOGIN_ACTIVITY" - The request is potentially a
	// suspicious login event and must be further verified either through
	// multi-factor authentication or another system.
	//   "SUSPICIOUS_ACCOUNT_CREATION" - The request matched a profile that
	// previously had suspicious account creation behavior. This can mean
	// that this is a fake account.
	//   "RELATED_ACCOUNTS_NUMBER_HIGH" - The account in the request has a
	// high number of related accounts. It does not necessarily imply that
	// the account is bad but can require further investigation.
	Labels []string `json:"labels,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment: Account defender risk assessment.

func (*GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment) MarshalJSON added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo added in v0.105.0

type GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo struct {
	// Endpoints: Endpoints that can be used for identity verification.
	Endpoints []*GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo `json:"endpoints,omitempty"`

	// LanguageCode: Language code preference for the verification message,
	// set as a IETF BCP 47 language code.
	LanguageCode string `json:"languageCode,omitempty"`

	// LatestVerificationResult: Output only. Result of the latest account
	// verification challenge.
	//
	// Possible values:
	//   "RESULT_UNSPECIFIED" - No information about the latest account
	// verification.
	//   "SUCCESS_USER_VERIFIED" - The user was successfully verified. This
	// means the account verification challenge was successfully completed.
	//   "ERROR_USER_NOT_VERIFIED" - The user failed the verification
	// challenge.
	//   "ERROR_SITE_ONBOARDING_INCOMPLETE" - The site is not properly
	// onboarded to use the account verification feature.
	//   "ERROR_RECIPIENT_NOT_ALLOWED" - The recipient is not allowed for
	// account verification. This can occur during integration but should
	// not occur in production.
	//   "ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED" - The recipient has already
	// been sent too many verification codes in a short amount of time.
	//   "ERROR_CRITICAL_INTERNAL" - The verification flow could not be
	// completed due to a critical internal error.
	//   "ERROR_CUSTOMER_QUOTA_EXHAUSTED" - The client has exceeded their
	// two factor request quota for this period of time.
	//   "ERROR_VERIFICATION_BYPASSED" - The request cannot be processed at
	// the time because of an incident. This bypass can be restricted to a
	// problematic destination email domain, a customer, or could affect the
	// entire service.
	//   "ERROR_VERDICT_MISMATCH" - The request parameters do not match with
	// the token provided and cannot be processed.
	LatestVerificationResult string `json:"latestVerificationResult,omitempty"`

	// Username: Username of the account that is being verified. Deprecated.
	// Customers should now provide the hashed account ID field in Event.
	Username string `json:"username,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo: Information about account verification, used for identity verification.

func (*GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo) MarshalJSON added in v0.105.0

type GoogleCloudRecaptchaenterpriseV1AndroidKeySettings

type GoogleCloudRecaptchaenterpriseV1AndroidKeySettings struct {
	// AllowAllPackageNames: If set to true, allowed_package_names are not
	// enforced.
	AllowAllPackageNames bool `json:"allowAllPackageNames,omitempty"`

	// AllowedPackageNames: Android package names of apps allowed to use the
	// key. Example: 'com.companyname.appname'
	AllowedPackageNames []string `json:"allowedPackageNames,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1AndroidKeySettings: Settings specific to keys that can be used by Android apps.

func (*GoogleCloudRecaptchaenterpriseV1AndroidKeySettings) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest

type GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest struct {
	// Annotation: Optional. The annotation that will be assigned to the
	// Event. This field can be left empty to provide reasons that apply to
	// an event without concluding whether the event is legitimate or
	// fraudulent.
	//
	// Possible values:
	//   "ANNOTATION_UNSPECIFIED" - Default unspecified type.
	//   "LEGITIMATE" - Provides information that the event turned out to be
	// legitimate.
	//   "FRAUDULENT" - Provides information that the event turned out to be
	// fraudulent.
	//   "PASSWORD_CORRECT" - Provides information that the event was
	// related to a login event in which the user typed the correct
	// password. Deprecated, prefer indicating CORRECT_PASSWORD through the
	// reasons field instead.
	//   "PASSWORD_INCORRECT" - Provides information that the event was
	// related to a login event in which the user typed the incorrect
	// password. Deprecated, prefer indicating INCORRECT_PASSWORD through
	// the reasons field instead.
	Annotation string `json:"annotation,omitempty"`

	// HashedAccountId: Optional. Unique stable hashed user identifier to
	// apply to the assessment. This is an alternative to setting the
	// hashed_account_id in CreateAssessment, for example when the account
	// identifier is not yet known in the initial request. It is recommended
	// that the identifier is hashed using hmac-sha256 with stable secret.
	HashedAccountId string `json:"hashedAccountId,omitempty"`

	// Reasons: Optional. Optional reasons for the annotation that will be
	// assigned to the Event.
	//
	// Possible values:
	//   "REASON_UNSPECIFIED" - Default unspecified reason.
	//   "CHARGEBACK" - Indicates that the transaction had a chargeback
	// issued with no other details. When possible, specify the type by
	// using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
	//   "CHARGEBACK_FRAUD" - Indicates that the transaction had a
	// chargeback issued related to an alleged unauthorized transaction from
	// the cardholder's perspective (for example, the card number was
	// stolen).
	//   "CHARGEBACK_DISPUTE" - Indicates that the transaction had a
	// chargeback issued related to the cardholder having provided their
	// card details but allegedly not being satisfied with the purchase (for
	// example, misrepresentation, attempted cancellation).
	//   "REFUND" - Indicates that the completed payment transaction was
	// refunded by the seller.
	//   "REFUND_FRAUD" - Indicates that the completed payment transaction
	// was determined to be fraudulent by the seller, and was cancelled and
	// refunded as a result.
	//   "TRANSACTION_ACCEPTED" - Indicates that the payment transaction was
	// accepted, and the user was charged.
	//   "TRANSACTION_DECLINED" - Indicates that the payment transaction was
	// declined, for example due to invalid card details.
	//   "PAYMENT_HEURISTICS" - Indicates the transaction associated with
	// the assessment is suspected of being fraudulent based on the payment
	// method, billing details, shipping address or other transaction
	// information.
	//   "INITIATED_TWO_FACTOR" - Indicates that the user was served a 2FA
	// challenge. An old assessment with `ENUM_VALUES.INITIATED_TWO_FACTOR`
	// reason that has not been overwritten with `PASSED_TWO_FACTOR` is
	// treated as an abandoned 2FA flow. This is equivalent to
	// `FAILED_TWO_FACTOR`.
	//   "PASSED_TWO_FACTOR" - Indicates that the user passed a 2FA
	// challenge.
	//   "FAILED_TWO_FACTOR" - Indicates that the user failed a 2FA
	// challenge.
	//   "CORRECT_PASSWORD" - Indicates the user provided the correct
	// password.
	//   "INCORRECT_PASSWORD" - Indicates the user provided an incorrect
	// password.
	//   "SOCIAL_SPAM" - Indicates that the user sent unwanted and abusive
	// messages to other users of the platform, such as spam, scams,
	// phishing, or social engineering.
	Reasons []string `json:"reasons,omitempty"`

	// TransactionEvent: Optional. If the assessment is part of a payment
	// transaction, provide details on payment lifecycle events that occur
	// in the transaction.
	TransactionEvent *GoogleCloudRecaptchaenterpriseV1TransactionEvent `json:"transactionEvent,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest: The request message to annotate an Assessment.

func (*GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse

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

GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse: Empty response for AnnotateAssessment.

type GoogleCloudRecaptchaenterpriseV1Assessment

type GoogleCloudRecaptchaenterpriseV1Assessment struct {
	// AccountDefenderAssessment: Assessment returned by account defender
	// when a hashed_account_id is provided.
	AccountDefenderAssessment *GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment `json:"accountDefenderAssessment,omitempty"`

	// AccountVerification: Account verification information for identity
	// verification. The assessment event must include a token and site key
	// to use this feature.
	AccountVerification *GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo `json:"accountVerification,omitempty"`

	// Event: The event being assessed.
	Event *GoogleCloudRecaptchaenterpriseV1Event `json:"event,omitempty"`

	// FraudPreventionAssessment: Assessment returned by Fraud Prevention
	// when TransactionData is provided.
	FraudPreventionAssessment *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment `json:"fraudPreventionAssessment,omitempty"`

	// Name: Output only. The resource name for the Assessment in the format
	// "projects/{project}/assessments/{assessment}".
	Name string `json:"name,omitempty"`

	// PrivatePasswordLeakVerification: The private password leak
	// verification field contains the parameters that are used to to check
	// for leaks privately without sharing user credentials.
	PrivatePasswordLeakVerification *GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification `json:"privatePasswordLeakVerification,omitempty"`

	// RiskAnalysis: Output only. The risk analysis result for the event
	// being assessed.
	RiskAnalysis *GoogleCloudRecaptchaenterpriseV1RiskAnalysis `json:"riskAnalysis,omitempty"`

	// TokenProperties: Output only. Properties of the provided event token.
	TokenProperties *GoogleCloudRecaptchaenterpriseV1TokenProperties `json:"tokenProperties,omitempty"`

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

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

GoogleCloudRecaptchaenterpriseV1Assessment: A reCAPTCHA Enterprise assessment resource.

func (*GoogleCloudRecaptchaenterpriseV1Assessment) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1ChallengeMetrics

type GoogleCloudRecaptchaenterpriseV1ChallengeMetrics struct {
	// FailedCount: Count of submitted challenge solutions that were
	// incorrect or otherwise deemed suspicious such that a subsequent
	// challenge was triggered.
	FailedCount int64 `json:"failedCount,omitempty,string"`

	// NocaptchaCount: Count of nocaptchas (successful verification without
	// a challenge) issued.
	NocaptchaCount int64 `json:"nocaptchaCount,omitempty,string"`

	// PageloadCount: Count of reCAPTCHA checkboxes or badges rendered. This
	// is mostly equivalent to a count of pageloads for pages that include
	// reCAPTCHA.
	PageloadCount int64 `json:"pageloadCount,omitempty,string"`

	// PassedCount: Count of nocaptchas (successful verification without a
	// challenge) plus submitted challenge solutions that were correct and
	// resulted in verification.
	PassedCount int64 `json:"passedCount,omitempty,string"`

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

GoogleCloudRecaptchaenterpriseV1ChallengeMetrics: Metrics related to challenges.

func (*GoogleCloudRecaptchaenterpriseV1ChallengeMetrics) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo added in v0.105.0

type GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo struct {
	// EmailAddress: Email address for which to trigger a verification
	// request.
	EmailAddress string `json:"emailAddress,omitempty"`

	// LastVerificationTime: Output only. Timestamp of the last successful
	// verification for the endpoint, if any.
	LastVerificationTime string `json:"lastVerificationTime,omitempty"`

	// PhoneNumber: Phone number for which to trigger a verification
	// request. Should be given in E.164 format.
	PhoneNumber string `json:"phoneNumber,omitempty"`

	// RequestToken: Output only. Token to provide to the client to trigger
	// endpoint verification. It must be used within 15 minutes.
	RequestToken string `json:"requestToken,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo: Information about a verification endpoint that can be used for 2FA.

func (*GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo) MarshalJSON added in v0.105.0

type GoogleCloudRecaptchaenterpriseV1Event

type GoogleCloudRecaptchaenterpriseV1Event struct {
	// ExpectedAction: Optional. The expected action for this type of event.
	// This should be the same action provided at token generation time on
	// client-side platforms already integrated with recaptcha enterprise.
	ExpectedAction string `json:"expectedAction,omitempty"`

	// HashedAccountId: Optional. Unique stable hashed user identifier for
	// the request. The identifier must be hashed using hmac-sha256 with
	// stable secret.
	HashedAccountId string `json:"hashedAccountId,omitempty"`

	// SiteKey: Optional. The site key that was used to invoke reCAPTCHA
	// Enterprise on your site and generate the token.
	SiteKey string `json:"siteKey,omitempty"`

	// Token: Optional. The user response token provided by the reCAPTCHA
	// Enterprise client-side integration on your site.
	Token string `json:"token,omitempty"`

	// TransactionData: Optional. Data describing a payment transaction to
	// be assessed. Sending this data enables reCAPTCHA Enterprise Fraud
	// Prevention and the FraudPreventionAssessment component in the
	// response.
	TransactionData *GoogleCloudRecaptchaenterpriseV1TransactionData `json:"transactionData,omitempty"`

	// UserAgent: Optional. The user agent present in the request from the
	// user's device related to this event.
	UserAgent string `json:"userAgent,omitempty"`

	// UserIpAddress: Optional. The IP address in the request from the
	// user's device related to this event.
	UserIpAddress string `json:"userIpAddress,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ExpectedAction") 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. "ExpectedAction") 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 (*GoogleCloudRecaptchaenterpriseV1Event) MarshalJSON

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

type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment struct {
	// CardTestingVerdict: Assessment of this transaction for risk of being
	// part of a card testing attack.
	CardTestingVerdict *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict `json:"cardTestingVerdict,omitempty"`

	// StolenInstrumentVerdict: Assessment of this transaction for risk of a
	// stolen instrument.
	StolenInstrumentVerdict *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict `json:"stolenInstrumentVerdict,omitempty"`

	// TransactionRisk: Probability (0-1) of this transaction being
	// fraudulent. Summarizes the combined risk of attack vectors below.
	TransactionRisk float64 `json:"transactionRisk,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment: Assessment for Fraud Prevention.

func (*GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment) MarshalJSON added in v0.111.0

func (*GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment) UnmarshalJSON added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict struct {
	// Risk: Probability (0-1) of this transaction attempt being part of a
	// card testing attack.
	Risk float64 `json:"risk,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVe rdict: Information about card testing fraud, where an adversary is testing fraudulently obtained cards or brute forcing their details.

func (*GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict) MarshalJSON added in v0.111.0

func (*GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict) UnmarshalJSON added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict struct {
	// Risk: Probability (0-1) of this transaction being executed with a
	// stolen instrument.
	Risk float64 `json:"risk,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrum entVerdict: Information about stolen instrument fraud, where the user is not the legitimate owner of the instrument being used for the purchase.

func (*GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict) MarshalJSON added in v0.111.0

func (*GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict) UnmarshalJSON added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1IOSKeySettings

type GoogleCloudRecaptchaenterpriseV1IOSKeySettings struct {
	// AllowAllBundleIds: If set to true, allowed_bundle_ids are not
	// enforced.
	AllowAllBundleIds bool `json:"allowAllBundleIds,omitempty"`

	// AllowedBundleIds: iOS bundle ids of apps allowed to use the key.
	// Example: 'com.companyname.productname.appname'
	AllowedBundleIds []string `json:"allowedBundleIds,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1IOSKeySettings: Settings specific to keys that can be used by iOS apps.

func (*GoogleCloudRecaptchaenterpriseV1IOSKeySettings) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1Key

type GoogleCloudRecaptchaenterpriseV1Key struct {
	// AndroidSettings: Settings for keys that can be used by Android apps.
	AndroidSettings *GoogleCloudRecaptchaenterpriseV1AndroidKeySettings `json:"androidSettings,omitempty"`

	// CreateTime: The timestamp corresponding to the creation of this Key.
	CreateTime string `json:"createTime,omitempty"`

	// DisplayName: Human-readable display name of this key. Modifiable by
	// user.
	DisplayName string `json:"displayName,omitempty"`

	// IosSettings: Settings for keys that can be used by iOS apps.
	IosSettings *GoogleCloudRecaptchaenterpriseV1IOSKeySettings `json:"iosSettings,omitempty"`

	// Labels: See Creating and managing labels.
	Labels map[string]string `json:"labels,omitempty"`

	// Name: The resource name for the Key in the format
	// "projects/{project}/keys/{key}".
	Name string `json:"name,omitempty"`

	// TestingOptions: Options for user acceptance testing.
	TestingOptions *GoogleCloudRecaptchaenterpriseV1TestingOptions `json:"testingOptions,omitempty"`

	// WafSettings: Settings for WAF
	WafSettings *GoogleCloudRecaptchaenterpriseV1WafSettings `json:"wafSettings,omitempty"`

	// WebSettings: Settings for keys that can be used by websites.
	WebSettings *GoogleCloudRecaptchaenterpriseV1WebKeySettings `json:"webSettings,omitempty"`

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

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

GoogleCloudRecaptchaenterpriseV1Key: A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.

func (*GoogleCloudRecaptchaenterpriseV1Key) MarshalJSON

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

type GoogleCloudRecaptchaenterpriseV1ListKeysResponse

type GoogleCloudRecaptchaenterpriseV1ListKeysResponse struct {
	// Keys: Key details.
	Keys []*GoogleCloudRecaptchaenterpriseV1Key `json:"keys,omitempty"`

	// NextPageToken: Token to retrieve the next page of results. It is set
	// to empty if no keys remain in results.
	NextPageToken string `json:"nextPageToken,omitempty"`

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

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

GoogleCloudRecaptchaenterpriseV1ListKeysResponse: Response to request to list keys in a project.

func (*GoogleCloudRecaptchaenterpriseV1ListKeysResponse) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse struct {
	// NextPageToken: A token, which can be sent as `page_token` to retrieve
	// the next page. If this field is omitted, there are no subsequent
	// pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// RelatedAccountGroupMemberships: The memberships listed by the query.
	RelatedAccountGroupMemberships []*GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership `json:"relatedAccountGroupMemberships,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:"-"`
}

GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResp onse: The response to a `ListRelatedAccountGroupMemberships` call.

func (*GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse) MarshalJSON added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse struct {
	// NextPageToken: A token, which can be sent as `page_token` to retrieve
	// the next page. If this field is omitted, there are no subsequent
	// pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// RelatedAccountGroups: The groups of related accounts listed by the
	// query.
	RelatedAccountGroups []*GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup `json:"relatedAccountGroups,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:"-"`
}

GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse: The response to a `ListRelatedAccountGroups` call.

func (*GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse) MarshalJSON added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1Metrics

type GoogleCloudRecaptchaenterpriseV1Metrics struct {
	// ChallengeMetrics: Metrics will be continuous and in order by dates,
	// and in the granularity of day. Only challenge-based keys (CHECKBOX,
	// INVISIBLE), will have challenge-based data.
	ChallengeMetrics []*GoogleCloudRecaptchaenterpriseV1ChallengeMetrics `json:"challengeMetrics,omitempty"`

	// Name: Output only. The name of the metrics, in the format
	// "projects/{project}/keys/{key}/metrics".
	Name string `json:"name,omitempty"`

	// ScoreMetrics: Metrics will be continuous and in order by dates, and
	// in the granularity of day. All Key types should have score-based
	// data.
	ScoreMetrics []*GoogleCloudRecaptchaenterpriseV1ScoreMetrics `json:"scoreMetrics,omitempty"`

	// StartTime: Inclusive start time aligned to a day (UTC).
	StartTime string `json:"startTime,omitempty"`

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

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

GoogleCloudRecaptchaenterpriseV1Metrics: Metrics for a single Key.

func (*GoogleCloudRecaptchaenterpriseV1Metrics) MarshalJSON

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

type GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest

type GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest struct {
	// SkipBillingCheck: Optional. If true, skips the billing check. A
	// reCAPTCHA Enterprise key or migrated key behaves differently than a
	// reCAPTCHA (non-Enterprise version) key when you reach a quota limit
	// (see
	// https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To
	// avoid any disruption of your usage, we check that a billing account
	// is present. If your usage of reCAPTCHA is under the free quota, you
	// can safely skip the billing check and proceed with the migration. See
	// https://cloud.google.com/recaptcha-enterprise/docs/billing-information.
	SkipBillingCheck bool `json:"skipBillingCheck,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest: The migrate key request message.

func (*GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest) MarshalJSON added in v0.105.0

type GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification added in v0.82.0

type GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification struct {
	// EncryptedLeakMatchPrefixes: Output only. List of prefixes of the
	// encrypted potential password leaks that matched the given parameters.
	// They must be compared with the client-side decryption prefix of
	// `reencrypted_user_credentials_hash`
	EncryptedLeakMatchPrefixes []string `json:"encryptedLeakMatchPrefixes,omitempty"`

	// EncryptedUserCredentialsHash: Optional. Encrypted Scrypt hash of the
	// canonicalized username+password. It is re-encrypted by the server and
	// returned through `reencrypted_user_credentials_hash`.
	EncryptedUserCredentialsHash string `json:"encryptedUserCredentialsHash,omitempty"`

	// LookupHashPrefix: Optional. Exactly 26-bit prefix of the SHA-256 hash
	// of the canonicalized username. It is used to look up password leaks
	// associated with that hash prefix.
	LookupHashPrefix string `json:"lookupHashPrefix,omitempty"`

	// ReencryptedUserCredentialsHash: Output only. Corresponds to the
	// re-encryption of the `encrypted_user_credentials_hash` field. It is
	// used to match potential password leaks within
	// `encrypted_leak_match_prefixes`.
	ReencryptedUserCredentialsHash string `json:"reencryptedUserCredentialsHash,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification: Private password leak verification info.

func (*GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification) MarshalJSON added in v0.82.0

type GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup struct {
	// Name: Required. The resource name for the related account group in
	// the format
	// `projects/{project}/relatedaccountgroups/{related_account_group}`.
	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:"-"`
}

GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup: A group of related accounts.

func (*GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup) MarshalJSON added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership struct {
	// HashedAccountId: The unique stable hashed user identifier of the
	// member. The identifier corresponds to a `hashed_account_id` provided
	// in a previous `CreateAssessment` or `AnnotateAssessment` call.
	HashedAccountId string `json:"hashedAccountId,omitempty"`

	// Name: Required. The resource name for this membership in the format
	// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/members
	// hips/{membership}`.
	Name string `json:"name,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership: A membership in a group of related accounts.

func (*GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership) MarshalJSON added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse added in v0.80.0

type GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse struct {
	// LegacySecretKey: The secret key (also known as shared secret)
	// authorizes communication between your application backend and the
	// reCAPTCHA Enterprise server to create an assessment. The secret key
	// needs to be kept safe for security purposes.
	LegacySecretKey string `json:"legacySecretKey,omitempty"`

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

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

GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse: Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party integration with legacy reCAPTCHA.

func (*GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse) MarshalJSON added in v0.80.0

type GoogleCloudRecaptchaenterpriseV1RiskAnalysis

type GoogleCloudRecaptchaenterpriseV1RiskAnalysis struct {
	// Reasons: Reasons contributing to the risk analysis verdict.
	//
	// Possible values:
	//   "CLASSIFICATION_REASON_UNSPECIFIED" - Default unspecified type.
	//   "AUTOMATION" - Interactions matched the behavior of an automated
	// agent.
	//   "UNEXPECTED_ENVIRONMENT" - The event originated from an
	// illegitimate environment.
	//   "TOO_MUCH_TRAFFIC" - Traffic volume from the event source is higher
	// than normal.
	//   "UNEXPECTED_USAGE_PATTERNS" - Interactions with the site were
	// significantly different than expected patterns.
	//   "LOW_CONFIDENCE_SCORE" - Too little traffic has been received from
	// this site thus far to generate quality risk analysis.
	//   "SUSPECTED_CARDING" - The request matches behavioral
	// characteristics of a carding attack.
	//   "SUSPECTED_CHARGEBACK" - The request matches behavioral
	// characteristics of chargebacks for fraud.
	Reasons []string `json:"reasons,omitempty"`

	// Score: Legitimate event score from 0.0 to 1.0. (1.0 means very likely
	// legitimate traffic while 0.0 means very likely non-legitimate
	// traffic).
	Score float64 `json:"score,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1RiskAnalysis: Risk analysis result for an event.

func (*GoogleCloudRecaptchaenterpriseV1RiskAnalysis) MarshalJSON

func (*GoogleCloudRecaptchaenterpriseV1RiskAnalysis) UnmarshalJSON

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

type GoogleCloudRecaptchaenterpriseV1ScoreDistribution

type GoogleCloudRecaptchaenterpriseV1ScoreDistribution struct {
	// ScoreBuckets: Map key is score value multiplied by 100. The scores
	// are discrete values between [0, 1]. The maximum number of buckets is
	// on order of a few dozen, but typically much lower (ie. 10).
	ScoreBuckets map[string]string `json:"scoreBuckets,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1ScoreDistribution: Score distribution.

func (*GoogleCloudRecaptchaenterpriseV1ScoreDistribution) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1ScoreMetrics

type GoogleCloudRecaptchaenterpriseV1ScoreMetrics struct {
	// ActionMetrics: Action-based metrics. The map key is the action name
	// which specified by the site owners at time of the "execute"
	// client-side call.
	ActionMetrics map[string]GoogleCloudRecaptchaenterpriseV1ScoreDistribution `json:"actionMetrics,omitempty"`

	// OverallMetrics: Aggregated score metrics for all traffic.
	OverallMetrics *GoogleCloudRecaptchaenterpriseV1ScoreDistribution `json:"overallMetrics,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1ScoreMetrics: Metrics related to scoring.

func (*GoogleCloudRecaptchaenterpriseV1ScoreMetrics) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest struct {
	// HashedAccountId: Optional. The unique stable hashed user identifier
	// we should search connections to. The identifier should correspond to
	// a `hashed_account_id` provided in a previous `CreateAssessment` or
	// `AnnotateAssessment` call.
	HashedAccountId string `json:"hashedAccountId,omitempty"`

	// PageSize: Optional. The maximum number of groups to return. The
	// service might return fewer than this value. If unspecified, at most
	// 50 groups are returned. The maximum value is 1000; values above 1000
	// are coerced to 1000.
	PageSize int64 `json:"pageSize,omitempty"`

	// PageToken: Optional. A page token, received from a previous
	// `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve
	// the subsequent page. When paginating, all other parameters provided
	// to `SearchRelatedAccountGroupMemberships` must match the call that
	// provided the page token.
	PageToken string `json:"pageToken,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRe quest: The request message to search related account group memberships.

func (*GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest) MarshalJSON added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse struct {
	// NextPageToken: A token, which can be sent as `page_token` to retrieve
	// the next page. If this field is omitted, there are no subsequent
	// pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// RelatedAccountGroupMemberships: The queried memberships.
	RelatedAccountGroupMemberships []*GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership `json:"relatedAccountGroupMemberships,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:"-"`
}

GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRe sponse: The response to a `SearchRelatedAccountGroupMemberships` call.

func (*GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse) MarshalJSON added in v0.61.0

type GoogleCloudRecaptchaenterpriseV1TestingOptions

type GoogleCloudRecaptchaenterpriseV1TestingOptions struct {
	// TestingChallenge: For challenge-based keys only (CHECKBOX,
	// INVISIBLE), all challenge requests for this site will return
	// nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE.
	//
	// Possible values:
	//   "TESTING_CHALLENGE_UNSPECIFIED" - Perform the normal risk analysis
	// and return either nocaptcha or a challenge depending on risk and
	// trust factors.
	//   "NOCAPTCHA" - Challenge requests for this key always return a
	// nocaptcha, which does not require a solution.
	//   "UNSOLVABLE_CHALLENGE" - Challenge requests for this key always
	// return an unsolvable challenge.
	TestingChallenge string `json:"testingChallenge,omitempty"`

	// TestingScore: All assessments for this Key will return this score.
	// Must be between 0 (likely not legitimate) and 1 (likely legitimate)
	// inclusive.
	TestingScore float64 `json:"testingScore,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1TestingOptions: Options for user acceptance testing.

func (*GoogleCloudRecaptchaenterpriseV1TestingOptions) MarshalJSON

func (*GoogleCloudRecaptchaenterpriseV1TestingOptions) UnmarshalJSON

type GoogleCloudRecaptchaenterpriseV1TokenProperties

type GoogleCloudRecaptchaenterpriseV1TokenProperties struct {
	// Action: Action name provided at token generation.
	Action string `json:"action,omitempty"`

	// AndroidPackageName: The name of the Android package with which the
	// token was generated (Android keys only).
	AndroidPackageName string `json:"androidPackageName,omitempty"`

	// CreateTime: The timestamp corresponding to the generation of the
	// token.
	CreateTime string `json:"createTime,omitempty"`

	// Hostname: The hostname of the page on which the token was generated
	// (Web keys only).
	Hostname string `json:"hostname,omitempty"`

	// InvalidReason: Reason associated with the response when valid =
	// false.
	//
	// Possible values:
	//   "INVALID_REASON_UNSPECIFIED" - Default unspecified type.
	//   "UNKNOWN_INVALID_REASON" - If the failure reason was not accounted
	// for.
	//   "MALFORMED" - The provided user verification token was malformed.
	//   "EXPIRED" - The user verification token had expired.
	//   "DUPE" - The user verification had already been seen.
	//   "MISSING" - The user verification token was not present.
	//   "BROWSER_ERROR" - A retriable error (such as network failure)
	// occurred on the browser. Could easily be simulated by an attacker.
	InvalidReason string `json:"invalidReason,omitempty"`

	// IosBundleId: The ID of the iOS bundle with which the token was
	// generated (iOS keys only).
	IosBundleId string `json:"iosBundleId,omitempty"`

	// Valid: Whether the provided user response token is valid. When valid
	// = false, the reason could be specified in invalid_reason or it could
	// also be due to a user failing to solve a challenge or a sitekey
	// mismatch (i.e the sitekey used to generate the token was different
	// than the one specified in the assessment).
	Valid bool `json:"valid,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 (*GoogleCloudRecaptchaenterpriseV1TokenProperties) MarshalJSON

type GoogleCloudRecaptchaenterpriseV1TransactionData added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionData struct {
	// BillingAddress: Address associated with the payment method when
	// applicable.
	BillingAddress *GoogleCloudRecaptchaenterpriseV1TransactionDataAddress `json:"billingAddress,omitempty"`

	// CardBin: The Bank Identification Number - generally the first 6 or 8
	// digits of the card.
	CardBin string `json:"cardBin,omitempty"`

	// CardLastFour: The last four digits of the card.
	CardLastFour string `json:"cardLastFour,omitempty"`

	// CurrencyCode: The currency code in ISO-4217 format.
	CurrencyCode string `json:"currencyCode,omitempty"`

	// GatewayInfo: Information about the payment gateway's response to the
	// transaction.
	GatewayInfo *GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo `json:"gatewayInfo,omitempty"`

	// Items: Items purchased in this transaction.
	Items []*GoogleCloudRecaptchaenterpriseV1TransactionDataItem `json:"items,omitempty"`

	// Merchants: Information about the user or users fulfilling the
	// transaction.
	Merchants []*GoogleCloudRecaptchaenterpriseV1TransactionDataUser `json:"merchants,omitempty"`

	// PaymentMethod: The payment method for the transaction. The allowed
	// values are: * credit-card * debit-card * gift-card * processor-{name}
	// (If a third-party is used, for example, processor-paypal) *
	// custom-{name} (If an alternative method is used, for example,
	// custom-crypto)
	PaymentMethod string `json:"paymentMethod,omitempty"`

	// ShippingAddress: Destination address if this transaction involves
	// shipping a physical item.
	ShippingAddress *GoogleCloudRecaptchaenterpriseV1TransactionDataAddress `json:"shippingAddress,omitempty"`

	// ShippingValue: The value of shipping in the specified currency. 0 for
	// free or no shipping.
	ShippingValue float64 `json:"shippingValue,omitempty"`

	// TransactionId: Unique identifier for the transaction. This custom
	// identifier can be used to reference this transaction in the future,
	// for example, labeling a refund or chargeback event. Two attempts at
	// the same transaction should use the same transaction id.
	TransactionId string `json:"transactionId,omitempty"`

	// User: Information about the user paying/initiating the transaction.
	User *GoogleCloudRecaptchaenterpriseV1TransactionDataUser `json:"user,omitempty"`

	// Value: The decimal value of the transaction in the specified
	// currency.
	Value float64 `json:"value,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1TransactionData: Transaction data associated with a payment protected by reCAPTCHA Enterprise. All fields are optional.

func (*GoogleCloudRecaptchaenterpriseV1TransactionData) MarshalJSON added in v0.111.0

func (*GoogleCloudRecaptchaenterpriseV1TransactionData) UnmarshalJSON added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionDataAddress added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionDataAddress struct {
	// Address: The first lines of the address. The first line generally
	// contains the street name and number, and further lines may include
	// information such as an apartment number.
	Address []string `json:"address,omitempty"`

	// AdministrativeArea: The state, province, or otherwise administrative
	// area of the address.
	AdministrativeArea string `json:"administrativeArea,omitempty"`

	// Locality: The town/city of the address.
	Locality string `json:"locality,omitempty"`

	// PostalCode: The postal or ZIP code of the address.
	PostalCode string `json:"postalCode,omitempty"`

	// Recipient: The recipient name, potentially including information such
	// as "care of".
	Recipient string `json:"recipient,omitempty"`

	// RegionCode: The CLDR country/region of the address.
	RegionCode string `json:"regionCode,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1TransactionDataAddress: Structured address format for billing and shipping addresses.

func (*GoogleCloudRecaptchaenterpriseV1TransactionDataAddress) MarshalJSON added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo struct {
	// AvsResponseCode: AVS response code from the gateway (available only
	// when reCAPTCHA Enterprise is called after authorization).
	AvsResponseCode string `json:"avsResponseCode,omitempty"`

	// CvvResponseCode: CVV response code from the gateway (available only
	// when reCAPTCHA Enterprise is called after authorization).
	CvvResponseCode string `json:"cvvResponseCode,omitempty"`

	// GatewayResponseCode: Gateway response code describing the state of
	// the transaction.
	GatewayResponseCode string `json:"gatewayResponseCode,omitempty"`

	// Name: Name of the gateway service (for example, stripe, square,
	// paypal).
	Name string `json:"name,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo: Details about the transaction from the gateway.

func (*GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo) MarshalJSON added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionDataItem added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionDataItem struct {
	// MerchantAccountId: When a merchant is specified, its corresponding
	// account_id. Necessary to populate marketplace-style transactions.
	MerchantAccountId string `json:"merchantAccountId,omitempty"`

	// Name: The full name of the item.
	Name string `json:"name,omitempty"`

	// Quantity: The quantity of this item that is being purchased.
	Quantity int64 `json:"quantity,omitempty,string"`

	// Value: The value per item that the user is paying, in the transaction
	// currency, after discounts.
	Value float64 `json:"value,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1TransactionDataItem: Line items being purchased in this transaction.

func (*GoogleCloudRecaptchaenterpriseV1TransactionDataItem) MarshalJSON added in v0.111.0

func (*GoogleCloudRecaptchaenterpriseV1TransactionDataItem) UnmarshalJSON added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionDataUser added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionDataUser struct {
	// AccountId: Unique account identifier for this user. If using account
	// defender, this should match the hashed_account_id field. Otherwise, a
	// unique and persistent identifier for this account.
	AccountId string `json:"accountId,omitempty"`

	// CreationMs: The epoch milliseconds of the user's account creation.
	CreationMs int64 `json:"creationMs,omitempty,string"`

	// Email: The email address of the user.
	Email string `json:"email,omitempty"`

	// EmailVerified: Whether the email has been verified to be accessible
	// by the user (OTP or similar).
	EmailVerified bool `json:"emailVerified,omitempty"`

	// PhoneNumber: The phone number of the user, with country code.
	PhoneNumber string `json:"phoneNumber,omitempty"`

	// PhoneVerified: Whether the phone number has been verified to be
	// accessible by the user (OTP or similar).
	PhoneVerified bool `json:"phoneVerified,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1TransactionDataUser: Details about a user's account involved in the transaction.

func (*GoogleCloudRecaptchaenterpriseV1TransactionDataUser) MarshalJSON added in v0.111.0

type GoogleCloudRecaptchaenterpriseV1TransactionEvent added in v0.110.0

type GoogleCloudRecaptchaenterpriseV1TransactionEvent struct {
	// EventTime: Optional. Timestamp when this transaction event occurred;
	// otherwise assumed to be the time of the API call.
	EventTime string `json:"eventTime,omitempty"`

	// EventType: Optional. The type of this transaction event.
	//
	// Possible values:
	//   "TRANSACTION_EVENT_TYPE_UNSPECIFIED" - Default, unspecified event
	// type.
	//   "MERCHANT_APPROVE" - Indicates that the transaction is approved by
	// the merchant. The accompanying reasons can include terms such as
	// 'INHOUSE', 'ACCERTIFY', 'CYBERSOURCE', or 'MANUAL_REVIEW'.
	//   "MERCHANT_DENY" - Indicates that the transaction is denied and
	// concluded due to risks detected by the merchant. The accompanying
	// reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
	// 'CYBERSOURCE', or 'MANUAL_REVIEW'.
	//   "MANUAL_REVIEW" - Indicates that the transaction is being evaluated
	// by a human, due to suspicion or risk.
	//   "AUTHORIZATION" - Indicates that the authorization attempt with the
	// card issuer succeeded.
	//   "AUTHORIZATION_DECLINE" - Indicates that the authorization attempt
	// with the card issuer failed. The accompanying reasons can include
	// Visa's '54' indicating that the card is expired, or '82' indicating
	// that the CVV is incorrect.
	//   "PAYMENT_CAPTURE" - Indicates that the transaction is completed
	// because the funds were settled.
	//   "PAYMENT_CAPTURE_DECLINE" - Indicates that the transaction could
	// not be completed because the funds were not settled.
	//   "CANCEL" - Indicates that the transaction has been canceled.
	// Specify the reason for the cancellation. For example,
	// 'INSUFFICIENT_INVENTORY'.
	//   "CHARGEBACK_INQUIRY" - Indicates that the merchant has received a
	// chargeback inquiry due to fraud for the transaction, requesting
	// additional information before a fraud chargeback is officially issued
	// and a formal chargeback notification is sent.
	//   "CHARGEBACK_ALERT" - Indicates that the merchant has received a
	// chargeback alert due to fraud for the transaction. The process of
	// resolving the dispute without involving the payment network is
	// started.
	//   "FRAUD_NOTIFICATION" - Indicates that a fraud notification is
	// issued for the transaction, sent by the payment instrument's issuing
	// bank because the transaction appears to be fraudulent. We recommend
	// including TC40 or SAFE data in the `reason` field for this event
	// type. For partial chargebacks, we recommend that you include an
	// amount in the `value` field.
	//   "CHARGEBACK" - Indicates that the merchant is informed by the
	// payment network that the transaction has entered the chargeback
	// process due to fraud. Reason code examples include Discover's '6005'
	// and '6041'. For partial chargebacks, we recommend that you include an
	// amount in the `value` field.
	//   "CHARGEBACK_REPRESENTMENT" - Indicates that the transaction has
	// entered the chargeback process due to fraud, and that the merchant
	// has chosen to enter representment. Reason examples include Discover's
	// '6005' and '6041'. For partial chargebacks, we recommend that you
	// include an amount in the `value` field.
	//   "CHARGEBACK_REVERSE" - Indicates that the transaction has had a
	// fraud chargeback which was illegitimate and was reversed as a result.
	// For partial chargebacks, we recommend that you include an amount in
	// the `value` field.
	//   "REFUND_REQUEST" - Indicates that the merchant has received a
	// refund for a completed transaction. For partial refunds, we recommend
	// that you include an amount in the `value` field. Reason example:
	// 'TAX_EXEMPT' (partial refund of exempt tax)
	//   "REFUND_DECLINE" - Indicates that the merchant has received a
	// refund request for this transaction, but that they have declined it.
	// For partial refunds, we recommend that you include an amount in the
	// `value` field. Reason example: 'TAX_EXEMPT' (partial refund of exempt
	// tax)
	//   "REFUND" - Indicates that the completed transaction was refunded by
	// the merchant. For partial refunds, we recommend that you include an
	// amount in the `value` field. Reason example: 'TAX_EXEMPT' (partial
	// refund of exempt tax)
	//   "REFUND_REVERSE" - Indicates that the completed transaction was
	// refunded by the merchant, and that this refund was reversed. For
	// partial refunds, we recommend that you include an amount in the
	// `value` field.
	EventType string `json:"eventType,omitempty"`

	// Reason: Optional. The reason or standardized code that corresponds
	// with this transaction event, if one exists. For example, a CHARGEBACK
	// event with code 6005.
	Reason string `json:"reason,omitempty"`

	// Value: Optional. The value that corresponds with this transaction
	// event, if one exists. For example, a refund event where $5.00 was
	// refunded. Currency is obtained from the original transaction data.
	Value float64 `json:"value,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1TransactionEvent: Describes an event in the lifecycle of a payment transaction.

func (*GoogleCloudRecaptchaenterpriseV1TransactionEvent) MarshalJSON added in v0.110.0

func (*GoogleCloudRecaptchaenterpriseV1TransactionEvent) UnmarshalJSON added in v0.110.0

type GoogleCloudRecaptchaenterpriseV1WafSettings added in v0.64.0

type GoogleCloudRecaptchaenterpriseV1WafSettings struct {
	// WafFeature: Required. The WAF feature for which this key is enabled.
	//
	// Possible values:
	//   "WAF_FEATURE_UNSPECIFIED" - Undefined feature.
	//   "CHALLENGE_PAGE" - Redirects suspicious traffic to reCAPTCHA.
	//   "SESSION_TOKEN" - Use reCAPTCHA session-tokens to protect the whole
	// user session on the site's domain.
	//   "ACTION_TOKEN" - Use reCAPTCHA action-tokens to protect user
	// actions.
	WafFeature string `json:"wafFeature,omitempty"`

	// WafService: Required. The WAF service that uses this key.
	//
	// Possible values:
	//   "WAF_SERVICE_UNSPECIFIED" - Undefined WAF
	//   "CA" - Cloud Armor
	//   "FASTLY" - Fastly
	WafService string `json:"wafService,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1WafSettings: Settings specific to keys that can be used for WAF (Web Application Firewall).

func (*GoogleCloudRecaptchaenterpriseV1WafSettings) MarshalJSON added in v0.64.0

type GoogleCloudRecaptchaenterpriseV1WebKeySettings

type GoogleCloudRecaptchaenterpriseV1WebKeySettings struct {
	// AllowAllDomains: If set to true, it means allowed_domains will not be
	// enforced.
	AllowAllDomains bool `json:"allowAllDomains,omitempty"`

	// AllowAmpTraffic: If set to true, the key can be used on AMP
	// (Accelerated Mobile Pages) websites. This is supported only for the
	// SCORE integration type.
	AllowAmpTraffic bool `json:"allowAmpTraffic,omitempty"`

	// AllowedDomains: Domains or subdomains of websites allowed to use the
	// key. All subdomains of an allowed domain are automatically allowed. A
	// valid domain requires a host and must not include any path, port,
	// query or fragment. Examples: 'example.com' or 'subdomain.example.com'
	AllowedDomains []string `json:"allowedDomains,omitempty"`

	// ChallengeSecurityPreference: Settings for the frequency and
	// difficulty at which this key triggers captcha challenges. This should
	// only be specified for IntegrationTypes CHECKBOX and INVISIBLE.
	//
	// Possible values:
	//   "CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED" - Default type that
	// indicates this enum hasn't been specified.
	//   "USABILITY" - Key tends to show fewer and easier challenges.
	//   "BALANCE" - Key tends to show balanced (in amount and difficulty)
	// challenges.
	//   "SECURITY" - Key tends to show more and harder challenges.
	ChallengeSecurityPreference string `json:"challengeSecurityPreference,omitempty"`

	// IntegrationType: Required. Describes how this key is integrated with
	// the website.
	//
	// Possible values:
	//   "INTEGRATION_TYPE_UNSPECIFIED" - Default type that indicates this
	// enum hasn't been specified. This is not a valid IntegrationType, one
	// of the other types must be specified instead.
	//   "SCORE" - Only used to produce scores. It doesn't display the "I'm
	// not a robot" checkbox and never shows captcha challenges.
	//   "CHECKBOX" - Displays the "I'm not a robot" checkbox and may show
	// captcha challenges after it is checked.
	//   "INVISIBLE" - Doesn't display the "I'm not a robot" checkbox, but
	// may show captcha challenges after risk analysis.
	IntegrationType string `json:"integrationType,omitempty"`

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

GoogleCloudRecaptchaenterpriseV1WebKeySettings: Settings specific to keys that can be used by websites.

func (*GoogleCloudRecaptchaenterpriseV1WebKeySettings) MarshalJSON

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 ProjectsAssessmentsAnnotateCall

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

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

Do executes the "recaptchaenterprise.projects.assessments.annotate" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse.ServerResp onse.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 (*ProjectsAssessmentsAnnotateCall) Fields

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

func (*ProjectsAssessmentsAnnotateCall) Header

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

type ProjectsAssessmentsCreateCall

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

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

Do executes the "recaptchaenterprise.projects.assessments.create" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1Assessment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1Assessment.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 (*ProjectsAssessmentsCreateCall) Fields

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

func (*ProjectsAssessmentsCreateCall) Header

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

type ProjectsAssessmentsService

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

func NewProjectsAssessmentsService

func NewProjectsAssessmentsService(s *Service) *ProjectsAssessmentsService

func (*ProjectsAssessmentsService) Annotate

func (r *ProjectsAssessmentsService) Annotate(name string, googlecloudrecaptchaenterprisev1annotateassessmentrequest *GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest) *ProjectsAssessmentsAnnotateCall

Annotate: Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.

  • name: The resource name of the Assessment, in the format "projects/{project}/assessments/{assessment}".

func (*ProjectsAssessmentsService) Create

func (r *ProjectsAssessmentsService) Create(parent string, googlecloudrecaptchaenterprisev1assessment *GoogleCloudRecaptchaenterpriseV1Assessment) *ProjectsAssessmentsCreateCall

Create: Creates an Assessment of the likelihood an event is legitimate.

  • parent: The name of the project in which the assessment will be created, in the format "projects/{project}".

type ProjectsKeysCreateCall

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

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

Do executes the "recaptchaenterprise.projects.keys.create" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1Key or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1Key.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 (*ProjectsKeysCreateCall) Fields

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

func (*ProjectsKeysCreateCall) Header

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

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

type ProjectsKeysDeleteCall

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

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

Do executes the "recaptchaenterprise.projects.keys.delete" 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 (*ProjectsKeysDeleteCall) Fields

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

func (*ProjectsKeysDeleteCall) Header

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

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

type ProjectsKeysGetCall

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

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

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

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

func (*ProjectsKeysGetCall) Header

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

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

func (*ProjectsKeysGetCall) IfNoneMatch

func (c *ProjectsKeysGetCall) IfNoneMatch(entityTag string) *ProjectsKeysGetCall

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 ProjectsKeysGetMetricsCall

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

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

Do executes the "recaptchaenterprise.projects.keys.getMetrics" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1Metrics or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1Metrics.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 (*ProjectsKeysGetMetricsCall) Fields

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

func (*ProjectsKeysGetMetricsCall) Header

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

func (*ProjectsKeysGetMetricsCall) 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 ProjectsKeysListCall

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

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

Do executes the "recaptchaenterprise.projects.keys.list" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1ListKeysResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1ListKeysResponse.ServerResponse.Heade r 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 (*ProjectsKeysListCall) Fields

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

func (*ProjectsKeysListCall) Header

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

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

func (*ProjectsKeysListCall) IfNoneMatch

func (c *ProjectsKeysListCall) IfNoneMatch(entityTag string) *ProjectsKeysListCall

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

func (c *ProjectsKeysListCall) PageSize(pageSize int64) *ProjectsKeysListCall

PageSize sets the optional parameter "pageSize": The maximum number of keys to return. Default is 10. Max limit is 1000.

func (*ProjectsKeysListCall) PageToken

func (c *ProjectsKeysListCall) PageToken(pageToken string) *ProjectsKeysListCall

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous. ListKeysRequest, if any.

func (*ProjectsKeysListCall) 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 ProjectsKeysMigrateCall

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

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

Do executes the "recaptchaenterprise.projects.keys.migrate" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1Key or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1Key.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 (*ProjectsKeysMigrateCall) Fields

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

func (*ProjectsKeysMigrateCall) Header

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

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

type ProjectsKeysPatchCall

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

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

Do executes the "recaptchaenterprise.projects.keys.patch" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1Key or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1Key.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 (*ProjectsKeysPatchCall) Fields

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

func (*ProjectsKeysPatchCall) Header

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

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

func (*ProjectsKeysPatchCall) UpdateMask

func (c *ProjectsKeysPatchCall) UpdateMask(updateMask string) *ProjectsKeysPatchCall

UpdateMask sets the optional parameter "updateMask": The mask to control which fields of the key get updated. If the mask is not present, all fields will be updated.

type ProjectsKeysRetrieveLegacySecretKeyCall added in v0.80.0

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

func (*ProjectsKeysRetrieveLegacySecretKeyCall) Context added in v0.80.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 (*ProjectsKeysRetrieveLegacySecretKeyCall) Do added in v0.80.0

Do executes the "recaptchaenterprise.projects.keys.retrieveLegacySecretKey" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse.Serve rResponse.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 (*ProjectsKeysRetrieveLegacySecretKeyCall) Fields added in v0.80.0

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

func (*ProjectsKeysRetrieveLegacySecretKeyCall) Header added in v0.80.0

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

func (*ProjectsKeysRetrieveLegacySecretKeyCall) IfNoneMatch added in v0.80.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 ProjectsKeysService

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

func NewProjectsKeysService

func NewProjectsKeysService(s *Service) *ProjectsKeysService

func (*ProjectsKeysService) Create

func (r *ProjectsKeysService) Create(parent string, googlecloudrecaptchaenterprisev1key *GoogleCloudRecaptchaenterpriseV1Key) *ProjectsKeysCreateCall

Create: Creates a new reCAPTCHA Enterprise key.

  • parent: The name of the project in which the key will be created, in the format "projects/{project}".

func (*ProjectsKeysService) Delete

Delete: Deletes the specified key.

  • name: The name of the key to be deleted, in the format "projects/{project}/keys/{key}".

func (*ProjectsKeysService) Get

Get: Returns the specified key.

  • name: The name of the requested key, in the format "projects/{project}/keys/{key}".

func (*ProjectsKeysService) GetMetrics

GetMetrics: Get some aggregated metrics for a Key. This data can be used to build dashboards.

  • name: The name of the requested metrics, in the format "projects/{project}/keys/{key}/metrics".

func (*ProjectsKeysService) List

List: Returns the list of all keys that belong to a project.

  • parent: The name of the project that contains the keys that will be listed, in the format "projects/{project}".

func (*ProjectsKeysService) Migrate

func (r *ProjectsKeysService) Migrate(name string, googlecloudrecaptchaenterprisev1migratekeyrequest *GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest) *ProjectsKeysMigrateCall

Migrate: Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. Once a key is migrated, it can be used from either product. SiteVerify requests are billed as CreateAssessment calls. You must be authenticated as one of the current owners of the reCAPTCHA Site Key, and your user must have the reCAPTCHA Enterprise Admin IAM role in the destination project.

  • name: The name of the key to be migrated, in the format "projects/{project}/keys/{key}".

func (*ProjectsKeysService) Patch

func (r *ProjectsKeysService) Patch(name string, googlecloudrecaptchaenterprisev1key *GoogleCloudRecaptchaenterpriseV1Key) *ProjectsKeysPatchCall

Patch: Updates the specified key.

  • name: The resource name for the Key in the format "projects/{project}/keys/{key}".

func (*ProjectsKeysService) RetrieveLegacySecretKey added in v0.80.0

func (r *ProjectsKeysService) RetrieveLegacySecretKey(key string) *ProjectsKeysRetrieveLegacySecretKeyCall

RetrieveLegacySecretKey: Returns the secret key related to the specified public key. You must use the legacy secret key only in a 3rd party integration with legacy reCAPTCHA.

  • key: The public key name linked to the requested secret key in the format "projects/{project}/keys/{key}".

type ProjectsRelatedaccountgroupmembershipsSearchCall added in v0.61.0

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

func (*ProjectsRelatedaccountgroupmembershipsSearchCall) Context added in v0.61.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 (*ProjectsRelatedaccountgroupmembershipsSearchCall) Do added in v0.61.0

Do executes the "recaptchaenterprise.projects.relatedaccountgroupmemberships.search" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsR esponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsR esponse.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 (*ProjectsRelatedaccountgroupmembershipsSearchCall) Fields added in v0.61.0

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

func (*ProjectsRelatedaccountgroupmembershipsSearchCall) Header added in v0.61.0

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

func (*ProjectsRelatedaccountgroupmembershipsSearchCall) Pages added in v0.61.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 ProjectsRelatedaccountgroupmembershipsService added in v0.61.0

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

func NewProjectsRelatedaccountgroupmembershipsService added in v0.61.0

func NewProjectsRelatedaccountgroupmembershipsService(s *Service) *ProjectsRelatedaccountgroupmembershipsService

func (*ProjectsRelatedaccountgroupmembershipsService) Search added in v0.61.0

Search: Search group memberships related to a given account.

  • project: The name of the project to search related account group memberships from. Specify the project name in the following format: "projects/{project}".

type ProjectsRelatedaccountgroupsListCall added in v0.61.0

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

func (*ProjectsRelatedaccountgroupsListCall) Context added in v0.61.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 (*ProjectsRelatedaccountgroupsListCall) Do added in v0.61.0

Do executes the "recaptchaenterprise.projects.relatedaccountgroups.list" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse.Serv erResponse.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 (*ProjectsRelatedaccountgroupsListCall) Fields added in v0.61.0

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

func (*ProjectsRelatedaccountgroupsListCall) Header added in v0.61.0

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

func (*ProjectsRelatedaccountgroupsListCall) IfNoneMatch added in v0.61.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 (*ProjectsRelatedaccountgroupsListCall) PageSize added in v0.61.0

PageSize sets the optional parameter "pageSize": The maximum number of groups to return. The service might return fewer than this value. If unspecified, at most 50 groups are returned. The maximum value is 1000; values above 1000 are coerced to 1000.

func (*ProjectsRelatedaccountgroupsListCall) PageToken added in v0.61.0

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListRelatedAccountGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRelatedAccountGroups` must match the call that provided the page token.

func (*ProjectsRelatedaccountgroupsListCall) Pages added in v0.61.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 ProjectsRelatedaccountgroupsMembershipsListCall added in v0.61.0

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

func (*ProjectsRelatedaccountgroupsMembershipsListCall) Context added in v0.61.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 (*ProjectsRelatedaccountgroupsMembershipsListCall) Do added in v0.61.0

Do executes the "recaptchaenterprise.projects.relatedaccountgroups.memberships.list" call. Exactly one of *GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsRes ponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsRes ponse.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 (*ProjectsRelatedaccountgroupsMembershipsListCall) Fields added in v0.61.0

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

func (*ProjectsRelatedaccountgroupsMembershipsListCall) Header added in v0.61.0

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

func (*ProjectsRelatedaccountgroupsMembershipsListCall) IfNoneMatch added in v0.61.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 (*ProjectsRelatedaccountgroupsMembershipsListCall) PageSize added in v0.61.0

PageSize sets the optional parameter "pageSize": The maximum number of accounts to return. The service might return fewer than this value. If unspecified, at most 50 accounts are returned. The maximum value is 1000; values above 1000 are coerced to 1000.

func (*ProjectsRelatedaccountgroupsMembershipsListCall) PageToken added in v0.61.0

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListRelatedAccountGroupMemberships` call. When paginating, all other parameters provided to `ListRelatedAccountGroupMemberships` must match the call that provided the page token.

func (*ProjectsRelatedaccountgroupsMembershipsListCall) Pages added in v0.61.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 ProjectsRelatedaccountgroupsMembershipsService added in v0.61.0

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

func NewProjectsRelatedaccountgroupsMembershipsService added in v0.61.0

func NewProjectsRelatedaccountgroupsMembershipsService(s *Service) *ProjectsRelatedaccountgroupsMembershipsService

func (*ProjectsRelatedaccountgroupsMembershipsService) List added in v0.61.0

List: Get memberships in a group of related accounts.

  • parent: The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.

type ProjectsRelatedaccountgroupsService added in v0.61.0

type ProjectsRelatedaccountgroupsService struct {
	Memberships *ProjectsRelatedaccountgroupsMembershipsService
	// contains filtered or unexported fields
}

func NewProjectsRelatedaccountgroupsService added in v0.61.0

func NewProjectsRelatedaccountgroupsService(s *Service) *ProjectsRelatedaccountgroupsService

func (*ProjectsRelatedaccountgroupsService) List added in v0.61.0

List: List groups of related accounts.

  • parent: The name of the project to list related account groups from, in the format "projects/{project}".

type ProjectsService

type ProjectsService struct {
	Assessments *ProjectsAssessmentsService

	Keys *ProjectsKeysService

	Relatedaccountgroupmemberships *ProjectsRelatedaccountgroupmembershipsService

	Relatedaccountgroups *ProjectsRelatedaccountgroupsService
	// contains filtered or unexported fields
}

func NewProjectsService

func NewProjectsService(s *Service) *ProjectsService

type Service

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

	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.

Jump to

Keyboard shortcuts

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