mirror of https://github.com/apache/cloudstack.git
api: Extend to infra. interface entities that are not associated with any account
Includes, datacenter, pod, sotragenetworkiprange,vlan,diskoffering,networkoffering, serviceoffering. Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
e51bc8b161
commit
a9ab42d962
|
|
@ -19,13 +19,14 @@ package com.cloud.dc;
|
|||
import java.util.Map;
|
||||
|
||||
import com.cloud.org.Grouping;
|
||||
import org.apache.cloudstack.acl.InfrastructureEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface DataCenter extends Grouping, Identity, InternalIdentity {
|
||||
public interface DataCenter extends InfrastructureEntity, Grouping, Identity, InternalIdentity {
|
||||
public enum NetworkType {
|
||||
Basic,
|
||||
Advanced,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
package com.cloud.dc;
|
||||
|
||||
import com.cloud.org.Grouping;
|
||||
import org.apache.cloudstack.acl.InfrastructureEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
|
|
@ -24,7 +25,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
|||
* Represents one pod in the cloud stack.
|
||||
*
|
||||
*/
|
||||
public interface Pod extends Grouping, Identity, InternalIdentity {
|
||||
public interface Pod extends InfrastructureEntity, Grouping, Identity, InternalIdentity {
|
||||
|
||||
String getCidrAddress();
|
||||
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@
|
|||
// under the License.
|
||||
package com.cloud.dc;
|
||||
|
||||
import org.apache.cloudstack.acl.InfrastructureEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface StorageNetworkIpRange extends InternalIdentity, Identity {
|
||||
public interface StorageNetworkIpRange extends InfrastructureEntity, InternalIdentity, Identity {
|
||||
|
||||
Integer getVlan();
|
||||
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@
|
|||
// under the License.
|
||||
package com.cloud.dc;
|
||||
|
||||
import org.apache.cloudstack.acl.InfrastructureEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Vlan extends InternalIdentity, Identity {
|
||||
public interface Vlan extends InfrastructureEntity, InternalIdentity, Identity {
|
||||
public enum VlanType {
|
||||
DirectAttached,
|
||||
VirtualNetwork
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
// under the License.
|
||||
package com.cloud.offering;
|
||||
|
||||
import org.apache.cloudstack.acl.InfrastructureEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ import java.util.Date;
|
|||
* the disk offering.
|
||||
*
|
||||
*/
|
||||
public interface DiskOffering extends Identity, InternalIdentity {
|
||||
public interface DiskOffering extends InfrastructureEntity, Identity, InternalIdentity {
|
||||
|
||||
String getUniqueName();
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ package com.cloud.offering;
|
|||
|
||||
import com.cloud.network.Network.GuestType;
|
||||
import com.cloud.network.Networks.TrafficType;
|
||||
import org.apache.cloudstack.acl.InfrastructureEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
|
|
@ -25,7 +26,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
|||
* Describes network offering
|
||||
*
|
||||
*/
|
||||
public interface NetworkOffering extends InternalIdentity, Identity {
|
||||
public interface NetworkOffering extends InfrastructureEntity, InternalIdentity, Identity {
|
||||
|
||||
public enum Availability {
|
||||
Required,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
// under the License.
|
||||
package com.cloud.offering;
|
||||
|
||||
import org.apache.cloudstack.acl.InfrastructureEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
|
|
@ -24,7 +25,7 @@ import java.util.Date;
|
|||
/**
|
||||
* offered.
|
||||
*/
|
||||
public interface ServiceOffering extends InternalIdentity, Identity {
|
||||
public interface ServiceOffering extends InfrastructureEntity, InternalIdentity, Identity {
|
||||
public static final String consoleProxyDefaultOffUniqueName = "Cloud.com-ConsoleProxy";
|
||||
public static final String ssvmDefaultOffUniqueName = "Cloud.com-SecondaryStorage";
|
||||
public static final String routerDefaultOffUniqueName = "Cloud.Com-SoftwareRouter";
|
||||
|
|
|
|||
Loading…
Reference in New Issue