Use this API to add policymap resources.
516748
public static base_responses add(nitro_service client, policymap resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			policymap addresources[] = new policymap[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new policymap();
				addresources[i].mappolicyname = resources[i].mappolicyname;
				addresources[i].sd = resources[i].sd;
				addresources[i].su = resources[i].su;
				addresources[i].td = resources[i].td;
				addresources[i].tu = resources[i].tu;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1282955
protected void addPackageResources(Package aPackage, Map<String, ClassResource> urlSet, ClassLoader[] classLoaders) {
        String packageName = aPackage.getName();
        String relativePath = getPackageRelativePath(packageName);
        List<URL> resources = getResources(relativePath, classLoaders);
        for (URL resource : resources) {
            String key = getJavaResourceKey(resource);
            urlSet.put(key, new ClassResource(packageName, resource));
        }
    }
158149
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(RolePermissionTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(RolePermissionTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new RolePermissionTableMap());
        }
    }
1073571
public static policymap[] get(nitro_service service) throws Exception{
		policymap obj = new policymap();
		policymap[] response = (policymap[])obj.get_resources(service);
		return response;
	}
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);
	}
1180357
public CMARole addPolicy(CMAPolicy policy) {
    if (policies == null) {
      policies = new ArrayList<CMAPolicy>();
    }

    policies.add(policy);
    return this;
  }
1154506
def add_policy_statements(self, statements):
        
        if isinstance(statements, Statement):
            statements = [statements]
        self._policy_statements.extend(statements)
1002814
private synchronized void addSourceMapSourceFiles(SourceMapInput inputSourceMap) {
    // synchronized annotation guards concurrent access to sourceMap during parsing.
    SourceMapConsumerV3 consumer = inputSourceMap.getSourceMap(errorManager);
    if (consumer == null) {
      return;
    }
    Collection<String> sourcesContent = consumer.getOriginalSourcesContent();
    if (sourcesContent == null) {
      return;
    }
    Iterator<String> content = sourcesContent.iterator();
    Iterator<String> sources = consumer.getOriginalSources().iterator();
    while (sources.hasNext() && content.hasNext()) {
      String code = content.next();
      SourceFile source = SourceMapResolver.getRelativePath(
          inputSourceMap.getOriginalPath(), sources.next());
      if (source != null) {
        sourceMap.addSourceFile(source.getOriginalPath(), code);
      }
    }
    if (sources.hasNext() || content.hasNext()) {
      throw new RuntimeException(
          "Source map's \"sources\" and \"sourcesContent\" lengths do not match.");
    }
  }
198000
public void addParameterSources(List<ParameterBinding> parameters) {
        assert parameters != null;
        for (ParameterBinding parameter : parameters) {
        	DataSource<?> inputValue = rpcSourceFromParameter(parameter);            
            this.inputSources.put(parameter.getName(), inputValue);
        }
    }
1297490
private void addConfigParams(Map<String, Object> map) throws ConfigurationException {
        for (String name : map.keySet()) {
            addConfigParam(name, map.get(name));
        }
    }
870413
public static policystringmap[] get(nitro_service service) throws Exception{
		policystringmap obj = new policystringmap();
		policystringmap[] response = (policystringmap[])obj.get_resources(service);
		return response;
	}
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);
	}
168492
def add(self, resource, replace=False):
        """"""
        uri = resource.uri
        if (uri in self and not replace):
            raise ResourceListDupeError(
                "Attempt to add resource already in resource_list")
        self[uri] = resource
147975
def add_resources(self, resources):
    
    new_resources = self._build_resource_dictionary(resources)

    for key in new_resources:
      self._resources[key] = new_resources[key]
    self._dirty_attributes.add(u'resources')
680045
private void addRestResourceClasses(Set<Class<?>> resources) {
        resources.add(pl.setblack.airomem.direct.banksample.rest.BankResource.class);
    }
346865
public void addResourceMetadata(String resourceName,
      ResourceMetadata resourceMetadata) {
    if (resourceMetadataMap.put(resourceName, resourceMetadata) != null) {
      throw new RuntimeException("Resource name " + resourceName +
          " already exists!");
    }
  }
1095840
public static base_responses add(nitro_service client, dospolicy resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dospolicy addresources[] = new dospolicy[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dospolicy();
				addresources[i].name = resources[i].name;
				addresources[i].qdepth = resources[i].qdepth;
				addresources[i].cltdetectrate = resources[i].cltdetectrate;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}