v1beta1

package
v1.85.0 Latest Latest
Warning

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

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

Documentation

Overview

Generate deepcopy object for spanner/v1beta1 API group

Package v1beta1 contains API Schema definitions for the spanner v1beta1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/spanner +k8s:defaulter-gen=TypeMeta +groupName=spanner.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "spanner.cnrm.cloud.google.com", Version: "v1beta1"}

	// 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

	SpannerDatabaseGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    reflect.TypeOf(SpannerDatabase{}).Name(),
	}

	SpannerInstanceGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    reflect.TypeOf(SpannerInstance{}).Name(),
	}
)

Functions

This section is empty.

Types

type DatabaseEncryptionConfig

type DatabaseEncryptionConfig struct {
	/* Fully qualified name of the KMS key to use to encrypt this database. This key
	must exist in the same location as the Spanner Database. */
	KmsKeyRef v1alpha1.ResourceRef `json:"kmsKeyRef"`
}

func (*DatabaseEncryptionConfig) DeepCopy

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

func (*DatabaseEncryptionConfig) DeepCopyInto

func (in *DatabaseEncryptionConfig) DeepCopyInto(out *DatabaseEncryptionConfig)

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

type SpannerDatabase

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

	Spec   SpannerDatabaseSpec   `json:"spec,omitempty"`
	Status SpannerDatabaseStatus `json:"status,omitempty"`
}

SpannerDatabase is the Schema for the spanner API +k8s:openapi-gen=true

func (*SpannerDatabase) DeepCopy

func (in *SpannerDatabase) DeepCopy() *SpannerDatabase

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

func (*SpannerDatabase) DeepCopyInto

func (in *SpannerDatabase) DeepCopyInto(out *SpannerDatabase)

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

func (*SpannerDatabase) DeepCopyObject

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

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

type SpannerDatabaseList

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

SpannerDatabaseList contains a list of SpannerDatabase

func (*SpannerDatabaseList) DeepCopy

func (in *SpannerDatabaseList) DeepCopy() *SpannerDatabaseList

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

func (*SpannerDatabaseList) DeepCopyInto

func (in *SpannerDatabaseList) DeepCopyInto(out *SpannerDatabaseList)

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

func (*SpannerDatabaseList) DeepCopyObject

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

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

type SpannerDatabaseSpec

type SpannerDatabaseSpec struct {
	/*  */
	// +optional
	DatabaseDialect *string `json:"databaseDialect,omitempty"`

	/* An optional list of DDL statements to run inside the newly created
	database. Statements can create tables, indexes, etc. These statements
	execute atomically with the creation of the database: if there is an
	error in any statement, the database is not created. */
	// +optional
	Ddl []string `json:"ddl,omitempty"`

	/* Immutable. Encryption configuration for the database. */
	// +optional
	EncryptionConfig *DatabaseEncryptionConfig `json:"encryptionConfig,omitempty"`

	/* The instance to create the database on. */
	InstanceRef v1alpha1.ResourceRef `json:"instanceRef"`

	/* 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"`
}

func (*SpannerDatabaseSpec) DeepCopy

func (in *SpannerDatabaseSpec) DeepCopy() *SpannerDatabaseSpec

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

func (*SpannerDatabaseSpec) DeepCopyInto

func (in *SpannerDatabaseSpec) DeepCopyInto(out *SpannerDatabaseSpec)

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

type SpannerDatabaseStatus

type SpannerDatabaseStatus struct {
	/* Conditions represent the latest available observations of the
	   SpannerDatabase'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. */
	ObservedGeneration int `json:"observedGeneration,omitempty"`
	/* An explanation of the status of the database. */
	State string `json:"state,omitempty"`
}

func (*SpannerDatabaseStatus) DeepCopy

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

func (*SpannerDatabaseStatus) DeepCopyInto

func (in *SpannerDatabaseStatus) DeepCopyInto(out *SpannerDatabaseStatus)

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

type SpannerInstance

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

	Spec   SpannerInstanceSpec   `json:"spec,omitempty"`
	Status SpannerInstanceStatus `json:"status,omitempty"`
}

SpannerInstance is the Schema for the spanner API +k8s:openapi-gen=true

func (*SpannerInstance) DeepCopy

func (in *SpannerInstance) DeepCopy() *SpannerInstance

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

func (*SpannerInstance) DeepCopyInto

func (in *SpannerInstance) DeepCopyInto(out *SpannerInstance)

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

func (*SpannerInstance) DeepCopyObject

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

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

type SpannerInstanceList

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

SpannerInstanceList contains a list of SpannerInstance

func (*SpannerInstanceList) DeepCopy

func (in *SpannerInstanceList) DeepCopy() *SpannerInstanceList

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

func (*SpannerInstanceList) DeepCopyInto

func (in *SpannerInstanceList) DeepCopyInto(out *SpannerInstanceList)

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

func (*SpannerInstanceList) DeepCopyObject

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

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

type SpannerInstanceSpec

type SpannerInstanceSpec struct {
	/* Immutable. The name of the instance's configuration (similar but not
	quite the same as a region) which defines the geographic placement and
	replication of your databases in this instance. It determines where your data
	is stored. Values are typically of the form 'regional-europe-west1' , 'us-central' etc.
	In order to obtain a valid list please consult the
	[Configuration section of the docs](https://cloud.google.com/spanner/docs/instances). */
	Config string `json:"config"`

	/* The descriptive name for this instance as it appears in UIs. Must be
	unique per project and between 4 and 30 characters in length. */
	DisplayName string `json:"displayName"`

	/*  */
	// +optional
	NumNodes *int `json:"numNodes,omitempty"`

	/*  */
	// +optional
	ProcessingUnits *int `json:"processingUnits,omitempty"`

	/* 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"`
}

func (*SpannerInstanceSpec) DeepCopy

func (in *SpannerInstanceSpec) DeepCopy() *SpannerInstanceSpec

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

func (*SpannerInstanceSpec) DeepCopyInto

func (in *SpannerInstanceSpec) DeepCopyInto(out *SpannerInstanceSpec)

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

type SpannerInstanceStatus

type SpannerInstanceStatus struct {
	/* Conditions represent the latest available observations of the
	   SpannerInstance'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. */
	ObservedGeneration int `json:"observedGeneration,omitempty"`
	/* Instance status: 'CREATING' or 'READY'. */
	State string `json:"state,omitempty"`
}

func (*SpannerInstanceStatus) DeepCopy

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

func (*SpannerInstanceStatus) DeepCopyInto

func (in *SpannerInstanceStatus) DeepCopyInto(out *SpannerInstanceStatus)

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