All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.morpheusdata.request.ResizeRequest Maven / Gradle / Ivy

package com.morpheusdata.request;

import com.morpheusdata.model.ComputeServerInterface;
import com.morpheusdata.model.ServicePlan;
import com.morpheusdata.model.StorageController;
import com.morpheusdata.model.StorageVolume;

import java.util.List;
import java.util.Map;

public class ResizeRequest {

	/**
	 * The desired ServicePlan
	 */
	public ServicePlan plan;

	/**
	 * The desired maxMemory in bytes
	 */
	public Long maxMemory;

	/**
	 * The desired max cores
	 */
	public Long maxCores;

	/**
	 * The desired cores per socket
	 */
	public Long coresPerSocket;

	/**
	 * The desired max storage.
	 */
	public Long maxStorage;

	/**
	 * StorageVolumes that should be deleted
	 */
	public List volumesDelete;

	/**
	 * StorageVolumes that should be added
	 */
	public List volumesAdd;

	/**
	 * StorageVolumes that should be updated
	 */
	public List> volumesUpdate;

	/**
	 * StorageControllers that should be deleted
	 */
	public List controllersDelete;

	/**
	 * StorageControllers that should be added
	 */
	public List controllersAdd;

	/**
	 * StorageControllers that should be updated
	 */
	public List> controllersUpdate;

	/**
	 * ComputeServerInterfaces that should be deleted
	 */
	public List interfacesDelete;

	/**
	 * ComputeServerInterfaces that should be added
	 */
	public List interfacesAdd;

	/**
	 * ComputeServerInterfaces that should be updated
	 */
	public List> interfacesUpdate;

	public ResizeRequest(){
	}

	public ResizeRequest(ServicePlan plan,
						 Long maxMemory, Long maxCores, Long maxStorage, Long coresPerSocket,
						 List volumesDelete, List volumesAdd, List> volumesUpdate,
						 List controllersDelete, List controllersAdd, List> controllersUpdate,
						 List interfacesDelete, List interfacesAdd, List> interfacesUpdate) {
		this.plan = plan;
		this.maxMemory = maxMemory;
		this.maxCores = maxCores;
		this.coresPerSocket = coresPerSocket;
		this.maxStorage = maxStorage;
		this.volumesDelete = volumesDelete;
		this.volumesAdd = volumesAdd;
		this.volumesUpdate = volumesUpdate;
		this.controllersDelete = controllersDelete;
		this.controllersAdd = controllersAdd;
		this.controllersUpdate = controllersUpdate;
		this.interfacesDelete = interfacesDelete;
		this.interfacesAdd = interfacesAdd;
		this.interfacesUpdate = interfacesUpdate;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy