Use this API to add tmtrafficaction resources.
487232
public static base_responses add(nitro_service client, tmtrafficaction resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			tmtrafficaction addresources[] = new tmtrafficaction[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new tmtrafficaction();
				addresources[i].name = resources[i].name;
				addresources[i].apptimeout = resources[i].apptimeout;
				addresources[i].sso = resources[i].sso;
				addresources[i].formssoaction = resources[i].formssoaction;
				addresources[i].persistentcookie = resources[i].persistentcookie;
				addresources[i].initiatelogout = resources[i].initiatelogout;
				addresources[i].kcdaccount = resources[i].kcdaccount;
				addresources[i].samlssoprofile = resources[i].samlssoprofile;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
843811
public static tmtrafficaction[] get(nitro_service service) throws Exception{
		tmtrafficaction obj = new tmtrafficaction();
		tmtrafficaction[] response = (tmtrafficaction[])obj.get_resources(service);
		return response;
	}
373893
public static base_response add(nitro_service client, dnsptrrec resource) throws Exception {
		dnsptrrec addresource = new dnsptrrec();
		addresource.reversedomain = resource.reversedomain;
		addresource.domain = resource.domain;
		addresource.ttl = resource.ttl;
		return addresource.add_resource(client);
	}
1308766
def add_formats_by_name(self, rfmt_list):
        

        for fmt in rfmt_list:
            if fmt == "json":
                self.add_report_format(JSONReportFormat)
            elif fmt in ("txt", "text"):
                self.add_report_format(TextReportFormat)
            elif fmt in ("htm", "html"):
                self.add_report_format(CheetahReportFormat)
480907
def add_stmt(stmt, arg_rules):
    """"""
    (arg, rules) = arg_rules
    stmt_map[stmt] = (arg, rules)
1182315
def add_resource(self, ref, **properties):
        """"""

        raise NotImplementedError("Still uses decompose_url")

        du = Bunch(decompose_url(ref))

        added = []
        if du.proto == 'file' and isdir(ref):
            for f in self.find_files(ref, ['csv']):

                if f.endswith(DEFAULT_METATAB_FILE):
                    continue

                if self._doc.find_first('Root.Datafile', value=f):
                    self.prt("Datafile exists for '{}', ignoring".format(f))
                else:
                    added.extend(self.add_resource(f, **properties))
        else:
            self.prt("Enumerating '{}'".format(ref))

            for c in enumerate_contents(ref, self._cache):
                added.append(self.add_single_resource(c.rebuild_url(), **properties))

        return added
279102
def add_template(self, tpl):
        
        tpl = self.index_template(tpl)
        self.templates[tpl.uuid] = tpl
977853
def add_resource(self, resource):
        ''''''
        resource.validate()
        self.update(__raw__={
            '$push': {
                'resources': {
                    '$each': [resource.to_mongo()],
                    '$position': 0
                }
            }
        })
        self.reload()
        post_save.send(self.__class__, document=self,
                       resource_added=resource.id)
942437
public void addNavButtons()
    {
        ResourceBundle resources = ((BaseApplication)this.getTask().getApplication()).getResources(ResourceConstants.PROGRAM_RESOURCE, true);
        new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, MenuConstants.GROUP, ClassProject.RESOURCE_DETAIL_SCREEN, resources.getString(ClassProject.RESOURCE_DETAIL_SCREEN));
        new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, MenuConstants.DISTRIBUTION, ClassProject.CLASS_DETAIL_SCREEN, resources.getString(ClassProject.CLASS_DETAIL_SCREEN));
        super.addNavButtons();
    }
148999
def add_tlink(self,my_tlink):
        
        if self.temporalRelations_layer is None:
            self.temporalRelations_layer = CtemporalRelations()
            self.root.append(self.temporalRelations_layer.get_node())
        self.temporalRelations_layer.add_tlink(my_tlink)
463574
public void add(VMTransitionBuilder b) {
        Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState());
        for (VMState src : b.getSourceStates()) {
            m.put(src, b);
        }
    }
893492
public static base_response add(nitro_service client, snmpview resource) throws Exception {
		snmpview addresource = new snmpview();
		addresource.name = resource.name;
		addresource.subtree = resource.subtree;
		addresource.type = resource.type;
		return addresource.add_resource(client);
	}
183894
def add(self, resource, replace=False):
        """"""
        uri = resource.uri
        if (uri in self and not replace):
            raise ResourceSetDupeError(
                "Attempt to add resource already in this set")
        self[uri] = resource
942014
public static base_response add(nitro_service client, tmsessionaction resource) throws Exception {
		tmsessionaction addresource = new tmsessionaction();
		addresource.name = resource.name;
		addresource.sesstimeout = resource.sesstimeout;
		addresource.defaultauthorizationaction = resource.defaultauthorizationaction;
		addresource.sso = resource.sso;
		addresource.ssocredential = resource.ssocredential;
		addresource.ssodomain = resource.ssodomain;
		addresource.httponlycookie = resource.httponlycookie;
		addresource.kcdaccount = resource.kcdaccount;
		addresource.persistentcookie = resource.persistentcookie;
		addresource.persistentcookievalidity = resource.persistentcookievalidity;
		addresource.homepage = resource.homepage;
		return addresource.add_resource(client);
	}
1091403
public static base_responses add(nitro_service client, service resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			service addresources[] = new service[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new service();
				addresources[i].name = resources[i].name;
				addresources[i].ip = resources[i].ip;
				addresources[i].servername = resources[i].servername;
				addresources[i].servicetype = resources[i].servicetype;
				addresources[i].port = resources[i].port;
				addresources[i].cleartextport = resources[i].cleartextport;
				addresources[i].cachetype = resources[i].cachetype;
				addresources[i].maxclient = resources[i].maxclient;
				addresources[i].healthmonitor = resources[i].healthmonitor;
				addresources[i].maxreq = resources[i].maxreq;
				addresources[i].cacheable = resources[i].cacheable;
				addresources[i].cip = resources[i].cip;
				addresources[i].cipheader = resources[i].cipheader;
				addresources[i].usip = resources[i].usip;
				addresources[i].pathmonitor = resources[i].pathmonitor;
				addresources[i].pathmonitorindv = resources[i].pathmonitorindv;
				addresources[i].useproxyport = resources[i].useproxyport;
				addresources[i].sc = resources[i].sc;
				addresources[i].sp = resources[i].sp;
				addresources[i].rtspsessionidremap = resources[i].rtspsessionidremap;
				addresources[i].clttimeout = resources[i].clttimeout;
				addresources[i].svrtimeout = resources[i].svrtimeout;
				addresources[i].customserverid = resources[i].customserverid;
				addresources[i].serverid = resources[i].serverid;
				addresources[i].cka = resources[i].cka;
				addresources[i].tcpb = resources[i].tcpb;
				addresources[i].cmp = resources[i].cmp;
				addresources[i].maxbandwidth = resources[i].maxbandwidth;
				addresources[i].accessdown = resources[i].accessdown;
				addresources[i].monthreshold = resources[i].monthreshold;
				addresources[i].state = resources[i].state;
				addresources[i].downstateflush = resources[i].downstateflush;
				addresources[i].tcpprofilename = resources[i].tcpprofilename;
				addresources[i].httpprofilename = resources[i].httpprofilename;
				addresources[i].hashid = resources[i].hashid;
				addresources[i].comment = resources[i].comment;
				addresources[i].appflowlog = resources[i].appflowlog;
				addresources[i].netprofile = resources[i].netprofile;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
809850
public static base_response add(nitro_service client, vpntrafficaction resource) throws Exception {
		vpntrafficaction addresource = new vpntrafficaction();
		addresource.name = resource.name;
		addresource.qual = resource.qual;
		addresource.apptimeout = resource.apptimeout;
		addresource.sso = resource.sso;
		addresource.formssoaction = resource.formssoaction;
		addresource.fta = resource.fta;
		addresource.wanscaler = resource.wanscaler;
		addresource.kcdaccount = resource.kcdaccount;
		addresource.samlssoprofile = resource.samlssoprofile;
		return addresource.add_resource(client);
	}
133079
public void add(MtasSolrStatus status) throws IOException {
    Objects.requireNonNull(status);
    if (enabled) {
      data.add(status);
      if (!index.containsKey(status.key())) {
        index.put(status.key(), status);
        garbageCollect();
      } else {
        garbageCollect();
        // retry
        MtasSolrStatus oldStatus = index.get(status.key());
        if (oldStatus == null) {
          index.put(status.key(), status);
        } else if (oldStatus.finished()) {
          remove(oldStatus);
          index.put(status.key(), status);
        } else {
          throw new IOException("key " + status.key() + " already exists");
        }
      }
    }
  }