Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultDeleteDaysAfterCreation = 15
)
Variables ¶
View Source
var ProjectResourceDataV0 = tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "id": tftypes.String, "key": tftypes.String, "version": tftypes.Number, "name": tftypes.String, "currencies": tftypes.List{ElementType: tftypes.String}, "countries": tftypes.List{ElementType: tftypes.String}, "languages": tftypes.List{ElementType: tftypes.String}, "enable_search_index_products": tftypes.Bool, "enable_search_index_orders": tftypes.Bool, "carts": tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "country_tax_rate_fallback_enabled": tftypes.Bool, "delete_days_after_last_modification": tftypes.Number, }, }, "messages": tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "enabled": tftypes.Bool, "delete_days_after_creation": tftypes.Number, }, }, "external_oauth": tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "url": tftypes.String, "authorization_header": tftypes.String, }, }, "shipping_rate_input_type": tftypes.String, "shipping_rate_cart_classification_value": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "key": tftypes.String, "label": tftypes.Map{ ElementType: tftypes.String, }, }, }, }, }, }
View Source
var ProjectResourceDataV1 = tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "id": tftypes.String, "key": tftypes.String, "version": tftypes.Number, "name": tftypes.String, "currencies": tftypes.List{ElementType: tftypes.String}, "countries": tftypes.List{ElementType: tftypes.String}, "languages": tftypes.List{ElementType: tftypes.String}, "enable_search_index_products": tftypes.Bool, "enable_search_index_product_search": tftypes.Bool, "enable_search_index_orders": tftypes.Bool, "enable_search_index_customers": tftypes.Bool, "carts": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "country_tax_rate_fallback_enabled": tftypes.Bool, "delete_days_after_last_modification": tftypes.Number, }, }, }, "messages": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "enabled": tftypes.Bool, "delete_days_after_creation": tftypes.Number, }, }, }, "external_oauth": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "url": tftypes.String, "authorization_header": tftypes.String, }, }, }, "shipping_rate_input_type": tftypes.String, "shipping_rate_cart_classification_value": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "key": tftypes.String, "label": tftypes.Map{ ElementType: tftypes.String, }, }, }, }, "business_units": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "my_business_unit_status_on_creation": tftypes.String, "my_business_unit_associate_role_key_on_creation": tftypes.String, }, }, }, }, }
Functions ¶
func NewResource ¶
NewResource is a helper function to simplify the provider implementation.
Types ¶
type AssociateRoleKeyReference ¶ added in v1.15.0
type BusinessUnits ¶ added in v1.15.0
type ExternalOAuth ¶
type Project ¶
type Project struct { ID types.String `tfsdk:"id"` Key types.String `tfsdk:"key"` Version types.Int64 `tfsdk:"version"` Name types.String `tfsdk:"name"` Currencies []types.String `tfsdk:"currencies"` Countries []types.String `tfsdk:"countries"` Languages []types.String `tfsdk:"languages"` EnableSearchIndexProducts types.Bool `tfsdk:"enable_search_index_products"` EnableSearchIndexProductSearch types.Bool `tfsdk:"enable_search_index_product_search"` EnableSearchIndexOrders types.Bool `tfsdk:"enable_search_index_orders"` EnableSearchIndexCustomers types.Bool `tfsdk:"enable_search_index_customers"` // These items all have maximal one item. We don't use SingleNestedBlock // here since it isn't quite robust currently. // See https://github.com/hashicorp/terraform-plugin-framework/issues/603 Carts []Carts `tfsdk:"carts"` Messages []Messages `tfsdk:"messages"` ExternalOAuth []ExternalOAuth `tfsdk:"external_oauth"` ShippingRateInputType types.String `tfsdk:"shipping_rate_input_type"` ShippingRateCartClassificationValue []models.CustomFieldLocalizedEnumValue `tfsdk:"shipping_rate_cart_classification_value"` BusinessUnits []BusinessUnits `tfsdk:"business_units"` }
func NewProjectFromNative ¶
Click to show internal directories.
Click to hide internal directories.