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 ConfigMapSourceApplyConfiguration

type ConfigMapSourceApplyConfiguration struct {
	ConfigMapName      *string `json:"configMapName,omitempty"`
	ConfigMapNamespace *string `json:"configMapNamespace,omitempty"`
	TemplatePath       *string `json:"templatePath,omitempty"`
}

ConfigMapSourceApplyConfiguration represents an declarative configuration of the ConfigMapSource type for use with apply.

func ConfigMapSource

func ConfigMapSource() *ConfigMapSourceApplyConfiguration

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

func (*ConfigMapSourceApplyConfiguration) WithConfigMapName

WithConfigMapName sets the ConfigMapName 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 ConfigMapName field is set to the value of the last call.

func (*ConfigMapSourceApplyConfiguration) WithConfigMapNamespace

WithConfigMapNamespace sets the ConfigMapNamespace 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 ConfigMapNamespace field is set to the value of the last call.

func (*ConfigMapSourceApplyConfiguration) WithTemplatePath

WithTemplatePath sets the TemplatePath 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 TemplatePath field is set to the value of the last call.

type ExperimentApplyConfiguration

type ExperimentApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ExperimentSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *ExperimentStatusApplyConfiguration `json:"status,omitempty"`
}

ExperimentApplyConfiguration represents an declarative configuration of the Experiment type for use with apply.

func Experiment

func Experiment(name, namespace string) *ExperimentApplyConfiguration

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

func (*ExperimentApplyConfiguration) WithAPIVersion

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 (*ExperimentApplyConfiguration) WithAnnotations

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 (*ExperimentApplyConfiguration) WithCreationTimestamp

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

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 (*ExperimentApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*ExperimentApplyConfiguration) WithDeletionTimestamp

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

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 (*ExperimentApplyConfiguration) WithFinalizers

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 (*ExperimentApplyConfiguration) WithGenerateName

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 (*ExperimentApplyConfiguration) WithGeneration

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 (*ExperimentApplyConfiguration) 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 (*ExperimentApplyConfiguration) 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 (*ExperimentApplyConfiguration) 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 (*ExperimentApplyConfiguration) WithNamespace

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 (*ExperimentApplyConfiguration) 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 (*ExperimentApplyConfiguration) WithResourceVersion

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

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 (*ExperimentApplyConfiguration) 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 (*ExperimentApplyConfiguration) 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 (*ExperimentApplyConfiguration) 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 ExperimentConditionApplyConfiguration

type ExperimentConditionApplyConfiguration struct {
	Type               *v1beta1.ExperimentConditionType `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"`
}

ExperimentConditionApplyConfiguration represents an declarative configuration of the ExperimentCondition type for use with apply.

func ExperimentCondition

func ExperimentCondition() *ExperimentConditionApplyConfiguration

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

func (*ExperimentConditionApplyConfiguration) 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 (*ExperimentConditionApplyConfiguration) 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 (*ExperimentConditionApplyConfiguration) 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 (*ExperimentConditionApplyConfiguration) 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 (*ExperimentConditionApplyConfiguration) 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 (*ExperimentConditionApplyConfiguration) 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 ExperimentSpecApplyConfiguration

type ExperimentSpecApplyConfiguration struct {
	Parameters           []ParameterSpecApplyConfiguration                     `json:"parameters,omitempty"`
	Objective            *commonv1beta1.ObjectiveSpecApplyConfiguration        `json:"objective,omitempty"`
	Algorithm            *commonv1beta1.AlgorithmSpecApplyConfiguration        `json:"algorithm,omitempty"`
	EarlyStopping        *commonv1beta1.EarlyStoppingSpecApplyConfiguration    `json:"earlyStopping,omitempty"`
	TrialTemplate        *TrialTemplateApplyConfiguration                      `json:"trialTemplate,omitempty"`
	ParallelTrialCount   *int32                                                `json:"parallelTrialCount,omitempty"`
	MaxTrialCount        *int32                                                `json:"maxTrialCount,omitempty"`
	MaxFailedTrialCount  *int32                                                `json:"maxFailedTrialCount,omitempty"`
	MetricsCollectorSpec *commonv1beta1.MetricsCollectorSpecApplyConfiguration `json:"metricsCollectorSpec,omitempty"`
	NasConfig            *NasConfigApplyConfiguration                          `json:"nasConfig,omitempty"`
	ResumePolicy         *experimentsv1beta1.ResumePolicyType                  `json:"resumePolicy,omitempty"`
}

ExperimentSpecApplyConfiguration represents an declarative configuration of the ExperimentSpec type for use with apply.

func ExperimentSpec

func ExperimentSpec() *ExperimentSpecApplyConfiguration

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

func (*ExperimentSpecApplyConfiguration) WithAlgorithm

WithAlgorithm sets the Algorithm 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 Algorithm field is set to the value of the last call.

func (*ExperimentSpecApplyConfiguration) WithEarlyStopping

WithEarlyStopping sets the EarlyStopping 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 EarlyStopping field is set to the value of the last call.

func (*ExperimentSpecApplyConfiguration) WithMaxFailedTrialCount

func (b *ExperimentSpecApplyConfiguration) WithMaxFailedTrialCount(value int32) *ExperimentSpecApplyConfiguration

WithMaxFailedTrialCount sets the MaxFailedTrialCount 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 MaxFailedTrialCount field is set to the value of the last call.

func (*ExperimentSpecApplyConfiguration) WithMaxTrialCount

WithMaxTrialCount sets the MaxTrialCount 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 MaxTrialCount field is set to the value of the last call.

func (*ExperimentSpecApplyConfiguration) WithMetricsCollectorSpec

WithMetricsCollectorSpec sets the MetricsCollectorSpec 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 MetricsCollectorSpec field is set to the value of the last call.

func (*ExperimentSpecApplyConfiguration) WithNasConfig

WithNasConfig sets the NasConfig 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 NasConfig field is set to the value of the last call.

func (*ExperimentSpecApplyConfiguration) 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 (*ExperimentSpecApplyConfiguration) WithParallelTrialCount

WithParallelTrialCount sets the ParallelTrialCount 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 ParallelTrialCount field is set to the value of the last call.

func (*ExperimentSpecApplyConfiguration) WithParameters

WithParameters adds the given value to the Parameters 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 Parameters field.

func (*ExperimentSpecApplyConfiguration) WithResumePolicy

WithResumePolicy sets the ResumePolicy 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 ResumePolicy field is set to the value of the last call.

func (*ExperimentSpecApplyConfiguration) WithTrialTemplate

WithTrialTemplate sets the TrialTemplate 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 TrialTemplate field is set to the value of the last call.

type ExperimentStatusApplyConfiguration

type ExperimentStatusApplyConfiguration struct {
	StartTime                   *v1.Time                                `json:"startTime,omitempty"`
	CompletionTime              *v1.Time                                `json:"completionTime,omitempty"`
	LastReconcileTime           *v1.Time                                `json:"lastReconcileTime,omitempty"`
	Conditions                  []ExperimentConditionApplyConfiguration `json:"conditions,omitempty"`
	CurrentOptimalTrial         *OptimalTrialApplyConfiguration         `json:"currentOptimalTrial,omitempty"`
	RunningTrialList            []string                                `json:"runningTrialList,omitempty"`
	PendingTrialList            []string                                `json:"pendingTrialList,omitempty"`
	FailedTrialList             []string                                `json:"failedTrialList,omitempty"`
	SucceededTrialList          []string                                `json:"succeededTrialList,omitempty"`
	KilledTrialList             []string                                `json:"killedTrialList,omitempty"`
	EarlyStoppedTrialList       []string                                `json:"earlyStoppedTrialList,omitempty"`
	MetricsUnavailableTrialList []string                                `json:"metricsUnavailableTrialList,omitempty"`
	Trials                      *int32                                  `json:"trials,omitempty"`
	TrialsSucceeded             *int32                                  `json:"trialsSucceeded,omitempty"`
	TrialsFailed                *int32                                  `json:"trialsFailed,omitempty"`
	TrialsKilled                *int32                                  `json:"trialsKilled,omitempty"`
	TrialsPending               *int32                                  `json:"trialsPending,omitempty"`
	TrialsRunning               *int32                                  `json:"trialsRunning,omitempty"`
	TrialsEarlyStopped          *int32                                  `json:"trialsEarlyStopped,omitempty"`
	TrialMetricsUnavailable     *int32                                  `json:"trialMetricsUnavailable,omitempty"`
}

ExperimentStatusApplyConfiguration represents an declarative configuration of the ExperimentStatus type for use with apply.

func ExperimentStatus

func ExperimentStatus() *ExperimentStatusApplyConfiguration

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

func (*ExperimentStatusApplyConfiguration) 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 (*ExperimentStatusApplyConfiguration) 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 (*ExperimentStatusApplyConfiguration) WithCurrentOptimalTrial

WithCurrentOptimalTrial sets the CurrentOptimalTrial 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 CurrentOptimalTrial field is set to the value of the last call.

func (*ExperimentStatusApplyConfiguration) WithEarlyStoppedTrialList

func (b *ExperimentStatusApplyConfiguration) WithEarlyStoppedTrialList(values ...string) *ExperimentStatusApplyConfiguration

WithEarlyStoppedTrialList adds the given value to the EarlyStoppedTrialList 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 EarlyStoppedTrialList field.

func (*ExperimentStatusApplyConfiguration) WithFailedTrialList

WithFailedTrialList adds the given value to the FailedTrialList 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 FailedTrialList field.

func (*ExperimentStatusApplyConfiguration) WithKilledTrialList

WithKilledTrialList adds the given value to the KilledTrialList 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 KilledTrialList field.

func (*ExperimentStatusApplyConfiguration) WithLastReconcileTime

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 (*ExperimentStatusApplyConfiguration) WithMetricsUnavailableTrialList

func (b *ExperimentStatusApplyConfiguration) WithMetricsUnavailableTrialList(values ...string) *ExperimentStatusApplyConfiguration

WithMetricsUnavailableTrialList adds the given value to the MetricsUnavailableTrialList 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 MetricsUnavailableTrialList field.

func (*ExperimentStatusApplyConfiguration) WithPendingTrialList

WithPendingTrialList adds the given value to the PendingTrialList 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 PendingTrialList field.

func (*ExperimentStatusApplyConfiguration) WithRunningTrialList

WithRunningTrialList adds the given value to the RunningTrialList 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 RunningTrialList field.

func (*ExperimentStatusApplyConfiguration) 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.

func (*ExperimentStatusApplyConfiguration) WithSucceededTrialList

WithSucceededTrialList adds the given value to the SucceededTrialList 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 SucceededTrialList field.

func (*ExperimentStatusApplyConfiguration) WithTrialMetricsUnavailable

func (b *ExperimentStatusApplyConfiguration) WithTrialMetricsUnavailable(value int32) *ExperimentStatusApplyConfiguration

WithTrialMetricsUnavailable sets the TrialMetricsUnavailable 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 TrialMetricsUnavailable field is set to the value of the last call.

func (*ExperimentStatusApplyConfiguration) WithTrials

WithTrials sets the Trials 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 Trials field is set to the value of the last call.

func (*ExperimentStatusApplyConfiguration) WithTrialsEarlyStopped

WithTrialsEarlyStopped sets the TrialsEarlyStopped 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 TrialsEarlyStopped field is set to the value of the last call.

func (*ExperimentStatusApplyConfiguration) WithTrialsFailed

WithTrialsFailed sets the TrialsFailed 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 TrialsFailed field is set to the value of the last call.

func (*ExperimentStatusApplyConfiguration) WithTrialsKilled

WithTrialsKilled sets the TrialsKilled 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 TrialsKilled field is set to the value of the last call.

func (*ExperimentStatusApplyConfiguration) WithTrialsPending

WithTrialsPending sets the TrialsPending 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 TrialsPending field is set to the value of the last call.

func (*ExperimentStatusApplyConfiguration) WithTrialsRunning

WithTrialsRunning sets the TrialsRunning 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 TrialsRunning field is set to the value of the last call.

func (*ExperimentStatusApplyConfiguration) WithTrialsSucceeded

WithTrialsSucceeded sets the TrialsSucceeded 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 TrialsSucceeded field is set to the value of the last call.

type FeasibleSpaceApplyConfiguration

type FeasibleSpaceApplyConfiguration struct {
	Max  *string  `json:"max,omitempty"`
	Min  *string  `json:"min,omitempty"`
	List []string `json:"list,omitempty"`
	Step *string  `json:"step,omitempty"`
}

FeasibleSpaceApplyConfiguration represents an declarative configuration of the FeasibleSpace type for use with apply.

func FeasibleSpace

func FeasibleSpace() *FeasibleSpaceApplyConfiguration

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

func (*FeasibleSpaceApplyConfiguration) WithList

WithList adds the given value to the List 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 List field.

func (*FeasibleSpaceApplyConfiguration) WithMax

WithMax sets the Max 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 Max field is set to the value of the last call.

func (*FeasibleSpaceApplyConfiguration) WithMin

WithMin sets the Min 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 Min field is set to the value of the last call.

func (*FeasibleSpaceApplyConfiguration) WithStep

WithStep sets the Step 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 Step field is set to the value of the last call.

type GraphConfigApplyConfiguration

type GraphConfigApplyConfiguration struct {
	NumLayers   *int32  `json:"numLayers,omitempty"`
	InputSizes  []int32 `json:"inputSizes,omitempty"`
	OutputSizes []int32 `json:"outputSizes,omitempty"`
}

GraphConfigApplyConfiguration represents an declarative configuration of the GraphConfig type for use with apply.

func GraphConfig

func GraphConfig() *GraphConfigApplyConfiguration

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

func (*GraphConfigApplyConfiguration) WithInputSizes

WithInputSizes adds the given value to the InputSizes 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 InputSizes field.

func (*GraphConfigApplyConfiguration) WithNumLayers

WithNumLayers sets the NumLayers 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 NumLayers field is set to the value of the last call.

func (*GraphConfigApplyConfiguration) WithOutputSizes

func (b *GraphConfigApplyConfiguration) WithOutputSizes(values ...int32) *GraphConfigApplyConfiguration

WithOutputSizes adds the given value to the OutputSizes 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 OutputSizes field.

type NasConfigApplyConfiguration

type NasConfigApplyConfiguration struct {
	GraphConfig *GraphConfigApplyConfiguration `json:"graphConfig,omitempty"`
	Operations  []OperationApplyConfiguration  `json:"operations,omitempty"`
}

NasConfigApplyConfiguration represents an declarative configuration of the NasConfig type for use with apply.

func NasConfig

func NasConfig() *NasConfigApplyConfiguration

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

func (*NasConfigApplyConfiguration) WithGraphConfig

WithGraphConfig sets the GraphConfig 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 GraphConfig field is set to the value of the last call.

func (*NasConfigApplyConfiguration) WithOperations

WithOperations adds the given value to the Operations 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 Operations field.

type OperationApplyConfiguration

type OperationApplyConfiguration struct {
	OperationType *string                           `json:"operationType,omitempty"`
	Parameters    []ParameterSpecApplyConfiguration `json:"parameters,omitempty"`
}

OperationApplyConfiguration represents an declarative configuration of the Operation type for use with apply.

func Operation

func Operation() *OperationApplyConfiguration

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

func (*OperationApplyConfiguration) WithOperationType

func (b *OperationApplyConfiguration) WithOperationType(value string) *OperationApplyConfiguration

WithOperationType sets the OperationType 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 OperationType field is set to the value of the last call.

func (*OperationApplyConfiguration) WithParameters

WithParameters adds the given value to the Parameters 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 Parameters field.

type OptimalTrialApplyConfiguration

type OptimalTrialApplyConfiguration struct {
	BestTrialName        *string                                         `json:"bestTrialName,omitempty"`
	ParameterAssignments []v1beta1.ParameterAssignmentApplyConfiguration `json:"parameterAssignments,omitempty"`
	Observation          *v1beta1.ObservationApplyConfiguration          `json:"observation,omitempty"`
}

OptimalTrialApplyConfiguration represents an declarative configuration of the OptimalTrial type for use with apply.

func OptimalTrial

func OptimalTrial() *OptimalTrialApplyConfiguration

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

func (*OptimalTrialApplyConfiguration) WithBestTrialName

WithBestTrialName sets the BestTrialName 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 BestTrialName field is set to the value of the last call.

func (*OptimalTrialApplyConfiguration) 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 (*OptimalTrialApplyConfiguration) 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.

type ParameterSpecApplyConfiguration

type ParameterSpecApplyConfiguration struct {
	Name          *string                          `json:"name,omitempty"`
	ParameterType *v1beta1.ParameterType           `json:"parameterType,omitempty"`
	FeasibleSpace *FeasibleSpaceApplyConfiguration `json:"feasibleSpace,omitempty"`
}

ParameterSpecApplyConfiguration represents an declarative configuration of the ParameterSpec type for use with apply.

func ParameterSpec

func ParameterSpec() *ParameterSpecApplyConfiguration

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

func (*ParameterSpecApplyConfiguration) WithFeasibleSpace

WithFeasibleSpace sets the FeasibleSpace 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 FeasibleSpace field is set to the value of the last call.

func (*ParameterSpecApplyConfiguration) 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 (*ParameterSpecApplyConfiguration) WithParameterType

WithParameterType sets the ParameterType 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 ParameterType field is set to the value of the last call.

type TrialParameterSpecApplyConfiguration

type TrialParameterSpecApplyConfiguration struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Reference   *string `json:"reference,omitempty"`
}

TrialParameterSpecApplyConfiguration represents an declarative configuration of the TrialParameterSpec type for use with apply.

func TrialParameterSpec

func TrialParameterSpec() *TrialParameterSpecApplyConfiguration

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

func (*TrialParameterSpecApplyConfiguration) WithDescription

WithDescription sets the Description 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 Description field is set to the value of the last call.

func (*TrialParameterSpecApplyConfiguration) 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 (*TrialParameterSpecApplyConfiguration) WithReference

WithReference sets the Reference 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 Reference field is set to the value of the last call.

type TrialSourceApplyConfiguration

type TrialSourceApplyConfiguration struct {
	TrialSpec *unstructured.Unstructured         `json:"trialSpec,omitempty"`
	ConfigMap *ConfigMapSourceApplyConfiguration `json:"configMap,omitempty"`
}

TrialSourceApplyConfiguration represents an declarative configuration of the TrialSource type for use with apply.

func TrialSource

func TrialSource() *TrialSourceApplyConfiguration

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

func (*TrialSourceApplyConfiguration) WithConfigMap

WithConfigMap sets the ConfigMap 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 ConfigMap field is set to the value of the last call.

func (*TrialSourceApplyConfiguration) WithTrialSpec

WithTrialSpec sets the TrialSpec 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 TrialSpec field is set to the value of the last call.

type TrialTemplateApplyConfiguration

type TrialTemplateApplyConfiguration struct {
	Retain                        *bool `json:"retain,omitempty"`
	TrialSourceApplyConfiguration `json:",inline"`
	TrialParameters               []TrialParameterSpecApplyConfiguration `json:"trialParameters,omitempty"`
	PrimaryPodLabels              map[string]string                      `json:"primaryPodLabels,omitempty"`
	PrimaryContainerName          *string                                `json:"primaryContainerName,omitempty"`
	SuccessCondition              *string                                `json:"successCondition,omitempty"`
	FailureCondition              *string                                `json:"failureCondition,omitempty"`
}

TrialTemplateApplyConfiguration represents an declarative configuration of the TrialTemplate type for use with apply.

func TrialTemplate

func TrialTemplate() *TrialTemplateApplyConfiguration

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

func (*TrialTemplateApplyConfiguration) WithConfigMap

WithConfigMap sets the ConfigMap 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 ConfigMap field is set to the value of the last call.

func (*TrialTemplateApplyConfiguration) WithFailureCondition

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 (*TrialTemplateApplyConfiguration) WithPrimaryContainerName

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

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 (*TrialTemplateApplyConfiguration) WithPrimaryPodLabels

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

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 (*TrialTemplateApplyConfiguration) WithRetain

WithRetain sets the Retain 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 Retain field is set to the value of the last call.

func (*TrialTemplateApplyConfiguration) WithSuccessCondition

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.

func (*TrialTemplateApplyConfiguration) WithTrialParameters

WithTrialParameters adds the given value to the TrialParameters 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 TrialParameters field.

func (*TrialTemplateApplyConfiguration) WithTrialSpec

WithTrialSpec sets the TrialSpec 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 TrialSpec 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