customfield

package
v7.0.0-...-386a899 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomFieldSchema = schema.Schema{
	Type:     schema.TypeSet,
	Optional: true,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			"name": {
				Type:        schema.TypeString,
				Required:    true,
				Description: "Name of the existing custom field.",
			},
			"type": {
				Type:     schema.TypeString,
				Required: true,
				ValidateFunc: validation.StringInSlice([]string{"text", "longtext", "integer", customFieldBoolean,
					"date", "url", customFieldJSON, "select", customFieldMultiSelect, customFieldObject, customFieldMultiObject, customFieldMultiSelectLegacy, "selection"}, false),
				Description: "Type of the existing custom field (text, longtext, integer, boolean, date, url, json, select, multiselect, object, multiobject, selection (deprecated), multiple(deprecated)).",
			},
			"value": {
				Type:        schema.TypeString,
				Required:    true,
				Description: "Value of the existing custom field.",
			},
		},
	},
	Description: "Existing custom fields to associate to this ressource.",
}

Functions

func ConvertCustomFieldsFromTerraformToAPI

func ConvertCustomFieldsFromTerraformToAPI(stateCustomFields []interface{}, customFields []interface{}) map[string]interface{}

Convert custom field regarding his type

func UpdateCustomFieldsFromAPI

func UpdateCustomFieldsFromAPI(stateCustomFields, customFields interface{}) []map[string]string

Pick the custom fields in the state file and update values with data from API

Types

This section is empty.

Jump to

Keyboard shortcuts

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