provider/terraform.rb
# Converts between the Magic Modules type of an object and its type in the
# TF schema
Converts between the Magic Modules type of an object and its type in the
TF schema
Converts between the Magic Modules type of an object and its type in the TF schema
def tf_types
      {
        Api::Type::Boolean => 'schema.TypeBool',
        Api::Type::Double => 'schema.TypeFloat',
        Api::Type::Integer => 'schema.TypeInt',
        Api::Type::String => 'schema.TypeString',
        'Api::Type::String' => 'schema.TypeString',
        Api::Type::Time => 'schema.TypeString',
        Api::Type::Enum => 'schema.TypeString',
        Api::Type::ResourceRef => 'schema.TypeString',
        Api::Type::NestedObject => 'schema.TypeList',
        Api::Type::Array => 'schema.TypeList'
      }
    end
def tf_types { Api :: Type :: Boolean => 'schema.TypeBool' , Api :: Type :: Double => 'schema.TypeFloat' , Api :: Type :: Integer => 'schema.TypeInt' , Api :: Type :: String => 'schema.TypeString' , 'Api::Type::String' => 'schema.TypeString' , Api :: Type :: Time => 'schema.TypeString' , Api :: Type :: Enum => 'schema.TypeString' , Api :: Type :: ResourceRef => 'schema.TypeString' , Api :: Type :: NestedObject => 'schema.TypeList' , Api :: Type :: Array => 'schema.TypeList' } end
Converts between the Magic Modules type of an object and its type in the
TF schema
Converts between the Magic Modules type of an object and its type in the TF schema
# Anonymous string property used in array of strings.