Module TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias identifier ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad Str attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad Str attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad Str attr AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A N/A N/A xml.etree.ElementTree ET N/A N/A N/A ImportError N/A N/A xml.etree.cElementTree ET Argument N/A object N/A N/A Class representing an argument to a modular input kind.

    ``Argument`` is meant to be used with ``Scheme`` to generate an XML 
    definition of the modular input kind that Splunk understands.

    ``name`` is the only required parameter for the constructor.

        **Example with least parameters**::

            arg1 = Argument(name="arg1")

        **Example with all parameters**::

            arg2 = Argument(
                name="arg2",
                description="This is an argument with lots of parameters",
                validation="is_pos_int('some_name')",
                data_type=Argument.data_type_number,
                required_on_edit=True,
                required_on_create=True
            )
     N/A data_type_boolean BOOLEAN N/A data_type_number NUMBER N/A data_type_string STRING __init__ N/A N/A self name description validation data_type required_on_edit required_on_create title N/A None None data_type_string False False None N/A N/A 
        :param name: ``string``, identifier for this argument in Splunk.
        :param description: ``string``, human-readable description of the argument.
        :param validation: ``string`` specifying how the argument should be validated, if using internal validation.
        If using external validation, this will be ignored.
        :param data_type: ``string``, data type of this field; use the class constants.
        "data_type_boolean", "data_type_number", or "data_type_string".
        :param required_on_edit: ``Boolean``, whether this arg is required when editing an existing modular input of this kind.
        :param required_on_create: ``Boolean``, whether this arg is required when creating a modular input of this kind.
        :param title: ``String``, a human-readable title for the argument.
         N/A N/A self name name N/A N/A self description description N/A N/A self validation validation N/A N/A self data_type data_type N/A N/A self required_on_edit required_on_edit N/A N/A self required_on_create required_on_create N/A N/A self title title N/A add_to_document N/A N/A self parent N/A N/A N/A Adds an ``Argument`` object to this ElementTree document.

        Adds an <arg> subelement to the parent element, typically <args>
        and sets up its subelements with their respective text.

        :param parent: An ``ET.Element`` to be the parent of a new <arg> subelement
        :returns: An ``ET.Element`` object representing this argument.
         N/A arg N/A N/A ET SubElement parent arg N/A N/A N/A arg set name N/A self name N/A N/A N/A self title None N/A N/A N/A N/A N/A ET SubElement arg title text N/A self title N/A N/A N/A self description None N/A N/A N/A N/A N/A ET SubElement arg description text N/A self description N/A N/A N/A self validation None N/A N/A N/A N/A N/A ET SubElement arg validation text N/A self validation N/A subelements N/A N/A data_type N/A self data_type N/A required_on_edit N/A self required_on_edit N/A required_on_create N/A self required_on_create N/A N/A name value subelements N/A N/A N/A N/A N/A ET SubElement arg name text N/A N/A N/A str value lower N/A arg N/A N/A