recaptchaenterprise

package
v1.84.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Overview

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package recaptchaenterprise defines operations in the declarative SDK.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const KeyMaxPage = -1

Variables

View Source
var YAML_key []byte

Functions

func DCLKeySchema added in v1.10.3

func DCLKeySchema() *dcl.Schema

Types

type Client

type Client struct {
	Config *dcl.Config
}

The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.

func NewClient

func NewClient(c *dcl.Config) *Client

NewClient creates a client that retries all operations a few times each.

func (*Client) ApplyKey

func (c *Client) ApplyKey(ctx context.Context, rawDesired *Key, opts ...dcl.ApplyOption) (*Key, error)

func (*Client) DeleteAllKey

func (c *Client) DeleteAllKey(ctx context.Context, project string, filter func(*Key) bool) error

DeleteAllKey deletes all resources that the filter functions returns true on.

func (*Client) DeleteKey

func (c *Client) DeleteKey(ctx context.Context, r *Key) error

func (*Client) GetKey

func (c *Client) GetKey(ctx context.Context, r *Key) (*Key, error)

func (*Client) ListKey

func (c *Client) ListKey(ctx context.Context, project string) (*KeyList, error)

func (*Client) ListKeyWithMaxResults

func (c *Client) ListKeyWithMaxResults(ctx context.Context, project string, pageSize int32) (*KeyList, error)

type Key

type Key struct {
	Name            *string             `json:"name"`
	DisplayName     *string             `json:"displayName"`
	WebSettings     *KeyWebSettings     `json:"webSettings"`
	AndroidSettings *KeyAndroidSettings `json:"androidSettings"`
	IosSettings     *KeyIosSettings     `json:"iosSettings"`
	Labels          map[string]string   `json:"labels"`
	CreateTime      *string             `json:"createTime"`
	TestingOptions  *KeyTestingOptions  `json:"testingOptions"`
	WafSettings     *KeyWafSettings     `json:"wafSettings"`
	Project         *string             `json:"project"`
}

func (*Key) Describe

func (r *Key) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*Key) ID

func (r *Key) ID() (string, error)

func (*Key) String

func (r *Key) String() string

type KeyAndroidSettings

type KeyAndroidSettings struct {
	AllowAllPackageNames *bool    `json:"allowAllPackageNames"`
	AllowedPackageNames  []string `json:"allowedPackageNames"`
	// contains filtered or unexported fields
}
var EmptyKeyAndroidSettings *KeyAndroidSettings = &KeyAndroidSettings{empty: true}

This object is used to assert a desired state where this KeyAndroidSettings is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*KeyAndroidSettings) Empty

func (r *KeyAndroidSettings) Empty() bool

func (*KeyAndroidSettings) HashCode

func (r *KeyAndroidSettings) HashCode() string

func (*KeyAndroidSettings) String

func (r *KeyAndroidSettings) String() string

func (*KeyAndroidSettings) UnmarshalJSON

func (r *KeyAndroidSettings) UnmarshalJSON(data []byte) error

type KeyIosSettings

type KeyIosSettings struct {
	AllowAllBundleIds *bool    `json:"allowAllBundleIds"`
	AllowedBundleIds  []string `json:"allowedBundleIds"`
	// contains filtered or unexported fields
}
var EmptyKeyIosSettings *KeyIosSettings = &KeyIosSettings{empty: true}

This object is used to assert a desired state where this KeyIosSettings is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*KeyIosSettings) Empty

func (r *KeyIosSettings) Empty() bool

func (*KeyIosSettings) HashCode

func (r *KeyIosSettings) HashCode() string

func (*KeyIosSettings) String

func (r *KeyIosSettings) String() string

func (*KeyIosSettings) UnmarshalJSON

func (r *KeyIosSettings) UnmarshalJSON(data []byte) error

type KeyList

type KeyList struct {
	Items []*Key
	// contains filtered or unexported fields
}

func (*KeyList) HasNext

func (l *KeyList) HasNext() bool

func (*KeyList) Next

func (l *KeyList) Next(ctx context.Context, c *Client) error

type KeyTestingOptions

type KeyTestingOptions struct {
	TestingScore     *float64                               `json:"testingScore"`
	TestingChallenge *KeyTestingOptionsTestingChallengeEnum `json:"testingChallenge"`
	// contains filtered or unexported fields
}
var EmptyKeyTestingOptions *KeyTestingOptions = &KeyTestingOptions{empty: true}

This object is used to assert a desired state where this KeyTestingOptions is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*KeyTestingOptions) Empty

func (r *KeyTestingOptions) Empty() bool

func (*KeyTestingOptions) HashCode

func (r *KeyTestingOptions) HashCode() string

func (*KeyTestingOptions) String

func (r *KeyTestingOptions) String() string

func (*KeyTestingOptions) UnmarshalJSON

func (r *KeyTestingOptions) UnmarshalJSON(data []byte) error

type KeyTestingOptionsTestingChallengeEnum

type KeyTestingOptionsTestingChallengeEnum string

The enum KeyTestingOptionsTestingChallengeEnum.

func KeyTestingOptionsTestingChallengeEnumRef

func KeyTestingOptionsTestingChallengeEnumRef(s string) *KeyTestingOptionsTestingChallengeEnum

KeyTestingOptionsTestingChallengeEnumRef returns a *KeyTestingOptionsTestingChallengeEnum with the value of string s If the empty string is provided, nil is returned.

func (KeyTestingOptionsTestingChallengeEnum) Validate

type KeyWafSettings added in v1.58.0

type KeyWafSettings struct {
	WafService *KeyWafSettingsWafServiceEnum `json:"wafService"`
	WafFeature *KeyWafSettingsWafFeatureEnum `json:"wafFeature"`
	// contains filtered or unexported fields
}
var EmptyKeyWafSettings *KeyWafSettings = &KeyWafSettings{empty: true}

This object is used to assert a desired state where this KeyWafSettings is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*KeyWafSettings) Empty added in v1.58.0

func (r *KeyWafSettings) Empty() bool

func (*KeyWafSettings) HashCode added in v1.58.0

func (r *KeyWafSettings) HashCode() string

func (*KeyWafSettings) String added in v1.58.0

func (r *KeyWafSettings) String() string

func (*KeyWafSettings) UnmarshalJSON added in v1.58.0

func (r *KeyWafSettings) UnmarshalJSON(data []byte) error

type KeyWafSettingsWafFeatureEnum added in v1.58.0

type KeyWafSettingsWafFeatureEnum string

The enum KeyWafSettingsWafFeatureEnum.

func KeyWafSettingsWafFeatureEnumRef added in v1.58.0

func KeyWafSettingsWafFeatureEnumRef(s string) *KeyWafSettingsWafFeatureEnum

KeyWafSettingsWafFeatureEnumRef returns a *KeyWafSettingsWafFeatureEnum with the value of string s If the empty string is provided, nil is returned.

func (KeyWafSettingsWafFeatureEnum) Validate added in v1.58.0

func (v KeyWafSettingsWafFeatureEnum) Validate() error

type KeyWafSettingsWafServiceEnum added in v1.58.0

type KeyWafSettingsWafServiceEnum string

The enum KeyWafSettingsWafServiceEnum.

func KeyWafSettingsWafServiceEnumRef added in v1.58.0

func KeyWafSettingsWafServiceEnumRef(s string) *KeyWafSettingsWafServiceEnum

KeyWafSettingsWafServiceEnumRef returns a *KeyWafSettingsWafServiceEnum with the value of string s If the empty string is provided, nil is returned.

func (KeyWafSettingsWafServiceEnum) Validate added in v1.58.0

func (v KeyWafSettingsWafServiceEnum) Validate() error

type KeyWebSettings

type KeyWebSettings struct {
	AllowAllDomains             *bool                                          `json:"allowAllDomains"`
	AllowedDomains              []string                                       `json:"allowedDomains"`
	AllowAmpTraffic             *bool                                          `json:"allowAmpTraffic"`
	IntegrationType             *KeyWebSettingsIntegrationTypeEnum             `json:"integrationType"`
	ChallengeSecurityPreference *KeyWebSettingsChallengeSecurityPreferenceEnum `json:"challengeSecurityPreference"`
	// contains filtered or unexported fields
}
var EmptyKeyWebSettings *KeyWebSettings = &KeyWebSettings{empty: true}

This object is used to assert a desired state where this KeyWebSettings is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*KeyWebSettings) Empty

func (r *KeyWebSettings) Empty() bool

func (*KeyWebSettings) HashCode

func (r *KeyWebSettings) HashCode() string

func (*KeyWebSettings) String

func (r *KeyWebSettings) String() string

func (*KeyWebSettings) UnmarshalJSON

func (r *KeyWebSettings) UnmarshalJSON(data []byte) error

type KeyWebSettingsChallengeSecurityPreferenceEnum

type KeyWebSettingsChallengeSecurityPreferenceEnum string

The enum KeyWebSettingsChallengeSecurityPreferenceEnum.

func KeyWebSettingsChallengeSecurityPreferenceEnumRef

func KeyWebSettingsChallengeSecurityPreferenceEnumRef(s string) *KeyWebSettingsChallengeSecurityPreferenceEnum

KeyWebSettingsChallengeSecurityPreferenceEnumRef returns a *KeyWebSettingsChallengeSecurityPreferenceEnum with the value of string s If the empty string is provided, nil is returned.

func (KeyWebSettingsChallengeSecurityPreferenceEnum) Validate

type KeyWebSettingsIntegrationTypeEnum

type KeyWebSettingsIntegrationTypeEnum string

The enum KeyWebSettingsIntegrationTypeEnum.

func KeyWebSettingsIntegrationTypeEnumRef

func KeyWebSettingsIntegrationTypeEnumRef(s string) *KeyWebSettingsIntegrationTypeEnum

KeyWebSettingsIntegrationTypeEnumRef returns a *KeyWebSettingsIntegrationTypeEnum with the value of string s If the empty string is provided, nil is returned.

func (KeyWebSettingsIntegrationTypeEnum) Validate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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