v1alpha1

package
v1.105.0 Latest Latest
Warning

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

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

Documentation

Overview

Generate deepcopy object for bigqueryreservation/v1alpha1 API group

Package v1alpha1 contains API Schema definitions for the bigqueryreservation v1alpha1 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/bigqueryreservation +k8s:defaulter-gen=TypeMeta +groupName=bigqueryreservation.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: "bigqueryreservation.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

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

Functions

This section is empty.

Types

type BigQueryReservationReservation

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

	Spec   BigQueryReservationReservationSpec   `json:"spec,omitempty"`
	Status BigQueryReservationReservationStatus `json:"status,omitempty"`
}

BigQueryReservationReservation is the Schema for the bigqueryreservation API +k8s:openapi-gen=true

func (*BigQueryReservationReservation) DeepCopy

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

func (*BigQueryReservationReservation) DeepCopyInto

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

func (*BigQueryReservationReservation) DeepCopyObject

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

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

type BigQueryReservationReservationList

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

BigQueryReservationReservationList contains a list of BigQueryReservationReservation

func (*BigQueryReservationReservationList) DeepCopy

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

func (*BigQueryReservationReservationList) DeepCopyInto

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

func (*BigQueryReservationReservationList) DeepCopyObject

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

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

type BigQueryReservationReservationSpec

type BigQueryReservationReservationSpec struct {
	/* The configuration parameters for the auto scaling feature. */
	// +optional
	Autoscale *ReservationAutoscale `json:"autoscale,omitempty"`

	/* Maximum number of queries that are allowed to run concurrently in this reservation. This is a soft limit due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency will be automatically set based on the reservation size. */
	// +optional
	Concurrency *int `json:"concurrency,omitempty"`

	/* Immutable. The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS. */
	// +optional
	Edition *string `json:"edition,omitempty"`

	/* If false, any query using this reservation will use idle slots from other reservations within
	the same admin project. If true, a query using this reservation will execute with the slot
	capacity specified above at most. */
	// +optional
	IgnoreIdleSlots *bool `json:"ignoreIdleSlots,omitempty"`

	/* Immutable. The geographic location where the transfer config should reside.
	Examples: US, EU, asia-northeast1. The default value is US. */
	Location string `json:"location"`

	/* Applicable only for reservations located within one of the BigQuery multi-regions (US or EU).
	If set to true, this reservation is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization's default region. */
	// +optional
	MultiRegionAuxiliary *bool `json:"multiRegionAuxiliary,omitempty"`

	/* The project that this resource belongs to. */
	ProjectRef v1alpha1.ResourceRef `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"`

	/* Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the
	unit of parallelism. Queries using this reservation might use more slots during runtime if ignoreIdleSlots is set to false. */
	SlotCapacity int `json:"slotCapacity"`
}

func (*BigQueryReservationReservationSpec) DeepCopy

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

func (*BigQueryReservationReservationSpec) DeepCopyInto

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

type BigQueryReservationReservationStatus

type BigQueryReservationReservationStatus struct {
	/* Conditions represent the latest available observations of the
	   BigQueryReservationReservation'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 *int `json:"observedGeneration,omitempty"`
}

func (*BigQueryReservationReservationStatus) DeepCopy

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

func (*BigQueryReservationReservationStatus) DeepCopyInto

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

type ReservationAutoscale

type ReservationAutoscale struct {
	/* The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots]. */
	// +optional
	CurrentSlots *int `json:"currentSlots,omitempty"`

	/* Number of slots to be scaled when needed. */
	// +optional
	MaxSlots *int `json:"maxSlots,omitempty"`
}

func (*ReservationAutoscale) DeepCopy

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

func (*ReservationAutoscale) DeepCopyInto

func (in *ReservationAutoscale) DeepCopyInto(out *ReservationAutoscale)

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