v1alpha1

package
v1.130.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

+kcc:proto=google.cloud.bigquery.reservation.v1

+kubebuilder:object:generate=true +groupName=bigqueryreservation.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = 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: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var BigQueryReservationAssignmentGVK = GroupVersion.WithKind("BigQueryReservationAssignment")
View Source
var BigQueryReservationReservationGVK = GroupVersion.WithKind("BigQueryReservationReservation")

Functions

This section is empty.

Types

type Assignee

type Assignee struct {
	// Exactly one of ProjectRef or FolderRef or OrganizationRef must be specified.
	// +optional
	ProjectRef *refv1beta1.ProjectRef `json:"projectRef"`
	// Exactly one of ProjectRef or FolderRef or OrganizationRef must be specified.
	// +optional
	FolderRef *refv1beta1.FolderRef `json:"folderRef"`
	// Exactly one of ProjectRef or FolderRef or OrganizationRef must be specified.
	// +optional
	OrganizationRef *refv1beta1.OrganizationRef `json:"organizationRef"`
}

+kcc:proto:field=google.cloud.bigquery.reservation.v1.Assignment.assignee

func (*Assignee) DeepCopy

func (in *Assignee) DeepCopy() *Assignee

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

func (*Assignee) DeepCopyInto

func (in *Assignee) DeepCopyInto(out *Assignee)

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

type Assignment

type Assignment struct {

	// The resource which will use the reservation. E.g.
	//  `projects/myproject`, `folders/123`, or `organizations/456`.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Assignment.assignee
	Assignee *string `json:"assignee,omitempty"`

	// Which type of jobs will use the reservation.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Assignment.job_type
	JobType *string `json:"jobType,omitempty"`
}

+kcc:proto=google.cloud.bigquery.reservation.v1.Assignment

func (*Assignment) DeepCopy

func (in *Assignment) DeepCopy() *Assignment

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

func (*Assignment) DeepCopyInto

func (in *Assignment) DeepCopyInto(out *Assignment)

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

type AssignmentIdentity

type AssignmentIdentity struct {
	// contains filtered or unexported fields
}

AssignmentIdentity defines the resource identity to BigQueryReservationAssignment, which is to be used in the controller.

func NewAssignmentIdentity

func NewAssignmentIdentity(ctx context.Context, reader client.Reader, obj *BigQueryReservationAssignment) (*AssignmentIdentity, error)

New builds a AssignmentIdentity from the Config Connector BigQueryReservationAssignment object.

func (*AssignmentIdentity) AssignmentID

func (i *AssignmentIdentity) AssignmentID() string

func (*AssignmentIdentity) DeepCopy

func (in *AssignmentIdentity) DeepCopy() *AssignmentIdentity

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

func (*AssignmentIdentity) DeepCopyInto

func (in *AssignmentIdentity) DeepCopyInto(out *AssignmentIdentity)

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

func (*AssignmentIdentity) GetProjetID

func (i *AssignmentIdentity) GetProjetID() string

func (*AssignmentIdentity) Parent

func (i *AssignmentIdentity) Parent() *BQReservation

func (*AssignmentIdentity) String

func (i *AssignmentIdentity) String() string

type AssignmentObservedState

type AssignmentObservedState struct {
	// Output only. Name of the resource. E.g.:
	//  `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
	//  The assignment_id must only contain lower case alphanumeric characters or
	//  dashes and the max length is 64 characters.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Assignment.name
	Name *string `json:"name,omitempty"`

	// Output only. State of the assignment.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Assignment.state
	State *string `json:"state,omitempty"`
}

+kcc:proto=google.cloud.bigquery.reservation.v1.Assignment

func (*AssignmentObservedState) DeepCopy

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

func (*AssignmentObservedState) DeepCopyInto

func (in *AssignmentObservedState) DeepCopyInto(out *AssignmentObservedState)

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

type AssignmentRef

type AssignmentRef struct {
	// A reference to an externally managed BigqueryReservationAssignment resource.
	// Should be in the format "projects/{{projectID}}/locations/{{location}}/assignments/{{assignmentID}}".
	External string `json:"external,omitempty"`

	// The name of a BigqueryReservationAssignment resource.
	Name string `json:"name,omitempty"`

	// The namespace of a BigqueryReservationAssignment resource.
	Namespace string `json:"namespace,omitempty"`
}

AssignmentRef defines the resource reference to BigqueryReservationAssignment, which "External" field holds the GCP identifier for the KRM object.

func (*AssignmentRef) DeepCopy

func (in *AssignmentRef) DeepCopy() *AssignmentRef

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

func (*AssignmentRef) DeepCopyInto

func (in *AssignmentRef) DeepCopyInto(out *AssignmentRef)

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

func (*AssignmentRef) NormalizedExternal

func (r *AssignmentRef) NormalizedExternal(ctx context.Context, reader client.Reader, otherNamespace string) (string, error)

NormalizedExternal provision the "External" value for other resource that depends on BigqueryReservationAssignment. If the "External" is given in the other resource's spec.BigqueryReservationAssignmentRef, the given value will be used. Otherwise, the "Name" and "Namespace" will be used to query the actual BigqueryReservationAssignment object from the cluster.

type AutoscaleObservedState

type AutoscaleObservedState struct {
	// The slot capacity added to this reservation when autoscale
	//  happens. Will be between [0, max_slots]. Note: after users reduce
	//  max_slots, it may take a while before it can be propagated, so
	//  current_slots may stay in the original value and could be larger than
	//  max_slots for that brief period (less than one minute)
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.Autoscale.current_slots
	CurrentSlots *int64 `json:"currentSlots,omitempty"`
}

+kcc:proto=google.cloud.bigquery.reservation.v1.Reservation.Autoscale

func (*AutoscaleObservedState) DeepCopy

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

func (*AutoscaleObservedState) DeepCopyInto

func (in *AutoscaleObservedState) DeepCopyInto(out *AutoscaleObservedState)

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

type AutoscaleSpec

type AutoscaleSpec struct {
	// Number of slots to be scaled when needed.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.Autoscale.max_slots
	MaxSlots *int64 `json:"maxSlots,omitempty"`
}

+kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.autoscale

func (*AutoscaleSpec) DeepCopy

func (in *AutoscaleSpec) DeepCopy() *AutoscaleSpec

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

func (*AutoscaleSpec) DeepCopyInto

func (in *AutoscaleSpec) DeepCopyInto(out *AutoscaleSpec)

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

type BQReservation

type BQReservation struct {
	ProjectID       string
	Location        string
	ReservationName string
}

func ParseAssignmentExternal

func ParseAssignmentExternal(external string) (parent *BQReservation, resourceID string, err error)

func (*BQReservation) DeepCopy

func (in *BQReservation) DeepCopy() *BQReservation

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

func (*BQReservation) DeepCopyInto

func (in *BQReservation) DeepCopyInto(out *BQReservation)

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

func (*BQReservation) String

func (p *BQReservation) String() string

type BigQueryReservationAssignment

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

	// +required
	Spec   BigQueryReservationAssignmentSpec   `json:"spec,omitempty"`
	Status BigQueryReservationAssignmentStatus `json:"status,omitempty"`
}

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

func (*BigQueryReservationAssignment) DeepCopy

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

func (*BigQueryReservationAssignment) DeepCopyInto

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

func (*BigQueryReservationAssignment) DeepCopyObject

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

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

type BigQueryReservationAssignmentList

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object BigQueryReservationAssignmentList contains a list of BigQueryReservationAssignment

func (*BigQueryReservationAssignmentList) DeepCopy

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

func (*BigQueryReservationAssignmentList) DeepCopyInto

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

func (*BigQueryReservationAssignmentList) DeepCopyObject

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

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

type BigQueryReservationAssignmentObservedState

type BigQueryReservationAssignmentObservedState struct {
	// State of the assignment.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Assignment.state
	State *string `json:"state,omitempty"`
}

BigQueryReservationAssignmentObservedState is the state of the BigQueryReservationAssignment resource as most recently observed in GCP. +kcc:proto=google.cloud.bigquery.reservation.v1.Assignment

func (*BigQueryReservationAssignmentObservedState) DeepCopy

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

func (*BigQueryReservationAssignmentObservedState) DeepCopyInto

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

type BigQueryReservationAssignmentSpec

type BigQueryReservationAssignmentSpec struct {
	// The name of reservation to create a new assignment in,
	//  or to move the assignment to.
	// +required
	ReservationRef *ReservationRef `json:"reservationRef,omitempty"`

	// +kubebuilder:validation:XValidation:rule="self != null && has(self.projectRef) != has(self.folderRef) != has(self.organizationRef)",message="Exactly one of orojectRef or folderRef or organizationRef must be specified."
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="assignee field is immutable"
	// Immutable.
	// Required. The resource which will use the reservation. E.g.
	//  `projects/myproject`, `folders/123`, or `organizations/456`.
	// +required
	Assignee *Assignee `json:"assignee,omitempty"`

	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="jobType field is immutable"
	// Immutable.
	// Which type of jobs will use the reservation.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Assignment.job_type
	// +required
	JobType *string `json:"jobType,omitempty"`

	// Immutable. Optional.
	// The BigQueryReservationAssignment ID used for resource creation or acquisition.
	// Service-generated.Can be set only if resource acquisition .
	// For acquisition: This field must be provided to identify the Reservation resource to acquire.
	ResourceID *string `json:"resourceID,omitempty"`
}

BigQueryReservationAssignmentSpec defines the desired state of BigQueryReservationAssignment +kcc:proto=google.cloud.bigquery.reservation.v1.Assignment

func (*BigQueryReservationAssignmentSpec) DeepCopy

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

func (*BigQueryReservationAssignmentSpec) DeepCopyInto

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

type BigQueryReservationAssignmentStatus

type BigQueryReservationAssignmentStatus 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.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	// A unique specifier for the BigqueryReservationAssignment resource in GCP.
	ExternalRef *string `json:"externalRef,omitempty"`

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

BigQueryReservationAssignmentStatus defines the config connector machine state of BigQueryReservationAssignment

func (*BigQueryReservationAssignmentStatus) DeepCopy

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

func (*BigQueryReservationAssignmentStatus) DeepCopyInto

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"`

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

BigQueryReservationReservation is the Schema for the BigQueryReservationReservation 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"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object 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 BigQueryReservationReservationObservedState

type BigQueryReservationReservationObservedState struct {
	FailOver  *FailoverObservedState  `json:"failover,omitempty"`
	Autoscale *AutoscaleObservedState `json:"autoscale,omitempty"`
}

BigQueryReservationReservationSpec defines the desired state of BigQueryReservationReservation +kcc:proto=google.cloud.bigquery.reservation.v1.Reservation BigQueryReservationReservationObservedState is the state of the BigQueryReservationReservation resource as most recently observed in GCP.

func (*BigQueryReservationReservationObservedState) DeepCopy

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

func (*BigQueryReservationReservationObservedState) DeepCopyInto

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

type BigQueryReservationReservationSpec

type BigQueryReservationReservationSpec struct {
	Parent `json:",inline"`

	// Immutable. Optional.
	// The BigQuery Reservation ID used for resource creation or acquisition.
	// It must only contain lower case alphanumeric
	// characters or dashes. It must start with a letter and must not end
	// with a dash. Its maximum length is 64 characters.
	// For creation: If specified, this value is used as the Reservation ID. If not provided, a UUID will be generated and assigned as the Reservation ID.
	// For acquisition: This field must be provided to identify the Reservation resource to acquire.
	ResourceID *string `json:"resourceID,omitempty"`

	// Optional. Baseline 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
	//  ignore_idle_slots is set to false, or autoscaling is enabled.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.slot_capacity
	SlotCapacity *int64 `json:"slotCapacity,omitempty"`

	// If false, any query or pipeline job using this reservation will use idle
	//  slots from other reservations within the same admin project. If true, a
	//  query or pipeline job using this reservation will execute with the slot
	//  capacity specified in the slot_capacity field at most.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.ignore_idle_slots
	IgnoreIdleSlots *bool `json:"ignoreIdleSlots,omitempty"`

	// Optional. The configuration parameters for the auto scaling feature.
	Autoscale *AutoscaleSpec `json:"autoscale,omitempty"`

	// Job concurrency target which sets a soft upper bound on the number of jobs
	//  that can run concurrently in this reservation. This is a soft target due to
	//  asynchronous nature of the system and various optimizations for small
	//  queries.
	//  Default value is 0 which means that concurrency target will be
	//  automatically computed by the system.
	//  NOTE: this field is exposed as target job concurrency in the Information
	//  Schema, DDL and BigQuery CLI.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.concurrency
	Concurrency *int64 `json:"concurrency,omitempty"`

	// Immutable. Optional.
	// Edition of the reservation. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.edition
	Edition *string `json:"edition,omitempty"`

	// Optional. This field is only set for reservations using the managed disaster recovery
	//  feature. Users can set this to create a failover reservation.
	FailOver *FailoverSpec `json:"failover,omitempty"`
}

BigQueryReservationReservationSpec defines the desired state of BigQueryReservationReservation +kcc:proto=google.cloud.bigquery.reservation.v1.Reservation

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

	// A unique specifier for the BigQueryReservationReservation resource in GCP.
	ExternalRef *string `json:"externalRef,omitempty"`

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

BigQueryReservationReservationStatus defines the config connector machine state of BigQueryReservationReservation

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 FailoverObservedState

type FailoverObservedState struct {
	// The current location of the reservation's primary replica. This
	//  field is only set for reservations using the managed disaster recovery
	//  feature.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.primary_location
	PrimaryLocation *string `json:"primaryLocation,omitempty"`
	// The current location of the reservation's secondary replica. This
	//  field is only set for reservations using the managed disaster recovery
	//  feature. Users can set this in create reservation calls
	//  to create a failover reservation or in update reservation calls to convert
	//  a non-failover reservation to a failover reservation(or vice versa).
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.secondary_location
	SecondaryLocation *string `json:"secondaryLocation,omitempty"`
	// The location where the reservation was originally created. This
	//  is set only during the failover reservation's creation. All billing charges
	//  for the failover reservation will be applied to this location.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.original_primary_location
	OriginalPrimaryLocation *string `json:"originalPrimaryLocation,omitempty"`
}

func (*FailoverObservedState) DeepCopy

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

func (*FailoverObservedState) DeepCopyInto

func (in *FailoverObservedState) DeepCopyInto(out *FailoverObservedState)

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

type FailoverSpec

type FailoverSpec struct {
	// Users can update this field to convert a non-failover reservation to a
	// failover reservation (by setting a specific region value) or convert a
	// failover reservation to a non-failover reservation (by removing spec.failover).
	// However, changes from one region to another region will be ignored by the
	// controller. Additionally, if the value of this field changes during manual failover
	// by the API, the controller will not attempt to revert these changes.
	//
	// Note: This field is only available for ENTERPRISE_PLUS edition reservations.
	// +required
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="secondaryLocation field is immutable"
	// Immutable.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.secondary_location
	SecondaryLocation *string `json:"secondaryLocation,omitempty"`
}

func (*FailoverSpec) DeepCopy

func (in *FailoverSpec) DeepCopy() *FailoverSpec

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

func (*FailoverSpec) DeepCopyInto

func (in *FailoverSpec) DeepCopyInto(out *FailoverSpec)

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

type Parent

type Parent struct {
	// +required
	ProjectRef *refv1beta1.ProjectRef `json:"projectRef"`

	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Location field is immutable"
	// Immutable.
	// You can configure spec.secondaryLocation to enable the reservation fail-over to a secondary location,
	// in which case the primary location could be different from the spec.location.
	// +required
	Location string `json:"location"`
}

func (*Parent) DeepCopy

func (in *Parent) DeepCopy() *Parent

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

func (*Parent) DeepCopyInto

func (in *Parent) DeepCopyInto(out *Parent)

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

type Reservation

type Reservation struct {
	// The resource name of the reservation, e.g.,
	//  `projects/*/locations/*/reservations/team1-prod`.
	//  The reservation_id must only contain lower case alphanumeric characters or
	//  dashes. It must start with a letter and must not end with a dash. Its
	//  maximum length is 64 characters.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.name
	Name *string `json:"name,omitempty"`

	// Baseline 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
	//  ignore_idle_slots is set to false, or autoscaling is enabled.
	//
	//  If edition is EDITION_UNSPECIFIED and total slot_capacity of the
	//  reservation and its siblings exceeds the total slot_count of all capacity
	//  commitments, the request will fail with
	//  `google.rpc.Code.RESOURCE_EXHAUSTED`.
	//
	//  If edition is any value but EDITION_UNSPECIFIED, then the above requirement
	//  is not needed. The total slot_capacity of the reservation and its siblings
	//  may exceed the total slot_count of capacity commitments. In that case, the
	//  exceeding slots will be charged with the autoscale SKU. You can increase
	//  the number of baseline slots in a reservation every few minutes. If you
	//  want to decrease your baseline slots, you are limited to once an hour if
	//  you have recently changed your baseline slot capacity and your baseline
	//  slots exceed your committed slots. Otherwise, you can decrease your
	//  baseline slots every few minutes.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.slot_capacity
	SlotCapacity *int64 `json:"slotCapacity,omitempty"`

	// If false, any query or pipeline job using this reservation will use idle
	//  slots from other reservations within the same admin project. If true, a
	//  query or pipeline job using this reservation will execute with the slot
	//  capacity specified in the slot_capacity field at most.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.ignore_idle_slots
	IgnoreIdleSlots *bool `json:"ignoreIdleSlots,omitempty"`

	// The configuration parameters for the auto scaling feature.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.autoscale
	Autoscale *Reservation_Autoscale `json:"autoscale,omitempty"`

	// Job concurrency target which sets a soft upper bound on the number of jobs
	//  that can run concurrently in this reservation. This is a soft target due to
	//  asynchronous nature of the system and various optimizations for small
	//  queries.
	//  Default value is 0 which means that concurrency target will be
	//  automatically computed by the system.
	//  NOTE: this field is exposed as target job concurrency in the Information
	//  Schema, DDL and BigQuery CLI.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.concurrency
	Concurrency *int64 `json:"concurrency,omitempty"`

	// 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.
	//
	//  NOTE: this is a preview feature. Project must be allow-listed in order to
	//  set this field.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.multi_region_auxiliary
	MultiRegionAuxiliary *bool `json:"multiRegionAuxiliary,omitempty"`

	// Edition of the reservation.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.edition
	Edition *string `json:"edition,omitempty"`

	// Optional. The current location of the reservation's primary replica. This
	//  field is only set for reservations using the managed disaster recovery
	//  feature.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.primary_location
	PrimaryLocation *string `json:"primaryLocation,omitempty"`

	// Optional. The current location of the reservation's secondary replica. This
	//  field is only set for reservations using the managed disaster recovery
	//  feature. Users can set this in create reservation calls
	//  to create a failover reservation or in update reservation calls to convert
	//  a non-failover reservation to a failover reservation(or vice versa).
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.secondary_location
	SecondaryLocation *string `json:"secondaryLocation,omitempty"`

	// Optional. The location where the reservation was originally created. This
	//  is set only during the failover reservation's creation. All billing charges
	//  for the failover reservation will be applied to this location.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.original_primary_location
	OriginalPrimaryLocation *string `json:"originalPrimaryLocation,omitempty"`
}

+kcc:proto=google.cloud.bigquery.reservation.v1.Reservation

func (*Reservation) DeepCopy

func (in *Reservation) DeepCopy() *Reservation

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

func (*Reservation) DeepCopyInto

func (in *Reservation) DeepCopyInto(out *Reservation)

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

type ReservationIdentity

type ReservationIdentity struct {
	// contains filtered or unexported fields
}

ReservationIdentity defines the resource reference to BigqueryReservation, which "External" field holds the GCP identifier for the KRM object.

func NewReservationIdentity

func NewReservationIdentity(ctx context.Context, reader client.Reader, obj *BigQueryReservationReservation) (*ReservationIdentity, error)

New builds a ReservationIdentity from the Config Connector Reservation object.

func (*ReservationIdentity) DeepCopy

func (in *ReservationIdentity) DeepCopy() *ReservationIdentity

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

func (*ReservationIdentity) DeepCopyInto

func (in *ReservationIdentity) DeepCopyInto(out *ReservationIdentity)

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

func (*ReservationIdentity) ID

func (i *ReservationIdentity) ID() string

func (*ReservationIdentity) Parent

func (*ReservationIdentity) String

func (i *ReservationIdentity) String() string

type ReservationObservedState

type ReservationObservedState struct {
	// The configuration parameters for the auto scaling feature.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.autoscale
	Autoscale *Reservation_AutoscaleObservedState `json:"autoscale,omitempty"`

	// Output only. Creation time of the reservation.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.creation_time
	CreationTime *string `json:"creationTime,omitempty"`

	// Output only. Last update time of the reservation.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.update_time
	UpdateTime *string `json:"updateTime,omitempty"`
}

+kcc:proto=google.cloud.bigquery.reservation.v1.Reservation

func (*ReservationObservedState) DeepCopy

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

func (*ReservationObservedState) DeepCopyInto

func (in *ReservationObservedState) DeepCopyInto(out *ReservationObservedState)

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

type ReservationParent

type ReservationParent struct {
	ProjectID string
	Location  string
}

func ParseReservationExternal

func ParseReservationExternal(external string) (parent *ReservationParent, resourceID string, err error)

func (*ReservationParent) DeepCopy

func (in *ReservationParent) DeepCopy() *ReservationParent

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

func (*ReservationParent) DeepCopyInto

func (in *ReservationParent) DeepCopyInto(out *ReservationParent)

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

func (*ReservationParent) String

func (p *ReservationParent) String() string

type ReservationRef

type ReservationRef struct {
	// A reference to an externally managed BigqueryReservation resource.
	// Should be in the format "projects/{{projectID}}/locations/{{location}}/reservations/{{reservationID}}".
	External string `json:"external,omitempty"`

	// The name of a BigqueryReservation resource.
	Name string `json:"name,omitempty"`

	// The namespace of a BigqueryReservation resource.
	Namespace string `json:"namespace,omitempty"`
}

ReservationRef defines the resource reference to BigqueryReservation, which "External" field holds the GCP identifier for the KRM object.

func (*ReservationRef) DeepCopy

func (in *ReservationRef) DeepCopy() *ReservationRef

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

func (*ReservationRef) DeepCopyInto

func (in *ReservationRef) DeepCopyInto(out *ReservationRef)

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

func (*ReservationRef) NormalizedExternal

func (r *ReservationRef) NormalizedExternal(ctx context.Context, reader client.Reader, otherNamespace string) (string, error)

NormalizedExternal provision the "External" value for other resource that depends on BigqueryReservation. If the "External" is given in the other resource's spec.BigqueryReservationRef, the given value will be used. Otherwise, the "Name" and "Namespace" will be used to query the actual BigqueryReservation object from the cluster.

type Reservation_Autoscale

type Reservation_Autoscale struct {

	// Number of slots to be scaled when needed.
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.Autoscale.max_slots
	MaxSlots *int64 `json:"maxSlots,omitempty"`
}

+kcc:proto=google.cloud.bigquery.reservation.v1.Reservation.Autoscale

func (*Reservation_Autoscale) DeepCopy

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

func (*Reservation_Autoscale) DeepCopyInto

func (in *Reservation_Autoscale) DeepCopyInto(out *Reservation_Autoscale)

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

type Reservation_AutoscaleObservedState

type Reservation_AutoscaleObservedState struct {
	// Output only. The slot capacity added to this reservation when autoscale
	//  happens. Will be between [0, max_slots]. Note: after users reduce
	//  max_slots, it may take a while before it can be propagated, so
	//  current_slots may stay in the original value and could be larger than
	//  max_slots for that brief period (less than one minute)
	// +kcc:proto:field=google.cloud.bigquery.reservation.v1.Reservation.Autoscale.current_slots
	CurrentSlots *int64 `json:"currentSlots,omitempty"`
}

+kcc:proto=google.cloud.bigquery.reservation.v1.Reservation.Autoscale

func (*Reservation_AutoscaleObservedState) DeepCopy

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

func (*Reservation_AutoscaleObservedState) DeepCopyInto

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