provider/ansible/module.rb
# Creates a Python dictionary representing a nested object property
# for validation.
Creates a Python dictionary representing a nested object property
for validation.
Creates a Python dictionary representing a nested object property for validation .
def nested_obj_dict(prop, config, properties)
        name = Google::StringUtils.underscore(prop.out_name)
        options = prop_options(prop, config).join(', ')
        [
          "#{name}=dict(#{options}, options=dict(",
          indent_list(properties.map do |p|
            python_dict_for_property(p, config)
          end, 4),
          '))'
        ]
      end
def nested_obj_dict ( prop , config , properties ) name = Google :: StringUtils . underscore ( prop . out_name ) options = prop_options ( prop , config ) . join ( ', ' ) [ "#{name}=dict(#{options}, options=dict(" , indent_list ( properties . map do | p | python_dict_for_property ( p , config ) end , 4 ) , '))' ] end
Creates a Python dictionary representing a nested object property
for validation.
Creates a Python dictionary representing a nested object property for validation .
prop
<not_specific>
config
<not_specific>
properties
<not_specific>