serving_tf

package
v1.61.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 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 Ai21LabsConfig

type Ai21LabsConfig struct {
	// The Databricks secret key reference for an AI21 Labs API key. If you
	// prefer to paste your API key directly, see `ai21labs_api_key_plaintext`.
	// You must provide an API key using one of the following fields:
	// `ai21labs_api_key` or `ai21labs_api_key_plaintext`.
	Ai21labsApiKey types.String `tfsdk:"ai21labs_api_key" tf:"optional"`
	// An AI21 Labs API key provided as a plaintext string. If you prefer to
	// reference your key using Databricks Secrets, see `ai21labs_api_key`. You
	// must provide an API key using one of the following fields:
	// `ai21labs_api_key` or `ai21labs_api_key_plaintext`.
	Ai21labsApiKeyPlaintext types.String `tfsdk:"ai21labs_api_key_plaintext" tf:"optional"`
}

func (Ai21LabsConfig) GetComplexFieldTypes added in v1.61.0

func (a Ai21LabsConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in Ai21LabsConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*Ai21LabsConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Ai21LabsConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan Ai21LabsConfig)

func (*Ai21LabsConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Ai21LabsConfig) SyncEffectiveFieldsDuringRead(existingState Ai21LabsConfig)

func (Ai21LabsConfig) ToObjectValue added in v1.61.0

func (o Ai21LabsConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Ai21LabsConfig only implements ToObjectValue() and Type().

func (Ai21LabsConfig) Type added in v1.61.0

func (o Ai21LabsConfig) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type AiGatewayConfig added in v1.53.0

type AiGatewayConfig struct {
	// Configuration for AI Guardrails to prevent unwanted data and unsafe data
	// in requests and responses.
	Guardrails types.List `tfsdk:"guardrails" tf:"optional,object"`
	// Configuration for payload logging using inference tables. Use these
	// tables to monitor and audit data being sent to and received from model
	// APIs and to improve model quality.
	InferenceTableConfig types.List `tfsdk:"inference_table_config" tf:"optional,object"`
	// Configuration for rate limits which can be set to limit endpoint traffic.
	RateLimits types.List `tfsdk:"rate_limits" tf:"optional"`
	// Configuration to enable usage tracking using system tables. These tables
	// allow you to monitor operational usage on endpoints and their associated
	// costs.
	UsageTrackingConfig types.List `tfsdk:"usage_tracking_config" tf:"optional,object"`
}

func (AiGatewayConfig) GetComplexFieldTypes added in v1.61.0

func (a AiGatewayConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AiGatewayConfig) GetGuardrails added in v1.61.0

func (o *AiGatewayConfig) GetGuardrails(ctx context.Context) (AiGatewayGuardrails, bool)

GetGuardrails returns the value of the Guardrails field in AiGatewayConfig as a AiGatewayGuardrails value. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayConfig) GetInferenceTableConfig added in v1.61.0

func (o *AiGatewayConfig) GetInferenceTableConfig(ctx context.Context) (AiGatewayInferenceTableConfig, bool)

GetInferenceTableConfig returns the value of the InferenceTableConfig field in AiGatewayConfig as a AiGatewayInferenceTableConfig value. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayConfig) GetRateLimits added in v1.61.0

func (o *AiGatewayConfig) GetRateLimits(ctx context.Context) ([]AiGatewayRateLimit, bool)

GetRateLimits returns the value of the RateLimits field in AiGatewayConfig as a slice of AiGatewayRateLimit values. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayConfig) GetUsageTrackingConfig added in v1.61.0

func (o *AiGatewayConfig) GetUsageTrackingConfig(ctx context.Context) (AiGatewayUsageTrackingConfig, bool)

GetUsageTrackingConfig returns the value of the UsageTrackingConfig field in AiGatewayConfig as a AiGatewayUsageTrackingConfig value. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayConfig) SetGuardrails added in v1.61.0

func (o *AiGatewayConfig) SetGuardrails(ctx context.Context, v AiGatewayGuardrails)

SetGuardrails sets the value of the Guardrails field in AiGatewayConfig.

func (*AiGatewayConfig) SetInferenceTableConfig added in v1.61.0

func (o *AiGatewayConfig) SetInferenceTableConfig(ctx context.Context, v AiGatewayInferenceTableConfig)

SetInferenceTableConfig sets the value of the InferenceTableConfig field in AiGatewayConfig.

func (*AiGatewayConfig) SetRateLimits added in v1.61.0

func (o *AiGatewayConfig) SetRateLimits(ctx context.Context, v []AiGatewayRateLimit)

SetRateLimits sets the value of the RateLimits field in AiGatewayConfig.

func (*AiGatewayConfig) SetUsageTrackingConfig added in v1.61.0

func (o *AiGatewayConfig) SetUsageTrackingConfig(ctx context.Context, v AiGatewayUsageTrackingConfig)

SetUsageTrackingConfig sets the value of the UsageTrackingConfig field in AiGatewayConfig.

func (*AiGatewayConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AiGatewayConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan AiGatewayConfig)

func (*AiGatewayConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AiGatewayConfig) SyncEffectiveFieldsDuringRead(existingState AiGatewayConfig)

func (AiGatewayConfig) ToObjectValue added in v1.61.0

func (o AiGatewayConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AiGatewayConfig only implements ToObjectValue() and Type().

func (AiGatewayConfig) Type added in v1.61.0

func (o AiGatewayConfig) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type AiGatewayGuardrailParameters added in v1.53.0

type AiGatewayGuardrailParameters struct {
	// List of invalid keywords. AI guardrail uses keyword or string matching to
	// decide if the keyword exists in the request or response content.
	InvalidKeywords types.List `tfsdk:"invalid_keywords" tf:"optional"`
	// Configuration for guardrail PII filter.
	Pii types.List `tfsdk:"pii" tf:"optional,object"`
	// Indicates whether the safety filter is enabled.
	Safety types.Bool `tfsdk:"safety" tf:"optional"`
	// The list of allowed topics. Given a chat request, this guardrail flags
	// the request if its topic is not in the allowed topics.
	ValidTopics types.List `tfsdk:"valid_topics" tf:"optional"`
}

func (AiGatewayGuardrailParameters) GetComplexFieldTypes added in v1.61.0

func (a AiGatewayGuardrailParameters) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayGuardrailParameters. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AiGatewayGuardrailParameters) GetInvalidKeywords added in v1.61.0

func (o *AiGatewayGuardrailParameters) GetInvalidKeywords(ctx context.Context) ([]types.String, bool)

GetInvalidKeywords returns the value of the InvalidKeywords field in AiGatewayGuardrailParameters as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayGuardrailParameters) GetPii added in v1.61.0

GetPii returns the value of the Pii field in AiGatewayGuardrailParameters as a AiGatewayGuardrailPiiBehavior value. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayGuardrailParameters) GetValidTopics added in v1.61.0

func (o *AiGatewayGuardrailParameters) GetValidTopics(ctx context.Context) ([]types.String, bool)

GetValidTopics returns the value of the ValidTopics field in AiGatewayGuardrailParameters as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayGuardrailParameters) SetInvalidKeywords added in v1.61.0

func (o *AiGatewayGuardrailParameters) SetInvalidKeywords(ctx context.Context, v []types.String)

SetInvalidKeywords sets the value of the InvalidKeywords field in AiGatewayGuardrailParameters.

func (*AiGatewayGuardrailParameters) SetPii added in v1.61.0

SetPii sets the value of the Pii field in AiGatewayGuardrailParameters.

func (*AiGatewayGuardrailParameters) SetValidTopics added in v1.61.0

func (o *AiGatewayGuardrailParameters) SetValidTopics(ctx context.Context, v []types.String)

SetValidTopics sets the value of the ValidTopics field in AiGatewayGuardrailParameters.

func (*AiGatewayGuardrailParameters) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AiGatewayGuardrailParameters) SyncEffectiveFieldsDuringCreateOrUpdate(plan AiGatewayGuardrailParameters)

func (*AiGatewayGuardrailParameters) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AiGatewayGuardrailParameters) SyncEffectiveFieldsDuringRead(existingState AiGatewayGuardrailParameters)

func (AiGatewayGuardrailParameters) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AiGatewayGuardrailParameters only implements ToObjectValue() and Type().

func (AiGatewayGuardrailParameters) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AiGatewayGuardrailPiiBehavior added in v1.53.0

type AiGatewayGuardrailPiiBehavior struct {
	// Behavior for PII filter. Currently only 'BLOCK' is supported. If 'BLOCK'
	// is set for the input guardrail and the request contains PII, the request
	// is not sent to the model server and 400 status code is returned; if
	// 'BLOCK' is set for the output guardrail and the model response contains
	// PII, the PII info in the response is redacted and 400 status code is
	// returned.
	Behavior types.String `tfsdk:"behavior" tf:""`
}

func (AiGatewayGuardrailPiiBehavior) GetComplexFieldTypes added in v1.61.0

func (a AiGatewayGuardrailPiiBehavior) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayGuardrailPiiBehavior. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AiGatewayGuardrailPiiBehavior) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AiGatewayGuardrailPiiBehavior) SyncEffectiveFieldsDuringCreateOrUpdate(plan AiGatewayGuardrailPiiBehavior)

func (*AiGatewayGuardrailPiiBehavior) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AiGatewayGuardrailPiiBehavior) SyncEffectiveFieldsDuringRead(existingState AiGatewayGuardrailPiiBehavior)

func (AiGatewayGuardrailPiiBehavior) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AiGatewayGuardrailPiiBehavior only implements ToObjectValue() and Type().

func (AiGatewayGuardrailPiiBehavior) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AiGatewayGuardrails added in v1.53.0

type AiGatewayGuardrails struct {
	// Configuration for input guardrail filters.
	Input types.List `tfsdk:"input" tf:"optional,object"`
	// Configuration for output guardrail filters.
	Output types.List `tfsdk:"output" tf:"optional,object"`
}

func (AiGatewayGuardrails) GetComplexFieldTypes added in v1.61.0

func (a AiGatewayGuardrails) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayGuardrails. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AiGatewayGuardrails) GetInput added in v1.61.0

GetInput returns the value of the Input field in AiGatewayGuardrails as a AiGatewayGuardrailParameters value. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayGuardrails) GetOutput added in v1.61.0

GetOutput returns the value of the Output field in AiGatewayGuardrails as a AiGatewayGuardrailParameters value. If the field is unknown or null, the boolean return value is false.

func (*AiGatewayGuardrails) SetInput added in v1.61.0

SetInput sets the value of the Input field in AiGatewayGuardrails.

func (*AiGatewayGuardrails) SetOutput added in v1.61.0

SetOutput sets the value of the Output field in AiGatewayGuardrails.

func (*AiGatewayGuardrails) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AiGatewayGuardrails) SyncEffectiveFieldsDuringCreateOrUpdate(plan AiGatewayGuardrails)

func (*AiGatewayGuardrails) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AiGatewayGuardrails) SyncEffectiveFieldsDuringRead(existingState AiGatewayGuardrails)

func (AiGatewayGuardrails) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AiGatewayGuardrails only implements ToObjectValue() and Type().

func (AiGatewayGuardrails) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AiGatewayInferenceTableConfig added in v1.53.0

type AiGatewayInferenceTableConfig struct {
	// The name of the catalog in Unity Catalog. Required when enabling
	// inference tables. NOTE: On update, you have to disable inference table
	// first in order to change the catalog name.
	CatalogName types.String `tfsdk:"catalog_name" tf:"optional"`
	// Indicates whether the inference table is enabled.
	Enabled types.Bool `tfsdk:"enabled" tf:"optional"`
	// The name of the schema in Unity Catalog. Required when enabling inference
	// tables. NOTE: On update, you have to disable inference table first in
	// order to change the schema name.
	SchemaName types.String `tfsdk:"schema_name" tf:"optional"`
	// The prefix of the table in Unity Catalog. NOTE: On update, you have to
	// disable inference table first in order to change the prefix name.
	TableNamePrefix types.String `tfsdk:"table_name_prefix" tf:"optional"`
}

func (AiGatewayInferenceTableConfig) GetComplexFieldTypes added in v1.61.0

func (a AiGatewayInferenceTableConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayInferenceTableConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AiGatewayInferenceTableConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AiGatewayInferenceTableConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan AiGatewayInferenceTableConfig)

func (*AiGatewayInferenceTableConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AiGatewayInferenceTableConfig) SyncEffectiveFieldsDuringRead(existingState AiGatewayInferenceTableConfig)

func (AiGatewayInferenceTableConfig) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AiGatewayInferenceTableConfig only implements ToObjectValue() and Type().

func (AiGatewayInferenceTableConfig) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AiGatewayRateLimit added in v1.53.0

type AiGatewayRateLimit struct {
	// Used to specify how many calls are allowed for a key within the
	// renewal_period.
	Calls types.Int64 `tfsdk:"calls" tf:""`
	// Key field for a rate limit. Currently, only 'user' and 'endpoint' are
	// supported, with 'endpoint' being the default if not specified.
	Key types.String `tfsdk:"key" tf:"optional"`
	// Renewal period field for a rate limit. Currently, only 'minute' is
	// supported.
	RenewalPeriod types.String `tfsdk:"renewal_period" tf:""`
}

func (AiGatewayRateLimit) GetComplexFieldTypes added in v1.61.0

func (a AiGatewayRateLimit) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayRateLimit. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AiGatewayRateLimit) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AiGatewayRateLimit) SyncEffectiveFieldsDuringCreateOrUpdate(plan AiGatewayRateLimit)

func (*AiGatewayRateLimit) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AiGatewayRateLimit) SyncEffectiveFieldsDuringRead(existingState AiGatewayRateLimit)

func (AiGatewayRateLimit) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AiGatewayRateLimit only implements ToObjectValue() and Type().

func (AiGatewayRateLimit) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AiGatewayUsageTrackingConfig added in v1.53.0

type AiGatewayUsageTrackingConfig struct {
	// Whether to enable usage tracking.
	Enabled types.Bool `tfsdk:"enabled" tf:"optional"`
}

func (AiGatewayUsageTrackingConfig) GetComplexFieldTypes added in v1.61.0

func (a AiGatewayUsageTrackingConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AiGatewayUsageTrackingConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AiGatewayUsageTrackingConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AiGatewayUsageTrackingConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan AiGatewayUsageTrackingConfig)

func (*AiGatewayUsageTrackingConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AiGatewayUsageTrackingConfig) SyncEffectiveFieldsDuringRead(existingState AiGatewayUsageTrackingConfig)

func (AiGatewayUsageTrackingConfig) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AiGatewayUsageTrackingConfig only implements ToObjectValue() and Type().

func (AiGatewayUsageTrackingConfig) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AmazonBedrockConfig

type AmazonBedrockConfig struct {
	// The Databricks secret key reference for an AWS access key ID with
	// permissions to interact with Bedrock services. If you prefer to paste
	// your API key directly, see `aws_access_key_id`. You must provide an API
	// key using one of the following fields: `aws_access_key_id` or
	// `aws_access_key_id_plaintext`.
	AwsAccessKeyId types.String `tfsdk:"aws_access_key_id" tf:"optional"`
	// An AWS access key ID with permissions to interact with Bedrock services
	// provided as a plaintext string. If you prefer to reference your key using
	// Databricks Secrets, see `aws_access_key_id`. You must provide an API key
	// using one of the following fields: `aws_access_key_id` or
	// `aws_access_key_id_plaintext`.
	AwsAccessKeyIdPlaintext types.String `tfsdk:"aws_access_key_id_plaintext" tf:"optional"`
	// The AWS region to use. Bedrock has to be enabled there.
	AwsRegion types.String `tfsdk:"aws_region" tf:""`
	// The Databricks secret key reference for an AWS secret access key paired
	// with the access key ID, with permissions to interact with Bedrock
	// services. If you prefer to paste your API key directly, see
	// `aws_secret_access_key_plaintext`. You must provide an API key using one
	// of the following fields: `aws_secret_access_key` or
	// `aws_secret_access_key_plaintext`.
	AwsSecretAccessKey types.String `tfsdk:"aws_secret_access_key" tf:"optional"`
	// An AWS secret access key paired with the access key ID, with permissions
	// to interact with Bedrock services provided as a plaintext string. If you
	// prefer to reference your key using Databricks Secrets, see
	// `aws_secret_access_key`. You must provide an API key using one of the
	// following fields: `aws_secret_access_key` or
	// `aws_secret_access_key_plaintext`.
	AwsSecretAccessKeyPlaintext types.String `tfsdk:"aws_secret_access_key_plaintext" tf:"optional"`
	// The underlying provider in Amazon Bedrock. Supported values (case
	// insensitive) include: Anthropic, Cohere, AI21Labs, Amazon.
	BedrockProvider types.String `tfsdk:"bedrock_provider" tf:""`
}

func (AmazonBedrockConfig) GetComplexFieldTypes added in v1.61.0

func (a AmazonBedrockConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AmazonBedrockConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AmazonBedrockConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AmazonBedrockConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan AmazonBedrockConfig)

func (*AmazonBedrockConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AmazonBedrockConfig) SyncEffectiveFieldsDuringRead(existingState AmazonBedrockConfig)

func (AmazonBedrockConfig) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AmazonBedrockConfig only implements ToObjectValue() and Type().

func (AmazonBedrockConfig) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AnthropicConfig

type AnthropicConfig struct {
	// The Databricks secret key reference for an Anthropic API key. If you
	// prefer to paste your API key directly, see `anthropic_api_key_plaintext`.
	// You must provide an API key using one of the following fields:
	// `anthropic_api_key` or `anthropic_api_key_plaintext`.
	AnthropicApiKey types.String `tfsdk:"anthropic_api_key" tf:"optional"`
	// The Anthropic API key provided as a plaintext string. If you prefer to
	// reference your key using Databricks Secrets, see `anthropic_api_key`. You
	// must provide an API key using one of the following fields:
	// `anthropic_api_key` or `anthropic_api_key_plaintext`.
	AnthropicApiKeyPlaintext types.String `tfsdk:"anthropic_api_key_plaintext" tf:"optional"`
}

func (AnthropicConfig) GetComplexFieldTypes added in v1.61.0

func (a AnthropicConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AnthropicConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AnthropicConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AnthropicConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan AnthropicConfig)

func (*AnthropicConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AnthropicConfig) SyncEffectiveFieldsDuringRead(existingState AnthropicConfig)

func (AnthropicConfig) ToObjectValue added in v1.61.0

func (o AnthropicConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AnthropicConfig only implements ToObjectValue() and Type().

func (AnthropicConfig) Type added in v1.61.0

func (o AnthropicConfig) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type AutoCaptureConfigInput

type AutoCaptureConfigInput struct {
	// The name of the catalog in Unity Catalog. NOTE: On update, you cannot
	// change the catalog name if the inference table is already enabled.
	CatalogName types.String `tfsdk:"catalog_name" tf:"optional"`
	// Indicates whether the inference table is enabled.
	Enabled types.Bool `tfsdk:"enabled" tf:"optional"`
	// The name of the schema in Unity Catalog. NOTE: On update, you cannot
	// change the schema name if the inference table is already enabled.
	SchemaName types.String `tfsdk:"schema_name" tf:"optional"`
	// The prefix of the table in Unity Catalog. NOTE: On update, you cannot
	// change the prefix name if the inference table is already enabled.
	TableNamePrefix types.String `tfsdk:"table_name_prefix" tf:"optional"`
}

func (AutoCaptureConfigInput) GetComplexFieldTypes added in v1.61.0

func (a AutoCaptureConfigInput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AutoCaptureConfigInput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AutoCaptureConfigInput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AutoCaptureConfigInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan AutoCaptureConfigInput)

func (*AutoCaptureConfigInput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AutoCaptureConfigInput) SyncEffectiveFieldsDuringRead(existingState AutoCaptureConfigInput)

func (AutoCaptureConfigInput) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AutoCaptureConfigInput only implements ToObjectValue() and Type().

func (AutoCaptureConfigInput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AutoCaptureConfigOutput

type AutoCaptureConfigOutput struct {
	// The name of the catalog in Unity Catalog.
	CatalogName types.String `tfsdk:"catalog_name" tf:"optional"`
	// Indicates whether the inference table is enabled.
	Enabled types.Bool `tfsdk:"enabled" tf:"optional"`
	// The name of the schema in Unity Catalog.
	SchemaName types.String `tfsdk:"schema_name" tf:"optional"`

	State types.List `tfsdk:"state" tf:"optional,object"`
	// The prefix of the table in Unity Catalog.
	TableNamePrefix types.String `tfsdk:"table_name_prefix" tf:"optional"`
}

func (AutoCaptureConfigOutput) GetComplexFieldTypes added in v1.61.0

func (a AutoCaptureConfigOutput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AutoCaptureConfigOutput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AutoCaptureConfigOutput) GetState added in v1.61.0

GetState returns the value of the State field in AutoCaptureConfigOutput as a AutoCaptureState value. If the field is unknown or null, the boolean return value is false.

func (*AutoCaptureConfigOutput) SetState added in v1.61.0

SetState sets the value of the State field in AutoCaptureConfigOutput.

func (*AutoCaptureConfigOutput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AutoCaptureConfigOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan AutoCaptureConfigOutput)

func (*AutoCaptureConfigOutput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AutoCaptureConfigOutput) SyncEffectiveFieldsDuringRead(existingState AutoCaptureConfigOutput)

func (AutoCaptureConfigOutput) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AutoCaptureConfigOutput only implements ToObjectValue() and Type().

func (AutoCaptureConfigOutput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AutoCaptureState

type AutoCaptureState struct {
	PayloadTable types.List `tfsdk:"payload_table" tf:"optional,object"`
}

func (AutoCaptureState) GetComplexFieldTypes added in v1.61.0

func (a AutoCaptureState) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AutoCaptureState. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AutoCaptureState) GetPayloadTable added in v1.61.0

func (o *AutoCaptureState) GetPayloadTable(ctx context.Context) (PayloadTable, bool)

GetPayloadTable returns the value of the PayloadTable field in AutoCaptureState as a PayloadTable value. If the field is unknown or null, the boolean return value is false.

func (*AutoCaptureState) SetPayloadTable added in v1.61.0

func (o *AutoCaptureState) SetPayloadTable(ctx context.Context, v PayloadTable)

SetPayloadTable sets the value of the PayloadTable field in AutoCaptureState.

func (*AutoCaptureState) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AutoCaptureState) SyncEffectiveFieldsDuringCreateOrUpdate(plan AutoCaptureState)

func (*AutoCaptureState) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AutoCaptureState) SyncEffectiveFieldsDuringRead(existingState AutoCaptureState)

func (AutoCaptureState) ToObjectValue added in v1.61.0

func (o AutoCaptureState) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AutoCaptureState only implements ToObjectValue() and Type().

func (AutoCaptureState) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type BuildLogsRequest

type BuildLogsRequest struct {
	// The name of the serving endpoint that the served model belongs to. This
	// field is required.
	Name types.String `tfsdk:"-"`
	// The name of the served model that build logs will be retrieved for. This
	// field is required.
	ServedModelName types.String `tfsdk:"-"`
}

Get build logs for a served model

func (BuildLogsRequest) GetComplexFieldTypes added in v1.61.0

func (a BuildLogsRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in BuildLogsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*BuildLogsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *BuildLogsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan BuildLogsRequest)

func (*BuildLogsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *BuildLogsRequest) SyncEffectiveFieldsDuringRead(existingState BuildLogsRequest)

func (BuildLogsRequest) ToObjectValue added in v1.61.0

func (o BuildLogsRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, BuildLogsRequest only implements ToObjectValue() and Type().

func (BuildLogsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type BuildLogsResponse

type BuildLogsResponse struct {
	// The logs associated with building the served entity's environment.
	Logs types.String `tfsdk:"logs" tf:""`
}

func (BuildLogsResponse) GetComplexFieldTypes added in v1.61.0

func (a BuildLogsResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in BuildLogsResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*BuildLogsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *BuildLogsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan BuildLogsResponse)

func (*BuildLogsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *BuildLogsResponse) SyncEffectiveFieldsDuringRead(existingState BuildLogsResponse)

func (BuildLogsResponse) ToObjectValue added in v1.61.0

func (o BuildLogsResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, BuildLogsResponse only implements ToObjectValue() and Type().

func (BuildLogsResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ChatMessage

type ChatMessage struct {
	// The content of the message.
	Content types.String `tfsdk:"content" tf:"optional"`
	// The role of the message. One of [system, user, assistant].
	Role types.String `tfsdk:"role" tf:"optional"`
}

func (ChatMessage) GetComplexFieldTypes added in v1.61.0

func (a ChatMessage) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ChatMessage. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ChatMessage) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ChatMessage) SyncEffectiveFieldsDuringCreateOrUpdate(plan ChatMessage)

func (*ChatMessage) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ChatMessage) SyncEffectiveFieldsDuringRead(existingState ChatMessage)

func (ChatMessage) ToObjectValue added in v1.61.0

func (o ChatMessage) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ChatMessage only implements ToObjectValue() and Type().

func (ChatMessage) Type added in v1.61.0

func (o ChatMessage) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type CohereConfig

type CohereConfig struct {
	// This is an optional field to provide a customized base URL for the Cohere
	// API. If left unspecified, the standard Cohere base URL is used.
	CohereApiBase types.String `tfsdk:"cohere_api_base" tf:"optional"`
	// The Databricks secret key reference for a Cohere API key. If you prefer
	// to paste your API key directly, see `cohere_api_key_plaintext`. You must
	// provide an API key using one of the following fields: `cohere_api_key` or
	// `cohere_api_key_plaintext`.
	CohereApiKey types.String `tfsdk:"cohere_api_key" tf:"optional"`
	// The Cohere API key provided as a plaintext string. If you prefer to
	// reference your key using Databricks Secrets, see `cohere_api_key`. You
	// must provide an API key using one of the following fields:
	// `cohere_api_key` or `cohere_api_key_plaintext`.
	CohereApiKeyPlaintext types.String `tfsdk:"cohere_api_key_plaintext" tf:"optional"`
}

func (CohereConfig) GetComplexFieldTypes added in v1.61.0

func (a CohereConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in CohereConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*CohereConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CohereConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan CohereConfig)

func (*CohereConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CohereConfig) SyncEffectiveFieldsDuringRead(existingState CohereConfig)

func (CohereConfig) ToObjectValue added in v1.61.0

func (o CohereConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CohereConfig only implements ToObjectValue() and Type().

func (CohereConfig) Type added in v1.61.0

func (o CohereConfig) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type CreateServingEndpoint

type CreateServingEndpoint struct {
	// The AI Gateway configuration for the serving endpoint. NOTE: only
	// external model endpoints are supported as of now.
	AiGateway types.List `tfsdk:"ai_gateway" tf:"optional,object"`
	// The core config of the serving endpoint.
	Config types.List `tfsdk:"config" tf:"object"`
	// The name of the serving endpoint. This field is required and must be
	// unique across a Databricks workspace. An endpoint name can consist of
	// alphanumeric characters, dashes, and underscores.
	Name types.String `tfsdk:"name" tf:""`
	// Rate limits to be applied to the serving endpoint. NOTE: this field is
	// deprecated, please use AI Gateway to manage rate limits.
	RateLimits types.List `tfsdk:"rate_limits" tf:"optional"`
	// Enable route optimization for the serving endpoint.
	RouteOptimized types.Bool `tfsdk:"route_optimized" tf:"optional"`
	// Tags to be attached to the serving endpoint and automatically propagated
	// to billing logs.
	Tags types.List `tfsdk:"tags" tf:"optional"`
}

func (*CreateServingEndpoint) GetAiGateway added in v1.61.0

func (o *CreateServingEndpoint) GetAiGateway(ctx context.Context) (AiGatewayConfig, bool)

GetAiGateway returns the value of the AiGateway field in CreateServingEndpoint as a AiGatewayConfig value. If the field is unknown or null, the boolean return value is false.

func (CreateServingEndpoint) GetComplexFieldTypes added in v1.61.0

func (a CreateServingEndpoint) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateServingEndpoint. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*CreateServingEndpoint) GetConfig added in v1.61.0

GetConfig returns the value of the Config field in CreateServingEndpoint as a EndpointCoreConfigInput value. If the field is unknown or null, the boolean return value is false.

func (*CreateServingEndpoint) GetRateLimits added in v1.61.0

func (o *CreateServingEndpoint) GetRateLimits(ctx context.Context) ([]RateLimit, bool)

GetRateLimits returns the value of the RateLimits field in CreateServingEndpoint as a slice of RateLimit values. If the field is unknown or null, the boolean return value is false.

func (*CreateServingEndpoint) GetTags added in v1.61.0

func (o *CreateServingEndpoint) GetTags(ctx context.Context) ([]EndpointTag, bool)

GetTags returns the value of the Tags field in CreateServingEndpoint as a slice of EndpointTag values. If the field is unknown or null, the boolean return value is false.

func (*CreateServingEndpoint) SetAiGateway added in v1.61.0

func (o *CreateServingEndpoint) SetAiGateway(ctx context.Context, v AiGatewayConfig)

SetAiGateway sets the value of the AiGateway field in CreateServingEndpoint.

func (*CreateServingEndpoint) SetConfig added in v1.61.0

SetConfig sets the value of the Config field in CreateServingEndpoint.

func (*CreateServingEndpoint) SetRateLimits added in v1.61.0

func (o *CreateServingEndpoint) SetRateLimits(ctx context.Context, v []RateLimit)

SetRateLimits sets the value of the RateLimits field in CreateServingEndpoint.

func (*CreateServingEndpoint) SetTags added in v1.61.0

func (o *CreateServingEndpoint) SetTags(ctx context.Context, v []EndpointTag)

SetTags sets the value of the Tags field in CreateServingEndpoint.

func (*CreateServingEndpoint) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateServingEndpoint) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateServingEndpoint)

func (*CreateServingEndpoint) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateServingEndpoint) SyncEffectiveFieldsDuringRead(existingState CreateServingEndpoint)

func (CreateServingEndpoint) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CreateServingEndpoint only implements ToObjectValue() and Type().

func (CreateServingEndpoint) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DatabricksModelServingConfig

type DatabricksModelServingConfig struct {
	// The Databricks secret key reference for a Databricks API token that
	// corresponds to a user or service principal with Can Query access to the
	// model serving endpoint pointed to by this external model. If you prefer
	// to paste your API key directly, see `databricks_api_token_plaintext`. You
	// must provide an API key using one of the following fields:
	// `databricks_api_token` or `databricks_api_token_plaintext`.
	DatabricksApiToken types.String `tfsdk:"databricks_api_token" tf:"optional"`
	// The Databricks API token that corresponds to a user or service principal
	// with Can Query access to the model serving endpoint pointed to by this
	// external model provided as a plaintext string. If you prefer to reference
	// your key using Databricks Secrets, see `databricks_api_token`. You must
	// provide an API key using one of the following fields:
	// `databricks_api_token` or `databricks_api_token_plaintext`.
	DatabricksApiTokenPlaintext types.String `tfsdk:"databricks_api_token_plaintext" tf:"optional"`
	// The URL of the Databricks workspace containing the model serving endpoint
	// pointed to by this external model.
	DatabricksWorkspaceUrl types.String `tfsdk:"databricks_workspace_url" tf:""`
}

func (DatabricksModelServingConfig) GetComplexFieldTypes added in v1.61.0

func (a DatabricksModelServingConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DatabricksModelServingConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DatabricksModelServingConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DatabricksModelServingConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan DatabricksModelServingConfig)

func (*DatabricksModelServingConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DatabricksModelServingConfig) SyncEffectiveFieldsDuringRead(existingState DatabricksModelServingConfig)

func (DatabricksModelServingConfig) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DatabricksModelServingConfig only implements ToObjectValue() and Type().

func (DatabricksModelServingConfig) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DataframeSplitInput

type DataframeSplitInput struct {
	Columns types.List `tfsdk:"columns" tf:"optional"`

	Data types.List `tfsdk:"data" tf:"optional"`

	Index types.List `tfsdk:"index" tf:"optional"`
}

func (*DataframeSplitInput) GetColumns added in v1.61.0

func (o *DataframeSplitInput) GetColumns(ctx context.Context) ([]types.Object, bool)

GetColumns returns the value of the Columns field in DataframeSplitInput as a slice of types.Object values. If the field is unknown or null, the boolean return value is false.

func (DataframeSplitInput) GetComplexFieldTypes added in v1.61.0

func (a DataframeSplitInput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DataframeSplitInput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DataframeSplitInput) GetData added in v1.61.0

func (o *DataframeSplitInput) GetData(ctx context.Context) ([]types.Object, bool)

GetData returns the value of the Data field in DataframeSplitInput as a slice of types.Object values. If the field is unknown or null, the boolean return value is false.

func (*DataframeSplitInput) GetIndex added in v1.61.0

func (o *DataframeSplitInput) GetIndex(ctx context.Context) ([]types.Int64, bool)

GetIndex returns the value of the Index field in DataframeSplitInput as a slice of types.Int64 values. If the field is unknown or null, the boolean return value is false.

func (*DataframeSplitInput) SetColumns added in v1.61.0

func (o *DataframeSplitInput) SetColumns(ctx context.Context, v []types.Object)

SetColumns sets the value of the Columns field in DataframeSplitInput.

func (*DataframeSplitInput) SetData added in v1.61.0

func (o *DataframeSplitInput) SetData(ctx context.Context, v []types.Object)

SetData sets the value of the Data field in DataframeSplitInput.

func (*DataframeSplitInput) SetIndex added in v1.61.0

func (o *DataframeSplitInput) SetIndex(ctx context.Context, v []types.Int64)

SetIndex sets the value of the Index field in DataframeSplitInput.

func (*DataframeSplitInput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DataframeSplitInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan DataframeSplitInput)

func (*DataframeSplitInput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DataframeSplitInput) SyncEffectiveFieldsDuringRead(existingState DataframeSplitInput)

func (DataframeSplitInput) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DataframeSplitInput only implements ToObjectValue() and Type().

func (DataframeSplitInput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteResponse

type DeleteResponse struct {
}

func (DeleteResponse) GetComplexFieldTypes added in v1.61.0

func (a DeleteResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse)

func (*DeleteResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse)

func (DeleteResponse) ToObjectValue added in v1.61.0

func (o DeleteResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DeleteResponse only implements ToObjectValue() and Type().

func (DeleteResponse) Type added in v1.61.0

func (o DeleteResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type DeleteServingEndpointRequest

type DeleteServingEndpointRequest struct {
	// The name of the serving endpoint. This field is required.
	Name types.String `tfsdk:"-"`
}

Delete a serving endpoint

func (DeleteServingEndpointRequest) GetComplexFieldTypes added in v1.61.0

func (a DeleteServingEndpointRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteServingEndpointRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DeleteServingEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteServingEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteServingEndpointRequest)

func (*DeleteServingEndpointRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteServingEndpointRequest) SyncEffectiveFieldsDuringRead(existingState DeleteServingEndpointRequest)

func (DeleteServingEndpointRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DeleteServingEndpointRequest only implements ToObjectValue() and Type().

func (DeleteServingEndpointRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EmbeddingsV1ResponseEmbeddingElement

type EmbeddingsV1ResponseEmbeddingElement struct {
	Embedding types.List `tfsdk:"embedding" tf:"optional"`
	// The index of the embedding in the response.
	Index types.Int64 `tfsdk:"index" tf:"optional"`
	// This will always be 'embedding'.
	Object types.String `tfsdk:"object" tf:"optional"`
}

func (EmbeddingsV1ResponseEmbeddingElement) GetComplexFieldTypes added in v1.61.0

func (a EmbeddingsV1ResponseEmbeddingElement) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in EmbeddingsV1ResponseEmbeddingElement. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*EmbeddingsV1ResponseEmbeddingElement) GetEmbedding added in v1.61.0

GetEmbedding returns the value of the Embedding field in EmbeddingsV1ResponseEmbeddingElement as a slice of types.Float64 values. If the field is unknown or null, the boolean return value is false.

func (*EmbeddingsV1ResponseEmbeddingElement) SetEmbedding added in v1.61.0

SetEmbedding sets the value of the Embedding field in EmbeddingsV1ResponseEmbeddingElement.

func (*EmbeddingsV1ResponseEmbeddingElement) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EmbeddingsV1ResponseEmbeddingElement) SyncEffectiveFieldsDuringCreateOrUpdate(plan EmbeddingsV1ResponseEmbeddingElement)

func (*EmbeddingsV1ResponseEmbeddingElement) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EmbeddingsV1ResponseEmbeddingElement) SyncEffectiveFieldsDuringRead(existingState EmbeddingsV1ResponseEmbeddingElement)

func (EmbeddingsV1ResponseEmbeddingElement) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, EmbeddingsV1ResponseEmbeddingElement only implements ToObjectValue() and Type().

func (EmbeddingsV1ResponseEmbeddingElement) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EndpointCoreConfigInput

type EndpointCoreConfigInput struct {
	// Configuration for Inference Tables which automatically logs requests and
	// responses to Unity Catalog.
	AutoCaptureConfig types.List `tfsdk:"auto_capture_config" tf:"optional,object"`
	// The name of the serving endpoint to update. This field is required.
	Name types.String `tfsdk:"-"`
	// A list of served entities for the endpoint to serve. A serving endpoint
	// can have up to 15 served entities.
	ServedEntities types.List `tfsdk:"served_entities" tf:"optional"`
	// (Deprecated, use served_entities instead) A list of served models for the
	// endpoint to serve. A serving endpoint can have up to 15 served models.
	ServedModels types.List `tfsdk:"served_models" tf:"optional"`
	// The traffic config defining how invocations to the serving endpoint
	// should be routed.
	TrafficConfig types.List `tfsdk:"traffic_config" tf:"optional,object"`
}

func (*EndpointCoreConfigInput) GetAutoCaptureConfig added in v1.61.0

func (o *EndpointCoreConfigInput) GetAutoCaptureConfig(ctx context.Context) (AutoCaptureConfigInput, bool)

GetAutoCaptureConfig returns the value of the AutoCaptureConfig field in EndpointCoreConfigInput as a AutoCaptureConfigInput value. If the field is unknown or null, the boolean return value is false.

func (EndpointCoreConfigInput) GetComplexFieldTypes added in v1.61.0

func (a EndpointCoreConfigInput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointCoreConfigInput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*EndpointCoreConfigInput) GetServedEntities added in v1.61.0

func (o *EndpointCoreConfigInput) GetServedEntities(ctx context.Context) ([]ServedEntityInput, bool)

GetServedEntities returns the value of the ServedEntities field in EndpointCoreConfigInput as a slice of ServedEntityInput values. If the field is unknown or null, the boolean return value is false.

func (*EndpointCoreConfigInput) GetServedModels added in v1.61.0

func (o *EndpointCoreConfigInput) GetServedModels(ctx context.Context) ([]ServedModelInput, bool)

GetServedModels returns the value of the ServedModels field in EndpointCoreConfigInput as a slice of ServedModelInput values. If the field is unknown or null, the boolean return value is false.

func (*EndpointCoreConfigInput) GetTrafficConfig added in v1.61.0

func (o *EndpointCoreConfigInput) GetTrafficConfig(ctx context.Context) (TrafficConfig, bool)

GetTrafficConfig returns the value of the TrafficConfig field in EndpointCoreConfigInput as a TrafficConfig value. If the field is unknown or null, the boolean return value is false.

func (*EndpointCoreConfigInput) SetAutoCaptureConfig added in v1.61.0

func (o *EndpointCoreConfigInput) SetAutoCaptureConfig(ctx context.Context, v AutoCaptureConfigInput)

SetAutoCaptureConfig sets the value of the AutoCaptureConfig field in EndpointCoreConfigInput.

func (*EndpointCoreConfigInput) SetServedEntities added in v1.61.0

func (o *EndpointCoreConfigInput) SetServedEntities(ctx context.Context, v []ServedEntityInput)

SetServedEntities sets the value of the ServedEntities field in EndpointCoreConfigInput.

func (*EndpointCoreConfigInput) SetServedModels added in v1.61.0

func (o *EndpointCoreConfigInput) SetServedModels(ctx context.Context, v []ServedModelInput)

SetServedModels sets the value of the ServedModels field in EndpointCoreConfigInput.

func (*EndpointCoreConfigInput) SetTrafficConfig added in v1.61.0

func (o *EndpointCoreConfigInput) SetTrafficConfig(ctx context.Context, v TrafficConfig)

SetTrafficConfig sets the value of the TrafficConfig field in EndpointCoreConfigInput.

func (*EndpointCoreConfigInput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointCoreConfigInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointCoreConfigInput)

func (*EndpointCoreConfigInput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointCoreConfigInput) SyncEffectiveFieldsDuringRead(existingState EndpointCoreConfigInput)

func (EndpointCoreConfigInput) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, EndpointCoreConfigInput only implements ToObjectValue() and Type().

func (EndpointCoreConfigInput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EndpointCoreConfigOutput

type EndpointCoreConfigOutput struct {
	// Configuration for Inference Tables which automatically logs requests and
	// responses to Unity Catalog.
	AutoCaptureConfig types.List `tfsdk:"auto_capture_config" tf:"optional,object"`
	// The config version that the serving endpoint is currently serving.
	ConfigVersion types.Int64 `tfsdk:"config_version" tf:"optional"`
	// The list of served entities under the serving endpoint config.
	ServedEntities types.List `tfsdk:"served_entities" tf:"optional"`
	// (Deprecated, use served_entities instead) The list of served models under
	// the serving endpoint config.
	ServedModels types.List `tfsdk:"served_models" tf:"optional"`
	// The traffic configuration associated with the serving endpoint config.
	TrafficConfig types.List `tfsdk:"traffic_config" tf:"optional,object"`
}

func (*EndpointCoreConfigOutput) GetAutoCaptureConfig added in v1.61.0

func (o *EndpointCoreConfigOutput) GetAutoCaptureConfig(ctx context.Context) (AutoCaptureConfigOutput, bool)

GetAutoCaptureConfig returns the value of the AutoCaptureConfig field in EndpointCoreConfigOutput as a AutoCaptureConfigOutput value. If the field is unknown or null, the boolean return value is false.

func (EndpointCoreConfigOutput) GetComplexFieldTypes added in v1.61.0

func (a EndpointCoreConfigOutput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointCoreConfigOutput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*EndpointCoreConfigOutput) GetServedEntities added in v1.61.0

func (o *EndpointCoreConfigOutput) GetServedEntities(ctx context.Context) ([]ServedEntityOutput, bool)

GetServedEntities returns the value of the ServedEntities field in EndpointCoreConfigOutput as a slice of ServedEntityOutput values. If the field is unknown or null, the boolean return value is false.

func (*EndpointCoreConfigOutput) GetServedModels added in v1.61.0

func (o *EndpointCoreConfigOutput) GetServedModels(ctx context.Context) ([]ServedModelOutput, bool)

GetServedModels returns the value of the ServedModels field in EndpointCoreConfigOutput as a slice of ServedModelOutput values. If the field is unknown or null, the boolean return value is false.

func (*EndpointCoreConfigOutput) GetTrafficConfig added in v1.61.0

func (o *EndpointCoreConfigOutput) GetTrafficConfig(ctx context.Context) (TrafficConfig, bool)

GetTrafficConfig returns the value of the TrafficConfig field in EndpointCoreConfigOutput as a TrafficConfig value. If the field is unknown or null, the boolean return value is false.

func (*EndpointCoreConfigOutput) SetAutoCaptureConfig added in v1.61.0

func (o *EndpointCoreConfigOutput) SetAutoCaptureConfig(ctx context.Context, v AutoCaptureConfigOutput)

SetAutoCaptureConfig sets the value of the AutoCaptureConfig field in EndpointCoreConfigOutput.

func (*EndpointCoreConfigOutput) SetServedEntities added in v1.61.0

func (o *EndpointCoreConfigOutput) SetServedEntities(ctx context.Context, v []ServedEntityOutput)

SetServedEntities sets the value of the ServedEntities field in EndpointCoreConfigOutput.

func (*EndpointCoreConfigOutput) SetServedModels added in v1.61.0

func (o *EndpointCoreConfigOutput) SetServedModels(ctx context.Context, v []ServedModelOutput)

SetServedModels sets the value of the ServedModels field in EndpointCoreConfigOutput.

func (*EndpointCoreConfigOutput) SetTrafficConfig added in v1.61.0

func (o *EndpointCoreConfigOutput) SetTrafficConfig(ctx context.Context, v TrafficConfig)

SetTrafficConfig sets the value of the TrafficConfig field in EndpointCoreConfigOutput.

func (*EndpointCoreConfigOutput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointCoreConfigOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointCoreConfigOutput)

func (*EndpointCoreConfigOutput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointCoreConfigOutput) SyncEffectiveFieldsDuringRead(existingState EndpointCoreConfigOutput)

func (EndpointCoreConfigOutput) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, EndpointCoreConfigOutput only implements ToObjectValue() and Type().

func (EndpointCoreConfigOutput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EndpointCoreConfigSummary

type EndpointCoreConfigSummary struct {
	// The list of served entities under the serving endpoint config.
	ServedEntities types.List `tfsdk:"served_entities" tf:"optional"`
	// (Deprecated, use served_entities instead) The list of served models under
	// the serving endpoint config.
	ServedModels types.List `tfsdk:"served_models" tf:"optional"`
}

func (EndpointCoreConfigSummary) GetComplexFieldTypes added in v1.61.0

func (a EndpointCoreConfigSummary) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointCoreConfigSummary. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*EndpointCoreConfigSummary) GetServedEntities added in v1.61.0

func (o *EndpointCoreConfigSummary) GetServedEntities(ctx context.Context) ([]ServedEntitySpec, bool)

GetServedEntities returns the value of the ServedEntities field in EndpointCoreConfigSummary as a slice of ServedEntitySpec values. If the field is unknown or null, the boolean return value is false.

func (*EndpointCoreConfigSummary) GetServedModels added in v1.61.0

func (o *EndpointCoreConfigSummary) GetServedModels(ctx context.Context) ([]ServedModelSpec, bool)

GetServedModels returns the value of the ServedModels field in EndpointCoreConfigSummary as a slice of ServedModelSpec values. If the field is unknown or null, the boolean return value is false.

func (*EndpointCoreConfigSummary) SetServedEntities added in v1.61.0

func (o *EndpointCoreConfigSummary) SetServedEntities(ctx context.Context, v []ServedEntitySpec)

SetServedEntities sets the value of the ServedEntities field in EndpointCoreConfigSummary.

func (*EndpointCoreConfigSummary) SetServedModels added in v1.61.0

func (o *EndpointCoreConfigSummary) SetServedModels(ctx context.Context, v []ServedModelSpec)

SetServedModels sets the value of the ServedModels field in EndpointCoreConfigSummary.

func (*EndpointCoreConfigSummary) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointCoreConfigSummary) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointCoreConfigSummary)

func (*EndpointCoreConfigSummary) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointCoreConfigSummary) SyncEffectiveFieldsDuringRead(existingState EndpointCoreConfigSummary)

func (EndpointCoreConfigSummary) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, EndpointCoreConfigSummary only implements ToObjectValue() and Type().

func (EndpointCoreConfigSummary) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EndpointPendingConfig

type EndpointPendingConfig struct {
	// Configuration for Inference Tables which automatically logs requests and
	// responses to Unity Catalog.
	AutoCaptureConfig types.List `tfsdk:"auto_capture_config" tf:"optional,object"`
	// The config version that the serving endpoint is currently serving.
	ConfigVersion types.Int64 `tfsdk:"config_version" tf:"optional"`
	// The list of served entities belonging to the last issued update to the
	// serving endpoint.
	ServedEntities types.List `tfsdk:"served_entities" tf:"optional"`
	// (Deprecated, use served_entities instead) The list of served models
	// belonging to the last issued update to the serving endpoint.
	ServedModels types.List `tfsdk:"served_models" tf:"optional"`
	// The timestamp when the update to the pending config started.
	StartTime types.Int64 `tfsdk:"start_time" tf:"optional"`
	// The traffic config defining how invocations to the serving endpoint
	// should be routed.
	TrafficConfig types.List `tfsdk:"traffic_config" tf:"optional,object"`
}

func (*EndpointPendingConfig) GetAutoCaptureConfig added in v1.61.0

func (o *EndpointPendingConfig) GetAutoCaptureConfig(ctx context.Context) (AutoCaptureConfigOutput, bool)

GetAutoCaptureConfig returns the value of the AutoCaptureConfig field in EndpointPendingConfig as a AutoCaptureConfigOutput value. If the field is unknown or null, the boolean return value is false.

func (EndpointPendingConfig) GetComplexFieldTypes added in v1.61.0

func (a EndpointPendingConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointPendingConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*EndpointPendingConfig) GetServedEntities added in v1.61.0

func (o *EndpointPendingConfig) GetServedEntities(ctx context.Context) ([]ServedEntityOutput, bool)

GetServedEntities returns the value of the ServedEntities field in EndpointPendingConfig as a slice of ServedEntityOutput values. If the field is unknown or null, the boolean return value is false.

func (*EndpointPendingConfig) GetServedModels added in v1.61.0

func (o *EndpointPendingConfig) GetServedModels(ctx context.Context) ([]ServedModelOutput, bool)

GetServedModels returns the value of the ServedModels field in EndpointPendingConfig as a slice of ServedModelOutput values. If the field is unknown or null, the boolean return value is false.

func (*EndpointPendingConfig) GetTrafficConfig added in v1.61.0

func (o *EndpointPendingConfig) GetTrafficConfig(ctx context.Context) (TrafficConfig, bool)

GetTrafficConfig returns the value of the TrafficConfig field in EndpointPendingConfig as a TrafficConfig value. If the field is unknown or null, the boolean return value is false.

func (*EndpointPendingConfig) SetAutoCaptureConfig added in v1.61.0

func (o *EndpointPendingConfig) SetAutoCaptureConfig(ctx context.Context, v AutoCaptureConfigOutput)

SetAutoCaptureConfig sets the value of the AutoCaptureConfig field in EndpointPendingConfig.

func (*EndpointPendingConfig) SetServedEntities added in v1.61.0

func (o *EndpointPendingConfig) SetServedEntities(ctx context.Context, v []ServedEntityOutput)

SetServedEntities sets the value of the ServedEntities field in EndpointPendingConfig.

func (*EndpointPendingConfig) SetServedModels added in v1.61.0

func (o *EndpointPendingConfig) SetServedModels(ctx context.Context, v []ServedModelOutput)

SetServedModels sets the value of the ServedModels field in EndpointPendingConfig.

func (*EndpointPendingConfig) SetTrafficConfig added in v1.61.0

func (o *EndpointPendingConfig) SetTrafficConfig(ctx context.Context, v TrafficConfig)

SetTrafficConfig sets the value of the TrafficConfig field in EndpointPendingConfig.

func (*EndpointPendingConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointPendingConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointPendingConfig)

func (*EndpointPendingConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointPendingConfig) SyncEffectiveFieldsDuringRead(existingState EndpointPendingConfig)

func (EndpointPendingConfig) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, EndpointPendingConfig only implements ToObjectValue() and Type().

func (EndpointPendingConfig) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EndpointState

type EndpointState struct {
	// The state of an endpoint's config update. This informs the user if the
	// pending_config is in progress, if the update failed, or if there is no
	// update in progress. Note that if the endpoint's config_update state value
	// is IN_PROGRESS, another update can not be made until the update completes
	// or fails."
	ConfigUpdate types.String `tfsdk:"config_update" tf:"optional"`
	// The state of an endpoint, indicating whether or not the endpoint is
	// queryable. An endpoint is READY if all of the served entities in its
	// active configuration are ready. If any of the actively served entities
	// are in a non-ready state, the endpoint state will be NOT_READY.
	Ready types.String `tfsdk:"ready" tf:"optional"`
}

func (EndpointState) GetComplexFieldTypes added in v1.61.0

func (a EndpointState) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointState. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*EndpointState) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointState) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointState)

func (*EndpointState) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointState) SyncEffectiveFieldsDuringRead(existingState EndpointState)

func (EndpointState) ToObjectValue added in v1.61.0

func (o EndpointState) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, EndpointState only implements ToObjectValue() and Type().

func (EndpointState) Type added in v1.61.0

func (o EndpointState) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type EndpointTag

type EndpointTag struct {
	// Key field for a serving endpoint tag.
	Key types.String `tfsdk:"key" tf:""`
	// Optional value field for a serving endpoint tag.
	Value types.String `tfsdk:"value" tf:"optional"`
}

func (EndpointTag) GetComplexFieldTypes added in v1.61.0

func (a EndpointTag) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointTag. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*EndpointTag) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointTag) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointTag)

func (*EndpointTag) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointTag) SyncEffectiveFieldsDuringRead(existingState EndpointTag)

func (EndpointTag) ToObjectValue added in v1.61.0

func (o EndpointTag) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, EndpointTag only implements ToObjectValue() and Type().

func (EndpointTag) Type added in v1.61.0

func (o EndpointTag) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ExportMetricsRequest

type ExportMetricsRequest struct {
	// The name of the serving endpoint to retrieve metrics for. This field is
	// required.
	Name types.String `tfsdk:"-"`
}

Get metrics of a serving endpoint

func (ExportMetricsRequest) GetComplexFieldTypes added in v1.61.0

func (a ExportMetricsRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportMetricsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ExportMetricsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ExportMetricsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportMetricsRequest)

func (*ExportMetricsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ExportMetricsRequest) SyncEffectiveFieldsDuringRead(existingState ExportMetricsRequest)

func (ExportMetricsRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ExportMetricsRequest only implements ToObjectValue() and Type().

func (ExportMetricsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ExportMetricsResponse

type ExportMetricsResponse struct {
	Contents types.Object `tfsdk:"-"`
}

func (ExportMetricsResponse) GetComplexFieldTypes added in v1.61.0

func (a ExportMetricsResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ExportMetricsResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ExportMetricsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ExportMetricsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExportMetricsResponse)

func (*ExportMetricsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ExportMetricsResponse) SyncEffectiveFieldsDuringRead(existingState ExportMetricsResponse)

func (ExportMetricsResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ExportMetricsResponse only implements ToObjectValue() and Type().

func (ExportMetricsResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ExternalModel

type ExternalModel struct {
	// AI21Labs Config. Only required if the provider is 'ai21labs'.
	Ai21labsConfig types.List `tfsdk:"ai21labs_config" tf:"optional,object"`
	// Amazon Bedrock Config. Only required if the provider is 'amazon-bedrock'.
	AmazonBedrockConfig types.List `tfsdk:"amazon_bedrock_config" tf:"optional,object"`
	// Anthropic Config. Only required if the provider is 'anthropic'.
	AnthropicConfig types.List `tfsdk:"anthropic_config" tf:"optional,object"`
	// Cohere Config. Only required if the provider is 'cohere'.
	CohereConfig types.List `tfsdk:"cohere_config" tf:"optional,object"`
	// Databricks Model Serving Config. Only required if the provider is
	// 'databricks-model-serving'.
	DatabricksModelServingConfig types.List `tfsdk:"databricks_model_serving_config" tf:"optional,object"`
	// Google Cloud Vertex AI Config. Only required if the provider is
	// 'google-cloud-vertex-ai'.
	GoogleCloudVertexAiConfig types.List `tfsdk:"google_cloud_vertex_ai_config" tf:"optional,object"`
	// The name of the external model.
	Name types.String `tfsdk:"name" tf:""`
	// OpenAI Config. Only required if the provider is 'openai'.
	OpenaiConfig types.List `tfsdk:"openai_config" tf:"optional,object"`
	// PaLM Config. Only required if the provider is 'palm'.
	PalmConfig types.List `tfsdk:"palm_config" tf:"optional,object"`
	// The name of the provider for the external model. Currently, the supported
	// providers are 'ai21labs', 'anthropic', 'amazon-bedrock', 'cohere',
	// 'databricks-model-serving', 'google-cloud-vertex-ai', 'openai', and
	// 'palm'.",
	Provider types.String `tfsdk:"provider" tf:""`
	// The task type of the external model.
	Task types.String `tfsdk:"task" tf:""`
}

func (*ExternalModel) GetAi21labsConfig added in v1.61.0

func (o *ExternalModel) GetAi21labsConfig(ctx context.Context) (Ai21LabsConfig, bool)

GetAi21labsConfig returns the value of the Ai21labsConfig field in ExternalModel as a Ai21LabsConfig value. If the field is unknown or null, the boolean return value is false.

func (*ExternalModel) GetAmazonBedrockConfig added in v1.61.0

func (o *ExternalModel) GetAmazonBedrockConfig(ctx context.Context) (AmazonBedrockConfig, bool)

GetAmazonBedrockConfig returns the value of the AmazonBedrockConfig field in ExternalModel as a AmazonBedrockConfig value. If the field is unknown or null, the boolean return value is false.

func (*ExternalModel) GetAnthropicConfig added in v1.61.0

func (o *ExternalModel) GetAnthropicConfig(ctx context.Context) (AnthropicConfig, bool)

GetAnthropicConfig returns the value of the AnthropicConfig field in ExternalModel as a AnthropicConfig value. If the field is unknown or null, the boolean return value is false.

func (*ExternalModel) GetCohereConfig added in v1.61.0

func (o *ExternalModel) GetCohereConfig(ctx context.Context) (CohereConfig, bool)

GetCohereConfig returns the value of the CohereConfig field in ExternalModel as a CohereConfig value. If the field is unknown or null, the boolean return value is false.

func (ExternalModel) GetComplexFieldTypes added in v1.61.0

func (a ExternalModel) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalModel. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ExternalModel) GetDatabricksModelServingConfig added in v1.61.0

func (o *ExternalModel) GetDatabricksModelServingConfig(ctx context.Context) (DatabricksModelServingConfig, bool)

GetDatabricksModelServingConfig returns the value of the DatabricksModelServingConfig field in ExternalModel as a DatabricksModelServingConfig value. If the field is unknown or null, the boolean return value is false.

func (*ExternalModel) GetGoogleCloudVertexAiConfig added in v1.61.0

func (o *ExternalModel) GetGoogleCloudVertexAiConfig(ctx context.Context) (GoogleCloudVertexAiConfig, bool)

GetGoogleCloudVertexAiConfig returns the value of the GoogleCloudVertexAiConfig field in ExternalModel as a GoogleCloudVertexAiConfig value. If the field is unknown or null, the boolean return value is false.

func (*ExternalModel) GetOpenaiConfig added in v1.61.0

func (o *ExternalModel) GetOpenaiConfig(ctx context.Context) (OpenAiConfig, bool)

GetOpenaiConfig returns the value of the OpenaiConfig field in ExternalModel as a OpenAiConfig value. If the field is unknown or null, the boolean return value is false.

func (*ExternalModel) GetPalmConfig added in v1.61.0

func (o *ExternalModel) GetPalmConfig(ctx context.Context) (PaLmConfig, bool)

GetPalmConfig returns the value of the PalmConfig field in ExternalModel as a PaLmConfig value. If the field is unknown or null, the boolean return value is false.

func (*ExternalModel) SetAi21labsConfig added in v1.61.0

func (o *ExternalModel) SetAi21labsConfig(ctx context.Context, v Ai21LabsConfig)

SetAi21labsConfig sets the value of the Ai21labsConfig field in ExternalModel.

func (*ExternalModel) SetAmazonBedrockConfig added in v1.61.0

func (o *ExternalModel) SetAmazonBedrockConfig(ctx context.Context, v AmazonBedrockConfig)

SetAmazonBedrockConfig sets the value of the AmazonBedrockConfig field in ExternalModel.

func (*ExternalModel) SetAnthropicConfig added in v1.61.0

func (o *ExternalModel) SetAnthropicConfig(ctx context.Context, v AnthropicConfig)

SetAnthropicConfig sets the value of the AnthropicConfig field in ExternalModel.

func (*ExternalModel) SetCohereConfig added in v1.61.0

func (o *ExternalModel) SetCohereConfig(ctx context.Context, v CohereConfig)

SetCohereConfig sets the value of the CohereConfig field in ExternalModel.

func (*ExternalModel) SetDatabricksModelServingConfig added in v1.61.0

func (o *ExternalModel) SetDatabricksModelServingConfig(ctx context.Context, v DatabricksModelServingConfig)

SetDatabricksModelServingConfig sets the value of the DatabricksModelServingConfig field in ExternalModel.

func (*ExternalModel) SetGoogleCloudVertexAiConfig added in v1.61.0

func (o *ExternalModel) SetGoogleCloudVertexAiConfig(ctx context.Context, v GoogleCloudVertexAiConfig)

SetGoogleCloudVertexAiConfig sets the value of the GoogleCloudVertexAiConfig field in ExternalModel.

func (*ExternalModel) SetOpenaiConfig added in v1.61.0

func (o *ExternalModel) SetOpenaiConfig(ctx context.Context, v OpenAiConfig)

SetOpenaiConfig sets the value of the OpenaiConfig field in ExternalModel.

func (*ExternalModel) SetPalmConfig added in v1.61.0

func (o *ExternalModel) SetPalmConfig(ctx context.Context, v PaLmConfig)

SetPalmConfig sets the value of the PalmConfig field in ExternalModel.

func (*ExternalModel) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ExternalModel) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExternalModel)

func (*ExternalModel) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ExternalModel) SyncEffectiveFieldsDuringRead(existingState ExternalModel)

func (ExternalModel) ToObjectValue added in v1.61.0

func (o ExternalModel) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ExternalModel only implements ToObjectValue() and Type().

func (ExternalModel) Type added in v1.61.0

func (o ExternalModel) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ExternalModelUsageElement

type ExternalModelUsageElement struct {
	// The number of tokens in the chat/completions response.
	CompletionTokens types.Int64 `tfsdk:"completion_tokens" tf:"optional"`
	// The number of tokens in the prompt.
	PromptTokens types.Int64 `tfsdk:"prompt_tokens" tf:"optional"`
	// The total number of tokens in the prompt and response.
	TotalTokens types.Int64 `tfsdk:"total_tokens" tf:"optional"`
}

func (ExternalModelUsageElement) GetComplexFieldTypes added in v1.61.0

func (a ExternalModelUsageElement) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalModelUsageElement. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ExternalModelUsageElement) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ExternalModelUsageElement) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExternalModelUsageElement)

func (*ExternalModelUsageElement) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ExternalModelUsageElement) SyncEffectiveFieldsDuringRead(existingState ExternalModelUsageElement)

func (ExternalModelUsageElement) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ExternalModelUsageElement only implements ToObjectValue() and Type().

func (ExternalModelUsageElement) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type FoundationModel

type FoundationModel struct {
	// The description of the foundation model.
	Description types.String `tfsdk:"description" tf:"optional"`
	// The display name of the foundation model.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// The URL to the documentation of the foundation model.
	Docs types.String `tfsdk:"docs" tf:"optional"`
	// The name of the foundation model.
	Name types.String `tfsdk:"name" tf:"optional"`
}

func (FoundationModel) GetComplexFieldTypes added in v1.61.0

func (a FoundationModel) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in FoundationModel. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*FoundationModel) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *FoundationModel) SyncEffectiveFieldsDuringCreateOrUpdate(plan FoundationModel)

func (*FoundationModel) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *FoundationModel) SyncEffectiveFieldsDuringRead(existingState FoundationModel)

func (FoundationModel) ToObjectValue added in v1.61.0

func (o FoundationModel) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, FoundationModel only implements ToObjectValue() and Type().

func (FoundationModel) Type added in v1.61.0

func (o FoundationModel) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type GetOpenApiRequest

type GetOpenApiRequest struct {
	// The name of the serving endpoint that the served model belongs to. This
	// field is required.
	Name types.String `tfsdk:"-"`
}

Get the schema for a serving endpoint

func (GetOpenApiRequest) GetComplexFieldTypes added in v1.61.0

func (a GetOpenApiRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetOpenApiRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetOpenApiRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetOpenApiRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetOpenApiRequest)

func (*GetOpenApiRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetOpenApiRequest) SyncEffectiveFieldsDuringRead(existingState GetOpenApiRequest)

func (GetOpenApiRequest) ToObjectValue added in v1.61.0

func (o GetOpenApiRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetOpenApiRequest only implements ToObjectValue() and Type().

func (GetOpenApiRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetOpenApiResponse

type GetOpenApiResponse struct {
}

The response is an OpenAPI spec in JSON format that typically includes fields like openapi, info, servers and paths, etc.

func (GetOpenApiResponse) GetComplexFieldTypes added in v1.61.0

func (a GetOpenApiResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetOpenApiResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetOpenApiResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetOpenApiResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetOpenApiResponse)

func (*GetOpenApiResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetOpenApiResponse) SyncEffectiveFieldsDuringRead(existingState GetOpenApiResponse)

func (GetOpenApiResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetOpenApiResponse only implements ToObjectValue() and Type().

func (GetOpenApiResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetServingEndpointPermissionLevelsRequest

type GetServingEndpointPermissionLevelsRequest struct {
	// The serving endpoint for which to get or manage permissions.
	ServingEndpointId types.String `tfsdk:"-"`
}

Get serving endpoint permission levels

func (GetServingEndpointPermissionLevelsRequest) GetComplexFieldTypes added in v1.61.0

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointPermissionLevelsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetServingEndpointPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetServingEndpointPermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointPermissionLevelsRequest)

func (*GetServingEndpointPermissionLevelsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetServingEndpointPermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointPermissionLevelsRequest)

func (GetServingEndpointPermissionLevelsRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetServingEndpointPermissionLevelsRequest only implements ToObjectValue() and Type().

func (GetServingEndpointPermissionLevelsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetServingEndpointPermissionLevelsResponse

type GetServingEndpointPermissionLevelsResponse struct {
	// Specific permission levels
	PermissionLevels types.List `tfsdk:"permission_levels" tf:"optional"`
}

func (GetServingEndpointPermissionLevelsResponse) GetComplexFieldTypes added in v1.61.0

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointPermissionLevelsResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetServingEndpointPermissionLevelsResponse) GetPermissionLevels added in v1.61.0

GetPermissionLevels returns the value of the PermissionLevels field in GetServingEndpointPermissionLevelsResponse as a slice of ServingEndpointPermissionsDescription values. If the field is unknown or null, the boolean return value is false.

func (*GetServingEndpointPermissionLevelsResponse) SetPermissionLevels added in v1.61.0

SetPermissionLevels sets the value of the PermissionLevels field in GetServingEndpointPermissionLevelsResponse.

func (*GetServingEndpointPermissionLevelsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetServingEndpointPermissionLevelsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointPermissionLevelsResponse)

func (*GetServingEndpointPermissionLevelsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetServingEndpointPermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointPermissionLevelsResponse)

func (GetServingEndpointPermissionLevelsResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetServingEndpointPermissionLevelsResponse only implements ToObjectValue() and Type().

func (GetServingEndpointPermissionLevelsResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetServingEndpointPermissionsRequest

type GetServingEndpointPermissionsRequest struct {
	// The serving endpoint for which to get or manage permissions.
	ServingEndpointId types.String `tfsdk:"-"`
}

Get serving endpoint permissions

func (GetServingEndpointPermissionsRequest) GetComplexFieldTypes added in v1.61.0

func (a GetServingEndpointPermissionsRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointPermissionsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointPermissionsRequest)

func (*GetServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointPermissionsRequest)

func (GetServingEndpointPermissionsRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetServingEndpointPermissionsRequest only implements ToObjectValue() and Type().

func (GetServingEndpointPermissionsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetServingEndpointRequest

type GetServingEndpointRequest struct {
	// The name of the serving endpoint. This field is required.
	Name types.String `tfsdk:"-"`
}

Get a single serving endpoint

func (GetServingEndpointRequest) GetComplexFieldTypes added in v1.61.0

func (a GetServingEndpointRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetServingEndpointRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetServingEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetServingEndpointRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetServingEndpointRequest)

func (*GetServingEndpointRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetServingEndpointRequest) SyncEffectiveFieldsDuringRead(existingState GetServingEndpointRequest)

func (GetServingEndpointRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetServingEndpointRequest only implements ToObjectValue() and Type().

func (GetServingEndpointRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GoogleCloudVertexAiConfig

type GoogleCloudVertexAiConfig struct {
	// The Databricks secret key reference for a private key for the service
	// account which has access to the Google Cloud Vertex AI Service. See [Best
	// practices for managing service account keys]. If you prefer to paste your
	// API key directly, see `private_key_plaintext`. You must provide an API
	// key using one of the following fields: `private_key` or
	// `private_key_plaintext`
	//
	// [Best practices for managing service account keys]: https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys
	PrivateKey types.String `tfsdk:"private_key" tf:"optional"`
	// The private key for the service account which has access to the Google
	// Cloud Vertex AI Service provided as a plaintext secret. See [Best
	// practices for managing service account keys]. If you prefer to reference
	// your key using Databricks Secrets, see `private_key`. You must provide an
	// API key using one of the following fields: `private_key` or
	// `private_key_plaintext`.
	//
	// [Best practices for managing service account keys]: https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys
	PrivateKeyPlaintext types.String `tfsdk:"private_key_plaintext" tf:"optional"`
	// This is the Google Cloud project id that the service account is
	// associated with.
	ProjectId types.String `tfsdk:"project_id" tf:"optional"`
	// This is the region for the Google Cloud Vertex AI Service. See [supported
	// regions] for more details. Some models are only available in specific
	// regions.
	//
	// [supported regions]: https://cloud.google.com/vertex-ai/docs/general/locations
	Region types.String `tfsdk:"region" tf:"optional"`
}

func (GoogleCloudVertexAiConfig) GetComplexFieldTypes added in v1.61.0

func (a GoogleCloudVertexAiConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GoogleCloudVertexAiConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GoogleCloudVertexAiConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GoogleCloudVertexAiConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan GoogleCloudVertexAiConfig)

func (*GoogleCloudVertexAiConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GoogleCloudVertexAiConfig) SyncEffectiveFieldsDuringRead(existingState GoogleCloudVertexAiConfig)

func (GoogleCloudVertexAiConfig) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GoogleCloudVertexAiConfig only implements ToObjectValue() and Type().

func (GoogleCloudVertexAiConfig) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListEndpointsResponse

type ListEndpointsResponse struct {
	// The list of endpoints.
	Endpoints types.List `tfsdk:"endpoints" tf:"optional"`
}

func (ListEndpointsResponse) GetComplexFieldTypes added in v1.61.0

func (a ListEndpointsResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListEndpointsResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ListEndpointsResponse) GetEndpoints added in v1.61.0

func (o *ListEndpointsResponse) GetEndpoints(ctx context.Context) ([]ServingEndpoint, bool)

GetEndpoints returns the value of the Endpoints field in ListEndpointsResponse as a slice of ServingEndpoint values. If the field is unknown or null, the boolean return value is false.

func (*ListEndpointsResponse) SetEndpoints added in v1.61.0

func (o *ListEndpointsResponse) SetEndpoints(ctx context.Context, v []ServingEndpoint)

SetEndpoints sets the value of the Endpoints field in ListEndpointsResponse.

func (*ListEndpointsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListEndpointsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListEndpointsResponse)

func (*ListEndpointsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListEndpointsResponse) SyncEffectiveFieldsDuringRead(existingState ListEndpointsResponse)

func (ListEndpointsResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ListEndpointsResponse only implements ToObjectValue() and Type().

func (ListEndpointsResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type LogsRequest

type LogsRequest struct {
	// The name of the serving endpoint that the served model belongs to. This
	// field is required.
	Name types.String `tfsdk:"-"`
	// The name of the served model that logs will be retrieved for. This field
	// is required.
	ServedModelName types.String `tfsdk:"-"`
}

Get the latest logs for a served model

func (LogsRequest) GetComplexFieldTypes added in v1.61.0

func (a LogsRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in LogsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*LogsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *LogsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan LogsRequest)

func (*LogsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *LogsRequest) SyncEffectiveFieldsDuringRead(existingState LogsRequest)

func (LogsRequest) ToObjectValue added in v1.61.0

func (o LogsRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, LogsRequest only implements ToObjectValue() and Type().

func (LogsRequest) Type added in v1.61.0

func (o LogsRequest) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ModelDataPlaneInfo

type ModelDataPlaneInfo struct {
	// Information required to query DataPlane API 'query' endpoint.
	QueryInfo types.List `tfsdk:"query_info" tf:"optional,object"`
}

func (ModelDataPlaneInfo) GetComplexFieldTypes added in v1.61.0

func (a ModelDataPlaneInfo) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ModelDataPlaneInfo. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ModelDataPlaneInfo) GetQueryInfo added in v1.61.0

GetQueryInfo returns the value of the QueryInfo field in ModelDataPlaneInfo as a oauth2_tf.DataPlaneInfo value. If the field is unknown or null, the boolean return value is false.

func (*ModelDataPlaneInfo) SetQueryInfo added in v1.61.0

func (o *ModelDataPlaneInfo) SetQueryInfo(ctx context.Context, v oauth2_tf.DataPlaneInfo)

SetQueryInfo sets the value of the QueryInfo field in ModelDataPlaneInfo.

func (*ModelDataPlaneInfo) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ModelDataPlaneInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ModelDataPlaneInfo)

func (*ModelDataPlaneInfo) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ModelDataPlaneInfo) SyncEffectiveFieldsDuringRead(existingState ModelDataPlaneInfo)

func (ModelDataPlaneInfo) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ModelDataPlaneInfo only implements ToObjectValue() and Type().

func (ModelDataPlaneInfo) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type OpenAiConfig

type OpenAiConfig struct {
	// This field is only required for Azure AD OpenAI and is the Microsoft
	// Entra Client ID.
	MicrosoftEntraClientId types.String `tfsdk:"microsoft_entra_client_id" tf:"optional"`
	// The Databricks secret key reference for a client secret used for
	// Microsoft Entra ID authentication. If you prefer to paste your client
	// secret directly, see `microsoft_entra_client_secret_plaintext`. You must
	// provide an API key using one of the following fields:
	// `microsoft_entra_client_secret` or
	// `microsoft_entra_client_secret_plaintext`.
	MicrosoftEntraClientSecret types.String `tfsdk:"microsoft_entra_client_secret" tf:"optional"`
	// The client secret used for Microsoft Entra ID authentication provided as
	// a plaintext string. If you prefer to reference your key using Databricks
	// Secrets, see `microsoft_entra_client_secret`. You must provide an API key
	// using one of the following fields: `microsoft_entra_client_secret` or
	// `microsoft_entra_client_secret_plaintext`.
	MicrosoftEntraClientSecretPlaintext types.String `tfsdk:"microsoft_entra_client_secret_plaintext" tf:"optional"`
	// This field is only required for Azure AD OpenAI and is the Microsoft
	// Entra Tenant ID.
	MicrosoftEntraTenantId types.String `tfsdk:"microsoft_entra_tenant_id" tf:"optional"`
	// This is a field to provide a customized base URl for the OpenAI API. For
	// Azure OpenAI, this field is required, and is the base URL for the Azure
	// OpenAI API service provided by Azure. For other OpenAI API types, this
	// field is optional, and if left unspecified, the standard OpenAI base URL
	// is used.
	OpenaiApiBase types.String `tfsdk:"openai_api_base" tf:"optional"`
	// The Databricks secret key reference for an OpenAI API key using the
	// OpenAI or Azure service. If you prefer to paste your API key directly,
	// see `openai_api_key_plaintext`. You must provide an API key using one of
	// the following fields: `openai_api_key` or `openai_api_key_plaintext`.
	OpenaiApiKey types.String `tfsdk:"openai_api_key" tf:"optional"`
	// The OpenAI API key using the OpenAI or Azure service provided as a
	// plaintext string. If you prefer to reference your key using Databricks
	// Secrets, see `openai_api_key`. You must provide an API key using one of
	// the following fields: `openai_api_key` or `openai_api_key_plaintext`.
	OpenaiApiKeyPlaintext types.String `tfsdk:"openai_api_key_plaintext" tf:"optional"`
	// This is an optional field to specify the type of OpenAI API to use. For
	// Azure OpenAI, this field is required, and adjust this parameter to
	// represent the preferred security access validation protocol. For access
	// token validation, use azure. For authentication using Azure Active
	// Directory (Azure AD) use, azuread.
	OpenaiApiType types.String `tfsdk:"openai_api_type" tf:"optional"`
	// This is an optional field to specify the OpenAI API version. For Azure
	// OpenAI, this field is required, and is the version of the Azure OpenAI
	// service to utilize, specified by a date.
	OpenaiApiVersion types.String `tfsdk:"openai_api_version" tf:"optional"`
	// This field is only required for Azure OpenAI and is the name of the
	// deployment resource for the Azure OpenAI service.
	OpenaiDeploymentName types.String `tfsdk:"openai_deployment_name" tf:"optional"`
	// This is an optional field to specify the organization in OpenAI or Azure
	// OpenAI.
	OpenaiOrganization types.String `tfsdk:"openai_organization" tf:"optional"`
}

func (OpenAiConfig) GetComplexFieldTypes added in v1.61.0

func (a OpenAiConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in OpenAiConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*OpenAiConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *OpenAiConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan OpenAiConfig)

func (*OpenAiConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *OpenAiConfig) SyncEffectiveFieldsDuringRead(existingState OpenAiConfig)

func (OpenAiConfig) ToObjectValue added in v1.61.0

func (o OpenAiConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, OpenAiConfig only implements ToObjectValue() and Type().

func (OpenAiConfig) Type added in v1.61.0

func (o OpenAiConfig) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type PaLmConfig

type PaLmConfig struct {
	// The Databricks secret key reference for a PaLM API key. If you prefer to
	// paste your API key directly, see `palm_api_key_plaintext`. You must
	// provide an API key using one of the following fields: `palm_api_key` or
	// `palm_api_key_plaintext`.
	PalmApiKey types.String `tfsdk:"palm_api_key" tf:"optional"`
	// The PaLM API key provided as a plaintext string. If you prefer to
	// reference your key using Databricks Secrets, see `palm_api_key`. You must
	// provide an API key using one of the following fields: `palm_api_key` or
	// `palm_api_key_plaintext`.
	PalmApiKeyPlaintext types.String `tfsdk:"palm_api_key_plaintext" tf:"optional"`
}

func (PaLmConfig) GetComplexFieldTypes added in v1.61.0

func (a PaLmConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in PaLmConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*PaLmConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *PaLmConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan PaLmConfig)

func (*PaLmConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *PaLmConfig) SyncEffectiveFieldsDuringRead(existingState PaLmConfig)

func (PaLmConfig) ToObjectValue added in v1.61.0

func (o PaLmConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, PaLmConfig only implements ToObjectValue() and Type().

func (PaLmConfig) Type added in v1.61.0

func (o PaLmConfig) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type PatchServingEndpointTags

type PatchServingEndpointTags struct {
	// List of endpoint tags to add
	AddTags types.List `tfsdk:"add_tags" tf:"optional"`
	// List of tag keys to delete
	DeleteTags types.List `tfsdk:"delete_tags" tf:"optional"`
	// The name of the serving endpoint who's tags to patch. This field is
	// required.
	Name types.String `tfsdk:"-"`
}

func (*PatchServingEndpointTags) GetAddTags added in v1.61.0

func (o *PatchServingEndpointTags) GetAddTags(ctx context.Context) ([]EndpointTag, bool)

GetAddTags returns the value of the AddTags field in PatchServingEndpointTags as a slice of EndpointTag values. If the field is unknown or null, the boolean return value is false.

func (PatchServingEndpointTags) GetComplexFieldTypes added in v1.61.0

func (a PatchServingEndpointTags) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in PatchServingEndpointTags. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*PatchServingEndpointTags) GetDeleteTags added in v1.61.0

func (o *PatchServingEndpointTags) GetDeleteTags(ctx context.Context) ([]types.String, bool)

GetDeleteTags returns the value of the DeleteTags field in PatchServingEndpointTags as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*PatchServingEndpointTags) SetAddTags added in v1.61.0

func (o *PatchServingEndpointTags) SetAddTags(ctx context.Context, v []EndpointTag)

SetAddTags sets the value of the AddTags field in PatchServingEndpointTags.

func (*PatchServingEndpointTags) SetDeleteTags added in v1.61.0

func (o *PatchServingEndpointTags) SetDeleteTags(ctx context.Context, v []types.String)

SetDeleteTags sets the value of the DeleteTags field in PatchServingEndpointTags.

func (*PatchServingEndpointTags) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *PatchServingEndpointTags) SyncEffectiveFieldsDuringCreateOrUpdate(plan PatchServingEndpointTags)

func (*PatchServingEndpointTags) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *PatchServingEndpointTags) SyncEffectiveFieldsDuringRead(existingState PatchServingEndpointTags)

func (PatchServingEndpointTags) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, PatchServingEndpointTags only implements ToObjectValue() and Type().

func (PatchServingEndpointTags) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type PayloadTable

type PayloadTable struct {
	// The name of the payload table.
	Name types.String `tfsdk:"name" tf:"optional"`
	// The status of the payload table.
	Status types.String `tfsdk:"status" tf:"optional"`
	// The status message of the payload table.
	StatusMessage types.String `tfsdk:"status_message" tf:"optional"`
}

func (PayloadTable) GetComplexFieldTypes added in v1.61.0

func (a PayloadTable) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in PayloadTable. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*PayloadTable) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *PayloadTable) SyncEffectiveFieldsDuringCreateOrUpdate(plan PayloadTable)

func (*PayloadTable) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *PayloadTable) SyncEffectiveFieldsDuringRead(existingState PayloadTable)

func (PayloadTable) ToObjectValue added in v1.61.0

func (o PayloadTable) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, PayloadTable only implements ToObjectValue() and Type().

func (PayloadTable) Type added in v1.61.0

func (o PayloadTable) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type PutAiGatewayRequest added in v1.53.0

type PutAiGatewayRequest struct {
	// Configuration for AI Guardrails to prevent unwanted data and unsafe data
	// in requests and responses.
	Guardrails types.List `tfsdk:"guardrails" tf:"optional,object"`
	// Configuration for payload logging using inference tables. Use these
	// tables to monitor and audit data being sent to and received from model
	// APIs and to improve model quality.
	InferenceTableConfig types.List `tfsdk:"inference_table_config" tf:"optional,object"`
	// The name of the serving endpoint whose AI Gateway is being updated. This
	// field is required.
	Name types.String `tfsdk:"-"`
	// Configuration for rate limits which can be set to limit endpoint traffic.
	RateLimits types.List `tfsdk:"rate_limits" tf:"optional"`
	// Configuration to enable usage tracking using system tables. These tables
	// allow you to monitor operational usage on endpoints and their associated
	// costs.
	UsageTrackingConfig types.List `tfsdk:"usage_tracking_config" tf:"optional,object"`
}

Update AI Gateway of a serving endpoint

func (PutAiGatewayRequest) GetComplexFieldTypes added in v1.61.0

func (a PutAiGatewayRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAiGatewayRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*PutAiGatewayRequest) GetGuardrails added in v1.61.0

func (o *PutAiGatewayRequest) GetGuardrails(ctx context.Context) (AiGatewayGuardrails, bool)

GetGuardrails returns the value of the Guardrails field in PutAiGatewayRequest as a AiGatewayGuardrails value. If the field is unknown or null, the boolean return value is false.

func (*PutAiGatewayRequest) GetInferenceTableConfig added in v1.61.0

func (o *PutAiGatewayRequest) GetInferenceTableConfig(ctx context.Context) (AiGatewayInferenceTableConfig, bool)

GetInferenceTableConfig returns the value of the InferenceTableConfig field in PutAiGatewayRequest as a AiGatewayInferenceTableConfig value. If the field is unknown or null, the boolean return value is false.

func (*PutAiGatewayRequest) GetRateLimits added in v1.61.0

func (o *PutAiGatewayRequest) GetRateLimits(ctx context.Context) ([]AiGatewayRateLimit, bool)

GetRateLimits returns the value of the RateLimits field in PutAiGatewayRequest as a slice of AiGatewayRateLimit values. If the field is unknown or null, the boolean return value is false.

func (*PutAiGatewayRequest) GetUsageTrackingConfig added in v1.61.0

func (o *PutAiGatewayRequest) GetUsageTrackingConfig(ctx context.Context) (AiGatewayUsageTrackingConfig, bool)

GetUsageTrackingConfig returns the value of the UsageTrackingConfig field in PutAiGatewayRequest as a AiGatewayUsageTrackingConfig value. If the field is unknown or null, the boolean return value is false.

func (*PutAiGatewayRequest) SetGuardrails added in v1.61.0

func (o *PutAiGatewayRequest) SetGuardrails(ctx context.Context, v AiGatewayGuardrails)

SetGuardrails sets the value of the Guardrails field in PutAiGatewayRequest.

func (*PutAiGatewayRequest) SetInferenceTableConfig added in v1.61.0

func (o *PutAiGatewayRequest) SetInferenceTableConfig(ctx context.Context, v AiGatewayInferenceTableConfig)

SetInferenceTableConfig sets the value of the InferenceTableConfig field in PutAiGatewayRequest.

func (*PutAiGatewayRequest) SetRateLimits added in v1.61.0

func (o *PutAiGatewayRequest) SetRateLimits(ctx context.Context, v []AiGatewayRateLimit)

SetRateLimits sets the value of the RateLimits field in PutAiGatewayRequest.

func (*PutAiGatewayRequest) SetUsageTrackingConfig added in v1.61.0

func (o *PutAiGatewayRequest) SetUsageTrackingConfig(ctx context.Context, v AiGatewayUsageTrackingConfig)

SetUsageTrackingConfig sets the value of the UsageTrackingConfig field in PutAiGatewayRequest.

func (*PutAiGatewayRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *PutAiGatewayRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAiGatewayRequest)

func (*PutAiGatewayRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *PutAiGatewayRequest) SyncEffectiveFieldsDuringRead(existingState PutAiGatewayRequest)

func (PutAiGatewayRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, PutAiGatewayRequest only implements ToObjectValue() and Type().

func (PutAiGatewayRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type PutAiGatewayResponse added in v1.53.0

type PutAiGatewayResponse struct {
	// Configuration for AI Guardrails to prevent unwanted data and unsafe data
	// in requests and responses.
	Guardrails types.List `tfsdk:"guardrails" tf:"optional,object"`
	// Configuration for payload logging using inference tables. Use these
	// tables to monitor and audit data being sent to and received from model
	// APIs and to improve model quality .
	InferenceTableConfig types.List `tfsdk:"inference_table_config" tf:"optional,object"`
	// Configuration for rate limits which can be set to limit endpoint traffic.
	RateLimits types.List `tfsdk:"rate_limits" tf:"optional"`
	// Configuration to enable usage tracking using system tables. These tables
	// allow you to monitor operational usage on endpoints and their associated
	// costs.
	UsageTrackingConfig types.List `tfsdk:"usage_tracking_config" tf:"optional,object"`
}

func (PutAiGatewayResponse) GetComplexFieldTypes added in v1.61.0

func (a PutAiGatewayResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in PutAiGatewayResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*PutAiGatewayResponse) GetGuardrails added in v1.61.0

func (o *PutAiGatewayResponse) GetGuardrails(ctx context.Context) (AiGatewayGuardrails, bool)

GetGuardrails returns the value of the Guardrails field in PutAiGatewayResponse as a AiGatewayGuardrails value. If the field is unknown or null, the boolean return value is false.

func (*PutAiGatewayResponse) GetInferenceTableConfig added in v1.61.0

func (o *PutAiGatewayResponse) GetInferenceTableConfig(ctx context.Context) (AiGatewayInferenceTableConfig, bool)

GetInferenceTableConfig returns the value of the InferenceTableConfig field in PutAiGatewayResponse as a AiGatewayInferenceTableConfig value. If the field is unknown or null, the boolean return value is false.

func (*PutAiGatewayResponse) GetRateLimits added in v1.61.0

func (o *PutAiGatewayResponse) GetRateLimits(ctx context.Context) ([]AiGatewayRateLimit, bool)

GetRateLimits returns the value of the RateLimits field in PutAiGatewayResponse as a slice of AiGatewayRateLimit values. If the field is unknown or null, the boolean return value is false.

func (*PutAiGatewayResponse) GetUsageTrackingConfig added in v1.61.0

func (o *PutAiGatewayResponse) GetUsageTrackingConfig(ctx context.Context) (AiGatewayUsageTrackingConfig, bool)

GetUsageTrackingConfig returns the value of the UsageTrackingConfig field in PutAiGatewayResponse as a AiGatewayUsageTrackingConfig value. If the field is unknown or null, the boolean return value is false.

func (*PutAiGatewayResponse) SetGuardrails added in v1.61.0

func (o *PutAiGatewayResponse) SetGuardrails(ctx context.Context, v AiGatewayGuardrails)

SetGuardrails sets the value of the Guardrails field in PutAiGatewayResponse.

func (*PutAiGatewayResponse) SetInferenceTableConfig added in v1.61.0

func (o *PutAiGatewayResponse) SetInferenceTableConfig(ctx context.Context, v AiGatewayInferenceTableConfig)

SetInferenceTableConfig sets the value of the InferenceTableConfig field in PutAiGatewayResponse.

func (*PutAiGatewayResponse) SetRateLimits added in v1.61.0

func (o *PutAiGatewayResponse) SetRateLimits(ctx context.Context, v []AiGatewayRateLimit)

SetRateLimits sets the value of the RateLimits field in PutAiGatewayResponse.

func (*PutAiGatewayResponse) SetUsageTrackingConfig added in v1.61.0

func (o *PutAiGatewayResponse) SetUsageTrackingConfig(ctx context.Context, v AiGatewayUsageTrackingConfig)

SetUsageTrackingConfig sets the value of the UsageTrackingConfig field in PutAiGatewayResponse.

func (*PutAiGatewayResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *PutAiGatewayResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutAiGatewayResponse)

func (*PutAiGatewayResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *PutAiGatewayResponse) SyncEffectiveFieldsDuringRead(existingState PutAiGatewayResponse)

func (PutAiGatewayResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, PutAiGatewayResponse only implements ToObjectValue() and Type().

func (PutAiGatewayResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type PutRequest

type PutRequest struct {
	// The name of the serving endpoint whose rate limits are being updated.
	// This field is required.
	Name types.String `tfsdk:"-"`
	// The list of endpoint rate limits.
	RateLimits types.List `tfsdk:"rate_limits" tf:"optional"`
}

Update rate limits of a serving endpoint

func (PutRequest) GetComplexFieldTypes added in v1.61.0

func (a PutRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in PutRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*PutRequest) GetRateLimits added in v1.61.0

func (o *PutRequest) GetRateLimits(ctx context.Context) ([]RateLimit, bool)

GetRateLimits returns the value of the RateLimits field in PutRequest as a slice of RateLimit values. If the field is unknown or null, the boolean return value is false.

func (*PutRequest) SetRateLimits added in v1.61.0

func (o *PutRequest) SetRateLimits(ctx context.Context, v []RateLimit)

SetRateLimits sets the value of the RateLimits field in PutRequest.

func (*PutRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *PutRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutRequest)

func (*PutRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *PutRequest) SyncEffectiveFieldsDuringRead(existingState PutRequest)

func (PutRequest) ToObjectValue added in v1.61.0

func (o PutRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, PutRequest only implements ToObjectValue() and Type().

func (PutRequest) Type added in v1.61.0

func (o PutRequest) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type PutResponse

type PutResponse struct {
	// The list of endpoint rate limits.
	RateLimits types.List `tfsdk:"rate_limits" tf:"optional"`
}

func (PutResponse) GetComplexFieldTypes added in v1.61.0

func (a PutResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in PutResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*PutResponse) GetRateLimits added in v1.61.0

func (o *PutResponse) GetRateLimits(ctx context.Context) ([]RateLimit, bool)

GetRateLimits returns the value of the RateLimits field in PutResponse as a slice of RateLimit values. If the field is unknown or null, the boolean return value is false.

func (*PutResponse) SetRateLimits added in v1.61.0

func (o *PutResponse) SetRateLimits(ctx context.Context, v []RateLimit)

SetRateLimits sets the value of the RateLimits field in PutResponse.

func (*PutResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *PutResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutResponse)

func (*PutResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *PutResponse) SyncEffectiveFieldsDuringRead(existingState PutResponse)

func (PutResponse) ToObjectValue added in v1.61.0

func (o PutResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, PutResponse only implements ToObjectValue() and Type().

func (PutResponse) Type added in v1.61.0

func (o PutResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type QueryEndpointInput

type QueryEndpointInput struct {
	// Pandas Dataframe input in the records orientation.
	DataframeRecords types.List `tfsdk:"dataframe_records" tf:"optional"`
	// Pandas Dataframe input in the split orientation.
	DataframeSplit types.List `tfsdk:"dataframe_split" tf:"optional,object"`
	// The extra parameters field used ONLY for __completions, chat,__ and
	// __embeddings external & foundation model__ serving endpoints. This is a
	// map of strings and should only be used with other external/foundation
	// model query fields.
	ExtraParams types.Map `tfsdk:"extra_params" tf:"optional"`
	// The input string (or array of strings) field used ONLY for __embeddings
	// external & foundation model__ serving endpoints and is the only field
	// (along with extra_params if needed) used by embeddings queries.
	Input types.Object `tfsdk:"input" tf:"optional"`
	// Tensor-based input in columnar format.
	Inputs types.Object `tfsdk:"inputs" tf:"optional"`
	// Tensor-based input in row format.
	Instances types.List `tfsdk:"instances" tf:"optional"`
	// The max tokens field used ONLY for __completions__ and __chat external &
	// foundation model__ serving endpoints. This is an integer and should only
	// be used with other chat/completions query fields.
	MaxTokens types.Int64 `tfsdk:"max_tokens" tf:"optional"`
	// The messages field used ONLY for __chat external & foundation model__
	// serving endpoints. This is a map of strings and should only be used with
	// other chat query fields.
	Messages types.List `tfsdk:"messages" tf:"optional"`
	// The n (number of candidates) field used ONLY for __completions__ and
	// __chat external & foundation model__ serving endpoints. This is an
	// integer between 1 and 5 with a default of 1 and should only be used with
	// other chat/completions query fields.
	N types.Int64 `tfsdk:"n" tf:"optional"`
	// The name of the serving endpoint. This field is required.
	Name types.String `tfsdk:"-"`
	// The prompt string (or array of strings) field used ONLY for __completions
	// external & foundation model__ serving endpoints and should only be used
	// with other completions query fields.
	Prompt types.Object `tfsdk:"prompt" tf:"optional"`
	// The stop sequences field used ONLY for __completions__ and __chat
	// external & foundation model__ serving endpoints. This is a list of
	// strings and should only be used with other chat/completions query fields.
	Stop types.List `tfsdk:"stop" tf:"optional"`
	// The stream field used ONLY for __completions__ and __chat external &
	// foundation model__ serving endpoints. This is a boolean defaulting to
	// false and should only be used with other chat/completions query fields.
	Stream types.Bool `tfsdk:"stream" tf:"optional"`
	// The temperature field used ONLY for __completions__ and __chat external &
	// foundation model__ serving endpoints. This is a float between 0.0 and 2.0
	// with a default of 1.0 and should only be used with other chat/completions
	// query fields.
	Temperature types.Float64 `tfsdk:"temperature" tf:"optional"`
}

func (QueryEndpointInput) GetComplexFieldTypes added in v1.61.0

func (a QueryEndpointInput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryEndpointInput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*QueryEndpointInput) GetDataframeRecords added in v1.61.0

func (o *QueryEndpointInput) GetDataframeRecords(ctx context.Context) ([]types.Object, bool)

GetDataframeRecords returns the value of the DataframeRecords field in QueryEndpointInput as a slice of types.Object values. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointInput) GetDataframeSplit added in v1.61.0

func (o *QueryEndpointInput) GetDataframeSplit(ctx context.Context) (DataframeSplitInput, bool)

GetDataframeSplit returns the value of the DataframeSplit field in QueryEndpointInput as a DataframeSplitInput value. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointInput) GetExtraParams added in v1.61.0

func (o *QueryEndpointInput) GetExtraParams(ctx context.Context) (map[string]types.String, bool)

GetExtraParams returns the value of the ExtraParams field in QueryEndpointInput as a map of string to types.String values. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointInput) GetInstances added in v1.61.0

func (o *QueryEndpointInput) GetInstances(ctx context.Context) ([]types.Object, bool)

GetInstances returns the value of the Instances field in QueryEndpointInput as a slice of types.Object values. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointInput) GetMessages added in v1.61.0

func (o *QueryEndpointInput) GetMessages(ctx context.Context) ([]ChatMessage, bool)

GetMessages returns the value of the Messages field in QueryEndpointInput as a slice of ChatMessage values. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointInput) GetStop added in v1.61.0

func (o *QueryEndpointInput) GetStop(ctx context.Context) ([]types.String, bool)

GetStop returns the value of the Stop field in QueryEndpointInput as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointInput) SetDataframeRecords added in v1.61.0

func (o *QueryEndpointInput) SetDataframeRecords(ctx context.Context, v []types.Object)

SetDataframeRecords sets the value of the DataframeRecords field in QueryEndpointInput.

func (*QueryEndpointInput) SetDataframeSplit added in v1.61.0

func (o *QueryEndpointInput) SetDataframeSplit(ctx context.Context, v DataframeSplitInput)

SetDataframeSplit sets the value of the DataframeSplit field in QueryEndpointInput.

func (*QueryEndpointInput) SetExtraParams added in v1.61.0

func (o *QueryEndpointInput) SetExtraParams(ctx context.Context, v map[string]types.String)

SetExtraParams sets the value of the ExtraParams field in QueryEndpointInput.

func (*QueryEndpointInput) SetInstances added in v1.61.0

func (o *QueryEndpointInput) SetInstances(ctx context.Context, v []types.Object)

SetInstances sets the value of the Instances field in QueryEndpointInput.

func (*QueryEndpointInput) SetMessages added in v1.61.0

func (o *QueryEndpointInput) SetMessages(ctx context.Context, v []ChatMessage)

SetMessages sets the value of the Messages field in QueryEndpointInput.

func (*QueryEndpointInput) SetStop added in v1.61.0

func (o *QueryEndpointInput) SetStop(ctx context.Context, v []types.String)

SetStop sets the value of the Stop field in QueryEndpointInput.

func (*QueryEndpointInput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryEndpointInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryEndpointInput)

func (*QueryEndpointInput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryEndpointInput) SyncEffectiveFieldsDuringRead(existingState QueryEndpointInput)

func (QueryEndpointInput) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, QueryEndpointInput only implements ToObjectValue() and Type().

func (QueryEndpointInput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type QueryEndpointResponse

type QueryEndpointResponse struct {
	// The list of choices returned by the __chat or completions
	// external/foundation model__ serving endpoint.
	Choices types.List `tfsdk:"choices" tf:"optional"`
	// The timestamp in seconds when the query was created in Unix time returned
	// by a __completions or chat external/foundation model__ serving endpoint.
	Created types.Int64 `tfsdk:"created" tf:"optional"`
	// The list of the embeddings returned by the __embeddings
	// external/foundation model__ serving endpoint.
	Data types.List `tfsdk:"data" tf:"optional"`
	// The ID of the query that may be returned by a __completions or chat
	// external/foundation model__ serving endpoint.
	Id types.String `tfsdk:"id" tf:"optional"`
	// The name of the __external/foundation model__ used for querying. This is
	// the name of the model that was specified in the endpoint config.
	Model types.String `tfsdk:"model" tf:"optional"`
	// The type of object returned by the __external/foundation model__ serving
	// endpoint, one of [text_completion, chat.completion, list (of
	// embeddings)].
	Object types.String `tfsdk:"object" tf:"optional"`
	// The predictions returned by the serving endpoint.
	Predictions types.List `tfsdk:"predictions" tf:"optional"`
	// The name of the served model that served the request. This is useful when
	// there are multiple models behind the same endpoint with traffic split.
	ServedModelName types.String `tfsdk:"-"`
	// The usage object that may be returned by the __external/foundation
	// model__ serving endpoint. This contains information about the number of
	// tokens used in the prompt and response.
	Usage types.List `tfsdk:"usage" tf:"optional,object"`
}

func (*QueryEndpointResponse) GetChoices added in v1.61.0

GetChoices returns the value of the Choices field in QueryEndpointResponse as a slice of V1ResponseChoiceElement values. If the field is unknown or null, the boolean return value is false.

func (QueryEndpointResponse) GetComplexFieldTypes added in v1.61.0

func (a QueryEndpointResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryEndpointResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*QueryEndpointResponse) GetData added in v1.61.0

GetData returns the value of the Data field in QueryEndpointResponse as a slice of EmbeddingsV1ResponseEmbeddingElement values. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointResponse) GetPredictions added in v1.61.0

func (o *QueryEndpointResponse) GetPredictions(ctx context.Context) ([]types.Object, bool)

GetPredictions returns the value of the Predictions field in QueryEndpointResponse as a slice of types.Object values. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointResponse) GetUsage added in v1.61.0

GetUsage returns the value of the Usage field in QueryEndpointResponse as a ExternalModelUsageElement value. If the field is unknown or null, the boolean return value is false.

func (*QueryEndpointResponse) SetChoices added in v1.61.0

SetChoices sets the value of the Choices field in QueryEndpointResponse.

func (*QueryEndpointResponse) SetData added in v1.61.0

SetData sets the value of the Data field in QueryEndpointResponse.

func (*QueryEndpointResponse) SetPredictions added in v1.61.0

func (o *QueryEndpointResponse) SetPredictions(ctx context.Context, v []types.Object)

SetPredictions sets the value of the Predictions field in QueryEndpointResponse.

func (*QueryEndpointResponse) SetUsage added in v1.61.0

SetUsage sets the value of the Usage field in QueryEndpointResponse.

func (*QueryEndpointResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryEndpointResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryEndpointResponse)

func (*QueryEndpointResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryEndpointResponse) SyncEffectiveFieldsDuringRead(existingState QueryEndpointResponse)

func (QueryEndpointResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, QueryEndpointResponse only implements ToObjectValue() and Type().

func (QueryEndpointResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type RateLimit

type RateLimit struct {
	// Used to specify how many calls are allowed for a key within the
	// renewal_period.
	Calls types.Int64 `tfsdk:"calls" tf:""`
	// Key field for a serving endpoint rate limit. Currently, only 'user' and
	// 'endpoint' are supported, with 'endpoint' being the default if not
	// specified.
	Key types.String `tfsdk:"key" tf:"optional"`
	// Renewal period field for a serving endpoint rate limit. Currently, only
	// 'minute' is supported.
	RenewalPeriod types.String `tfsdk:"renewal_period" tf:""`
}

func (RateLimit) GetComplexFieldTypes added in v1.61.0

func (a RateLimit) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in RateLimit. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*RateLimit) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *RateLimit) SyncEffectiveFieldsDuringCreateOrUpdate(plan RateLimit)

func (*RateLimit) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *RateLimit) SyncEffectiveFieldsDuringRead(existingState RateLimit)

func (RateLimit) ToObjectValue added in v1.61.0

func (o RateLimit) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, RateLimit only implements ToObjectValue() and Type().

func (RateLimit) Type added in v1.61.0

func (o RateLimit) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type Route

type Route struct {
	// The name of the served model this route configures traffic for.
	ServedModelName types.String `tfsdk:"served_model_name" tf:""`
	// The percentage of endpoint traffic to send to this route. It must be an
	// integer between 0 and 100 inclusive.
	TrafficPercentage types.Int64 `tfsdk:"traffic_percentage" tf:""`
}

func (Route) GetComplexFieldTypes added in v1.61.0

func (a Route) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in Route. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*Route) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Route) SyncEffectiveFieldsDuringCreateOrUpdate(plan Route)

func (*Route) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Route) SyncEffectiveFieldsDuringRead(existingState Route)

func (Route) ToObjectValue added in v1.61.0

func (o Route) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Route only implements ToObjectValue() and Type().

func (Route) Type added in v1.61.0

func (o Route) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ServedEntityInput

type ServedEntityInput struct {
	// The name of the entity to be served. The entity may be a model in the
	// Databricks Model Registry, a model in the Unity Catalog (UC), or a
	// function of type FEATURE_SPEC in the UC. If it is a UC object, the full
	// name of the object should be given in the form of
	// __catalog_name__.__schema_name__.__model_name__.
	EntityName types.String `tfsdk:"entity_name" tf:"optional"`
	// The version of the model in Databricks Model Registry to be served or
	// empty if the entity is a FEATURE_SPEC.
	EntityVersion types.String `tfsdk:"entity_version" tf:"optional"`
	// An object containing a set of optional, user-specified environment
	// variable key-value pairs used for serving this entity. Note: this is an
	// experimental feature and subject to change. Example entity environment
	// variables that refer to Databricks secrets: `{"OPENAI_API_KEY":
	// "{{secrets/my_scope/my_key}}", "DATABRICKS_TOKEN":
	// "{{secrets/my_scope2/my_key2}}"}`
	EnvironmentVars types.Map `tfsdk:"environment_vars" tf:"optional"`
	// The external model to be served. NOTE: Only one of external_model and
	// (entity_name, entity_version, workload_size, workload_type, and
	// scale_to_zero_enabled) can be specified with the latter set being used
	// for custom model serving for a Databricks registered model. For an
	// existing endpoint with external_model, it cannot be updated to an
	// endpoint without external_model. If the endpoint is created without
	// external_model, users cannot update it to add external_model later. The
	// task type of all external models within an endpoint must be the same.
	ExternalModel types.List `tfsdk:"external_model" tf:"optional,object"`
	// ARN of the instance profile that the served entity uses to access AWS
	// resources.
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// The maximum tokens per second that the endpoint can scale up to.
	MaxProvisionedThroughput types.Int64 `tfsdk:"max_provisioned_throughput" tf:"optional"`
	// The minimum tokens per second that the endpoint can scale down to.
	MinProvisionedThroughput types.Int64 `tfsdk:"min_provisioned_throughput" tf:"optional"`
	// The name of a served entity. It must be unique across an endpoint. A
	// served entity name can consist of alphanumeric characters, dashes, and
	// underscores. If not specified for an external model, this field defaults
	// to external_model.name, with '.' and ':' replaced with '-', and if not
	// specified for other entities, it defaults to
	// <entity-name>-<entity-version>.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Whether the compute resources for the served entity should scale down to
	// zero.
	ScaleToZeroEnabled types.Bool `tfsdk:"scale_to_zero_enabled" tf:"optional"`
	// The workload size of the served entity. The workload size corresponds to
	// a range of provisioned concurrency that the compute autoscales between. A
	// single unit of provisioned concurrency can process one request at a time.
	// Valid workload sizes are "Small" (4 - 4 provisioned concurrency),
	// "Medium" (8 - 16 provisioned concurrency), and "Large" (16 - 64
	// provisioned concurrency). If scale-to-zero is enabled, the lower bound of
	// the provisioned concurrency for each workload size is 0.
	WorkloadSize types.String `tfsdk:"workload_size" tf:"optional"`
	// The workload type of the served entity. The workload type selects which
	// type of compute to use in the endpoint. The default value for this
	// parameter is "CPU". For deep learning workloads, GPU acceleration is
	// available by selecting workload types like GPU_SMALL and others. See the
	// available [GPU types].
	//
	// [GPU types]: https://docs.databricks.com/machine-learning/model-serving/create-manage-serving-endpoints.html#gpu-workload-types
	WorkloadType types.String `tfsdk:"workload_type" tf:"optional"`
}

func (ServedEntityInput) GetComplexFieldTypes added in v1.61.0

func (a ServedEntityInput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedEntityInput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServedEntityInput) GetEnvironmentVars added in v1.61.0

func (o *ServedEntityInput) GetEnvironmentVars(ctx context.Context) (map[string]types.String, bool)

GetEnvironmentVars returns the value of the EnvironmentVars field in ServedEntityInput as a map of string to types.String values. If the field is unknown or null, the boolean return value is false.

func (*ServedEntityInput) GetExternalModel added in v1.61.0

func (o *ServedEntityInput) GetExternalModel(ctx context.Context) (ExternalModel, bool)

GetExternalModel returns the value of the ExternalModel field in ServedEntityInput as a ExternalModel value. If the field is unknown or null, the boolean return value is false.

func (*ServedEntityInput) SetEnvironmentVars added in v1.61.0

func (o *ServedEntityInput) SetEnvironmentVars(ctx context.Context, v map[string]types.String)

SetEnvironmentVars sets the value of the EnvironmentVars field in ServedEntityInput.

func (*ServedEntityInput) SetExternalModel added in v1.61.0

func (o *ServedEntityInput) SetExternalModel(ctx context.Context, v ExternalModel)

SetExternalModel sets the value of the ExternalModel field in ServedEntityInput.

func (*ServedEntityInput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServedEntityInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServedEntityInput)

func (*ServedEntityInput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServedEntityInput) SyncEffectiveFieldsDuringRead(existingState ServedEntityInput)

func (ServedEntityInput) ToObjectValue added in v1.61.0

func (o ServedEntityInput) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServedEntityInput only implements ToObjectValue() and Type().

func (ServedEntityInput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServedEntityOutput

type ServedEntityOutput struct {
	// The creation timestamp of the served entity in Unix time.
	CreationTimestamp types.Int64 `tfsdk:"creation_timestamp" tf:"optional"`
	// The email of the user who created the served entity.
	Creator types.String `tfsdk:"creator" tf:"optional"`
	// The name of the entity served. The entity may be a model in the
	// Databricks Model Registry, a model in the Unity Catalog (UC), or a
	// function of type FEATURE_SPEC in the UC. If it is a UC object, the full
	// name of the object is given in the form of
	// __catalog_name__.__schema_name__.__model_name__.
	EntityName types.String `tfsdk:"entity_name" tf:"optional"`
	// The version of the served entity in Databricks Model Registry or empty if
	// the entity is a FEATURE_SPEC.
	EntityVersion types.String `tfsdk:"entity_version" tf:"optional"`
	// An object containing a set of optional, user-specified environment
	// variable key-value pairs used for serving this entity. Note: this is an
	// experimental feature and subject to change. Example entity environment
	// variables that refer to Databricks secrets: `{"OPENAI_API_KEY":
	// "{{secrets/my_scope/my_key}}", "DATABRICKS_TOKEN":
	// "{{secrets/my_scope2/my_key2}}"}`
	EnvironmentVars types.Map `tfsdk:"environment_vars" tf:"optional"`
	// The external model that is served. NOTE: Only one of external_model,
	// foundation_model, and (entity_name, entity_version, workload_size,
	// workload_type, and scale_to_zero_enabled) is returned based on the
	// endpoint type.
	ExternalModel types.List `tfsdk:"external_model" tf:"optional,object"`
	// The foundation model that is served. NOTE: Only one of foundation_model,
	// external_model, and (entity_name, entity_version, workload_size,
	// workload_type, and scale_to_zero_enabled) is returned based on the
	// endpoint type.
	FoundationModel types.List `tfsdk:"foundation_model" tf:"optional,object"`
	// ARN of the instance profile that the served entity uses to access AWS
	// resources.
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// The maximum tokens per second that the endpoint can scale up to.
	MaxProvisionedThroughput types.Int64 `tfsdk:"max_provisioned_throughput" tf:"optional"`
	// The minimum tokens per second that the endpoint can scale down to.
	MinProvisionedThroughput types.Int64 `tfsdk:"min_provisioned_throughput" tf:"optional"`
	// The name of the served entity.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Whether the compute resources for the served entity should scale down to
	// zero.
	ScaleToZeroEnabled types.Bool `tfsdk:"scale_to_zero_enabled" tf:"optional"`
	// Information corresponding to the state of the served entity.
	State types.List `tfsdk:"state" tf:"optional,object"`
	// The workload size of the served entity. The workload size corresponds to
	// a range of provisioned concurrency that the compute autoscales between. A
	// single unit of provisioned concurrency can process one request at a time.
	// Valid workload sizes are "Small" (4 - 4 provisioned concurrency),
	// "Medium" (8 - 16 provisioned concurrency), and "Large" (16 - 64
	// provisioned concurrency). If scale-to-zero is enabled, the lower bound of
	// the provisioned concurrency for each workload size will be 0.
	WorkloadSize types.String `tfsdk:"workload_size" tf:"optional"`
	// The workload type of the served entity. The workload type selects which
	// type of compute to use in the endpoint. The default value for this
	// parameter is "CPU". For deep learning workloads, GPU acceleration is
	// available by selecting workload types like GPU_SMALL and others. See the
	// available [GPU types].
	//
	// [GPU types]: https://docs.databricks.com/machine-learning/model-serving/create-manage-serving-endpoints.html#gpu-workload-types
	WorkloadType types.String `tfsdk:"workload_type" tf:"optional"`
}

func (ServedEntityOutput) GetComplexFieldTypes added in v1.61.0

func (a ServedEntityOutput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedEntityOutput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServedEntityOutput) GetEnvironmentVars added in v1.61.0

func (o *ServedEntityOutput) GetEnvironmentVars(ctx context.Context) (map[string]types.String, bool)

GetEnvironmentVars returns the value of the EnvironmentVars field in ServedEntityOutput as a map of string to types.String values. If the field is unknown or null, the boolean return value is false.

func (*ServedEntityOutput) GetExternalModel added in v1.61.0

func (o *ServedEntityOutput) GetExternalModel(ctx context.Context) (ExternalModel, bool)

GetExternalModel returns the value of the ExternalModel field in ServedEntityOutput as a ExternalModel value. If the field is unknown or null, the boolean return value is false.

func (*ServedEntityOutput) GetFoundationModel added in v1.61.0

func (o *ServedEntityOutput) GetFoundationModel(ctx context.Context) (FoundationModel, bool)

GetFoundationModel returns the value of the FoundationModel field in ServedEntityOutput as a FoundationModel value. If the field is unknown or null, the boolean return value is false.

func (*ServedEntityOutput) GetState added in v1.61.0

GetState returns the value of the State field in ServedEntityOutput as a ServedModelState value. If the field is unknown or null, the boolean return value is false.

func (*ServedEntityOutput) SetEnvironmentVars added in v1.61.0

func (o *ServedEntityOutput) SetEnvironmentVars(ctx context.Context, v map[string]types.String)

SetEnvironmentVars sets the value of the EnvironmentVars field in ServedEntityOutput.

func (*ServedEntityOutput) SetExternalModel added in v1.61.0

func (o *ServedEntityOutput) SetExternalModel(ctx context.Context, v ExternalModel)

SetExternalModel sets the value of the ExternalModel field in ServedEntityOutput.

func (*ServedEntityOutput) SetFoundationModel added in v1.61.0

func (o *ServedEntityOutput) SetFoundationModel(ctx context.Context, v FoundationModel)

SetFoundationModel sets the value of the FoundationModel field in ServedEntityOutput.

func (*ServedEntityOutput) SetState added in v1.61.0

func (o *ServedEntityOutput) SetState(ctx context.Context, v ServedModelState)

SetState sets the value of the State field in ServedEntityOutput.

func (*ServedEntityOutput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServedEntityOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServedEntityOutput)

func (*ServedEntityOutput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServedEntityOutput) SyncEffectiveFieldsDuringRead(existingState ServedEntityOutput)

func (ServedEntityOutput) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServedEntityOutput only implements ToObjectValue() and Type().

func (ServedEntityOutput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServedEntitySpec

type ServedEntitySpec struct {
	// The name of the entity served. The entity may be a model in the
	// Databricks Model Registry, a model in the Unity Catalog (UC), or a
	// function of type FEATURE_SPEC in the UC. If it is a UC object, the full
	// name of the object is given in the form of
	// __catalog_name__.__schema_name__.__model_name__.
	EntityName types.String `tfsdk:"entity_name" tf:"optional"`
	// The version of the served entity in Databricks Model Registry or empty if
	// the entity is a FEATURE_SPEC.
	EntityVersion types.String `tfsdk:"entity_version" tf:"optional"`
	// The external model that is served. NOTE: Only one of external_model,
	// foundation_model, and (entity_name, entity_version) is returned based on
	// the endpoint type.
	ExternalModel types.List `tfsdk:"external_model" tf:"optional,object"`
	// The foundation model that is served. NOTE: Only one of foundation_model,
	// external_model, and (entity_name, entity_version) is returned based on
	// the endpoint type.
	FoundationModel types.List `tfsdk:"foundation_model" tf:"optional,object"`
	// The name of the served entity.
	Name types.String `tfsdk:"name" tf:"optional"`
}

func (ServedEntitySpec) GetComplexFieldTypes added in v1.61.0

func (a ServedEntitySpec) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedEntitySpec. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServedEntitySpec) GetExternalModel added in v1.61.0

func (o *ServedEntitySpec) GetExternalModel(ctx context.Context) (ExternalModel, bool)

GetExternalModel returns the value of the ExternalModel field in ServedEntitySpec as a ExternalModel value. If the field is unknown or null, the boolean return value is false.

func (*ServedEntitySpec) GetFoundationModel added in v1.61.0

func (o *ServedEntitySpec) GetFoundationModel(ctx context.Context) (FoundationModel, bool)

GetFoundationModel returns the value of the FoundationModel field in ServedEntitySpec as a FoundationModel value. If the field is unknown or null, the boolean return value is false.

func (*ServedEntitySpec) SetExternalModel added in v1.61.0

func (o *ServedEntitySpec) SetExternalModel(ctx context.Context, v ExternalModel)

SetExternalModel sets the value of the ExternalModel field in ServedEntitySpec.

func (*ServedEntitySpec) SetFoundationModel added in v1.61.0

func (o *ServedEntitySpec) SetFoundationModel(ctx context.Context, v FoundationModel)

SetFoundationModel sets the value of the FoundationModel field in ServedEntitySpec.

func (*ServedEntitySpec) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServedEntitySpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServedEntitySpec)

func (*ServedEntitySpec) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServedEntitySpec) SyncEffectiveFieldsDuringRead(existingState ServedEntitySpec)

func (ServedEntitySpec) ToObjectValue added in v1.61.0

func (o ServedEntitySpec) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServedEntitySpec only implements ToObjectValue() and Type().

func (ServedEntitySpec) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServedModelInput

type ServedModelInput struct {
	// An object containing a set of optional, user-specified environment
	// variable key-value pairs used for serving this model. Note: this is an
	// experimental feature and subject to change. Example model environment
	// variables that refer to Databricks secrets: `{"OPENAI_API_KEY":
	// "{{secrets/my_scope/my_key}}", "DATABRICKS_TOKEN":
	// "{{secrets/my_scope2/my_key2}}"}`
	EnvironmentVars types.Map `tfsdk:"environment_vars" tf:"optional"`
	// ARN of the instance profile that the served model will use to access AWS
	// resources.
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// The maximum tokens per second that the endpoint can scale up to.
	MaxProvisionedThroughput types.Int64 `tfsdk:"max_provisioned_throughput" tf:"optional"`
	// The minimum tokens per second that the endpoint can scale down to.
	MinProvisionedThroughput types.Int64 `tfsdk:"min_provisioned_throughput" tf:"optional"`
	// The name of the model in Databricks Model Registry to be served or if the
	// model resides in Unity Catalog, the full name of model, in the form of
	// __catalog_name__.__schema_name__.__model_name__.
	ModelName types.String `tfsdk:"model_name" tf:""`
	// The version of the model in Databricks Model Registry or Unity Catalog to
	// be served.
	ModelVersion types.String `tfsdk:"model_version" tf:""`
	// The name of a served model. It must be unique across an endpoint. If not
	// specified, this field will default to <model-name>-<model-version>. A
	// served model name can consist of alphanumeric characters, dashes, and
	// underscores.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Whether the compute resources for the served model should scale down to
	// zero.
	ScaleToZeroEnabled types.Bool `tfsdk:"scale_to_zero_enabled" tf:""`
	// The workload size of the served model. The workload size corresponds to a
	// range of provisioned concurrency that the compute will autoscale between.
	// A single unit of provisioned concurrency can process one request at a
	// time. Valid workload sizes are "Small" (4 - 4 provisioned concurrency),
	// "Medium" (8 - 16 provisioned concurrency), and "Large" (16 - 64
	// provisioned concurrency). If scale-to-zero is enabled, the lower bound of
	// the provisioned concurrency for each workload size will be 0.
	WorkloadSize types.String `tfsdk:"workload_size" tf:"optional"`
	// The workload type of the served model. The workload type selects which
	// type of compute to use in the endpoint. The default value for this
	// parameter is "CPU". For deep learning workloads, GPU acceleration is
	// available by selecting workload types like GPU_SMALL and others. See the
	// available [GPU types].
	//
	// [GPU types]: https://docs.databricks.com/machine-learning/model-serving/create-manage-serving-endpoints.html#gpu-workload-types
	WorkloadType types.String `tfsdk:"workload_type" tf:"optional"`
}

func (ServedModelInput) GetComplexFieldTypes added in v1.61.0

func (a ServedModelInput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedModelInput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServedModelInput) GetEnvironmentVars added in v1.61.0

func (o *ServedModelInput) GetEnvironmentVars(ctx context.Context) (map[string]types.String, bool)

GetEnvironmentVars returns the value of the EnvironmentVars field in ServedModelInput as a map of string to types.String values. If the field is unknown or null, the boolean return value is false.

func (*ServedModelInput) SetEnvironmentVars added in v1.61.0

func (o *ServedModelInput) SetEnvironmentVars(ctx context.Context, v map[string]types.String)

SetEnvironmentVars sets the value of the EnvironmentVars field in ServedModelInput.

func (*ServedModelInput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServedModelInput) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServedModelInput)

func (*ServedModelInput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServedModelInput) SyncEffectiveFieldsDuringRead(existingState ServedModelInput)

func (ServedModelInput) ToObjectValue added in v1.61.0

func (o ServedModelInput) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServedModelInput only implements ToObjectValue() and Type().

func (ServedModelInput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServedModelOutput

type ServedModelOutput struct {
	// The creation timestamp of the served model in Unix time.
	CreationTimestamp types.Int64 `tfsdk:"creation_timestamp" tf:"optional"`
	// The email of the user who created the served model.
	Creator types.String `tfsdk:"creator" tf:"optional"`
	// An object containing a set of optional, user-specified environment
	// variable key-value pairs used for serving this model. Note: this is an
	// experimental feature and subject to change. Example model environment
	// variables that refer to Databricks secrets: `{"OPENAI_API_KEY":
	// "{{secrets/my_scope/my_key}}", "DATABRICKS_TOKEN":
	// "{{secrets/my_scope2/my_key2}}"}`
	EnvironmentVars types.Map `tfsdk:"environment_vars" tf:"optional"`
	// ARN of the instance profile that the served model will use to access AWS
	// resources.
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// The name of the model in Databricks Model Registry or the full name of
	// the model in Unity Catalog.
	ModelName types.String `tfsdk:"model_name" tf:"optional"`
	// The version of the model in Databricks Model Registry or Unity Catalog to
	// be served.
	ModelVersion types.String `tfsdk:"model_version" tf:"optional"`
	// The name of the served model.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Whether the compute resources for the Served Model should scale down to
	// zero.
	ScaleToZeroEnabled types.Bool `tfsdk:"scale_to_zero_enabled" tf:"optional"`
	// Information corresponding to the state of the Served Model.
	State types.List `tfsdk:"state" tf:"optional,object"`
	// The workload size of the served model. The workload size corresponds to a
	// range of provisioned concurrency that the compute will autoscale between.
	// A single unit of provisioned concurrency can process one request at a
	// time. Valid workload sizes are "Small" (4 - 4 provisioned concurrency),
	// "Medium" (8 - 16 provisioned concurrency), and "Large" (16 - 64
	// provisioned concurrency). If scale-to-zero is enabled, the lower bound of
	// the provisioned concurrency for each workload size will be 0.
	WorkloadSize types.String `tfsdk:"workload_size" tf:"optional"`
	// The workload type of the served model. The workload type selects which
	// type of compute to use in the endpoint. The default value for this
	// parameter is "CPU". For deep learning workloads, GPU acceleration is
	// available by selecting workload types like GPU_SMALL and others. See the
	// available [GPU types].
	//
	// [GPU types]: https://docs.databricks.com/machine-learning/model-serving/create-manage-serving-endpoints.html#gpu-workload-types
	WorkloadType types.String `tfsdk:"workload_type" tf:"optional"`
}

func (ServedModelOutput) GetComplexFieldTypes added in v1.61.0

func (a ServedModelOutput) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedModelOutput. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServedModelOutput) GetEnvironmentVars added in v1.61.0

func (o *ServedModelOutput) GetEnvironmentVars(ctx context.Context) (map[string]types.String, bool)

GetEnvironmentVars returns the value of the EnvironmentVars field in ServedModelOutput as a map of string to types.String values. If the field is unknown or null, the boolean return value is false.

func (*ServedModelOutput) GetState added in v1.61.0

GetState returns the value of the State field in ServedModelOutput as a ServedModelState value. If the field is unknown or null, the boolean return value is false.

func (*ServedModelOutput) SetEnvironmentVars added in v1.61.0

func (o *ServedModelOutput) SetEnvironmentVars(ctx context.Context, v map[string]types.String)

SetEnvironmentVars sets the value of the EnvironmentVars field in ServedModelOutput.

func (*ServedModelOutput) SetState added in v1.61.0

func (o *ServedModelOutput) SetState(ctx context.Context, v ServedModelState)

SetState sets the value of the State field in ServedModelOutput.

func (*ServedModelOutput) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServedModelOutput) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServedModelOutput)

func (*ServedModelOutput) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServedModelOutput) SyncEffectiveFieldsDuringRead(existingState ServedModelOutput)

func (ServedModelOutput) ToObjectValue added in v1.61.0

func (o ServedModelOutput) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServedModelOutput only implements ToObjectValue() and Type().

func (ServedModelOutput) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServedModelSpec

type ServedModelSpec struct {
	// The name of the model in Databricks Model Registry or the full name of
	// the model in Unity Catalog.
	ModelName types.String `tfsdk:"model_name" tf:"optional"`
	// The version of the model in Databricks Model Registry or Unity Catalog to
	// be served.
	ModelVersion types.String `tfsdk:"model_version" tf:"optional"`
	// The name of the served model.
	Name types.String `tfsdk:"name" tf:"optional"`
}

func (ServedModelSpec) GetComplexFieldTypes added in v1.61.0

func (a ServedModelSpec) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedModelSpec. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServedModelSpec) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServedModelSpec) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServedModelSpec)

func (*ServedModelSpec) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServedModelSpec) SyncEffectiveFieldsDuringRead(existingState ServedModelSpec)

func (ServedModelSpec) ToObjectValue added in v1.61.0

func (o ServedModelSpec) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServedModelSpec only implements ToObjectValue() and Type().

func (ServedModelSpec) Type added in v1.61.0

func (o ServedModelSpec) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ServedModelState

type ServedModelState struct {
	// The state of the served entity deployment. DEPLOYMENT_CREATING indicates
	// that the served entity is not ready yet because the deployment is still
	// being created (i.e container image is building, model server is deploying
	// for the first time, etc.). DEPLOYMENT_RECOVERING indicates that the
	// served entity was previously in a ready state but no longer is and is
	// attempting to recover. DEPLOYMENT_READY indicates that the served entity
	// is ready to receive traffic. DEPLOYMENT_FAILED indicates that there was
	// an error trying to bring up the served entity (e.g container image build
	// failed, the model server failed to start due to a model loading error,
	// etc.) DEPLOYMENT_ABORTED indicates that the deployment was terminated
	// likely due to a failure in bringing up another served entity under the
	// same endpoint and config version.
	Deployment types.String `tfsdk:"deployment" tf:"optional"`
	// More information about the state of the served entity, if available.
	DeploymentStateMessage types.String `tfsdk:"deployment_state_message" tf:"optional"`
}

func (ServedModelState) GetComplexFieldTypes added in v1.61.0

func (a ServedModelState) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServedModelState. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServedModelState) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServedModelState) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServedModelState)

func (*ServedModelState) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServedModelState) SyncEffectiveFieldsDuringRead(existingState ServedModelState)

func (ServedModelState) ToObjectValue added in v1.61.0

func (o ServedModelState) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServedModelState only implements ToObjectValue() and Type().

func (ServedModelState) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServerLogsResponse

type ServerLogsResponse struct {
	// The most recent log lines of the model server processing invocation
	// requests.
	Logs types.String `tfsdk:"logs" tf:""`
}

func (ServerLogsResponse) GetComplexFieldTypes added in v1.61.0

func (a ServerLogsResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServerLogsResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServerLogsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServerLogsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServerLogsResponse)

func (*ServerLogsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServerLogsResponse) SyncEffectiveFieldsDuringRead(existingState ServerLogsResponse)

func (ServerLogsResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServerLogsResponse only implements ToObjectValue() and Type().

func (ServerLogsResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServingEndpoint

type ServingEndpoint struct {
	// The AI Gateway configuration for the serving endpoint. NOTE: Only
	// external model endpoints are currently supported.
	AiGateway types.List `tfsdk:"ai_gateway" tf:"optional,object"`
	// The config that is currently being served by the endpoint.
	Config types.List `tfsdk:"config" tf:"optional,object"`
	// The timestamp when the endpoint was created in Unix time.
	CreationTimestamp types.Int64 `tfsdk:"creation_timestamp" tf:"optional"`
	// The email of the user who created the serving endpoint.
	Creator types.String `tfsdk:"creator" tf:"optional"`
	// System-generated ID of the endpoint. This is used to refer to the
	// endpoint in the Permissions API
	Id types.String `tfsdk:"id" tf:"optional"`
	// The timestamp when the endpoint was last updated by a user in Unix time.
	LastUpdatedTimestamp types.Int64 `tfsdk:"last_updated_timestamp" tf:"optional"`
	// The name of the serving endpoint.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Information corresponding to the state of the serving endpoint.
	State types.List `tfsdk:"state" tf:"optional,object"`
	// Tags attached to the serving endpoint.
	Tags types.List `tfsdk:"tags" tf:"optional"`
	// The task type of the serving endpoint.
	Task types.String `tfsdk:"task" tf:"optional"`
}

func (*ServingEndpoint) GetAiGateway added in v1.61.0

func (o *ServingEndpoint) GetAiGateway(ctx context.Context) (AiGatewayConfig, bool)

GetAiGateway returns the value of the AiGateway field in ServingEndpoint as a AiGatewayConfig value. If the field is unknown or null, the boolean return value is false.

func (ServingEndpoint) GetComplexFieldTypes added in v1.61.0

func (a ServingEndpoint) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpoint. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServingEndpoint) GetConfig added in v1.61.0

GetConfig returns the value of the Config field in ServingEndpoint as a EndpointCoreConfigSummary value. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpoint) GetState added in v1.61.0

func (o *ServingEndpoint) GetState(ctx context.Context) (EndpointState, bool)

GetState returns the value of the State field in ServingEndpoint as a EndpointState value. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpoint) GetTags added in v1.61.0

func (o *ServingEndpoint) GetTags(ctx context.Context) ([]EndpointTag, bool)

GetTags returns the value of the Tags field in ServingEndpoint as a slice of EndpointTag values. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpoint) SetAiGateway added in v1.61.0

func (o *ServingEndpoint) SetAiGateway(ctx context.Context, v AiGatewayConfig)

SetAiGateway sets the value of the AiGateway field in ServingEndpoint.

func (*ServingEndpoint) SetConfig added in v1.61.0

SetConfig sets the value of the Config field in ServingEndpoint.

func (*ServingEndpoint) SetState added in v1.61.0

func (o *ServingEndpoint) SetState(ctx context.Context, v EndpointState)

SetState sets the value of the State field in ServingEndpoint.

func (*ServingEndpoint) SetTags added in v1.61.0

func (o *ServingEndpoint) SetTags(ctx context.Context, v []EndpointTag)

SetTags sets the value of the Tags field in ServingEndpoint.

func (*ServingEndpoint) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServingEndpoint) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServingEndpoint)

func (*ServingEndpoint) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServingEndpoint) SyncEffectiveFieldsDuringRead(existingState ServingEndpoint)

func (ServingEndpoint) ToObjectValue added in v1.61.0

func (o ServingEndpoint) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServingEndpoint only implements ToObjectValue() and Type().

func (ServingEndpoint) Type added in v1.61.0

func (o ServingEndpoint) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ServingEndpointAccessControlRequest

type ServingEndpointAccessControlRequest struct {
	// name of the group
	GroupName types.String `tfsdk:"group_name" tf:"optional"`
	// Permission level
	PermissionLevel types.String `tfsdk:"permission_level" tf:"optional"`
	// application ID of a service principal
	ServicePrincipalName types.String `tfsdk:"service_principal_name" tf:"optional"`
	// name of the user
	UserName types.String `tfsdk:"user_name" tf:"optional"`
}

func (ServingEndpointAccessControlRequest) GetComplexFieldTypes added in v1.61.0

func (a ServingEndpointAccessControlRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointAccessControlRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServingEndpointAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServingEndpointAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServingEndpointAccessControlRequest)

func (*ServingEndpointAccessControlRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServingEndpointAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState ServingEndpointAccessControlRequest)

func (ServingEndpointAccessControlRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServingEndpointAccessControlRequest only implements ToObjectValue() and Type().

func (ServingEndpointAccessControlRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServingEndpointAccessControlResponse

type ServingEndpointAccessControlResponse struct {
	// All permissions.
	AllPermissions types.List `tfsdk:"all_permissions" tf:"optional"`
	// Display name of the user or service principal.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// name of the group
	GroupName types.String `tfsdk:"group_name" tf:"optional"`
	// Name of the service principal.
	ServicePrincipalName types.String `tfsdk:"service_principal_name" tf:"optional"`
	// name of the user
	UserName types.String `tfsdk:"user_name" tf:"optional"`
}

func (*ServingEndpointAccessControlResponse) GetAllPermissions added in v1.61.0

GetAllPermissions returns the value of the AllPermissions field in ServingEndpointAccessControlResponse as a slice of ServingEndpointPermission values. If the field is unknown or null, the boolean return value is false.

func (ServingEndpointAccessControlResponse) GetComplexFieldTypes added in v1.61.0

func (a ServingEndpointAccessControlResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointAccessControlResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServingEndpointAccessControlResponse) SetAllPermissions added in v1.61.0

SetAllPermissions sets the value of the AllPermissions field in ServingEndpointAccessControlResponse.

func (*ServingEndpointAccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServingEndpointAccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServingEndpointAccessControlResponse)

func (*ServingEndpointAccessControlResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServingEndpointAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState ServingEndpointAccessControlResponse)

func (ServingEndpointAccessControlResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServingEndpointAccessControlResponse only implements ToObjectValue() and Type().

func (ServingEndpointAccessControlResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServingEndpointDetailed

type ServingEndpointDetailed struct {
	// The AI Gateway configuration for the serving endpoint. NOTE: Only
	// external model endpoints are currently supported.
	AiGateway types.List `tfsdk:"ai_gateway" tf:"optional,object"`
	// The config that is currently being served by the endpoint.
	Config types.List `tfsdk:"config" tf:"optional,object"`
	// The timestamp when the endpoint was created in Unix time.
	CreationTimestamp types.Int64 `tfsdk:"creation_timestamp" tf:"optional"`
	// The email of the user who created the serving endpoint.
	Creator types.String `tfsdk:"creator" tf:"optional"`
	// Information required to query DataPlane APIs.
	DataPlaneInfo types.List `tfsdk:"data_plane_info" tf:"optional,object"`
	// Endpoint invocation url if route optimization is enabled for endpoint
	EndpointUrl types.String `tfsdk:"endpoint_url" tf:"optional"`
	// System-generated ID of the endpoint. This is used to refer to the
	// endpoint in the Permissions API
	Id types.String `tfsdk:"id" tf:"optional"`
	// The timestamp when the endpoint was last updated by a user in Unix time.
	LastUpdatedTimestamp types.Int64 `tfsdk:"last_updated_timestamp" tf:"optional"`
	// The name of the serving endpoint.
	Name types.String `tfsdk:"name" tf:"optional"`
	// The config that the endpoint is attempting to update to.
	PendingConfig types.List `tfsdk:"pending_config" tf:"optional,object"`
	// The permission level of the principal making the request.
	PermissionLevel types.String `tfsdk:"permission_level" tf:"optional"`
	// Boolean representing if route optimization has been enabled for the
	// endpoint
	RouteOptimized types.Bool `tfsdk:"route_optimized" tf:"optional"`
	// Information corresponding to the state of the serving endpoint.
	State types.List `tfsdk:"state" tf:"optional,object"`
	// Tags attached to the serving endpoint.
	Tags types.List `tfsdk:"tags" tf:"optional"`
	// The task type of the serving endpoint.
	Task types.String `tfsdk:"task" tf:"optional"`
}

func (*ServingEndpointDetailed) GetAiGateway added in v1.61.0

GetAiGateway returns the value of the AiGateway field in ServingEndpointDetailed as a AiGatewayConfig value. If the field is unknown or null, the boolean return value is false.

func (ServingEndpointDetailed) GetComplexFieldTypes added in v1.61.0

func (a ServingEndpointDetailed) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointDetailed. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServingEndpointDetailed) GetConfig added in v1.61.0

GetConfig returns the value of the Config field in ServingEndpointDetailed as a EndpointCoreConfigOutput value. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpointDetailed) GetDataPlaneInfo added in v1.61.0

func (o *ServingEndpointDetailed) GetDataPlaneInfo(ctx context.Context) (ModelDataPlaneInfo, bool)

GetDataPlaneInfo returns the value of the DataPlaneInfo field in ServingEndpointDetailed as a ModelDataPlaneInfo value. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpointDetailed) GetPendingConfig added in v1.61.0

GetPendingConfig returns the value of the PendingConfig field in ServingEndpointDetailed as a EndpointPendingConfig value. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpointDetailed) GetState added in v1.61.0

GetState returns the value of the State field in ServingEndpointDetailed as a EndpointState value. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpointDetailed) GetTags added in v1.61.0

GetTags returns the value of the Tags field in ServingEndpointDetailed as a slice of EndpointTag values. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpointDetailed) SetAiGateway added in v1.61.0

func (o *ServingEndpointDetailed) SetAiGateway(ctx context.Context, v AiGatewayConfig)

SetAiGateway sets the value of the AiGateway field in ServingEndpointDetailed.

func (*ServingEndpointDetailed) SetConfig added in v1.61.0

SetConfig sets the value of the Config field in ServingEndpointDetailed.

func (*ServingEndpointDetailed) SetDataPlaneInfo added in v1.61.0

func (o *ServingEndpointDetailed) SetDataPlaneInfo(ctx context.Context, v ModelDataPlaneInfo)

SetDataPlaneInfo sets the value of the DataPlaneInfo field in ServingEndpointDetailed.

func (*ServingEndpointDetailed) SetPendingConfig added in v1.61.0

func (o *ServingEndpointDetailed) SetPendingConfig(ctx context.Context, v EndpointPendingConfig)

SetPendingConfig sets the value of the PendingConfig field in ServingEndpointDetailed.

func (*ServingEndpointDetailed) SetState added in v1.61.0

SetState sets the value of the State field in ServingEndpointDetailed.

func (*ServingEndpointDetailed) SetTags added in v1.61.0

func (o *ServingEndpointDetailed) SetTags(ctx context.Context, v []EndpointTag)

SetTags sets the value of the Tags field in ServingEndpointDetailed.

func (*ServingEndpointDetailed) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServingEndpointDetailed) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServingEndpointDetailed)

func (*ServingEndpointDetailed) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServingEndpointDetailed) SyncEffectiveFieldsDuringRead(existingState ServingEndpointDetailed)

func (ServingEndpointDetailed) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServingEndpointDetailed only implements ToObjectValue() and Type().

func (ServingEndpointDetailed) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServingEndpointPermission

type ServingEndpointPermission struct {
	Inherited types.Bool `tfsdk:"inherited" tf:"optional"`

	InheritedFromObject types.List `tfsdk:"inherited_from_object" tf:"optional"`
	// Permission level
	PermissionLevel types.String `tfsdk:"permission_level" tf:"optional"`
}

func (ServingEndpointPermission) GetComplexFieldTypes added in v1.61.0

func (a ServingEndpointPermission) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointPermission. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServingEndpointPermission) GetInheritedFromObject added in v1.61.0

func (o *ServingEndpointPermission) GetInheritedFromObject(ctx context.Context) ([]types.String, bool)

GetInheritedFromObject returns the value of the InheritedFromObject field in ServingEndpointPermission as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*ServingEndpointPermission) SetInheritedFromObject added in v1.61.0

func (o *ServingEndpointPermission) SetInheritedFromObject(ctx context.Context, v []types.String)

SetInheritedFromObject sets the value of the InheritedFromObject field in ServingEndpointPermission.

func (*ServingEndpointPermission) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServingEndpointPermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServingEndpointPermission)

func (*ServingEndpointPermission) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServingEndpointPermission) SyncEffectiveFieldsDuringRead(existingState ServingEndpointPermission)

func (ServingEndpointPermission) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServingEndpointPermission only implements ToObjectValue() and Type().

func (ServingEndpointPermission) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServingEndpointPermissions

type ServingEndpointPermissions struct {
	AccessControlList types.List `tfsdk:"access_control_list" tf:"optional"`

	ObjectId types.String `tfsdk:"object_id" tf:"optional"`

	ObjectType types.String `tfsdk:"object_type" tf:"optional"`
}

func (*ServingEndpointPermissions) GetAccessControlList added in v1.61.0

GetAccessControlList returns the value of the AccessControlList field in ServingEndpointPermissions as a slice of ServingEndpointAccessControlResponse values. If the field is unknown or null, the boolean return value is false.

func (ServingEndpointPermissions) GetComplexFieldTypes added in v1.61.0

func (a ServingEndpointPermissions) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointPermissions. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServingEndpointPermissions) SetAccessControlList added in v1.61.0

SetAccessControlList sets the value of the AccessControlList field in ServingEndpointPermissions.

func (*ServingEndpointPermissions) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServingEndpointPermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServingEndpointPermissions)

func (*ServingEndpointPermissions) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServingEndpointPermissions) SyncEffectiveFieldsDuringRead(existingState ServingEndpointPermissions)

func (ServingEndpointPermissions) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServingEndpointPermissions only implements ToObjectValue() and Type().

func (ServingEndpointPermissions) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServingEndpointPermissionsDescription

type ServingEndpointPermissionsDescription struct {
	Description types.String `tfsdk:"description" tf:"optional"`
	// Permission level
	PermissionLevel types.String `tfsdk:"permission_level" tf:"optional"`
}

func (ServingEndpointPermissionsDescription) GetComplexFieldTypes added in v1.61.0

func (a ServingEndpointPermissionsDescription) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointPermissionsDescription. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServingEndpointPermissionsDescription) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServingEndpointPermissionsDescription) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServingEndpointPermissionsDescription)

func (*ServingEndpointPermissionsDescription) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServingEndpointPermissionsDescription) SyncEffectiveFieldsDuringRead(existingState ServingEndpointPermissionsDescription)

func (ServingEndpointPermissionsDescription) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServingEndpointPermissionsDescription only implements ToObjectValue() and Type().

func (ServingEndpointPermissionsDescription) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ServingEndpointPermissionsRequest

type ServingEndpointPermissionsRequest struct {
	AccessControlList types.List `tfsdk:"access_control_list" tf:"optional"`
	// The serving endpoint for which to get or manage permissions.
	ServingEndpointId types.String `tfsdk:"-"`
}

func (*ServingEndpointPermissionsRequest) GetAccessControlList added in v1.61.0

GetAccessControlList returns the value of the AccessControlList field in ServingEndpointPermissionsRequest as a slice of ServingEndpointAccessControlRequest values. If the field is unknown or null, the boolean return value is false.

func (ServingEndpointPermissionsRequest) GetComplexFieldTypes added in v1.61.0

func (a ServingEndpointPermissionsRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServingEndpointPermissionsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ServingEndpointPermissionsRequest) SetAccessControlList added in v1.61.0

SetAccessControlList sets the value of the AccessControlList field in ServingEndpointPermissionsRequest.

func (*ServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServingEndpointPermissionsRequest)

func (*ServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServingEndpointPermissionsRequest) SyncEffectiveFieldsDuringRead(existingState ServingEndpointPermissionsRequest)

func (ServingEndpointPermissionsRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServingEndpointPermissionsRequest only implements ToObjectValue() and Type().

func (ServingEndpointPermissionsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type TrafficConfig

type TrafficConfig struct {
	// The list of routes that define traffic to each served entity.
	Routes types.List `tfsdk:"routes" tf:"optional"`
}

func (TrafficConfig) GetComplexFieldTypes added in v1.61.0

func (a TrafficConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in TrafficConfig. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*TrafficConfig) GetRoutes added in v1.61.0

func (o *TrafficConfig) GetRoutes(ctx context.Context) ([]Route, bool)

GetRoutes returns the value of the Routes field in TrafficConfig as a slice of Route values. If the field is unknown or null, the boolean return value is false.

func (*TrafficConfig) SetRoutes added in v1.61.0

func (o *TrafficConfig) SetRoutes(ctx context.Context, v []Route)

SetRoutes sets the value of the Routes field in TrafficConfig.

func (*TrafficConfig) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *TrafficConfig) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrafficConfig)

func (*TrafficConfig) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *TrafficConfig) SyncEffectiveFieldsDuringRead(existingState TrafficConfig)

func (TrafficConfig) ToObjectValue added in v1.61.0

func (o TrafficConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, TrafficConfig only implements ToObjectValue() and Type().

func (TrafficConfig) Type added in v1.61.0

func (o TrafficConfig) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type V1ResponseChoiceElement

type V1ResponseChoiceElement struct {
	// The finish reason returned by the endpoint.
	FinishReason types.String `tfsdk:"finishReason" tf:"optional"`
	// The index of the choice in the __chat or completions__ response.
	Index types.Int64 `tfsdk:"index" tf:"optional"`
	// The logprobs returned only by the __completions__ endpoint.
	Logprobs types.Int64 `tfsdk:"logprobs" tf:"optional"`
	// The message response from the __chat__ endpoint.
	Message types.List `tfsdk:"message" tf:"optional,object"`
	// The text response from the __completions__ endpoint.
	Text types.String `tfsdk:"text" tf:"optional"`
}

func (V1ResponseChoiceElement) GetComplexFieldTypes added in v1.61.0

func (a V1ResponseChoiceElement) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in V1ResponseChoiceElement. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*V1ResponseChoiceElement) GetMessage added in v1.61.0

func (o *V1ResponseChoiceElement) GetMessage(ctx context.Context) (ChatMessage, bool)

GetMessage returns the value of the Message field in V1ResponseChoiceElement as a ChatMessage value. If the field is unknown or null, the boolean return value is false.

func (*V1ResponseChoiceElement) SetMessage added in v1.61.0

func (o *V1ResponseChoiceElement) SetMessage(ctx context.Context, v ChatMessage)

SetMessage sets the value of the Message field in V1ResponseChoiceElement.

func (*V1ResponseChoiceElement) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *V1ResponseChoiceElement) SyncEffectiveFieldsDuringCreateOrUpdate(plan V1ResponseChoiceElement)

func (*V1ResponseChoiceElement) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *V1ResponseChoiceElement) SyncEffectiveFieldsDuringRead(existingState V1ResponseChoiceElement)

func (V1ResponseChoiceElement) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, V1ResponseChoiceElement only implements ToObjectValue() and Type().

func (V1ResponseChoiceElement) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

Jump to

Keyboard shortcuts

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