provider

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

func NewAssociationTypeResource added in v0.5.0

func NewAssociationTypeResource() resource.Resource

func NewAttributeGroupResource

func NewAttributeGroupResource() resource.Resource

func NewAttributeOptionResource

func NewAttributeOptionResource() resource.Resource

func NewAttributeResource

func NewAttributeResource() resource.Resource

func NewCategoryResource added in v0.4.0

func NewCategoryResource() resource.Resource

func NewChannelResource added in v0.3.0

func NewChannelResource() resource.Resource

func NewFamilyResource

func NewFamilyResource() resource.Resource

func NewFamilyVariantResource

func NewFamilyVariantResource() resource.Resource

func NewMeasurementFamilyResource added in v0.2.0

func NewMeasurementFamilyResource() resource.Resource

Types

type AkeneoProvider

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

AkeneoProvider defines the provider implementation.

func (*AkeneoProvider) Configure

func (*AkeneoProvider) DataSources

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

func (*AkeneoProvider) Metadata

func (*AkeneoProvider) Resources

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

func (*AkeneoProvider) Schema

type AkeneoProviderModel

type AkeneoProviderModel struct {
	Host                types.String `tfsdk:"host"`
	UnsecureApi         types.Bool   `tfsdk:"unsecure_api"`
	ApiUsername         types.String `tfsdk:"api_username"`
	ApiPassword         types.String `tfsdk:"api_password"`
	ApiClientId         types.String `tfsdk:"api_client_id"`
	ApiSecret           types.String `tfsdk:"api_client_secret"`
	ExtraAttributeTypes types.List   `tfsdk:"extra_attribute_types"`
}

AkeneoProviderModel describes the provider data model.

type AssociationTypeResource added in v0.5.0

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

AssociationTypeResource defines the resource implementation.

func (*AssociationTypeResource) Configure added in v0.5.0

func (*AssociationTypeResource) Create added in v0.5.0

func (*AssociationTypeResource) Delete added in v0.5.0

func (*AssociationTypeResource) ImportState added in v0.5.0

func (*AssociationTypeResource) Metadata added in v0.5.0

func (*AssociationTypeResource) Read added in v0.5.0

func (*AssociationTypeResource) Schema added in v0.5.0

func (*AssociationTypeResource) Update added in v0.5.0

type AssociationTypeResourceModel added in v0.5.0

type AssociationTypeResourceModel struct {
	Code         types.String `tfsdk:"code"`
	Labels       types.Map    `tfsdk:"labels"`
	IsQuantified types.Bool   `tfsdk:"is_quantified"`
	IsTwoWay     types.Bool   `tfsdk:"is_two_way"`
}

AssociationTypeResourceModel describes the resource data model.

type AttributeGroupResource

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

AttributeGroupResource defines the resource implementation.

func (*AttributeGroupResource) Configure

func (*AttributeGroupResource) Create

func (*AttributeGroupResource) Delete

func (*AttributeGroupResource) ImportState

func (*AttributeGroupResource) Metadata

func (*AttributeGroupResource) Read

func (*AttributeGroupResource) Schema

func (*AttributeGroupResource) Update

type AttributeGroupResourceModel

type AttributeGroupResourceModel struct {
	Code      types.String `tfsdk:"code"`
	SortOrder types.Int64  `tfsdk:"sort_order"`
	Labels    types.Map    `tfsdk:"labels"`
}

AttributeGroupResourceModel describes the resource data model.

type AttributeOptionResource

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

AttributeOptionResource defines the resource implementation.

func (*AttributeOptionResource) Configure

func (*AttributeOptionResource) Create

func (*AttributeOptionResource) Delete

func (*AttributeOptionResource) ImportState

func (*AttributeOptionResource) Metadata

func (*AttributeOptionResource) Read

func (*AttributeOptionResource) Schema

func (*AttributeOptionResource) Update

type AttributeOptionResourceModel

type AttributeOptionResourceModel struct {
	Code      types.String `tfsdk:"code"`
	Attribute types.String `tfsdk:"attribute"`
	SortOrder types.Int64  `tfsdk:"sort_order"`
	Labels    types.Map    `tfsdk:"labels"`
}

AttributeOptionResourceModel describes the resource data model.

type AttributeResource

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

AttributeResource defines the resource implementation.

func (*AttributeResource) Configure

func (*AttributeResource) Create

func (*AttributeResource) Delete

func (*AttributeResource) ImportState

func (*AttributeResource) Metadata

func (*AttributeResource) Read

func (*AttributeResource) Schema

func (*AttributeResource) Update

type AttributeResourceModel

type AttributeResourceModel struct {
	Code                types.String `tfsdk:"code"`
	Type                types.String `tfsdk:"type"`
	Labels              types.Map    `tfsdk:"labels"`
	Group               types.String `tfsdk:"group"`
	GroupLabels         types.Map    `tfsdk:"group_labels"`
	SortOrder           types.Int64  `tfsdk:"sort_order"`
	Localizable         types.Bool   `tfsdk:"localizable"`
	Scopable            types.Bool   `tfsdk:"scopable"`
	AvailableLocales    types.List   `tfsdk:"available_locales"`
	Unique              types.Bool   `tfsdk:"unique"`
	UseableAsGridFilter types.Bool   `tfsdk:"useable_as_grid_filter"`
	MaxCharacters       types.Int64  `tfsdk:"max_characters"`
	ValidationRule      types.String `tfsdk:"validation_rule"`
	ValidationRegexp    types.String `tfsdk:"validation_regexp"`
	WysiwygEnabled      types.Bool   `tfsdk:"wysiwyg_enabled"`
	NumberMin           types.Number `tfsdk:"number_min"`
	NumberMax           types.Number `tfsdk:"number_max"`
	DecimalsAllowed     types.Bool   `tfsdk:"decimals_allowed"`
	NegativeAllowed     types.Bool   `tfsdk:"negative_allowed"`
	MetricFamily        types.String `tfsdk:"metric_family"`
	DefaultMetricUnit   types.String `tfsdk:"default_metric_unit"`
	DateMin             types.String `tfsdk:"date_min"`
	DateMax             types.String `tfsdk:"date_max"`
	AllowedExtensions   types.List   `tfsdk:"allowed_extensions"`
	MaxFileSize         types.Int64  `tfsdk:"max_file_size"`
	ReferenceDataName   types.String `tfsdk:"reference_data_name"`
	DefaultValue        types.Bool   `tfsdk:"default_value"`
	TableConfiguration  types.List   `tfsdk:"table_configuration"`
}

AttributeResourceModel describes the resource data model.

type CategoryResource added in v0.4.0

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

CategoryResource defines the resource implementation.

func (*CategoryResource) Configure added in v0.4.0

func (*CategoryResource) Create added in v0.4.0

func (*CategoryResource) Delete added in v0.4.0

func (*CategoryResource) ImportState added in v0.4.0

func (*CategoryResource) Metadata added in v0.4.0

func (*CategoryResource) Read added in v0.4.0

func (*CategoryResource) Schema added in v0.4.0

func (*CategoryResource) Update added in v0.4.0

type CategoryResourceModel added in v0.4.0

type CategoryResourceModel struct {
	Code   types.String `tfsdk:"code"`
	Parent types.String `tfsdk:"parent"`
	Labels types.Map    `tfsdk:"labels"`
}

CategoryResourceModel describes the resource data model.

type ChannelResource added in v0.3.0

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

ChannelResource defines the resource implementation.

func (*ChannelResource) Configure added in v0.3.0

func (*ChannelResource) Create added in v0.3.0

func (*ChannelResource) Delete added in v0.3.0

func (*ChannelResource) ImportState added in v0.3.0

func (*ChannelResource) Metadata added in v0.3.0

func (*ChannelResource) Read added in v0.3.0

func (*ChannelResource) Schema added in v0.3.0

func (*ChannelResource) Update added in v0.3.0

type ChannelResourceModel added in v0.3.0

type ChannelResourceModel struct {
	Code            types.String `tfsdk:"code"`
	Labels          types.Map    `tfsdk:"labels"`
	Locales         types.List   `tfsdk:"locales"`
	Currencies      types.List   `tfsdk:"currencies"`
	CategoryTree    types.String `tfsdk:"category_tree"`
	ConversionUnits types.Map    `tfsdk:"conversion_units"`
}

ChannelResourceModel describes the resource data model.

type DataSourceData

type DataSourceData struct {
	Client *goakeneo.Client
}

type FamilyResource

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

FamilyResource defines the resource implementation.

func (*FamilyResource) Configure

func (*FamilyResource) Create

func (*FamilyResource) Delete

func (*FamilyResource) ImportState

func (*FamilyResource) Metadata

func (*FamilyResource) Read

func (*FamilyResource) Schema

func (*FamilyResource) Update

type FamilyResourceModel

type FamilyResourceModel struct {
	Code                  types.String `tfsdk:"code"`
	Labels                types.Map    `tfsdk:"labels"`
	Attributes            types.List   `tfsdk:"attributes"`
	AttributeAsLabel      types.String `tfsdk:"attribute_as_label"`
	AttributeAsImage      types.String `tfsdk:"attribute_as_image"`
	AttributeRequirements types.Map    `tfsdk:"attribute_requirements"`
}

FamilyResourceModel describes the resource data model.

type FamilyVariantResource

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

FamilyVariantResource defines the resource implementation.

func (*FamilyVariantResource) Configure

func (*FamilyVariantResource) Create

func (*FamilyVariantResource) Delete

func (*FamilyVariantResource) ImportState

func (*FamilyVariantResource) Metadata

func (*FamilyVariantResource) Read

func (*FamilyVariantResource) Schema

func (*FamilyVariantResource) Update

type FamilyVariantResourceModel

type FamilyVariantResourceModel struct {
	FamilyCode           types.String               `tfsdk:"family_code"`
	Code                 types.String               `tfsdk:"code"`
	Labels               types.Map                  `tfsdk:"labels"`
	VariantAttributeSets []VariantAttributeSetModel `tfsdk:"variant_attribute_sets"`
}

FamilyVariantResourceModel describes the resource data model.

type MeasurementFamilyResource added in v0.2.0

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

MeasurementFamilyResource defines the resource implementation.

func (*MeasurementFamilyResource) Configure added in v0.2.0

func (*MeasurementFamilyResource) Create added in v0.2.0

func (*MeasurementFamilyResource) Delete added in v0.2.0

func (*MeasurementFamilyResource) ImportState added in v0.2.0

func (*MeasurementFamilyResource) Metadata added in v0.2.0

func (*MeasurementFamilyResource) Read added in v0.2.0

func (*MeasurementFamilyResource) Schema added in v0.2.0

func (*MeasurementFamilyResource) Update added in v0.2.0

type MeasurementFamilyResourceModel added in v0.2.0

type MeasurementFamilyResourceModel struct {
	Code             types.String                         `tfsdk:"code"`
	StandardUnitCode types.String                         `tfsdk:"standard_unit_code"`
	Labels           types.Map                            `tfsdk:"labels"`
	Units            []MeasurementFamilyResourceUnitModel `tfsdk:"units"`
}

MeasurementFamilyResourceModel describes the resource data model.

type MeasurementFamilyResourceUnitConversionModel added in v0.2.0

type MeasurementFamilyResourceUnitConversionModel struct {
	Operator types.String `tfsdk:"operator"`
	Value    types.String `tfsdk:"value"`
}

type MeasurementFamilyResourceUnitModel added in v0.2.0

type MeasurementFamilyResourceUnitModel struct {
	Code                types.String                                   `tfsdk:"code"`
	Symbol              types.String                                   `tfsdk:"symbol"`
	Labels              types.Map                                      `tfsdk:"labels"`
	ConvertFromStandard []MeasurementFamilyResourceUnitConversionModel `tfsdk:"convert_from_standard"`
}

type ResourceData

type ResourceData struct {
	Client *goakeneo.Client
}

type VariantAttributeSetModel

type VariantAttributeSetModel struct {
	Level      types.Int64 `tfsdk:"level"`
	Axes       types.List  `tfsdk:"axes"`
	Attributes types.List  `tfsdk:"attributes"`
}

Jump to

Keyboard shortcuts

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