code: public static base_response update(nitro_service client, dnsaction resource) throws Exception {
  		dnsaction updateresource = new dnsaction();
  		updateresource.actionname = resource.actionname;
  		updateresource.ipaddress = resource.ipaddress;
  		updateresource.ttl = resource.ttl;
  		updateresource.viewname = resource.viewname;
  		updateresource.preferredloclist = resource.preferredloclist;
  		return updateresource.update_resource(client);
  	}
docs: Use this API to update dnsaction.