client/splunk.js
function(props) {
            props = props || {};
            props.owner = props.owner || "";

            this.query   = props.search;
            this.lineage = props.owner.split(".");
            this.owner   = this.lineage[this.lineage.length - 1];
        }
function(props) {
            props = props || {};
            props.owner = props.owner || "";

            this.query   = props.search;
            this.lineage = props.owner.split(".");
            this.owner   = this.lineage[this.lineage.length - 1];
        }
function ( props ) { props = props || { } ; props . owner = props . owner || "" ; this . query = props . search ; this . lineage = props . owner . split ( "." ) ; this . owner = this . lineage [ this . lineage . length - 1 ] ; }
Constructor for a data model constraint.
SDK users are not expected to invoke this constructor directly.

@constructor
@param {Object} props A dictionary of properties to set:
- `search` (_string_): The Splunk search query this constraint specifies.
- `owner` (_string_): The lineage of the data model object that owns this
constraint, items are delimited by a dot. This is converted into
an array of strings upon construction.

@method splunkjs.Service.DataModelConstraint
Constructor for a data model constraint . SDK users are not expected to invoke this constructor directly .