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 ¶
Pick the custom fields in the state file and update values with data from API
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.