Use this API to add inat resources.
169620
public static base_responses add(nitro_service client, inat resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			inat addresources[] = new inat[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new inat();
				addresources[i].name = resources[i].name;
				addresources[i].publicip = resources[i].publicip;
				addresources[i].privateip = resources[i].privateip;
				addresources[i].tcpproxy = resources[i].tcpproxy;
				addresources[i].ftp = resources[i].ftp;
				addresources[i].tftp = resources[i].tftp;
				addresources[i].usip = resources[i].usip;
				addresources[i].usnip = resources[i].usnip;
				addresources[i].proxyip = resources[i].proxyip;
				addresources[i].mode = resources[i].mode;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
971333
public static base_responses add(nitro_service client, location resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			location addresources[] = new location[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new location();
				addresources[i].ipfrom = resources[i].ipfrom;
				addresources[i].ipto = resources[i].ipto;
				addresources[i].preferredlocation = resources[i].preferredlocation;
				addresources[i].longitude = resources[i].longitude;
				addresources[i].latitude = resources[i].latitude;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
106448
public static base_responses add(nitro_service client, rnat6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			rnat6 addresources[] = new rnat6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new rnat6();
				addresources[i].name = resources[i].name;
				addresources[i].network = resources[i].network;
				addresources[i].acl6name = resources[i].acl6name;
				addresources[i].redirectport = resources[i].redirectport;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1127173
def add(self):
        '''
        '''
        # TODO validation per object type
        submit_attribs = {}
        for attrib in self.ATTRIBUTES:
            val = getattr(self, attrib, None)
            if val:
                submit_attribs[attrib] = val
        path = '/'.join([self.RESOURCE, 'add'])
        result = self.client.request(path, submit_attribs)
        return result
326454
def add(self, resource):
        
        if isinstance(resource, collections.Iterable):
            for r in resource:
                self.resources.append(r)
        else:
            self.resources.append(resource)
779160
def add_lambda_integration(self):
        """"""
        lambda_uri = self.generate_uris()['lambda_uri']
        self.client.put_integration(
            restApiId=self.api_id,
            resourceId=self.resource_id,
            httpMethod=self.trigger_settings['method'],
            integrationHttpMethod='POST',
            uri=lambda_uri,
            type='AWS')
        self.add_integration_response()
        self.log.info("Successfully added Lambda intergration to API")
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();
    }
173651
def add(attrs, inputs, proto_obj):
    """"""
    new_attr = {}

    if 'broadcast' in attrs and attrs['broadcast'] == 1:
        broadcast_axis = attrs['axis']
        op_value = translation_utils._fix_broadcast('broadcast_add', inputs,
                                                    broadcast_axis, proto_obj)
        return op_value, new_attr, inputs
    return 'broadcast_add', new_attr, inputs
680456
@Override
    public T addAsWebInfResource(final Asset resource, final ArchivePath target) throws IllegalArgumentException {
        Validate.notNull(resource, "Resource should be specified");
        Validate.notNull(target, "Target should be specified");

        final ArchivePath location = new BasicPath(getWebInfPath(), target);
        return add(resource, location);
    }
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;
	}
935127
public static base_response add(nitro_service client, hanode resource) throws Exception {
		hanode addresource = new hanode();
		addresource.id = resource.id;
		addresource.ipaddress = resource.ipaddress;
		addresource.inc = resource.inc;
		return addresource.add_resource(client);
	}
920802
public static base_responses add(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			onlinkipv6prefix addresources[] = new onlinkipv6prefix[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new onlinkipv6prefix();
				addresources[i].ipv6prefix = resources[i].ipv6prefix;
				addresources[i].onlinkprefix = resources[i].onlinkprefix;
				addresources[i].autonomusprefix = resources[i].autonomusprefix;
				addresources[i].depricateprefix = resources[i].depricateprefix;
				addresources[i].decrementprefixlifetimes = resources[i].decrementprefixlifetimes;
				addresources[i].prefixvalidelifetime = resources[i].prefixvalidelifetime;
				addresources[i].prefixpreferredlifetime = resources[i].prefixpreferredlifetime;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
590928
@Override
    public T addAsResource(String resourceName, ArchivePath target, ClassLoader classLoader)
        throws IllegalArgumentException {
        Validate.notNull(resourceName, "ResourceName should be specified");
        Validate.notNull(target, "Target should be specified");
        Validate.notNull(classLoader, "ClassLoader should be specified");

        return addAsResource(new ClassLoaderAsset(resourceName, classLoader), target);
    }
1358449
def setup_app(app, api):
    """"""
    api.add_resource(
        KnwKBAllResource,
        '/api/knowledge'
    )
    api.add_resource(
        KnwKBResource,
        '/api/knowledge/<string:slug>'
    )
    api.add_resource(
        KnwKBMappingsResource,
        '/api/knowledge/<string:slug>/mappings'
    )
    api.add_resource(
        KnwKBMappingsToResource,
        '/api/knowledge/<string:slug>/mappings/to'
    )
    api.add_resource(
        KnwKBMappingsFromResource,
        '/api/knowledge/<string:slug>/mappings/from'
    )

    # for other urls, return "Method Not Allowed"
    api.add_resource(
        NotImplementedKnowledegeResource,
        '/api/knowledge/<string:slug>/<path:foo>'
    )
968392
public static base_responses add(nitro_service client, nsip resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsip addresources[] = new nsip[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nsip();
				addresources[i].ipaddress = resources[i].ipaddress;
				addresources[i].netmask = resources[i].netmask;
				addresources[i].type = resources[i].type;
				addresources[i].arp = resources[i].arp;
				addresources[i].icmp = resources[i].icmp;
				addresources[i].vserver = resources[i].vserver;
				addresources[i].telnet = resources[i].telnet;
				addresources[i].ftp = resources[i].ftp;
				addresources[i].gui = resources[i].gui;
				addresources[i].ssh = resources[i].ssh;
				addresources[i].snmp = resources[i].snmp;
				addresources[i].mgmtaccess = resources[i].mgmtaccess;
				addresources[i].restrictaccess = resources[i].restrictaccess;
				addresources[i].dynamicrouting = resources[i].dynamicrouting;
				addresources[i].ospf = resources[i].ospf;
				addresources[i].bgp = resources[i].bgp;
				addresources[i].rip = resources[i].rip;
				addresources[i].hostroute = resources[i].hostroute;
				addresources[i].hostrtgw = resources[i].hostrtgw;
				addresources[i].metric = resources[i].metric;
				addresources[i].vserverrhilevel = resources[i].vserverrhilevel;
				addresources[i].ospflsatype = resources[i].ospflsatype;
				addresources[i].ospfarea = resources[i].ospfarea;
				addresources[i].state = resources[i].state;
				addresources[i].vrid = resources[i].vrid;
				addresources[i].icmpresponse = resources[i].icmpresponse;
				addresources[i].ownernode = resources[i].ownernode;
				addresources[i].arpresponse = resources[i].arpresponse;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1363566
async def AddToUnit(self, storages):
        '''
        
        '''
        # map input types to rpc msg
        _params = dict()
        msg = dict(type='Storage',
                   request='AddToUnit',
                   version=4,
                   params=_params)
        _params['storages'] = storages
        reply = await self.rpc(msg)
        return reply
462573
public static base_response add(nitro_service client, nat64 resource) throws Exception {
		nat64 addresource = new nat64();
		addresource.name = resource.name;
		addresource.acl6name = resource.acl6name;
		addresource.netprofile = resource.netprofile;
		return addresource.add_resource(client);
	}