code: public static base_response update(nitro_service client, autoscaleaction resource) throws Exception {
  		autoscaleaction updateresource = new autoscaleaction();
  		updateresource.name = resource.name;
  		updateresource.profilename = resource.profilename;
  		updateresource.parameters = resource.parameters;
  		updateresource.vmdestroygraceperiod = resource.vmdestroygraceperiod;
  		updateresource.quiettime = resource.quiettime;
  		updateresource.vserver = resource.vserver;
  		return updateresource.update_resource(client);
  	}
docs: Use this API to update autoscaleaction.