parameters: (self, pgv)
return_statement: return {
              'ips': pgv,
              'rules': rule_records._get_rules_payload()
          }
docstring: This will prepare the page view and returns payload
              Payload sample
              {
                  ips: {
                      '192.168.1.1': [1,4],
                      '192.168.1.6': [2,4]
                  },
                  rules: {
                      1: {rule_data},
                      2: {rule_data},
                      4: {rule_data}
                  }
              }
docstring_summary: This will prepare the page view and returns payload
              Payload sample
              {
                  ips: {
                      '192.168.1.1': [1,4],
                      '192.168.1.6': [2,4]
                  },
                  rules: {
                      1: {rule_data},
                      2: {rule_data},
                      4: {rule_data}
                  }
              }
docstring_tokens: This will prepare the page view and returns payload Payload sample { ips : { 192 . 168 . 1 . 1 : [ 1 4 ] 192 . 168 . 1 . 6 : [ 2 4 ] } rules : { 1 : { rule_data } 2 : { rule_data } 4 : { rule_data } } }
function: def _prepare_iap_payload(self, pgv):
          """ This will prepare the page view and returns payload
              Payload sample
              {
                  ips: {
                      '192.168.1.1': [1,4],
                      '192.168.1.6': [2,4]
                  },
                  rules: {
                      1: {rule_data},
                      2: {rule_data},
                      4: {rule_data}
                  }
              }
          """
          new_list = list(set(itertools.chain.from_iterable(pgv.values())))
          rule_records = self.browse(new_list)
          return {
              'ips': pgv,
              'rules': rule_records._get_rules_payload()
          }
function_tokens: def _prepare_iap_payload ( self , pgv ) : new_list = list ( set ( itertools . chain . from_iterable ( pgv . values ( ) ) ) ) rule_records = self . browse ( new_list ) return { 'ips' : pgv , 'rules' : rule_records . _get_rules_payload ( ) }