provider

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MPL-2.0 Imports: 51 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DataRobotApiKeyEnvVar   string = "DATAROBOT_API_TOKEN"
	DataRobotEndpointEnvVar string = "DATAROBOT_ENDPOINT"
	TimeoutMinutesEnvVar    string = "DATAROBOT_TIMEOUT_MINUTES"
	UserAgent               string = "terraform-provider-datarobot"
)

Variables

View Source
var NewService = client.NewService

NewService overrides the client method for testing.

Functions

func BatchCountValidators added in v0.1.37

func BatchCountValidators() []validator.Int64

func BatchJobsPriorityValidators added in v0.1.37

func BatchJobsPriorityValidators() []validator.String

func BoolValuePointerOptional added in v0.2.5

func BoolValuePointerOptional(value basetypes.BoolValue) *bool

func ConvertTfStringListToPtr added in v0.1.37

func ConvertTfStringListToPtr(input []types.String) *[]string

func FairnessMetricSetValidators added in v0.1.37

func FairnessMetricSetValidators() []validator.String

func Float64ValuePointerOptional added in v0.1.37

func Float64ValuePointerOptional(value basetypes.Float64Value) *float64

func Float64ZeroToOneValidators added in v0.1.37

func Float64ZeroToOneValidators() []validator.Float64

func HookGlobal

func HookGlobal[T any](ptr *T, val T) func()

HookGlobal sets `*ptr = val` and returns a closure for restoring `*ptr` to its original value. A runtime panic will occur if `val` is not assignable to `*ptr`.

func ImportanceValidators added in v0.1.37

func ImportanceValidators() []validator.String

func Int64ValuePointerOptional added in v0.1.37

func Int64ValuePointerOptional(value basetypes.Int64Value) *int64

func IsKnown

func IsKnown[T Knowable](t T) bool

func New

func New(version string) func() provider.Provider

func NewApiTokenCredentialResource

func NewApiTokenCredentialResource() resource.Resource

func NewApplicationSourceResource added in v0.0.13

func NewApplicationSourceResource() resource.Resource

func NewBasicCredentialResource

func NewBasicCredentialResource() resource.Resource

func NewCustomApplicationResource added in v0.0.13

func NewCustomApplicationResource() resource.Resource

func NewCustomModelResource

func NewCustomModelResource() resource.Resource

func NewDatasetFromFileResource

func NewDatasetFromFileResource() resource.Resource

func NewDatasetFromURLResource added in v0.1.38

func NewDatasetFromURLResource() resource.Resource

func NewDeploymentResource

func NewDeploymentResource() resource.Resource

func NewGlobalModelDataSource

func NewGlobalModelDataSource() datasource.DataSource

func NewGoogleCloudCredentialResource

func NewGoogleCloudCredentialResource() resource.Resource

func NewLLMBlueprintResource

func NewLLMBlueprintResource() resource.Resource

func NewPlaygroundResource

func NewPlaygroundResource() resource.Resource

func NewPredictionEnvironmentResource

func NewPredictionEnvironmentResource() resource.Resource

func NewQAApplicationResource added in v0.0.19

func NewQAApplicationResource() resource.Resource

func NewRegisteredModelFromLeaderboardResource added in v0.2.5

func NewRegisteredModelFromLeaderboardResource() resource.Resource

func NewRegisteredModelResource

func NewRegisteredModelResource() resource.Resource

func NewRemoteRepositoryResource

func NewRemoteRepositoryResource() resource.Resource

func NewUseCaseResource

func NewUseCaseResource() resource.Resource

func NewVectorDatabaseResource

func NewVectorDatabaseResource() resource.Resource

func StringValuePointerOptional added in v0.1.37

func StringValuePointerOptional(value basetypes.StringValue) *string

func TimelinessFrequencyValidators added in v0.1.37

func TimelinessFrequencyValidators() []validator.String

func UpdateUseCasesForEntity added in v0.2.6

func UpdateUseCasesForEntity(
	ctx context.Context,
	service client.Service,
	entityType string,
	entityID string,
	stateUseCaseIDs []types.String,
	planUseCaseIDs []types.String,
) (err error)

Types

type AccuracyHealthSettings added in v0.1.37

type AccuracyHealthSettings struct {
	BatchCount       types.Int64   `tfsdk:"batch_count"`
	Metric           types.String  `tfsdk:"metric"`
	Measurement      types.String  `tfsdk:"measurement"`
	WarningThreshold types.Float64 `tfsdk:"warning_threshold"`
	FailingThreshold types.Float64 `tfsdk:"failing_threshold"`
}

type ApiTokenCredentialResource

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

ApiTokenCredentialResource defines the resource implementation.

func (*ApiTokenCredentialResource) Configure

func (*ApiTokenCredentialResource) Create

func (*ApiTokenCredentialResource) Delete

func (*ApiTokenCredentialResource) ImportState

func (*ApiTokenCredentialResource) Metadata

func (*ApiTokenCredentialResource) Read

func (*ApiTokenCredentialResource) Schema

func (*ApiTokenCredentialResource) Update

type ApiTokenCredentialResourceModel

type ApiTokenCredentialResourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	ApiToken    types.String `tfsdk:"api_token"`
}

CredentialResourceModel describes the credential resource.

type ApplicationResourceSettings added in v0.0.17

type ApplicationResourceSettings struct {
	Replicas types.Int64 `tfsdk:"replicas"`
}

type ApplicationSourceResource added in v0.0.13

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

func (ApplicationSourceResource) ConfigValidators added in v0.2.3

func (*ApplicationSourceResource) Configure added in v0.0.13

func (*ApplicationSourceResource) Create added in v0.0.13

func (*ApplicationSourceResource) Delete added in v0.0.13

func (*ApplicationSourceResource) ImportState added in v0.0.13

func (*ApplicationSourceResource) Metadata added in v0.0.13

func (ApplicationSourceResource) ModifyPlan added in v0.0.17

func (*ApplicationSourceResource) Read added in v0.0.13

func (*ApplicationSourceResource) Schema added in v0.0.13

func (*ApplicationSourceResource) Update added in v0.0.13

type ApplicationSourceResourceModel added in v0.0.13

type ApplicationSourceResourceModel struct {
	ID                       types.String                 `tfsdk:"id"`
	VersionID                types.String                 `tfsdk:"version_id"`
	Name                     types.String                 `tfsdk:"name"`
	BaseEnvironmentID        types.String                 `tfsdk:"base_environment_id"`
	BaseEnvironmentVersionID types.String                 `tfsdk:"base_environment_version_id"`
	FolderPath               types.String                 `tfsdk:"folder_path"`
	FolderPathHash           types.String                 `tfsdk:"folder_path_hash"`
	Files                    types.Dynamic                `tfsdk:"files"`
	FilesHashes              types.List                   `tfsdk:"files_hashes"`
	ResourceSettings         *ApplicationResourceSettings `tfsdk:"resource_settings"`
	RuntimeParameterValues   types.List                   `tfsdk:"runtime_parameter_values"`
}

type AssociationIDSettings added in v0.1.37

type AssociationIDSettings struct {
	AutoGenerateID               types.Bool     `tfsdk:"auto_generate_id"`
	ColumnNames                  []types.String `tfsdk:"column_names"`
	RequiredInPredictionRequests types.Bool     `tfsdk:"required_in_prediction_requests"`
}

type BasicCredentialResource

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

BasicCredentialResource defines the resource implementation.

func (*BasicCredentialResource) Configure

func (*BasicCredentialResource) Create

func (*BasicCredentialResource) Delete

func (*BasicCredentialResource) ImportState

func (*BasicCredentialResource) Metadata

func (*BasicCredentialResource) Read

func (*BasicCredentialResource) Schema

func (*BasicCredentialResource) Update

type BasicCredentialResourceModel

type BasicCredentialResourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	User        types.String `tfsdk:"user"`
	Password    types.String `tfsdk:"password"`
}

type BasicDeploymentSetting added in v0.1.37

type BasicDeploymentSetting struct {
	Enabled types.Bool `tfsdk:"enabled"`
}

type BiasAndFairnessSettings added in v0.1.37

type BiasAndFairnessSettings struct {
	ProtectedFeatures     []types.String `tfsdk:"protected_features"`
	PreferableTargetValue types.Bool     `tfsdk:"preferable_target_value"`
	FairnessMetricSet     types.String   `tfsdk:"fairness_metric_set"`
	FairnessThreshold     types.Float64  `tfsdk:"fairness_threshold"`
}

type ChunkingParametersModel

type ChunkingParametersModel struct {
	EmbeddingModel         types.String   `tfsdk:"embedding_model"`
	ChunkOverlapPercentage types.Int64    `tfsdk:"chunk_overlap_percentage"`
	ChunkSize              types.Int64    `tfsdk:"chunk_size"`
	ChunkingMethod         types.String   `tfsdk:"chunking_method"`
	IsSeparatorRegex       types.Bool     `tfsdk:"is_separator_regex"`
	Separators             []types.String `tfsdk:"separators"`
}

ChunkingParametersModel represents the chunking parameters nested attribute.

type CustomApplicationResource added in v0.0.13

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

func (*CustomApplicationResource) Configure added in v0.0.13

func (*CustomApplicationResource) Create added in v0.0.13

func (*CustomApplicationResource) Delete added in v0.0.13

func (*CustomApplicationResource) ImportState added in v0.0.13

func (*CustomApplicationResource) Metadata added in v0.0.13

func (*CustomApplicationResource) Read added in v0.0.13

func (*CustomApplicationResource) Schema added in v0.0.13

func (*CustomApplicationResource) Update added in v0.0.13

type CustomApplicationResourceModel added in v0.0.13

type CustomApplicationResourceModel struct {
	ID                       types.String   `tfsdk:"id"`
	SourceID                 types.String   `tfsdk:"source_id"`
	SourceVersionID          types.String   `tfsdk:"source_version_id"`
	Name                     types.String   `tfsdk:"name"`
	ApplicationUrl           types.String   `tfsdk:"application_url"`
	ExternalAccessEnabled    types.Bool     `tfsdk:"external_access_enabled"`
	ExternalAccessRecipients []types.String `tfsdk:"external_access_recipients"`
	UseCaseIDs               []types.String `tfsdk:"use_case_ids"`
}

type CustomBoundaries added in v0.1.37

type CustomBoundaries struct {
	UpperBoundary types.Float64 `tfsdk:"uppder_boundary"`
	LowerBoundary types.Float64 `tfsdk:"lower_boundary"`
}

type CustomMetricCondition added in v0.1.37

type CustomMetricCondition struct {
	MetricID        types.String  `tfsdk:"metric_id"`
	CompareOperator types.String  `tfsdk:"compare_operator"`
	Threshold       types.Float64 `tfsdk:"threshold"`
}

type CustomMetricsHealthSettings added in v0.1.37

type CustomMetricsHealthSettings struct {
	WarningConditions []CustomMetricCondition `tfsdk:"warning_conditions"`
	FailingConditions []CustomMetricCondition `tfsdk:"failing_conditions"`
}

type CustomModelResource

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

VectorDatabaseResource defines the resource implementation.

func (CustomModelResource) ConfigValidators added in v0.0.21

func (r CustomModelResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator

func (*CustomModelResource) Configure

func (*CustomModelResource) Create

func (*CustomModelResource) Delete

func (*CustomModelResource) ImportState

func (*CustomModelResource) Metadata

func (CustomModelResource) ModifyPlan added in v0.0.17

func (*CustomModelResource) Read

func (*CustomModelResource) Schema

func (*CustomModelResource) Update

type CustomModelResourceModel

type CustomModelResourceModel struct {
	ID                             types.String                    `tfsdk:"id"`
	VersionID                      types.String                    `tfsdk:"version_id"`
	Name                           types.String                    `tfsdk:"name"`
	Description                    types.String                    `tfsdk:"description"`
	SourceLLMBlueprintID           types.String                    `tfsdk:"source_llm_blueprint_id"`
	BaseEnvironmentID              types.String                    `tfsdk:"base_environment_id"`
	BaseEnvironmentVersionID       types.String                    `tfsdk:"base_environment_version_id"`
	RuntimeParameterValues         types.List                      `tfsdk:"runtime_parameter_values"`
	SourceRemoteRepositories       []SourceRemoteRepository        `tfsdk:"source_remote_repositories"`
	FolderPath                     types.String                    `tfsdk:"folder_path"`
	FolderPathHash                 types.String                    `tfsdk:"folder_path_hash"`
	Files                          types.Dynamic                   `tfsdk:"files"`
	FilesHashes                    types.List                      `tfsdk:"files_hashes"`
	TargetName                     types.String                    `tfsdk:"target_name"`
	TargetType                     types.String                    `tfsdk:"target_type"`
	PositiveClassLabel             types.String                    `tfsdk:"positive_class_label"`
	NegativeClassLabel             types.String                    `tfsdk:"negative_class_label"`
	PredictionThreshold            types.Float64                   `tfsdk:"prediction_threshold"`
	Language                       types.String                    `tfsdk:"language"`
	IsProxy                        types.Bool                      `tfsdk:"is_proxy"`
	ClassLabels                    []types.String                  `tfsdk:"class_labels"`
	ClassLabelsFile                types.String                    `tfsdk:"class_labels_file"`
	DeploymentsCount               types.Int64                     `tfsdk:"deployments_count"`
	GuardConfigurations            []GuardConfiguration            `tfsdk:"guard_configurations"`
	OverallModerationConfiguration *OverallModerationConfiguration `tfsdk:"overall_moderation_configuration"`
	TrainingDatasetID              types.String                    `tfsdk:"training_dataset_id"`
	TrainingDatasetVersionID       types.String                    `tfsdk:"training_dataset_version_id"`
	TrainingDatasetName            types.String                    `tfsdk:"training_dataset_name"`
	TrainingDataPartitionColumn    types.String                    `tfsdk:"training_data_partition_column"`
	MemoryMB                       types.Int64                     `tfsdk:"memory_mb"`
	Replicas                       types.Int64                     `tfsdk:"replicas"`
	NetworkAccess                  types.String                    `tfsdk:"network_access"`
	ResourceBundleID               types.String                    `tfsdk:"resource_bundle_id"`
	UseCaseIDs                     []types.String                  `tfsdk:"use_case_ids"`
}

ModelResourceModel describes the custom model resource.

type DataDriftHealthSettings added in v0.1.37

type DataDriftHealthSettings struct {
	BatchCount                 types.Int64    `tfsdk:"batch_count"`
	TimeInterval               types.String   `tfsdk:"time_interval"`
	DriftThreshold             types.Float64  `tfsdk:"drift_threshold"`
	ImportanceThreshold        types.Float64  `tfsdk:"importance_threshold"`
	LowImportanceWarningCount  types.Int64    `tfsdk:"low_importance_warning_count"`
	LowImportanceFailingCount  types.Int64    `tfsdk:"low_importance_failing_count"`
	HighImportanceWarningCount types.Int64    `tfsdk:"high_importance_warning_count"`
	HighImportanceFailingCount types.Int64    `tfsdk:"high_importance_failing_count"`
	ExcludeFeatures            []types.String `tfsdk:"exclude_features"`
	StarredFeatures            []types.String `tfsdk:"starred_features"`
}

type DatasetFromFileResource

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

DatasetFromFileResource defines the resource implementation.

func (*DatasetFromFileResource) Configure

func (*DatasetFromFileResource) Create

func (*DatasetFromFileResource) Delete

func (*DatasetFromFileResource) ImportState

func (*DatasetFromFileResource) Metadata

func (DatasetFromFileResource) ModifyPlan added in v0.2.0

func (*DatasetFromFileResource) Read

func (*DatasetFromFileResource) Schema

func (*DatasetFromFileResource) Update

type DatasetFromFileResourceModel

type DatasetFromFileResourceModel struct {
	ID         types.String   `tfsdk:"id"`
	FilePath   types.String   `tfsdk:"file_path"`
	FileHash   types.String   `tfsdk:"file_hash"`
	Name       types.String   `tfsdk:"name"`
	UseCaseIDs []types.String `tfsdk:"use_case_ids"`
}

DatasetFromFileResourceModel describes the datasource uploaded from a file.

type DatasetFromURLResource added in v0.1.38

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

DatasetFromURLResource defines the resource implementation.

func (*DatasetFromURLResource) Configure added in v0.1.38

func (*DatasetFromURLResource) Create added in v0.1.38

func (*DatasetFromURLResource) Delete added in v0.1.38

func (*DatasetFromURLResource) ImportState added in v0.1.38

func (*DatasetFromURLResource) Metadata added in v0.1.38

func (*DatasetFromURLResource) Read added in v0.1.38

func (*DatasetFromURLResource) Schema added in v0.1.38

func (*DatasetFromURLResource) Update added in v0.1.38

type DatasetFromURLResourceModel added in v0.1.38

type DatasetFromURLResourceModel struct {
	ID         types.String   `tfsdk:"id"`
	URL        types.String   `tfsdk:"url"`
	Name       types.String   `tfsdk:"name"`
	UseCaseIDs []types.String `tfsdk:"use_case_ids"`
}

type DeploymentResource

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

VectorDatabaseResource defines the resource implementation.

func (*DeploymentResource) Configure

func (*DeploymentResource) Create

func (*DeploymentResource) Delete

func (*DeploymentResource) ImportState

func (*DeploymentResource) Metadata

func (*DeploymentResource) Read

func (*DeploymentResource) Schema

func (*DeploymentResource) Update

type DeploymentResourceModel

type DeploymentResourceModel struct {
	ID                       types.String   `tfsdk:"id"`
	Label                    types.String   `tfsdk:"label"`
	RegisteredModelVersionID types.String   `tfsdk:"registered_model_version_id"`
	PredictionEnvironmentID  types.String   `tfsdk:"prediction_environment_id"`
	Importance               types.String   `tfsdk:"importance"`
	UseCaseIDs               []types.String `tfsdk:"use_case_ids"`

	// settings
	PredictionsByForecastDateSettings *PredictionsByForecastDateSettings `tfsdk:"predictions_by_forecast_date_settings"`
	ChallengerModelsSettings          *BasicDeploymentSetting            `tfsdk:"challenger_models_settings"`
	SegmentAnalysisSettings           *SegmentAnalysisSettings           `tfsdk:"segment_analysis_settings"`
	BiasAndFairnessSettings           *BiasAndFairnessSettings           `tfsdk:"bias_and_fairness_settings"`
	ChallengerReplaySettings          *BasicDeploymentSetting            `tfsdk:"challenger_replay_settings"`
	DriftTrackingSettings             *DriftTrackingSettings             `tfsdk:"drift_tracking_settings"`
	AssociationIDSettings             *AssociationIDSettings             `tfsdk:"association_id_settings"`
	PredictionsDataCollectionSettings *BasicDeploymentSetting            `tfsdk:"predictions_data_collection_settings"`
	PredictionWarningSettings         *PredictionWarningSettings         `tfsdk:"prediction_warning_settings"`
	PredictionIntervalsSettings       *PredictionIntervalsSettings       `tfsdk:"prediction_intervals_settings"`
	HealthSettings                    *HealthSettings                    `tfsdk:"health_settings"`
	PredictionsSettings               *PredictionsSettings               `tfsdk:"predictions_settings"`
}

DeploymentResourceModel describes the deployment resource.

type DeploymentSettings

type DeploymentSettings struct {
	AssociationID        *AssociationIDSettings `tfsdk:"association_id"`
	PredictionRowStorage types.Bool             `tfsdk:"prediction_row_storage"`
	ChallengerAnalysis   types.Bool             `tfsdk:"challenger_analysis"`
	PredictionsSettings  *PredictionsSettings   `tfsdk:"predictions_settings"`
}

type DriftTrackingSettings added in v0.1.37

type DriftTrackingSettings struct {
	TargetDriftEnabled  types.Bool `tfsdk:"target_drift_enabled"`
	FeatureDriftEnabled types.Bool `tfsdk:"feature_drift_enabled"`
}

type FairnessHealthSettings added in v0.1.37

type FairnessHealthSettings struct {
	ProtectedClassWarningCount types.Int64 `tfsdk:"protected_class_warning_count"`
	ProtectedClassFailingCount types.Int64 `tfsdk:"protected_class_failing_count"`
}

type FileTuple added in v0.0.23

type FileTuple struct {
	LocalPath   string
	PathInModel string
}

type GlobalModelDataSource

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

func (*GlobalModelDataSource) Configure

func (*GlobalModelDataSource) Metadata

func (*GlobalModelDataSource) Read

func (*GlobalModelDataSource) Schema

type GlobalModelDataSourceModel

type GlobalModelDataSourceModel struct {
	Name      types.String `tfsdk:"name"`
	ID        types.String `tfsdk:"id"`
	VersionID types.String `tfsdk:"version_id"`
}

GlobalModelDataSourceModel describes the global model data source resource.

type GoogleCloudCredentialResource

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

GoogleCloudCredentialResource defines the resource implementation.

func (GoogleCloudCredentialResource) ConfigValidators added in v0.1.39

func (*GoogleCloudCredentialResource) Configure

func (*GoogleCloudCredentialResource) Create

func (*GoogleCloudCredentialResource) Delete

func (*GoogleCloudCredentialResource) ImportState

func (*GoogleCloudCredentialResource) Metadata

func (GoogleCloudCredentialResource) ModifyPlan added in v0.2.0

func (*GoogleCloudCredentialResource) Read

func (*GoogleCloudCredentialResource) Schema

func (*GoogleCloudCredentialResource) Update

type GoogleCloudCredentialResourceModel

type GoogleCloudCredentialResourceModel struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	GCPKey         types.String `tfsdk:"gcp_key"`
	GCPKeyFile     types.String `tfsdk:"gcp_key_file"`
	GCPKeyFileHash types.String `tfsdk:"gcp_key_file_hash"`
}

type GuardCondition

type GuardCondition struct {
	Comparand  types.Float64 `tfsdk:"comparand"`
	Comparator types.String  `tfsdk:"comparator"`
}

type GuardConfiguration

type GuardConfiguration struct {
	TemplateName       types.String      `tfsdk:"template_name"`
	Name               types.String      `tfsdk:"name"`
	Stages             []types.String    `tfsdk:"stages"`
	Intervention       GuardIntervention `tfsdk:"intervention"`
	DeploymentID       types.String      `tfsdk:"deployment_id"`
	InputColumnName    types.String      `tfsdk:"input_column_name"`
	OutputColumnName   types.String      `tfsdk:"output_column_name"`
	OpenAICredential   types.String      `tfsdk:"openai_credential"`
	OpenAIApiBase      types.String      `tfsdk:"openai_api_base"`
	OpenAIDeploymentID types.String      `tfsdk:"openai_deployment_id"`
	LlmType            types.String      `tfsdk:"llm_type"`
}

type GuardIntervention

type GuardIntervention struct {
	Action    types.String `tfsdk:"action"`
	Condition types.String `tfsdk:"condition"`
	Message   types.String `tfsdk:"message"`
}

type HealthSettings added in v0.1.37

type HealthSettings struct {
	Service               *ServiceHealthSettings       `tfsdk:"service"`
	DataDrift             *DataDriftHealthSettings     `tfsdk:"data_drift"`
	Accuracy              *AccuracyHealthSettings      `tfsdk:"accuracy"`
	Fairness              *FairnessHealthSettings      `tfsdk:"fairness"`
	CustomMetrics         *CustomMetricsHealthSettings `tfsdk:"custom_metrics"`
	PredictionsTimeliness *TimelinessHealthSettings    `tfsdk:"predictions_timeliness"`
	ActualsTimeliness     *TimelinessHealthSettings    `tfsdk:"actuals_timeliness"`
}

type Knowable

type Knowable interface {
	IsUnknown() bool
	IsNull() bool
}

type LLMBlueprintResource

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

func (*LLMBlueprintResource) Configure

func (*LLMBlueprintResource) Create

func (*LLMBlueprintResource) Delete

func (*LLMBlueprintResource) ImportState

func (*LLMBlueprintResource) Metadata

func (*LLMBlueprintResource) Read

func (*LLMBlueprintResource) Schema

func (*LLMBlueprintResource) Update

type LLMBlueprintResourceModel

type LLMBlueprintResourceModel struct {
	ID                     types.String            `tfsdk:"id"`
	Name                   types.String            `tfsdk:"name"`
	Description            types.String            `tfsdk:"description"`
	PlaygroundID           types.String            `tfsdk:"playground_id"`
	VectorDatabaseID       types.String            `tfsdk:"vector_database_id"`
	VectorDatabaseSettings *VectorDatabaseSettings `tfsdk:"vector_database_settings"`
	LLMID                  types.String            `tfsdk:"llm_id"`
	LLMSettings            *LLMSettings            `tfsdk:"llm_settings"`
	PromptType             types.String            `tfsdk:"prompt_type"`
}

LLMBlueprintResourceModel describes the LLM blueprint resource.

type LLMSettings added in v0.0.24

type LLMSettings struct {
	MaxCompletionLength types.Int64   `tfsdk:"max_completion_length"`
	Temperature         types.Float64 `tfsdk:"temperature"`
	TopP                types.Float64 `tfsdk:"top_p"`
	SystemPrompt        types.String  `tfsdk:"system_prompt"`
}

type OverallModerationConfiguration

type OverallModerationConfiguration struct {
	TimeoutSec    types.Int64  `tfsdk:"timeout_sec"`
	TimeoutAction types.String `tfsdk:"timeout_action"`
}

type PlaygroundResource

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

PlaygroundResource defines the resource implementation.

func (*PlaygroundResource) Configure

func (*PlaygroundResource) Create

func (*PlaygroundResource) Delete

func (*PlaygroundResource) ImportState

func (*PlaygroundResource) Metadata

func (*PlaygroundResource) Read

func (*PlaygroundResource) Schema

func (*PlaygroundResource) Update

type PlaygroundResourceModel

type PlaygroundResourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	UseCaseID   types.String `tfsdk:"use_case_id"`
}

PlaygroundResourceModel describes the playground associated to a use case.

type PredictionEnvironmentResource

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

VectorDatabaseResource defines the resource implementation.

func (*PredictionEnvironmentResource) Configure

func (*PredictionEnvironmentResource) Create

func (*PredictionEnvironmentResource) Delete

func (*PredictionEnvironmentResource) ImportState

func (*PredictionEnvironmentResource) Metadata

func (*PredictionEnvironmentResource) Read

func (*PredictionEnvironmentResource) Schema

func (*PredictionEnvironmentResource) Update

type PredictionEnvironmentResourceModel

type PredictionEnvironmentResourceModel struct {
	ID                     types.String   `tfsdk:"id"`
	Name                   types.String   `tfsdk:"name"`
	Platform               types.String   `tfsdk:"platform"`
	Description            types.String   `tfsdk:"description"`
	SupportedModelFormats  []types.String `tfsdk:"supported_model_formats"`
	BatchJobsPriority      types.String   `tfsdk:"batch_jobs_priority"`
	BatchJobsMaxConcurrent types.Int64    `tfsdk:"batch_jobs_max_concurrent"`
	ManagedBy              types.String   `tfsdk:"managed_by"`
	CredentialID           types.String   `tfsdk:"credential_id"`
	DatastoreID            types.String   `tfsdk:"datastore_id"`
}

PredictionEnvironmentResourceModel describes the prediction environment resource.

type PredictionIntervalsSettings added in v0.1.37

type PredictionIntervalsSettings struct {
	Enabled     types.Bool    `tfsdk:"enabled"`
	Percentiles []types.Int64 `tfsdk:"percentiles"`
}

type PredictionWarningSettings added in v0.1.37

type PredictionWarningSettings struct {
	Enabled          types.Bool        `tfsdk:"enabled"`
	CustomBoundaries *CustomBoundaries `tfsdk:"custom_boundaries"`
}

type PredictionsByForecastDateSettings added in v0.1.37

type PredictionsByForecastDateSettings struct {
	Enabled        types.Bool   `tfsdk:"enabled"`
	ColumnName     types.String `tfsdk:"column_name"`
	DatetimeFormat types.String `tfsdk:"datetime_format"`
}

type PredictionsSettings added in v0.1.37

type PredictionsSettings struct {
	MinComputes types.Int64 `tfsdk:"min_computes"`
	MaxComputes types.Int64 `tfsdk:"max_computes"`
}

type Provider

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

Provider defines the provider implementation.

func (*Provider) Configure

func (*Provider) DataSources

func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*Provider) Functions

func (p *Provider) Functions(ctx context.Context) []func() function.Function

func (*Provider) Metadata

func (*Provider) Resources

func (p *Provider) Resources(ctx context.Context) []func() resource.Resource

func (*Provider) Schema

type ProviderModel

type ProviderModel struct {
	Endpoint types.String `tfsdk:"endpoint"`
	ApiKey   types.String `tfsdk:"apikey"`
}

ProviderModel describes the provider data model.

type QAApplicationResource added in v0.0.19

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

func (*QAApplicationResource) Configure added in v0.0.19

func (*QAApplicationResource) Create added in v0.0.19

func (*QAApplicationResource) Delete added in v0.0.19

func (*QAApplicationResource) ImportState added in v0.0.19

func (*QAApplicationResource) Metadata added in v0.0.19

func (*QAApplicationResource) Read added in v0.0.19

func (*QAApplicationResource) Schema added in v0.0.19

func (*QAApplicationResource) Update added in v0.0.19

type QAApplicationResourceModel added in v0.0.19

type QAApplicationResourceModel struct {
	ID                       types.String   `tfsdk:"id"`
	SourceID                 types.String   `tfsdk:"source_id"`
	SourceVersionID          types.String   `tfsdk:"source_version_id"`
	Name                     types.String   `tfsdk:"name"`
	DeploymentID             types.String   `tfsdk:"deployment_id"`
	ApplicationUrl           types.String   `tfsdk:"application_url"`
	ExternalAccessEnabled    types.Bool     `tfsdk:"external_access_enabled"`
	ExternalAccessRecipients []types.String `tfsdk:"external_access_recipients"`
}

type RegisteredModelFromLeaderboardResource added in v0.2.5

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

VectorDatabaseResource defines the resource implementation.

func (*RegisteredModelFromLeaderboardResource) Configure added in v0.2.5

func (*RegisteredModelFromLeaderboardResource) Create added in v0.2.5

func (*RegisteredModelFromLeaderboardResource) Delete added in v0.2.5

func (*RegisteredModelFromLeaderboardResource) ImportState added in v0.2.5

func (*RegisteredModelFromLeaderboardResource) Metadata added in v0.2.5

func (*RegisteredModelFromLeaderboardResource) Read added in v0.2.5

func (*RegisteredModelFromLeaderboardResource) Schema added in v0.2.5

func (*RegisteredModelFromLeaderboardResource) Update added in v0.2.5

type RegisteredModelFromLeaderboardResourceModel added in v0.2.5

type RegisteredModelFromLeaderboardResourceModel struct {
	ID                            types.String   `tfsdk:"id"`
	VersionID                     types.String   `tfsdk:"version_id"`
	VersionName                   types.String   `tfsdk:"version_name"`
	Name                          types.String   `tfsdk:"name"`
	Description                   types.String   `tfsdk:"description"`
	ModelID                       types.String   `tfsdk:"model_id"`
	PredictionThreshold           types.Float64  `tfsdk:"prediction_threshold"`
	ComputeAllTsIntervals         types.Bool     `tfsdk:"compute_all_ts_intervals"`
	DistributionPredictionModelID types.String   `tfsdk:"distribution_prediction_model_id"`
	UseCaseIDs                    []types.String `tfsdk:"use_case_ids"`
}

type RegisteredModelResource

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

VectorDatabaseResource defines the resource implementation.

func (*RegisteredModelResource) Configure

func (*RegisteredModelResource) Create

func (*RegisteredModelResource) Delete

func (*RegisteredModelResource) ImportState

func (*RegisteredModelResource) Metadata

func (*RegisteredModelResource) Read

func (*RegisteredModelResource) Schema

func (*RegisteredModelResource) Update

type RegisteredModelResourceModel

type RegisteredModelResourceModel struct {
	ID                   types.String   `tfsdk:"id"`
	VersionID            types.String   `tfsdk:"version_id"`
	VersionName          types.String   `tfsdk:"version_name"`
	Name                 types.String   `tfsdk:"name"`
	Description          types.String   `tfsdk:"description"`
	CustomModelVersionId types.String   `tfsdk:"custom_model_version_id"`
	UseCaseIDs           []types.String `tfsdk:"use_case_ids"`
}

RegisteredModelResourceModel describes the registered model resource.

type RemoteRepositoryResource

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

VectorDatabaseResource defines the resource implementation.

func (*RemoteRepositoryResource) Configure

func (*RemoteRepositoryResource) Create

func (*RemoteRepositoryResource) Delete

func (*RemoteRepositoryResource) ImportState

func (*RemoteRepositoryResource) Metadata

func (*RemoteRepositoryResource) Read

func (*RemoteRepositoryResource) Schema

func (*RemoteRepositoryResource) Update

type RemoteRepositoryResourceModel

type RemoteRepositoryResourceModel struct {
	ID                  types.String `tfsdk:"id"`
	Name                types.String `tfsdk:"name"`
	Description         types.String `tfsdk:"description"`
	Location            types.String `tfsdk:"location"`
	SourceType          types.String `tfsdk:"source_type"`
	PersonalAccessToken types.String `tfsdk:"personal_access_token"`

	// optional fields for S3 remote repositories
	AWSAccessKeyID     types.String `tfsdk:"aws_access_key_id"`
	AWSSecretAccessKey types.String `tfsdk:"aws_secret_access_key"`
	AWSSessionToken    types.String `tfsdk:"aws_session_token"`
}

RemoteRepositoryResourceModel describes the remote repository resource.

type RuntimeParameterValue added in v0.0.16

type RuntimeParameterValue struct {
	Key   types.String `json:"key" tfsdk:"key"`
	Type  types.String `json:"type" tfsdk:"type"`
	Value types.String `json:"value" tfsdk:"value"`
}

type SegmentAnalysisSettings added in v0.1.37

type SegmentAnalysisSettings struct {
	Enabled    types.Bool     `tfsdk:"enabled"`
	Attributes []types.String `tfsdk:"attributes"`
}

type ServiceHealthSettings added in v0.1.37

type ServiceHealthSettings struct {
	BatchCount types.Int64 `tfsdk:"batch_count"`
}

type SourceRemoteRepository

type SourceRemoteRepository struct {
	ID          types.String   `tfsdk:"id"`
	Ref         types.String   `tfsdk:"ref"`
	SourcePaths []types.String `tfsdk:"source_paths"`
}

type Tag added in v0.2.5

type Tag struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

type TimelinessHealthSettings added in v0.1.37

type TimelinessHealthSettings struct {
	Enabled           types.Bool   `tfsdk:"enabled"`
	ExpectedFrequency types.String `tfsdk:"expected_frequency"`
}

type UseCaseResource

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

UseCaseResource defines the resource implementation.

func (*UseCaseResource) Configure

func (*UseCaseResource) Create

func (*UseCaseResource) Delete

func (*UseCaseResource) ImportState

func (*UseCaseResource) Metadata

func (*UseCaseResource) Read

func (*UseCaseResource) Schema

func (*UseCaseResource) Update

type UseCaseResourceModel

type UseCaseResourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
}

UseCaseResourceModel describes the resource data model.

type VectorDatabaseResource

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

VectorDatabaseResource defines the resource implementation.

func (*VectorDatabaseResource) Configure

func (*VectorDatabaseResource) Create

func (*VectorDatabaseResource) Delete

func (*VectorDatabaseResource) ImportState

func (*VectorDatabaseResource) Metadata

func (*VectorDatabaseResource) Read

func (*VectorDatabaseResource) Schema

func (*VectorDatabaseResource) Update

type VectorDatabaseResourceModel

type VectorDatabaseResourceModel struct {
	ID                 types.String             `tfsdk:"id"`
	Name               types.String             `tfsdk:"name"`
	UseCaseID          types.String             `tfsdk:"use_case_id"`
	DatasetID          types.String             `tfsdk:"dataset_id"`
	ChunkingParameters *ChunkingParametersModel `tfsdk:"chunking_parameters"`
}

VectorDatabaseResourceModel describes a vector database.

type VectorDatabaseSettings added in v0.0.24

type VectorDatabaseSettings struct {
	MaxDocumentsRetrievedPerPrompt types.Int64 `tfsdk:"max_documents_retrieved_per_prompt"`
	MaxTokens                      types.Int64 `tfsdk:"max_tokens"`
}

Jump to

Keyboard shortcuts

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