provider

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MPL-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppInstallationResourceSchema added in v0.0.8

func AppInstallationResourceSchema(ctx context.Context) schema.Schema

func AttributesFromTerraformValue added in v0.0.17

func AttributesFromTerraformValue(ctx context.Context, attrTypes map[string]attr.Type, value tftypes.Value) (map[string]attr.Value, error)

func ContentTypeResourceSchema added in v0.0.8

func ContentTypeResourceSchema(ctx context.Context) schema.Schema

func ContentfulProviderSchema added in v0.0.8

func ContentfulProviderSchema(ctx context.Context) schema.Schema

func DeliveryApiKeyResourceSchema added in v0.0.10

func DeliveryApiKeyResourceSchema(ctx context.Context) schema.Schema

func EditorInterfaceResourceSchema added in v0.0.8

func EditorInterfaceResourceSchema(ctx context.Context) schema.Schema

func ErrorFromDiags added in v0.0.17

func ErrorFromDiags(diags diag.Diagnostics) error

func FieldsListToPutContentTypeReqFields added in v0.0.8

func FieldsListToPutContentTypeReqFields(ctx context.Context, path path.Path, fieldsList types.List) ([]contentfulManagement.PutContentTypeReqFieldsItem, diag.Diagnostics)

func GetPrivateProviderData added in v0.0.8

func GetPrivateProviderData[T interface{}](ctx context.Context, providerData PrivateProviderData, key string, value *T) diag.Diagnostics

func ImportStatePassthroughMultipartID added in v0.0.8

func ImportStatePassthroughMultipartID(ctx context.Context, attrPaths []path.Path, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func ItemsObjectToOptPutContentTypeReqFieldsItemItems added in v0.0.8

func ItemsObjectToOptPutContentTypeReqFieldsItemItems(ctx context.Context, path path.Path, itemsObject types.Object) (contentfulManagement.OptPutContentTypeReqFieldsItemItems, diag.Diagnostics)

func New

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

func NewAppInstallationResource

func NewAppInstallationResource() resource.Resource

func NewContentTypeResource added in v0.0.5

func NewContentTypeResource() resource.Resource

func NewControlsListValueFromResponse added in v0.0.8

func NewControlsListValueFromResponse(ctx context.Context, path path.Path, controlsItems []contentfulManagement.EditorInterfaceControlsItem) (types.List, diag.Diagnostics)

func NewControlsListValueNull added in v0.0.8

func NewControlsListValueNull(ctx context.Context) types.List

func NewDeliveryApiKeyResource added in v0.0.10

func NewDeliveryApiKeyResource() resource.Resource

func NewEditorInterfaceResource added in v0.0.3

func NewEditorInterfaceResource() resource.Resource

func NewEditorLayoutListValueFromResponse added in v0.0.16

func NewEditorLayoutListValueFromResponse(ctx context.Context, path path.Path, controlsItems []contentfulManagement.EditorInterfaceEditorLayoutItem) (types.List, diag.Diagnostics)

func NewEditorLayoutListValueNull added in v0.0.16

func NewEditorLayoutListValueNull(ctx context.Context) types.List

func NewEmptyListMust added in v0.0.17

func NewEmptyListMust(elementType attr.Type) basetypes.ListValue

func NewEmptySetMust added in v0.0.17

func NewEmptySetMust(elementType attr.Type) basetypes.SetValue
func NewEnvironmentIDsListValueFromEnvironmentLinks(_ context.Context, _ path.Path, environmentLinks []contentfulManagement.EnvironmentLink) (types.List, diag.Diagnostics)

func NewFieldsListFromResponse added in v0.0.8

func NewFieldsListFromResponse(ctx context.Context, path path.Path, items []contentfulManagement.ContentTypeFieldsItem) (types.List, diag.Diagnostics)

func NewGroupControlsListValueFromResponse added in v0.0.16

func NewGroupControlsListValueFromResponse(ctx context.Context, path path.Path, groupControlsItems []contentfulManagement.EditorInterfaceGroupControlsItem) (types.List, diag.Diagnostics)

func NewGroupControlsListValueNull added in v0.0.16

func NewGroupControlsListValueNull(ctx context.Context) types.List

func NewPermissionActionsListValueFromResponse added in v0.0.15

func NewPermissionActionsListValueFromResponse(ctx context.Context, path path.Path, item contentfulManagement.RolePermissionsItem) (basetypes.ListValue, diag.Diagnostics)

func NewPermissionsMapValueFromResponse added in v0.0.15

func NewPermissionsMapValueFromResponse(ctx context.Context, path path.Path, permissions contentfulManagement.RolePermissions) (basetypes.MapValue, diag.Diagnostics)

func NewPersonalAccessTokenResource added in v0.0.12

func NewPersonalAccessTokenResource() resource.Resource

func NewPoliciesListValueFromResponse added in v0.0.15

func NewPoliciesListValueFromResponse(ctx context.Context, path path.Path, policies []contentfulManagement.RolePoliciesItem) (basetypes.ListValue, diag.Diagnostics)

func NewPolicyActionsListValueFromResponse added in v0.0.15

func NewPolicyActionsListValueFromResponse(ctx context.Context, path path.Path, actions contentfulManagement.RolePoliciesItemActions) (basetypes.ListValue, diag.Diagnostics)

func NewPreviewApiKeyDataSource added in v0.0.10

func NewPreviewApiKeyDataSource() datasource.DataSource

func NewRoleResource added in v0.0.15

func NewRoleResource() resource.Resource

func NewSidebarListValueFromResponse added in v0.0.8

func NewSidebarListValueFromResponse(ctx context.Context, path path.Path, sidebarItems []contentfulManagement.EditorInterfaceSidebarItem) (types.List, diag.Diagnostics)

func NewSidebarListValueNull added in v0.0.8

func NewSidebarListValueNull(ctx context.Context) types.List

func NewValidationsListFromResponse added in v0.0.8

func NewValidationsListFromResponse(_ context.Context, _ path.Path, validations []jx.Raw) (types.List, diag.Diagnostics)

func NewWebhookResource added in v0.0.17

func NewWebhookResource() resource.Resource

func PersonalAccessTokenResourceSchema added in v0.0.12

func PersonalAccessTokenResourceSchema(ctx context.Context) schema.Schema

func PreviewApiKeyDataSourceSchema added in v0.0.10

func PreviewApiKeyDataSourceSchema(ctx context.Context) schema.Schema

func ReadHeadersListValueFromResponse added in v0.0.17

func ReadHeadersListValueFromResponse(ctx context.Context, path path.Path, model types.Map, headers []contentfulManagement.WebhookDefinitionHeader) (types.Map, diag.Diagnostics)

func ReadWebhookDefinitionFilterTermString added in v0.0.17

func ReadWebhookDefinitionFilterTermString(_ context.Context, path path.Path, input jx.Raw) (types.String, diag.Diagnostics)

func ReadWebhookDefinitionFilterTermStringArray added in v0.0.17

func ReadWebhookDefinitionFilterTermStringArray(_ context.Context, path path.Path, input jx.Raw) (types.List, diag.Diagnostics)

func ReadWebhookDefinitionFilterTermStringObject added in v0.0.17

func ReadWebhookDefinitionFilterTermStringObject(_ context.Context, path path.Path, name string, input jx.Raw) (types.String, diag.Diagnostics)

func ReadWebhookFiltersListValueFromResponse added in v0.0.17

func ReadWebhookFiltersListValueFromResponse(ctx context.Context, path path.Path, optNilFilters contentfulManagement.OptNilWebhookDefinitionFilterArray) (types.List, diag.Diagnostics)

func RoleResourceSchema added in v0.0.15

func RoleResourceSchema(ctx context.Context) schema.Schema

func SetPrivateProviderData added in v0.0.8

func SetPrivateProviderData[T interface{}](ctx context.Context, providerData PrivateProviderData, key string, value T) diag.Diagnostics

func SetProviderDataFromDataSourceConfigureRequest added in v0.0.8

func SetProviderDataFromDataSourceConfigureRequest[ProviderData interface{}](req datasource.ConfigureRequest, out *ProviderData) diag.Diagnostics

func SetProviderDataFromResourceConfigureRequest added in v0.0.8

func SetProviderDataFromResourceConfigureRequest[ProviderData interface{}](req resource.ConfigureRequest, out *ProviderData) diag.Diagnostics

func ToCreateRoleReqPermissions added in v0.0.15

func ToCreateRoleReqPermissions(ctx context.Context, path path.Path, permissions types.Map) (contentfulManagement.CreateRoleReqPermissions, diag.Diagnostics)

func ToCreateRoleReqPermissionsItem added in v0.0.15

func ToCreateRoleReqPermissionsItem(ctx context.Context, _ path.Path, value types.List) (contentfulManagement.CreateRoleReqPermissionsItem, diag.Diagnostics)

func ToCreateRoleReqPolicies added in v0.0.15

func ToCreateRoleReqPolicies(ctx context.Context, path path.Path, policies types.List) ([]contentfulManagement.CreateRoleReqPoliciesItem, diag.Diagnostics)

func ToCreateRoleReqPoliciesItemActions added in v0.0.15

func ToCreateRoleReqPoliciesItemActions(ctx context.Context, _ path.Path, actions types.List) (contentfulManagement.CreateRoleReqPoliciesItemActions, diag.Diagnostics)
func ToEnvironmentLink(_ context.Context, _ path.Path, environmentID string) (contentfulManagement.EnvironmentLink, diag.Diagnostics)
func ToEnvironmentLinks(ctx context.Context, path path.Path, value types.List) ([]contentfulManagement.EnvironmentLink, diag.Diagnostics)

func ToOptCreateRoleReqPoliciesItemConstraint added in v0.0.15

func ToOptCreateRoleReqPoliciesItemConstraint(_ context.Context, _ path.Path, constraint types.String) (jx.Raw, diag.Diagnostics)

func ToOptNilWebhookDefinitionFilterArray added in v0.0.17

func ToOptNilWebhookDefinitionFilterArray(ctx context.Context, path path.Path, filterValuesList types.List) (contentfulManagement.OptNilWebhookDefinitionFilterArray, diag.Diagnostics)

func ToOptUpdateRoleReqPoliciesItemConstraint added in v0.0.15

func ToOptUpdateRoleReqPoliciesItemConstraint(_ context.Context, _ path.Path, constraint types.String) (jx.Raw, diag.Diagnostics)

func ToUpdateRoleReqPermissions added in v0.0.15

func ToUpdateRoleReqPermissions(ctx context.Context, path path.Path, permissions types.Map) (contentfulManagement.UpdateRoleReqPermissions, diag.Diagnostics)

func ToUpdateRoleReqPermissionsItem added in v0.0.15

func ToUpdateRoleReqPermissionsItem(ctx context.Context, _ path.Path, value types.List) (contentfulManagement.UpdateRoleReqPermissionsItem, diag.Diagnostics)

func ToUpdateRoleReqPolicies added in v0.0.15

func ToUpdateRoleReqPolicies(ctx context.Context, path path.Path, policies types.List) ([]contentfulManagement.UpdateRoleReqPoliciesItem, diag.Diagnostics)

func ToUpdateRoleReqPoliciesItemActions added in v0.0.15

func ToUpdateRoleReqPoliciesItemActions(ctx context.Context, _ path.Path, actions types.List) (contentfulManagement.UpdateRoleReqPoliciesItemActions, diag.Diagnostics)

func ToWebhookDefinitionFilter added in v0.0.17

func ToWebhookDefinitionFilterIn added in v0.0.17

func ToWebhookDefinitionHeaders added in v0.0.17

func ToWebhookDefinitionHeaders(ctx context.Context, path path.Path, model types.Map) (contentfulManagement.WebhookDefinitionHeaders, diag.Diagnostics)

func ValidationsListToPutContentTypeReqValidations added in v0.0.8

func ValidationsListToPutContentTypeReqValidations(ctx context.Context, _ path.Path, validationsList types.List) ([]jx.Raw, diag.Diagnostics)

func WebhookFiltersSchema added in v0.0.17

func WebhookFiltersSchema(ctx context.Context, optional bool) schema.Attribute

func WebhookResourceSchema added in v0.0.17

func WebhookResourceSchema(ctx context.Context) schema.Schema

Types

type AppInstallationModel added in v0.0.8

type AppInstallationModel struct {
	AppDefinitionId types.String         `tfsdk:"app_definition_id"`
	EnvironmentId   types.String         `tfsdk:"environment_id"`
	Marketplace     types.Set            `tfsdk:"marketplace"`
	Parameters      jsontypes.Normalized `tfsdk:"parameters"`
	SpaceId         types.String         `tfsdk:"space_id"`
}

func (*AppInstallationModel) ReadFromResponse added in v0.0.8

func (model *AppInstallationModel) ReadFromResponse(appInstallation *contentfulManagement.AppInstallation) diag.Diagnostics

func (*AppInstallationModel) ToPutAppInstallationReq added in v0.0.8

func (*AppInstallationModel) ToXContentfulMarketplaceHeaderValue added in v0.0.9

func (model *AppInstallationModel) ToXContentfulMarketplaceHeaderValue(ctx context.Context) (contentfulManagement.OptString, diag.Diagnostics)

func (*AppInstallationModel) ToXContentfulMarketplaceHeaderValueElements added in v0.0.9

func (model *AppInstallationModel) ToXContentfulMarketplaceHeaderValueElements(ctx context.Context) ([]string, diag.Diagnostics)

type AttrTypeWithValueFromObject added in v0.0.17

type AttrTypeWithValueFromObject interface {
	attr.Type

	ValueFromObject(ctx context.Context, value basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
}

type AttrValueWithToObjectValue added in v0.0.17

type AttrValueWithToObjectValue interface {
	attr.Value

	ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
}

type ContentTypeModel added in v0.0.8

type ContentTypeModel struct {
	ContentTypeId types.String `tfsdk:"content_type_id"`
	Description   types.String `tfsdk:"description"`
	DisplayField  types.String `tfsdk:"display_field"`
	EnvironmentId types.String `tfsdk:"environment_id"`
	Fields        types.List   `tfsdk:"fields"`
	Name          types.String `tfsdk:"name"`
	SpaceId       types.String `tfsdk:"space_id"`
}

func (*ContentTypeModel) ReadFromResponse added in v0.0.8

func (m *ContentTypeModel) ReadFromResponse(ctx context.Context, contentType *contentfulManagement.ContentType) diag.Diagnostics

func (*ContentTypeModel) ToPutContentTypeReq added in v0.0.8

type ContentfulContentTypeCounter added in v0.0.6

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

func (*ContentfulContentTypeCounter) Get added in v0.0.6

func (c *ContentfulContentTypeCounter) Get(contentTypeID string) int

func (*ContentfulContentTypeCounter) Increment added in v0.0.6

func (c *ContentfulContentTypeCounter) Increment(contentTypeID string)

func (*ContentfulContentTypeCounter) Reset added in v0.0.6

func (c *ContentfulContentTypeCounter) Reset(contentTypeID string)

type ContentfulModel added in v0.0.8

type ContentfulModel struct {
	AccessToken types.String `tfsdk:"access_token"`
	Url         types.String `tfsdk:"url"`
}

type ContentfulProvider

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

func (*ContentfulProvider) Configure

func (*ContentfulProvider) DataSources

func (p *ContentfulProvider) DataSources(_ context.Context) []func() datasource.DataSource

func (*ContentfulProvider) Metadata

func (*ContentfulProvider) Resources

func (p *ContentfulProvider) Resources(_ context.Context) []func() resource.Resource

func (*ContentfulProvider) Schema

type ContentfulProviderData

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

type ControlsType added in v0.0.8

type ControlsType struct {
	basetypes.ObjectType
}

func (ControlsType) Equal added in v0.0.8

func (t ControlsType) Equal(o attr.Type) bool

func (ControlsType) String added in v0.0.8

func (t ControlsType) String() string

func (ControlsType) ValueFromObject added in v0.0.8

func (ControlsType) ValueFromTerraform added in v0.0.8

func (t ControlsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ControlsType) ValueType added in v0.0.8

func (t ControlsType) ValueType(ctx context.Context) attr.Value

type ControlsValue added in v0.0.8

type ControlsValue struct {
	FieldId         basetypes.StringValue `tfsdk:"field_id"`
	Settings        basetypes.StringValue `tfsdk:"settings"`
	WidgetId        basetypes.StringValue `tfsdk:"widget_id"`
	WidgetNamespace basetypes.StringValue `tfsdk:"widget_namespace"`
	// contains filtered or unexported fields
}

func NewControlsValue added in v0.0.8

func NewControlsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ControlsValue, diag.Diagnostics)

func NewControlsValueFromResponse added in v0.0.8

func NewControlsValueFromResponse(path path.Path, item contentfulManagement.EditorInterfaceControlsItem) (ControlsValue, diag.Diagnostics)

func NewControlsValueKnown added in v0.0.8

func NewControlsValueKnown() ControlsValue

func NewControlsValueMust added in v0.0.8

func NewControlsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ControlsValue

func NewControlsValueNull added in v0.0.8

func NewControlsValueNull() ControlsValue

func NewControlsValueUnknown added in v0.0.8

func NewControlsValueUnknown() ControlsValue

func (ControlsValue) AttributeTypes added in v0.0.8

func (v ControlsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ControlsValue) Equal added in v0.0.8

func (v ControlsValue) Equal(o attr.Value) bool

func (ControlsValue) IsNull added in v0.0.8

func (v ControlsValue) IsNull() bool

func (ControlsValue) IsUnknown added in v0.0.8

func (v ControlsValue) IsUnknown() bool

func (ControlsValue) String added in v0.0.8

func (v ControlsValue) String() string

func (ControlsValue) ToObjectValue added in v0.0.8

func (*ControlsValue) ToPutEditorInterfaceReqControlsItem added in v0.0.8

func (model *ControlsValue) ToPutEditorInterfaceReqControlsItem(_ context.Context, _ path.Path) (contentfulManagement.PutEditorInterfaceReqControlsItem, diag.Diagnostics)

func (ControlsValue) ToTerraformValue added in v0.0.8

func (v ControlsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ControlsValue) Type added in v0.0.8

func (v ControlsValue) Type(ctx context.Context) attr.Type

type DeliveryApiKeyModel added in v0.0.10

type DeliveryApiKeyModel struct {
	AccessToken     types.String `tfsdk:"access_token"`
	ApiKeyId        types.String `tfsdk:"api_key_id"`
	Description     types.String `tfsdk:"description"`
	Environments    types.List   `tfsdk:"environments"`
	Name            types.String `tfsdk:"name"`
	PreviewApiKeyId types.String `tfsdk:"preview_api_key_id"`
	SpaceId         types.String `tfsdk:"space_id"`
}

func (*DeliveryApiKeyModel) ReadFromResponse added in v0.0.10

func (model *DeliveryApiKeyModel) ReadFromResponse(ctx context.Context, apiKey *contentfulManagement.ApiKey) diag.Diagnostics

func (*DeliveryApiKeyModel) ToCreateDeliveryAPIKeyReq added in v0.0.12

func (*DeliveryApiKeyModel) ToUpdateDeliveryAPIKeyReq added in v0.0.12

type EditorInterfaceModel added in v0.0.8

type EditorInterfaceModel struct {
	ContentTypeId types.String `tfsdk:"content_type_id"`
	Controls      types.List   `tfsdk:"controls"`
	EditorLayout  types.List   `tfsdk:"editor_layout"`
	EnvironmentId types.String `tfsdk:"environment_id"`
	GroupControls types.List   `tfsdk:"group_controls"`
	Sidebar       types.List   `tfsdk:"sidebar"`
	SpaceId       types.String `tfsdk:"space_id"`
}

func (*EditorInterfaceModel) ReadFromResponse added in v0.0.8

func (model *EditorInterfaceModel) ReadFromResponse(ctx context.Context, editorInterface *contentfulManagement.EditorInterface) diag.Diagnostics

func (*EditorInterfaceModel) ToPutEditorInterfaceReq added in v0.0.8

type EditorLayoutType added in v0.0.16

type EditorLayoutType struct {
	basetypes.ObjectType
}

func (EditorLayoutType) Equal added in v0.0.16

func (t EditorLayoutType) Equal(o attr.Type) bool

func (EditorLayoutType) String added in v0.0.16

func (t EditorLayoutType) String() string

func (EditorLayoutType) ValueFromObject added in v0.0.16

func (EditorLayoutType) ValueFromTerraform added in v0.0.16

func (t EditorLayoutType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (EditorLayoutType) ValueType added in v0.0.16

func (t EditorLayoutType) ValueType(ctx context.Context) attr.Value

type EditorLayoutValue added in v0.0.16

type EditorLayoutValue struct {
	GroupId basetypes.StringValue `tfsdk:"group_id"`
	Items   basetypes.ListValue   `tfsdk:"items"`
	Name    basetypes.StringValue `tfsdk:"name"`
	// contains filtered or unexported fields
}

func NewEditorLayoutValue added in v0.0.16

func NewEditorLayoutValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (EditorLayoutValue, diag.Diagnostics)

func NewEditorLayoutValueFromResponse added in v0.0.16

func NewEditorLayoutValueFromResponse(path path.Path, item contentfulManagement.EditorInterfaceEditorLayoutItem) (EditorLayoutValue, diag.Diagnostics)

func NewEditorLayoutValueKnown added in v0.0.16

func NewEditorLayoutValueKnown() EditorLayoutValue

func NewEditorLayoutValueMust added in v0.0.16

func NewEditorLayoutValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) EditorLayoutValue

func NewEditorLayoutValueNull added in v0.0.16

func NewEditorLayoutValueNull() EditorLayoutValue

func NewEditorLayoutValueUnknown added in v0.0.16

func NewEditorLayoutValueUnknown() EditorLayoutValue

func (EditorLayoutValue) AttributeTypes added in v0.0.16

func (v EditorLayoutValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (EditorLayoutValue) Equal added in v0.0.16

func (v EditorLayoutValue) Equal(o attr.Value) bool

func (EditorLayoutValue) IsNull added in v0.0.16

func (v EditorLayoutValue) IsNull() bool

func (EditorLayoutValue) IsUnknown added in v0.0.16

func (v EditorLayoutValue) IsUnknown() bool

func (EditorLayoutValue) String added in v0.0.16

func (v EditorLayoutValue) String() string

func (EditorLayoutValue) ToObjectValue added in v0.0.16

func (*EditorLayoutValue) ToPutEditorInterfaceReqEditorLayoutItem added in v0.0.16

func (model *EditorLayoutValue) ToPutEditorInterfaceReqEditorLayoutItem(ctx context.Context, _ path.Path) (contentfulManagement.PutEditorInterfaceReqEditorLayoutItem, diag.Diagnostics)

func (EditorLayoutValue) ToTerraformValue added in v0.0.16

func (v EditorLayoutValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (EditorLayoutValue) Type added in v0.0.16

type FieldsType added in v0.0.8

type FieldsType struct {
	basetypes.ObjectType
}

func (FieldsType) Equal added in v0.0.8

func (t FieldsType) Equal(o attr.Type) bool

func (FieldsType) String added in v0.0.8

func (t FieldsType) String() string

func (FieldsType) ValueFromObject added in v0.0.8

func (FieldsType) ValueFromTerraform added in v0.0.8

func (t FieldsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (FieldsType) ValueType added in v0.0.8

func (t FieldsType) ValueType(ctx context.Context) attr.Value

type FieldsValue added in v0.0.8

type FieldsValue struct {
	DefaultValue basetypes.StringValue `tfsdk:"default_value"`
	Disabled     basetypes.BoolValue   `tfsdk:"disabled"`
	Id           basetypes.StringValue `tfsdk:"id"`
	Items        basetypes.ObjectValue `tfsdk:"items"`
	LinkType     basetypes.StringValue `tfsdk:"link_type"`
	Localized    basetypes.BoolValue   `tfsdk:"localized"`
	Name         basetypes.StringValue `tfsdk:"name"`
	Omitted      basetypes.BoolValue   `tfsdk:"omitted"`
	Required     basetypes.BoolValue   `tfsdk:"required"`
	FieldsType   basetypes.StringValue `tfsdk:"type"`
	Validations  basetypes.ListValue   `tfsdk:"validations"`
	// contains filtered or unexported fields
}

func NewFieldsValue added in v0.0.8

func NewFieldsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (FieldsValue, diag.Diagnostics)

func NewFieldsValueFromResponse added in v0.0.8

func NewFieldsValueFromResponse(ctx context.Context, path path.Path, item contentfulManagement.ContentTypeFieldsItem) (FieldsValue, diag.Diagnostics)

func NewFieldsValueMust added in v0.0.8

func NewFieldsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) FieldsValue

func NewFieldsValueNull added in v0.0.8

func NewFieldsValueNull() FieldsValue

func NewFieldsValueUnknown added in v0.0.8

func NewFieldsValueUnknown() FieldsValue

func (FieldsValue) AttributeTypes added in v0.0.8

func (v FieldsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (FieldsValue) Equal added in v0.0.8

func (v FieldsValue) Equal(o attr.Value) bool

func (FieldsValue) IsNull added in v0.0.8

func (v FieldsValue) IsNull() bool

func (FieldsValue) IsUnknown added in v0.0.8

func (v FieldsValue) IsUnknown() bool

func (FieldsValue) String added in v0.0.8

func (v FieldsValue) String() string

func (FieldsValue) ToObjectValue added in v0.0.8

func (*FieldsValue) ToPutContentTypeReqFieldsItem added in v0.0.8

func (model *FieldsValue) ToPutContentTypeReqFieldsItem(ctx context.Context, path path.Path) (contentfulManagement.PutContentTypeReqFieldsItem, diag.Diagnostics)

func (FieldsValue) ToTerraformValue added in v0.0.8

func (v FieldsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (FieldsValue) Type added in v0.0.8

func (v FieldsValue) Type(ctx context.Context) attr.Type

type GroupControlsType added in v0.0.16

type GroupControlsType struct {
	basetypes.ObjectType
}

func (GroupControlsType) Equal added in v0.0.16

func (t GroupControlsType) Equal(o attr.Type) bool

func (GroupControlsType) String added in v0.0.16

func (t GroupControlsType) String() string

func (GroupControlsType) ValueFromObject added in v0.0.16

func (GroupControlsType) ValueFromTerraform added in v0.0.16

func (t GroupControlsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (GroupControlsType) ValueType added in v0.0.16

func (t GroupControlsType) ValueType(ctx context.Context) attr.Value

type GroupControlsValue added in v0.0.16

type GroupControlsValue struct {
	GroupId         basetypes.StringValue `tfsdk:"group_id"`
	Settings        basetypes.StringValue `tfsdk:"settings"`
	WidgetId        basetypes.StringValue `tfsdk:"widget_id"`
	WidgetNamespace basetypes.StringValue `tfsdk:"widget_namespace"`
	// contains filtered or unexported fields
}

func NewGroupControlsValue added in v0.0.16

func NewGroupControlsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (GroupControlsValue, diag.Diagnostics)

func NewGroupControlsValueFromResponse added in v0.0.16

func NewGroupControlsValueFromResponse(path path.Path, item contentfulManagement.EditorInterfaceGroupControlsItem) (GroupControlsValue, diag.Diagnostics)

func NewGroupControlsValueKnown added in v0.0.16

func NewGroupControlsValueKnown() GroupControlsValue

func NewGroupControlsValueMust added in v0.0.16

func NewGroupControlsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) GroupControlsValue

func NewGroupControlsValueNull added in v0.0.16

func NewGroupControlsValueNull() GroupControlsValue

func NewGroupControlsValueUnknown added in v0.0.16

func NewGroupControlsValueUnknown() GroupControlsValue

func (GroupControlsValue) AttributeTypes added in v0.0.16

func (v GroupControlsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (GroupControlsValue) Equal added in v0.0.16

func (v GroupControlsValue) Equal(o attr.Value) bool

func (GroupControlsValue) IsNull added in v0.0.16

func (v GroupControlsValue) IsNull() bool

func (GroupControlsValue) IsUnknown added in v0.0.16

func (v GroupControlsValue) IsUnknown() bool

func (GroupControlsValue) String added in v0.0.16

func (v GroupControlsValue) String() string

func (GroupControlsValue) ToObjectValue added in v0.0.16

func (*GroupControlsValue) ToPutEditorInterfaceReqGroupControlsItem added in v0.0.16

func (GroupControlsValue) ToTerraformValue added in v0.0.16

func (v GroupControlsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (GroupControlsValue) Type added in v0.0.16

type HeadersType added in v0.0.17

type HeadersType struct {
	basetypes.ObjectType
}

func (HeadersType) Equal added in v0.0.17

func (t HeadersType) Equal(o attr.Type) bool

func (HeadersType) String added in v0.0.17

func (t HeadersType) String() string

func (HeadersType) ValueFromObject added in v0.0.17

func (HeadersType) ValueFromTerraform added in v0.0.17

func (t HeadersType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (HeadersType) ValueType added in v0.0.17

func (t HeadersType) ValueType(ctx context.Context) attr.Value

type HeadersValue added in v0.0.17

type HeadersValue struct {
	Secret basetypes.BoolValue   `tfsdk:"secret"`
	Value  basetypes.StringValue `tfsdk:"value"`
	// contains filtered or unexported fields
}

func NewHeadersValue added in v0.0.17

func NewHeadersValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (HeadersValue, diag.Diagnostics)

func NewHeadersValueKnown added in v0.0.17

func NewHeadersValueKnown() HeadersValue

func NewHeadersValueKnownFromAttributes added in v0.0.17

func NewHeadersValueKnownFromAttributes(_ context.Context, attributes map[string]attr.Value) (HeadersValue, diag.Diagnostics)

func NewHeadersValueKnownFromAttributesMust added in v0.0.17

func NewHeadersValueKnownFromAttributesMust(ctx context.Context, attributes map[string]attr.Value) HeadersValue

func NewHeadersValueMust added in v0.0.17

func NewHeadersValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) HeadersValue

func NewHeadersValueNull added in v0.0.17

func NewHeadersValueNull() HeadersValue

func NewHeadersValueUnknown added in v0.0.17

func NewHeadersValueUnknown() HeadersValue

func (HeadersValue) AttributeTypes added in v0.0.17

func (v HeadersValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (HeadersValue) Equal added in v0.0.17

func (v HeadersValue) Equal(o attr.Value) bool

func (HeadersValue) IsNull added in v0.0.17

func (v HeadersValue) IsNull() bool

func (HeadersValue) IsUnknown added in v0.0.17

func (v HeadersValue) IsUnknown() bool

func (*HeadersValue) ReadFromResponse added in v0.0.17

func (HeadersValue) String added in v0.0.17

func (v HeadersValue) String() string

func (HeadersValue) ToObjectValue added in v0.0.17

func (HeadersValue) ToTerraformValue added in v0.0.17

func (v HeadersValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (*HeadersValue) ToWebhookDefinitionHeader added in v0.0.17

func (model *HeadersValue) ToWebhookDefinitionHeader(_ context.Context, path path.Path, key string) (contentfulManagement.WebhookDefinitionHeader, diag.Diagnostics)

func (HeadersValue) Type added in v0.0.17

func (v HeadersValue) Type(ctx context.Context) attr.Type

type ItemsType added in v0.0.8

type ItemsType struct {
	basetypes.ObjectType
}

func (ItemsType) Equal added in v0.0.8

func (t ItemsType) Equal(o attr.Type) bool

func (ItemsType) String added in v0.0.8

func (t ItemsType) String() string

func (ItemsType) ValueFromObject added in v0.0.8

func (ItemsType) ValueFromTerraform added in v0.0.8

func (t ItemsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ItemsType) ValueType added in v0.0.8

func (t ItemsType) ValueType(ctx context.Context) attr.Value

type ItemsValue added in v0.0.8

type ItemsValue struct {
	LinkType    basetypes.StringValue `tfsdk:"link_type"`
	ItemsType   basetypes.StringValue `tfsdk:"type"`
	Validations basetypes.ListValue   `tfsdk:"validations"`
	// contains filtered or unexported fields
}

func NewItemsValue added in v0.0.8

func NewItemsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ItemsValue, diag.Diagnostics)

func NewItemsValueFromResponse added in v0.0.8

func NewItemsValueMust added in v0.0.8

func NewItemsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ItemsValue

func NewItemsValueNull added in v0.0.8

func NewItemsValueNull() ItemsValue

func NewItemsValueUnknown added in v0.0.8

func NewItemsValueUnknown() ItemsValue

func (ItemsValue) AttributeTypes added in v0.0.8

func (v ItemsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ItemsValue) Equal added in v0.0.8

func (v ItemsValue) Equal(o attr.Value) bool

func (ItemsValue) IsNull added in v0.0.8

func (v ItemsValue) IsNull() bool

func (ItemsValue) IsUnknown added in v0.0.8

func (v ItemsValue) IsUnknown() bool

func (ItemsValue) String added in v0.0.8

func (v ItemsValue) String() string

func (ItemsValue) ToObjectValue added in v0.0.8

func (*ItemsValue) ToPutContentTypeReqFieldsItemItems added in v0.0.8

func (model *ItemsValue) ToPutContentTypeReqFieldsItemItems(ctx context.Context, path path.Path) (contentfulManagement.PutContentTypeReqFieldsItemItems, diag.Diagnostics)

func (ItemsValue) ToTerraformValue added in v0.0.8

func (v ItemsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ItemsValue) Type added in v0.0.8

func (v ItemsValue) Type(ctx context.Context) attr.Type

type PersonalAccessTokenModel added in v0.0.12

type PersonalAccessTokenModel struct {
	ExpiresAt timetypes.RFC3339 `tfsdk:"expires_at"`
	ExpiresIn types.Int64       `tfsdk:"expires_in"`
	Id        types.String      `tfsdk:"id"`
	Name      types.String      `tfsdk:"name"`
	RevokedAt timetypes.RFC3339 `tfsdk:"revoked_at"`
	Scopes    types.List        `tfsdk:"scopes"`
	Token     types.String      `tfsdk:"token"`
}

func (*PersonalAccessTokenModel) ReadFromResponse added in v0.0.12

func (model *PersonalAccessTokenModel) ReadFromResponse(ctx context.Context, personalAccessToken *contentfulManagement.PersonalAccessToken) diag.Diagnostics

func (*PersonalAccessTokenModel) ToCreatePersonalAccessTokenReq added in v0.0.12

type PoliciesType added in v0.0.15

type PoliciesType struct {
	basetypes.ObjectType
}

func (PoliciesType) Equal added in v0.0.15

func (t PoliciesType) Equal(o attr.Type) bool

func (PoliciesType) String added in v0.0.15

func (t PoliciesType) String() string

func (PoliciesType) ValueFromObject added in v0.0.15

func (PoliciesType) ValueFromTerraform added in v0.0.15

func (t PoliciesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (PoliciesType) ValueType added in v0.0.15

func (t PoliciesType) ValueType(ctx context.Context) attr.Value

type PoliciesValue added in v0.0.15

type PoliciesValue struct {
	Actions    basetypes.ListValue   `tfsdk:"actions"`
	Constraint basetypes.StringValue `tfsdk:"constraint"`
	Effect     basetypes.StringValue `tfsdk:"effect"`
	// contains filtered or unexported fields
}

func NewPoliciesValue added in v0.0.15

func NewPoliciesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (PoliciesValue, diag.Diagnostics)

func NewPoliciesValueFromResponse added in v0.0.15

func NewPoliciesValueFromResponse(ctx context.Context, path path.Path, item contentfulManagement.RolePoliciesItem) (PoliciesValue, diag.Diagnostics)

func NewPoliciesValueMust added in v0.0.15

func NewPoliciesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) PoliciesValue

func NewPoliciesValueNull added in v0.0.15

func NewPoliciesValueNull() PoliciesValue

func NewPoliciesValueUnknown added in v0.0.15

func NewPoliciesValueUnknown() PoliciesValue

func (PoliciesValue) AttributeTypes added in v0.0.15

func (v PoliciesValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (PoliciesValue) Equal added in v0.0.15

func (v PoliciesValue) Equal(o attr.Value) bool

func (PoliciesValue) IsNull added in v0.0.15

func (v PoliciesValue) IsNull() bool

func (PoliciesValue) IsUnknown added in v0.0.15

func (v PoliciesValue) IsUnknown() bool

func (PoliciesValue) String added in v0.0.15

func (v PoliciesValue) String() string

func (*PoliciesValue) ToCreateRoleReqPoliciesItem added in v0.0.15

func (PoliciesValue) ToObjectValue added in v0.0.15

func (PoliciesValue) ToTerraformValue added in v0.0.15

func (v PoliciesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (*PoliciesValue) ToUpdateRoleReqPoliciesItem added in v0.0.15

func (PoliciesValue) Type added in v0.0.15

func (v PoliciesValue) Type(ctx context.Context) attr.Type

type PreviewApiKeyModel added in v0.0.10

type PreviewApiKeyModel struct {
	AccessToken     types.String `tfsdk:"access_token"`
	Description     types.String `tfsdk:"description"`
	Environments    types.List   `tfsdk:"environments"`
	Name            types.String `tfsdk:"name"`
	PreviewApiKeyId types.String `tfsdk:"preview_api_key_id"`
	SpaceId         types.String `tfsdk:"space_id"`
}

func (*PreviewApiKeyModel) ReadFromResponse added in v0.0.10

func (model *PreviewApiKeyModel) ReadFromResponse(ctx context.Context, previewAPIKey *contentfulManagement.PreviewApiKey) diag.Diagnostics

type PrivateProviderData added in v0.0.8

type PrivateProviderData interface {
	GetKey(ctx context.Context, key string) ([]byte, diag.Diagnostics)
	SetKey(ctx context.Context, key string, value []byte) diag.Diagnostics
}

type RoleModel added in v0.0.15

type RoleModel struct {
	Description types.String `tfsdk:"description"`
	Name        types.String `tfsdk:"name"`
	Permissions types.Map    `tfsdk:"permissions"`
	Policies    types.List   `tfsdk:"policies"`
	RoleId      types.String `tfsdk:"role_id"`
	SpaceId     types.String `tfsdk:"space_id"`
}

func (*RoleModel) ReadFromResponse added in v0.0.15

func (model *RoleModel) ReadFromResponse(ctx context.Context, role *contentfulManagement.Role) diag.Diagnostics

func (*RoleModel) ToCreateRoleReq added in v0.0.15

func (*RoleModel) ToUpdateRoleReq added in v0.0.15

type SidebarType added in v0.0.8

type SidebarType struct {
	basetypes.ObjectType
}

func (SidebarType) Equal added in v0.0.8

func (t SidebarType) Equal(o attr.Type) bool

func (SidebarType) String added in v0.0.8

func (t SidebarType) String() string

func (SidebarType) ValueFromObject added in v0.0.8

func (SidebarType) ValueFromTerraform added in v0.0.8

func (t SidebarType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (SidebarType) ValueType added in v0.0.8

func (t SidebarType) ValueType(ctx context.Context) attr.Value

type SidebarValue added in v0.0.8

type SidebarValue struct {
	Disabled        basetypes.BoolValue   `tfsdk:"disabled"`
	Settings        basetypes.StringValue `tfsdk:"settings"`
	WidgetId        basetypes.StringValue `tfsdk:"widget_id"`
	WidgetNamespace basetypes.StringValue `tfsdk:"widget_namespace"`
	// contains filtered or unexported fields
}

func NewSidebarValue added in v0.0.8

func NewSidebarValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SidebarValue, diag.Diagnostics)

func NewSidebarValueFromResponse added in v0.0.8

func NewSidebarValueFromResponse(path path.Path, item contentfulManagement.EditorInterfaceSidebarItem) (SidebarValue, diag.Diagnostics)

func NewSidebarValueKnown added in v0.0.8

func NewSidebarValueKnown() SidebarValue

func NewSidebarValueMust added in v0.0.8

func NewSidebarValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SidebarValue

func NewSidebarValueNull added in v0.0.8

func NewSidebarValueNull() SidebarValue

func NewSidebarValueUnknown added in v0.0.8

func NewSidebarValueUnknown() SidebarValue

func (SidebarValue) AttributeTypes added in v0.0.8

func (v SidebarValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (SidebarValue) Equal added in v0.0.8

func (v SidebarValue) Equal(o attr.Value) bool

func (SidebarValue) IsNull added in v0.0.8

func (v SidebarValue) IsNull() bool

func (SidebarValue) IsUnknown added in v0.0.8

func (v SidebarValue) IsUnknown() bool

func (SidebarValue) String added in v0.0.8

func (v SidebarValue) String() string

func (SidebarValue) ToObjectValue added in v0.0.8

func (*SidebarValue) ToPutEditorInterfaceReqSidebarItem added in v0.0.8

func (model *SidebarValue) ToPutEditorInterfaceReqSidebarItem(_ context.Context, _ path.Path) (contentfulManagement.PutEditorInterfaceReqSidebarItem, diag.Diagnostics)

func (SidebarValue) ToTerraformValue added in v0.0.8

func (v SidebarValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (SidebarValue) Type added in v0.0.8

func (v SidebarValue) Type(ctx context.Context) attr.Type

type TransformationType added in v0.0.17

type TransformationType struct {
	basetypes.ObjectType
}

func (TransformationType) Equal added in v0.0.17

func (t TransformationType) Equal(o attr.Type) bool

func (TransformationType) String added in v0.0.17

func (t TransformationType) String() string

func (TransformationType) ValueFromObject added in v0.0.17

func (TransformationType) ValueFromTerraform added in v0.0.17

func (t TransformationType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (TransformationType) ValueType added in v0.0.17

func (t TransformationType) ValueType(ctx context.Context) attr.Value

type TransformationValue added in v0.0.17

type TransformationValue struct {
	Body                 basetypes.StringValue `tfsdk:"body"`
	ContentType          basetypes.StringValue `tfsdk:"content_type"`
	IncludeContentLength basetypes.BoolValue   `tfsdk:"include_content_length"`
	Method               basetypes.StringValue `tfsdk:"method"`
	// contains filtered or unexported fields
}

func NewTransformationValue added in v0.0.17

func NewTransformationValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (TransformationValue, diag.Diagnostics)

func NewTransformationValueMust added in v0.0.17

func NewTransformationValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) TransformationValue

func NewTransformationValueNull added in v0.0.17

func NewTransformationValueNull() TransformationValue

func NewTransformationValueUnknown added in v0.0.17

func NewTransformationValueUnknown() TransformationValue

func ReadWebhookTransformationValueFromResponse added in v0.0.17

func ReadWebhookTransformationValueFromResponse(ctx context.Context, _ path.Path, optNilTransformation contentfulManagement.OptNilWebhookDefinitionTransformation) (TransformationValue, diag.Diagnostics)

func (TransformationValue) AttributeTypes added in v0.0.17

func (v TransformationValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (TransformationValue) Equal added in v0.0.17

func (v TransformationValue) Equal(o attr.Value) bool

func (TransformationValue) IsNull added in v0.0.17

func (v TransformationValue) IsNull() bool

func (TransformationValue) IsUnknown added in v0.0.17

func (v TransformationValue) IsUnknown() bool

func (TransformationValue) String added in v0.0.17

func (v TransformationValue) String() string

func (TransformationValue) ToObjectValue added in v0.0.17

func (TransformationValue) ToTerraformValue added in v0.0.17

func (v TransformationValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (TransformationValue) Type added in v0.0.17

type UnexpectedTerraformTypeError added in v0.0.17

type UnexpectedTerraformTypeError struct {
	Expected tftypes.Type
	Actual   tftypes.Type
}

func (UnexpectedTerraformTypeError) Error added in v0.0.17

type WebhookFilterEqualsType added in v0.0.17

type WebhookFilterEqualsType struct {
	basetypes.ObjectType
}

func (WebhookFilterEqualsType) Equal added in v0.0.17

func (WebhookFilterEqualsType) String added in v0.0.17

func (t WebhookFilterEqualsType) String() string

func (WebhookFilterEqualsType) TerraformAttributeTypes added in v0.0.17

func (t WebhookFilterEqualsType) TerraformAttributeTypes(_ context.Context) map[string]tftypes.Type

func (WebhookFilterEqualsType) TerraformType added in v0.0.17

func (t WebhookFilterEqualsType) TerraformType(ctx context.Context) tftypes.Type

func (WebhookFilterEqualsType) ValueFromObject added in v0.0.17

func (WebhookFilterEqualsType) ValueFromTerraform added in v0.0.17

func (t WebhookFilterEqualsType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

func (WebhookFilterEqualsType) ValueType added in v0.0.17

type WebhookFilterEqualsValue added in v0.0.17

type WebhookFilterEqualsValue struct {
	Doc   basetypes.StringValue `tfsdk:"doc"`
	Value basetypes.StringValue `tfsdk:"value"`
	// contains filtered or unexported fields
}

func NewWebhookFilterEqualsValueKnown added in v0.0.17

func NewWebhookFilterEqualsValueKnown() WebhookFilterEqualsValue

func NewWebhookFilterEqualsValueKnownFromAttributes added in v0.0.17

func NewWebhookFilterEqualsValueKnownFromAttributes(_ context.Context, attributes map[string]attr.Value) (WebhookFilterEqualsValue, diag.Diagnostics)

func NewWebhookFilterEqualsValueNull added in v0.0.17

func NewWebhookFilterEqualsValueNull() WebhookFilterEqualsValue

func NewWebhookFilterEqualsValueUnknown added in v0.0.17

func NewWebhookFilterEqualsValueUnknown() WebhookFilterEqualsValue

func (WebhookFilterEqualsValue) CustomType added in v0.0.17

func (WebhookFilterEqualsValue) Equal added in v0.0.17

func (WebhookFilterEqualsValue) IsNull added in v0.0.17

func (v WebhookFilterEqualsValue) IsNull() bool

func (WebhookFilterEqualsValue) IsUnknown added in v0.0.17

func (v WebhookFilterEqualsValue) IsUnknown() bool

func (WebhookFilterEqualsValue) ObjectAttrTypes added in v0.0.17

func (v WebhookFilterEqualsValue) ObjectAttrTypes(_ context.Context) map[string]attr.Type

func (WebhookFilterEqualsValue) ObjectType added in v0.0.17

func (WebhookFilterEqualsValue) SchemaAttributes added in v0.0.17

func (v WebhookFilterEqualsValue) SchemaAttributes(_ context.Context) map[string]schema.Attribute

func (WebhookFilterEqualsValue) String added in v0.0.17

func (v WebhookFilterEqualsValue) String() string

func (WebhookFilterEqualsValue) ToObjectValue added in v0.0.17

func (WebhookFilterEqualsValue) ToTerraformValue added in v0.0.17

func (v WebhookFilterEqualsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (WebhookFilterEqualsValue) Type added in v0.0.17

type WebhookFilterInType added in v0.0.17

type WebhookFilterInType struct {
	basetypes.ObjectType
}

func (WebhookFilterInType) Equal added in v0.0.17

func (t WebhookFilterInType) Equal(o attr.Type) bool

func (WebhookFilterInType) String added in v0.0.17

func (t WebhookFilterInType) String() string

func (WebhookFilterInType) TerraformAttributeTypes added in v0.0.17

func (t WebhookFilterInType) TerraformAttributeTypes(_ context.Context) map[string]tftypes.Type

func (WebhookFilterInType) TerraformType added in v0.0.17

func (t WebhookFilterInType) TerraformType(ctx context.Context) tftypes.Type

func (WebhookFilterInType) ValueFromObject added in v0.0.17

func (WebhookFilterInType) ValueFromTerraform added in v0.0.17

func (t WebhookFilterInType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

func (WebhookFilterInType) ValueType added in v0.0.17

func (t WebhookFilterInType) ValueType(_ context.Context) attr.Value

type WebhookFilterInValue added in v0.0.17

type WebhookFilterInValue struct {
	Doc    types.String `tfsdk:"doc"`
	Values types.List   `tfsdk:"values"`
	// contains filtered or unexported fields
}

func NewWebhookFilterInValueKnown added in v0.0.17

func NewWebhookFilterInValueKnown() WebhookFilterInValue

func NewWebhookFilterInValueKnownFromAttributes added in v0.0.17

func NewWebhookFilterInValueKnownFromAttributes(_ context.Context, attributes map[string]attr.Value) (WebhookFilterInValue, diag.Diagnostics)

func NewWebhookFilterInValueNull added in v0.0.17

func NewWebhookFilterInValueNull() WebhookFilterInValue

func NewWebhookFilterInValueUnknown added in v0.0.17

func NewWebhookFilterInValueUnknown() WebhookFilterInValue

func ReadWebhookFilterInValueFromResponse added in v0.0.17

func ReadWebhookFilterInValueFromResponse(ctx context.Context, path path.Path, input contentfulManagement.WebhookDefinitionFilterIn) (WebhookFilterInValue, diag.Diagnostics)

func (WebhookFilterInValue) CustomType added in v0.0.17

func (WebhookFilterInValue) Equal added in v0.0.17

func (v WebhookFilterInValue) Equal(o attr.Value) bool

func (WebhookFilterInValue) IsNull added in v0.0.17

func (v WebhookFilterInValue) IsNull() bool

func (WebhookFilterInValue) IsUnknown added in v0.0.17

func (v WebhookFilterInValue) IsUnknown() bool

func (WebhookFilterInValue) ObjectAttrTypes added in v0.0.17

func (v WebhookFilterInValue) ObjectAttrTypes(_ context.Context) map[string]attr.Type

func (WebhookFilterInValue) ObjectType added in v0.0.17

func (WebhookFilterInValue) SchemaAttributes added in v0.0.17

func (v WebhookFilterInValue) SchemaAttributes(_ context.Context) map[string]schema.Attribute

func (WebhookFilterInValue) String added in v0.0.17

func (v WebhookFilterInValue) String() string

func (WebhookFilterInValue) ToObjectValue added in v0.0.17

func (WebhookFilterInValue) ToTerraformValue added in v0.0.17

func (v WebhookFilterInValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (WebhookFilterInValue) Type added in v0.0.17

type WebhookFilterNotType added in v0.0.17

type WebhookFilterNotType struct {
	basetypes.ObjectType
}

func (WebhookFilterNotType) Equal added in v0.0.17

func (t WebhookFilterNotType) Equal(o attr.Type) bool

func (WebhookFilterNotType) String added in v0.0.17

func (t WebhookFilterNotType) String() string

func (WebhookFilterNotType) TerraformAttributeTypes added in v0.0.17

func (t WebhookFilterNotType) TerraformAttributeTypes(ctx context.Context) map[string]tftypes.Type

func (WebhookFilterNotType) TerraformType added in v0.0.17

func (t WebhookFilterNotType) TerraformType(ctx context.Context) tftypes.Type

func (WebhookFilterNotType) ValueFromObject added in v0.0.17

func (WebhookFilterNotType) ValueFromTerraform added in v0.0.17

func (t WebhookFilterNotType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

func (WebhookFilterNotType) ValueType added in v0.0.17

type WebhookFilterNotValue added in v0.0.17

type WebhookFilterNotValue struct {
	Equals WebhookFilterEqualsValue `tfsdk:"equals"`
	In     WebhookFilterInValue     `tfsdk:"in"`
	Regexp WebhookFilterRegexpValue `tfsdk:"regexp"`
	// contains filtered or unexported fields
}

func NewWebhookFilterNotValueKnown added in v0.0.17

func NewWebhookFilterNotValueKnown() WebhookFilterNotValue

func NewWebhookFilterNotValueKnownFromAttributes added in v0.0.17

func NewWebhookFilterNotValueKnownFromAttributes(_ context.Context, attributes map[string]attr.Value) (WebhookFilterNotValue, diag.Diagnostics)

func NewWebhookFilterNotValueNull added in v0.0.17

func NewWebhookFilterNotValueNull() WebhookFilterNotValue

func NewWebhookFilterNotValueUnknown added in v0.0.17

func NewWebhookFilterNotValueUnknown() WebhookFilterNotValue

func ReadWebhookFilterNotValueFromResponse added in v0.0.17

func ReadWebhookFilterNotValueFromResponse(ctx context.Context, path path.Path, input contentfulManagement.WebhookDefinitionFilterNot) (WebhookFilterNotValue, diag.Diagnostics)

func (WebhookFilterNotValue) CustomType added in v0.0.17

func (WebhookFilterNotValue) Equal added in v0.0.17

func (v WebhookFilterNotValue) Equal(o attr.Value) bool

func (WebhookFilterNotValue) IsNull added in v0.0.17

func (v WebhookFilterNotValue) IsNull() bool

func (WebhookFilterNotValue) IsUnknown added in v0.0.17

func (v WebhookFilterNotValue) IsUnknown() bool

func (WebhookFilterNotValue) ObjectAttrTypes added in v0.0.17

func (v WebhookFilterNotValue) ObjectAttrTypes(ctx context.Context) map[string]attr.Type

func (WebhookFilterNotValue) ObjectType added in v0.0.17

func (WebhookFilterNotValue) SchemaAttributes added in v0.0.17

func (v WebhookFilterNotValue) SchemaAttributes(ctx context.Context) map[string]schema.Attribute

func (WebhookFilterNotValue) String added in v0.0.17

func (v WebhookFilterNotValue) String() string

func (WebhookFilterNotValue) ToObjectValue added in v0.0.17

func (WebhookFilterNotValue) ToTerraformValue added in v0.0.17

func (v WebhookFilterNotValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (WebhookFilterNotValue) Type added in v0.0.17

type WebhookFilterRegexpType added in v0.0.17

type WebhookFilterRegexpType struct {
	basetypes.ObjectType
}

func (WebhookFilterRegexpType) Equal added in v0.0.17

func (WebhookFilterRegexpType) String added in v0.0.17

func (t WebhookFilterRegexpType) String() string

func (WebhookFilterRegexpType) TerraformAttributeTypes added in v0.0.17

func (t WebhookFilterRegexpType) TerraformAttributeTypes(_ context.Context) map[string]tftypes.Type

func (WebhookFilterRegexpType) TerraformType added in v0.0.17

func (t WebhookFilterRegexpType) TerraformType(ctx context.Context) tftypes.Type

func (WebhookFilterRegexpType) ValueFromObject added in v0.0.17

func (WebhookFilterRegexpType) ValueFromTerraform added in v0.0.17

func (t WebhookFilterRegexpType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

func (WebhookFilterRegexpType) ValueType added in v0.0.17

type WebhookFilterRegexpValue added in v0.0.17

type WebhookFilterRegexpValue struct {
	Doc     basetypes.StringValue `tfsdk:"doc"`
	Pattern basetypes.StringValue `tfsdk:"pattern"`
	// contains filtered or unexported fields
}

func NewWebhookFilterRegexpValueKnown added in v0.0.17

func NewWebhookFilterRegexpValueKnown() WebhookFilterRegexpValue

func NewWebhookFilterRegexpValueKnownFromAttributes added in v0.0.17

func NewWebhookFilterRegexpValueKnownFromAttributes(_ context.Context, attributes map[string]attr.Value) (WebhookFilterRegexpValue, diag.Diagnostics)

func NewWebhookFilterRegexpValueNull added in v0.0.17

func NewWebhookFilterRegexpValueNull() WebhookFilterRegexpValue

func NewWebhookFilterRegexpValueUnknown added in v0.0.17

func NewWebhookFilterRegexpValueUnknown() WebhookFilterRegexpValue

func (WebhookFilterRegexpValue) CustomType added in v0.0.17

func (WebhookFilterRegexpValue) Equal added in v0.0.17

func (WebhookFilterRegexpValue) IsNull added in v0.0.17

func (v WebhookFilterRegexpValue) IsNull() bool

func (WebhookFilterRegexpValue) IsUnknown added in v0.0.17

func (v WebhookFilterRegexpValue) IsUnknown() bool

func (WebhookFilterRegexpValue) ObjectAttrTypes added in v0.0.17

func (v WebhookFilterRegexpValue) ObjectAttrTypes(_ context.Context) map[string]attr.Type

func (WebhookFilterRegexpValue) ObjectType added in v0.0.17

func (WebhookFilterRegexpValue) SchemaAttributes added in v0.0.17

func (v WebhookFilterRegexpValue) SchemaAttributes(_ context.Context) map[string]schema.Attribute

func (WebhookFilterRegexpValue) String added in v0.0.17

func (v WebhookFilterRegexpValue) String() string

func (WebhookFilterRegexpValue) ToObjectValue added in v0.0.17

func (WebhookFilterRegexpValue) ToTerraformValue added in v0.0.17

func (v WebhookFilterRegexpValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (WebhookFilterRegexpValue) Type added in v0.0.17

type WebhookFilterType added in v0.0.17

type WebhookFilterType struct {
	basetypes.ObjectType
}

func (WebhookFilterType) Equal added in v0.0.17

func (t WebhookFilterType) Equal(o attr.Type) bool

func (WebhookFilterType) String added in v0.0.17

func (t WebhookFilterType) String() string

func (WebhookFilterType) TerraformAttributeTypes added in v0.0.17

func (t WebhookFilterType) TerraformAttributeTypes(ctx context.Context) map[string]tftypes.Type

func (WebhookFilterType) TerraformType added in v0.0.17

func (t WebhookFilterType) TerraformType(ctx context.Context) tftypes.Type

func (WebhookFilterType) ValueFromObject added in v0.0.17

func (WebhookFilterType) ValueFromTerraform added in v0.0.17

func (t WebhookFilterType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

func (WebhookFilterType) ValueType added in v0.0.17

func (t WebhookFilterType) ValueType(_ context.Context) attr.Value

type WebhookFilterValue added in v0.0.17

type WebhookFilterValue struct {
	Not    WebhookFilterNotValue    `tfsdk:"not"`
	Equals WebhookFilterEqualsValue `tfsdk:"equals"`
	In     WebhookFilterInValue     `tfsdk:"in"`
	Regexp WebhookFilterRegexpValue `tfsdk:"regexp"`
	// contains filtered or unexported fields
}

func NewWebhookFilterValueKnown added in v0.0.17

func NewWebhookFilterValueKnown() WebhookFilterValue

func NewWebhookFilterValueKnownFromAttributes added in v0.0.17

func NewWebhookFilterValueKnownFromAttributes(_ context.Context, attributes map[string]attr.Value) (WebhookFilterValue, diag.Diagnostics)

func NewWebhookFilterValueNull added in v0.0.17

func NewWebhookFilterValueNull() WebhookFilterValue

func NewWebhookFilterValueUnknown added in v0.0.17

func NewWebhookFilterValueUnknown() WebhookFilterValue

func ReadWebhookFilterValueFromResponse added in v0.0.17

func ReadWebhookFilterValueFromResponse(ctx context.Context, path path.Path, input contentfulManagement.WebhookDefinitionFilter) (WebhookFilterValue, diag.Diagnostics)

func (WebhookFilterValue) CustomType added in v0.0.17

func (WebhookFilterValue) Equal added in v0.0.17

func (v WebhookFilterValue) Equal(o attr.Value) bool

func (WebhookFilterValue) IsNull added in v0.0.17

func (v WebhookFilterValue) IsNull() bool

func (WebhookFilterValue) IsUnknown added in v0.0.17

func (v WebhookFilterValue) IsUnknown() bool

func (WebhookFilterValue) ObjectAttrTypes added in v0.0.17

func (v WebhookFilterValue) ObjectAttrTypes(ctx context.Context) map[string]attr.Type

func (WebhookFilterValue) ObjectType added in v0.0.17

func (WebhookFilterValue) SchemaAttributes added in v0.0.17

func (v WebhookFilterValue) SchemaAttributes(ctx context.Context) map[string]schema.Attribute

func (WebhookFilterValue) String added in v0.0.17

func (v WebhookFilterValue) String() string

func (WebhookFilterValue) ToObjectValue added in v0.0.17

func (WebhookFilterValue) ToTerraformValue added in v0.0.17

func (v WebhookFilterValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (WebhookFilterValue) Type added in v0.0.17

type WebhookModel added in v0.0.17

type WebhookModel struct {
	Active            types.Bool          `tfsdk:"active"`
	Filters           types.List          `tfsdk:"filters"`
	Headers           types.Map           `tfsdk:"headers"`
	HttpBasicPassword types.String        `tfsdk:"http_basic_password"`
	HttpBasicUsername types.String        `tfsdk:"http_basic_username"`
	Name              types.String        `tfsdk:"name"`
	SpaceId           types.String        `tfsdk:"space_id"`
	Topics            types.List          `tfsdk:"topics"`
	Transformation    TransformationValue `tfsdk:"transformation"`
	Url               types.String        `tfsdk:"url"`
	WebhookId         types.String        `tfsdk:"webhook_id"`
}

func (*WebhookModel) ReadFromResponse added in v0.0.17

func (model *WebhookModel) ReadFromResponse(ctx context.Context, webhookDefinition *contentfulManagement.WebhookDefinition) diag.Diagnostics

func (*WebhookModel) ToCreateWebhookDefinitionReq added in v0.0.17

func (model *WebhookModel) ToCreateWebhookDefinitionReq(ctx context.Context, path path.Path) (contentfulManagement.CreateWebhookDefinitionReq, diag.Diagnostics)

func (*WebhookModel) ToUpdateWebhookDefinitionReq added in v0.0.17

func (model *WebhookModel) ToUpdateWebhookDefinitionReq(ctx context.Context, path path.Path) (contentfulManagement.UpdateWebhookDefinitionReq, diag.Diagnostics)

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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