v1alpha1

package
v1.123.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme

	APIKeysKeyGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    reflect.TypeOf(APIKeysKey{}).Name(),
	}
)
View Source
var (
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "apikeys.cnrm.cloud.google.com", Version: "v1alpha1"}
)

Functions

This section is empty.

Types

type APIKeyObservedState

type APIKeyObservedState struct {

	// Output only. Unique id in UUID4 format.
	Uid *string `json:"uid,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.Key

func (*APIKeyObservedState) DeepCopy

func (in *APIKeyObservedState) DeepCopy() *APIKeyObservedState

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

func (*APIKeyObservedState) DeepCopyInto

func (in *APIKeyObservedState) DeepCopyInto(out *APIKeyObservedState)

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

type APIKeySpec

type APIKeySpec struct {
	/* Immutable. The Project that this resource belongs to. */
	ProjectRef v1beta1.ProjectRef `json:"projectRef"`

	/* Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */
	// +optional
	ResourceID *string `json:"resourceID,omitempty"`

	// Human-readable display name of this key that you can modify.
	//  The maximum length is 63 characters.
	DisplayName *string `json:"displayName,omitempty"`

	// Key restrictions.
	Restrictions *Restrictions `json:"restrictions,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.Key

func (*APIKeySpec) DeepCopy

func (in *APIKeySpec) DeepCopy() *APIKeySpec

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

func (*APIKeySpec) DeepCopyInto

func (in *APIKeySpec) DeepCopyInto(out *APIKeySpec)

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

type APIKeyStatus

type APIKeyStatus struct {
	/* Conditions represent the latest available observations of the
	   object's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`

	/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
	// +optional
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	/* ObservedState is the state of the resource as most recently observed in GCP. */
	// +optional
	ObservedState *APIKeyObservedState `json:"observedState,omitempty"`
}

func (*APIKeyStatus) DeepCopy

func (in *APIKeyStatus) DeepCopy() *APIKeyStatus

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

func (*APIKeyStatus) DeepCopyInto

func (in *APIKeyStatus) DeepCopyInto(out *APIKeyStatus)

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

type APIKeysKey

type APIKeysKey struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +required
	Spec APIKeySpec `json:"spec,omitempty"`

	Status APIKeyStatus `json:"status,omitempty"`
}

APIKeysKey is the Schema for the APIKeys Key resource. +k8s:openapi-gen=true

func (*APIKeysKey) DeepCopy

func (in *APIKeysKey) DeepCopy() *APIKeysKey

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

func (*APIKeysKey) DeepCopyInto

func (in *APIKeysKey) DeepCopyInto(out *APIKeysKey)

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

func (*APIKeysKey) DeepCopyObject

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

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

type APIKeysKeyList

type APIKeysKeyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []APIKeysKey `json:"items"`
}

APIKeysKeyList contains a list of APIKeysKey

func (*APIKeysKeyList) DeepCopy

func (in *APIKeysKeyList) DeepCopy() *APIKeysKeyList

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

func (*APIKeysKeyList) DeepCopyInto

func (in *APIKeysKeyList) DeepCopyInto(out *APIKeysKeyList)

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

func (*APIKeysKeyList) DeepCopyObject

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

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

type AndroidApplication

type AndroidApplication struct {
	// The SHA1 fingerprint of the application. For example, both sha1 formats are
	//  acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or
	//  DA39A3EE5E6B4B0D3255BFEF95601890AFD80709.
	//  Output format is the latter.
	// +required
	Sha1Fingerprint *string `json:"sha1Fingerprint,omitempty"`

	// The package name of the application.
	// +required
	PackageName *string `json:"packageName,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.AndroidApplication

func (*AndroidApplication) DeepCopy

func (in *AndroidApplication) DeepCopy() *AndroidApplication

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

func (*AndroidApplication) DeepCopyInto

func (in *AndroidApplication) DeepCopyInto(out *AndroidApplication)

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

type AndroidKeyRestrictions

type AndroidKeyRestrictions struct {
	// A list of Android applications that are allowed to make API calls with this key.
	// +required
	AllowedApplications []AndroidApplication `json:"allowedApplications,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.AndroidKeyRestrictions

func (*AndroidKeyRestrictions) DeepCopy

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

func (*AndroidKeyRestrictions) DeepCopyInto

func (in *AndroidKeyRestrictions) DeepCopyInto(out *AndroidKeyRestrictions)

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

type ApiTarget

type ApiTarget struct {
	// The service for this restriction. It should be the canonical
	//  service name, for example: `translate.googleapis.com`.
	//  You can use [`gcloud services list`](/sdk/gcloud/reference/services/list)
	//  to get a list of services that are enabled in the project.
	// +required
	Service *string `json:"service,omitempty"`

	// Optional. List of one or more methods that can be called.
	//  If empty, all methods for the service are allowed. A wildcard
	//  (*) can be used as the last symbol.
	//  Valid examples:
	//    `google.cloud.translate.v2.TranslateService.GetSupportedLanguage`
	//    `TranslateText`
	//    `Get*`
	//    `translate.googleapis.com.Get*`
	Methods []string `json:"methods,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.ApiTarget

func (*ApiTarget) DeepCopy

func (in *ApiTarget) DeepCopy() *ApiTarget

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

func (*ApiTarget) DeepCopyInto

func (in *ApiTarget) DeepCopyInto(out *ApiTarget)

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

type BrowserKeyRestrictions

type BrowserKeyRestrictions struct {
	// A list of regular expressions for the referrer URLs that are allowed
	//  to make API calls with this key.
	// +required
	AllowedReferrers []string `json:"allowedReferrers,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.BrowserKeyRestrictions

func (*BrowserKeyRestrictions) DeepCopy

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

func (*BrowserKeyRestrictions) DeepCopyInto

func (in *BrowserKeyRestrictions) DeepCopyInto(out *BrowserKeyRestrictions)

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

type IosKeyRestrictions

type IosKeyRestrictions struct {
	// A list of bundle IDs that are allowed when making API calls with this key.
	// +required
	AllowedBundleIds []string `json:"allowedBundleIds,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.IosKeyRestrictions

func (*IosKeyRestrictions) DeepCopy

func (in *IosKeyRestrictions) DeepCopy() *IosKeyRestrictions

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

func (*IosKeyRestrictions) DeepCopyInto

func (in *IosKeyRestrictions) DeepCopyInto(out *IosKeyRestrictions)

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

type Key_AnnotationsEntry

type Key_AnnotationsEntry struct {
	Key *string `json:"key,omitempty"`

	Value *string `json:"value,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.Key.AnnotationsEntry

func (*Key_AnnotationsEntry) DeepCopy

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

func (*Key_AnnotationsEntry) DeepCopyInto

func (in *Key_AnnotationsEntry) DeepCopyInto(out *Key_AnnotationsEntry)

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

type Restrictions

type Restrictions struct {
	// The HTTP referrers (websites) that are allowed to use the key.
	BrowserKeyRestrictions *BrowserKeyRestrictions `json:"browserKeyRestrictions,omitempty"`

	// The IP addresses of callers that are allowed to use the key.
	ServerKeyRestrictions *ServerKeyRestrictions `json:"serverKeyRestrictions,omitempty"`

	// The Android apps that are allowed to use the key.
	AndroidKeyRestrictions *AndroidKeyRestrictions `json:"androidKeyRestrictions,omitempty"`

	// The iOS apps that are allowed to use the key.
	IosKeyRestrictions *IosKeyRestrictions `json:"iosKeyRestrictions,omitempty"`

	// A restriction for a specific service and optionally one or
	//  more specific methods. Requests are allowed if they
	//  match any of these restrictions. If no restrictions are
	//  specified, all targets are allowed.
	ApiTargets []ApiTarget `json:"apiTargets,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.Restrictions

func (*Restrictions) DeepCopy

func (in *Restrictions) DeepCopy() *Restrictions

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

func (*Restrictions) DeepCopyInto

func (in *Restrictions) DeepCopyInto(out *Restrictions)

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

type ServerKeyRestrictions

type ServerKeyRestrictions struct {
	// A list of the caller IP addresses that are allowed to make API calls
	//  with this key.
	// +required
	AllowedIps []string `json:"allowedIps,omitempty"`
}

+kcc:proto=google.api.apikeys.v2.ServerKeyRestrictions

func (*ServerKeyRestrictions) DeepCopy

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

func (*ServerKeyRestrictions) DeepCopyInto

func (in *ServerKeyRestrictions) DeepCopyInto(out *ServerKeyRestrictions)

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