code: public static base_response update(nitro_service client, streamselector resource) throws Exception {
  		streamselector updateresource = new streamselector();
  		updateresource.name = resource.name;
  		updateresource.rule = resource.rule;
  		return updateresource.update_resource(client);
  	}
docs: Use this API to update streamselector.