v1beta1

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrialApplyConfiguration

type TrialApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *TrialSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *TrialStatusApplyConfiguration `json:"status,omitempty"`
}

TrialApplyConfiguration represents an declarative configuration of the Trial type for use with apply.

func Trial

func Trial(name, namespace string) *TrialApplyConfiguration

Trial constructs an declarative configuration of the Trial type for use with apply.

func (*TrialApplyConfiguration) WithAPIVersion

func (b *TrialApplyConfiguration) WithAPIVersion(value string) *TrialApplyConfiguration

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*TrialApplyConfiguration) WithAnnotations

func (b *TrialApplyConfiguration) WithAnnotations(entries map[string]string) *TrialApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*TrialApplyConfiguration) WithCreationTimestamp

func (b *TrialApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TrialApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*TrialApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *TrialApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TrialApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*TrialApplyConfiguration) WithDeletionTimestamp

func (b *TrialApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TrialApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*TrialApplyConfiguration) WithFinalizers

func (b *TrialApplyConfiguration) WithFinalizers(values ...string) *TrialApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*TrialApplyConfiguration) WithGenerateName

func (b *TrialApplyConfiguration) WithGenerateName(value string) *TrialApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*TrialApplyConfiguration) WithGeneration

func (b *TrialApplyConfiguration) WithGeneration(value int64) *TrialApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*TrialApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*TrialApplyConfiguration) WithLabels

func (b *TrialApplyConfiguration) WithLabels(entries map[string]string) *TrialApplyConfiguration

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*TrialApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*TrialApplyConfiguration) WithNamespace

func (b *TrialApplyConfiguration) WithNamespace(value string) *TrialApplyConfiguration

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*TrialApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*TrialApplyConfiguration) WithResourceVersion

func (b *TrialApplyConfiguration) WithResourceVersion(value string) *TrialApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*TrialApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*TrialApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*TrialApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type TrialConditionApplyConfiguration

type TrialConditionApplyConfiguration struct {
	Type               *v1beta1.TrialConditionType `json:"type,omitempty"`
	Status             *v1.ConditionStatus         `json:"status,omitempty"`
	Reason             *string                     `json:"reason,omitempty"`
	Message            *string                     `json:"message,omitempty"`
	LastUpdateTime     *metav1.Time                `json:"lastUpdateTime,omitempty"`
	LastTransitionTime *metav1.Time                `json:"lastTransitionTime,omitempty"`
}

TrialConditionApplyConfiguration represents an declarative configuration of the TrialCondition type for use with apply.

func TrialCondition

func TrialCondition() *TrialConditionApplyConfiguration

TrialConditionApplyConfiguration constructs an declarative configuration of the TrialCondition type for use with apply.

func (*TrialConditionApplyConfiguration) WithLastTransitionTime

WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.

func (*TrialConditionApplyConfiguration) WithLastUpdateTime

WithLastUpdateTime sets the LastUpdateTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastUpdateTime field is set to the value of the last call.

func (*TrialConditionApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*TrialConditionApplyConfiguration) WithReason

WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.

func (*TrialConditionApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*TrialConditionApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type TrialSpecApplyConfiguration

type TrialSpecApplyConfiguration struct {
	Objective            *v1beta1.ObjectiveSpecApplyConfiguration        `json:"objective,omitempty"`
	ParameterAssignments []v1beta1.ParameterAssignmentApplyConfiguration `json:"parameterAssignments,omitempty"`
	EarlyStoppingRules   []v1beta1.EarlyStoppingRuleApplyConfiguration   `json:"earlyStoppingRules,omitempty"`
	RunSpec              *unstructured.Unstructured                      `json:"runSpec,omitempty"`
	RetainRun            *bool                                           `json:"retainRun,omitempty"`
	MetricsCollector     *v1beta1.MetricsCollectorSpecApplyConfiguration `json:"metricsCollector,omitempty"`
	PrimaryPodLabels     map[string]string                               `json:"primaryPodLabels,omitempty"`
	PrimaryContainerName *string                                         `json:"primaryContainerName,omitempty"`
	SuccessCondition     *string                                         `json:"successCondition,omitempty"`
	FailureCondition     *string                                         `json:"failureCondition,omitempty"`
	Labels               map[string]string                               `json:"labels,omitempty"`
}

TrialSpecApplyConfiguration represents an declarative configuration of the TrialSpec type for use with apply.

func TrialSpec

func TrialSpec() *TrialSpecApplyConfiguration

TrialSpecApplyConfiguration constructs an declarative configuration of the TrialSpec type for use with apply.

func (*TrialSpecApplyConfiguration) WithEarlyStoppingRules

WithEarlyStoppingRules adds the given value to the EarlyStoppingRules field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the EarlyStoppingRules field.

func (*TrialSpecApplyConfiguration) WithFailureCondition

func (b *TrialSpecApplyConfiguration) WithFailureCondition(value string) *TrialSpecApplyConfiguration

WithFailureCondition sets the FailureCondition field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FailureCondition field is set to the value of the last call.

func (*TrialSpecApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*TrialSpecApplyConfiguration) WithMetricsCollector

WithMetricsCollector sets the MetricsCollector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricsCollector field is set to the value of the last call.

func (*TrialSpecApplyConfiguration) WithObjective

WithObjective sets the Objective field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Objective field is set to the value of the last call.

func (*TrialSpecApplyConfiguration) WithParameterAssignments

WithParameterAssignments adds the given value to the ParameterAssignments field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the ParameterAssignments field.

func (*TrialSpecApplyConfiguration) WithPrimaryContainerName

func (b *TrialSpecApplyConfiguration) WithPrimaryContainerName(value string) *TrialSpecApplyConfiguration

WithPrimaryContainerName sets the PrimaryContainerName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PrimaryContainerName field is set to the value of the last call.

func (*TrialSpecApplyConfiguration) WithPrimaryPodLabels

func (b *TrialSpecApplyConfiguration) WithPrimaryPodLabels(entries map[string]string) *TrialSpecApplyConfiguration

WithPrimaryPodLabels puts the entries into the PrimaryPodLabels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the PrimaryPodLabels field, overwriting an existing map entries in PrimaryPodLabels field with the same key.

func (*TrialSpecApplyConfiguration) WithRetainRun

WithRetainRun sets the RetainRun field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RetainRun field is set to the value of the last call.

func (*TrialSpecApplyConfiguration) WithRunSpec

WithRunSpec sets the RunSpec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RunSpec field is set to the value of the last call.

func (*TrialSpecApplyConfiguration) WithSuccessCondition

func (b *TrialSpecApplyConfiguration) WithSuccessCondition(value string) *TrialSpecApplyConfiguration

WithSuccessCondition sets the SuccessCondition field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SuccessCondition field is set to the value of the last call.

type TrialStatusApplyConfiguration

type TrialStatusApplyConfiguration struct {
	StartTime         *v1.Time                                     `json:"startTime,omitempty"`
	CompletionTime    *v1.Time                                     `json:"completionTime,omitempty"`
	LastReconcileTime *v1.Time                                     `json:"lastReconcileTime,omitempty"`
	Conditions        []TrialConditionApplyConfiguration           `json:"conditions,omitempty"`
	Observation       *commonv1beta1.ObservationApplyConfiguration `json:"observation,omitempty"`
}

TrialStatusApplyConfiguration represents an declarative configuration of the TrialStatus type for use with apply.

func TrialStatus

func TrialStatus() *TrialStatusApplyConfiguration

TrialStatusApplyConfiguration constructs an declarative configuration of the TrialStatus type for use with apply.

func (*TrialStatusApplyConfiguration) WithCompletionTime

WithCompletionTime sets the CompletionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CompletionTime field is set to the value of the last call.

func (*TrialStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*TrialStatusApplyConfiguration) WithLastReconcileTime

func (b *TrialStatusApplyConfiguration) WithLastReconcileTime(value v1.Time) *TrialStatusApplyConfiguration

WithLastReconcileTime sets the LastReconcileTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastReconcileTime field is set to the value of the last call.

func (*TrialStatusApplyConfiguration) WithObservation

WithObservation sets the Observation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Observation field is set to the value of the last call.

func (*TrialStatusApplyConfiguration) WithStartTime

WithStartTime sets the StartTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the StartTime field is set to the value of the last call.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL