v1alpha1

package
v1.125.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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: "v1alpha1"}

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

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

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

Functions

This section is empty.

Types

type BigQueryReservationCapacityCommitment added in v1.108.0

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

	Spec   BigQueryReservationCapacityCommitmentSpec   `json:"spec,omitempty"`
	Status BigQueryReservationCapacityCommitmentStatus `json:"status,omitempty"`
}

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

func (*BigQueryReservationCapacityCommitment) DeepCopy added in v1.108.0

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

func (*BigQueryReservationCapacityCommitment) DeepCopyInto added in v1.108.0

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

func (*BigQueryReservationCapacityCommitment) DeepCopyObject added in v1.108.0

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

type BigQueryReservationCapacityCommitmentList added in v1.108.0

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

BigQueryReservationCapacityCommitmentList contains a list of BigQueryReservationCapacityCommitment

func (*BigQueryReservationCapacityCommitmentList) DeepCopy added in v1.108.0

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

func (*BigQueryReservationCapacityCommitmentList) DeepCopyInto added in v1.108.0

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

func (*BigQueryReservationCapacityCommitmentList) DeepCopyObject added in v1.108.0

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

type BigQueryReservationCapacityCommitmentSpec added in v1.108.0

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

	/* Immutable. If true, fail the request if another project in the organization has a capacity commitment. */
	// +optional
	EnforceSingleAdminProjectPerOrg *string `json:"enforceSingleAdminProjectPerOrg,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"`

	/* Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan. */
	Plan string `json:"plan"`

	/* The project that this resource belongs to. */
	ProjectRef v1alpha1.ResourceRef `json:"projectRef"`

	/* The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable some commitment plans. */
	// +optional
	RenewalPlan *string `json:"renewalPlan,omitempty"`

	/* Immutable. Optional. The capacityCommitmentId 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"`

	/* Immutable. Number of slots in this commitment. */
	SlotCount int64 `json:"slotCount"`
}

func (*BigQueryReservationCapacityCommitmentSpec) DeepCopy added in v1.108.0

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

func (*BigQueryReservationCapacityCommitmentSpec) DeepCopyInto added in v1.108.0

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

type BigQueryReservationCapacityCommitmentStatus added in v1.108.0

type BigQueryReservationCapacityCommitmentStatus struct {
	/* Conditions represent the latest available observations of the
	   BigQueryReservationCapacityCommitment's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* The start of the current commitment period. It is applicable only for ACTIVE capacity commitments. */
	// +optional
	CommitmentEndTime *string `json:"commitmentEndTime,omitempty"`

	/* The start of the current commitment period. It is applicable only for ACTIVE capacity commitments. */
	// +optional
	CommitmentStartTime *string `json:"commitmentStartTime,omitempty"`

	/* The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123. */
	// +optional
	Name *string `json:"name,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"`

	/* State of the commitment. */
	// +optional
	State *string `json:"state,omitempty"`
}

func (*BigQueryReservationCapacityCommitmentStatus) DeepCopy added in v1.108.0

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

func (*BigQueryReservationCapacityCommitmentStatus) DeepCopyInto added in v1.108.0

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

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 *int64 `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 int64 `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 *int64 `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 *int64 `json:"currentSlots,omitempty"`

	/* Number of slots to be scaled when needed. */
	// +optional
	MaxSlots *int64 `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