provider/ansible/module.rb
# Returns the Python dictionary representing a simple property for
# validation.
Returns the Python dictionary representing a simple property for
validation.
Returns the Python dictionary representing a simple property for validation .
def python_dict_for_property(prop, config)
        if prop.is_a?(Api::Type::Array) && \
           prop.item_type.is_a?(Api::Type::NestedObject)
          nested_obj_dict(prop, config, prop.item_type.properties)
        elsif prop.is_a? Api::Type::NestedObject
          nested_obj_dict(prop, config, prop.properties)
        else
          name = Google::StringUtils.underscore(prop.out_name)
          "#{name}=dict(#{prop_options(prop, config).join(', ')})"
        end
      end
def python_dict_for_property ( prop , config ) if prop . is_a? ( Api :: Type :: Array ) && prop . item_type . is_a? ( Api :: Type :: NestedObject ) nested_obj_dict ( prop , config , prop . item_type . properties ) elsif prop . is_a? Api :: Type :: NestedObject nested_obj_dict ( prop , config , prop . properties ) else name = Google :: StringUtils . underscore ( prop . out_name ) "#{name}=dict(#{prop_options(prop, config).join(', ')})" end end
Returns the Python dictionary representing a simple property for
validation.
Returns the Python dictionary representing a simple property for validation .
prop
<not_specific>
config
<not_specific>