category_attribute

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() resource.Resource

func UnassignAttributeDefinition

func UnassignAttributeDefinition(
	ctx context.Context,
	client pim.ClientWithResponsesInterface,
	categoryId, attributeId string,
) diag.Diagnostic

Types

type CategoryAttribute

type CategoryAttribute struct {
	CategoryId            types.String `tfsdk:"category_id"`
	AttributeDefinitionId types.String `tfsdk:"attribute_definition_id"`
	Mandatory             types.Bool   `tfsdk:"mandatory"`
}

func GetCategoryAttributeByID

func GetCategoryAttributeByID(
	ctx context.Context,
	client pim.ClientWithResponsesInterface,
	categoryId, attributeId string,
) (*CategoryAttribute, diag.Diagnostic)

type Resource

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

func (*Resource) Configure

Configure adds the provider configured client to the data source.

func (*Resource) Create

Create creates the resource and sets the initial Terraform state.

func (*Resource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*Resource) ImportState

func (*Resource) Metadata

Metadata returns the data source type name.

func (*Resource) Read

Read refreshes the Terraform state with the latest data.

func (*Resource) Schema

Schema defines the schema for the data source.

func (*Resource) Update

Update updates the resource and sets the updated Terraform state on success.

Jump to

Keyboard shortcuts

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