provider/ansible.rb
# Returns a string representation of the corresponding Python type
# for a MM type.
Returns a string representation of the corresponding Python type
for a MM type.
Returns a string representation of the corresponding Python type for a MM type .
def python_type(prop)
        prop = Module.const_get(prop).new('') unless prop.is_a?(Api::Type)
        if prop.is_a? Api::Type::ResourceRef
          return 'str' if prop.resource_ref.virtual
          return 'dict'
        end
        PYTHON_TYPE_FROM_MM_TYPE.fetch(prop.class.to_s, 'str')
      end
def python_type ( prop ) prop = Module . const_get ( prop ) . new ( '' ) unless prop . is_a? ( Api :: Type ) if prop . is_a? Api :: Type :: ResourceRef return 'str' if prop . resource_ref . virtual return 'dict' end PYTHON_TYPE_FROM_MM_TYPE . fetch ( prop . class . to_s , 'str' ) end
Returns a string representation of the corresponding Python type
for a MM type.
Returns a string representation of the corresponding Python type for a MM type .
# All ResourceRefs are dicts with properties.
prop
<not_specific>