=begin #Custom Workflow Actions #Create custom workflow actions The version of the OpenAPI document: v4 Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 =end require 'date' require 'time' module Hubspot module Automation module Actions # The data type expected by an input field. class FieldTypeDefinition # The input field name. attr_accessor :name # The data type of the field. attr_accessor :type # Controls how the field appears in HubSpot. attr_accessor :field_type # A list of valid options for the field value. attr_accessor :options # A URL that will accept HTTPS requests when the valid options for the field are fetched. attr_accessor :options_url # This can be set to `OWNER` if the field should contain a HubSpot owner value. attr_accessor :referenced_object_type class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values def initialize(datatype, allowable_values) @allowable_values = allowable_values.map do |value| case datatype.to_s when /Integer/i value.to_i when /Float/i value.to_f else value end end end def valid?(value) !value || allowable_values.include?(value) end end # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'name' => :'name', :'type' => :'type', :'field_type' => :'fieldType', :'options' => :'options', :'options_url' => :'optionsUrl', :'referenced_object_type' => :'referencedObjectType' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes attribute_map.values end # Attribute type mapping. def self.openapi_types { :'name' => :'String', :'type' => :'String', :'field_type' => :'String', :'options' => :'Array