def __init__(self, name, title, description, required_on_create=True, required_on_edit=False):
    '\n        Create the field.\n\n        Arguments:\n        name -- Set the name of the field (e.g. "database_server")\n        title -- Set the human readable title (e.g. "Database server")\n        description -- Set the human-readable description of the field\n                       (e.g. "The IP or domain name of the database server")\n        required_on_create -- If "true", the parameter is required on input stanza creation.\n        required_on_edit -- If "true", the parameter is required on input stanza modification.\n\n        Default values for required_on_create and required_on_edit match the\n        documented behavior at http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ModInputsScripts.\n        '
    if ((name is None) or (len(name.strip()) == 0)):
        raise ValueError('The name parameter cannot be empty.')
    if ((title is None) or (len(title.strip()) == 0)):
        raise ValueError('The title parameter cannot be empty.')
    if ((description is None) or (len(description.strip()) == 0)):
        raise ValueError('The description parameter cannot be empty.')
    self.name = name
    self.title = title
    self.description = description
    self.required_on_create = required_on_create
    self.required_on_edit = required_on_edit
Create the field.

Arguments:
name -- Set the name of the field (e.g. "database_server")
title -- Set the human readable title (e.g. "Database server")
description -- Set the human-readable description of the field
               (e.g. "The IP or domain name of the database server")
required_on_create -- If "true", the parameter is required on input stanza creation.
required_on_edit -- If "true", the parameter is required on input stanza modification.

Default values for required_on_create and required_on_edit match the
documented behavior at http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ModInputsScripts.
def __init__(self, name, title, description, required_on_create=True, required_on_edit=False):
    '\n        Create the field.\n\n        Arguments:\n        name -- Set the name of the field (e.g. "database_server")\n        title -- Set the human readable title (e.g. "Database server")\n        description -- Set the human-readable description of the field\n                       (e.g. "The IP or domain name of the database server")\n        required_on_create -- If "true", the parameter is required on input stanza creation.\n        required_on_edit -- If "true", the parameter is required on input stanza modification.\n\n        Default values for required_on_create and required_on_edit match the\n        documented behavior at http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ModInputsScripts.\n        '
    if ((name is None) or (len(name.strip()) == 0)):
        raise ValueError('The name parameter cannot be empty.')
    if ((title is None) or (len(title.strip()) == 0)):
        raise ValueError('The title parameter cannot be empty.')
    if ((description is None) or (len(description.strip()) == 0)):
        raise ValueError('The description parameter cannot be empty.')
    self.name = name
    self.title = title
    self.description = description
    self.required_on_create = required_on_create
    self.required_on_edit = required_on_edit