Use this API to add pqpolicy.
433268
public static base_response add(nitro_service client, pqpolicy resource) throws Exception {
		pqpolicy addresource = new pqpolicy();
		addresource.policyname = resource.policyname;
		addresource.rule = resource.rule;
		addresource.priority = resource.priority;
		addresource.weight = resource.weight;
		addresource.qdepth = resource.qdepth;
		addresource.polqdepth = resource.polqdepth;
		return addresource.add_resource(client);
	}
1154506
def add_policy_statements(self, statements):
        
        if isinstance(statements, Statement):
            statements = [statements]
        self._policy_statements.extend(statements)
359314
public static base_responses add(nitro_service client, responderpolicylabel resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			responderpolicylabel addresources[] = new responderpolicylabel[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new responderpolicylabel();
				addresources[i].labelname = resources[i].labelname;
				addresources[i].policylabeltype = resources[i].policylabeltype;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
115032
def enable(self, policy):
        
        if hasattr(policy, 'href'):
            if not isinstance(policy, InterfacePolicy):
                raise LoadPolicyFailed('Invalid policy type specified. The policy'
                    'type must be InterfacePolicy')
                
        self.update(l2_interface_policy_ref=element_resolver(policy))
1152739
public static base_response add(nitro_service client, vpnsessionpolicy resource) throws Exception {
		vpnsessionpolicy addresource = new vpnsessionpolicy();
		addresource.name = resource.name;
		addresource.rule = resource.rule;
		addresource.action = resource.action;
		return addresource.add_resource(client);
	}
21753
@Override
    public String addPolicy(String name, String document)
            throws PolicyIndexException {

        String docName = null;
        DbXmlManager.writeLock.lock();
        try {

            XmlDocument doc = makeDocument(name, document);
            docName = doc.getName();
            log.debug("Adding document: " + docName);
            m_dbXmlManager.container.putDocument(doc,
                                               m_dbXmlManager.updateContext);
            setLastUpdate(System.currentTimeMillis());
        } catch (XmlException xe) {
            if (xe.getErrorCode() == XmlException.UNIQUE_ERROR) {
                throw new PolicyIndexException("Document already exists: "
                                               + docName);
            } else {
                throw new PolicyIndexException("Error adding policy: "
                                               + xe.getMessage(), xe);
            }
        } finally {
            DbXmlManager.writeLock.unlock();
        }

        return docName;
    }
907045
def update_lbaas_l7policy(self, l7policy, body=None):
        """"""
        return self.put(self.lbaas_l7policy_path % l7policy,
                        body=body)
476767
public static base_response add(nitro_service client, filterpolicy resource) throws Exception {
		filterpolicy addresource = new filterpolicy();
		addresource.name = resource.name;
		addresource.rule = resource.rule;
		addresource.reqaction = resource.reqaction;
		addresource.resaction = resource.resaction;
		return addresource.add_resource(client);
	}
609953
public function makePolicy()
    {
        $this->options['name'] = $this->ask('Policy Name (Example: MyPolicy)');

        if ($this->confirm('Will this policy apply to a model')) {
            $this->options['--model'] = $this->ask('Model class name');
        }
    }
254716
public static pqpolicy get(nitro_service service, String policyname) throws Exception{
		pqpolicy obj = new pqpolicy();
		obj.set_policyname(policyname);
		pqpolicy response = (pqpolicy) obj.get_resource(service);
		return response;
	}
332244
def _add_q(self, q_object):
        """"""
        self._criteria = self._criteria._combine(q_object, q_object.connector)
1183176
def add_stream(self, policy):
        
        _srtp_assert(lib.srtp_add_stream(self._srtp[0], policy._policy))
148635
public static base_response add(nitro_service client, cachepolicy resource) throws Exception {
		cachepolicy addresource = new cachepolicy();
		addresource.policyname = resource.policyname;
		addresource.rule = resource.rule;
		addresource.action = resource.action;
		addresource.storeingroup = resource.storeingroup;
		addresource.invalgroups = resource.invalgroups;
		addresource.invalobjects = resource.invalobjects;
		addresource.undefaction = resource.undefaction;
		return addresource.add_resource(client);
	}
197619
public static base_response add(nitro_service client, spilloverpolicy resource) throws Exception {
		spilloverpolicy addresource = new spilloverpolicy();
		addresource.name = resource.name;
		addresource.rule = resource.rule;
		addresource.action = resource.action;
		addresource.comment = resource.comment;
		return addresource.add_resource(client);
	}
1346522
public static base_response add(nitro_service client, responderpolicy resource) throws Exception {
		responderpolicy addresource = new responderpolicy();
		addresource.name = resource.name;
		addresource.rule = resource.rule;
		addresource.action = resource.action;
		addresource.undefaction = resource.undefaction;
		addresource.comment = resource.comment;
		addresource.logaction = resource.logaction;
		addresource.appflowaction = resource.appflowaction;
		return addresource.add_resource(client);
	}
1150408
def add(self, req: Request):
        
        key = req.key
        if key not in self:
            self[key] = ReqState(req)
        return self[key]
1189004
public static base_response add(nitro_service client, dnspolicy resource) throws Exception {
		dnspolicy addresource = new dnspolicy();
		addresource.name = resource.name;
		addresource.rule = resource.rule;
		addresource.viewname = resource.viewname;
		addresource.preferredlocation = resource.preferredlocation;
		addresource.preferredloclist = resource.preferredloclist;
		addresource.drop = resource.drop;
		addresource.cachebypass = resource.cachebypass;
		addresource.actionname = resource.actionname;
		return addresource.add_resource(client);
	}