code: public static base_response add(nitro_service client, channel resource) throws Exception {
  		channel addresource = new channel();
  		addresource.id = resource.id;
  		addresource.ifnum = resource.ifnum;
  		addresource.state = resource.state;
  		addresource.mode = resource.mode;
  		addresource.conndistr = resource.conndistr;
  		addresource.macdistr = resource.macdistr;
  		addresource.lamac = resource.lamac;
  		addresource.speed = resource.speed;
  		addresource.flowctl = resource.flowctl;
  		addresource.hamonitor = resource.hamonitor;
  		addresource.tagall = resource.tagall;
  		addresource.trunk = resource.trunk;
  		addresource.ifalias = resource.ifalias;
  		addresource.throughput = resource.throughput;
  		addresource.bandwidthhigh = resource.bandwidthhigh;
  		addresource.bandwidthnormal = resource.bandwidthnormal;
  		return addresource.add_resource(client);
  	}
docs: Use this API to add channel.