adx

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const TerraformProviderUserAgent = "terraform-provider-adx"

Variables

This section is empty.

Functions

func GetAccTestPolicyReadStatementFunc added in v0.0.13

func GetAccTestPolicyReadStatementFunc() func(string) (string, error)

func Provider

func Provider() *schema.Provider

func TableMappingSchemaV0 added in v0.0.12

func TableMappingSchemaV0() *schema.Resource

func TableMappingV0ToV1UpgradeFunc added in v0.0.12

func TableMappingV0ToV1UpgradeFunc(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error)

func TableMappingV0ToV1Upgrader added in v0.0.12

func TableMappingV0ToV1Upgrader() schema.StateUpgrader

func TableSchemaV0 added in v0.0.12

func TableSchemaV0() *schema.Resource

func TableV0ToV1UpgradeFunc added in v0.0.12

func TableV0ToV1UpgradeFunc(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error)

func TableV0ToV1Upgrader added in v0.0.12

func TableV0ToV1Upgrader() schema.StateUpgrader

Types

type ADXContinuousExport added in v0.0.30

type ADXContinuousExport struct {
	Name string
}

type ADXExternalTable added in v0.0.30

type ADXExternalTable struct {
	Name              string
	ConnectionStrings string
	Partitions        string
	PathFormat        string
	Folder            string
	Properties        string
}

type ADXFunction

type ADXFunction struct {
	Name           string
	Parameters     string
	Body           string
	Folder         string
	DocString      string
	SkipValidation bool
}

type ADXMaterializedView added in v0.0.11

type ADXMaterializedView struct {
	Name              string
	SourceTable       string
	Query             string
	MaterializedTo    value.DateTime
	AutoUpdateSchema  string
	EffectiveDateTime value.DateTime
	Lookback          string
	Folder            string
	DocString         string
}

type ClusterConfig added in v0.0.12

type ClusterConfig struct {
	ClientID     string
	ClientSecret string
	TenantID     string
	URI          string
}

func GetTestClusterConfig added in v0.0.13

func GetTestClusterConfig() *ClusterConfig

type ColumnEncodingPolicy added in v0.0.24

type ColumnEncodingPolicy struct {
	EntityIdentifier string
	Profile          string
}

type Config

type Config struct {
	ClientID     string
	ClientSecret string
	TenantID     string
	Endpoint     string
	LazyInit     bool
}

func (*Config) Client

func (c *Config) Client(userAgent string) (*Meta, diag.Diagnostics)

type IngestionTimePolicy added in v0.0.23

type IngestionTimePolicy struct {
	IsEnabled bool
}

type Mapping

type Mapping struct {
	Column     string `json:"column,omitempty"`
	Path       string `json:"path,omitempty"`
	Ordinal    string `json:"ordinal,omitempty"`
	ConstValue string `json:"constvalue,omitempty"`
	DataType   string `json:"datatype,omitempty"`
	Transform  string `json:"transform,omitempty"`
	Field      string `json:"field,omitempty"`
	Name       string `json:"name,omitempty"`
}

type MaterializedViewCachingPolicy added in v0.0.13

type MaterializedViewCachingPolicy struct {
	DataHotSpan *PolicyStringValue
}

type MaterializedViewRetentionPolicy added in v0.0.13

type MaterializedViewRetentionPolicy struct {
	SoftDeletePeriod string
	Recoverability   string
}

type MaterializedViewRowLevelSecurityPolicy added in v0.0.13

type MaterializedViewRowLevelSecurityPolicy struct {
	IsEnabled bool
	Query     string
}

type Meta

type Meta struct {
	KustoClientsMap      map[string]*kusto.Client
	KustoClientsMapMU    sync.RWMutex
	DefaultClusterConfig *ClusterConfig
	StopContext          context.Context
}

type PolicyStringValue added in v0.0.11

type PolicyStringValue struct {
	Value string
}

type ResourceTestContext added in v0.0.13

type ResourceTestContext[T any] struct {
	Test              *testing.T
	Cluster           *ClusterConfig
	DatabaseName      string
	EntityType        string
	EntityName        string
	Type              string
	Label             string
	ReadStatementFunc func(string) (string, error)
}

func (*ResourceTestContext[T]) CheckEntityDestroyedById added in v0.0.13

func (this *ResourceTestContext[T]) CheckEntityDestroyedById(id string) error

func (ResourceTestContext[T]) CheckQueryResultSingleValue added in v0.0.15

func (this ResourceTestContext[T]) CheckQueryResultSingleValue(query string, expectedResult string, checkName string) resource.TestCheckFunc

Query must return a single (string) column named "Result"

func (ResourceTestContext[T]) CheckQueryResultSize added in v0.0.15

func (this ResourceTestContext[T]) CheckQueryResultSize(query string, expectedRowCount int, checkName string) resource.TestCheckFunc

func (*ResourceTestContext[T]) GetADXClient added in v0.0.13

func (this *ResourceTestContext[T]) GetADXClient() (*kusto.Client, error)

func (*ResourceTestContext[T]) GetADXEntityById added in v0.0.13

func (this *ResourceTestContext[T]) GetADXEntityById(id string) (*T, error)

func (*ResourceTestContext[T]) GetTFName added in v0.0.13

func (this *ResourceTestContext[T]) GetTFName() string

func (*ResourceTestContext[T]) GetTestCheckEntityDestroyed added in v0.0.13

func (this *ResourceTestContext[T]) GetTestCheckEntityDestroyed() func(*terraform.State) error

func (*ResourceTestContext[T]) GetTestCheckEntityExists added in v0.0.13

func (this *ResourceTestContext[T]) GetTestCheckEntityExists(entity *T) resource.TestCheckFunc

type ResourceTestContextBuilder added in v0.0.13

type ResourceTestContextBuilder[T any] struct {
	// contains filtered or unexported fields
}

func BuildResourceTestContext added in v0.0.13

func BuildResourceTestContext[T any]() *ResourceTestContextBuilder[T]

func (*ResourceTestContextBuilder[T]) Build added in v0.0.13

func (this *ResourceTestContextBuilder[T]) Build() (*ResourceTestContext[T], error)

func (*ResourceTestContextBuilder[T]) Cluster added in v0.0.13

func (*ResourceTestContextBuilder[T]) DatabaseName added in v0.0.13

func (this *ResourceTestContextBuilder[T]) DatabaseName(value string) *ResourceTestContextBuilder[T]

func (*ResourceTestContextBuilder[T]) EntityName added in v0.0.13

func (this *ResourceTestContextBuilder[T]) EntityName(value string) *ResourceTestContextBuilder[T]

func (*ResourceTestContextBuilder[T]) EntityType added in v0.0.13

func (this *ResourceTestContextBuilder[T]) EntityType(value string) *ResourceTestContextBuilder[T]

func (*ResourceTestContextBuilder[T]) Initialize added in v0.0.13

func (this *ResourceTestContextBuilder[T]) Initialize() *ResourceTestContextBuilder[T]

func (*ResourceTestContextBuilder[T]) Label added in v0.0.13

func (*ResourceTestContextBuilder[T]) ReadStatementFunc added in v0.0.13

func (this *ResourceTestContextBuilder[T]) ReadStatementFunc(f func(string) (string, error)) *ResourceTestContextBuilder[T]

func (*ResourceTestContextBuilder[T]) Test added in v0.0.13

func (*ResourceTestContextBuilder[T]) Type added in v0.0.13

type TableCachingPolicy added in v0.0.11

type TableCachingPolicy struct {
	DataHotSpan *PolicyStringValue
}

type TableIngestionBatchingPolicy

type TableIngestionBatchingPolicy struct {
	MaximumBatchingTimeSpan string
	MaximumNumberOfItems    int
	MaximumRawDataSizeMB    int
}

type TableMapping

type TableMapping struct {
	Name          string
	Kind          string
	Mapping       string
	LastUpdatedOn value.DateTime
	Table         string
	Database      string
}

type TablePartitioningPolicy added in v0.0.11

type TablePartitioningPolicy struct {
	PartitionKeys     *[]TablePartitioningPolicyKey
	EffectiveDateTime string
}

type TablePartitioningPolicyKey added in v0.0.11

type TablePartitioningPolicyKey struct {
	ColumnName string
	Kind       string
	Properties *TablePartitioningPolicyKeyProperties
}

type TablePartitioningPolicyKeyProperties added in v0.0.11

type TablePartitioningPolicyKeyProperties struct {
	Function                string
	MaxPartitionCount       int
	Seed                    int
	PartitionAssignmentMode string
	Reference               string
	RangeSize               string
	OverrideCreationTime    bool
}

type TablePolicy

type TablePolicy struct {
	PolicyName    string
	EntityName    string
	Policy        string
	ChildEntities string
	EntityType    string
}

type TableRetentionPolicy

type TableRetentionPolicy struct {
	SoftDeletePeriod string
	Recoverability   string
}

type TableRowLevelSecurityPolicy

type TableRowLevelSecurityPolicy struct {
	IsEnabled bool
	Query     string
}

type TableSchema

type TableSchema struct {
	TableName    string
	Schema       string
	DatabaseName string
	Folder       string
	DocString    string
}

type TableStreamingIngestionPolicy added in v0.0.18

type TableStreamingIngestionPolicy struct {
	IsEnabled         bool
	HintAllocatedRate string
}

type TableUpdatePolicy

type TableUpdatePolicy struct {
	IsEnabled                    bool
	Source                       string
	Query                        string
	IsTransactional              bool
	PropagateIngestionProperties bool
	ManagedIdentity              string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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