provider

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 39 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DataRobotApiKeyEnvVar   string = "DATAROBOT_API_KEY"
	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 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 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 NewChatApplicationResource

func NewChatApplicationResource() 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 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 NewRegisteredModelResource

func NewRegisteredModelResource() resource.Resource

func NewRemoteRepositoryResource

func NewRemoteRepositoryResource() resource.Resource

func NewUseCaseResource

func NewUseCaseResource() resource.Resource

func NewVectorDatabaseResource

func NewVectorDatabaseResource() resource.Resource

Types

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) 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"`
	LocalFiles             []types.String               `tfsdk:"local_files"`
	ResourceSettings       *ApplicationResourceSettings `tfsdk:"resource_settings"`
	RuntimeParameterValues types.List                   `tfsdk:"runtime_parameter_values"`
}

type AssociationIDSetting

type AssociationIDSetting struct {
	AutoGenerateID types.Bool   `tfsdk:"auto_generate_id"`
	FeatureName    types.String `tfsdk:"feature_name"`
}

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 ChatApplicationResource

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

func (*ChatApplicationResource) Configure

func (*ChatApplicationResource) Create

func (*ChatApplicationResource) Delete

func (*ChatApplicationResource) ImportState

func (*ChatApplicationResource) Metadata

func (*ChatApplicationResource) Read

func (*ChatApplicationResource) Schema

func (*ChatApplicationResource) Update

type ChatApplicationResourceModel

type ChatApplicationResourceModel 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 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"`
}

type CustomModelResource

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

VectorDatabaseResource defines the resource implementation.

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"`
	BaseEnvironmentName            types.String                    `tfsdk:"base_environment_name"`
	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"`
	LocalFiles                     []types.String                  `tfsdk:"local_files"`
	Target                         types.String                    `tfsdk:"target"`
	TargetType                     types.String                    `tfsdk:"target_type"`
	PositiveClassLabel             types.String                    `tfsdk:"positive_class_label"`
	NegativeClassLabel             types.String                    `tfsdk:"negative_class_label"`
	IsProxy                        types.Bool                      `tfsdk:"is_proxy"`
	GuardConfigurations            []GuardConfiguration            `tfsdk:"guard_configurations"`
	OverallModerationConfiguration *OverallModerationConfiguration `tfsdk:"overall_moderation_configuration"`
	ResourceSettings               *CustomModelResourceSettings    `tfsdk:"resource_settings"`
}

ModelResourceModel describes the custom model resource.

type CustomModelResourceSettings added in v0.0.17

type CustomModelResourceSettings struct {
	MemoryMB      types.Int64  `tfsdk:"memory_mb"`
	Replicas      types.Int64  `tfsdk:"replicas"`
	NetworkAccess types.String `tfsdk:"network_access"`
}

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) Read

func (*DatasetFromFileResource) Schema

func (*DatasetFromFileResource) Update

type DatasetFromFileResourceModel

type DatasetFromFileResourceModel struct {
	ID         types.String `tfsdk:"id"`
	SourceFile types.String `tfsdk:"source_file"`
	UseCaseID  types.String `tfsdk:"use_case_id"`
}

DatasetFromFileResourceModel describes the datasource uploaded from a file.

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"`
	Settings                 *DeploymentSettings `tfsdk:"settings"`
}

DeploymentResourceModel describes the deployment resource.

type DeploymentSettings

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

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) Configure

func (*GoogleCloudCredentialResource) Create

func (*GoogleCloudCredentialResource) Delete

func (*GoogleCloudCredentialResource) ImportState

func (*GoogleCloudCredentialResource) Metadata

func (*GoogleCloudCredentialResource) Read

func (*GoogleCloudCredentialResource) Schema

func (*GoogleCloudCredentialResource) Update

type GoogleCloudCredentialResourceModel

type GoogleCloudCredentialResourceModel struct {
	ID         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	SourceFile types.String `tfsdk:"source_file"`
}

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"`
}

type GuardIntervention

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

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"`
	LLMID            types.String `tfsdk:"llm_id"`
}

LLMBlueprintResourceModel describes the LLM blueprint resource.

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"`
}

PredictionEnvironmentResourceModel describes the prediction environment resource.

type PredictionsSetting

type PredictionsSetting struct {
	MinComputes types.Int64 `tfsdk:"min_computes"`
	MaxComputes types.Int64 `tfsdk:"max_computes"`
	RealTime    types.Bool  `tfsdk:"real_time"`
}

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 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"`
	Name                 types.String `tfsdk:"name"`
	Description          types.String `tfsdk:"description"`
	CustomModelVersionId types.String `tfsdk:"custom_model_version_id"`
}

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 SourceRemoteRepository

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

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.

Jump to

Keyboard shortcuts

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