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
- Variables
- func DCLKeySchema() *dcl.Schema
- type Client
- func (c *Client) ApplyKey(ctx context.Context, rawDesired *Key, opts ...dcl.ApplyOption) (*Key, error)
- func (c *Client) DeleteAllKey(ctx context.Context, project string, filter func(*Key) bool) error
- func (c *Client) DeleteKey(ctx context.Context, r *Key) error
- func (c *Client) GetKey(ctx context.Context, r *Key) (*Key, error)
- func (c *Client) ListKey(ctx context.Context, project string) (*KeyList, error)
- func (c *Client) ListKeyWithMaxResults(ctx context.Context, project string, pageSize int32) (*KeyList, error)
- type Key
- type KeyAndroidSettings
- type KeyIosSettings
- type KeyList
- type KeyTestingOptions
- type KeyTestingOptionsTestingChallengeEnum
- type KeyWafSettings
- type KeyWafSettingsWafFeatureEnum
- type KeyWafSettingsWafServiceEnum
- type KeyWebSettings
- type KeyWebSettingsChallengeSecurityPreferenceEnum
- type KeyWebSettingsIntegrationTypeEnum
Constants ¶
const KeyMaxPage = -1
Variables ¶
var YAML_key []byte
Functions ¶
func DCLKeySchema ¶ added in v1.10.3
Types ¶
type Client ¶
The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.
func (*Client) DeleteAllKey ¶
DeleteAllKey deletes all resources that the filter functions returns true on.
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.
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 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 ¶
func (v KeyTestingOptionsTestingChallengeEnum) Validate() error
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 ¶
func (v KeyWebSettingsChallengeSecurityPreferenceEnum) Validate() error
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 ¶
func (v KeyWebSettingsIntegrationTypeEnum) Validate() error