text: from ..broker import Broker
  
  class PolicyRuleBroker(Broker):
      controller = "policy_rules"
      
      
      def create(self, **kwargs):
      
          """Creates a new policy rule.
  
              **Inputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param action_after_exec: The action occurred after execution of a policy rule.
               :type action_after_exec: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param author: The name of an author defined in a policy rule.
               :type author: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param description: The description of a policy rule.
               :type description: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param name: The name of a policy rule.
               :type name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param remediation: The remediation of a policy rule.
               :type remediation: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param rule_logic: The logical rules defined in a policy rule.
               :type rule_logic: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param set_filter: The filter defined in a policy rule.
               :type set_filter: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param severity: The issue severity (1 = Error, 2 = Warning, 3 = Info). Useful for sorting.
               :type severity: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param short_name: The short name of a policy.
               :type short_name: String
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return id: The id of the newly created policy rule.
               :rtype id: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return model: The class name of the newly created policy rule.
               :rtype model: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return uri: A URI that may be used to retrieve the newly created policy rule.
               :rtype uri: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return policy_rule: The newly created policy rule.
               :rtype policy_rule: PolicyRule
  
              """
          
          return self.api_request(self._get_method_fullname("create"), kwargs)
          
      
      
      def update(self, **kwargs):
      
          """Updates an existing policy rule.
  
              **Inputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier of a policy rule.
               :type id: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param action_after_exec: The action occurred after execution of a policy rule. If omitted, this field will not be updated.
               :type action_after_exec: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param description: The description of a policy rule. If omitted, this field will not be updated.
               :type description: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param name: The name of a policy rule.
               :type name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param remediation: The remediation of a policy rule. If omitted, this field will not be updated.
               :type remediation: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param rule_logic: The logical rules defined in a policy rule. If omitted, this field will not be updated.
               :type rule_logic: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param set_filter: The filter defined in a policy rule. If omitted, this field will not be updated.
               :type set_filter: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param severity: The issue severity (1 = Error, 2 = Warning, 3 = Info). Useful for sorting. If omitted, this field will not be updated.
               :type severity: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param short_name: The short name of a policy.
               :type short_name: String
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return id: The id of the updated policy rule.
               :rtype id: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return model: The class name of the updated policy rule.
               :rtype model: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return uri: A URI that may be used to retrieve the updated policy rule.
               :rtype uri: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return policy_rule: The updated policy rule.
               :rtype policy_rule: PolicyRule
  
              """
          
          return self.api_request(self._get_method_fullname("update"), kwargs)
          
      
      
      def search(self, **kwargs):
      
          """Lists the available policy rules matching the input criteria. This method provides a more flexible search interface than the index method, but searching using this method is more demanding on the system and will not perform to the same level as the index method. The input fields listed below will be used as in the index method, to filter the result, along with the optional query string and XML filter described below.
  
              **Inputs**
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param action_after_exec: The action occurred after execution of a policy rule.
               :type action_after_exec: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param action_after_exec: The action occurred after execution of a policy rule.
               :type action_after_exec: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param author: The name of an author defined in a policy rule.
               :type author: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param author: The name of an author defined in a policy rule.
               :type author: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param created_at: The date and time the record was initially created in NetMRI.
               :type created_at: DateTime
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param created_at: The date and time the record was initially created in NetMRI.
               :type created_at: Array of DateTime
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param description: The description of a policy rule.
               :type description: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param description: The description of a policy rule.
               :type description: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier of a policy rule.
               :type id: Integer
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier of a policy rule.
               :type id: Array of Integer
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param name: The name of a policy rule.
               :type name: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param name: The name of a policy rule.
               :type name: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param read_only: The read only mode of a policy.
               :type read_only: Integer
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param read_only: The read only mode of a policy.
               :type read_only: Array of Integer
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param remediation: The remediation of a policy rule.
               :type remediation: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param remediation: The remediation of a policy rule.
               :type remediation: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param rule_logic: The logical rules defined in a policy rule.
               :type rule_logic: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param rule_logic: The logical rules defined in a policy rule.
               :type rule_logic: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param set_filter: The filter defined in a policy rule.
               :type set_filter: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param set_filter: The filter defined in a policy rule.
               :type set_filter: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param severity: The issue severity (1 = Error, 2 = Warning, 3 = Info). Useful for sorting.
               :type severity: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param severity: The issue severity (1 = Error, 2 = Warning, 3 = Info). Useful for sorting.
               :type severity: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param short_name: The short name of a policy.
               :type short_name: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param short_name: The short name of a policy.
               :type short_name: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param updated_at: The date and time the record was last modified in NetMRI.
               :type updated_at: DateTime
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param updated_at: The date and time the record was last modified in NetMRI.
               :type updated_at: Array of DateTime
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` 0
  
               :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information.
               :type start: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` 1000
  
               :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000.
               :type limit: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` id
  
               :param sort: The data field(s) to use for sorting the output. Default is id. Valid values are id, name, description, author, set_filter, rule_logic, severity, action_after_exec, created_at, updated_at, remediation, short_name, read_only.
               :type sort: Array of String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` asc
  
               :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'.
               :type dir: Array of String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param select: The list of attributes to return for each PolicyRule. Valid values are id, name, description, author, set_filter, rule_logic, severity, action_after_exec, created_at, updated_at, remediation, short_name, read_only. If empty or omitted, all attributes will be returned.
               :type select: Array
  
              |  ``api version min:`` 2.8
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records.
               :type goto_field: String
  
              |  ``api version min:`` 2.8
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records.
               :type goto_value: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param query: This value will be matched against policy rules, looking to see if one or more of the listed attributes contain the passed value. You may also surround the value with '/' and '/' to perform a regular expression search rather than a containment operation. Any record that matches will be returned. The attributes searched are: action_after_exec, author, created_at, description, id, name, read_only, remediation, rule_logic, set_filter, severity, short_name, updated_at.
               :type query: String
  
              |  ``api version min:`` 2.3
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param xml_filter: A SetFilter XML structure to further refine the search. The SetFilter will be applied AFTER any search query or field values, but before any limit options. The limit and pagination will be enforced after the filter. Remind that this kind of filter may be costly and inefficient if not associated with a database filtering.
               :type xml_filter: String
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return policy_rules: An array of the PolicyRule objects that match the specified input criteria.
               :rtype policy_rules: Array of PolicyRule
  
              """
          
          return self.api_list_request(self._get_method_fullname("search"), kwargs)
          
      
      
      def index(self, **kwargs):
      
          """Lists the available policy rules. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this method is most efficient.
  
              **Inputs**
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier of a policy rule.
               :type id: Integer
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier of a policy rule.
               :type id: Array of Integer
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param name: The name of a policy rule.
               :type name: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param name: The name of a policy rule.
               :type name: Array of String
  
              |  ``api version min:`` 2.4
              |  ``api version max:`` 2.4
              |  ``required:`` False
              |  ``default:`` None
  
               :param short_name: The short name of a policy.
               :type short_name: String
  
              |  ``api version min:`` 2.5
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param short_name: The short name of a policy.
               :type short_name: Array of String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` 0
  
               :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information.
               :type start: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` 1000
  
               :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000.
               :type limit: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` id
  
               :param sort: The data field(s) to use for sorting the output. Default is id. Valid values are id, name, description, author, set_filter, rule_logic, severity, action_after_exec, created_at, updated_at, remediation, short_name, read_only.
               :type sort: Array of String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` asc
  
               :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'.
               :type dir: Array of String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param select: The list of attributes to return for each PolicyRule. Valid values are id, name, description, author, set_filter, rule_logic, severity, action_after_exec, created_at, updated_at, remediation, short_name, read_only. If empty or omitted, all attributes will be returned.
               :type select: Array
  
              |  ``api version min:`` 2.8
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records.
               :type goto_field: String
  
              |  ``api version min:`` 2.8
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records.
               :type goto_value: String
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return policy_rules: An array of the PolicyRule objects that match the specified input criteria.
               :rtype policy_rules: Array of PolicyRule
  
              """
          
          return self.api_list_request(self._get_method_fullname("index"), kwargs)
          
      
      
      def show(self, **kwargs):
      
          """Shows the details for the specified policy rule.
  
              **Inputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier of a policy rule.
               :type id: Integer
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return policy_rule: The policy rule identified by the specified id.
               :rtype policy_rule: PolicyRule
  
              """
          
          return self.api_request(self._get_method_fullname("show"), kwargs)
          
      
      
      def find(self, **kwargs):
      
          """Lists the available policy rules matching the input specification. This provides the most flexible search specification of all the query mechanisms, enabling searching using comparison operations other than equality. However, it is more complex to use and will not perform as efficiently as the index or search methods. In the input descriptions below, 'field names' refers to the following fields: action_after_exec, author, created_at, description, id, name, read_only, remediation, rule_logic, set_filter, severity, short_name, updated_at.
  
              **Inputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_action_after_exec: The operator to apply to the field action_after_exec. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. action_after_exec: The action occurred after execution of a policy rule. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_action_after_exec: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_action_after_exec: If op_action_after_exec is specified, the field named in this input will be compared to the value in action_after_exec using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_action_after_exec must be specified if op_action_after_exec is specified.
               :type val_f_action_after_exec: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_action_after_exec: If op_action_after_exec is specified, this value will be compared to the value in action_after_exec using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_action_after_exec must be specified if op_action_after_exec is specified.
               :type val_c_action_after_exec: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_author: The operator to apply to the field author. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. author: The name of an author defined in a policy rule. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_author: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_author: If op_author is specified, the field named in this input will be compared to the value in author using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_author must be specified if op_author is specified.
               :type val_f_author: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_author: If op_author is specified, this value will be compared to the value in author using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_author must be specified if op_author is specified.
               :type val_c_author: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_created_at: The operator to apply to the field created_at. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. created_at: The date and time the record was initially created in NetMRI. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_created_at: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_created_at: If op_created_at is specified, the field named in this input will be compared to the value in created_at using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_created_at must be specified if op_created_at is specified.
               :type val_f_created_at: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_created_at: If op_created_at is specified, this value will be compared to the value in created_at using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_created_at must be specified if op_created_at is specified.
               :type val_c_created_at: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_description: The operator to apply to the field description. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. description: The description of a policy rule. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_description: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_description: If op_description is specified, the field named in this input will be compared to the value in description using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_description must be specified if op_description is specified.
               :type val_f_description: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_description: If op_description is specified, this value will be compared to the value in description using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_description must be specified if op_description is specified.
               :type val_c_description: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_id: The operator to apply to the field id. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. id: The internal NetMRI identifier of a policy rule. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_id: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_id: If op_id is specified, the field named in this input will be compared to the value in id using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_id must be specified if op_id is specified.
               :type val_f_id: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_id: If op_id is specified, this value will be compared to the value in id using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_id must be specified if op_id is specified.
               :type val_c_id: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_name: The operator to apply to the field name. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. name: The name of a policy rule. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_name: If op_name is specified, the field named in this input will be compared to the value in name using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_name must be specified if op_name is specified.
               :type val_f_name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_name: If op_name is specified, this value will be compared to the value in name using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_name must be specified if op_name is specified.
               :type val_c_name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_read_only: The operator to apply to the field read_only. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. read_only: The read only mode of a policy. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_read_only: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_read_only: If op_read_only is specified, the field named in this input will be compared to the value in read_only using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_read_only must be specified if op_read_only is specified.
               :type val_f_read_only: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_read_only: If op_read_only is specified, this value will be compared to the value in read_only using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_read_only must be specified if op_read_only is specified.
               :type val_c_read_only: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_remediation: The operator to apply to the field remediation. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. remediation: The remediation of a policy rule. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_remediation: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_remediation: If op_remediation is specified, the field named in this input will be compared to the value in remediation using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_remediation must be specified if op_remediation is specified.
               :type val_f_remediation: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_remediation: If op_remediation is specified, this value will be compared to the value in remediation using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_remediation must be specified if op_remediation is specified.
               :type val_c_remediation: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_rule_logic: The operator to apply to the field rule_logic. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. rule_logic: The logical rules defined in a policy rule. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_rule_logic: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_rule_logic: If op_rule_logic is specified, the field named in this input will be compared to the value in rule_logic using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_rule_logic must be specified if op_rule_logic is specified.
               :type val_f_rule_logic: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_rule_logic: If op_rule_logic is specified, this value will be compared to the value in rule_logic using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_rule_logic must be specified if op_rule_logic is specified.
               :type val_c_rule_logic: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_set_filter: The operator to apply to the field set_filter. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. set_filter: The filter defined in a policy rule. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_set_filter: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_set_filter: If op_set_filter is specified, the field named in this input will be compared to the value in set_filter using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_set_filter must be specified if op_set_filter is specified.
               :type val_f_set_filter: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_set_filter: If op_set_filter is specified, this value will be compared to the value in set_filter using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_set_filter must be specified if op_set_filter is specified.
               :type val_c_set_filter: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_severity: The operator to apply to the field severity. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. severity: The issue severity (1 = Error, 2 = Warning, 3 = Info). Useful for sorting. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_severity: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_severity: If op_severity is specified, the field named in this input will be compared to the value in severity using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_severity must be specified if op_severity is specified.
               :type val_f_severity: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_severity: If op_severity is specified, this value will be compared to the value in severity using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_severity must be specified if op_severity is specified.
               :type val_c_severity: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_short_name: The operator to apply to the field short_name. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. short_name: The short name of a policy. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_short_name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_short_name: If op_short_name is specified, the field named in this input will be compared to the value in short_name using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_short_name must be specified if op_short_name is specified.
               :type val_f_short_name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_short_name: If op_short_name is specified, this value will be compared to the value in short_name using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_short_name must be specified if op_short_name is specified.
               :type val_c_short_name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param op_updated_at: The operator to apply to the field updated_at. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. updated_at: The date and time the record was last modified in NetMRI. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
               :type op_updated_at: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_f_updated_at: If op_updated_at is specified, the field named in this input will be compared to the value in updated_at using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_updated_at must be specified if op_updated_at is specified.
               :type val_f_updated_at: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param val_c_updated_at: If op_updated_at is specified, this value will be compared to the value in updated_at using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_updated_at must be specified if op_updated_at is specified.
               :type val_c_updated_at: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` 0
  
               :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information.
               :type start: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` 1000
  
               :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000.
               :type limit: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` id
  
               :param sort: The data field(s) to use for sorting the output. Default is id. Valid values are id, name, description, author, set_filter, rule_logic, severity, action_after_exec, created_at, updated_at, remediation, short_name, read_only.
               :type sort: Array of String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` asc
  
               :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'.
               :type dir: Array of String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param select: The list of attributes to return for each PolicyRule. Valid values are id, name, description, author, set_filter, rule_logic, severity, action_after_exec, created_at, updated_at, remediation, short_name, read_only. If empty or omitted, all attributes will be returned.
               :type select: Array
  
              |  ``api version min:`` 2.8
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records.
               :type goto_field: String
  
              |  ``api version min:`` 2.8
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records.
               :type goto_value: String
  
              |  ``api version min:`` 2.3
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param xml_filter: A SetFilter XML structure to further refine the search. The SetFilter will be applied AFTER any search query or field values, but before any limit options. The limit and pagination will be enforced after the filter. Remind that this kind of filter may be costly and inefficient if not associated with a database filtering.
               :type xml_filter: String
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return policy_rules: An array of the PolicyRule objects that match the specified input criteria.
               :rtype policy_rules: Array of PolicyRule
  
              """
          
          return self.api_list_request(self._get_method_fullname("find"), kwargs)
          
      
      
      def destroy(self, **kwargs):
      
          """Deletes the specified policy rule from NetMRI.
  
              **Inputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier of a policy rule.
               :type id: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` False
  
               :param destroy_rules_ind: If true, then any policy rules used by this policy and by no other policy will be deleted as well.
               :type destroy_rules_ind: Boolean
  
              **Outputs**
  
              """
          
          return self.api_request(self._get_method_fullname("destroy"), kwargs)
          
      
      
      def import_file(self, **kwargs):
      
          """Imports policy rules from xml file
  
              **Inputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param file: XML file with policy rules
               :type file: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param name: Policy rule name
               :type name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param short_name: Policy rule short name
               :type short_name: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier for the policy rule to import
               :type id: Integer
  
              **Outputs**
  
              """
          
          return self.api_request(self._get_method_fullname("import_file"), kwargs)
          
      
      
      def validate(self, **kwargs):
      
          """Validates the rule XML syntax and against the XML Schema.
  
              **Inputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param rule_logic: The rule logic XML to validate.
               :type rule_logic: String
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return errors: An array of arrays containing any validation errors. The outer array will have one entry for each line that has one or more errors. The first element in each inner array is the line number of the error, and the remaining entries are the error messages for that line number. Note that line 0 will be used for errors pertaining to the whole file.
               :rtype errors: Array of Array
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return rule_logic: A pretty-printed version of the rule logic XML. Line numbers in the errors array refer to this output.
               :rtype rule_logic: String
  
              """
          
          return self.api_request(self._get_method_fullname("validate"), kwargs)
          
      
      
      def test(self, **kwargs):
      
          """Tests the specified policy against a specified device, configuration revision, and/or attributes. This will be a test only; no associated issue will be generated, no triggered jobs will be executed, and the results will not be stored. The results will only be returned to the caller, and will not appear in the user interface.
  
              **Inputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` True
              |  ``default:`` None
  
               :param id: The internal NetMRI identifier for the policy rule to test.
               :type id: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param DeviceID: The internal NetMRI identifier for the device against which to test the policy rule. Any specific device attributes in this device record will be overridden if they are passed as input parameters. For example, if you specify a DeviceID for a Cisco Catalyst that is running IOS 12.2, but then also include the parameter DeviceVersion with value 12.3, the policy will be tested using the 12.3 value, along with the all other values from the device. This applies to attributes and configuration file text or revision numbers.
               :type DeviceID: Integer
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param ConfigRevisionID: The internal NetMRI identifier for the configuration file revision (ConfigRevision) to use when testing the policy. If passed, this will override any current running configuration of the device for purposes of this test.
               :type ConfigRevisionID: Integer
  
              |  ``api version min:`` 2.10
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param attribute_fields: Each device attribute field variable to be matched should be included as a separate input, 
                    starting the input name with $ (no actual input named attribute_fields is needed). For example, 
                    you can set the variable "foo" to "bar" by passing "$foo" as the input name, along with the 
                    value "bar".
               :type attribute_fields: String
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :param config_file: Configuration file content to use in the policy test. If passed, this overrides both the ConfigRevisionID and the running config of any passed DeviceID.
               :type config_file: String
  
              |  ``api version min:`` 2.10
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` False
  
               :param debug_ind: If true, then the rule will be tested in debug mode. This will show the steps executed and the result of each step. It is primarily useful when testing raw XML rules.
               :type debug_ind: Boolean
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return device_policy_rule: A summary of the policy test results for this device and policy rule.
               :rtype device_policy_rule: DevicePolicyRule
  
              |  ``api version min:`` 2.10
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return policy_rule: The tested policy rule object.
               :rtype policy_rule: PolicyRule
  
              |  ``api version min:`` 2.10
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return device: The device object (as tested).
               :rtype device: InfraDevice
  
              |  ``api version min:`` 2.10
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return set_filter_debug: If debug_ind was true, this will contain a log of the filter execution.
               :rtype set_filter_debug: String
  
              |  ``api version min:`` 2.10
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return rule_logic_debug: If debug_ind was true, this will contain a log of the rule logic execution.
               :rtype rule_logic_debug: String
  
              """
          
          return self.api_request(self._get_method_fullname("test"), kwargs)
          
      
      
      def download_schema(self, **kwargs):
      
          """Retrieves a copy of the XML Schema.
  
              **Inputs**
  
              **Outputs**
  
              |  ``api version min:`` None
              |  ``api version max:`` None
              |  ``required:`` False
              |  ``default:`` None
  
               :return xml_schema: A copy of the XML Schema.
               :rtype xml_schema: String
  
              """
          
          return self.api_mixed_request(self._get_method_fullname("download_schema"), kwargs)
          
      