v1beta1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=mlengine.gcp.upbound.io +versionName=v1beta1

Index

Constants

View Source
const (
	CRDGroup   = "mlengine.gcp.upbound.io"
	CRDVersion = "v1beta1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Model_Kind             = "Model"
	Model_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Model_Kind}.String()
	Model_KindAPIVersion   = Model_Kind + "." + CRDGroupVersion.String()
	Model_GroupVersionKind = CRDGroupVersion.WithKind(Model_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type DefaultVersionInitParameters added in v0.35.0

type DefaultVersionInitParameters struct {

	// The name specified for the version when it was created.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*DefaultVersionInitParameters) DeepCopy added in v0.35.0

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

func (*DefaultVersionInitParameters) DeepCopyInto added in v0.35.0

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

type DefaultVersionObservation

type DefaultVersionObservation struct {

	// The name specified for the version when it was created.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*DefaultVersionObservation) DeepCopy

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

func (*DefaultVersionObservation) DeepCopyInto

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

type DefaultVersionParameters

type DefaultVersionParameters struct {

	// The name specified for the version when it was created.
	// +kubebuilder:validation:Optional
	Name *string `json:"name" tf:"name,omitempty"`
}

func (*DefaultVersionParameters) DeepCopy

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

func (*DefaultVersionParameters) DeepCopyInto

func (in *DefaultVersionParameters) DeepCopyInto(out *DefaultVersionParameters)

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

type Model

type Model struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   ModelSpec   `json:"spec"`
	Status ModelStatus `json:"status,omitempty"`
}

Model is the Schema for the Models API. Represents a machine learning solution. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}

func (*Model) DeepCopy

func (in *Model) DeepCopy() *Model

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

func (*Model) DeepCopyInto

func (in *Model) DeepCopyInto(out *Model)

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

func (*Model) DeepCopyObject

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

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

func (*Model) GetCondition

func (mg *Model) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Model.

func (*Model) GetConnectionDetailsMapping

func (tr *Model) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Model

func (*Model) GetDeletionPolicy

func (mg *Model) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Model.

func (*Model) GetID

func (tr *Model) GetID() string

GetID returns ID of underlying Terraform resource of this Model

func (*Model) GetInitParameters added in v0.35.0

func (tr *Model) GetInitParameters() (map[string]any, error)

GetInitParameters of this Model

func (*Model) GetManagementPolicies added in v0.35.0

func (mg *Model) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Model.

func (*Model) GetMergedParameters added in v0.40.0

func (tr *Model) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Model

func (*Model) GetObservation

func (tr *Model) GetObservation() (map[string]any, error)

GetObservation of this Model

func (*Model) GetParameters

func (tr *Model) GetParameters() (map[string]any, error)

GetParameters of this Model

func (*Model) GetProviderConfigReference

func (mg *Model) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Model.

func (*Model) GetPublishConnectionDetailsTo

func (mg *Model) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Model.

func (*Model) GetTerraformResourceType

func (mg *Model) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Model

func (*Model) GetTerraformSchemaVersion

func (tr *Model) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Model) GetWriteConnectionSecretToReference

func (mg *Model) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Model.

func (*Model) Hub added in v0.41.2

func (tr *Model) Hub()

Hub marks this type as a conversion hub.

func (*Model) LateInitialize

func (tr *Model) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Model using its observed tfState. returns True if there are any spec changes for the resource.

func (*Model) SetConditions

func (mg *Model) SetConditions(c ...xpv1.Condition)

SetConditions of this Model.

func (*Model) SetDeletionPolicy

func (mg *Model) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Model.

func (*Model) SetManagementPolicies added in v0.35.0

func (mg *Model) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Model.

func (*Model) SetObservation

func (tr *Model) SetObservation(obs map[string]any) error

SetObservation for this Model

func (*Model) SetParameters

func (tr *Model) SetParameters(params map[string]any) error

SetParameters for this Model

func (*Model) SetProviderConfigReference

func (mg *Model) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Model.

func (*Model) SetPublishConnectionDetailsTo

func (mg *Model) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Model.

func (*Model) SetWriteConnectionSecretToReference

func (mg *Model) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Model.

type ModelInitParameters added in v0.35.0

type ModelInitParameters struct {

	// The default version of the model. This version will be used to handle
	// prediction requests that do not specify a version.
	// Structure is documented below.
	DefaultVersion []DefaultVersionInitParameters `json:"defaultVersion,omitempty" tf:"default_version,omitempty"`

	// The description specified for the model when it was created.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// One or more labels that you can add, to organize your models.
	// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
	// Please refer to the field effective_labels for all of the labels present on the resource.
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// The name specified for the model.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
	OnlinePredictionConsoleLogging *bool `json:"onlinePredictionConsoleLogging,omitempty" tf:"online_prediction_console_logging,omitempty"`

	// If true, online prediction access logs are sent to StackDriver Logging.
	OnlinePredictionLogging *bool `json:"onlinePredictionLogging,omitempty" tf:"online_prediction_logging,omitempty"`

	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project *string `json:"project,omitempty" tf:"project,omitempty"`

	// The list of regions where the model is going to be deployed.
	// Currently only one region per model is supported
	Regions []*string `json:"regions,omitempty" tf:"regions,omitempty"`
}

func (*ModelInitParameters) DeepCopy added in v0.35.0

func (in *ModelInitParameters) DeepCopy() *ModelInitParameters

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

func (*ModelInitParameters) DeepCopyInto added in v0.35.0

func (in *ModelInitParameters) DeepCopyInto(out *ModelInitParameters)

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

type ModelList

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

ModelList contains a list of Models

func (*ModelList) DeepCopy

func (in *ModelList) DeepCopy() *ModelList

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

func (*ModelList) DeepCopyInto

func (in *ModelList) DeepCopyInto(out *ModelList)

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

func (*ModelList) DeepCopyObject

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

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

func (*ModelList) GetItems

func (l *ModelList) GetItems() []resource.Managed

GetItems of this ModelList.

type ModelObservation

type ModelObservation struct {

	// The default version of the model. This version will be used to handle
	// prediction requests that do not specify a version.
	// Structure is documented below.
	DefaultVersion []DefaultVersionObservation `json:"defaultVersion,omitempty" tf:"default_version,omitempty"`

	// The description specified for the model when it was created.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// +mapType=granular
	EffectiveLabels map[string]*string `json:"effectiveLabels,omitempty" tf:"effective_labels,omitempty"`

	// an identifier for the resource with format projects/{{project}}/models/{{name}}
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// One or more labels that you can add, to organize your models.
	// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
	// Please refer to the field effective_labels for all of the labels present on the resource.
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// The name specified for the model.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
	OnlinePredictionConsoleLogging *bool `json:"onlinePredictionConsoleLogging,omitempty" tf:"online_prediction_console_logging,omitempty"`

	// If true, online prediction access logs are sent to StackDriver Logging.
	OnlinePredictionLogging *bool `json:"onlinePredictionLogging,omitempty" tf:"online_prediction_logging,omitempty"`

	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project *string `json:"project,omitempty" tf:"project,omitempty"`

	// The list of regions where the model is going to be deployed.
	// Currently only one region per model is supported
	Regions []*string `json:"regions,omitempty" tf:"regions,omitempty"`

	// The combination of labels configured directly on the resource
	// and default labels configured on the provider.
	// +mapType=granular
	TerraformLabels map[string]*string `json:"terraformLabels,omitempty" tf:"terraform_labels,omitempty"`
}

func (*ModelObservation) DeepCopy

func (in *ModelObservation) DeepCopy() *ModelObservation

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

func (*ModelObservation) DeepCopyInto

func (in *ModelObservation) DeepCopyInto(out *ModelObservation)

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

type ModelParameters

type ModelParameters struct {

	// The default version of the model. This version will be used to handle
	// prediction requests that do not specify a version.
	// Structure is documented below.
	// +kubebuilder:validation:Optional
	DefaultVersion []DefaultVersionParameters `json:"defaultVersion,omitempty" tf:"default_version,omitempty"`

	// The description specified for the model when it was created.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// One or more labels that you can add, to organize your models.
	// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
	// Please refer to the field effective_labels for all of the labels present on the resource.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// The name specified for the model.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
	// +kubebuilder:validation:Optional
	OnlinePredictionConsoleLogging *bool `json:"onlinePredictionConsoleLogging,omitempty" tf:"online_prediction_console_logging,omitempty"`

	// If true, online prediction access logs are sent to StackDriver Logging.
	// +kubebuilder:validation:Optional
	OnlinePredictionLogging *bool `json:"onlinePredictionLogging,omitempty" tf:"online_prediction_logging,omitempty"`

	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	// +kubebuilder:validation:Optional
	Project *string `json:"project,omitempty" tf:"project,omitempty"`

	// The list of regions where the model is going to be deployed.
	// Currently only one region per model is supported
	// +kubebuilder:validation:Optional
	Regions []*string `json:"regions,omitempty" tf:"regions,omitempty"`
}

func (*ModelParameters) DeepCopy

func (in *ModelParameters) DeepCopy() *ModelParameters

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

func (*ModelParameters) DeepCopyInto

func (in *ModelParameters) DeepCopyInto(out *ModelParameters)

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

type ModelSpec

type ModelSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ModelParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider ModelInitParameters `json:"initProvider,omitempty"`
}

ModelSpec defines the desired state of Model

func (*ModelSpec) DeepCopy

func (in *ModelSpec) DeepCopy() *ModelSpec

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

func (*ModelSpec) DeepCopyInto

func (in *ModelSpec) DeepCopyInto(out *ModelSpec)

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

type ModelStatus

type ModelStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        ModelObservation `json:"atProvider,omitempty"`
}

ModelStatus defines the observed state of Model.

func (*ModelStatus) DeepCopy

func (in *ModelStatus) DeepCopy() *ModelStatus

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

func (*ModelStatus) DeepCopyInto

func (in *ModelStatus) DeepCopyInto(out *ModelStatus)

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