v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=recaptcha.google.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: recaptcha.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type EnterpriseKey

type EnterpriseKey struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EnterpriseKeySpec   `json:"spec,omitempty"`
	Status            EnterpriseKeyStatus `json:"status,omitempty"`
}

func (*EnterpriseKey) DeepCopy

func (in *EnterpriseKey) DeepCopy() *EnterpriseKey

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKey.

func (*EnterpriseKey) DeepCopyInto

func (in *EnterpriseKey) DeepCopyInto(out *EnterpriseKey)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*EnterpriseKey) DeepCopyObject

func (in *EnterpriseKey) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*EnterpriseKey) SetupWebhookWithManager

func (r *EnterpriseKey) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*EnterpriseKey) ValidateCreate

func (r *EnterpriseKey) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*EnterpriseKey) ValidateDelete

func (r *EnterpriseKey) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*EnterpriseKey) ValidateUpdate

func (r *EnterpriseKey) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type EnterpriseKeyList

type EnterpriseKeyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of EnterpriseKey CRD objects
	Items []EnterpriseKey `json:"items,omitempty"`
}

EnterpriseKeyList is a list of EnterpriseKeys

func (*EnterpriseKeyList) DeepCopy

func (in *EnterpriseKeyList) DeepCopy() *EnterpriseKeyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKeyList.

func (*EnterpriseKeyList) DeepCopyInto

func (in *EnterpriseKeyList) DeepCopyInto(out *EnterpriseKeyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*EnterpriseKeyList) DeepCopyObject

func (in *EnterpriseKeyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EnterpriseKeySpec

type EnterpriseKeySpec struct {
	State *EnterpriseKeySpecResource `json:"state,omitempty" tf:"-"`

	Resource EnterpriseKeySpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*EnterpriseKeySpec) DeepCopy

func (in *EnterpriseKeySpec) DeepCopy() *EnterpriseKeySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKeySpec.

func (*EnterpriseKeySpec) DeepCopyInto

func (in *EnterpriseKeySpec) DeepCopyInto(out *EnterpriseKeySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnterpriseKeySpecAndroidSettings

type EnterpriseKeySpecAndroidSettings struct {
	// If set to true, it means allowed_package_names will not be enforced.
	// +optional
	AllowAllPackageNames *bool `json:"allowAllPackageNames,omitempty" tf:"allow_all_package_names"`
	// Android package names of apps allowed to use the key. Example: 'com.companyname.appname'
	// +optional
	AllowedPackageNames []string `json:"allowedPackageNames,omitempty" tf:"allowed_package_names"`
}

func (*EnterpriseKeySpecAndroidSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKeySpecAndroidSettings.

func (*EnterpriseKeySpecAndroidSettings) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnterpriseKeySpecAndroidSettingsCodec

type EnterpriseKeySpecAndroidSettingsCodec struct {
}

+k8s:deepcopy-gen=false

func (EnterpriseKeySpecAndroidSettingsCodec) Decode

func (EnterpriseKeySpecAndroidSettingsCodec) Encode

func (EnterpriseKeySpecAndroidSettingsCodec) IsEmpty

type EnterpriseKeySpecIosSettings

type EnterpriseKeySpecIosSettings struct {
	// If set to true, it means allowed_bundle_ids will not be enforced.
	// +optional
	AllowAllBundleIDS *bool `json:"allowAllBundleIDS,omitempty" tf:"allow_all_bundle_ids"`
	// iOS bundle ids of apps allowed to use the key. Example: 'com.companyname.productname.appname'
	// +optional
	AllowedBundleIDS []string `json:"allowedBundleIDS,omitempty" tf:"allowed_bundle_ids"`
}

func (*EnterpriseKeySpecIosSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKeySpecIosSettings.

func (*EnterpriseKeySpecIosSettings) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnterpriseKeySpecIosSettingsCodec

type EnterpriseKeySpecIosSettingsCodec struct {
}

+k8s:deepcopy-gen=false

func (EnterpriseKeySpecIosSettingsCodec) Decode

func (EnterpriseKeySpecIosSettingsCodec) Encode

func (EnterpriseKeySpecIosSettingsCodec) IsEmpty

type EnterpriseKeySpecResource

type EnterpriseKeySpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Settings for keys that can be used by Android apps.
	// +optional
	AndroidSettings *EnterpriseKeySpecAndroidSettings `json:"androidSettings,omitempty" tf:"android_settings"`
	// The timestamp corresponding to the creation of this Key.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// Human-readable display name of this key. Modifiable by user.
	DisplayName *string `json:"displayName" tf:"display_name"`
	// Settings for keys that can be used by iOS apps.
	// +optional
	IosSettings *EnterpriseKeySpecIosSettings `json:"iosSettings,omitempty" tf:"ios_settings"`
	// See [Creating and managing labels](https://cloud.google.com/recaptcha-enterprise/docs/labels).
	// +optional
	Labels *map[string]string `json:"labels,omitempty" tf:"labels"`
	// The resource name for the Key in the format "projects/{project}/keys/{key}".
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// The project for the resource
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// Options for user acceptance testing.
	// +optional
	TestingOptions *EnterpriseKeySpecTestingOptions `json:"testingOptions,omitempty" tf:"testing_options"`
	// Settings for keys that can be used by websites.
	// +optional
	WebSettings *EnterpriseKeySpecWebSettings `json:"webSettings,omitempty" tf:"web_settings"`
}

func (*EnterpriseKeySpecResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKeySpecResource.

func (*EnterpriseKeySpecResource) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnterpriseKeySpecTestingOptions

type EnterpriseKeySpecTestingOptions struct {
	// For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site will return nocaptcha if NOCAPTCHA, or an unsolvable challenge if UNSOLVABLE_CHALLENGE. Possible values: TESTING_CHALLENGE_UNSPECIFIED, NOCAPTCHA, UNSOLVABLE_CHALLENGE
	// +optional
	TestingChallenge *string `json:"testingChallenge,omitempty" tf:"testing_challenge"`
	// All assessments for this Key will return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
	// +optional
	TestingScore *float64 `json:"testingScore,omitempty" tf:"testing_score"`
}

func (*EnterpriseKeySpecTestingOptions) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKeySpecTestingOptions.

func (*EnterpriseKeySpecTestingOptions) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnterpriseKeySpecTestingOptionsCodec

type EnterpriseKeySpecTestingOptionsCodec struct {
}

+k8s:deepcopy-gen=false

func (EnterpriseKeySpecTestingOptionsCodec) Decode

func (EnterpriseKeySpecTestingOptionsCodec) Encode

func (EnterpriseKeySpecTestingOptionsCodec) IsEmpty

type EnterpriseKeySpecWebSettings

type EnterpriseKeySpecWebSettings struct {
	// If set to true, it means allowed_domains will not be enforced.
	// +optional
	AllowAllDomains *bool `json:"allowAllDomains,omitempty" tf:"allow_all_domains"`
	// If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
	// +optional
	AllowAmpTraffic *bool `json:"allowAmpTraffic,omitempty" tf:"allow_amp_traffic"`
	// 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'
	// +optional
	AllowedDomains []string `json:"allowedDomains,omitempty" tf:"allowed_domains"`
	// 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, USABILITY, BALANCE, SECURITY
	// +optional
	ChallengeSecurityPreference *string `json:"challengeSecurityPreference,omitempty" tf:"challenge_security_preference"`
	// Required. Describes how this key is integrated with the website. Possible values: SCORE, CHECKBOX, INVISIBLE
	IntegrationType *string `json:"integrationType" tf:"integration_type"`
}

func (*EnterpriseKeySpecWebSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKeySpecWebSettings.

func (*EnterpriseKeySpecWebSettings) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnterpriseKeySpecWebSettingsCodec

type EnterpriseKeySpecWebSettingsCodec struct {
}

+k8s:deepcopy-gen=false

func (EnterpriseKeySpecWebSettingsCodec) Decode

func (EnterpriseKeySpecWebSettingsCodec) Encode

func (EnterpriseKeySpecWebSettingsCodec) IsEmpty

type EnterpriseKeyStatus

type EnterpriseKeyStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*EnterpriseKeyStatus) DeepCopy

func (in *EnterpriseKeyStatus) DeepCopy() *EnterpriseKeyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnterpriseKeyStatus.

func (*EnterpriseKeyStatus) DeepCopyInto

func (in *EnterpriseKeyStatus) DeepCopyInto(out *EnterpriseKeyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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