sql_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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControl

type AccessControl struct {
	GroupName types.String `tfsdk:"group_name" tf:"optional"`
	// * `CAN_VIEW`: Can view the query * `CAN_RUN`: Can run the query *
	// `CAN_EDIT`: Can edit the query * `CAN_MANAGE`: Can manage the query
	PermissionLevel types.String `tfsdk:"permission_level" tf:"optional"`

	UserName types.String `tfsdk:"user_name" tf:"optional"`
}

func (AccessControl) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in AccessControl. 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 (*AccessControl) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AccessControl) SyncEffectiveFieldsDuringCreateOrUpdate(plan AccessControl)

func (*AccessControl) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AccessControl) SyncEffectiveFieldsDuringRead(existingState AccessControl)

func (AccessControl) ToObjectValue added in v1.61.0

func (o AccessControl) 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, AccessControl only implements ToObjectValue() and Type().

func (AccessControl) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type Alert

type Alert struct {
	// Trigger conditions of the alert.
	Condition types.List `tfsdk:"condition" tf:"optional,object"`
	// The timestamp indicating when the alert was created.
	CreateTime types.String `tfsdk:"create_time" tf:"optional"`
	// Custom body of alert notification, if it exists. See [here] for custom
	// templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomBody types.String `tfsdk:"custom_body" tf:"optional"`
	// Custom subject of alert notification, if it exists. This can include
	// email subject entries and Slack notification headers, for example. See
	// [here] for custom templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomSubject types.String `tfsdk:"custom_subject" tf:"optional"`
	// The display name of the alert.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// UUID identifying the alert.
	Id types.String `tfsdk:"id" tf:"optional"`
	// The workspace state of the alert. Used for tracking trashed status.
	LifecycleState types.String `tfsdk:"lifecycle_state" tf:"optional"`
	// Whether to notify alert subscribers when alert returns back to normal.
	NotifyOnOk types.Bool `tfsdk:"notify_on_ok" tf:"optional"`
	// The owner's username. This field is set to "Unavailable" if the user has
	// been deleted.
	OwnerUserName types.String `tfsdk:"owner_user_name" tf:"optional"`
	// The workspace path of the folder containing the alert.
	ParentPath types.String `tfsdk:"parent_path" tf:"optional"`
	// UUID of the query attached to the alert.
	QueryId types.String `tfsdk:"query_id" tf:"optional"`
	// Number of seconds an alert must wait after being triggered to rearm
	// itself. After rearming, it can be triggered again. If 0 or not specified,
	// the alert will not be triggered again.
	SecondsToRetrigger types.Int64 `tfsdk:"seconds_to_retrigger" tf:"optional"`
	// Current state of the alert's trigger status. This field is set to UNKNOWN
	// if the alert has not yet been evaluated or ran into an error during the
	// last evaluation.
	State types.String `tfsdk:"state" tf:"optional"`
	// Timestamp when the alert was last triggered, if the alert has been
	// triggered before.
	TriggerTime types.String `tfsdk:"trigger_time" tf:"optional"`
	// The timestamp indicating when the alert was updated.
	UpdateTime types.String `tfsdk:"update_time" tf:"optional"`
}

func (Alert) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Alert. 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 (*Alert) GetCondition added in v1.61.0

func (o *Alert) GetCondition(ctx context.Context) (AlertCondition, bool)

GetCondition returns the value of the Condition field in Alert as a AlertCondition value. If the field is unknown or null, the boolean return value is false.

func (*Alert) SetCondition added in v1.61.0

func (o *Alert) SetCondition(ctx context.Context, v AlertCondition)

SetCondition sets the value of the Condition field in Alert.

func (*Alert) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Alert) SyncEffectiveFieldsDuringCreateOrUpdate(plan Alert)

func (*Alert) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Alert) SyncEffectiveFieldsDuringRead(existingState Alert)

func (Alert) ToObjectValue added in v1.61.0

func (o Alert) 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, Alert only implements ToObjectValue() and Type().

func (Alert) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type AlertCondition

type AlertCondition struct {
	// Alert state if result is empty.
	EmptyResultState types.String `tfsdk:"empty_result_state" tf:"optional"`
	// Operator used for comparison in alert evaluation.
	Op types.String `tfsdk:"op" tf:"optional"`
	// Name of the column from the query result to use for comparison in alert
	// evaluation.
	Operand types.List `tfsdk:"operand" tf:"optional,object"`
	// Threshold value used for comparison in alert evaluation.
	Threshold types.List `tfsdk:"threshold" tf:"optional,object"`
}

func (AlertCondition) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertCondition. 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 (*AlertCondition) GetOperand added in v1.61.0

GetOperand returns the value of the Operand field in AlertCondition as a AlertConditionOperand value. If the field is unknown or null, the boolean return value is false.

func (*AlertCondition) GetThreshold added in v1.61.0

func (o *AlertCondition) GetThreshold(ctx context.Context) (AlertConditionThreshold, bool)

GetThreshold returns the value of the Threshold field in AlertCondition as a AlertConditionThreshold value. If the field is unknown or null, the boolean return value is false.

func (*AlertCondition) SetOperand added in v1.61.0

func (o *AlertCondition) SetOperand(ctx context.Context, v AlertConditionOperand)

SetOperand sets the value of the Operand field in AlertCondition.

func (*AlertCondition) SetThreshold added in v1.61.0

func (o *AlertCondition) SetThreshold(ctx context.Context, v AlertConditionThreshold)

SetThreshold sets the value of the Threshold field in AlertCondition.

func (*AlertCondition) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AlertCondition) SyncEffectiveFieldsDuringCreateOrUpdate(plan AlertCondition)

func (*AlertCondition) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AlertCondition) SyncEffectiveFieldsDuringRead(existingState AlertCondition)

func (AlertCondition) ToObjectValue added in v1.61.0

func (o AlertCondition) 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, AlertCondition only implements ToObjectValue() and Type().

func (AlertCondition) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type AlertConditionOperand

type AlertConditionOperand struct {
	Column types.List `tfsdk:"column" tf:"optional,object"`
}

func (*AlertConditionOperand) GetColumn added in v1.61.0

GetColumn returns the value of the Column field in AlertConditionOperand as a AlertOperandColumn value. If the field is unknown or null, the boolean return value is false.

func (AlertConditionOperand) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertConditionOperand. 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 (*AlertConditionOperand) SetColumn added in v1.61.0

SetColumn sets the value of the Column field in AlertConditionOperand.

func (*AlertConditionOperand) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AlertConditionOperand) SyncEffectiveFieldsDuringCreateOrUpdate(plan AlertConditionOperand)

func (*AlertConditionOperand) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AlertConditionOperand) SyncEffectiveFieldsDuringRead(existingState AlertConditionOperand)

func (AlertConditionOperand) 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, AlertConditionOperand only implements ToObjectValue() and Type().

func (AlertConditionOperand) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AlertConditionThreshold

type AlertConditionThreshold struct {
	Value types.List `tfsdk:"value" tf:"optional,object"`
}

func (AlertConditionThreshold) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertConditionThreshold. 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 (*AlertConditionThreshold) GetValue added in v1.61.0

GetValue returns the value of the Value field in AlertConditionThreshold as a AlertOperandValue value. If the field is unknown or null, the boolean return value is false.

func (*AlertConditionThreshold) SetValue added in v1.61.0

SetValue sets the value of the Value field in AlertConditionThreshold.

func (*AlertConditionThreshold) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AlertConditionThreshold) SyncEffectiveFieldsDuringCreateOrUpdate(plan AlertConditionThreshold)

func (*AlertConditionThreshold) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AlertConditionThreshold) SyncEffectiveFieldsDuringRead(existingState AlertConditionThreshold)

func (AlertConditionThreshold) 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, AlertConditionThreshold only implements ToObjectValue() and Type().

func (AlertConditionThreshold) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AlertOperandColumn

type AlertOperandColumn struct {
	Name types.String `tfsdk:"name" tf:"optional"`
}

func (AlertOperandColumn) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertOperandColumn. 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 (*AlertOperandColumn) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AlertOperandColumn) SyncEffectiveFieldsDuringCreateOrUpdate(plan AlertOperandColumn)

func (*AlertOperandColumn) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AlertOperandColumn) SyncEffectiveFieldsDuringRead(existingState AlertOperandColumn)

func (AlertOperandColumn) 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, AlertOperandColumn only implements ToObjectValue() and Type().

func (AlertOperandColumn) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AlertOperandValue

type AlertOperandValue struct {
	BoolValue types.Bool `tfsdk:"bool_value" tf:"optional"`

	DoubleValue types.Float64 `tfsdk:"double_value" tf:"optional"`

	StringValue types.String `tfsdk:"string_value" tf:"optional"`
}

func (AlertOperandValue) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertOperandValue. 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 (*AlertOperandValue) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AlertOperandValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan AlertOperandValue)

func (*AlertOperandValue) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AlertOperandValue) SyncEffectiveFieldsDuringRead(existingState AlertOperandValue)

func (AlertOperandValue) ToObjectValue added in v1.61.0

func (o AlertOperandValue) 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, AlertOperandValue only implements ToObjectValue() and Type().

func (AlertOperandValue) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type AlertOptions

type AlertOptions struct {
	// Name of column in the query result to compare in alert evaluation.
	Column types.String `tfsdk:"column" tf:""`
	// Custom body of alert notification, if it exists. See [here] for custom
	// templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomBody types.String `tfsdk:"custom_body" tf:"optional"`
	// Custom subject of alert notification, if it exists. This includes email
	// subject, Slack notification header, etc. See [here] for custom templating
	// instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomSubject types.String `tfsdk:"custom_subject" tf:"optional"`
	// State that alert evaluates to when query result is empty.
	EmptyResultState types.String `tfsdk:"empty_result_state" tf:"optional"`
	// Whether or not the alert is muted. If an alert is muted, it will not
	// notify users and notification destinations when triggered.
	Muted types.Bool `tfsdk:"muted" tf:"optional"`
	// Operator used to compare in alert evaluation: `>`, `>=`, `<`, `<=`, `==`,
	// `!=`
	Op types.String `tfsdk:"op" tf:""`
	// Value used to compare in alert evaluation. Supported types include
	// strings (eg. 'foobar'), floats (eg. 123.4), and booleans (true).
	Value types.Object `tfsdk:"value" tf:""`
}

Alert configuration options.

func (AlertOptions) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertOptions. 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 (*AlertOptions) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AlertOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan AlertOptions)

func (*AlertOptions) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AlertOptions) SyncEffectiveFieldsDuringRead(existingState AlertOptions)

func (AlertOptions) ToObjectValue added in v1.61.0

func (o AlertOptions) 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, AlertOptions only implements ToObjectValue() and Type().

func (AlertOptions) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type AlertQuery

type AlertQuery struct {
	// The timestamp when this query was created.
	CreatedAt types.String `tfsdk:"created_at" tf:"optional"`
	// Data source ID maps to the ID of the data source used by the resource and
	// is distinct from the warehouse ID. [Learn more]
	//
	// [Learn more]: https://docs.databricks.com/api/workspace/datasources/list
	DataSourceId types.String `tfsdk:"data_source_id" tf:"optional"`
	// General description that conveys additional information about this query
	// such as usage notes.
	Description types.String `tfsdk:"description" tf:"optional"`
	// Query ID.
	Id types.String `tfsdk:"id" tf:"optional"`
	// Indicates whether the query is trashed. Trashed queries can't be used in
	// dashboards, or appear in search results. If this boolean is `true`, the
	// `options` property for this query includes a `moved_to_trash_at`
	// timestamp. Trashed queries are permanently deleted after 30 days.
	IsArchived types.Bool `tfsdk:"is_archived" tf:"optional"`
	// Whether the query is a draft. Draft queries only appear in list views for
	// their owners. Visualizations from draft queries cannot appear on
	// dashboards.
	IsDraft types.Bool `tfsdk:"is_draft" tf:"optional"`
	// Text parameter types are not safe from SQL injection for all types of
	// data source. Set this Boolean parameter to `true` if a query either does
	// not use any text type parameters or uses a data source type where text
	// type parameters are handled safely.
	IsSafe types.Bool `tfsdk:"is_safe" tf:"optional"`
	// The title of this query that appears in list views, widget headings, and
	// on the query page.
	Name types.String `tfsdk:"name" tf:"optional"`

	Options types.List `tfsdk:"options" tf:"optional,object"`
	// The text of the query to be run.
	Query types.String `tfsdk:"query" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
	// The timestamp at which this query was last updated.
	UpdatedAt types.String `tfsdk:"updated_at" tf:"optional"`
	// The ID of the user who owns the query.
	UserId types.Int64 `tfsdk:"user_id" tf:"optional"`
}

func (AlertQuery) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in AlertQuery. 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 (*AlertQuery) GetOptions added in v1.61.0

func (o *AlertQuery) GetOptions(ctx context.Context) (QueryOptions, bool)

GetOptions returns the value of the Options field in AlertQuery as a QueryOptions value. If the field is unknown or null, the boolean return value is false.

func (*AlertQuery) GetTags added in v1.61.0

func (o *AlertQuery) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*AlertQuery) SetOptions added in v1.61.0

func (o *AlertQuery) SetOptions(ctx context.Context, v QueryOptions)

SetOptions sets the value of the Options field in AlertQuery.

func (*AlertQuery) SetTags added in v1.61.0

func (o *AlertQuery) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in AlertQuery.

func (*AlertQuery) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AlertQuery) SyncEffectiveFieldsDuringCreateOrUpdate(plan AlertQuery)

func (*AlertQuery) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AlertQuery) SyncEffectiveFieldsDuringRead(existingState AlertQuery)

func (AlertQuery) ToObjectValue added in v1.61.0

func (o AlertQuery) 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, AlertQuery only implements ToObjectValue() and Type().

func (AlertQuery) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type BaseChunkInfo

type BaseChunkInfo struct {
	// The number of bytes in the result chunk. This field is not available when
	// using `INLINE` disposition.
	ByteCount types.Int64 `tfsdk:"byte_count" tf:"optional"`
	// The position within the sequence of result set chunks.
	ChunkIndex types.Int64 `tfsdk:"chunk_index" tf:"optional"`
	// The number of rows within the result chunk.
	RowCount types.Int64 `tfsdk:"row_count" tf:"optional"`
	// The starting row offset within the result set.
	RowOffset types.Int64 `tfsdk:"row_offset" tf:"optional"`
}

Describes metadata for a particular chunk, within a result set; this structure is used both within a manifest, and when fetching individual chunk data or links.

func (BaseChunkInfo) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in BaseChunkInfo. 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 (*BaseChunkInfo) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *BaseChunkInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan BaseChunkInfo)

func (*BaseChunkInfo) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *BaseChunkInfo) SyncEffectiveFieldsDuringRead(existingState BaseChunkInfo)

func (BaseChunkInfo) ToObjectValue added in v1.61.0

func (o BaseChunkInfo) 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, BaseChunkInfo only implements ToObjectValue() and Type().

func (BaseChunkInfo) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type CancelExecutionRequest

type CancelExecutionRequest struct {
	// The statement ID is returned upon successfully submitting a SQL
	// statement, and is a required reference for all subsequent calls.
	StatementId types.String `tfsdk:"-"`
}

Cancel statement execution

func (CancelExecutionRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelExecutionRequest. 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 (*CancelExecutionRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CancelExecutionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelExecutionRequest)

func (*CancelExecutionRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CancelExecutionRequest) SyncEffectiveFieldsDuringRead(existingState CancelExecutionRequest)

func (CancelExecutionRequest) 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, CancelExecutionRequest only implements ToObjectValue() and Type().

func (CancelExecutionRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CancelExecutionResponse

type CancelExecutionResponse struct {
}

func (CancelExecutionResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelExecutionResponse. 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 (*CancelExecutionResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CancelExecutionResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CancelExecutionResponse)

func (*CancelExecutionResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CancelExecutionResponse) SyncEffectiveFieldsDuringRead(existingState CancelExecutionResponse)

func (CancelExecutionResponse) 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, CancelExecutionResponse only implements ToObjectValue() and Type().

func (CancelExecutionResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type Channel

type Channel struct {
	DbsqlVersion types.String `tfsdk:"dbsql_version" tf:"optional"`

	Name types.String `tfsdk:"name" tf:"optional"`
}

Configures the channel name and DBSQL version of the warehouse. CHANNEL_NAME_CUSTOM should be chosen only when `dbsql_version` is specified.

func (Channel) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Channel. 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 (*Channel) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Channel) SyncEffectiveFieldsDuringCreateOrUpdate(plan Channel)

func (*Channel) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Channel) SyncEffectiveFieldsDuringRead(existingState Channel)

func (Channel) ToObjectValue added in v1.61.0

func (o Channel) 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, Channel only implements ToObjectValue() and Type().

func (Channel) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type ChannelInfo

type ChannelInfo struct {
	// DB SQL Version the Channel is mapped to.
	DbsqlVersion types.String `tfsdk:"dbsql_version" tf:"optional"`
	// Name of the channel
	Name types.String `tfsdk:"name" tf:"optional"`
}

Details about a Channel.

func (ChannelInfo) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ChannelInfo. 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 (*ChannelInfo) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ChannelInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ChannelInfo)

func (*ChannelInfo) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ChannelInfo) SyncEffectiveFieldsDuringRead(existingState ChannelInfo)

func (ChannelInfo) ToObjectValue added in v1.61.0

func (o ChannelInfo) 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, ChannelInfo only implements ToObjectValue() and Type().

func (ChannelInfo) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type ColumnInfo

type ColumnInfo struct {
	// The name of the column.
	Name types.String `tfsdk:"name" tf:"optional"`
	// The ordinal position of the column (starting at position 0).
	Position types.Int64 `tfsdk:"position" tf:"optional"`
	// The format of the interval type.
	TypeIntervalType types.String `tfsdk:"type_interval_type" tf:"optional"`
	// The name of the base data type. This doesn't include details for complex
	// types such as STRUCT, MAP or ARRAY.
	TypeName types.String `tfsdk:"type_name" tf:"optional"`
	// Specifies the number of digits in a number. This applies to the DECIMAL
	// type.
	TypePrecision types.Int64 `tfsdk:"type_precision" tf:"optional"`
	// Specifies the number of digits to the right of the decimal point in a
	// number. This applies to the DECIMAL type.
	TypeScale types.Int64 `tfsdk:"type_scale" tf:"optional"`
	// The full SQL type specification.
	TypeText types.String `tfsdk:"type_text" tf:"optional"`
}

func (ColumnInfo) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ColumnInfo. 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 (*ColumnInfo) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ColumnInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan ColumnInfo)

func (*ColumnInfo) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ColumnInfo) SyncEffectiveFieldsDuringRead(existingState ColumnInfo)

func (ColumnInfo) ToObjectValue added in v1.61.0

func (o ColumnInfo) 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, ColumnInfo only implements ToObjectValue() and Type().

func (ColumnInfo) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type CreateAlert

type CreateAlert struct {
	// Name of the alert.
	Name types.String `tfsdk:"name" tf:""`
	// Alert configuration options.
	Options types.List `tfsdk:"options" tf:"object"`
	// The identifier of the workspace folder containing the object.
	Parent types.String `tfsdk:"parent" tf:"optional"`
	// Query ID.
	QueryId types.String `tfsdk:"query_id" tf:""`
	// Number of seconds after being triggered before the alert rearms itself
	// and can be triggered again. If `null`, alert will never be triggered
	// again.
	Rearm types.Int64 `tfsdk:"rearm" tf:"optional"`
}

func (CreateAlert) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAlert. 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 (*CreateAlert) GetOptions added in v1.61.0

func (o *CreateAlert) GetOptions(ctx context.Context) (AlertOptions, bool)

GetOptions returns the value of the Options field in CreateAlert as a AlertOptions value. If the field is unknown or null, the boolean return value is false.

func (*CreateAlert) SetOptions added in v1.61.0

func (o *CreateAlert) SetOptions(ctx context.Context, v AlertOptions)

SetOptions sets the value of the Options field in CreateAlert.

func (*CreateAlert) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAlert)

func (*CreateAlert) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateAlert) SyncEffectiveFieldsDuringRead(existingState CreateAlert)

func (CreateAlert) ToObjectValue added in v1.61.0

func (o CreateAlert) 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, CreateAlert only implements ToObjectValue() and Type().

func (CreateAlert) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type CreateAlertRequest

type CreateAlertRequest struct {
	Alert types.List `tfsdk:"alert" tf:"optional,object"`
}

func (*CreateAlertRequest) GetAlert added in v1.61.0

GetAlert returns the value of the Alert field in CreateAlertRequest as a CreateAlertRequestAlert value. If the field is unknown or null, the boolean return value is false.

func (CreateAlertRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAlertRequest. 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 (*CreateAlertRequest) SetAlert added in v1.61.0

SetAlert sets the value of the Alert field in CreateAlertRequest.

func (*CreateAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAlertRequest)

func (*CreateAlertRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateAlertRequest) SyncEffectiveFieldsDuringRead(existingState CreateAlertRequest)

func (CreateAlertRequest) 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, CreateAlertRequest only implements ToObjectValue() and Type().

func (CreateAlertRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateAlertRequestAlert

type CreateAlertRequestAlert struct {
	// Trigger conditions of the alert.
	Condition types.List `tfsdk:"condition" tf:"optional,object"`
	// Custom body of alert notification, if it exists. See [here] for custom
	// templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomBody types.String `tfsdk:"custom_body" tf:"optional"`
	// Custom subject of alert notification, if it exists. This can include
	// email subject entries and Slack notification headers, for example. See
	// [here] for custom templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomSubject types.String `tfsdk:"custom_subject" tf:"optional"`
	// The display name of the alert.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// Whether to notify alert subscribers when alert returns back to normal.
	NotifyOnOk types.Bool `tfsdk:"notify_on_ok" tf:"optional"`
	// The workspace path of the folder containing the alert.
	ParentPath types.String `tfsdk:"parent_path" tf:"optional"`
	// UUID of the query attached to the alert.
	QueryId types.String `tfsdk:"query_id" tf:"optional"`
	// Number of seconds an alert must wait after being triggered to rearm
	// itself. After rearming, it can be triggered again. If 0 or not specified,
	// the alert will not be triggered again.
	SecondsToRetrigger types.Int64 `tfsdk:"seconds_to_retrigger" tf:"optional"`
}

func (CreateAlertRequestAlert) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateAlertRequestAlert. 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 (*CreateAlertRequestAlert) GetCondition added in v1.61.0

func (o *CreateAlertRequestAlert) GetCondition(ctx context.Context) (AlertCondition, bool)

GetCondition returns the value of the Condition field in CreateAlertRequestAlert as a AlertCondition value. If the field is unknown or null, the boolean return value is false.

func (*CreateAlertRequestAlert) SetCondition added in v1.61.0

func (o *CreateAlertRequestAlert) SetCondition(ctx context.Context, v AlertCondition)

SetCondition sets the value of the Condition field in CreateAlertRequestAlert.

func (*CreateAlertRequestAlert) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateAlertRequestAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateAlertRequestAlert)

func (*CreateAlertRequestAlert) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateAlertRequestAlert) SyncEffectiveFieldsDuringRead(existingState CreateAlertRequestAlert)

func (CreateAlertRequestAlert) 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, CreateAlertRequestAlert only implements ToObjectValue() and Type().

func (CreateAlertRequestAlert) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateQueryRequest

type CreateQueryRequest struct {
	Query types.List `tfsdk:"query" tf:"optional,object"`
}

func (CreateQueryRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateQueryRequest. 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 (*CreateQueryRequest) GetQuery added in v1.61.0

GetQuery returns the value of the Query field in CreateQueryRequest as a CreateQueryRequestQuery value. If the field is unknown or null, the boolean return value is false.

func (*CreateQueryRequest) SetQuery added in v1.61.0

SetQuery sets the value of the Query field in CreateQueryRequest.

func (*CreateQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateQueryRequest)

func (*CreateQueryRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateQueryRequest) SyncEffectiveFieldsDuringRead(existingState CreateQueryRequest)

func (CreateQueryRequest) 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, CreateQueryRequest only implements ToObjectValue() and Type().

func (CreateQueryRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateQueryRequestQuery

type CreateQueryRequestQuery struct {
	// Whether to apply a 1000 row limit to the query result.
	ApplyAutoLimit types.Bool `tfsdk:"apply_auto_limit" tf:"optional"`
	// Name of the catalog where this query will be executed.
	Catalog types.String `tfsdk:"catalog" tf:"optional"`
	// General description that conveys additional information about this query
	// such as usage notes.
	Description types.String `tfsdk:"description" tf:"optional"`
	// Display name of the query that appears in list views, widget headings,
	// and on the query page.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// List of query parameter definitions.
	Parameters types.List `tfsdk:"parameters" tf:"optional"`
	// Workspace path of the workspace folder containing the object.
	ParentPath types.String `tfsdk:"parent_path" tf:"optional"`
	// Text of the query to be run.
	QueryText types.String `tfsdk:"query_text" tf:"optional"`
	// Sets the "Run as" role for the object.
	RunAsMode types.String `tfsdk:"run_as_mode" tf:"optional"`
	// Name of the schema where this query will be executed.
	Schema types.String `tfsdk:"schema" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
	// ID of the SQL warehouse attached to the query.
	WarehouseId types.String `tfsdk:"warehouse_id" tf:"optional"`
}

func (CreateQueryRequestQuery) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateQueryRequestQuery. 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 (*CreateQueryRequestQuery) GetParameters added in v1.61.0

func (o *CreateQueryRequestQuery) GetParameters(ctx context.Context) ([]QueryParameter, bool)

GetParameters returns the value of the Parameters field in CreateQueryRequestQuery as a slice of QueryParameter values. If the field is unknown or null, the boolean return value is false.

func (*CreateQueryRequestQuery) GetTags added in v1.61.0

func (o *CreateQueryRequestQuery) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*CreateQueryRequestQuery) SetParameters added in v1.61.0

func (o *CreateQueryRequestQuery) SetParameters(ctx context.Context, v []QueryParameter)

SetParameters sets the value of the Parameters field in CreateQueryRequestQuery.

func (*CreateQueryRequestQuery) SetTags added in v1.61.0

func (o *CreateQueryRequestQuery) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in CreateQueryRequestQuery.

func (*CreateQueryRequestQuery) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateQueryRequestQuery) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateQueryRequestQuery)

func (*CreateQueryRequestQuery) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateQueryRequestQuery) SyncEffectiveFieldsDuringRead(existingState CreateQueryRequestQuery)

func (CreateQueryRequestQuery) 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, CreateQueryRequestQuery only implements ToObjectValue() and Type().

func (CreateQueryRequestQuery) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateQueryVisualizationsLegacyRequest

type CreateQueryVisualizationsLegacyRequest struct {
	// A short description of this visualization. This is not displayed in the
	// UI.
	Description types.String `tfsdk:"description" tf:"optional"`
	// The name of the visualization that appears on dashboards and the query
	// screen.
	Name types.String `tfsdk:"name" tf:"optional"`
	// The options object varies widely from one visualization type to the next
	// and is unsupported. Databricks does not recommend modifying visualization
	// settings in JSON.
	Options types.Object `tfsdk:"options" tf:""`
	// The identifier returned by :method:queries/create
	QueryId types.String `tfsdk:"query_id" tf:""`
	// The type of visualization: chart, table, pivot table, and so on.
	Type_ types.String `tfsdk:"type" tf:""`
}

Add visualization to a query

func (CreateQueryVisualizationsLegacyRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateQueryVisualizationsLegacyRequest. 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 (*CreateQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateQueryVisualizationsLegacyRequest)

func (*CreateQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringRead(existingState CreateQueryVisualizationsLegacyRequest)

func (CreateQueryVisualizationsLegacyRequest) 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, CreateQueryVisualizationsLegacyRequest only implements ToObjectValue() and Type().

func (CreateQueryVisualizationsLegacyRequest) Type

Type implements basetypes.ObjectValuable.

type CreateVisualizationRequest

type CreateVisualizationRequest struct {
	Visualization types.List `tfsdk:"visualization" tf:"optional,object"`
}

func (CreateVisualizationRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateVisualizationRequest. 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 (*CreateVisualizationRequest) GetVisualization added in v1.61.0

GetVisualization returns the value of the Visualization field in CreateVisualizationRequest as a CreateVisualizationRequestVisualization value. If the field is unknown or null, the boolean return value is false.

func (*CreateVisualizationRequest) SetVisualization added in v1.61.0

SetVisualization sets the value of the Visualization field in CreateVisualizationRequest.

func (*CreateVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateVisualizationRequest)

func (*CreateVisualizationRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateVisualizationRequest) SyncEffectiveFieldsDuringRead(existingState CreateVisualizationRequest)

func (CreateVisualizationRequest) 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, CreateVisualizationRequest only implements ToObjectValue() and Type().

func (CreateVisualizationRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateVisualizationRequestVisualization

type CreateVisualizationRequestVisualization struct {
	// The display name of the visualization.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// UUID of the query that the visualization is attached to.
	QueryId types.String `tfsdk:"query_id" tf:"optional"`
	// The visualization options varies widely from one visualization type to
	// the next and is unsupported. Databricks does not recommend modifying
	// visualization options directly.
	SerializedOptions types.String `tfsdk:"serialized_options" tf:"optional"`
	// The visualization query plan varies widely from one visualization type to
	// the next and is unsupported. Databricks does not recommend modifying the
	// visualization query plan directly.
	SerializedQueryPlan types.String `tfsdk:"serialized_query_plan" tf:"optional"`
	// The type of visualization: counter, table, funnel, and so on.
	Type_ types.String `tfsdk:"type" tf:"optional"`
}

func (CreateVisualizationRequestVisualization) GetComplexFieldTypes added in v1.61.0

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateVisualizationRequestVisualization. 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 (*CreateVisualizationRequestVisualization) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateVisualizationRequestVisualization) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateVisualizationRequestVisualization)

func (*CreateVisualizationRequestVisualization) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateVisualizationRequestVisualization) SyncEffectiveFieldsDuringRead(existingState CreateVisualizationRequestVisualization)

func (CreateVisualizationRequestVisualization) 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, CreateVisualizationRequestVisualization only implements ToObjectValue() and Type().

func (CreateVisualizationRequestVisualization) Type

Type implements basetypes.ObjectValuable.

type CreateWarehouseRequest

type CreateWarehouseRequest struct {
	// The amount of time in minutes that a SQL warehouse must be idle (i.e., no
	// RUNNING queries) before it is automatically stopped.
	//
	// Supported values: - Must be >= 0 mins for serverless warehouses - Must be
	// == 0 or >= 10 mins for non-serverless warehouses - 0 indicates no
	// autostop.
	//
	// Defaults to 120 mins
	AutoStopMins types.Int64 `tfsdk:"auto_stop_mins" tf:"optional"`
	// Channel Details
	Channel types.List `tfsdk:"channel" tf:"optional,object"`
	// Size of the clusters allocated for this warehouse. Increasing the size of
	// a spark cluster allows you to run larger queries on it. If you want to
	// increase the number of concurrent queries, please tune max_num_clusters.
	//
	// Supported values: - 2X-Small - X-Small - Small - Medium - Large - X-Large
	// - 2X-Large - 3X-Large - 4X-Large
	ClusterSize types.String `tfsdk:"cluster_size" tf:"optional"`
	// warehouse creator name
	CreatorName types.String `tfsdk:"creator_name" tf:"optional"`
	// Configures whether the warehouse should use Photon optimized clusters.
	//
	// Defaults to false.
	EnablePhoton types.Bool `tfsdk:"enable_photon" tf:"optional"`
	// Configures whether the warehouse should use serverless compute
	EnableServerlessCompute types.Bool `tfsdk:"enable_serverless_compute" tf:"optional"`
	// Deprecated. Instance profile used to pass IAM role to the cluster
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// Maximum number of clusters that the autoscaler will create to handle
	// concurrent queries.
	//
	// Supported values: - Must be >= min_num_clusters - Must be <= 30.
	//
	// Defaults to min_clusters if unset.
	MaxNumClusters types.Int64 `tfsdk:"max_num_clusters" tf:"optional"`
	// Minimum number of available clusters that will be maintained for this SQL
	// warehouse. Increasing this will ensure that a larger number of clusters
	// are always running and therefore may reduce the cold start time for new
	// queries. This is similar to reserved vs. revocable cores in a resource
	// manager.
	//
	// Supported values: - Must be > 0 - Must be <= min(max_num_clusters, 30)
	//
	// Defaults to 1
	MinNumClusters types.Int64 `tfsdk:"min_num_clusters" tf:"optional"`
	// Logical name for the cluster.
	//
	// Supported values: - Must be unique within an org. - Must be less than 100
	// characters.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Configurations whether the warehouse should use spot instances.
	SpotInstancePolicy types.String `tfsdk:"spot_instance_policy" tf:"optional"`
	// A set of key-value pairs that will be tagged on all resources (e.g., AWS
	// instances and EBS volumes) associated with this SQL warehouse.
	//
	// Supported values: - Number of tags < 45.
	Tags types.List `tfsdk:"tags" tf:"optional,object"`
	// Warehouse type: `PRO` or `CLASSIC`. If you want to use serverless
	// compute, you must set to `PRO` and also set the field
	// `enable_serverless_compute` to `true`.
	WarehouseType types.String `tfsdk:"warehouse_type" tf:"optional"`
}

func (*CreateWarehouseRequest) GetChannel added in v1.61.0

func (o *CreateWarehouseRequest) GetChannel(ctx context.Context) (Channel, bool)

GetChannel returns the value of the Channel field in CreateWarehouseRequest as a Channel value. If the field is unknown or null, the boolean return value is false.

func (CreateWarehouseRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWarehouseRequest. 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 (*CreateWarehouseRequest) GetTags added in v1.61.0

GetTags returns the value of the Tags field in CreateWarehouseRequest as a EndpointTags value. If the field is unknown or null, the boolean return value is false.

func (*CreateWarehouseRequest) SetChannel added in v1.61.0

func (o *CreateWarehouseRequest) SetChannel(ctx context.Context, v Channel)

SetChannel sets the value of the Channel field in CreateWarehouseRequest.

func (*CreateWarehouseRequest) SetTags added in v1.61.0

SetTags sets the value of the Tags field in CreateWarehouseRequest.

func (*CreateWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateWarehouseRequest)

func (*CreateWarehouseRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateWarehouseRequest) SyncEffectiveFieldsDuringRead(existingState CreateWarehouseRequest)

func (CreateWarehouseRequest) 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, CreateWarehouseRequest only implements ToObjectValue() and Type().

func (CreateWarehouseRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateWarehouseResponse

type CreateWarehouseResponse struct {
	// Id for the SQL warehouse. This value is unique across all SQL warehouses.
	Id types.String `tfsdk:"id" tf:"optional"`
}

func (CreateWarehouseResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWarehouseResponse. 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 (*CreateWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateWarehouseResponse)

func (*CreateWarehouseResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState CreateWarehouseResponse)

func (CreateWarehouseResponse) 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, CreateWarehouseResponse only implements ToObjectValue() and Type().

func (CreateWarehouseResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateWidget

type CreateWidget struct {
	// Dashboard ID returned by :method:dashboards/create.
	DashboardId types.String `tfsdk:"dashboard_id" tf:""`
	// Widget ID returned by :method:dashboardwidgets/create
	Id types.String `tfsdk:"-"`

	Options types.List `tfsdk:"options" tf:"object"`
	// If this is a textbox widget, the application displays this text. This
	// field is ignored if the widget contains a visualization in the
	// `visualization` field.
	Text types.String `tfsdk:"text" tf:"optional"`
	// Query Vizualization ID returned by :method:queryvisualizations/create.
	VisualizationId types.String `tfsdk:"visualization_id" tf:"optional"`
	// Width of a widget
	Width types.Int64 `tfsdk:"width" tf:""`
}

func (CreateWidget) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateWidget. 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 (*CreateWidget) GetOptions added in v1.61.0

func (o *CreateWidget) GetOptions(ctx context.Context) (WidgetOptions, bool)

GetOptions returns the value of the Options field in CreateWidget as a WidgetOptions value. If the field is unknown or null, the boolean return value is false.

func (*CreateWidget) SetOptions added in v1.61.0

func (o *CreateWidget) SetOptions(ctx context.Context, v WidgetOptions)

SetOptions sets the value of the Options field in CreateWidget.

func (*CreateWidget) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateWidget) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateWidget)

func (*CreateWidget) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateWidget) SyncEffectiveFieldsDuringRead(existingState CreateWidget)

func (CreateWidget) ToObjectValue added in v1.61.0

func (o CreateWidget) 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, CreateWidget only implements ToObjectValue() and Type().

func (CreateWidget) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type Dashboard

type Dashboard struct {
	// Whether the authenticated user can edit the query definition.
	CanEdit types.Bool `tfsdk:"can_edit" tf:"optional"`
	// Timestamp when this dashboard was created.
	CreatedAt types.String `tfsdk:"created_at" tf:"optional"`
	// In the web application, query filters that share a name are coupled to a
	// single selection box if this value is `true`.
	DashboardFiltersEnabled types.Bool `tfsdk:"dashboard_filters_enabled" tf:"optional"`
	// The ID for this dashboard.
	Id types.String `tfsdk:"id" tf:"optional"`
	// Indicates whether a dashboard is trashed. Trashed dashboards won't appear
	// in list views. If this boolean is `true`, the `options` property for this
	// dashboard includes a `moved_to_trash_at` timestamp. Items in trash are
	// permanently deleted after 30 days.
	IsArchived types.Bool `tfsdk:"is_archived" tf:"optional"`
	// Whether a dashboard is a draft. Draft dashboards only appear in list
	// views for their owners.
	IsDraft types.Bool `tfsdk:"is_draft" tf:"optional"`
	// Indicates whether this query object appears in the current user's
	// favorites list. This flag determines whether the star icon for favorites
	// is selected.
	IsFavorite types.Bool `tfsdk:"is_favorite" tf:"optional"`
	// The title of the dashboard that appears in list views and at the top of
	// the dashboard page.
	Name types.String `tfsdk:"name" tf:"optional"`

	Options types.List `tfsdk:"options" tf:"optional,object"`
	// The identifier of the workspace folder containing the object.
	Parent types.String `tfsdk:"parent" tf:"optional"`
	// * `CAN_VIEW`: Can view the query * `CAN_RUN`: Can run the query *
	// `CAN_EDIT`: Can edit the query * `CAN_MANAGE`: Can manage the query
	PermissionTier types.String `tfsdk:"permission_tier" tf:"optional"`
	// URL slug. Usually mirrors the query name with dashes (`-`) instead of
	// spaces. Appears in the URL for this query.
	Slug types.String `tfsdk:"slug" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
	// Timestamp when this dashboard was last updated.
	UpdatedAt types.String `tfsdk:"updated_at" tf:"optional"`

	User types.List `tfsdk:"user" tf:"optional,object"`
	// The ID of the user who owns the dashboard.
	UserId types.Int64 `tfsdk:"user_id" tf:"optional"`

	Widgets types.List `tfsdk:"widgets" tf:"optional"`
}

A JSON representing a dashboard containing widgets of visualizations and text boxes.

func (Dashboard) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Dashboard. 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 (*Dashboard) GetOptions added in v1.61.0

func (o *Dashboard) GetOptions(ctx context.Context) (DashboardOptions, bool)

GetOptions returns the value of the Options field in Dashboard as a DashboardOptions value. If the field is unknown or null, the boolean return value is false.

func (*Dashboard) GetTags added in v1.61.0

func (o *Dashboard) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*Dashboard) GetUser added in v1.61.0

func (o *Dashboard) GetUser(ctx context.Context) (User, bool)

GetUser returns the value of the User field in Dashboard as a User value. If the field is unknown or null, the boolean return value is false.

func (*Dashboard) GetWidgets added in v1.61.0

func (o *Dashboard) GetWidgets(ctx context.Context) ([]Widget, bool)

GetWidgets returns the value of the Widgets field in Dashboard as a slice of Widget values. If the field is unknown or null, the boolean return value is false.

func (*Dashboard) SetOptions added in v1.61.0

func (o *Dashboard) SetOptions(ctx context.Context, v DashboardOptions)

SetOptions sets the value of the Options field in Dashboard.

func (*Dashboard) SetTags added in v1.61.0

func (o *Dashboard) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in Dashboard.

func (*Dashboard) SetUser added in v1.61.0

func (o *Dashboard) SetUser(ctx context.Context, v User)

SetUser sets the value of the User field in Dashboard.

func (*Dashboard) SetWidgets added in v1.61.0

func (o *Dashboard) SetWidgets(ctx context.Context, v []Widget)

SetWidgets sets the value of the Widgets field in Dashboard.

func (*Dashboard) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Dashboard) SyncEffectiveFieldsDuringCreateOrUpdate(plan Dashboard)

func (*Dashboard) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Dashboard) SyncEffectiveFieldsDuringRead(existingState Dashboard)

func (Dashboard) ToObjectValue added in v1.61.0

func (o Dashboard) 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, Dashboard only implements ToObjectValue() and Type().

func (Dashboard) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type DashboardEditContent

type DashboardEditContent struct {
	DashboardId types.String `tfsdk:"-"`
	// The title of this dashboard that appears in list views and at the top of
	// the dashboard page.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Sets the **Run as** role for the object. Must be set to one of `"viewer"`
	// (signifying "run as viewer" behavior) or `"owner"` (signifying "run as
	// owner" behavior)
	RunAsRole types.String `tfsdk:"run_as_role" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
}

func (DashboardEditContent) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DashboardEditContent. 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 (*DashboardEditContent) GetTags added in v1.61.0

func (o *DashboardEditContent) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*DashboardEditContent) SetTags added in v1.61.0

func (o *DashboardEditContent) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in DashboardEditContent.

func (*DashboardEditContent) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DashboardEditContent) SyncEffectiveFieldsDuringCreateOrUpdate(plan DashboardEditContent)

func (*DashboardEditContent) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DashboardEditContent) SyncEffectiveFieldsDuringRead(existingState DashboardEditContent)

func (DashboardEditContent) 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, DashboardEditContent only implements ToObjectValue() and Type().

func (DashboardEditContent) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DashboardOptions

type DashboardOptions struct {
	// The timestamp when this dashboard was moved to trash. Only present when
	// the `is_archived` property is `true`. Trashed items are deleted after
	// thirty days.
	MovedToTrashAt types.String `tfsdk:"moved_to_trash_at" tf:"optional"`
}

func (DashboardOptions) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DashboardOptions. 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 (*DashboardOptions) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DashboardOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan DashboardOptions)

func (*DashboardOptions) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DashboardOptions) SyncEffectiveFieldsDuringRead(existingState DashboardOptions)

func (DashboardOptions) ToObjectValue added in v1.61.0

func (o DashboardOptions) 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, DashboardOptions only implements ToObjectValue() and Type().

func (DashboardOptions) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DashboardPostContent

type DashboardPostContent struct {
	// Indicates whether the dashboard filters are enabled
	DashboardFiltersEnabled types.Bool `tfsdk:"dashboard_filters_enabled" tf:"optional"`
	// Indicates whether this dashboard object should appear in the current
	// user's favorites list.
	IsFavorite types.Bool `tfsdk:"is_favorite" tf:"optional"`
	// The title of this dashboard that appears in list views and at the top of
	// the dashboard page.
	Name types.String `tfsdk:"name" tf:""`
	// The identifier of the workspace folder containing the object.
	Parent types.String `tfsdk:"parent" tf:"optional"`
	// Sets the **Run as** role for the object. Must be set to one of `"viewer"`
	// (signifying "run as viewer" behavior) or `"owner"` (signifying "run as
	// owner" behavior)
	RunAsRole types.String `tfsdk:"run_as_role" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
}

func (DashboardPostContent) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DashboardPostContent. 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 (*DashboardPostContent) GetTags added in v1.61.0

func (o *DashboardPostContent) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*DashboardPostContent) SetTags added in v1.61.0

func (o *DashboardPostContent) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in DashboardPostContent.

func (*DashboardPostContent) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DashboardPostContent) SyncEffectiveFieldsDuringCreateOrUpdate(plan DashboardPostContent)

func (*DashboardPostContent) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DashboardPostContent) SyncEffectiveFieldsDuringRead(existingState DashboardPostContent)

func (DashboardPostContent) 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, DashboardPostContent only implements ToObjectValue() and Type().

func (DashboardPostContent) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DataSource

type DataSource struct {
	// Data source ID maps to the ID of the data source used by the resource and
	// is distinct from the warehouse ID. [Learn more]
	//
	// [Learn more]: https://docs.databricks.com/api/workspace/datasources/list
	Id types.String `tfsdk:"id" tf:"optional"`
	// The string name of this data source / SQL warehouse as it appears in the
	// Databricks SQL web application.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Reserved for internal use.
	PauseReason types.String `tfsdk:"pause_reason" tf:"optional"`
	// Reserved for internal use.
	Paused types.Int64 `tfsdk:"paused" tf:"optional"`
	// Reserved for internal use.
	SupportsAutoLimit types.Bool `tfsdk:"supports_auto_limit" tf:"optional"`
	// Reserved for internal use.
	Syntax types.String `tfsdk:"syntax" tf:"optional"`
	// The type of data source. For SQL warehouses, this will be
	// `databricks_internal`.
	Type_ types.String `tfsdk:"type" tf:"optional"`
	// Reserved for internal use.
	ViewOnly types.Bool `tfsdk:"view_only" tf:"optional"`
	// The ID of the associated SQL warehouse, if this data source is backed by
	// a SQL warehouse.
	WarehouseId types.String `tfsdk:"warehouse_id" tf:"optional"`
}

A JSON object representing a DBSQL data source / SQL warehouse.

func (DataSource) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DataSource. 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 (*DataSource) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DataSource) SyncEffectiveFieldsDuringCreateOrUpdate(plan DataSource)

func (*DataSource) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DataSource) SyncEffectiveFieldsDuringRead(existingState DataSource)

func (DataSource) ToObjectValue added in v1.61.0

func (o DataSource) 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, DataSource only implements ToObjectValue() and Type().

func (DataSource) Type

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

Type implements basetypes.ObjectValuable.

type DateRange

type DateRange struct {
	End types.String `tfsdk:"end" tf:""`

	Start types.String `tfsdk:"start" tf:""`
}

func (DateRange) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DateRange. 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 (*DateRange) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DateRange) SyncEffectiveFieldsDuringCreateOrUpdate(plan DateRange)

func (*DateRange) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DateRange) SyncEffectiveFieldsDuringRead(existingState DateRange)

func (DateRange) ToObjectValue added in v1.61.0

func (o DateRange) 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, DateRange only implements ToObjectValue() and Type().

func (DateRange) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type DateRangeValue

type DateRangeValue struct {
	// Manually specified date-time range value.
	DateRangeValue types.List `tfsdk:"date_range_value" tf:"optional,object"`
	// Dynamic date-time range value based on current date-time.
	DynamicDateRangeValue types.String `tfsdk:"dynamic_date_range_value" tf:"optional"`
	// Date-time precision to format the value into when the query is run.
	// Defaults to DAY_PRECISION (YYYY-MM-DD).
	Precision types.String `tfsdk:"precision" tf:"optional"`

	StartDayOfWeek types.Int64 `tfsdk:"start_day_of_week" tf:"optional"`
}

func (DateRangeValue) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DateRangeValue. 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 (*DateRangeValue) GetDateRangeValue added in v1.61.0

func (o *DateRangeValue) GetDateRangeValue(ctx context.Context) (DateRange, bool)

GetDateRangeValue returns the value of the DateRangeValue field in DateRangeValue as a DateRange value. If the field is unknown or null, the boolean return value is false.

func (*DateRangeValue) SetDateRangeValue added in v1.61.0

func (o *DateRangeValue) SetDateRangeValue(ctx context.Context, v DateRange)

SetDateRangeValue sets the value of the DateRangeValue field in DateRangeValue.

func (*DateRangeValue) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DateRangeValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan DateRangeValue)

func (*DateRangeValue) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DateRangeValue) SyncEffectiveFieldsDuringRead(existingState DateRangeValue)

func (DateRangeValue) ToObjectValue added in v1.61.0

func (o DateRangeValue) 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, DateRangeValue only implements ToObjectValue() and Type().

func (DateRangeValue) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type DateValue

type DateValue struct {
	// Manually specified date-time value.
	DateValue types.String `tfsdk:"date_value" tf:"optional"`
	// Dynamic date-time value based on current date-time.
	DynamicDateValue types.String `tfsdk:"dynamic_date_value" tf:"optional"`
	// Date-time precision to format the value into when the query is run.
	// Defaults to DAY_PRECISION (YYYY-MM-DD).
	Precision types.String `tfsdk:"precision" tf:"optional"`
}

func (DateValue) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DateValue. 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 (*DateValue) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DateValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan DateValue)

func (*DateValue) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DateValue) SyncEffectiveFieldsDuringRead(existingState DateValue)

func (DateValue) ToObjectValue added in v1.61.0

func (o DateValue) 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, DateValue only implements ToObjectValue() and Type().

func (DateValue) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type DeleteAlertsLegacyRequest

type DeleteAlertsLegacyRequest struct {
	AlertId types.String `tfsdk:"-"`
}

Delete an alert

func (DeleteAlertsLegacyRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteAlertsLegacyRequest. 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 (*DeleteAlertsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteAlertsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteAlertsLegacyRequest)

func (*DeleteAlertsLegacyRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteAlertsLegacyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteAlertsLegacyRequest)

func (DeleteAlertsLegacyRequest) 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, DeleteAlertsLegacyRequest only implements ToObjectValue() and Type().

func (DeleteAlertsLegacyRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteDashboardRequest

type DeleteDashboardRequest struct {
	DashboardId types.String `tfsdk:"-"`
}

Remove a dashboard

func (DeleteDashboardRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDashboardRequest. 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 (*DeleteDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDashboardRequest)

func (*DeleteDashboardRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteDashboardRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDashboardRequest)

func (DeleteDashboardRequest) 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, DeleteDashboardRequest only implements ToObjectValue() and Type().

func (DeleteDashboardRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteDashboardWidgetRequest

type DeleteDashboardWidgetRequest struct {
	// Widget ID returned by :method:dashboardwidgets/create
	Id types.String `tfsdk:"-"`
}

Remove widget

func (DeleteDashboardWidgetRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDashboardWidgetRequest. 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 (*DeleteDashboardWidgetRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteDashboardWidgetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDashboardWidgetRequest)

func (*DeleteDashboardWidgetRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteDashboardWidgetRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDashboardWidgetRequest)

func (DeleteDashboardWidgetRequest) 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, DeleteDashboardWidgetRequest only implements ToObjectValue() and Type().

func (DeleteDashboardWidgetRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteQueriesLegacyRequest

type DeleteQueriesLegacyRequest struct {
	QueryId types.String `tfsdk:"-"`
}

Delete a query

func (DeleteQueriesLegacyRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteQueriesLegacyRequest. 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 (*DeleteQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteQueriesLegacyRequest)

func (*DeleteQueriesLegacyRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteQueriesLegacyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteQueriesLegacyRequest)

func (DeleteQueriesLegacyRequest) 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, DeleteQueriesLegacyRequest only implements ToObjectValue() and Type().

func (DeleteQueriesLegacyRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteQueryVisualizationsLegacyRequest

type DeleteQueryVisualizationsLegacyRequest struct {
	// Widget ID returned by :method:queryvizualisations/create
	Id types.String `tfsdk:"-"`
}

Remove visualization

func (DeleteQueryVisualizationsLegacyRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteQueryVisualizationsLegacyRequest. 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 (*DeleteQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteQueryVisualizationsLegacyRequest)

func (*DeleteQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteQueryVisualizationsLegacyRequest) SyncEffectiveFieldsDuringRead(existingState DeleteQueryVisualizationsLegacyRequest)

func (DeleteQueryVisualizationsLegacyRequest) 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, DeleteQueryVisualizationsLegacyRequest only implements ToObjectValue() and Type().

func (DeleteQueryVisualizationsLegacyRequest) 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 DeleteVisualizationRequest

type DeleteVisualizationRequest struct {
	Id types.String `tfsdk:"-"`
}

Remove a visualization

func (DeleteVisualizationRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteVisualizationRequest. 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 (*DeleteVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteVisualizationRequest)

func (*DeleteVisualizationRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteVisualizationRequest) SyncEffectiveFieldsDuringRead(existingState DeleteVisualizationRequest)

func (DeleteVisualizationRequest) 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, DeleteVisualizationRequest only implements ToObjectValue() and Type().

func (DeleteVisualizationRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteWarehouseRequest

type DeleteWarehouseRequest struct {
	// Required. Id of the SQL warehouse.
	Id types.String `tfsdk:"-"`
}

Delete a warehouse

func (DeleteWarehouseRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWarehouseRequest. 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 (*DeleteWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWarehouseRequest)

func (*DeleteWarehouseRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteWarehouseRequest) SyncEffectiveFieldsDuringRead(existingState DeleteWarehouseRequest)

func (DeleteWarehouseRequest) 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, DeleteWarehouseRequest only implements ToObjectValue() and Type().

func (DeleteWarehouseRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteWarehouseResponse

type DeleteWarehouseResponse struct {
}

func (DeleteWarehouseResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteWarehouseResponse. 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 (*DeleteWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteWarehouseResponse)

func (*DeleteWarehouseResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState DeleteWarehouseResponse)

func (DeleteWarehouseResponse) 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, DeleteWarehouseResponse only implements ToObjectValue() and Type().

func (DeleteWarehouseResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EditAlert

type EditAlert struct {
	AlertId types.String `tfsdk:"-"`
	// Name of the alert.
	Name types.String `tfsdk:"name" tf:""`
	// Alert configuration options.
	Options types.List `tfsdk:"options" tf:"object"`
	// Query ID.
	QueryId types.String `tfsdk:"query_id" tf:""`
	// Number of seconds after being triggered before the alert rearms itself
	// and can be triggered again. If `null`, alert will never be triggered
	// again.
	Rearm types.Int64 `tfsdk:"rearm" tf:"optional"`
}

func (EditAlert) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EditAlert. 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 (*EditAlert) GetOptions added in v1.61.0

func (o *EditAlert) GetOptions(ctx context.Context) (AlertOptions, bool)

GetOptions returns the value of the Options field in EditAlert as a AlertOptions value. If the field is unknown or null, the boolean return value is false.

func (*EditAlert) SetOptions added in v1.61.0

func (o *EditAlert) SetOptions(ctx context.Context, v AlertOptions)

SetOptions sets the value of the Options field in EditAlert.

func (*EditAlert) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EditAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditAlert)

func (*EditAlert) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EditAlert) SyncEffectiveFieldsDuringRead(existingState EditAlert)

func (EditAlert) ToObjectValue added in v1.61.0

func (o EditAlert) 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, EditAlert only implements ToObjectValue() and Type().

func (EditAlert) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type EditWarehouseRequest

type EditWarehouseRequest struct {
	// The amount of time in minutes that a SQL warehouse must be idle (i.e., no
	// RUNNING queries) before it is automatically stopped.
	//
	// Supported values: - Must be == 0 or >= 10 mins - 0 indicates no autostop.
	//
	// Defaults to 120 mins
	AutoStopMins types.Int64 `tfsdk:"auto_stop_mins" tf:"optional"`
	// Channel Details
	Channel types.List `tfsdk:"channel" tf:"optional,object"`
	// Size of the clusters allocated for this warehouse. Increasing the size of
	// a spark cluster allows you to run larger queries on it. If you want to
	// increase the number of concurrent queries, please tune max_num_clusters.
	//
	// Supported values: - 2X-Small - X-Small - Small - Medium - Large - X-Large
	// - 2X-Large - 3X-Large - 4X-Large
	ClusterSize types.String `tfsdk:"cluster_size" tf:"optional"`
	// warehouse creator name
	CreatorName types.String `tfsdk:"creator_name" tf:"optional"`
	// Configures whether the warehouse should use Photon optimized clusters.
	//
	// Defaults to false.
	EnablePhoton types.Bool `tfsdk:"enable_photon" tf:"optional"`
	// Configures whether the warehouse should use serverless compute.
	EnableServerlessCompute types.Bool `tfsdk:"enable_serverless_compute" tf:"optional"`
	// Required. Id of the warehouse to configure.
	Id types.String `tfsdk:"-"`
	// Deprecated. Instance profile used to pass IAM role to the cluster
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// Maximum number of clusters that the autoscaler will create to handle
	// concurrent queries.
	//
	// Supported values: - Must be >= min_num_clusters - Must be <= 30.
	//
	// Defaults to min_clusters if unset.
	MaxNumClusters types.Int64 `tfsdk:"max_num_clusters" tf:"optional"`
	// Minimum number of available clusters that will be maintained for this SQL
	// warehouse. Increasing this will ensure that a larger number of clusters
	// are always running and therefore may reduce the cold start time for new
	// queries. This is similar to reserved vs. revocable cores in a resource
	// manager.
	//
	// Supported values: - Must be > 0 - Must be <= min(max_num_clusters, 30)
	//
	// Defaults to 1
	MinNumClusters types.Int64 `tfsdk:"min_num_clusters" tf:"optional"`
	// Logical name for the cluster.
	//
	// Supported values: - Must be unique within an org. - Must be less than 100
	// characters.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Configurations whether the warehouse should use spot instances.
	SpotInstancePolicy types.String `tfsdk:"spot_instance_policy" tf:"optional"`
	// A set of key-value pairs that will be tagged on all resources (e.g., AWS
	// instances and EBS volumes) associated with this SQL warehouse.
	//
	// Supported values: - Number of tags < 45.
	Tags types.List `tfsdk:"tags" tf:"optional,object"`
	// Warehouse type: `PRO` or `CLASSIC`. If you want to use serverless
	// compute, you must set to `PRO` and also set the field
	// `enable_serverless_compute` to `true`.
	WarehouseType types.String `tfsdk:"warehouse_type" tf:"optional"`
}

func (*EditWarehouseRequest) GetChannel added in v1.61.0

func (o *EditWarehouseRequest) GetChannel(ctx context.Context) (Channel, bool)

GetChannel returns the value of the Channel field in EditWarehouseRequest as a Channel value. If the field is unknown or null, the boolean return value is false.

func (EditWarehouseRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EditWarehouseRequest. 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 (*EditWarehouseRequest) GetTags added in v1.61.0

GetTags returns the value of the Tags field in EditWarehouseRequest as a EndpointTags value. If the field is unknown or null, the boolean return value is false.

func (*EditWarehouseRequest) SetChannel added in v1.61.0

func (o *EditWarehouseRequest) SetChannel(ctx context.Context, v Channel)

SetChannel sets the value of the Channel field in EditWarehouseRequest.

func (*EditWarehouseRequest) SetTags added in v1.61.0

func (o *EditWarehouseRequest) SetTags(ctx context.Context, v EndpointTags)

SetTags sets the value of the Tags field in EditWarehouseRequest.

func (*EditWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EditWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditWarehouseRequest)

func (*EditWarehouseRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EditWarehouseRequest) SyncEffectiveFieldsDuringRead(existingState EditWarehouseRequest)

func (EditWarehouseRequest) 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, EditWarehouseRequest only implements ToObjectValue() and Type().

func (EditWarehouseRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EditWarehouseResponse

type EditWarehouseResponse struct {
}

func (EditWarehouseResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EditWarehouseResponse. 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 (*EditWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EditWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan EditWarehouseResponse)

func (*EditWarehouseResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EditWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState EditWarehouseResponse)

func (EditWarehouseResponse) 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, EditWarehouseResponse only implements ToObjectValue() and Type().

func (EditWarehouseResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type Empty

type Empty struct {
}

Represents an empty message, similar to google.protobuf.Empty, which is not available in the firm right now.

func (Empty) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Empty. 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 (*Empty) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Empty) SyncEffectiveFieldsDuringCreateOrUpdate(plan Empty)

func (*Empty) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Empty) SyncEffectiveFieldsDuringRead(existingState Empty)

func (Empty) ToObjectValue added in v1.61.0

func (o Empty) 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, Empty only implements ToObjectValue() and Type().

func (Empty) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type EndpointConfPair

type EndpointConfPair struct {
	Key types.String `tfsdk:"key" tf:"optional"`

	Value types.String `tfsdk:"value" tf:"optional"`
}

func (EndpointConfPair) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointConfPair. 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 (*EndpointConfPair) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointConfPair) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointConfPair)

func (*EndpointConfPair) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointConfPair) SyncEffectiveFieldsDuringRead(existingState EndpointConfPair)

func (EndpointConfPair) ToObjectValue added in v1.61.0

func (o EndpointConfPair) 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, EndpointConfPair only implements ToObjectValue() and Type().

func (EndpointConfPair) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type EndpointHealth

type EndpointHealth struct {
	// Details about errors that are causing current degraded/failed status.
	Details types.String `tfsdk:"details" tf:"optional"`
	// The reason for failure to bring up clusters for this warehouse. This is
	// available when status is 'FAILED' and sometimes when it is DEGRADED.
	FailureReason types.List `tfsdk:"failure_reason" tf:"optional,object"`
	// Deprecated. split into summary and details for security
	Message types.String `tfsdk:"message" tf:"optional"`
	// Health status of the warehouse.
	Status types.String `tfsdk:"status" tf:"optional"`
	// A short summary of the health status in case of degraded/failed
	// warehouses.
	Summary types.String `tfsdk:"summary" tf:"optional"`
}

func (EndpointHealth) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointHealth. 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 (*EndpointHealth) GetFailureReason added in v1.61.0

func (o *EndpointHealth) GetFailureReason(ctx context.Context) (TerminationReason, bool)

GetFailureReason returns the value of the FailureReason field in EndpointHealth as a TerminationReason value. If the field is unknown or null, the boolean return value is false.

func (*EndpointHealth) SetFailureReason added in v1.61.0

func (o *EndpointHealth) SetFailureReason(ctx context.Context, v TerminationReason)

SetFailureReason sets the value of the FailureReason field in EndpointHealth.

func (*EndpointHealth) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointHealth) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointHealth)

func (*EndpointHealth) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointHealth) SyncEffectiveFieldsDuringRead(existingState EndpointHealth)

func (EndpointHealth) ToObjectValue added in v1.61.0

func (o EndpointHealth) 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, EndpointHealth only implements ToObjectValue() and Type().

func (EndpointHealth) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type EndpointInfo

type EndpointInfo struct {
	// The amount of time in minutes that a SQL warehouse must be idle (i.e., no
	// RUNNING queries) before it is automatically stopped.
	//
	// Supported values: - Must be == 0 or >= 10 mins - 0 indicates no autostop.
	//
	// Defaults to 120 mins
	AutoStopMins types.Int64 `tfsdk:"auto_stop_mins" tf:"optional"`
	// Channel Details
	Channel types.List `tfsdk:"channel" tf:"optional,object"`
	// Size of the clusters allocated for this warehouse. Increasing the size of
	// a spark cluster allows you to run larger queries on it. If you want to
	// increase the number of concurrent queries, please tune max_num_clusters.
	//
	// Supported values: - 2X-Small - X-Small - Small - Medium - Large - X-Large
	// - 2X-Large - 3X-Large - 4X-Large
	ClusterSize types.String `tfsdk:"cluster_size" tf:"optional"`
	// warehouse creator name
	CreatorName types.String `tfsdk:"creator_name" tf:"optional"`
	// Configures whether the warehouse should use Photon optimized clusters.
	//
	// Defaults to false.
	EnablePhoton types.Bool `tfsdk:"enable_photon" tf:"optional"`
	// Configures whether the warehouse should use serverless compute
	EnableServerlessCompute types.Bool `tfsdk:"enable_serverless_compute" tf:"optional"`
	// Optional health status. Assume the warehouse is healthy if this field is
	// not set.
	Health types.List `tfsdk:"health" tf:"optional,object"`
	// unique identifier for warehouse
	Id types.String `tfsdk:"id" tf:"optional"`
	// Deprecated. Instance profile used to pass IAM role to the cluster
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// the jdbc connection string for this warehouse
	JdbcUrl types.String `tfsdk:"jdbc_url" tf:"optional"`
	// Maximum number of clusters that the autoscaler will create to handle
	// concurrent queries.
	//
	// Supported values: - Must be >= min_num_clusters - Must be <= 30.
	//
	// Defaults to min_clusters if unset.
	MaxNumClusters types.Int64 `tfsdk:"max_num_clusters" tf:"optional"`
	// Minimum number of available clusters that will be maintained for this SQL
	// warehouse. Increasing this will ensure that a larger number of clusters
	// are always running and therefore may reduce the cold start time for new
	// queries. This is similar to reserved vs. revocable cores in a resource
	// manager.
	//
	// Supported values: - Must be > 0 - Must be <= min(max_num_clusters, 30)
	//
	// Defaults to 1
	MinNumClusters types.Int64 `tfsdk:"min_num_clusters" tf:"optional"`
	// Logical name for the cluster.
	//
	// Supported values: - Must be unique within an org. - Must be less than 100
	// characters.
	Name types.String `tfsdk:"name" tf:"optional"`
	// current number of active sessions for the warehouse
	NumActiveSessions types.Int64 `tfsdk:"num_active_sessions" tf:"optional"`
	// current number of clusters running for the service
	NumClusters types.Int64 `tfsdk:"num_clusters" tf:"optional"`
	// ODBC parameters for the SQL warehouse
	OdbcParams types.List `tfsdk:"odbc_params" tf:"optional,object"`
	// Configurations whether the warehouse should use spot instances.
	SpotInstancePolicy types.String `tfsdk:"spot_instance_policy" tf:"optional"`
	// State of the warehouse
	State types.String `tfsdk:"state" tf:"optional"`
	// A set of key-value pairs that will be tagged on all resources (e.g., AWS
	// instances and EBS volumes) associated with this SQL warehouse.
	//
	// Supported values: - Number of tags < 45.
	Tags types.List `tfsdk:"tags" tf:"optional,object"`
	// Warehouse type: `PRO` or `CLASSIC`. If you want to use serverless
	// compute, you must set to `PRO` and also set the field
	// `enable_serverless_compute` to `true`.
	WarehouseType types.String `tfsdk:"warehouse_type" tf:"optional"`
}

func (*EndpointInfo) GetChannel added in v1.61.0

func (o *EndpointInfo) GetChannel(ctx context.Context) (Channel, bool)

GetChannel returns the value of the Channel field in EndpointInfo as a Channel value. If the field is unknown or null, the boolean return value is false.

func (EndpointInfo) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointInfo. 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 (*EndpointInfo) GetHealth added in v1.61.0

func (o *EndpointInfo) GetHealth(ctx context.Context) (EndpointHealth, bool)

GetHealth returns the value of the Health field in EndpointInfo as a EndpointHealth value. If the field is unknown or null, the boolean return value is false.

func (*EndpointInfo) GetOdbcParams added in v1.61.0

func (o *EndpointInfo) GetOdbcParams(ctx context.Context) (OdbcParams, bool)

GetOdbcParams returns the value of the OdbcParams field in EndpointInfo as a OdbcParams value. If the field is unknown or null, the boolean return value is false.

func (*EndpointInfo) GetTags added in v1.61.0

func (o *EndpointInfo) GetTags(ctx context.Context) (EndpointTags, bool)

GetTags returns the value of the Tags field in EndpointInfo as a EndpointTags value. If the field is unknown or null, the boolean return value is false.

func (*EndpointInfo) SetChannel added in v1.61.0

func (o *EndpointInfo) SetChannel(ctx context.Context, v Channel)

SetChannel sets the value of the Channel field in EndpointInfo.

func (*EndpointInfo) SetHealth added in v1.61.0

func (o *EndpointInfo) SetHealth(ctx context.Context, v EndpointHealth)

SetHealth sets the value of the Health field in EndpointInfo.

func (*EndpointInfo) SetOdbcParams added in v1.61.0

func (o *EndpointInfo) SetOdbcParams(ctx context.Context, v OdbcParams)

SetOdbcParams sets the value of the OdbcParams field in EndpointInfo.

func (*EndpointInfo) SetTags added in v1.61.0

func (o *EndpointInfo) SetTags(ctx context.Context, v EndpointTags)

SetTags sets the value of the Tags field in EndpointInfo.

func (*EndpointInfo) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointInfo)

func (*EndpointInfo) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointInfo) SyncEffectiveFieldsDuringRead(existingState EndpointInfo)

func (EndpointInfo) ToObjectValue added in v1.61.0

func (o EndpointInfo) 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, EndpointInfo only implements ToObjectValue() and Type().

func (EndpointInfo) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type EndpointTagPair

type EndpointTagPair struct {
	Key types.String `tfsdk:"key" tf:"optional"`

	Value types.String `tfsdk:"value" tf:"optional"`
}

func (EndpointTagPair) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointTagPair. 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 (*EndpointTagPair) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointTagPair) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointTagPair)

func (*EndpointTagPair) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointTagPair) SyncEffectiveFieldsDuringRead(existingState EndpointTagPair)

func (EndpointTagPair) ToObjectValue added in v1.61.0

func (o EndpointTagPair) 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, EndpointTagPair only implements ToObjectValue() and Type().

func (EndpointTagPair) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type EndpointTags

type EndpointTags struct {
	CustomTags types.List `tfsdk:"custom_tags" tf:"optional"`
}

func (EndpointTags) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EndpointTags. 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 (*EndpointTags) GetCustomTags added in v1.61.0

func (o *EndpointTags) GetCustomTags(ctx context.Context) ([]EndpointTagPair, bool)

GetCustomTags returns the value of the CustomTags field in EndpointTags as a slice of EndpointTagPair values. If the field is unknown or null, the boolean return value is false.

func (*EndpointTags) SetCustomTags added in v1.61.0

func (o *EndpointTags) SetCustomTags(ctx context.Context, v []EndpointTagPair)

SetCustomTags sets the value of the CustomTags field in EndpointTags.

func (*EndpointTags) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EndpointTags) SyncEffectiveFieldsDuringCreateOrUpdate(plan EndpointTags)

func (*EndpointTags) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EndpointTags) SyncEffectiveFieldsDuringRead(existingState EndpointTags)

func (EndpointTags) ToObjectValue added in v1.61.0

func (o EndpointTags) 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, EndpointTags only implements ToObjectValue() and Type().

func (EndpointTags) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type EnumValue

type EnumValue struct {
	// List of valid query parameter values, newline delimited.
	EnumOptions types.String `tfsdk:"enum_options" tf:"optional"`
	// If specified, allows multiple values to be selected for this parameter.
	MultiValuesOptions types.List `tfsdk:"multi_values_options" tf:"optional,object"`
	// List of selected query parameter values.
	Values types.List `tfsdk:"values" tf:"optional"`
}

func (EnumValue) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in EnumValue. 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 (*EnumValue) GetMultiValuesOptions added in v1.61.0

func (o *EnumValue) GetMultiValuesOptions(ctx context.Context) (MultiValuesOptions, bool)

GetMultiValuesOptions returns the value of the MultiValuesOptions field in EnumValue as a MultiValuesOptions value. If the field is unknown or null, the boolean return value is false.

func (*EnumValue) GetValues added in v1.61.0

func (o *EnumValue) GetValues(ctx context.Context) ([]types.String, bool)

GetValues returns the value of the Values field in EnumValue as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*EnumValue) SetMultiValuesOptions added in v1.61.0

func (o *EnumValue) SetMultiValuesOptions(ctx context.Context, v MultiValuesOptions)

SetMultiValuesOptions sets the value of the MultiValuesOptions field in EnumValue.

func (*EnumValue) SetValues added in v1.61.0

func (o *EnumValue) SetValues(ctx context.Context, v []types.String)

SetValues sets the value of the Values field in EnumValue.

func (*EnumValue) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *EnumValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan EnumValue)

func (*EnumValue) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *EnumValue) SyncEffectiveFieldsDuringRead(existingState EnumValue)

func (EnumValue) ToObjectValue added in v1.61.0

func (o EnumValue) 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, EnumValue only implements ToObjectValue() and Type().

func (EnumValue) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type ExecuteStatementRequest

type ExecuteStatementRequest struct {
	// Applies the given byte limit to the statement's result size. Byte counts
	// are based on internal data representations and might not match the final
	// size in the requested `format`. If the result was truncated due to the
	// byte limit, then `truncated` in the response is set to `true`. When using
	// `EXTERNAL_LINKS` disposition, a default `byte_limit` of 100 GiB is
	// applied if `byte_limit` is not explcitly set.
	ByteLimit types.Int64 `tfsdk:"byte_limit" tf:"optional"`
	// Sets default catalog for statement execution, similar to [`USE CATALOG`]
	// in SQL.
	//
	// [`USE CATALOG`]: https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-catalog.html
	Catalog types.String `tfsdk:"catalog" tf:"optional"`

	Disposition types.String `tfsdk:"disposition" tf:"optional"`
	// Statement execution supports three result formats: `JSON_ARRAY`
	// (default), `ARROW_STREAM`, and `CSV`.
	//
	// Important: The formats `ARROW_STREAM` and `CSV` are supported only with
	// `EXTERNAL_LINKS` disposition. `JSON_ARRAY` is supported in `INLINE` and
	// `EXTERNAL_LINKS` disposition.
	//
	// When specifying `format=JSON_ARRAY`, result data will be formatted as an
	// array of arrays of values, where each value is either the *string
	// representation* of a value, or `null`. For example, the output of `SELECT
	// concat('id-', id) AS strCol, id AS intCol, null AS nullCol FROM range(3)`
	// would look like this:
	//
	// “` [ [ "id-1", "1", null ], [ "id-2", "2", null ], [ "id-3", "3", null
	// ], ] “`
	//
	// When specifying `format=JSON_ARRAY` and `disposition=EXTERNAL_LINKS`,
	// each chunk in the result contains compact JSON with no indentation or
	// extra whitespace.
	//
	// When specifying `format=ARROW_STREAM` and `disposition=EXTERNAL_LINKS`,
	// each chunk in the result will be formatted as Apache Arrow Stream. See
	// the [Apache Arrow streaming format].
	//
	// When specifying `format=CSV` and `disposition=EXTERNAL_LINKS`, each chunk
	// in the result will be a CSV according to [RFC 4180] standard. All the
	// columns values will have *string representation* similar to the
	// `JSON_ARRAY` format, and `null` values will be encoded as “null”.
	// Only the first chunk in the result would contain a header row with column
	// names. For example, the output of `SELECT concat('id-', id) AS strCol, id
	// AS intCol, null as nullCol FROM range(3)` would look like this:
	//
	// “` strCol,intCol,nullCol id-1,1,null id-2,2,null id-3,3,null “`
	//
	// [Apache Arrow streaming format]: https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format
	// [RFC 4180]: https://www.rfc-editor.org/rfc/rfc4180
	Format types.String `tfsdk:"format" tf:"optional"`
	// When `wait_timeout > 0s`, the call will block up to the specified time.
	// If the statement execution doesn't finish within this time,
	// `on_wait_timeout` determines whether the execution should continue or be
	// canceled. When set to `CONTINUE`, the statement execution continues
	// asynchronously and the call returns a statement ID which can be used for
	// polling with :method:statementexecution/getStatement. When set to
	// `CANCEL`, the statement execution is canceled and the call returns with a
	// `CANCELED` state.
	OnWaitTimeout types.String `tfsdk:"on_wait_timeout" tf:"optional"`
	// A list of parameters to pass into a SQL statement containing parameter
	// markers. A parameter consists of a name, a value, and optionally a type.
	// To represent a NULL value, the `value` field may be omitted or set to
	// `null` explicitly. If the `type` field is omitted, the value is
	// interpreted as a string.
	//
	// If the type is given, parameters will be checked for type correctness
	// according to the given type. A value is correct if the provided string
	// can be converted to the requested type using the `cast` function. The
	// exact semantics are described in the section [`cast` function] of the SQL
	// language reference.
	//
	// For example, the following statement contains two parameters, `my_name`
	// and `my_date`:
	//
	// SELECT * FROM my_table WHERE name = :my_name AND date = :my_date
	//
	// The parameters can be passed in the request body as follows:
	//
	// { ..., "statement": "SELECT * FROM my_table WHERE name = :my_name AND
	// date = :my_date", "parameters": [ { "name": "my_name", "value": "the
	// name" }, { "name": "my_date", "value": "2020-01-01", "type": "DATE" } ] }
	//
	// Currently, positional parameters denoted by a `?` marker are not
	// supported by the Databricks SQL Statement Execution API.
	//
	// Also see the section [Parameter markers] of the SQL language reference.
	//
	// [Parameter markers]: https://docs.databricks.com/sql/language-manual/sql-ref-parameter-marker.html
	// [`cast` function]: https://docs.databricks.com/sql/language-manual/functions/cast.html
	Parameters types.List `tfsdk:"parameters" tf:"optional"`
	// Applies the given row limit to the statement's result set, but unlike the
	// `LIMIT` clause in SQL, it also sets the `truncated` field in the response
	// to indicate whether the result was trimmed due to the limit or not.
	RowLimit types.Int64 `tfsdk:"row_limit" tf:"optional"`
	// Sets default schema for statement execution, similar to [`USE SCHEMA`] in
	// SQL.
	//
	// [`USE SCHEMA`]: https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-schema.html
	Schema types.String `tfsdk:"schema" tf:"optional"`
	// The SQL statement to execute. The statement can optionally be
	// parameterized, see `parameters`.
	Statement types.String `tfsdk:"statement" tf:""`
	// The time in seconds the call will wait for the statement's result set as
	// `Ns`, where `N` can be set to 0 or to a value between 5 and 50.
	//
	// When set to `0s`, the statement will execute in asynchronous mode and the
	// call will not wait for the execution to finish. In this case, the call
	// returns directly with `PENDING` state and a statement ID which can be
	// used for polling with :method:statementexecution/getStatement.
	//
	// When set between 5 and 50 seconds, the call will behave synchronously up
	// to this timeout and wait for the statement execution to finish. If the
	// execution finishes within this time, the call returns immediately with a
	// manifest and result data (or a `FAILED` state in case of an execution
	// error). If the statement takes longer to execute, `on_wait_timeout`
	// determines what should happen after the timeout is reached.
	WaitTimeout types.String `tfsdk:"wait_timeout" tf:"optional"`
	// Warehouse upon which to execute a statement. See also [What are SQL
	// warehouses?]
	//
	// [What are SQL warehouses?]: https://docs.databricks.com/sql/admin/warehouse-type.html
	WarehouseId types.String `tfsdk:"warehouse_id" tf:""`
}

func (ExecuteStatementRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ExecuteStatementRequest. 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 (*ExecuteStatementRequest) GetParameters added in v1.61.0

GetParameters returns the value of the Parameters field in ExecuteStatementRequest as a slice of StatementParameterListItem values. If the field is unknown or null, the boolean return value is false.

func (*ExecuteStatementRequest) SetParameters added in v1.61.0

SetParameters sets the value of the Parameters field in ExecuteStatementRequest.

func (*ExecuteStatementRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ExecuteStatementRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExecuteStatementRequest)

func (*ExecuteStatementRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ExecuteStatementRequest) SyncEffectiveFieldsDuringRead(existingState ExecuteStatementRequest)

func (ExecuteStatementRequest) 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, ExecuteStatementRequest only implements ToObjectValue() and Type().

func (ExecuteStatementRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ExternalLink struct {
	// The number of bytes in the result chunk. This field is not available when
	// using `INLINE` disposition.
	ByteCount types.Int64 `tfsdk:"byte_count" tf:"optional"`
	// The position within the sequence of result set chunks.
	ChunkIndex types.Int64 `tfsdk:"chunk_index" tf:"optional"`
	// Indicates the date-time that the given external link will expire and
	// becomes invalid, after which point a new `external_link` must be
	// requested.
	Expiration types.String `tfsdk:"expiration" tf:"optional"`

	ExternalLink types.String `tfsdk:"external_link" tf:"optional"`
	// HTTP headers that must be included with a GET request to the
	// `external_link`. Each header is provided as a key-value pair. Headers are
	// typically used to pass a decryption key to the external service. The
	// values of these headers should be considered sensitive and the client
	// should not expose these values in a log.
	HttpHeaders types.Map `tfsdk:"http_headers" tf:"optional"`
	// When fetching, provides the `chunk_index` for the _next_ chunk. If
	// absent, indicates there are no more chunks. The next chunk can be fetched
	// with a :method:statementexecution/getStatementResultChunkN request.
	NextChunkIndex types.Int64 `tfsdk:"next_chunk_index" tf:"optional"`
	// When fetching, provides a link to fetch the _next_ chunk. If absent,
	// indicates there are no more chunks. This link is an absolute `path` to be
	// joined with your `$DATABRICKS_HOST`, and should be treated as an opaque
	// link. This is an alternative to using `next_chunk_index`.
	NextChunkInternalLink types.String `tfsdk:"next_chunk_internal_link" tf:"optional"`
	// The number of rows within the result chunk.
	RowCount types.Int64 `tfsdk:"row_count" tf:"optional"`
	// The starting row offset within the result set.
	RowOffset types.Int64 `tfsdk:"row_offset" tf:"optional"`
}

func (ExternalLink) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalLink. 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 (*ExternalLink) GetHttpHeaders added in v1.61.0

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

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

func (*ExternalLink) SetHttpHeaders added in v1.61.0

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

SetHttpHeaders sets the value of the HttpHeaders field in ExternalLink.

func (*ExternalLink) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ExternalLink) SyncEffectiveFieldsDuringCreateOrUpdate(plan ExternalLink)

func (*ExternalLink) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ExternalLink) SyncEffectiveFieldsDuringRead(existingState ExternalLink)

func (ExternalLink) ToObjectValue added in v1.61.0

func (o ExternalLink) 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, ExternalLink only implements ToObjectValue() and Type().

func (ExternalLink) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type GetAlertRequest

type GetAlertRequest struct {
	Id types.String `tfsdk:"-"`
}

Get an alert

func (GetAlertRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAlertRequest. 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 (*GetAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAlertRequest)

func (*GetAlertRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetAlertRequest) SyncEffectiveFieldsDuringRead(existingState GetAlertRequest)

func (GetAlertRequest) ToObjectValue added in v1.61.0

func (o GetAlertRequest) 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, GetAlertRequest only implements ToObjectValue() and Type().

func (GetAlertRequest) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type GetAlertsLegacyRequest

type GetAlertsLegacyRequest struct {
	AlertId types.String `tfsdk:"-"`
}

Get an alert

func (GetAlertsLegacyRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetAlertsLegacyRequest. 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 (*GetAlertsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetAlertsLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetAlertsLegacyRequest)

func (*GetAlertsLegacyRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetAlertsLegacyRequest) SyncEffectiveFieldsDuringRead(existingState GetAlertsLegacyRequest)

func (GetAlertsLegacyRequest) 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, GetAlertsLegacyRequest only implements ToObjectValue() and Type().

func (GetAlertsLegacyRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetDashboardRequest

type GetDashboardRequest struct {
	DashboardId types.String `tfsdk:"-"`
}

Retrieve a definition

func (GetDashboardRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDashboardRequest. 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 (*GetDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDashboardRequest)

func (*GetDashboardRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetDashboardRequest) SyncEffectiveFieldsDuringRead(existingState GetDashboardRequest)

func (GetDashboardRequest) 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, GetDashboardRequest only implements ToObjectValue() and Type().

func (GetDashboardRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetDbsqlPermissionRequest

type GetDbsqlPermissionRequest struct {
	// Object ID. An ACL is returned for the object with this UUID.
	ObjectId types.String `tfsdk:"-"`
	// The type of object permissions to check.
	ObjectType types.String `tfsdk:"-"`
}

Get object ACL

func (GetDbsqlPermissionRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDbsqlPermissionRequest. 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 (*GetDbsqlPermissionRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetDbsqlPermissionRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDbsqlPermissionRequest)

func (*GetDbsqlPermissionRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetDbsqlPermissionRequest) SyncEffectiveFieldsDuringRead(existingState GetDbsqlPermissionRequest)

func (GetDbsqlPermissionRequest) 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, GetDbsqlPermissionRequest only implements ToObjectValue() and Type().

func (GetDbsqlPermissionRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetQueriesLegacyRequest

type GetQueriesLegacyRequest struct {
	QueryId types.String `tfsdk:"-"`
}

Get a query definition.

func (GetQueriesLegacyRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQueriesLegacyRequest. 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 (*GetQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQueriesLegacyRequest)

func (*GetQueriesLegacyRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetQueriesLegacyRequest) SyncEffectiveFieldsDuringRead(existingState GetQueriesLegacyRequest)

func (GetQueriesLegacyRequest) 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, GetQueriesLegacyRequest only implements ToObjectValue() and Type().

func (GetQueriesLegacyRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetQueryRequest

type GetQueryRequest struct {
	Id types.String `tfsdk:"-"`
}

Get a query

func (GetQueryRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetQueryRequest. 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 (*GetQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetQueryRequest)

func (*GetQueryRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetQueryRequest) SyncEffectiveFieldsDuringRead(existingState GetQueryRequest)

func (GetQueryRequest) ToObjectValue added in v1.61.0

func (o GetQueryRequest) 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, GetQueryRequest only implements ToObjectValue() and Type().

func (GetQueryRequest) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type GetResponse

type GetResponse struct {
	AccessControlList types.List `tfsdk:"access_control_list" tf:"optional"`
	// An object's type and UUID, separated by a forward slash (/) character.
	ObjectId types.String `tfsdk:"object_id" tf:"optional"`
	// A singular noun object type.
	ObjectType types.String `tfsdk:"object_type" tf:"optional"`
}

func (*GetResponse) GetAccessControlList added in v1.61.0

func (o *GetResponse) GetAccessControlList(ctx context.Context) ([]AccessControl, bool)

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

func (GetResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetResponse. 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 (*GetResponse) SetAccessControlList added in v1.61.0

func (o *GetResponse) SetAccessControlList(ctx context.Context, v []AccessControl)

SetAccessControlList sets the value of the AccessControlList field in GetResponse.

func (*GetResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetResponse)

func (*GetResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetResponse) SyncEffectiveFieldsDuringRead(existingState GetResponse)

func (GetResponse) ToObjectValue added in v1.61.0

func (o GetResponse) 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, GetResponse only implements ToObjectValue() and Type().

func (GetResponse) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type GetStatementRequest

type GetStatementRequest struct {
	// The statement ID is returned upon successfully submitting a SQL
	// statement, and is a required reference for all subsequent calls.
	StatementId types.String `tfsdk:"-"`
}

Get status, manifest, and result first chunk

func (GetStatementRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatementRequest. 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 (*GetStatementRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetStatementRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatementRequest)

func (*GetStatementRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetStatementRequest) SyncEffectiveFieldsDuringRead(existingState GetStatementRequest)

func (GetStatementRequest) 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, GetStatementRequest only implements ToObjectValue() and Type().

func (GetStatementRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetStatementResultChunkNRequest

type GetStatementResultChunkNRequest struct {
	ChunkIndex types.Int64 `tfsdk:"-"`
	// The statement ID is returned upon successfully submitting a SQL
	// statement, and is a required reference for all subsequent calls.
	StatementId types.String `tfsdk:"-"`
}

Get result chunk by index

func (GetStatementResultChunkNRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatementResultChunkNRequest. 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 (*GetStatementResultChunkNRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetStatementResultChunkNRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatementResultChunkNRequest)

func (*GetStatementResultChunkNRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetStatementResultChunkNRequest) SyncEffectiveFieldsDuringRead(existingState GetStatementResultChunkNRequest)

func (GetStatementResultChunkNRequest) 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, GetStatementResultChunkNRequest only implements ToObjectValue() and Type().

func (GetStatementResultChunkNRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetWarehousePermissionLevelsRequest

type GetWarehousePermissionLevelsRequest struct {
	// The SQL warehouse for which to get or manage permissions.
	WarehouseId types.String `tfsdk:"-"`
}

Get SQL warehouse permission levels

func (GetWarehousePermissionLevelsRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehousePermissionLevelsRequest. 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 (*GetWarehousePermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetWarehousePermissionLevelsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehousePermissionLevelsRequest)

func (*GetWarehousePermissionLevelsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetWarehousePermissionLevelsRequest) SyncEffectiveFieldsDuringRead(existingState GetWarehousePermissionLevelsRequest)

func (GetWarehousePermissionLevelsRequest) 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, GetWarehousePermissionLevelsRequest only implements ToObjectValue() and Type().

func (GetWarehousePermissionLevelsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetWarehousePermissionLevelsResponse

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

func (GetWarehousePermissionLevelsResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehousePermissionLevelsResponse. 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 (*GetWarehousePermissionLevelsResponse) GetPermissionLevels added in v1.61.0

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

func (*GetWarehousePermissionLevelsResponse) SetPermissionLevels added in v1.61.0

SetPermissionLevels sets the value of the PermissionLevels field in GetWarehousePermissionLevelsResponse.

func (*GetWarehousePermissionLevelsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetWarehousePermissionLevelsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehousePermissionLevelsResponse)

func (*GetWarehousePermissionLevelsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetWarehousePermissionLevelsResponse) SyncEffectiveFieldsDuringRead(existingState GetWarehousePermissionLevelsResponse)

func (GetWarehousePermissionLevelsResponse) 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, GetWarehousePermissionLevelsResponse only implements ToObjectValue() and Type().

func (GetWarehousePermissionLevelsResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetWarehousePermissionsRequest

type GetWarehousePermissionsRequest struct {
	// The SQL warehouse for which to get or manage permissions.
	WarehouseId types.String `tfsdk:"-"`
}

Get SQL warehouse permissions

func (GetWarehousePermissionsRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehousePermissionsRequest. 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 (*GetWarehousePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetWarehousePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehousePermissionsRequest)

func (*GetWarehousePermissionsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetWarehousePermissionsRequest) SyncEffectiveFieldsDuringRead(existingState GetWarehousePermissionsRequest)

func (GetWarehousePermissionsRequest) 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, GetWarehousePermissionsRequest only implements ToObjectValue() and Type().

func (GetWarehousePermissionsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetWarehouseRequest

type GetWarehouseRequest struct {
	// Required. Id of the SQL warehouse.
	Id types.String `tfsdk:"-"`
}

Get warehouse info

func (GetWarehouseRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehouseRequest. 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 (*GetWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetWarehouseRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehouseRequest)

func (*GetWarehouseRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetWarehouseRequest) SyncEffectiveFieldsDuringRead(existingState GetWarehouseRequest)

func (GetWarehouseRequest) 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, GetWarehouseRequest only implements ToObjectValue() and Type().

func (GetWarehouseRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetWarehouseResponse

type GetWarehouseResponse struct {
	// The amount of time in minutes that a SQL warehouse must be idle (i.e., no
	// RUNNING queries) before it is automatically stopped.
	//
	// Supported values: - Must be == 0 or >= 10 mins - 0 indicates no autostop.
	//
	// Defaults to 120 mins
	AutoStopMins types.Int64 `tfsdk:"auto_stop_mins" tf:"optional"`
	// Channel Details
	Channel types.List `tfsdk:"channel" tf:"optional,object"`
	// Size of the clusters allocated for this warehouse. Increasing the size of
	// a spark cluster allows you to run larger queries on it. If you want to
	// increase the number of concurrent queries, please tune max_num_clusters.
	//
	// Supported values: - 2X-Small - X-Small - Small - Medium - Large - X-Large
	// - 2X-Large - 3X-Large - 4X-Large
	ClusterSize types.String `tfsdk:"cluster_size" tf:"optional"`
	// warehouse creator name
	CreatorName types.String `tfsdk:"creator_name" tf:"optional"`
	// Configures whether the warehouse should use Photon optimized clusters.
	//
	// Defaults to false.
	EnablePhoton types.Bool `tfsdk:"enable_photon" tf:"optional"`
	// Configures whether the warehouse should use serverless compute
	EnableServerlessCompute types.Bool `tfsdk:"enable_serverless_compute" tf:"optional"`
	// Optional health status. Assume the warehouse is healthy if this field is
	// not set.
	Health types.List `tfsdk:"health" tf:"optional,object"`
	// unique identifier for warehouse
	Id types.String `tfsdk:"id" tf:"optional"`
	// Deprecated. Instance profile used to pass IAM role to the cluster
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// the jdbc connection string for this warehouse
	JdbcUrl types.String `tfsdk:"jdbc_url" tf:"optional"`
	// Maximum number of clusters that the autoscaler will create to handle
	// concurrent queries.
	//
	// Supported values: - Must be >= min_num_clusters - Must be <= 30.
	//
	// Defaults to min_clusters if unset.
	MaxNumClusters types.Int64 `tfsdk:"max_num_clusters" tf:"optional"`
	// Minimum number of available clusters that will be maintained for this SQL
	// warehouse. Increasing this will ensure that a larger number of clusters
	// are always running and therefore may reduce the cold start time for new
	// queries. This is similar to reserved vs. revocable cores in a resource
	// manager.
	//
	// Supported values: - Must be > 0 - Must be <= min(max_num_clusters, 30)
	//
	// Defaults to 1
	MinNumClusters types.Int64 `tfsdk:"min_num_clusters" tf:"optional"`
	// Logical name for the cluster.
	//
	// Supported values: - Must be unique within an org. - Must be less than 100
	// characters.
	Name types.String `tfsdk:"name" tf:"optional"`
	// current number of active sessions for the warehouse
	NumActiveSessions types.Int64 `tfsdk:"num_active_sessions" tf:"optional"`
	// current number of clusters running for the service
	NumClusters types.Int64 `tfsdk:"num_clusters" tf:"optional"`
	// ODBC parameters for the SQL warehouse
	OdbcParams types.List `tfsdk:"odbc_params" tf:"optional,object"`
	// Configurations whether the warehouse should use spot instances.
	SpotInstancePolicy types.String `tfsdk:"spot_instance_policy" tf:"optional"`
	// State of the warehouse
	State types.String `tfsdk:"state" tf:"optional"`
	// A set of key-value pairs that will be tagged on all resources (e.g., AWS
	// instances and EBS volumes) associated with this SQL warehouse.
	//
	// Supported values: - Number of tags < 45.
	Tags types.List `tfsdk:"tags" tf:"optional,object"`
	// Warehouse type: `PRO` or `CLASSIC`. If you want to use serverless
	// compute, you must set to `PRO` and also set the field
	// `enable_serverless_compute` to `true`.
	WarehouseType types.String `tfsdk:"warehouse_type" tf:"optional"`
}

func (*GetWarehouseResponse) GetChannel added in v1.61.0

func (o *GetWarehouseResponse) GetChannel(ctx context.Context) (Channel, bool)

GetChannel returns the value of the Channel field in GetWarehouseResponse as a Channel value. If the field is unknown or null, the boolean return value is false.

func (GetWarehouseResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWarehouseResponse. 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 (*GetWarehouseResponse) GetHealth added in v1.61.0

GetHealth returns the value of the Health field in GetWarehouseResponse as a EndpointHealth value. If the field is unknown or null, the boolean return value is false.

func (*GetWarehouseResponse) GetOdbcParams added in v1.61.0

func (o *GetWarehouseResponse) GetOdbcParams(ctx context.Context) (OdbcParams, bool)

GetOdbcParams returns the value of the OdbcParams field in GetWarehouseResponse as a OdbcParams value. If the field is unknown or null, the boolean return value is false.

func (*GetWarehouseResponse) GetTags added in v1.61.0

GetTags returns the value of the Tags field in GetWarehouseResponse as a EndpointTags value. If the field is unknown or null, the boolean return value is false.

func (*GetWarehouseResponse) SetChannel added in v1.61.0

func (o *GetWarehouseResponse) SetChannel(ctx context.Context, v Channel)

SetChannel sets the value of the Channel field in GetWarehouseResponse.

func (*GetWarehouseResponse) SetHealth added in v1.61.0

func (o *GetWarehouseResponse) SetHealth(ctx context.Context, v EndpointHealth)

SetHealth sets the value of the Health field in GetWarehouseResponse.

func (*GetWarehouseResponse) SetOdbcParams added in v1.61.0

func (o *GetWarehouseResponse) SetOdbcParams(ctx context.Context, v OdbcParams)

SetOdbcParams sets the value of the OdbcParams field in GetWarehouseResponse.

func (*GetWarehouseResponse) SetTags added in v1.61.0

func (o *GetWarehouseResponse) SetTags(ctx context.Context, v EndpointTags)

SetTags sets the value of the Tags field in GetWarehouseResponse.

func (*GetWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWarehouseResponse)

func (*GetWarehouseResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState GetWarehouseResponse)

func (GetWarehouseResponse) 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, GetWarehouseResponse only implements ToObjectValue() and Type().

func (GetWarehouseResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetWorkspaceWarehouseConfigResponse

type GetWorkspaceWarehouseConfigResponse struct {
	// Optional: Channel selection details
	Channel types.List `tfsdk:"channel" tf:"optional,object"`
	// Deprecated: Use sql_configuration_parameters
	ConfigParam types.List `tfsdk:"config_param" tf:"optional,object"`
	// Spark confs for external hive metastore configuration JSON serialized
	// size must be less than <= 512K
	DataAccessConfig types.List `tfsdk:"data_access_config" tf:"optional"`
	// List of Warehouse Types allowed in this workspace (limits allowed value
	// of the type field in CreateWarehouse and EditWarehouse). Note: Some types
	// cannot be disabled, they don't need to be specified in
	// SetWorkspaceWarehouseConfig. Note: Disabling a type may cause existing
	// warehouses to be converted to another type. Used by frontend to save
	// specific type availability in the warehouse create and edit form UI.
	EnabledWarehouseTypes types.List `tfsdk:"enabled_warehouse_types" tf:"optional"`
	// Deprecated: Use sql_configuration_parameters
	GlobalParam types.List `tfsdk:"global_param" tf:"optional,object"`
	// GCP only: Google Service Account used to pass to cluster to access Google
	// Cloud Storage
	GoogleServiceAccount types.String `tfsdk:"google_service_account" tf:"optional"`
	// AWS Only: Instance profile used to pass IAM role to the cluster
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// Security policy for warehouses
	SecurityPolicy types.String `tfsdk:"security_policy" tf:"optional"`
	// SQL configuration parameters
	SqlConfigurationParameters types.List `tfsdk:"sql_configuration_parameters" tf:"optional,object"`
}

func (*GetWorkspaceWarehouseConfigResponse) GetChannel added in v1.61.0

GetChannel returns the value of the Channel field in GetWorkspaceWarehouseConfigResponse as a Channel value. If the field is unknown or null, the boolean return value is false.

func (GetWorkspaceWarehouseConfigResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetWorkspaceWarehouseConfigResponse. 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 (*GetWorkspaceWarehouseConfigResponse) GetConfigParam added in v1.61.0

GetConfigParam returns the value of the ConfigParam field in GetWorkspaceWarehouseConfigResponse as a RepeatedEndpointConfPairs value. If the field is unknown or null, the boolean return value is false.

func (*GetWorkspaceWarehouseConfigResponse) GetDataAccessConfig added in v1.61.0

func (o *GetWorkspaceWarehouseConfigResponse) GetDataAccessConfig(ctx context.Context) ([]EndpointConfPair, bool)

GetDataAccessConfig returns the value of the DataAccessConfig field in GetWorkspaceWarehouseConfigResponse as a slice of EndpointConfPair values. If the field is unknown or null, the boolean return value is false.

func (*GetWorkspaceWarehouseConfigResponse) GetEnabledWarehouseTypes added in v1.61.0

func (o *GetWorkspaceWarehouseConfigResponse) GetEnabledWarehouseTypes(ctx context.Context) ([]WarehouseTypePair, bool)

GetEnabledWarehouseTypes returns the value of the EnabledWarehouseTypes field in GetWorkspaceWarehouseConfigResponse as a slice of WarehouseTypePair values. If the field is unknown or null, the boolean return value is false.

func (*GetWorkspaceWarehouseConfigResponse) GetGlobalParam added in v1.61.0

GetGlobalParam returns the value of the GlobalParam field in GetWorkspaceWarehouseConfigResponse as a RepeatedEndpointConfPairs value. If the field is unknown or null, the boolean return value is false.

func (*GetWorkspaceWarehouseConfigResponse) GetSqlConfigurationParameters added in v1.61.0

func (o *GetWorkspaceWarehouseConfigResponse) GetSqlConfigurationParameters(ctx context.Context) (RepeatedEndpointConfPairs, bool)

GetSqlConfigurationParameters returns the value of the SqlConfigurationParameters field in GetWorkspaceWarehouseConfigResponse as a RepeatedEndpointConfPairs value. If the field is unknown or null, the boolean return value is false.

func (*GetWorkspaceWarehouseConfigResponse) SetChannel added in v1.61.0

SetChannel sets the value of the Channel field in GetWorkspaceWarehouseConfigResponse.

func (*GetWorkspaceWarehouseConfigResponse) SetConfigParam added in v1.61.0

SetConfigParam sets the value of the ConfigParam field in GetWorkspaceWarehouseConfigResponse.

func (*GetWorkspaceWarehouseConfigResponse) SetDataAccessConfig added in v1.61.0

func (o *GetWorkspaceWarehouseConfigResponse) SetDataAccessConfig(ctx context.Context, v []EndpointConfPair)

SetDataAccessConfig sets the value of the DataAccessConfig field in GetWorkspaceWarehouseConfigResponse.

func (*GetWorkspaceWarehouseConfigResponse) SetEnabledWarehouseTypes added in v1.61.0

func (o *GetWorkspaceWarehouseConfigResponse) SetEnabledWarehouseTypes(ctx context.Context, v []WarehouseTypePair)

SetEnabledWarehouseTypes sets the value of the EnabledWarehouseTypes field in GetWorkspaceWarehouseConfigResponse.

func (*GetWorkspaceWarehouseConfigResponse) SetGlobalParam added in v1.61.0

SetGlobalParam sets the value of the GlobalParam field in GetWorkspaceWarehouseConfigResponse.

func (*GetWorkspaceWarehouseConfigResponse) SetSqlConfigurationParameters added in v1.61.0

func (o *GetWorkspaceWarehouseConfigResponse) SetSqlConfigurationParameters(ctx context.Context, v RepeatedEndpointConfPairs)

SetSqlConfigurationParameters sets the value of the SqlConfigurationParameters field in GetWorkspaceWarehouseConfigResponse.

func (*GetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetWorkspaceWarehouseConfigResponse)

func (*GetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringRead(existingState GetWorkspaceWarehouseConfigResponse)

func (GetWorkspaceWarehouseConfigResponse) 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, GetWorkspaceWarehouseConfigResponse only implements ToObjectValue() and Type().

func (GetWorkspaceWarehouseConfigResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type LegacyAlert

type LegacyAlert struct {
	// Timestamp when the alert was created.
	CreatedAt types.String `tfsdk:"created_at" tf:"optional"`
	// Alert ID.
	Id types.String `tfsdk:"id" tf:"optional"`
	// Timestamp when the alert was last triggered.
	LastTriggeredAt types.String `tfsdk:"last_triggered_at" tf:"optional"`
	// Name of the alert.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Alert configuration options.
	Options types.List `tfsdk:"options" tf:"optional,object"`
	// The identifier of the workspace folder containing the object.
	Parent types.String `tfsdk:"parent" tf:"optional"`

	Query types.List `tfsdk:"query" tf:"optional,object"`
	// Number of seconds after being triggered before the alert rearms itself
	// and can be triggered again. If `null`, alert will never be triggered
	// again.
	Rearm types.Int64 `tfsdk:"rearm" tf:"optional"`
	// State of the alert. Possible values are: `unknown` (yet to be evaluated),
	// `triggered` (evaluated and fulfilled trigger conditions), or `ok`
	// (evaluated and did not fulfill trigger conditions).
	State types.String `tfsdk:"state" tf:"optional"`
	// Timestamp when the alert was last updated.
	UpdatedAt types.String `tfsdk:"updated_at" tf:"optional"`

	User types.List `tfsdk:"user" tf:"optional,object"`
}

func (LegacyAlert) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in LegacyAlert. 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 (*LegacyAlert) GetOptions added in v1.61.0

func (o *LegacyAlert) GetOptions(ctx context.Context) (AlertOptions, bool)

GetOptions returns the value of the Options field in LegacyAlert as a AlertOptions value. If the field is unknown or null, the boolean return value is false.

func (*LegacyAlert) GetQuery added in v1.61.0

func (o *LegacyAlert) GetQuery(ctx context.Context) (AlertQuery, bool)

GetQuery returns the value of the Query field in LegacyAlert as a AlertQuery value. If the field is unknown or null, the boolean return value is false.

func (*LegacyAlert) GetUser added in v1.61.0

func (o *LegacyAlert) GetUser(ctx context.Context) (User, bool)

GetUser returns the value of the User field in LegacyAlert as a User value. If the field is unknown or null, the boolean return value is false.

func (*LegacyAlert) SetOptions added in v1.61.0

func (o *LegacyAlert) SetOptions(ctx context.Context, v AlertOptions)

SetOptions sets the value of the Options field in LegacyAlert.

func (*LegacyAlert) SetQuery added in v1.61.0

func (o *LegacyAlert) SetQuery(ctx context.Context, v AlertQuery)

SetQuery sets the value of the Query field in LegacyAlert.

func (*LegacyAlert) SetUser added in v1.61.0

func (o *LegacyAlert) SetUser(ctx context.Context, v User)

SetUser sets the value of the User field in LegacyAlert.

func (*LegacyAlert) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *LegacyAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan LegacyAlert)

func (*LegacyAlert) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *LegacyAlert) SyncEffectiveFieldsDuringRead(existingState LegacyAlert)

func (LegacyAlert) ToObjectValue added in v1.61.0

func (o LegacyAlert) 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, LegacyAlert only implements ToObjectValue() and Type().

func (LegacyAlert) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type LegacyQuery

type LegacyQuery struct {
	// Describes whether the authenticated user is allowed to edit the
	// definition of this query.
	CanEdit types.Bool `tfsdk:"can_edit" tf:"optional"`
	// The timestamp when this query was created.
	CreatedAt types.String `tfsdk:"created_at" tf:"optional"`
	// Data source ID maps to the ID of the data source used by the resource and
	// is distinct from the warehouse ID. [Learn more]
	//
	// [Learn more]: https://docs.databricks.com/api/workspace/datasources/list
	DataSourceId types.String `tfsdk:"data_source_id" tf:"optional"`
	// General description that conveys additional information about this query
	// such as usage notes.
	Description types.String `tfsdk:"description" tf:"optional"`
	// Query ID.
	Id types.String `tfsdk:"id" tf:"optional"`
	// Indicates whether the query is trashed. Trashed queries can't be used in
	// dashboards, or appear in search results. If this boolean is `true`, the
	// `options` property for this query includes a `moved_to_trash_at`
	// timestamp. Trashed queries are permanently deleted after 30 days.
	IsArchived types.Bool `tfsdk:"is_archived" tf:"optional"`
	// Whether the query is a draft. Draft queries only appear in list views for
	// their owners. Visualizations from draft queries cannot appear on
	// dashboards.
	IsDraft types.Bool `tfsdk:"is_draft" tf:"optional"`
	// Whether this query object appears in the current user's favorites list.
	// This flag determines whether the star icon for favorites is selected.
	IsFavorite types.Bool `tfsdk:"is_favorite" tf:"optional"`
	// Text parameter types are not safe from SQL injection for all types of
	// data source. Set this Boolean parameter to `true` if a query either does
	// not use any text type parameters or uses a data source type where text
	// type parameters are handled safely.
	IsSafe types.Bool `tfsdk:"is_safe" tf:"optional"`

	LastModifiedBy types.List `tfsdk:"last_modified_by" tf:"optional,object"`
	// The ID of the user who last saved changes to this query.
	LastModifiedById types.Int64 `tfsdk:"last_modified_by_id" tf:"optional"`
	// If there is a cached result for this query and user, this field includes
	// the query result ID. If this query uses parameters, this field is always
	// null.
	LatestQueryDataId types.String `tfsdk:"latest_query_data_id" tf:"optional"`
	// The title of this query that appears in list views, widget headings, and
	// on the query page.
	Name types.String `tfsdk:"name" tf:"optional"`

	Options types.List `tfsdk:"options" tf:"optional,object"`
	// The identifier of the workspace folder containing the object.
	Parent types.String `tfsdk:"parent" tf:"optional"`
	// * `CAN_VIEW`: Can view the query * `CAN_RUN`: Can run the query *
	// `CAN_EDIT`: Can edit the query * `CAN_MANAGE`: Can manage the query
	PermissionTier types.String `tfsdk:"permission_tier" tf:"optional"`
	// The text of the query to be run.
	Query types.String `tfsdk:"query" tf:"optional"`
	// A SHA-256 hash of the query text along with the authenticated user ID.
	QueryHash types.String `tfsdk:"query_hash" tf:"optional"`
	// Sets the **Run as** role for the object. Must be set to one of `"viewer"`
	// (signifying "run as viewer" behavior) or `"owner"` (signifying "run as
	// owner" behavior)
	RunAsRole types.String `tfsdk:"run_as_role" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
	// The timestamp at which this query was last updated.
	UpdatedAt types.String `tfsdk:"updated_at" tf:"optional"`

	User types.List `tfsdk:"user" tf:"optional,object"`
	// The ID of the user who owns the query.
	UserId types.Int64 `tfsdk:"user_id" tf:"optional"`

	Visualizations types.List `tfsdk:"visualizations" tf:"optional"`
}

func (LegacyQuery) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in LegacyQuery. 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 (*LegacyQuery) GetLastModifiedBy added in v1.61.0

func (o *LegacyQuery) GetLastModifiedBy(ctx context.Context) (User, bool)

GetLastModifiedBy returns the value of the LastModifiedBy field in LegacyQuery as a User value. If the field is unknown or null, the boolean return value is false.

func (*LegacyQuery) GetOptions added in v1.61.0

func (o *LegacyQuery) GetOptions(ctx context.Context) (QueryOptions, bool)

GetOptions returns the value of the Options field in LegacyQuery as a QueryOptions value. If the field is unknown or null, the boolean return value is false.

func (*LegacyQuery) GetTags added in v1.61.0

func (o *LegacyQuery) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*LegacyQuery) GetUser added in v1.61.0

func (o *LegacyQuery) GetUser(ctx context.Context) (User, bool)

GetUser returns the value of the User field in LegacyQuery as a User value. If the field is unknown or null, the boolean return value is false.

func (*LegacyQuery) GetVisualizations added in v1.61.0

func (o *LegacyQuery) GetVisualizations(ctx context.Context) ([]LegacyVisualization, bool)

GetVisualizations returns the value of the Visualizations field in LegacyQuery as a slice of LegacyVisualization values. If the field is unknown or null, the boolean return value is false.

func (*LegacyQuery) SetLastModifiedBy added in v1.61.0

func (o *LegacyQuery) SetLastModifiedBy(ctx context.Context, v User)

SetLastModifiedBy sets the value of the LastModifiedBy field in LegacyQuery.

func (*LegacyQuery) SetOptions added in v1.61.0

func (o *LegacyQuery) SetOptions(ctx context.Context, v QueryOptions)

SetOptions sets the value of the Options field in LegacyQuery.

func (*LegacyQuery) SetTags added in v1.61.0

func (o *LegacyQuery) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in LegacyQuery.

func (*LegacyQuery) SetUser added in v1.61.0

func (o *LegacyQuery) SetUser(ctx context.Context, v User)

SetUser sets the value of the User field in LegacyQuery.

func (*LegacyQuery) SetVisualizations added in v1.61.0

func (o *LegacyQuery) SetVisualizations(ctx context.Context, v []LegacyVisualization)

SetVisualizations sets the value of the Visualizations field in LegacyQuery.

func (*LegacyQuery) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *LegacyQuery) SyncEffectiveFieldsDuringCreateOrUpdate(plan LegacyQuery)

func (*LegacyQuery) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *LegacyQuery) SyncEffectiveFieldsDuringRead(existingState LegacyQuery)

func (LegacyQuery) ToObjectValue added in v1.61.0

func (o LegacyQuery) 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, LegacyQuery only implements ToObjectValue() and Type().

func (LegacyQuery) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type LegacyVisualization

type LegacyVisualization struct {
	CreatedAt types.String `tfsdk:"created_at" tf:"optional"`
	// A short description of this visualization. This is not displayed in the
	// UI.
	Description types.String `tfsdk:"description" tf:"optional"`
	// The UUID for this visualization.
	Id types.String `tfsdk:"id" tf:"optional"`
	// The name of the visualization that appears on dashboards and the query
	// screen.
	Name types.String `tfsdk:"name" tf:"optional"`
	// The options object varies widely from one visualization type to the next
	// and is unsupported. Databricks does not recommend modifying visualization
	// settings in JSON.
	Options types.Object `tfsdk:"options" tf:"optional"`

	Query types.List `tfsdk:"query" tf:"optional,object"`
	// The type of visualization: chart, table, pivot table, and so on.
	Type_ types.String `tfsdk:"type" tf:"optional"`

	UpdatedAt types.String `tfsdk:"updated_at" tf:"optional"`
}

The visualization description API changes frequently and is unsupported. You can duplicate a visualization by copying description objects received _from the API_ and then using them to create a new one with a POST request to the same endpoint. Databricks does not recommend constructing ad-hoc visualizations entirely in JSON.

func (LegacyVisualization) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in LegacyVisualization. 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 (*LegacyVisualization) GetQuery added in v1.61.0

func (o *LegacyVisualization) GetQuery(ctx context.Context) (LegacyQuery, bool)

GetQuery returns the value of the Query field in LegacyVisualization as a LegacyQuery value. If the field is unknown or null, the boolean return value is false.

func (*LegacyVisualization) SetQuery added in v1.61.0

func (o *LegacyVisualization) SetQuery(ctx context.Context, v LegacyQuery)

SetQuery sets the value of the Query field in LegacyVisualization.

func (*LegacyVisualization) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *LegacyVisualization) SyncEffectiveFieldsDuringCreateOrUpdate(plan LegacyVisualization)

func (*LegacyVisualization) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *LegacyVisualization) SyncEffectiveFieldsDuringRead(existingState LegacyVisualization)

func (LegacyVisualization) 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, LegacyVisualization only implements ToObjectValue() and Type().

func (LegacyVisualization) Type

Type implements basetypes.ObjectValuable.

type ListAlertsRequest

type ListAlertsRequest struct {
	PageSize types.Int64 `tfsdk:"-"`

	PageToken types.String `tfsdk:"-"`
}

List alerts

func (ListAlertsRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAlertsRequest. 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 (*ListAlertsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListAlertsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAlertsRequest)

func (*ListAlertsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListAlertsRequest) SyncEffectiveFieldsDuringRead(existingState ListAlertsRequest)

func (ListAlertsRequest) ToObjectValue added in v1.61.0

func (o ListAlertsRequest) 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, ListAlertsRequest only implements ToObjectValue() and Type().

func (ListAlertsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListAlertsResponse

type ListAlertsResponse struct {
	NextPageToken types.String `tfsdk:"next_page_token" tf:"optional"`

	Results types.List `tfsdk:"results" tf:"optional"`
}

func (ListAlertsResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAlertsResponse. 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 (*ListAlertsResponse) GetResults added in v1.61.0

GetResults returns the value of the Results field in ListAlertsResponse as a slice of ListAlertsResponseAlert values. If the field is unknown or null, the boolean return value is false.

func (*ListAlertsResponse) SetResults added in v1.61.0

SetResults sets the value of the Results field in ListAlertsResponse.

func (*ListAlertsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListAlertsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAlertsResponse)

func (*ListAlertsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListAlertsResponse) SyncEffectiveFieldsDuringRead(existingState ListAlertsResponse)

func (ListAlertsResponse) 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, ListAlertsResponse only implements ToObjectValue() and Type().

func (ListAlertsResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListAlertsResponseAlert

type ListAlertsResponseAlert struct {
	// Trigger conditions of the alert.
	Condition types.List `tfsdk:"condition" tf:"optional,object"`
	// The timestamp indicating when the alert was created.
	CreateTime types.String `tfsdk:"create_time" tf:"optional"`
	// Custom body of alert notification, if it exists. See [here] for custom
	// templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomBody types.String `tfsdk:"custom_body" tf:"optional"`
	// Custom subject of alert notification, if it exists. This can include
	// email subject entries and Slack notification headers, for example. See
	// [here] for custom templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomSubject types.String `tfsdk:"custom_subject" tf:"optional"`
	// The display name of the alert.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// UUID identifying the alert.
	Id types.String `tfsdk:"id" tf:"optional"`
	// The workspace state of the alert. Used for tracking trashed status.
	LifecycleState types.String `tfsdk:"lifecycle_state" tf:"optional"`
	// Whether to notify alert subscribers when alert returns back to normal.
	NotifyOnOk types.Bool `tfsdk:"notify_on_ok" tf:"optional"`
	// The owner's username. This field is set to "Unavailable" if the user has
	// been deleted.
	OwnerUserName types.String `tfsdk:"owner_user_name" tf:"optional"`
	// UUID of the query attached to the alert.
	QueryId types.String `tfsdk:"query_id" tf:"optional"`
	// Number of seconds an alert must wait after being triggered to rearm
	// itself. After rearming, it can be triggered again. If 0 or not specified,
	// the alert will not be triggered again.
	SecondsToRetrigger types.Int64 `tfsdk:"seconds_to_retrigger" tf:"optional"`
	// Current state of the alert's trigger status. This field is set to UNKNOWN
	// if the alert has not yet been evaluated or ran into an error during the
	// last evaluation.
	State types.String `tfsdk:"state" tf:"optional"`
	// Timestamp when the alert was last triggered, if the alert has been
	// triggered before.
	TriggerTime types.String `tfsdk:"trigger_time" tf:"optional"`
	// The timestamp indicating when the alert was updated.
	UpdateTime types.String `tfsdk:"update_time" tf:"optional"`
}

func (ListAlertsResponseAlert) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListAlertsResponseAlert. 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 (*ListAlertsResponseAlert) GetCondition added in v1.61.0

func (o *ListAlertsResponseAlert) GetCondition(ctx context.Context) (AlertCondition, bool)

GetCondition returns the value of the Condition field in ListAlertsResponseAlert as a AlertCondition value. If the field is unknown or null, the boolean return value is false.

func (*ListAlertsResponseAlert) SetCondition added in v1.61.0

func (o *ListAlertsResponseAlert) SetCondition(ctx context.Context, v AlertCondition)

SetCondition sets the value of the Condition field in ListAlertsResponseAlert.

func (*ListAlertsResponseAlert) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListAlertsResponseAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListAlertsResponseAlert)

func (*ListAlertsResponseAlert) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListAlertsResponseAlert) SyncEffectiveFieldsDuringRead(existingState ListAlertsResponseAlert)

func (ListAlertsResponseAlert) 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, ListAlertsResponseAlert only implements ToObjectValue() and Type().

func (ListAlertsResponseAlert) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListDashboardsRequest

type ListDashboardsRequest struct {
	// Name of dashboard attribute to order by.
	Order types.String `tfsdk:"-"`
	// Page number to retrieve.
	Page types.Int64 `tfsdk:"-"`
	// Number of dashboards to return per page.
	PageSize types.Int64 `tfsdk:"-"`
	// Full text search term.
	Q types.String `tfsdk:"-"`
}

Get dashboard objects

func (ListDashboardsRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDashboardsRequest. 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 (*ListDashboardsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListDashboardsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDashboardsRequest)

func (*ListDashboardsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListDashboardsRequest) SyncEffectiveFieldsDuringRead(existingState ListDashboardsRequest)

func (ListDashboardsRequest) 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, ListDashboardsRequest only implements ToObjectValue() and Type().

func (ListDashboardsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListQueriesLegacyRequest

type ListQueriesLegacyRequest struct {
	// Name of query attribute to order by. Default sort order is ascending.
	// Append a dash (`-`) to order descending instead.
	//
	// - `name`: The name of the query.
	//
	// - `created_at`: The timestamp the query was created.
	//
	// - `runtime`: The time it took to run this query. This is blank for
	// parameterized queries. A blank value is treated as the highest value for
	// sorting.
	//
	// - `executed_at`: The timestamp when the query was last run.
	//
	// - `created_by`: The user name of the user that created the query.
	Order types.String `tfsdk:"-"`
	// Page number to retrieve.
	Page types.Int64 `tfsdk:"-"`
	// Number of queries to return per page.
	PageSize types.Int64 `tfsdk:"-"`
	// Full text search term
	Q types.String `tfsdk:"-"`
}

Get a list of queries

func (ListQueriesLegacyRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueriesLegacyRequest. 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 (*ListQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueriesLegacyRequest)

func (*ListQueriesLegacyRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListQueriesLegacyRequest) SyncEffectiveFieldsDuringRead(existingState ListQueriesLegacyRequest)

func (ListQueriesLegacyRequest) 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, ListQueriesLegacyRequest only implements ToObjectValue() and Type().

func (ListQueriesLegacyRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListQueriesRequest

type ListQueriesRequest struct {
	PageSize types.Int64 `tfsdk:"-"`

	PageToken types.String `tfsdk:"-"`
}

List queries

func (ListQueriesRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueriesRequest. 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 (*ListQueriesRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListQueriesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueriesRequest)

func (*ListQueriesRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListQueriesRequest) SyncEffectiveFieldsDuringRead(existingState ListQueriesRequest)

func (ListQueriesRequest) 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, ListQueriesRequest only implements ToObjectValue() and Type().

func (ListQueriesRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListQueriesResponse

type ListQueriesResponse struct {
	// Whether there is another page of results.
	HasNextPage types.Bool `tfsdk:"has_next_page" tf:"optional"`
	// A token that can be used to get the next page of results.
	NextPageToken types.String `tfsdk:"next_page_token" tf:"optional"`

	Res types.List `tfsdk:"res" tf:"optional"`
}

func (ListQueriesResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueriesResponse. 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 (*ListQueriesResponse) GetRes added in v1.61.0

func (o *ListQueriesResponse) GetRes(ctx context.Context) ([]QueryInfo, bool)

GetRes returns the value of the Res field in ListQueriesResponse as a slice of QueryInfo values. If the field is unknown or null, the boolean return value is false.

func (*ListQueriesResponse) SetRes added in v1.61.0

func (o *ListQueriesResponse) SetRes(ctx context.Context, v []QueryInfo)

SetRes sets the value of the Res field in ListQueriesResponse.

func (*ListQueriesResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListQueriesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueriesResponse)

func (*ListQueriesResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListQueriesResponse) SyncEffectiveFieldsDuringRead(existingState ListQueriesResponse)

func (ListQueriesResponse) 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, ListQueriesResponse only implements ToObjectValue() and Type().

func (ListQueriesResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListQueryHistoryRequest

type ListQueryHistoryRequest struct {
	// A filter to limit query history results. This field is optional.
	FilterBy types.List `tfsdk:"-"`
	// Whether to include the query metrics with each query. Only use this for a
	// small subset of queries (max_results). Defaults to false.
	IncludeMetrics types.Bool `tfsdk:"-"`
	// Limit the number of results returned in one page. Must be less than 1000
	// and the default is 100.
	MaxResults types.Int64 `tfsdk:"-"`
	// A token that can be used to get the next page of results. The token can
	// contains characters that need to be encoded before using it in a URL. For
	// example, the character '+' needs to be replaced by %2B. This field is
	// optional.
	PageToken types.String `tfsdk:"-"`
}

List Queries

func (ListQueryHistoryRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueryHistoryRequest. 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 (*ListQueryHistoryRequest) GetFilterBy added in v1.61.0

func (o *ListQueryHistoryRequest) GetFilterBy(ctx context.Context) (QueryFilter, bool)

GetFilterBy returns the value of the FilterBy field in ListQueryHistoryRequest as a QueryFilter value. If the field is unknown or null, the boolean return value is false.

func (*ListQueryHistoryRequest) SetFilterBy added in v1.61.0

func (o *ListQueryHistoryRequest) SetFilterBy(ctx context.Context, v QueryFilter)

SetFilterBy sets the value of the FilterBy field in ListQueryHistoryRequest.

func (*ListQueryHistoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListQueryHistoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueryHistoryRequest)

func (*ListQueryHistoryRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListQueryHistoryRequest) SyncEffectiveFieldsDuringRead(existingState ListQueryHistoryRequest)

func (ListQueryHistoryRequest) 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, ListQueryHistoryRequest only implements ToObjectValue() and Type().

func (ListQueryHistoryRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListQueryObjectsResponse

type ListQueryObjectsResponse struct {
	NextPageToken types.String `tfsdk:"next_page_token" tf:"optional"`

	Results types.List `tfsdk:"results" tf:"optional"`
}

func (ListQueryObjectsResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueryObjectsResponse. 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 (*ListQueryObjectsResponse) GetResults added in v1.61.0

GetResults returns the value of the Results field in ListQueryObjectsResponse as a slice of ListQueryObjectsResponseQuery values. If the field is unknown or null, the boolean return value is false.

func (*ListQueryObjectsResponse) SetResults added in v1.61.0

SetResults sets the value of the Results field in ListQueryObjectsResponse.

func (*ListQueryObjectsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListQueryObjectsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueryObjectsResponse)

func (*ListQueryObjectsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListQueryObjectsResponse) SyncEffectiveFieldsDuringRead(existingState ListQueryObjectsResponse)

func (ListQueryObjectsResponse) 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, ListQueryObjectsResponse only implements ToObjectValue() and Type().

func (ListQueryObjectsResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListQueryObjectsResponseQuery

type ListQueryObjectsResponseQuery struct {
	// Whether to apply a 1000 row limit to the query result.
	ApplyAutoLimit types.Bool `tfsdk:"apply_auto_limit" tf:"optional"`
	// Name of the catalog where this query will be executed.
	Catalog types.String `tfsdk:"catalog" tf:"optional"`
	// Timestamp when this query was created.
	CreateTime types.String `tfsdk:"create_time" tf:"optional"`
	// General description that conveys additional information about this query
	// such as usage notes.
	Description types.String `tfsdk:"description" tf:"optional"`
	// Display name of the query that appears in list views, widget headings,
	// and on the query page.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// UUID identifying the query.
	Id types.String `tfsdk:"id" tf:"optional"`
	// Username of the user who last saved changes to this query.
	LastModifierUserName types.String `tfsdk:"last_modifier_user_name" tf:"optional"`
	// Indicates whether the query is trashed.
	LifecycleState types.String `tfsdk:"lifecycle_state" tf:"optional"`
	// Username of the user that owns the query.
	OwnerUserName types.String `tfsdk:"owner_user_name" tf:"optional"`
	// List of query parameter definitions.
	Parameters types.List `tfsdk:"parameters" tf:"optional"`
	// Text of the query to be run.
	QueryText types.String `tfsdk:"query_text" tf:"optional"`
	// Sets the "Run as" role for the object.
	RunAsMode types.String `tfsdk:"run_as_mode" tf:"optional"`
	// Name of the schema where this query will be executed.
	Schema types.String `tfsdk:"schema" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
	// Timestamp when this query was last updated.
	UpdateTime types.String `tfsdk:"update_time" tf:"optional"`
	// ID of the SQL warehouse attached to the query.
	WarehouseId types.String `tfsdk:"warehouse_id" tf:"optional"`
}

func (ListQueryObjectsResponseQuery) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListQueryObjectsResponseQuery. 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 (*ListQueryObjectsResponseQuery) GetParameters added in v1.61.0

GetParameters returns the value of the Parameters field in ListQueryObjectsResponseQuery as a slice of QueryParameter values. If the field is unknown or null, the boolean return value is false.

func (*ListQueryObjectsResponseQuery) GetTags added in v1.61.0

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

func (*ListQueryObjectsResponseQuery) SetParameters added in v1.61.0

func (o *ListQueryObjectsResponseQuery) SetParameters(ctx context.Context, v []QueryParameter)

SetParameters sets the value of the Parameters field in ListQueryObjectsResponseQuery.

func (*ListQueryObjectsResponseQuery) SetTags added in v1.61.0

SetTags sets the value of the Tags field in ListQueryObjectsResponseQuery.

func (*ListQueryObjectsResponseQuery) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListQueryObjectsResponseQuery) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListQueryObjectsResponseQuery)

func (*ListQueryObjectsResponseQuery) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListQueryObjectsResponseQuery) SyncEffectiveFieldsDuringRead(existingState ListQueryObjectsResponseQuery)

func (ListQueryObjectsResponseQuery) 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, ListQueryObjectsResponseQuery only implements ToObjectValue() and Type().

func (ListQueryObjectsResponseQuery) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListResponse

type ListResponse struct {
	// The total number of dashboards.
	Count types.Int64 `tfsdk:"count" tf:"optional"`
	// The current page being displayed.
	Page types.Int64 `tfsdk:"page" tf:"optional"`
	// The number of dashboards per page.
	PageSize types.Int64 `tfsdk:"page_size" tf:"optional"`
	// List of dashboards returned.
	Results types.List `tfsdk:"results" tf:"optional"`
}

func (ListResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListResponse. 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 (*ListResponse) GetResults added in v1.61.0

func (o *ListResponse) GetResults(ctx context.Context) ([]Dashboard, bool)

GetResults returns the value of the Results field in ListResponse as a slice of Dashboard values. If the field is unknown or null, the boolean return value is false.

func (*ListResponse) SetResults added in v1.61.0

func (o *ListResponse) SetResults(ctx context.Context, v []Dashboard)

SetResults sets the value of the Results field in ListResponse.

func (*ListResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListResponse)

func (*ListResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListResponse) SyncEffectiveFieldsDuringRead(existingState ListResponse)

func (ListResponse) ToObjectValue added in v1.61.0

func (o ListResponse) 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, ListResponse only implements ToObjectValue() and Type().

func (ListResponse) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type ListVisualizationsForQueryRequest

type ListVisualizationsForQueryRequest struct {
	Id types.String `tfsdk:"-"`

	PageSize types.Int64 `tfsdk:"-"`

	PageToken types.String `tfsdk:"-"`
}

List visualizations on a query

func (ListVisualizationsForQueryRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVisualizationsForQueryRequest. 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 (*ListVisualizationsForQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListVisualizationsForQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListVisualizationsForQueryRequest)

func (*ListVisualizationsForQueryRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListVisualizationsForQueryRequest) SyncEffectiveFieldsDuringRead(existingState ListVisualizationsForQueryRequest)

func (ListVisualizationsForQueryRequest) 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, ListVisualizationsForQueryRequest only implements ToObjectValue() and Type().

func (ListVisualizationsForQueryRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListVisualizationsForQueryResponse

type ListVisualizationsForQueryResponse struct {
	NextPageToken types.String `tfsdk:"next_page_token" tf:"optional"`

	Results types.List `tfsdk:"results" tf:"optional"`
}

func (ListVisualizationsForQueryResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListVisualizationsForQueryResponse. 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 (*ListVisualizationsForQueryResponse) GetResults added in v1.61.0

GetResults returns the value of the Results field in ListVisualizationsForQueryResponse as a slice of Visualization values. If the field is unknown or null, the boolean return value is false.

func (*ListVisualizationsForQueryResponse) SetResults added in v1.61.0

SetResults sets the value of the Results field in ListVisualizationsForQueryResponse.

func (*ListVisualizationsForQueryResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListVisualizationsForQueryResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListVisualizationsForQueryResponse)

func (*ListVisualizationsForQueryResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListVisualizationsForQueryResponse) SyncEffectiveFieldsDuringRead(existingState ListVisualizationsForQueryResponse)

func (ListVisualizationsForQueryResponse) 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, ListVisualizationsForQueryResponse only implements ToObjectValue() and Type().

func (ListVisualizationsForQueryResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListWarehousesRequest

type ListWarehousesRequest struct {
	// Service Principal which will be used to fetch the list of warehouses. If
	// not specified, the user from the session header is used.
	RunAsUserId types.Int64 `tfsdk:"-"`
}

List warehouses

func (ListWarehousesRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWarehousesRequest. 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 (*ListWarehousesRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListWarehousesRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWarehousesRequest)

func (*ListWarehousesRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListWarehousesRequest) SyncEffectiveFieldsDuringRead(existingState ListWarehousesRequest)

func (ListWarehousesRequest) 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, ListWarehousesRequest only implements ToObjectValue() and Type().

func (ListWarehousesRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListWarehousesResponse

type ListWarehousesResponse struct {
	// A list of warehouses and their configurations.
	Warehouses types.List `tfsdk:"warehouses" tf:"optional"`
}

func (ListWarehousesResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListWarehousesResponse. 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 (*ListWarehousesResponse) GetWarehouses added in v1.61.0

func (o *ListWarehousesResponse) GetWarehouses(ctx context.Context) ([]EndpointInfo, bool)

GetWarehouses returns the value of the Warehouses field in ListWarehousesResponse as a slice of EndpointInfo values. If the field is unknown or null, the boolean return value is false.

func (*ListWarehousesResponse) SetWarehouses added in v1.61.0

func (o *ListWarehousesResponse) SetWarehouses(ctx context.Context, v []EndpointInfo)

SetWarehouses sets the value of the Warehouses field in ListWarehousesResponse.

func (*ListWarehousesResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListWarehousesResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListWarehousesResponse)

func (*ListWarehousesResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListWarehousesResponse) SyncEffectiveFieldsDuringRead(existingState ListWarehousesResponse)

func (ListWarehousesResponse) 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, ListWarehousesResponse only implements ToObjectValue() and Type().

func (ListWarehousesResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type MultiValuesOptions

type MultiValuesOptions struct {
	// Character that prefixes each selected parameter value.
	Prefix types.String `tfsdk:"prefix" tf:"optional"`
	// Character that separates each selected parameter value. Defaults to a
	// comma.
	Separator types.String `tfsdk:"separator" tf:"optional"`
	// Character that suffixes each selected parameter value.
	Suffix types.String `tfsdk:"suffix" tf:"optional"`
}

func (MultiValuesOptions) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in MultiValuesOptions. 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 (*MultiValuesOptions) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *MultiValuesOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan MultiValuesOptions)

func (*MultiValuesOptions) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *MultiValuesOptions) SyncEffectiveFieldsDuringRead(existingState MultiValuesOptions)

func (MultiValuesOptions) 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, MultiValuesOptions only implements ToObjectValue() and Type().

func (MultiValuesOptions) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type NumericValue

type NumericValue struct {
	Value types.Float64 `tfsdk:"value" tf:"optional"`
}

func (NumericValue) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in NumericValue. 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 (*NumericValue) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *NumericValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan NumericValue)

func (*NumericValue) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *NumericValue) SyncEffectiveFieldsDuringRead(existingState NumericValue)

func (NumericValue) ToObjectValue added in v1.61.0

func (o NumericValue) 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, NumericValue only implements ToObjectValue() and Type().

func (NumericValue) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type OdbcParams

type OdbcParams struct {
	Hostname types.String `tfsdk:"hostname" tf:"optional"`

	Path types.String `tfsdk:"path" tf:"optional"`

	Port types.Int64 `tfsdk:"port" tf:"optional"`

	Protocol types.String `tfsdk:"protocol" tf:"optional"`
}

func (OdbcParams) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in OdbcParams. 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 (*OdbcParams) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *OdbcParams) SyncEffectiveFieldsDuringCreateOrUpdate(plan OdbcParams)

func (*OdbcParams) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *OdbcParams) SyncEffectiveFieldsDuringRead(existingState OdbcParams)

func (OdbcParams) ToObjectValue added in v1.61.0

func (o OdbcParams) 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, OdbcParams only implements ToObjectValue() and Type().

func (OdbcParams) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type Parameter

type Parameter struct {
	// List of valid parameter values, newline delimited. Only applies for
	// dropdown list parameters.
	EnumOptions types.String `tfsdk:"enumOptions" tf:"optional"`
	// If specified, allows multiple values to be selected for this parameter.
	// Only applies to dropdown list and query-based dropdown list parameters.
	MultiValuesOptions types.List `tfsdk:"multiValuesOptions" tf:"optional,object"`
	// The literal parameter marker that appears between double curly braces in
	// the query text.
	Name types.String `tfsdk:"name" tf:"optional"`
	// The UUID of the query that provides the parameter values. Only applies
	// for query-based dropdown list parameters.
	QueryId types.String `tfsdk:"queryId" tf:"optional"`
	// The text displayed in a parameter picking widget.
	Title types.String `tfsdk:"title" tf:"optional"`
	// Parameters can have several different types.
	Type_ types.String `tfsdk:"type" tf:"optional"`
	// The default value for this parameter.
	Value types.Object `tfsdk:"value" tf:"optional"`
}

func (Parameter) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Parameter. 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 (*Parameter) GetMultiValuesOptions added in v1.61.0

func (o *Parameter) GetMultiValuesOptions(ctx context.Context) (MultiValuesOptions, bool)

GetMultiValuesOptions returns the value of the MultiValuesOptions field in Parameter as a MultiValuesOptions value. If the field is unknown or null, the boolean return value is false.

func (*Parameter) SetMultiValuesOptions added in v1.61.0

func (o *Parameter) SetMultiValuesOptions(ctx context.Context, v MultiValuesOptions)

SetMultiValuesOptions sets the value of the MultiValuesOptions field in Parameter.

func (*Parameter) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Parameter) SyncEffectiveFieldsDuringCreateOrUpdate(plan Parameter)

func (*Parameter) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Parameter) SyncEffectiveFieldsDuringRead(existingState Parameter)

func (Parameter) ToObjectValue added in v1.61.0

func (o Parameter) 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, Parameter only implements ToObjectValue() and Type().

func (Parameter) Type

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

Type implements basetypes.ObjectValuable.

type Query

type Query struct {
	// Whether to apply a 1000 row limit to the query result.
	ApplyAutoLimit types.Bool `tfsdk:"apply_auto_limit" tf:"optional"`
	// Name of the catalog where this query will be executed.
	Catalog types.String `tfsdk:"catalog" tf:"optional"`
	// Timestamp when this query was created.
	CreateTime types.String `tfsdk:"create_time" tf:"optional"`
	// General description that conveys additional information about this query
	// such as usage notes.
	Description types.String `tfsdk:"description" tf:"optional"`
	// Display name of the query that appears in list views, widget headings,
	// and on the query page.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// UUID identifying the query.
	Id types.String `tfsdk:"id" tf:"optional"`
	// Username of the user who last saved changes to this query.
	LastModifierUserName types.String `tfsdk:"last_modifier_user_name" tf:"optional"`
	// Indicates whether the query is trashed.
	LifecycleState types.String `tfsdk:"lifecycle_state" tf:"optional"`
	// Username of the user that owns the query.
	OwnerUserName types.String `tfsdk:"owner_user_name" tf:"optional"`
	// List of query parameter definitions.
	Parameters types.List `tfsdk:"parameters" tf:"optional"`
	// Workspace path of the workspace folder containing the object.
	ParentPath types.String `tfsdk:"parent_path" tf:"optional"`
	// Text of the query to be run.
	QueryText types.String `tfsdk:"query_text" tf:"optional"`
	// Sets the "Run as" role for the object.
	RunAsMode types.String `tfsdk:"run_as_mode" tf:"optional"`
	// Name of the schema where this query will be executed.
	Schema types.String `tfsdk:"schema" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
	// Timestamp when this query was last updated.
	UpdateTime types.String `tfsdk:"update_time" tf:"optional"`
	// ID of the SQL warehouse attached to the query.
	WarehouseId types.String `tfsdk:"warehouse_id" tf:"optional"`
}

func (Query) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Query. 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 (*Query) GetParameters added in v1.61.0

func (o *Query) GetParameters(ctx context.Context) ([]QueryParameter, bool)

GetParameters returns the value of the Parameters field in Query as a slice of QueryParameter values. If the field is unknown or null, the boolean return value is false.

func (*Query) GetTags added in v1.61.0

func (o *Query) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*Query) SetParameters added in v1.61.0

func (o *Query) SetParameters(ctx context.Context, v []QueryParameter)

SetParameters sets the value of the Parameters field in Query.

func (*Query) SetTags added in v1.61.0

func (o *Query) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in Query.

func (*Query) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Query) SyncEffectiveFieldsDuringCreateOrUpdate(plan Query)

func (*Query) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Query) SyncEffectiveFieldsDuringRead(existingState Query)

func (Query) ToObjectValue added in v1.61.0

func (o Query) 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, Query only implements ToObjectValue() and Type().

func (Query) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type QueryBackedValue

type QueryBackedValue struct {
	// If specified, allows multiple values to be selected for this parameter.
	MultiValuesOptions types.List `tfsdk:"multi_values_options" tf:"optional,object"`
	// UUID of the query that provides the parameter values.
	QueryId types.String `tfsdk:"query_id" tf:"optional"`
	// List of selected query parameter values.
	Values types.List `tfsdk:"values" tf:"optional"`
}

func (QueryBackedValue) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryBackedValue. 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 (*QueryBackedValue) GetMultiValuesOptions added in v1.61.0

func (o *QueryBackedValue) GetMultiValuesOptions(ctx context.Context) (MultiValuesOptions, bool)

GetMultiValuesOptions returns the value of the MultiValuesOptions field in QueryBackedValue as a MultiValuesOptions value. If the field is unknown or null, the boolean return value is false.

func (*QueryBackedValue) GetValues added in v1.61.0

func (o *QueryBackedValue) GetValues(ctx context.Context) ([]types.String, bool)

GetValues returns the value of the Values field in QueryBackedValue as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*QueryBackedValue) SetMultiValuesOptions added in v1.61.0

func (o *QueryBackedValue) SetMultiValuesOptions(ctx context.Context, v MultiValuesOptions)

SetMultiValuesOptions sets the value of the MultiValuesOptions field in QueryBackedValue.

func (*QueryBackedValue) SetValues added in v1.61.0

func (o *QueryBackedValue) SetValues(ctx context.Context, v []types.String)

SetValues sets the value of the Values field in QueryBackedValue.

func (*QueryBackedValue) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryBackedValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryBackedValue)

func (*QueryBackedValue) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryBackedValue) SyncEffectiveFieldsDuringRead(existingState QueryBackedValue)

func (QueryBackedValue) ToObjectValue added in v1.61.0

func (o QueryBackedValue) 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, QueryBackedValue only implements ToObjectValue() and Type().

func (QueryBackedValue) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type QueryEditContent

type QueryEditContent struct {
	// Data source ID maps to the ID of the data source used by the resource and
	// is distinct from the warehouse ID. [Learn more]
	//
	// [Learn more]: https://docs.databricks.com/api/workspace/datasources/list
	DataSourceId types.String `tfsdk:"data_source_id" tf:"optional"`
	// General description that conveys additional information about this query
	// such as usage notes.
	Description types.String `tfsdk:"description" tf:"optional"`
	// The title of this query that appears in list views, widget headings, and
	// on the query page.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Exclusively used for storing a list parameter definitions. A parameter is
	// an object with `title`, `name`, `type`, and `value` properties. The
	// `value` field here is the default value. It can be overridden at runtime.
	Options types.Object `tfsdk:"options" tf:"optional"`
	// The text of the query to be run.
	Query types.String `tfsdk:"query" tf:"optional"`

	QueryId types.String `tfsdk:"-"`
	// Sets the **Run as** role for the object. Must be set to one of `"viewer"`
	// (signifying "run as viewer" behavior) or `"owner"` (signifying "run as
	// owner" behavior)
	RunAsRole types.String `tfsdk:"run_as_role" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
}

func (QueryEditContent) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryEditContent. 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 (*QueryEditContent) GetTags added in v1.61.0

func (o *QueryEditContent) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*QueryEditContent) SetTags added in v1.61.0

func (o *QueryEditContent) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in QueryEditContent.

func (*QueryEditContent) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryEditContent) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryEditContent)

func (*QueryEditContent) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryEditContent) SyncEffectiveFieldsDuringRead(existingState QueryEditContent)

func (QueryEditContent) ToObjectValue added in v1.61.0

func (o QueryEditContent) 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, QueryEditContent only implements ToObjectValue() and Type().

func (QueryEditContent) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type QueryFilter

type QueryFilter struct {
	// A range filter for query submitted time. The time range must be <= 30
	// days.
	QueryStartTimeRange types.List `tfsdk:"query_start_time_range" tf:"optional,object"`
	// A list of statement IDs.
	StatementIds types.List `tfsdk:"statement_ids" tf:"optional"`

	Statuses types.List `tfsdk:"statuses" tf:"optional"`
	// A list of user IDs who ran the queries.
	UserIds types.List `tfsdk:"user_ids" tf:"optional"`
	// A list of warehouse IDs.
	WarehouseIds types.List `tfsdk:"warehouse_ids" tf:"optional"`
}

func (QueryFilter) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryFilter. 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 (*QueryFilter) GetQueryStartTimeRange added in v1.61.0

func (o *QueryFilter) GetQueryStartTimeRange(ctx context.Context) (TimeRange, bool)

GetQueryStartTimeRange returns the value of the QueryStartTimeRange field in QueryFilter as a TimeRange value. If the field is unknown or null, the boolean return value is false.

func (*QueryFilter) GetStatementIds added in v1.61.0

func (o *QueryFilter) GetStatementIds(ctx context.Context) ([]types.String, bool)

GetStatementIds returns the value of the StatementIds field in QueryFilter as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*QueryFilter) GetStatuses added in v1.61.0

func (o *QueryFilter) GetStatuses(ctx context.Context) ([]types.String, bool)

GetStatuses returns the value of the Statuses field in QueryFilter as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*QueryFilter) GetUserIds added in v1.61.0

func (o *QueryFilter) GetUserIds(ctx context.Context) ([]types.Int64, bool)

GetUserIds returns the value of the UserIds field in QueryFilter as a slice of types.Int64 values. If the field is unknown or null, the boolean return value is false.

func (*QueryFilter) GetWarehouseIds added in v1.61.0

func (o *QueryFilter) GetWarehouseIds(ctx context.Context) ([]types.String, bool)

GetWarehouseIds returns the value of the WarehouseIds field in QueryFilter as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (*QueryFilter) SetQueryStartTimeRange added in v1.61.0

func (o *QueryFilter) SetQueryStartTimeRange(ctx context.Context, v TimeRange)

SetQueryStartTimeRange sets the value of the QueryStartTimeRange field in QueryFilter.

func (*QueryFilter) SetStatementIds added in v1.61.0

func (o *QueryFilter) SetStatementIds(ctx context.Context, v []types.String)

SetStatementIds sets the value of the StatementIds field in QueryFilter.

func (*QueryFilter) SetStatuses added in v1.61.0

func (o *QueryFilter) SetStatuses(ctx context.Context, v []types.String)

SetStatuses sets the value of the Statuses field in QueryFilter.

func (*QueryFilter) SetUserIds added in v1.61.0

func (o *QueryFilter) SetUserIds(ctx context.Context, v []types.Int64)

SetUserIds sets the value of the UserIds field in QueryFilter.

func (*QueryFilter) SetWarehouseIds added in v1.61.0

func (o *QueryFilter) SetWarehouseIds(ctx context.Context, v []types.String)

SetWarehouseIds sets the value of the WarehouseIds field in QueryFilter.

func (*QueryFilter) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryFilter) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryFilter)

func (*QueryFilter) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryFilter) SyncEffectiveFieldsDuringRead(existingState QueryFilter)

func (QueryFilter) ToObjectValue added in v1.61.0

func (o QueryFilter) 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, QueryFilter only implements ToObjectValue() and Type().

func (QueryFilter) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type QueryInfo

type QueryInfo struct {
	// SQL Warehouse channel information at the time of query execution
	ChannelUsed types.List `tfsdk:"channel_used" tf:"optional,object"`
	// Total execution time of the statement ( excluding result fetch time ).
	Duration types.Int64 `tfsdk:"duration" tf:"optional"`
	// Alias for `warehouse_id`.
	EndpointId types.String `tfsdk:"endpoint_id" tf:"optional"`
	// Message describing why the query could not complete.
	ErrorMessage types.String `tfsdk:"error_message" tf:"optional"`
	// The ID of the user whose credentials were used to run the query.
	ExecutedAsUserId types.Int64 `tfsdk:"executed_as_user_id" tf:"optional"`
	// The email address or username of the user whose credentials were used to
	// run the query.
	ExecutedAsUserName types.String `tfsdk:"executed_as_user_name" tf:"optional"`
	// The time execution of the query ended.
	ExecutionEndTimeMs types.Int64 `tfsdk:"execution_end_time_ms" tf:"optional"`
	// Whether more updates for the query are expected.
	IsFinal types.Bool `tfsdk:"is_final" tf:"optional"`
	// A key that can be used to look up query details.
	LookupKey types.String `tfsdk:"lookup_key" tf:"optional"`
	// Metrics about query execution.
	Metrics types.List `tfsdk:"metrics" tf:"optional,object"`
	// Whether plans exist for the execution, or the reason why they are missing
	PlansState types.String `tfsdk:"plans_state" tf:"optional"`
	// The time the query ended.
	QueryEndTimeMs types.Int64 `tfsdk:"query_end_time_ms" tf:"optional"`
	// The query ID.
	QueryId types.String `tfsdk:"query_id" tf:"optional"`
	// The time the query started.
	QueryStartTimeMs types.Int64 `tfsdk:"query_start_time_ms" tf:"optional"`
	// The text of the query.
	QueryText types.String `tfsdk:"query_text" tf:"optional"`
	// The number of results returned by the query.
	RowsProduced types.Int64 `tfsdk:"rows_produced" tf:"optional"`
	// URL to the Spark UI query plan.
	SparkUiUrl types.String `tfsdk:"spark_ui_url" tf:"optional"`
	// Type of statement for this query
	StatementType types.String `tfsdk:"statement_type" tf:"optional"`
	// Query status with one the following values:
	//
	// - `QUEUED`: Query has been received and queued. - `RUNNING`: Query has
	// started. - `CANCELED`: Query has been cancelled by the user. - `FAILED`:
	// Query has failed. - `FINISHED`: Query has completed.
	Status types.String `tfsdk:"status" tf:"optional"`
	// The ID of the user who ran the query.
	UserId types.Int64 `tfsdk:"user_id" tf:"optional"`
	// The email address or username of the user who ran the query.
	UserName types.String `tfsdk:"user_name" tf:"optional"`
	// Warehouse ID.
	WarehouseId types.String `tfsdk:"warehouse_id" tf:"optional"`
}

func (*QueryInfo) GetChannelUsed added in v1.61.0

func (o *QueryInfo) GetChannelUsed(ctx context.Context) (ChannelInfo, bool)

GetChannelUsed returns the value of the ChannelUsed field in QueryInfo as a ChannelInfo value. If the field is unknown or null, the boolean return value is false.

func (QueryInfo) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryInfo. 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 (*QueryInfo) GetMetrics added in v1.61.0

func (o *QueryInfo) GetMetrics(ctx context.Context) (QueryMetrics, bool)

GetMetrics returns the value of the Metrics field in QueryInfo as a QueryMetrics value. If the field is unknown or null, the boolean return value is false.

func (*QueryInfo) SetChannelUsed added in v1.61.0

func (o *QueryInfo) SetChannelUsed(ctx context.Context, v ChannelInfo)

SetChannelUsed sets the value of the ChannelUsed field in QueryInfo.

func (*QueryInfo) SetMetrics added in v1.61.0

func (o *QueryInfo) SetMetrics(ctx context.Context, v QueryMetrics)

SetMetrics sets the value of the Metrics field in QueryInfo.

func (*QueryInfo) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryInfo)

func (*QueryInfo) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryInfo) SyncEffectiveFieldsDuringRead(existingState QueryInfo)

func (QueryInfo) ToObjectValue added in v1.61.0

func (o QueryInfo) 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, QueryInfo only implements ToObjectValue() and Type().

func (QueryInfo) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type QueryList

type QueryList struct {
	// The total number of queries.
	Count types.Int64 `tfsdk:"count" tf:"optional"`
	// The page number that is currently displayed.
	Page types.Int64 `tfsdk:"page" tf:"optional"`
	// The number of queries per page.
	PageSize types.Int64 `tfsdk:"page_size" tf:"optional"`
	// List of queries returned.
	Results types.List `tfsdk:"results" tf:"optional"`
}

func (QueryList) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryList. 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 (*QueryList) GetResults added in v1.61.0

func (o *QueryList) GetResults(ctx context.Context) ([]LegacyQuery, bool)

GetResults returns the value of the Results field in QueryList as a slice of LegacyQuery values. If the field is unknown or null, the boolean return value is false.

func (*QueryList) SetResults added in v1.61.0

func (o *QueryList) SetResults(ctx context.Context, v []LegacyQuery)

SetResults sets the value of the Results field in QueryList.

func (*QueryList) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryList) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryList)

func (*QueryList) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryList) SyncEffectiveFieldsDuringRead(existingState QueryList)

func (QueryList) ToObjectValue added in v1.61.0

func (o QueryList) 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, QueryList only implements ToObjectValue() and Type().

func (QueryList) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type QueryMetrics

type QueryMetrics struct {
	// Time spent loading metadata and optimizing the query, in milliseconds.
	CompilationTimeMs types.Int64 `tfsdk:"compilation_time_ms" tf:"optional"`
	// Time spent executing the query, in milliseconds.
	ExecutionTimeMs types.Int64 `tfsdk:"execution_time_ms" tf:"optional"`
	// Total amount of data sent over the network between executor nodes during
	// shuffle, in bytes.
	NetworkSentBytes types.Int64 `tfsdk:"network_sent_bytes" tf:"optional"`
	// Timestamp of when the query was enqueued waiting while the warehouse was
	// at max load. This field is optional and will not appear if the query
	// skipped the overloading queue.
	OverloadingQueueStartTimestamp types.Int64 `tfsdk:"overloading_queue_start_timestamp" tf:"optional"`
	// Total execution time for all individual Photon query engine tasks in the
	// query, in milliseconds.
	PhotonTotalTimeMs types.Int64 `tfsdk:"photon_total_time_ms" tf:"optional"`
	// Timestamp of when the query was enqueued waiting for a cluster to be
	// provisioned for the warehouse. This field is optional and will not appear
	// if the query skipped the provisioning queue.
	ProvisioningQueueStartTimestamp types.Int64 `tfsdk:"provisioning_queue_start_timestamp" tf:"optional"`
	// Total number of bytes in all tables not read due to pruning
	PrunedBytes types.Int64 `tfsdk:"pruned_bytes" tf:"optional"`
	// Total number of files from all tables not read due to pruning
	PrunedFilesCount types.Int64 `tfsdk:"pruned_files_count" tf:"optional"`
	// Timestamp of when the underlying compute started compilation of the
	// query.
	QueryCompilationStartTimestamp types.Int64 `tfsdk:"query_compilation_start_timestamp" tf:"optional"`
	// Total size of data read by the query, in bytes.
	ReadBytes types.Int64 `tfsdk:"read_bytes" tf:"optional"`
	// Size of persistent data read from the cache, in bytes.
	ReadCacheBytes types.Int64 `tfsdk:"read_cache_bytes" tf:"optional"`
	// Number of files read after pruning
	ReadFilesCount types.Int64 `tfsdk:"read_files_count" tf:"optional"`
	// Number of partitions read after pruning.
	ReadPartitionsCount types.Int64 `tfsdk:"read_partitions_count" tf:"optional"`
	// Size of persistent data read from cloud object storage on your cloud
	// tenant, in bytes.
	ReadRemoteBytes types.Int64 `tfsdk:"read_remote_bytes" tf:"optional"`
	// Time spent fetching the query results after the execution finished, in
	// milliseconds.
	ResultFetchTimeMs types.Int64 `tfsdk:"result_fetch_time_ms" tf:"optional"`
	// `true` if the query result was fetched from cache, `false` otherwise.
	ResultFromCache types.Bool `tfsdk:"result_from_cache" tf:"optional"`
	// Total number of rows returned by the query.
	RowsProducedCount types.Int64 `tfsdk:"rows_produced_count" tf:"optional"`
	// Total number of rows read by the query.
	RowsReadCount types.Int64 `tfsdk:"rows_read_count" tf:"optional"`
	// Size of data temporarily written to disk while executing the query, in
	// bytes.
	SpillToDiskBytes types.Int64 `tfsdk:"spill_to_disk_bytes" tf:"optional"`
	// Sum of execution time for all of the query’s tasks, in milliseconds.
	TaskTotalTimeMs types.Int64 `tfsdk:"task_total_time_ms" tf:"optional"`
	// Total execution time of the query from the client’s point of view, in
	// milliseconds.
	TotalTimeMs types.Int64 `tfsdk:"total_time_ms" tf:"optional"`
	// Size pf persistent data written to cloud object storage in your cloud
	// tenant, in bytes.
	WriteRemoteBytes types.Int64 `tfsdk:"write_remote_bytes" tf:"optional"`
}

A query metric that encapsulates a set of measurements for a single query. Metrics come from the driver and are stored in the history service database.

func (QueryMetrics) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryMetrics. 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 (*QueryMetrics) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryMetrics) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryMetrics)

func (*QueryMetrics) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryMetrics) SyncEffectiveFieldsDuringRead(existingState QueryMetrics)

func (QueryMetrics) ToObjectValue added in v1.61.0

func (o QueryMetrics) 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, QueryMetrics only implements ToObjectValue() and Type().

func (QueryMetrics) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type QueryOptions

type QueryOptions struct {
	// The name of the catalog to execute this query in.
	Catalog types.String `tfsdk:"catalog" tf:"optional"`
	// The timestamp when this query was moved to trash. Only present when the
	// `is_archived` property is `true`. Trashed items are deleted after thirty
	// days.
	MovedToTrashAt types.String `tfsdk:"moved_to_trash_at" tf:"optional"`

	Parameters types.List `tfsdk:"parameters" tf:"optional"`
	// The name of the schema to execute this query in.
	Schema types.String `tfsdk:"schema" tf:"optional"`
}

func (QueryOptions) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryOptions. 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 (*QueryOptions) GetParameters added in v1.61.0

func (o *QueryOptions) GetParameters(ctx context.Context) ([]Parameter, bool)

GetParameters returns the value of the Parameters field in QueryOptions as a slice of Parameter values. If the field is unknown or null, the boolean return value is false.

func (*QueryOptions) SetParameters added in v1.61.0

func (o *QueryOptions) SetParameters(ctx context.Context, v []Parameter)

SetParameters sets the value of the Parameters field in QueryOptions.

func (*QueryOptions) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryOptions)

func (*QueryOptions) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryOptions) SyncEffectiveFieldsDuringRead(existingState QueryOptions)

func (QueryOptions) ToObjectValue added in v1.61.0

func (o QueryOptions) 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, QueryOptions only implements ToObjectValue() and Type().

func (QueryOptions) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type QueryParameter

type QueryParameter struct {
	// Date-range query parameter value. Can only specify one of
	// `dynamic_date_range_value` or `date_range_value`.
	DateRangeValue types.List `tfsdk:"date_range_value" tf:"optional,object"`
	// Date query parameter value. Can only specify one of `dynamic_date_value`
	// or `date_value`.
	DateValue types.List `tfsdk:"date_value" tf:"optional,object"`
	// Dropdown query parameter value.
	EnumValue types.List `tfsdk:"enum_value" tf:"optional,object"`
	// Literal parameter marker that appears between double curly braces in the
	// query text.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Numeric query parameter value.
	NumericValue types.List `tfsdk:"numeric_value" tf:"optional,object"`
	// Query-based dropdown query parameter value.
	QueryBackedValue types.List `tfsdk:"query_backed_value" tf:"optional,object"`
	// Text query parameter value.
	TextValue types.List `tfsdk:"text_value" tf:"optional,object"`
	// Text displayed in the user-facing parameter widget in the UI.
	Title types.String `tfsdk:"title" tf:"optional"`
}

func (QueryParameter) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryParameter. 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 (*QueryParameter) GetDateRangeValue added in v1.61.0

func (o *QueryParameter) GetDateRangeValue(ctx context.Context) (DateRangeValue, bool)

GetDateRangeValue returns the value of the DateRangeValue field in QueryParameter as a DateRangeValue value. If the field is unknown or null, the boolean return value is false.

func (*QueryParameter) GetDateValue added in v1.61.0

func (o *QueryParameter) GetDateValue(ctx context.Context) (DateValue, bool)

GetDateValue returns the value of the DateValue field in QueryParameter as a DateValue value. If the field is unknown or null, the boolean return value is false.

func (*QueryParameter) GetEnumValue added in v1.61.0

func (o *QueryParameter) GetEnumValue(ctx context.Context) (EnumValue, bool)

GetEnumValue returns the value of the EnumValue field in QueryParameter as a EnumValue value. If the field is unknown or null, the boolean return value is false.

func (*QueryParameter) GetNumericValue added in v1.61.0

func (o *QueryParameter) GetNumericValue(ctx context.Context) (NumericValue, bool)

GetNumericValue returns the value of the NumericValue field in QueryParameter as a NumericValue value. If the field is unknown or null, the boolean return value is false.

func (*QueryParameter) GetQueryBackedValue added in v1.61.0

func (o *QueryParameter) GetQueryBackedValue(ctx context.Context) (QueryBackedValue, bool)

GetQueryBackedValue returns the value of the QueryBackedValue field in QueryParameter as a QueryBackedValue value. If the field is unknown or null, the boolean return value is false.

func (*QueryParameter) GetTextValue added in v1.61.0

func (o *QueryParameter) GetTextValue(ctx context.Context) (TextValue, bool)

GetTextValue returns the value of the TextValue field in QueryParameter as a TextValue value. If the field is unknown or null, the boolean return value is false.

func (*QueryParameter) SetDateRangeValue added in v1.61.0

func (o *QueryParameter) SetDateRangeValue(ctx context.Context, v DateRangeValue)

SetDateRangeValue sets the value of the DateRangeValue field in QueryParameter.

func (*QueryParameter) SetDateValue added in v1.61.0

func (o *QueryParameter) SetDateValue(ctx context.Context, v DateValue)

SetDateValue sets the value of the DateValue field in QueryParameter.

func (*QueryParameter) SetEnumValue added in v1.61.0

func (o *QueryParameter) SetEnumValue(ctx context.Context, v EnumValue)

SetEnumValue sets the value of the EnumValue field in QueryParameter.

func (*QueryParameter) SetNumericValue added in v1.61.0

func (o *QueryParameter) SetNumericValue(ctx context.Context, v NumericValue)

SetNumericValue sets the value of the NumericValue field in QueryParameter.

func (*QueryParameter) SetQueryBackedValue added in v1.61.0

func (o *QueryParameter) SetQueryBackedValue(ctx context.Context, v QueryBackedValue)

SetQueryBackedValue sets the value of the QueryBackedValue field in QueryParameter.

func (*QueryParameter) SetTextValue added in v1.61.0

func (o *QueryParameter) SetTextValue(ctx context.Context, v TextValue)

SetTextValue sets the value of the TextValue field in QueryParameter.

func (*QueryParameter) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryParameter) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryParameter)

func (*QueryParameter) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryParameter) SyncEffectiveFieldsDuringRead(existingState QueryParameter)

func (QueryParameter) ToObjectValue added in v1.61.0

func (o QueryParameter) 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, QueryParameter only implements ToObjectValue() and Type().

func (QueryParameter) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type QueryPostContent

type QueryPostContent struct {
	// Data source ID maps to the ID of the data source used by the resource and
	// is distinct from the warehouse ID. [Learn more]
	//
	// [Learn more]: https://docs.databricks.com/api/workspace/datasources/list
	DataSourceId types.String `tfsdk:"data_source_id" tf:"optional"`
	// General description that conveys additional information about this query
	// such as usage notes.
	Description types.String `tfsdk:"description" tf:"optional"`
	// The title of this query that appears in list views, widget headings, and
	// on the query page.
	Name types.String `tfsdk:"name" tf:"optional"`
	// Exclusively used for storing a list parameter definitions. A parameter is
	// an object with `title`, `name`, `type`, and `value` properties. The
	// `value` field here is the default value. It can be overridden at runtime.
	Options types.Object `tfsdk:"options" tf:"optional"`
	// The identifier of the workspace folder containing the object.
	Parent types.String `tfsdk:"parent" tf:"optional"`
	// The text of the query to be run.
	Query types.String `tfsdk:"query" tf:"optional"`
	// Sets the **Run as** role for the object. Must be set to one of `"viewer"`
	// (signifying "run as viewer" behavior) or `"owner"` (signifying "run as
	// owner" behavior)
	RunAsRole types.String `tfsdk:"run_as_role" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
}

func (QueryPostContent) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryPostContent. 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 (*QueryPostContent) GetTags added in v1.61.0

func (o *QueryPostContent) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*QueryPostContent) SetTags added in v1.61.0

func (o *QueryPostContent) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in QueryPostContent.

func (*QueryPostContent) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *QueryPostContent) SyncEffectiveFieldsDuringCreateOrUpdate(plan QueryPostContent)

func (*QueryPostContent) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *QueryPostContent) SyncEffectiveFieldsDuringRead(existingState QueryPostContent)

func (QueryPostContent) ToObjectValue added in v1.61.0

func (o QueryPostContent) 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, QueryPostContent only implements ToObjectValue() and Type().

func (QueryPostContent) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type RepeatedEndpointConfPairs

type RepeatedEndpointConfPairs struct {
	// Deprecated: Use configuration_pairs
	ConfigPair types.List `tfsdk:"config_pair" tf:"optional"`

	ConfigurationPairs types.List `tfsdk:"configuration_pairs" tf:"optional"`
}

func (RepeatedEndpointConfPairs) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in RepeatedEndpointConfPairs. 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 (*RepeatedEndpointConfPairs) GetConfigPair added in v1.61.0

func (o *RepeatedEndpointConfPairs) GetConfigPair(ctx context.Context) ([]EndpointConfPair, bool)

GetConfigPair returns the value of the ConfigPair field in RepeatedEndpointConfPairs as a slice of EndpointConfPair values. If the field is unknown or null, the boolean return value is false.

func (*RepeatedEndpointConfPairs) GetConfigurationPairs added in v1.61.0

func (o *RepeatedEndpointConfPairs) GetConfigurationPairs(ctx context.Context) ([]EndpointConfPair, bool)

GetConfigurationPairs returns the value of the ConfigurationPairs field in RepeatedEndpointConfPairs as a slice of EndpointConfPair values. If the field is unknown or null, the boolean return value is false.

func (*RepeatedEndpointConfPairs) SetConfigPair added in v1.61.0

func (o *RepeatedEndpointConfPairs) SetConfigPair(ctx context.Context, v []EndpointConfPair)

SetConfigPair sets the value of the ConfigPair field in RepeatedEndpointConfPairs.

func (*RepeatedEndpointConfPairs) SetConfigurationPairs added in v1.61.0

func (o *RepeatedEndpointConfPairs) SetConfigurationPairs(ctx context.Context, v []EndpointConfPair)

SetConfigurationPairs sets the value of the ConfigurationPairs field in RepeatedEndpointConfPairs.

func (*RepeatedEndpointConfPairs) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *RepeatedEndpointConfPairs) SyncEffectiveFieldsDuringCreateOrUpdate(plan RepeatedEndpointConfPairs)

func (*RepeatedEndpointConfPairs) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *RepeatedEndpointConfPairs) SyncEffectiveFieldsDuringRead(existingState RepeatedEndpointConfPairs)

func (RepeatedEndpointConfPairs) 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, RepeatedEndpointConfPairs only implements ToObjectValue() and Type().

func (RepeatedEndpointConfPairs) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type RestoreDashboardRequest

type RestoreDashboardRequest struct {
	DashboardId types.String `tfsdk:"-"`
}

Restore a dashboard

func (RestoreDashboardRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreDashboardRequest. 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 (*RestoreDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *RestoreDashboardRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreDashboardRequest)

func (*RestoreDashboardRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *RestoreDashboardRequest) SyncEffectiveFieldsDuringRead(existingState RestoreDashboardRequest)

func (RestoreDashboardRequest) 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, RestoreDashboardRequest only implements ToObjectValue() and Type().

func (RestoreDashboardRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type RestoreQueriesLegacyRequest

type RestoreQueriesLegacyRequest struct {
	QueryId types.String `tfsdk:"-"`
}

Restore a query

func (RestoreQueriesLegacyRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreQueriesLegacyRequest. 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 (*RestoreQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *RestoreQueriesLegacyRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreQueriesLegacyRequest)

func (*RestoreQueriesLegacyRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *RestoreQueriesLegacyRequest) SyncEffectiveFieldsDuringRead(existingState RestoreQueriesLegacyRequest)

func (RestoreQueriesLegacyRequest) 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, RestoreQueriesLegacyRequest only implements ToObjectValue() and Type().

func (RestoreQueriesLegacyRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type RestoreResponse

type RestoreResponse struct {
}

func (RestoreResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in RestoreResponse. 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 (*RestoreResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *RestoreResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan RestoreResponse)

func (*RestoreResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *RestoreResponse) SyncEffectiveFieldsDuringRead(existingState RestoreResponse)

func (RestoreResponse) ToObjectValue added in v1.61.0

func (o RestoreResponse) 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, RestoreResponse only implements ToObjectValue() and Type().

func (RestoreResponse) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type ResultData

type ResultData struct {
	// The number of bytes in the result chunk. This field is not available when
	// using `INLINE` disposition.
	ByteCount types.Int64 `tfsdk:"byte_count" tf:"optional"`
	// The position within the sequence of result set chunks.
	ChunkIndex types.Int64 `tfsdk:"chunk_index" tf:"optional"`
	// The `JSON_ARRAY` format is an array of arrays of values, where each
	// non-null value is formatted as a string. Null values are encoded as JSON
	// `null`.
	DataArray types.List `tfsdk:"data_array" tf:"optional"`

	ExternalLinks types.List `tfsdk:"external_links" tf:"optional"`
	// When fetching, provides the `chunk_index` for the _next_ chunk. If
	// absent, indicates there are no more chunks. The next chunk can be fetched
	// with a :method:statementexecution/getStatementResultChunkN request.
	NextChunkIndex types.Int64 `tfsdk:"next_chunk_index" tf:"optional"`
	// When fetching, provides a link to fetch the _next_ chunk. If absent,
	// indicates there are no more chunks. This link is an absolute `path` to be
	// joined with your `$DATABRICKS_HOST`, and should be treated as an opaque
	// link. This is an alternative to using `next_chunk_index`.
	NextChunkInternalLink types.String `tfsdk:"next_chunk_internal_link" tf:"optional"`
	// The number of rows within the result chunk.
	RowCount types.Int64 `tfsdk:"row_count" tf:"optional"`
	// The starting row offset within the result set.
	RowOffset types.Int64 `tfsdk:"row_offset" tf:"optional"`
}

func (ResultData) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultData. 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 (*ResultData) GetDataArray added in v1.61.0

func (o *ResultData) GetDataArray(ctx context.Context) ([]types.String, bool)

GetDataArray returns the value of the DataArray field in ResultData as a slice of types.String values. If the field is unknown or null, the boolean return value is false.

func (o *ResultData) GetExternalLinks(ctx context.Context) ([]ExternalLink, bool)

GetExternalLinks returns the value of the ExternalLinks field in ResultData as a slice of ExternalLink values. If the field is unknown or null, the boolean return value is false.

func (*ResultData) SetDataArray added in v1.61.0

func (o *ResultData) SetDataArray(ctx context.Context, v []types.String)

SetDataArray sets the value of the DataArray field in ResultData.

func (o *ResultData) SetExternalLinks(ctx context.Context, v []ExternalLink)

SetExternalLinks sets the value of the ExternalLinks field in ResultData.

func (*ResultData) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ResultData) SyncEffectiveFieldsDuringCreateOrUpdate(plan ResultData)

func (*ResultData) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ResultData) SyncEffectiveFieldsDuringRead(existingState ResultData)

func (ResultData) ToObjectValue added in v1.61.0

func (o ResultData) 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, ResultData only implements ToObjectValue() and Type().

func (ResultData) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type ResultManifest

type ResultManifest struct {
	// Array of result set chunk metadata.
	Chunks types.List `tfsdk:"chunks" tf:"optional"`

	Format types.String `tfsdk:"format" tf:"optional"`
	// The schema is an ordered list of column descriptions.
	Schema types.List `tfsdk:"schema" tf:"optional,object"`
	// The total number of bytes in the result set. This field is not available
	// when using `INLINE` disposition.
	TotalByteCount types.Int64 `tfsdk:"total_byte_count" tf:"optional"`
	// The total number of chunks that the result set has been divided into.
	TotalChunkCount types.Int64 `tfsdk:"total_chunk_count" tf:"optional"`
	// The total number of rows in the result set.
	TotalRowCount types.Int64 `tfsdk:"total_row_count" tf:"optional"`
	// Indicates whether the result is truncated due to `row_limit` or
	// `byte_limit`.
	Truncated types.Bool `tfsdk:"truncated" tf:"optional"`
}

The result manifest provides schema and metadata for the result set.

func (*ResultManifest) GetChunks added in v1.61.0

func (o *ResultManifest) GetChunks(ctx context.Context) ([]BaseChunkInfo, bool)

GetChunks returns the value of the Chunks field in ResultManifest as a slice of BaseChunkInfo values. If the field is unknown or null, the boolean return value is false.

func (ResultManifest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultManifest. 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 (*ResultManifest) GetSchema added in v1.61.0

func (o *ResultManifest) GetSchema(ctx context.Context) (ResultSchema, bool)

GetSchema returns the value of the Schema field in ResultManifest as a ResultSchema value. If the field is unknown or null, the boolean return value is false.

func (*ResultManifest) SetChunks added in v1.61.0

func (o *ResultManifest) SetChunks(ctx context.Context, v []BaseChunkInfo)

SetChunks sets the value of the Chunks field in ResultManifest.

func (*ResultManifest) SetSchema added in v1.61.0

func (o *ResultManifest) SetSchema(ctx context.Context, v ResultSchema)

SetSchema sets the value of the Schema field in ResultManifest.

func (*ResultManifest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ResultManifest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ResultManifest)

func (*ResultManifest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ResultManifest) SyncEffectiveFieldsDuringRead(existingState ResultManifest)

func (ResultManifest) ToObjectValue added in v1.61.0

func (o ResultManifest) 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, ResultManifest only implements ToObjectValue() and Type().

func (ResultManifest) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type ResultSchema

type ResultSchema struct {
	ColumnCount types.Int64 `tfsdk:"column_count" tf:"optional"`

	Columns types.List `tfsdk:"columns" tf:"optional"`
}

The schema is an ordered list of column descriptions.

func (*ResultSchema) GetColumns added in v1.61.0

func (o *ResultSchema) GetColumns(ctx context.Context) ([]ColumnInfo, bool)

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

func (ResultSchema) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultSchema. 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 (*ResultSchema) SetColumns added in v1.61.0

func (o *ResultSchema) SetColumns(ctx context.Context, v []ColumnInfo)

SetColumns sets the value of the Columns field in ResultSchema.

func (*ResultSchema) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ResultSchema) SyncEffectiveFieldsDuringCreateOrUpdate(plan ResultSchema)

func (*ResultSchema) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ResultSchema) SyncEffectiveFieldsDuringRead(existingState ResultSchema)

func (ResultSchema) ToObjectValue added in v1.61.0

func (o ResultSchema) 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, ResultSchema only implements ToObjectValue() and Type().

func (ResultSchema) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type ServiceError

type ServiceError struct {
	ErrorCode types.String `tfsdk:"error_code" tf:"optional"`
	// A brief summary of the error condition.
	Message types.String `tfsdk:"message" tf:"optional"`
}

func (ServiceError) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in ServiceError. 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 (*ServiceError) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ServiceError) SyncEffectiveFieldsDuringCreateOrUpdate(plan ServiceError)

func (*ServiceError) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ServiceError) SyncEffectiveFieldsDuringRead(existingState ServiceError)

func (ServiceError) ToObjectValue added in v1.61.0

func (o ServiceError) 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, ServiceError only implements ToObjectValue() and Type().

func (ServiceError) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type SetRequest

type SetRequest struct {
	AccessControlList types.List `tfsdk:"access_control_list" tf:"optional"`
	// Object ID. The ACL for the object with this UUID is overwritten by this
	// request's POST content.
	ObjectId types.String `tfsdk:"-"`
	// The type of object permission to set.
	ObjectType types.String `tfsdk:"-"`
}

Set object ACL

func (*SetRequest) GetAccessControlList added in v1.61.0

func (o *SetRequest) GetAccessControlList(ctx context.Context) ([]AccessControl, bool)

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

func (SetRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in SetRequest. 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 (*SetRequest) SetAccessControlList added in v1.61.0

func (o *SetRequest) SetAccessControlList(ctx context.Context, v []AccessControl)

SetAccessControlList sets the value of the AccessControlList field in SetRequest.

func (*SetRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *SetRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetRequest)

func (*SetRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *SetRequest) SyncEffectiveFieldsDuringRead(existingState SetRequest)

func (SetRequest) ToObjectValue added in v1.61.0

func (o SetRequest) 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, SetRequest only implements ToObjectValue() and Type().

func (SetRequest) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type SetResponse

type SetResponse struct {
	AccessControlList types.List `tfsdk:"access_control_list" tf:"optional"`
	// An object's type and UUID, separated by a forward slash (/) character.
	ObjectId types.String `tfsdk:"object_id" tf:"optional"`
	// A singular noun object type.
	ObjectType types.String `tfsdk:"object_type" tf:"optional"`
}

func (*SetResponse) GetAccessControlList added in v1.61.0

func (o *SetResponse) GetAccessControlList(ctx context.Context) ([]AccessControl, bool)

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

func (SetResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in SetResponse. 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 (*SetResponse) SetAccessControlList added in v1.61.0

func (o *SetResponse) SetAccessControlList(ctx context.Context, v []AccessControl)

SetAccessControlList sets the value of the AccessControlList field in SetResponse.

func (*SetResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *SetResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetResponse)

func (*SetResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *SetResponse) SyncEffectiveFieldsDuringRead(existingState SetResponse)

func (SetResponse) ToObjectValue added in v1.61.0

func (o SetResponse) 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, SetResponse only implements ToObjectValue() and Type().

func (SetResponse) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type SetWorkspaceWarehouseConfigRequest

type SetWorkspaceWarehouseConfigRequest struct {
	// Optional: Channel selection details
	Channel types.List `tfsdk:"channel" tf:"optional,object"`
	// Deprecated: Use sql_configuration_parameters
	ConfigParam types.List `tfsdk:"config_param" tf:"optional,object"`
	// Spark confs for external hive metastore configuration JSON serialized
	// size must be less than <= 512K
	DataAccessConfig types.List `tfsdk:"data_access_config" tf:"optional"`
	// List of Warehouse Types allowed in this workspace (limits allowed value
	// of the type field in CreateWarehouse and EditWarehouse). Note: Some types
	// cannot be disabled, they don't need to be specified in
	// SetWorkspaceWarehouseConfig. Note: Disabling a type may cause existing
	// warehouses to be converted to another type. Used by frontend to save
	// specific type availability in the warehouse create and edit form UI.
	EnabledWarehouseTypes types.List `tfsdk:"enabled_warehouse_types" tf:"optional"`
	// Deprecated: Use sql_configuration_parameters
	GlobalParam types.List `tfsdk:"global_param" tf:"optional,object"`
	// GCP only: Google Service Account used to pass to cluster to access Google
	// Cloud Storage
	GoogleServiceAccount types.String `tfsdk:"google_service_account" tf:"optional"`
	// AWS Only: Instance profile used to pass IAM role to the cluster
	InstanceProfileArn types.String `tfsdk:"instance_profile_arn" tf:"optional"`
	// Security policy for warehouses
	SecurityPolicy types.String `tfsdk:"security_policy" tf:"optional"`
	// SQL configuration parameters
	SqlConfigurationParameters types.List `tfsdk:"sql_configuration_parameters" tf:"optional,object"`
}

func (*SetWorkspaceWarehouseConfigRequest) GetChannel added in v1.61.0

GetChannel returns the value of the Channel field in SetWorkspaceWarehouseConfigRequest as a Channel value. If the field is unknown or null, the boolean return value is false.

func (SetWorkspaceWarehouseConfigRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in SetWorkspaceWarehouseConfigRequest. 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 (*SetWorkspaceWarehouseConfigRequest) GetConfigParam added in v1.61.0

GetConfigParam returns the value of the ConfigParam field in SetWorkspaceWarehouseConfigRequest as a RepeatedEndpointConfPairs value. If the field is unknown or null, the boolean return value is false.

func (*SetWorkspaceWarehouseConfigRequest) GetDataAccessConfig added in v1.61.0

func (o *SetWorkspaceWarehouseConfigRequest) GetDataAccessConfig(ctx context.Context) ([]EndpointConfPair, bool)

GetDataAccessConfig returns the value of the DataAccessConfig field in SetWorkspaceWarehouseConfigRequest as a slice of EndpointConfPair values. If the field is unknown or null, the boolean return value is false.

func (*SetWorkspaceWarehouseConfigRequest) GetEnabledWarehouseTypes added in v1.61.0

func (o *SetWorkspaceWarehouseConfigRequest) GetEnabledWarehouseTypes(ctx context.Context) ([]WarehouseTypePair, bool)

GetEnabledWarehouseTypes returns the value of the EnabledWarehouseTypes field in SetWorkspaceWarehouseConfigRequest as a slice of WarehouseTypePair values. If the field is unknown or null, the boolean return value is false.

func (*SetWorkspaceWarehouseConfigRequest) GetGlobalParam added in v1.61.0

GetGlobalParam returns the value of the GlobalParam field in SetWorkspaceWarehouseConfigRequest as a RepeatedEndpointConfPairs value. If the field is unknown or null, the boolean return value is false.

func (*SetWorkspaceWarehouseConfigRequest) GetSqlConfigurationParameters added in v1.61.0

func (o *SetWorkspaceWarehouseConfigRequest) GetSqlConfigurationParameters(ctx context.Context) (RepeatedEndpointConfPairs, bool)

GetSqlConfigurationParameters returns the value of the SqlConfigurationParameters field in SetWorkspaceWarehouseConfigRequest as a RepeatedEndpointConfPairs value. If the field is unknown or null, the boolean return value is false.

func (*SetWorkspaceWarehouseConfigRequest) SetChannel added in v1.61.0

SetChannel sets the value of the Channel field in SetWorkspaceWarehouseConfigRequest.

func (*SetWorkspaceWarehouseConfigRequest) SetConfigParam added in v1.61.0

SetConfigParam sets the value of the ConfigParam field in SetWorkspaceWarehouseConfigRequest.

func (*SetWorkspaceWarehouseConfigRequest) SetDataAccessConfig added in v1.61.0

func (o *SetWorkspaceWarehouseConfigRequest) SetDataAccessConfig(ctx context.Context, v []EndpointConfPair)

SetDataAccessConfig sets the value of the DataAccessConfig field in SetWorkspaceWarehouseConfigRequest.

func (*SetWorkspaceWarehouseConfigRequest) SetEnabledWarehouseTypes added in v1.61.0

func (o *SetWorkspaceWarehouseConfigRequest) SetEnabledWarehouseTypes(ctx context.Context, v []WarehouseTypePair)

SetEnabledWarehouseTypes sets the value of the EnabledWarehouseTypes field in SetWorkspaceWarehouseConfigRequest.

func (*SetWorkspaceWarehouseConfigRequest) SetGlobalParam added in v1.61.0

SetGlobalParam sets the value of the GlobalParam field in SetWorkspaceWarehouseConfigRequest.

func (*SetWorkspaceWarehouseConfigRequest) SetSqlConfigurationParameters added in v1.61.0

func (o *SetWorkspaceWarehouseConfigRequest) SetSqlConfigurationParameters(ctx context.Context, v RepeatedEndpointConfPairs)

SetSqlConfigurationParameters sets the value of the SqlConfigurationParameters field in SetWorkspaceWarehouseConfigRequest.

func (*SetWorkspaceWarehouseConfigRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *SetWorkspaceWarehouseConfigRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetWorkspaceWarehouseConfigRequest)

func (*SetWorkspaceWarehouseConfigRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *SetWorkspaceWarehouseConfigRequest) SyncEffectiveFieldsDuringRead(existingState SetWorkspaceWarehouseConfigRequest)

func (SetWorkspaceWarehouseConfigRequest) 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, SetWorkspaceWarehouseConfigRequest only implements ToObjectValue() and Type().

func (SetWorkspaceWarehouseConfigRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type SetWorkspaceWarehouseConfigResponse

type SetWorkspaceWarehouseConfigResponse struct {
}

func (SetWorkspaceWarehouseConfigResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in SetWorkspaceWarehouseConfigResponse. 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 (*SetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *SetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan SetWorkspaceWarehouseConfigResponse)

func (*SetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *SetWorkspaceWarehouseConfigResponse) SyncEffectiveFieldsDuringRead(existingState SetWorkspaceWarehouseConfigResponse)

func (SetWorkspaceWarehouseConfigResponse) 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, SetWorkspaceWarehouseConfigResponse only implements ToObjectValue() and Type().

func (SetWorkspaceWarehouseConfigResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type StartRequest

type StartRequest struct {
	// Required. Id of the SQL warehouse.
	Id types.String `tfsdk:"-"`
}

Start a warehouse

func (StartRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in StartRequest. 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 (*StartRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *StartRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan StartRequest)

func (*StartRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *StartRequest) SyncEffectiveFieldsDuringRead(existingState StartRequest)

func (StartRequest) ToObjectValue added in v1.61.0

func (o StartRequest) 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, StartRequest only implements ToObjectValue() and Type().

func (StartRequest) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type StartWarehouseResponse

type StartWarehouseResponse struct {
}

func (StartWarehouseResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in StartWarehouseResponse. 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 (*StartWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *StartWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan StartWarehouseResponse)

func (*StartWarehouseResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *StartWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState StartWarehouseResponse)

func (StartWarehouseResponse) 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, StartWarehouseResponse only implements ToObjectValue() and Type().

func (StartWarehouseResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type StatementParameterListItem

type StatementParameterListItem struct {
	// The name of a parameter marker to be substituted in the statement.
	Name types.String `tfsdk:"name" tf:""`
	// The data type, given as a string. For example: `INT`, `STRING`,
	// `DECIMAL(10,2)`. If no type is given the type is assumed to be `STRING`.
	// Complex types, such as `ARRAY`, `MAP`, and `STRUCT` are not supported.
	// For valid types, refer to the section [Data types] of the SQL language
	// reference.
	//
	// [Data types]: https://docs.databricks.com/sql/language-manual/functions/cast.html
	Type_ types.String `tfsdk:"type" tf:"optional"`
	// The value to substitute, represented as a string. If omitted, the value
	// is interpreted as NULL.
	Value types.String `tfsdk:"value" tf:"optional"`
}

func (StatementParameterListItem) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementParameterListItem. 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 (*StatementParameterListItem) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *StatementParameterListItem) SyncEffectiveFieldsDuringCreateOrUpdate(plan StatementParameterListItem)

func (*StatementParameterListItem) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *StatementParameterListItem) SyncEffectiveFieldsDuringRead(existingState StatementParameterListItem)

func (StatementParameterListItem) 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, StatementParameterListItem only implements ToObjectValue() and Type().

func (StatementParameterListItem) Type

Type implements basetypes.ObjectValuable.

type StatementResponse

type StatementResponse struct {
	// The result manifest provides schema and metadata for the result set.
	Manifest types.List `tfsdk:"manifest" tf:"optional,object"`

	Result types.List `tfsdk:"result" tf:"optional,object"`
	// The statement ID is returned upon successfully submitting a SQL
	// statement, and is a required reference for all subsequent calls.
	StatementId types.String `tfsdk:"statement_id" tf:"optional"`
	// The status response includes execution state and if relevant, error
	// information.
	Status types.List `tfsdk:"status" tf:"optional,object"`
}

func (StatementResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementResponse. 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 (*StatementResponse) GetManifest added in v1.61.0

func (o *StatementResponse) GetManifest(ctx context.Context) (ResultManifest, bool)

GetManifest returns the value of the Manifest field in StatementResponse as a ResultManifest value. If the field is unknown or null, the boolean return value is false.

func (*StatementResponse) GetResult added in v1.61.0

func (o *StatementResponse) GetResult(ctx context.Context) (ResultData, bool)

GetResult returns the value of the Result field in StatementResponse as a ResultData value. If the field is unknown or null, the boolean return value is false.

func (*StatementResponse) GetStatus added in v1.61.0

func (o *StatementResponse) GetStatus(ctx context.Context) (StatementStatus, bool)

GetStatus returns the value of the Status field in StatementResponse as a StatementStatus value. If the field is unknown or null, the boolean return value is false.

func (*StatementResponse) SetManifest added in v1.61.0

func (o *StatementResponse) SetManifest(ctx context.Context, v ResultManifest)

SetManifest sets the value of the Manifest field in StatementResponse.

func (*StatementResponse) SetResult added in v1.61.0

func (o *StatementResponse) SetResult(ctx context.Context, v ResultData)

SetResult sets the value of the Result field in StatementResponse.

func (*StatementResponse) SetStatus added in v1.61.0

func (o *StatementResponse) SetStatus(ctx context.Context, v StatementStatus)

SetStatus sets the value of the Status field in StatementResponse.

func (*StatementResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *StatementResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan StatementResponse)

func (*StatementResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *StatementResponse) SyncEffectiveFieldsDuringRead(existingState StatementResponse)

func (StatementResponse) ToObjectValue added in v1.61.0

func (o StatementResponse) 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, StatementResponse only implements ToObjectValue() and Type().

func (StatementResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type StatementStatus

type StatementStatus struct {
	Error types.List `tfsdk:"error" tf:"optional,object"`
	// Statement execution state: - `PENDING`: waiting for warehouse -
	// `RUNNING`: running - `SUCCEEDED`: execution was successful, result data
	// available for fetch - `FAILED`: execution failed; reason for failure
	// described in accomanying error message - `CANCELED`: user canceled; can
	// come from explicit cancel call, or timeout with `on_wait_timeout=CANCEL`
	// - `CLOSED`: execution successful, and statement closed; result no longer
	// available for fetch
	State types.String `tfsdk:"state" tf:"optional"`
}

The status response includes execution state and if relevant, error information.

func (StatementStatus) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementStatus. 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 (*StatementStatus) GetError added in v1.61.0

func (o *StatementStatus) GetError(ctx context.Context) (ServiceError, bool)

GetError returns the value of the Error field in StatementStatus as a ServiceError value. If the field is unknown or null, the boolean return value is false.

func (*StatementStatus) SetError added in v1.61.0

func (o *StatementStatus) SetError(ctx context.Context, v ServiceError)

SetError sets the value of the Error field in StatementStatus.

func (*StatementStatus) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *StatementStatus) SyncEffectiveFieldsDuringCreateOrUpdate(plan StatementStatus)

func (*StatementStatus) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *StatementStatus) SyncEffectiveFieldsDuringRead(existingState StatementStatus)

func (StatementStatus) ToObjectValue added in v1.61.0

func (o StatementStatus) 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, StatementStatus only implements ToObjectValue() and Type().

func (StatementStatus) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type StopRequest

type StopRequest struct {
	// Required. Id of the SQL warehouse.
	Id types.String `tfsdk:"-"`
}

Stop a warehouse

func (StopRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in StopRequest. 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 (*StopRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *StopRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan StopRequest)

func (*StopRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *StopRequest) SyncEffectiveFieldsDuringRead(existingState StopRequest)

func (StopRequest) ToObjectValue added in v1.61.0

func (o StopRequest) 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, StopRequest only implements ToObjectValue() and Type().

func (StopRequest) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type StopWarehouseResponse

type StopWarehouseResponse struct {
}

func (StopWarehouseResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in StopWarehouseResponse. 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 (*StopWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *StopWarehouseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan StopWarehouseResponse)

func (*StopWarehouseResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *StopWarehouseResponse) SyncEffectiveFieldsDuringRead(existingState StopWarehouseResponse)

func (StopWarehouseResponse) 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, StopWarehouseResponse only implements ToObjectValue() and Type().

func (StopWarehouseResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type Success

type Success struct {
	Message types.String `tfsdk:"message" tf:"optional"`
}

func (Success) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Success. 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 (*Success) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Success) SyncEffectiveFieldsDuringCreateOrUpdate(plan Success)

func (*Success) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Success) SyncEffectiveFieldsDuringRead(existingState Success)

func (Success) ToObjectValue added in v1.61.0

func (o Success) 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, Success only implements ToObjectValue() and Type().

func (Success) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type TerminationReason

type TerminationReason struct {
	// status code indicating why the cluster was terminated
	Code types.String `tfsdk:"code" tf:"optional"`
	// list of parameters that provide additional information about why the
	// cluster was terminated
	Parameters types.Map `tfsdk:"parameters" tf:"optional"`
	// type of the termination
	Type_ types.String `tfsdk:"type" tf:"optional"`
}

func (TerminationReason) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in TerminationReason. 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 (*TerminationReason) GetParameters added in v1.61.0

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

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

func (*TerminationReason) SetParameters added in v1.61.0

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

SetParameters sets the value of the Parameters field in TerminationReason.

func (*TerminationReason) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *TerminationReason) SyncEffectiveFieldsDuringCreateOrUpdate(plan TerminationReason)

func (*TerminationReason) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *TerminationReason) SyncEffectiveFieldsDuringRead(existingState TerminationReason)

func (TerminationReason) ToObjectValue added in v1.61.0

func (o TerminationReason) 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, TerminationReason only implements ToObjectValue() and Type().

func (TerminationReason) Type

Type implements basetypes.ObjectValuable.

type TextValue

type TextValue struct {
	Value types.String `tfsdk:"value" tf:"optional"`
}

func (TextValue) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in TextValue. 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 (*TextValue) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *TextValue) SyncEffectiveFieldsDuringCreateOrUpdate(plan TextValue)

func (*TextValue) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *TextValue) SyncEffectiveFieldsDuringRead(existingState TextValue)

func (TextValue) ToObjectValue added in v1.61.0

func (o TextValue) 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, TextValue only implements ToObjectValue() and Type().

func (TextValue) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type TimeRange

type TimeRange struct {
	// The end time in milliseconds.
	EndTimeMs types.Int64 `tfsdk:"end_time_ms" tf:"optional"`
	// The start time in milliseconds.
	StartTimeMs types.Int64 `tfsdk:"start_time_ms" tf:"optional"`
}

func (TimeRange) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in TimeRange. 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 (*TimeRange) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *TimeRange) SyncEffectiveFieldsDuringCreateOrUpdate(plan TimeRange)

func (*TimeRange) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *TimeRange) SyncEffectiveFieldsDuringRead(existingState TimeRange)

func (TimeRange) ToObjectValue added in v1.61.0

func (o TimeRange) 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, TimeRange only implements ToObjectValue() and Type().

func (TimeRange) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type TransferOwnershipObjectId

type TransferOwnershipObjectId struct {
	// Email address for the new owner, who must exist in the workspace.
	NewOwner types.String `tfsdk:"new_owner" tf:"optional"`
}

func (TransferOwnershipObjectId) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in TransferOwnershipObjectId. 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 (*TransferOwnershipObjectId) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *TransferOwnershipObjectId) SyncEffectiveFieldsDuringCreateOrUpdate(plan TransferOwnershipObjectId)

func (*TransferOwnershipObjectId) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *TransferOwnershipObjectId) SyncEffectiveFieldsDuringRead(existingState TransferOwnershipObjectId)

func (TransferOwnershipObjectId) 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, TransferOwnershipObjectId only implements ToObjectValue() and Type().

func (TransferOwnershipObjectId) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type TransferOwnershipRequest

type TransferOwnershipRequest struct {
	// Email address for the new owner, who must exist in the workspace.
	NewOwner types.String `tfsdk:"new_owner" tf:"optional"`
	// The ID of the object on which to change ownership.
	ObjectId types.List `tfsdk:"-"`
	// The type of object on which to change ownership.
	ObjectType types.String `tfsdk:"-"`
}

Transfer object ownership

func (TransferOwnershipRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in TransferOwnershipRequest. 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 (*TransferOwnershipRequest) GetObjectId added in v1.61.0

GetObjectId returns the value of the ObjectId field in TransferOwnershipRequest as a TransferOwnershipObjectId value. If the field is unknown or null, the boolean return value is false.

func (*TransferOwnershipRequest) SetObjectId added in v1.61.0

SetObjectId sets the value of the ObjectId field in TransferOwnershipRequest.

func (*TransferOwnershipRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *TransferOwnershipRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan TransferOwnershipRequest)

func (*TransferOwnershipRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *TransferOwnershipRequest) SyncEffectiveFieldsDuringRead(existingState TransferOwnershipRequest)

func (TransferOwnershipRequest) 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, TransferOwnershipRequest only implements ToObjectValue() and Type().

func (TransferOwnershipRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type TrashAlertRequest

type TrashAlertRequest struct {
	Id types.String `tfsdk:"-"`
}

Delete an alert

func (TrashAlertRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashAlertRequest. 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 (*TrashAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *TrashAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrashAlertRequest)

func (*TrashAlertRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *TrashAlertRequest) SyncEffectiveFieldsDuringRead(existingState TrashAlertRequest)

func (TrashAlertRequest) ToObjectValue added in v1.61.0

func (o TrashAlertRequest) 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, TrashAlertRequest only implements ToObjectValue() and Type().

func (TrashAlertRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type TrashQueryRequest

type TrashQueryRequest struct {
	Id types.String `tfsdk:"-"`
}

Delete a query

func (TrashQueryRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in TrashQueryRequest. 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 (*TrashQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *TrashQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan TrashQueryRequest)

func (*TrashQueryRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *TrashQueryRequest) SyncEffectiveFieldsDuringRead(existingState TrashQueryRequest)

func (TrashQueryRequest) ToObjectValue added in v1.61.0

func (o TrashQueryRequest) 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, TrashQueryRequest only implements ToObjectValue() and Type().

func (TrashQueryRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type UpdateAlertRequest

type UpdateAlertRequest struct {
	Alert types.List `tfsdk:"alert" tf:"optional,object"`

	Id types.String `tfsdk:"-"`
	// Field mask is required to be passed into the PATCH request. Field mask
	// specifies which fields of the setting payload will be updated. The field
	// mask needs to be supplied as single string. To specify multiple fields in
	// the field mask, use comma as the separator (no space).
	UpdateMask types.String `tfsdk:"update_mask" tf:""`
}

func (*UpdateAlertRequest) GetAlert added in v1.61.0

GetAlert returns the value of the Alert field in UpdateAlertRequest as a UpdateAlertRequestAlert value. If the field is unknown or null, the boolean return value is false.

func (UpdateAlertRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAlertRequest. 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 (*UpdateAlertRequest) SetAlert added in v1.61.0

SetAlert sets the value of the Alert field in UpdateAlertRequest.

func (*UpdateAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UpdateAlertRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateAlertRequest)

func (*UpdateAlertRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UpdateAlertRequest) SyncEffectiveFieldsDuringRead(existingState UpdateAlertRequest)

func (UpdateAlertRequest) 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, UpdateAlertRequest only implements ToObjectValue() and Type().

func (UpdateAlertRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type UpdateAlertRequestAlert

type UpdateAlertRequestAlert struct {
	// Trigger conditions of the alert.
	Condition types.List `tfsdk:"condition" tf:"optional,object"`
	// Custom body of alert notification, if it exists. See [here] for custom
	// templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomBody types.String `tfsdk:"custom_body" tf:"optional"`
	// Custom subject of alert notification, if it exists. This can include
	// email subject entries and Slack notification headers, for example. See
	// [here] for custom templating instructions.
	//
	// [here]: https://docs.databricks.com/sql/user/alerts/index.html
	CustomSubject types.String `tfsdk:"custom_subject" tf:"optional"`
	// The display name of the alert.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// Whether to notify alert subscribers when alert returns back to normal.
	NotifyOnOk types.Bool `tfsdk:"notify_on_ok" tf:"optional"`
	// The owner's username. This field is set to "Unavailable" if the user has
	// been deleted.
	OwnerUserName types.String `tfsdk:"owner_user_name" tf:"optional"`
	// UUID of the query attached to the alert.
	QueryId types.String `tfsdk:"query_id" tf:"optional"`
	// Number of seconds an alert must wait after being triggered to rearm
	// itself. After rearming, it can be triggered again. If 0 or not specified,
	// the alert will not be triggered again.
	SecondsToRetrigger types.Int64 `tfsdk:"seconds_to_retrigger" tf:"optional"`
}

func (UpdateAlertRequestAlert) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateAlertRequestAlert. 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 (*UpdateAlertRequestAlert) GetCondition added in v1.61.0

func (o *UpdateAlertRequestAlert) GetCondition(ctx context.Context) (AlertCondition, bool)

GetCondition returns the value of the Condition field in UpdateAlertRequestAlert as a AlertCondition value. If the field is unknown or null, the boolean return value is false.

func (*UpdateAlertRequestAlert) SetCondition added in v1.61.0

func (o *UpdateAlertRequestAlert) SetCondition(ctx context.Context, v AlertCondition)

SetCondition sets the value of the Condition field in UpdateAlertRequestAlert.

func (*UpdateAlertRequestAlert) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UpdateAlertRequestAlert) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateAlertRequestAlert)

func (*UpdateAlertRequestAlert) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UpdateAlertRequestAlert) SyncEffectiveFieldsDuringRead(existingState UpdateAlertRequestAlert)

func (UpdateAlertRequestAlert) 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, UpdateAlertRequestAlert only implements ToObjectValue() and Type().

func (UpdateAlertRequestAlert) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type UpdateQueryRequest

type UpdateQueryRequest struct {
	Id types.String `tfsdk:"-"`

	Query types.List `tfsdk:"query" tf:"optional,object"`
	// Field mask is required to be passed into the PATCH request. Field mask
	// specifies which fields of the setting payload will be updated. The field
	// mask needs to be supplied as single string. To specify multiple fields in
	// the field mask, use comma as the separator (no space).
	UpdateMask types.String `tfsdk:"update_mask" tf:""`
}

func (UpdateQueryRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateQueryRequest. 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 (*UpdateQueryRequest) GetQuery added in v1.61.0

GetQuery returns the value of the Query field in UpdateQueryRequest as a UpdateQueryRequestQuery value. If the field is unknown or null, the boolean return value is false.

func (*UpdateQueryRequest) SetQuery added in v1.61.0

SetQuery sets the value of the Query field in UpdateQueryRequest.

func (*UpdateQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UpdateQueryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateQueryRequest)

func (*UpdateQueryRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UpdateQueryRequest) SyncEffectiveFieldsDuringRead(existingState UpdateQueryRequest)

func (UpdateQueryRequest) 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, UpdateQueryRequest only implements ToObjectValue() and Type().

func (UpdateQueryRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type UpdateQueryRequestQuery

type UpdateQueryRequestQuery struct {
	// Whether to apply a 1000 row limit to the query result.
	ApplyAutoLimit types.Bool `tfsdk:"apply_auto_limit" tf:"optional"`
	// Name of the catalog where this query will be executed.
	Catalog types.String `tfsdk:"catalog" tf:"optional"`
	// General description that conveys additional information about this query
	// such as usage notes.
	Description types.String `tfsdk:"description" tf:"optional"`
	// Display name of the query that appears in list views, widget headings,
	// and on the query page.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// Username of the user that owns the query.
	OwnerUserName types.String `tfsdk:"owner_user_name" tf:"optional"`
	// List of query parameter definitions.
	Parameters types.List `tfsdk:"parameters" tf:"optional"`
	// Text of the query to be run.
	QueryText types.String `tfsdk:"query_text" tf:"optional"`
	// Sets the "Run as" role for the object.
	RunAsMode types.String `tfsdk:"run_as_mode" tf:"optional"`
	// Name of the schema where this query will be executed.
	Schema types.String `tfsdk:"schema" tf:"optional"`

	Tags types.List `tfsdk:"tags" tf:"optional"`
	// ID of the SQL warehouse attached to the query.
	WarehouseId types.String `tfsdk:"warehouse_id" tf:"optional"`
}

func (UpdateQueryRequestQuery) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateQueryRequestQuery. 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 (*UpdateQueryRequestQuery) GetParameters added in v1.61.0

func (o *UpdateQueryRequestQuery) GetParameters(ctx context.Context) ([]QueryParameter, bool)

GetParameters returns the value of the Parameters field in UpdateQueryRequestQuery as a slice of QueryParameter values. If the field is unknown or null, the boolean return value is false.

func (*UpdateQueryRequestQuery) GetTags added in v1.61.0

func (o *UpdateQueryRequestQuery) GetTags(ctx context.Context) ([]types.String, bool)

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

func (*UpdateQueryRequestQuery) SetParameters added in v1.61.0

func (o *UpdateQueryRequestQuery) SetParameters(ctx context.Context, v []QueryParameter)

SetParameters sets the value of the Parameters field in UpdateQueryRequestQuery.

func (*UpdateQueryRequestQuery) SetTags added in v1.61.0

func (o *UpdateQueryRequestQuery) SetTags(ctx context.Context, v []types.String)

SetTags sets the value of the Tags field in UpdateQueryRequestQuery.

func (*UpdateQueryRequestQuery) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UpdateQueryRequestQuery) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateQueryRequestQuery)

func (*UpdateQueryRequestQuery) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UpdateQueryRequestQuery) SyncEffectiveFieldsDuringRead(existingState UpdateQueryRequestQuery)

func (UpdateQueryRequestQuery) 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, UpdateQueryRequestQuery only implements ToObjectValue() and Type().

func (UpdateQueryRequestQuery) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type UpdateResponse

type UpdateResponse struct {
}

func (UpdateResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateResponse. 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 (*UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UpdateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateResponse)

func (*UpdateResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UpdateResponse) SyncEffectiveFieldsDuringRead(existingState UpdateResponse)

func (UpdateResponse) ToObjectValue added in v1.61.0

func (o UpdateResponse) 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, UpdateResponse only implements ToObjectValue() and Type().

func (UpdateResponse) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type UpdateVisualizationRequest

type UpdateVisualizationRequest struct {
	Id types.String `tfsdk:"-"`
	// Field mask is required to be passed into the PATCH request. Field mask
	// specifies which fields of the setting payload will be updated. The field
	// mask needs to be supplied as single string. To specify multiple fields in
	// the field mask, use comma as the separator (no space).
	UpdateMask types.String `tfsdk:"update_mask" tf:""`

	Visualization types.List `tfsdk:"visualization" tf:"optional,object"`
}

func (UpdateVisualizationRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateVisualizationRequest. 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 (*UpdateVisualizationRequest) GetVisualization added in v1.61.0

GetVisualization returns the value of the Visualization field in UpdateVisualizationRequest as a UpdateVisualizationRequestVisualization value. If the field is unknown or null, the boolean return value is false.

func (*UpdateVisualizationRequest) SetVisualization added in v1.61.0

SetVisualization sets the value of the Visualization field in UpdateVisualizationRequest.

func (*UpdateVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UpdateVisualizationRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateVisualizationRequest)

func (*UpdateVisualizationRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UpdateVisualizationRequest) SyncEffectiveFieldsDuringRead(existingState UpdateVisualizationRequest)

func (UpdateVisualizationRequest) 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, UpdateVisualizationRequest only implements ToObjectValue() and Type().

func (UpdateVisualizationRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type UpdateVisualizationRequestVisualization

type UpdateVisualizationRequestVisualization struct {
	// The display name of the visualization.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// The visualization options varies widely from one visualization type to
	// the next and is unsupported. Databricks does not recommend modifying
	// visualization options directly.
	SerializedOptions types.String `tfsdk:"serialized_options" tf:"optional"`
	// The visualization query plan varies widely from one visualization type to
	// the next and is unsupported. Databricks does not recommend modifying the
	// visualization query plan directly.
	SerializedQueryPlan types.String `tfsdk:"serialized_query_plan" tf:"optional"`
	// The type of visualization: counter, table, funnel, and so on.
	Type_ types.String `tfsdk:"type" tf:"optional"`
}

func (UpdateVisualizationRequestVisualization) GetComplexFieldTypes added in v1.61.0

GetComplexFieldTypes returns a map of the types of elements in complex fields in UpdateVisualizationRequestVisualization. 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 (*UpdateVisualizationRequestVisualization) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UpdateVisualizationRequestVisualization) SyncEffectiveFieldsDuringCreateOrUpdate(plan UpdateVisualizationRequestVisualization)

func (*UpdateVisualizationRequestVisualization) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UpdateVisualizationRequestVisualization) SyncEffectiveFieldsDuringRead(existingState UpdateVisualizationRequestVisualization)

func (UpdateVisualizationRequestVisualization) 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, UpdateVisualizationRequestVisualization only implements ToObjectValue() and Type().

func (UpdateVisualizationRequestVisualization) Type

Type implements basetypes.ObjectValuable.

type User

type User struct {
	Email types.String `tfsdk:"email" tf:"optional"`

	Id types.Int64 `tfsdk:"id" tf:"optional"`

	Name types.String `tfsdk:"name" tf:"optional"`
}

func (User) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in User. 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 (*User) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *User) SyncEffectiveFieldsDuringCreateOrUpdate(plan User)

func (*User) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *User) SyncEffectiveFieldsDuringRead(existingState User)

func (User) ToObjectValue added in v1.61.0

func (o User) 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, User only implements ToObjectValue() and Type().

func (User) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type Visualization

type Visualization struct {
	// The timestamp indicating when the visualization was created.
	CreateTime types.String `tfsdk:"create_time" tf:"optional"`
	// The display name of the visualization.
	DisplayName types.String `tfsdk:"display_name" tf:"optional"`
	// UUID identifying the visualization.
	Id types.String `tfsdk:"id" tf:"optional"`
	// UUID of the query that the visualization is attached to.
	QueryId types.String `tfsdk:"query_id" tf:"optional"`
	// The visualization options varies widely from one visualization type to
	// the next and is unsupported. Databricks does not recommend modifying
	// visualization options directly.
	SerializedOptions types.String `tfsdk:"serialized_options" tf:"optional"`
	// The visualization query plan varies widely from one visualization type to
	// the next and is unsupported. Databricks does not recommend modifying the
	// visualization query plan directly.
	SerializedQueryPlan types.String `tfsdk:"serialized_query_plan" tf:"optional"`
	// The type of visualization: counter, table, funnel, and so on.
	Type_ types.String `tfsdk:"type" tf:"optional"`
	// The timestamp indicating when the visualization was updated.
	UpdateTime types.String `tfsdk:"update_time" tf:"optional"`
}

func (Visualization) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Visualization. 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 (*Visualization) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Visualization) SyncEffectiveFieldsDuringCreateOrUpdate(plan Visualization)

func (*Visualization) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Visualization) SyncEffectiveFieldsDuringRead(existingState Visualization)

func (Visualization) ToObjectValue added in v1.61.0

func (o Visualization) 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, Visualization only implements ToObjectValue() and Type().

func (Visualization) Type

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

Type implements basetypes.ObjectValuable.

type WarehouseAccessControlRequest

type WarehouseAccessControlRequest 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 (WarehouseAccessControlRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehouseAccessControlRequest. 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 (*WarehouseAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WarehouseAccessControlRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan WarehouseAccessControlRequest)

func (*WarehouseAccessControlRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WarehouseAccessControlRequest) SyncEffectiveFieldsDuringRead(existingState WarehouseAccessControlRequest)

func (WarehouseAccessControlRequest) 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, WarehouseAccessControlRequest only implements ToObjectValue() and Type().

func (WarehouseAccessControlRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type WarehouseAccessControlResponse

type WarehouseAccessControlResponse 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 (*WarehouseAccessControlResponse) GetAllPermissions added in v1.61.0

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

func (WarehouseAccessControlResponse) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehouseAccessControlResponse. 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 (*WarehouseAccessControlResponse) SetAllPermissions added in v1.61.0

func (o *WarehouseAccessControlResponse) SetAllPermissions(ctx context.Context, v []WarehousePermission)

SetAllPermissions sets the value of the AllPermissions field in WarehouseAccessControlResponse.

func (*WarehouseAccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WarehouseAccessControlResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan WarehouseAccessControlResponse)

func (*WarehouseAccessControlResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WarehouseAccessControlResponse) SyncEffectiveFieldsDuringRead(existingState WarehouseAccessControlResponse)

func (WarehouseAccessControlResponse) 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, WarehouseAccessControlResponse only implements ToObjectValue() and Type().

func (WarehouseAccessControlResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type WarehousePermission

type WarehousePermission 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 (WarehousePermission) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehousePermission. 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 (*WarehousePermission) GetInheritedFromObject added in v1.61.0

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

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

func (*WarehousePermission) SetInheritedFromObject added in v1.61.0

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

SetInheritedFromObject sets the value of the InheritedFromObject field in WarehousePermission.

func (*WarehousePermission) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WarehousePermission) SyncEffectiveFieldsDuringCreateOrUpdate(plan WarehousePermission)

func (*WarehousePermission) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WarehousePermission) SyncEffectiveFieldsDuringRead(existingState WarehousePermission)

func (WarehousePermission) 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, WarehousePermission only implements ToObjectValue() and Type().

func (WarehousePermission) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type WarehousePermissions

type WarehousePermissions 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 (*WarehousePermissions) GetAccessControlList added in v1.61.0

func (o *WarehousePermissions) GetAccessControlList(ctx context.Context) ([]WarehouseAccessControlResponse, bool)

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

func (WarehousePermissions) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehousePermissions. 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 (*WarehousePermissions) SetAccessControlList added in v1.61.0

func (o *WarehousePermissions) SetAccessControlList(ctx context.Context, v []WarehouseAccessControlResponse)

SetAccessControlList sets the value of the AccessControlList field in WarehousePermissions.

func (*WarehousePermissions) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WarehousePermissions) SyncEffectiveFieldsDuringCreateOrUpdate(plan WarehousePermissions)

func (*WarehousePermissions) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WarehousePermissions) SyncEffectiveFieldsDuringRead(existingState WarehousePermissions)

func (WarehousePermissions) 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, WarehousePermissions only implements ToObjectValue() and Type().

func (WarehousePermissions) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type WarehousePermissionsDescription

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

func (WarehousePermissionsDescription) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehousePermissionsDescription. 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 (*WarehousePermissionsDescription) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WarehousePermissionsDescription) SyncEffectiveFieldsDuringCreateOrUpdate(plan WarehousePermissionsDescription)

func (*WarehousePermissionsDescription) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WarehousePermissionsDescription) SyncEffectiveFieldsDuringRead(existingState WarehousePermissionsDescription)

func (WarehousePermissionsDescription) 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, WarehousePermissionsDescription only implements ToObjectValue() and Type().

func (WarehousePermissionsDescription) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type WarehousePermissionsRequest

type WarehousePermissionsRequest struct {
	AccessControlList types.List `tfsdk:"access_control_list" tf:"optional"`
	// The SQL warehouse for which to get or manage permissions.
	WarehouseId types.String `tfsdk:"-"`
}

func (*WarehousePermissionsRequest) GetAccessControlList added in v1.61.0

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

func (WarehousePermissionsRequest) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehousePermissionsRequest. 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 (*WarehousePermissionsRequest) SetAccessControlList added in v1.61.0

SetAccessControlList sets the value of the AccessControlList field in WarehousePermissionsRequest.

func (*WarehousePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WarehousePermissionsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan WarehousePermissionsRequest)

func (*WarehousePermissionsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WarehousePermissionsRequest) SyncEffectiveFieldsDuringRead(existingState WarehousePermissionsRequest)

func (WarehousePermissionsRequest) 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, WarehousePermissionsRequest only implements ToObjectValue() and Type().

func (WarehousePermissionsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type WarehouseTypePair

type WarehouseTypePair struct {
	// If set to false the specific warehouse type will not be be allowed as a
	// value for warehouse_type in CreateWarehouse and EditWarehouse
	Enabled types.Bool `tfsdk:"enabled" tf:"optional"`
	// Warehouse type: `PRO` or `CLASSIC`.
	WarehouseType types.String `tfsdk:"warehouse_type" tf:"optional"`
}

func (WarehouseTypePair) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WarehouseTypePair. 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 (*WarehouseTypePair) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WarehouseTypePair) SyncEffectiveFieldsDuringCreateOrUpdate(plan WarehouseTypePair)

func (*WarehouseTypePair) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WarehouseTypePair) SyncEffectiveFieldsDuringRead(existingState WarehouseTypePair)

func (WarehouseTypePair) ToObjectValue added in v1.61.0

func (o WarehouseTypePair) 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, WarehouseTypePair only implements ToObjectValue() and Type().

func (WarehouseTypePair) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type Widget

type Widget struct {
	// The unique ID for this widget.
	Id types.String `tfsdk:"id" tf:"optional"`

	Options types.List `tfsdk:"options" tf:"optional,object"`
	// The visualization description API changes frequently and is unsupported.
	// You can duplicate a visualization by copying description objects received
	// _from the API_ and then using them to create a new one with a POST
	// request to the same endpoint. Databricks does not recommend constructing
	// ad-hoc visualizations entirely in JSON.
	Visualization types.List `tfsdk:"visualization" tf:"optional,object"`
	// Unused field.
	Width types.Int64 `tfsdk:"width" tf:"optional"`
}

func (Widget) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in Widget. 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 (*Widget) GetOptions added in v1.61.0

func (o *Widget) GetOptions(ctx context.Context) (WidgetOptions, bool)

GetOptions returns the value of the Options field in Widget as a WidgetOptions value. If the field is unknown or null, the boolean return value is false.

func (*Widget) GetVisualization added in v1.61.0

func (o *Widget) GetVisualization(ctx context.Context) (LegacyVisualization, bool)

GetVisualization returns the value of the Visualization field in Widget as a LegacyVisualization value. If the field is unknown or null, the boolean return value is false.

func (*Widget) SetOptions added in v1.61.0

func (o *Widget) SetOptions(ctx context.Context, v WidgetOptions)

SetOptions sets the value of the Options field in Widget.

func (*Widget) SetVisualization added in v1.61.0

func (o *Widget) SetVisualization(ctx context.Context, v LegacyVisualization)

SetVisualization sets the value of the Visualization field in Widget.

func (*Widget) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Widget) SyncEffectiveFieldsDuringCreateOrUpdate(plan Widget)

func (*Widget) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Widget) SyncEffectiveFieldsDuringRead(existingState Widget)

func (Widget) ToObjectValue added in v1.61.0

func (o Widget) 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, Widget only implements ToObjectValue() and Type().

func (Widget) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type WidgetOptions

type WidgetOptions struct {
	// Timestamp when this object was created
	CreatedAt types.String `tfsdk:"created_at" tf:"optional"`
	// Custom description of the widget
	Description types.String `tfsdk:"description" tf:"optional"`
	// Whether this widget is hidden on the dashboard.
	IsHidden types.Bool `tfsdk:"isHidden" tf:"optional"`
	// How parameters used by the visualization in this widget relate to other
	// widgets on the dashboard. Databricks does not recommend modifying this
	// definition in JSON.
	ParameterMappings types.Object `tfsdk:"parameterMappings" tf:"optional"`
	// Coordinates of this widget on a dashboard. This portion of the API
	// changes frequently and is unsupported.
	Position types.List `tfsdk:"position" tf:"optional,object"`
	// Custom title of the widget
	Title types.String `tfsdk:"title" tf:"optional"`
	// Timestamp of the last time this object was updated.
	UpdatedAt types.String `tfsdk:"updated_at" tf:"optional"`
}

func (WidgetOptions) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WidgetOptions. 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 (*WidgetOptions) GetPosition added in v1.61.0

func (o *WidgetOptions) GetPosition(ctx context.Context) (WidgetPosition, bool)

GetPosition returns the value of the Position field in WidgetOptions as a WidgetPosition value. If the field is unknown or null, the boolean return value is false.

func (*WidgetOptions) SetPosition added in v1.61.0

func (o *WidgetOptions) SetPosition(ctx context.Context, v WidgetPosition)

SetPosition sets the value of the Position field in WidgetOptions.

func (*WidgetOptions) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WidgetOptions) SyncEffectiveFieldsDuringCreateOrUpdate(plan WidgetOptions)

func (*WidgetOptions) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WidgetOptions) SyncEffectiveFieldsDuringRead(existingState WidgetOptions)

func (WidgetOptions) ToObjectValue added in v1.61.0

func (o WidgetOptions) 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, WidgetOptions only implements ToObjectValue() and Type().

func (WidgetOptions) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

type WidgetPosition

type WidgetPosition struct {
	// reserved for internal use
	AutoHeight types.Bool `tfsdk:"autoHeight" tf:"optional"`
	// column in the dashboard grid. Values start with 0
	Col types.Int64 `tfsdk:"col" tf:"optional"`
	// row in the dashboard grid. Values start with 0
	Row types.Int64 `tfsdk:"row" tf:"optional"`
	// width of the widget measured in dashboard grid cells
	SizeX types.Int64 `tfsdk:"sizeX" tf:"optional"`
	// height of the widget measured in dashboard grid cells
	SizeY types.Int64 `tfsdk:"sizeY" tf:"optional"`
}

Coordinates of this widget on a dashboard. This portion of the API changes frequently and is unsupported.

func (WidgetPosition) GetComplexFieldTypes added in v1.61.0

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

GetComplexFieldTypes returns a map of the types of elements in complex fields in WidgetPosition. 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 (*WidgetPosition) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *WidgetPosition) SyncEffectiveFieldsDuringCreateOrUpdate(plan WidgetPosition)

func (*WidgetPosition) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *WidgetPosition) SyncEffectiveFieldsDuringRead(existingState WidgetPosition)

func (WidgetPosition) ToObjectValue added in v1.61.0

func (o WidgetPosition) 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, WidgetPosition only implements ToObjectValue() and Type().

func (WidgetPosition) Type added in v1.61.0

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

Type implements basetypes.ObjectValuable.

Jump to

Keyboard shortcuts

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