provider/ansible/module.rb
# Returns an array of all base options for a given property.
# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/MethodLength
Returns an array of all base options for a given property.
Returns an array of all base options for a given property .
def prop_options(prop, config)
        [
          ('required=True' if prop.required),
          "type=#{quote_string(python_type(prop))}",
          (if prop.is_a? Api::Type::Enum
             "choices=[#{prop.values.map do |x|
                           quote_string(x.to_s)
                         end.join(', ')}]"
           end),
          ("elements=#{quote_string(python_type(prop.item_type))}" \
            if prop.is_a? Api::Type::Array),
          (if config['aliases']&.keys&.include?(prop.name)
             "aliases=[#{config['aliases'][prop.name].map do |x|
                           quote_string(x)
                         end.join(', ')}]"
           end)
        ].compact
      end
def prop_options ( prop , config ) [ ( 'required=True' if prop . required ) , "type=#{quote_string(python_type(prop))}" , ( if prop . is_a? Api :: Type :: Enum "choices=[#{prop.values.map do |x|
                           quote_string(x.to_s)
                         end.join(', ')}]" end ) , ( "elements=#{quote_string(python_type(prop.item_type))}" if prop . is_a? Api :: Type :: Array ) , ( if config [ 'aliases' ] &. keys &. include? ( prop . name ) "aliases=[#{config['aliases'][prop.name].map do |x|
                           quote_string(x)
                         end.join(', ')}]" end ) ] . compact end
Returns an array of all base options for a given property.
Returns an array of all base options for a given property .
prop
<not_specific>
config
<not_specific>