trainedmodeldeployment

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchema

func GetSchema(_ context.Context) schema.Schema

func NewTrainedModelDeploymentResource

func NewTrainedModelDeploymentResource() resource.Resource

Types

type AdaptiveAllocationsData

type AdaptiveAllocationsData struct {
	Enabled                types.Bool  `tfsdk:"enabled"`
	MinNumberOfAllocations types.Int64 `tfsdk:"min_number_of_allocations"`
	MaxNumberOfAllocations types.Int64 `tfsdk:"max_number_of_allocations"`
}

type TrainedModelDeploymentData

type TrainedModelDeploymentData struct {
	entitycore.ResourceTimeoutsField
	ID                      types.String             `tfsdk:"id"`
	ElasticsearchConnection types.List               `tfsdk:"elasticsearch_connection"`
	ModelID                 types.String             `tfsdk:"model_id"`
	DeploymentID            types.String             `tfsdk:"deployment_id"`
	NumberOfAllocations     types.Int64              `tfsdk:"number_of_allocations"`
	ThreadsPerAllocation    types.Int64              `tfsdk:"threads_per_allocation"`
	Priority                types.String             `tfsdk:"priority"`
	QueueCapacity           types.Int64              `tfsdk:"queue_capacity"`
	WaitFor                 types.String             `tfsdk:"wait_for"`
	APITimeout              customtypes.Duration     `tfsdk:"api_timeout"`
	ForceStop               types.Bool               `tfsdk:"force_stop"`
	AdaptiveAllocations     *AdaptiveAllocationsData `tfsdk:"adaptive_allocations"`
	State                   types.String             `tfsdk:"state"`
	AllocationStatus        types.String             `tfsdk:"allocation_status"`
	StatsJSON               types.String             `tfsdk:"stats_json"`
}

Data represents the Terraform state model for the trained model deployment resource.

func (TrainedModelDeploymentData) GetElasticsearchConnection

func (d TrainedModelDeploymentData) GetElasticsearchConnection() types.List

func (TrainedModelDeploymentData) GetID

func (TrainedModelDeploymentData) GetReadResourceID

func (d TrainedModelDeploymentData) GetReadResourceID() string

GetReadResourceID satisfies entitycore.WithReadResourceID.

func (TrainedModelDeploymentData) GetResourceID

func (d TrainedModelDeploymentData) GetResourceID() types.String

Jump to

Keyboard shortcuts

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