mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
api: Entities will extend InternalIdentity and Identity
Entities correlated to the Identity and carry a uuid and those correlated to InternalIdentity carry an id. Those entities that carry both will correlated to Identity and InternalIdentity. This refactors entities wherever possible to ensure the VO only implements the first class entity. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
b80dccee3f
commit
840da55520
@ -16,11 +16,12 @@
|
||||
// under the License.
|
||||
package com.cloud.alert;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public interface Alert {
|
||||
long getId();
|
||||
String getUuid();
|
||||
public interface Alert extends Identity, InternalIdentity {
|
||||
short getType();
|
||||
String getSubject();
|
||||
Long getPodId();
|
||||
|
||||
@ -51,8 +51,6 @@ public interface AsyncJob extends Identity, InternalIdentity {
|
||||
AutoScaleVmGroup
|
||||
}
|
||||
|
||||
long getId();
|
||||
|
||||
long getUserId();
|
||||
|
||||
long getAccountId();
|
||||
|
||||
@ -16,7 +16,10 @@
|
||||
// under the License.
|
||||
package com.cloud.capacity;
|
||||
|
||||
public interface Capacity {
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Capacity extends InternalIdentity, Identity {
|
||||
public static final short CAPACITY_TYPE_MEMORY = 0;
|
||||
public static final short CAPACITY_TYPE_CPU = 1;
|
||||
public static final short CAPACITY_TYPE_STORAGE = 2;
|
||||
@ -28,8 +31,6 @@ public interface Capacity {
|
||||
public static final short CAPACITY_TYPE_DIRECT_ATTACHED_PUBLIC_IP = 8;
|
||||
public static final short CAPACITY_TYPE_LOCAL_STORAGE = 9;
|
||||
|
||||
public long getId();
|
||||
|
||||
public Long getHostOrPoolId();
|
||||
|
||||
public Long getDataCenterId();
|
||||
@ -47,6 +48,4 @@ public interface Capacity {
|
||||
public long getReservedCapacity();
|
||||
|
||||
public Float getUsedPercentage();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -16,7 +16,9 @@
|
||||
// under the License.
|
||||
package com.cloud.cluster;
|
||||
|
||||
public interface ManagementServerHost {
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface ManagementServerHost extends InternalIdentity {
|
||||
|
||||
public static enum State {
|
||||
Up, Starting, Down
|
||||
|
||||
@ -20,8 +20,6 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface ResourceCount extends Resource, InternalIdentity {
|
||||
|
||||
public long getId();
|
||||
|
||||
public long getCount();
|
||||
|
||||
public void setCount(long count);
|
||||
|
||||
@ -20,8 +20,6 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface ResourceLimit extends Resource, InternalIdentity {
|
||||
|
||||
public long getId();
|
||||
|
||||
public Long getMax();
|
||||
|
||||
public void setMax(Long max);
|
||||
|
||||
@ -19,20 +19,18 @@ package com.cloud.dc;
|
||||
import java.util.Map;
|
||||
|
||||
import com.cloud.org.Grouping;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface DataCenter extends Grouping {
|
||||
public interface DataCenter extends Grouping, Identity, InternalIdentity {
|
||||
public enum NetworkType {
|
||||
Basic,
|
||||
Advanced,
|
||||
}
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
String getDns1();
|
||||
|
||||
String getDns2();
|
||||
|
||||
@ -17,19 +17,14 @@
|
||||
package com.cloud.dc;
|
||||
|
||||
import com.cloud.org.Grouping;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
* Represents one pod in the cloud stack.
|
||||
*
|
||||
*/
|
||||
public interface Pod extends Grouping, InternalIdentity {
|
||||
/**
|
||||
* @return unique id mapped to the pod.
|
||||
*/
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
public interface Pod extends Grouping, Identity, InternalIdentity {
|
||||
|
||||
String getCidrAddress();
|
||||
|
||||
@ -39,8 +34,6 @@ public interface Pod extends Grouping, InternalIdentity {
|
||||
|
||||
long getDataCenterId();
|
||||
|
||||
// String getUniqueName();
|
||||
|
||||
String getDescription();
|
||||
|
||||
String getName();
|
||||
|
||||
@ -16,8 +16,10 @@
|
||||
// under the License.
|
||||
package com.cloud.dc;
|
||||
|
||||
public interface StorageNetworkIpRange {
|
||||
String getUuid();
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface StorageNetworkIpRange extends InternalIdentity, Identity {
|
||||
|
||||
Integer getVlan();
|
||||
|
||||
|
||||
@ -16,7 +16,10 @@
|
||||
// under the License.
|
||||
package com.cloud.dc;
|
||||
|
||||
public interface Vlan {
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Vlan extends InternalIdentity, Identity {
|
||||
public enum VlanType {
|
||||
DirectAttached,
|
||||
VirtualNetwork
|
||||
@ -24,10 +27,6 @@ public interface Vlan {
|
||||
|
||||
public final static String UNTAGGED = "untagged";
|
||||
|
||||
public long getId();
|
||||
|
||||
public String getUuid();
|
||||
|
||||
public String getVlanTag();
|
||||
|
||||
public String getVlanGateway();
|
||||
|
||||
@ -19,23 +19,20 @@ package com.cloud.domain;
|
||||
import java.util.Date;
|
||||
|
||||
import com.cloud.user.OwnedBy;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
* Domain defines the Domain object.
|
||||
*/
|
||||
|
||||
public interface Domain extends OwnedBy, InternalIdentity {
|
||||
public interface Domain extends OwnedBy, Identity, InternalIdentity {
|
||||
public static final long ROOT_DOMAIN = 1L;
|
||||
|
||||
enum State {
|
||||
Active, Inactive
|
||||
};
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
Long getParent();
|
||||
|
||||
void setParent(Long parent);
|
||||
|
||||
@ -19,9 +19,10 @@ package com.cloud.event;
|
||||
import java.util.Date;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Event extends ControlledEntity, InternalIdentity {
|
||||
public interface Event extends ControlledEntity, Identity, InternalIdentity {
|
||||
public enum State {
|
||||
Created,
|
||||
Scheduled,
|
||||
@ -29,16 +30,12 @@ public interface Event extends ControlledEntity, InternalIdentity {
|
||||
Completed;
|
||||
}
|
||||
|
||||
|
||||
long getId();
|
||||
String getType();
|
||||
State getState();
|
||||
|
||||
String getDescription();
|
||||
Date getCreateDate();
|
||||
long getUserId();
|
||||
long getAccountId();
|
||||
long getDomainId();
|
||||
int getTotalSize();
|
||||
String getLevel();
|
||||
long getStartId();
|
||||
|
||||
@ -21,12 +21,14 @@ import java.util.Date;
|
||||
import com.cloud.hypervisor.Hypervisor.HypervisorType;
|
||||
import com.cloud.resource.ResourceState;
|
||||
import com.cloud.utils.fsm.StateObject;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
|
||||
/**
|
||||
* Host represents one particular host server.
|
||||
*/
|
||||
public interface Host extends StateObject<Status> {
|
||||
public interface Host extends StateObject<Status>, Identity, InternalIdentity {
|
||||
public enum Type {
|
||||
Storage(false),
|
||||
Routing(false),
|
||||
@ -61,13 +63,6 @@ public interface Host extends StateObject<Status> {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return id of the host.
|
||||
*/
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
/**
|
||||
* @return name of the machine.
|
||||
*/
|
||||
|
||||
@ -17,18 +17,14 @@
|
||||
package com.cloud.hypervisor;
|
||||
|
||||
import com.cloud.hypervisor.Hypervisor.HypervisorType;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
|
||||
/**
|
||||
* HypervisorCapability represents one particular hypervisor version's capabilities.
|
||||
*/
|
||||
public interface HypervisorCapabilities {
|
||||
/**
|
||||
* @return id of the host.
|
||||
*/
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
public interface HypervisorCapabilities extends Identity, InternalIdentity{
|
||||
|
||||
/**
|
||||
* @return type of hypervisor
|
||||
|
||||
@ -20,6 +20,7 @@ import java.util.Date;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import com.cloud.utils.net.Ip;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
@ -33,7 +34,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
* - DomainId = domain of the account owner.
|
||||
* - Allocated = time it was allocated.
|
||||
*/
|
||||
public interface IpAddress extends ControlledEntity, InternalIdentity {
|
||||
public interface IpAddress extends ControlledEntity, Identity, InternalIdentity {
|
||||
enum State {
|
||||
Allocating, // The IP Address is being propagated to other network elements and is not ready for use yet.
|
||||
Allocated, // The IP address is in used.
|
||||
@ -68,13 +69,6 @@ public interface IpAddress extends ControlledEntity, InternalIdentity {
|
||||
|
||||
public Long getPhysicalNetworkId();
|
||||
|
||||
/**
|
||||
* @return database id.
|
||||
*/
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
void setState(IpAddress.State state);
|
||||
|
||||
Long getAllocatedToAccountId();
|
||||
@ -92,5 +86,4 @@ public interface IpAddress extends ControlledEntity, InternalIdentity {
|
||||
* @param vpcId
|
||||
*/
|
||||
void setVpcId(Long vpcId);
|
||||
|
||||
}
|
||||
|
||||
@ -22,6 +22,7 @@ import com.cloud.network.Networks.Mode;
|
||||
import com.cloud.network.Networks.TrafficType;
|
||||
import com.cloud.utils.fsm.FiniteState;
|
||||
import com.cloud.utils.fsm.StateMachine;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.net.URI;
|
||||
@ -32,7 +33,7 @@ import java.util.Set;
|
||||
/**
|
||||
* owned by an account.
|
||||
*/
|
||||
public interface Network extends ControlledEntity, InternalIdentity {
|
||||
public interface Network extends ControlledEntity, InternalIdentity, Identity {
|
||||
|
||||
public enum GuestType {
|
||||
Shared,
|
||||
@ -252,13 +253,6 @@ public interface Network extends ControlledEntity, InternalIdentity {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return id of the network profile. Null means the network profile is not from the database.
|
||||
*/
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
String getName();
|
||||
|
||||
Mode getMode();
|
||||
|
||||
@ -23,7 +23,7 @@ import com.cloud.network.Networks.Mode;
|
||||
import com.cloud.network.Networks.TrafficType;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public class NetworkProfile implements Network, InternalIdentity {
|
||||
public class NetworkProfile implements Network {
|
||||
private long id;
|
||||
private String uuid;
|
||||
private long dataCenterId;
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
// under the License.
|
||||
package com.cloud.network;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.util.List;
|
||||
@ -23,7 +24,7 @@ import java.util.List;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface PhysicalNetwork extends InternalIdentity {
|
||||
public interface PhysicalNetwork extends Identity, InternalIdentity {
|
||||
|
||||
public enum State {
|
||||
Disabled,
|
||||
@ -42,8 +43,6 @@ public interface PhysicalNetwork extends InternalIdentity {
|
||||
ZONE;
|
||||
}
|
||||
|
||||
long getId();
|
||||
|
||||
BroadcastDomainRange getBroadcastDomainRange();
|
||||
|
||||
// TrafficType getTrafficType();
|
||||
@ -62,8 +61,6 @@ public interface PhysicalNetwork extends InternalIdentity {
|
||||
|
||||
String getSpeed();
|
||||
|
||||
String getUuid();
|
||||
|
||||
String getName();
|
||||
|
||||
}
|
||||
|
||||
@ -17,14 +17,13 @@
|
||||
package com.cloud.network;
|
||||
|
||||
import com.cloud.network.Networks.TrafficType;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface PhysicalNetworkTrafficType extends InternalIdentity {
|
||||
|
||||
long getId();
|
||||
public interface PhysicalNetworkTrafficType extends InternalIdentity, Identity {
|
||||
|
||||
long getPhysicalNetworkId();
|
||||
|
||||
@ -37,6 +36,4 @@ public interface PhysicalNetworkTrafficType extends InternalIdentity {
|
||||
String getVmwareNetworkLabel();
|
||||
|
||||
String getSimulatorNetworkLabel();
|
||||
|
||||
String getUuid();
|
||||
}
|
||||
|
||||
@ -19,11 +19,10 @@ package com.cloud.network;
|
||||
import java.util.Date;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Site2SiteCustomerGateway extends ControlledEntity, InternalIdentity {
|
||||
public long getId();
|
||||
public String getUuid();
|
||||
public interface Site2SiteCustomerGateway extends ControlledEntity, Identity, InternalIdentity {
|
||||
public String getGatewayIp();
|
||||
public String getGuestCidrList();
|
||||
public String getIpsecPsk();
|
||||
|
||||
@ -19,11 +19,10 @@ package com.cloud.network;
|
||||
import java.util.Date;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Site2SiteVpnGateway extends ControlledEntity, InternalIdentity {
|
||||
public long getId();
|
||||
public String getUuid();
|
||||
public interface Site2SiteVpnGateway extends ControlledEntity, Identity, InternalIdentity {
|
||||
public long getAddrId();
|
||||
public long getVpcId();
|
||||
public Date getRemoved();
|
||||
|
||||
@ -16,9 +16,10 @@
|
||||
// under the License.
|
||||
package com.cloud.network;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface VirtualRouterProvider extends InternalIdentity {
|
||||
public interface VirtualRouterProvider extends InternalIdentity, Identity {
|
||||
public enum VirtualRouterProviderType {
|
||||
VirtualRouter,
|
||||
ElasticLoadBalancerVm,
|
||||
@ -27,10 +28,6 @@ public interface VirtualRouterProvider extends InternalIdentity {
|
||||
|
||||
public VirtualRouterProviderType getType();
|
||||
|
||||
public long getId();
|
||||
|
||||
public String getUuid();
|
||||
|
||||
public boolean isEnabled();
|
||||
|
||||
public long getNspId();
|
||||
|
||||
@ -17,19 +17,16 @@
|
||||
package com.cloud.network;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface VpnUser extends ControlledEntity, InternalIdentity {
|
||||
public interface VpnUser extends ControlledEntity, InternalIdentity, Identity {
|
||||
enum State {
|
||||
Add,
|
||||
Revoke,
|
||||
Active
|
||||
}
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
String getUsername();
|
||||
|
||||
String getPassword();
|
||||
|
||||
@ -18,9 +18,10 @@
|
||||
package com.cloud.network.as;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Condition extends ControlledEntity, InternalIdentity {
|
||||
public interface Condition extends ControlledEntity, Identity, InternalIdentity {
|
||||
|
||||
static enum Operator {
|
||||
EQ, GT, LT, GE, LE
|
||||
@ -31,8 +32,4 @@ public interface Condition extends ControlledEntity, InternalIdentity {
|
||||
long getThreshold();
|
||||
|
||||
Operator getRelationalOperator();
|
||||
|
||||
String getUuid();
|
||||
|
||||
long getId();
|
||||
}
|
||||
|
||||
@ -17,7 +17,10 @@
|
||||
|
||||
package com.cloud.network.as;
|
||||
|
||||
public interface Counter {
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Counter extends InternalIdentity, Identity {
|
||||
|
||||
public static enum Source {
|
||||
netscaler,
|
||||
@ -29,8 +32,4 @@ public interface Counter {
|
||||
String getValue();
|
||||
|
||||
Source getSource();
|
||||
|
||||
String getUuid();
|
||||
|
||||
long getId();
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ import com.cloud.network.rules.LoadBalancer;
|
||||
import com.cloud.utils.Pair;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public class LoadBalancingRule implements FirewallRule, LoadBalancer, InternalIdentity {
|
||||
public class LoadBalancingRule implements FirewallRule, LoadBalancer {
|
||||
private LoadBalancer lb;
|
||||
private List<LbDestination> destinations;
|
||||
private List<LbStickinessPolicy> stickinessPolicies;
|
||||
|
||||
@ -19,9 +19,10 @@ package com.cloud.network.rules;
|
||||
import java.util.List;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface FirewallRule extends ControlledEntity, InternalIdentity {
|
||||
public interface FirewallRule extends ControlledEntity, Identity, InternalIdentity {
|
||||
enum Purpose {
|
||||
Firewall,
|
||||
PortForwarding,
|
||||
@ -48,17 +49,6 @@ public interface FirewallRule extends ControlledEntity, InternalIdentity {
|
||||
Egress
|
||||
}
|
||||
|
||||
/**
|
||||
* @return database id.
|
||||
*/
|
||||
long getId();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return uuid
|
||||
*/
|
||||
String getUuid();
|
||||
|
||||
/**
|
||||
* @return external id.
|
||||
*/
|
||||
|
||||
@ -31,5 +31,4 @@ public interface LoadBalancer extends FirewallRule {
|
||||
|
||||
String getAlgorithm();
|
||||
|
||||
String getUuid();
|
||||
}
|
||||
|
||||
@ -16,32 +16,7 @@
|
||||
// under the License.
|
||||
package com.cloud.network.rules;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface StaticNatRule extends ControlledEntity, InternalIdentity, FirewallRule {
|
||||
|
||||
long getId();
|
||||
|
||||
String getXid();
|
||||
|
||||
String getProtocol();
|
||||
|
||||
Integer getSourcePortStart();
|
||||
|
||||
Integer getSourcePortEnd();
|
||||
|
||||
Purpose getPurpose();
|
||||
|
||||
State getState();
|
||||
|
||||
long getAccountId();
|
||||
|
||||
long getDomainId();
|
||||
|
||||
long getNetworkId();
|
||||
|
||||
Long getSourceIpAddressId();
|
||||
public interface StaticNatRule extends FirewallRule {
|
||||
|
||||
String getDestIpAddress();
|
||||
}
|
||||
}
|
||||
@ -19,12 +19,12 @@ package com.cloud.network.rules;
|
||||
import java.util.List;
|
||||
|
||||
import com.cloud.utils.Pair;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface StickinessPolicy {
|
||||
|
||||
public long getId();
|
||||
public interface StickinessPolicy extends InternalIdentity, Identity {
|
||||
|
||||
public long getLoadBalancerId();
|
||||
|
||||
@ -38,5 +38,4 @@ public interface StickinessPolicy {
|
||||
|
||||
public List<Pair<String, String>> getParams(); /* get params in Map <string,String> format */
|
||||
|
||||
public String getUuid();
|
||||
}
|
||||
|
||||
@ -17,13 +17,11 @@
|
||||
package com.cloud.network.security;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
//FIXME: Annotation @doc("")
|
||||
public interface SecurityGroup extends ControlledEntity, InternalIdentity {
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
public interface SecurityGroup extends ControlledEntity, InternalIdentity, Identity {
|
||||
|
||||
String getName();
|
||||
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
// under the License.
|
||||
package com.cloud.network.security;
|
||||
import com.cloud.network.security.SecurityRule.SecurityRuleType;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface SecurityGroupRules {
|
||||
long getId();
|
||||
public interface SecurityGroupRules extends InternalIdentity {
|
||||
|
||||
String getName();
|
||||
|
||||
|
||||
@ -17,8 +17,10 @@
|
||||
package com.cloud.network.security;
|
||||
|
||||
import com.cloud.async.AsyncInstanceCreateStatus;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface SecurityRule {
|
||||
public interface SecurityRule extends Identity, InternalIdentity {
|
||||
|
||||
public static class SecurityRuleType {
|
||||
public static final SecurityRuleType IngressRule = new SecurityRuleType("ingress");
|
||||
@ -33,7 +35,6 @@ public interface SecurityRule {
|
||||
}
|
||||
private String _type;
|
||||
}
|
||||
long getId();
|
||||
|
||||
long getSecurityGroupId();
|
||||
|
||||
@ -52,7 +53,4 @@ public interface SecurityRule {
|
||||
Long getAllowedNetworkId();
|
||||
|
||||
String getAllowedSourceIpCidr();
|
||||
|
||||
String getUuid();
|
||||
|
||||
}
|
||||
|
||||
@ -16,6 +16,6 @@
|
||||
// under the License.
|
||||
package com.cloud.network.vpc;
|
||||
|
||||
public interface PrivateGateway extends VpcGateway{
|
||||
public interface PrivateGateway extends VpcGateway {
|
||||
long getPhysicalNetworkId();
|
||||
}
|
||||
|
||||
@ -17,9 +17,10 @@
|
||||
package com.cloud.network.vpc;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface StaticRoute extends ControlledEntity, InternalIdentity {
|
||||
public interface StaticRoute extends ControlledEntity, Identity, InternalIdentity {
|
||||
enum State {
|
||||
Staged, // route been created but has never got through network rule conflict detection. Routes in this state can not be sent to VPC virtual router.
|
||||
Add, // Add means the route has been created and has gone through network rule conflict detection.
|
||||
@ -46,13 +47,4 @@ public interface StaticRoute extends ControlledEntity, InternalIdentity {
|
||||
* @return
|
||||
*/
|
||||
Long getVpcId();
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ package com.cloud.network.vpc;
|
||||
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public class StaticRouteProfile implements StaticRoute, InternalIdentity {
|
||||
public class StaticRouteProfile implements StaticRoute {
|
||||
private long id;
|
||||
private String uuid;
|
||||
private String targetCidr;
|
||||
|
||||
@ -18,9 +18,10 @@ package com.cloud.network.vpc;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import com.cloud.network.Network;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Vpc extends ControlledEntity, InternalIdentity{
|
||||
public interface Vpc extends ControlledEntity, Identity, InternalIdentity {
|
||||
public enum State {
|
||||
Enabled,
|
||||
Inactive
|
||||
@ -30,10 +31,6 @@ public interface Vpc extends ControlledEntity, InternalIdentity{
|
||||
|
||||
boolean readyToUse();
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
String getName();
|
||||
|
||||
long getZoneId();
|
||||
|
||||
@ -33,8 +33,6 @@ public interface VpcGateway extends Identity, ControlledEntity, InternalIdentity
|
||||
Deleting
|
||||
}
|
||||
|
||||
long getId();
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
|
||||
@ -16,9 +16,10 @@
|
||||
// under the License.
|
||||
package com.cloud.network.vpc;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface VpcOffering extends InternalIdentity {
|
||||
public interface VpcOffering extends InternalIdentity, Identity {
|
||||
public enum State {
|
||||
Disabled,
|
||||
Enabled
|
||||
@ -26,10 +27,6 @@ public interface VpcOffering extends InternalIdentity {
|
||||
|
||||
public static final String defaultVPCOfferingName = "Default VPC offering";
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
String getName();
|
||||
|
||||
String getUniqueName();
|
||||
|
||||
@ -16,6 +16,9 @@
|
||||
// under the License.
|
||||
package com.cloud.offering;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
@ -23,10 +26,7 @@ import java.util.Date;
|
||||
* the disk offering.
|
||||
*
|
||||
*/
|
||||
public interface DiskOffering {
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
public interface DiskOffering extends Identity, InternalIdentity {
|
||||
|
||||
String getUniqueName();
|
||||
|
||||
|
||||
@ -18,13 +18,14 @@ package com.cloud.offering;
|
||||
|
||||
import com.cloud.network.Network.GuestType;
|
||||
import com.cloud.network.Networks.TrafficType;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
* Describes network offering
|
||||
*
|
||||
*/
|
||||
public interface NetworkOffering extends InternalIdentity {
|
||||
public interface NetworkOffering extends InternalIdentity, Identity {
|
||||
|
||||
public enum Availability {
|
||||
Required,
|
||||
@ -51,11 +52,6 @@ public interface NetworkOffering extends InternalIdentity {
|
||||
public final static String DefaultIsolatedNetworkOfferingForVpcNetworks = "DefaultIsolatedNetworkOfferingForVpcNetworks";
|
||||
public final static String DefaultIsolatedNetworkOfferingForVpcNetworksNoLB = "DefaultIsolatedNetworkOfferingForVpcNetworksNoLB";
|
||||
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
/**
|
||||
* @return name for the network offering.
|
||||
*/
|
||||
|
||||
@ -18,17 +18,15 @@ package com.cloud.org;
|
||||
|
||||
import com.cloud.hypervisor.Hypervisor.HypervisorType;
|
||||
import com.cloud.org.Managed.ManagedState;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Cluster extends Grouping {
|
||||
public interface Cluster extends Grouping, InternalIdentity, Identity {
|
||||
public static enum ClusterType {
|
||||
CloudManaged,
|
||||
ExternalManaged;
|
||||
};
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
String getName();
|
||||
|
||||
long getDataCenterId();
|
||||
|
||||
@ -19,15 +19,14 @@ package com.cloud.projects;
|
||||
import java.util.Date;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface ProjectInvitation extends ControlledEntity, InternalIdentity {
|
||||
public interface ProjectInvitation extends ControlledEntity, Identity, InternalIdentity {
|
||||
public enum State {
|
||||
Pending, Completed, Expired, Declined
|
||||
}
|
||||
|
||||
long getId();
|
||||
|
||||
long getProjectId();
|
||||
|
||||
Long getForAccountId();
|
||||
|
||||
@ -17,9 +17,10 @@
|
||||
package com.cloud.server;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface ResourceTag extends ControlledEntity, InternalIdentity {
|
||||
public interface ResourceTag extends ControlledEntity, Identity, InternalIdentity {
|
||||
|
||||
public enum TaggedResourceType {
|
||||
UserVm,
|
||||
@ -39,11 +40,6 @@ public interface ResourceTag extends ControlledEntity, InternalIdentity {
|
||||
StaticRoute
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
long getId();
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
|
||||
@ -16,13 +16,10 @@
|
||||
// under the License.
|
||||
package com.cloud.storage;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface GuestOS extends InternalIdentity {
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
public interface GuestOS extends InternalIdentity, Identity {
|
||||
|
||||
String getName();
|
||||
|
||||
|
||||
@ -16,12 +16,12 @@
|
||||
// under the License.
|
||||
package com.cloud.storage;
|
||||
|
||||
public interface GuestOsCategory {
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface GuestOsCategory extends Identity, InternalIdentity {
|
||||
// Used by OS preference, 'None' for no OS preference
|
||||
public static final String CATEGORY_NONE ="None";
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
String getName();
|
||||
|
||||
|
||||
@ -19,14 +19,12 @@
|
||||
package com.cloud.storage;
|
||||
|
||||
import com.cloud.agent.api.to.S3TO;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public interface S3 {
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
public interface S3 extends InternalIdentity, Identity {
|
||||
|
||||
String getAccessKey();
|
||||
|
||||
|
||||
@ -20,9 +20,10 @@ import java.util.Date;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import com.cloud.hypervisor.Hypervisor.HypervisorType;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Snapshot extends ControlledEntity, InternalIdentity {
|
||||
public interface Snapshot extends ControlledEntity, Identity, InternalIdentity {
|
||||
public enum Type {
|
||||
MANUAL,
|
||||
RECURRING,
|
||||
@ -68,10 +69,6 @@ public interface Snapshot extends ControlledEntity, InternalIdentity {
|
||||
|
||||
public static final long MANUAL_POLICY_ID = 0L;
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
long getAccountId();
|
||||
|
||||
long getVolumeId();
|
||||
|
||||
@ -19,25 +19,16 @@ package com.cloud.storage;
|
||||
import java.util.Date;
|
||||
|
||||
import com.cloud.storage.Storage.StoragePoolType;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface StoragePool {
|
||||
|
||||
/**
|
||||
* @return id of the pool.
|
||||
*/
|
||||
long getId();
|
||||
public interface StoragePool extends Identity, InternalIdentity {
|
||||
|
||||
/**
|
||||
* @return name of the pool.
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/***
|
||||
*
|
||||
* @return unique identifier
|
||||
*/
|
||||
String getUuid();
|
||||
|
||||
/**
|
||||
* @return the type of pool.
|
||||
*/
|
||||
|
||||
@ -16,11 +16,12 @@
|
||||
// under the License.
|
||||
package com.cloud.storage;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public interface Upload extends InternalIdentity {
|
||||
public interface Upload extends InternalIdentity, Identity {
|
||||
|
||||
public static enum Status {
|
||||
UNKNOWN, ABANDONED, UPLOADED, NOT_UPLOADED, UPLOAD_ERROR, UPLOAD_IN_PROGRESS, NOT_COPIED, COPY_IN_PROGRESS, COPY_ERROR, COPY_COMPLETE, DOWNLOAD_URL_CREATED, DOWNLOAD_URL_NOT_CREATED, ERROR
|
||||
@ -36,10 +37,6 @@ public interface Upload extends InternalIdentity {
|
||||
|
||||
long getHostId();
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
Date getCreated();
|
||||
|
||||
Date getLastUpdated();
|
||||
|
||||
@ -16,9 +16,12 @@
|
||||
// under the License.
|
||||
package com.cloud.storage;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public interface VMTemplateStorageResourceAssoc {
|
||||
public interface VMTemplateStorageResourceAssoc extends InternalIdentity {
|
||||
public static enum Status {
|
||||
UNKNOWN, DOWNLOAD_ERROR, NOT_DOWNLOADED, DOWNLOAD_IN_PROGRESS, DOWNLOADED, ABANDONED, UPLOADED, NOT_UPLOADED, UPLOAD_ERROR, UPLOAD_IN_PROGRESS
|
||||
}
|
||||
@ -35,8 +38,6 @@ public interface VMTemplateStorageResourceAssoc {
|
||||
|
||||
void setDownloadState(Status downloadState);
|
||||
|
||||
long getId();
|
||||
|
||||
Date getCreated();
|
||||
|
||||
Date getLastUpdated();
|
||||
|
||||
@ -22,9 +22,10 @@ import com.cloud.acl.ControlledEntity;
|
||||
import com.cloud.template.BasedOn;
|
||||
import com.cloud.utils.fsm.StateMachine2;
|
||||
import com.cloud.utils.fsm.StateObject;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Volume extends ControlledEntity, InternalIdentity, BasedOn, StateObject<Volume.State> {
|
||||
public interface Volume extends ControlledEntity, Identity, InternalIdentity, BasedOn, StateObject<Volume.State> {
|
||||
enum Type {
|
||||
UNKNOWN, ROOT, SWAP, DATADISK, ISO
|
||||
};
|
||||
@ -94,10 +95,6 @@ public interface Volume extends ControlledEntity, InternalIdentity, BasedOn, Sta
|
||||
ExpungingRequested;
|
||||
}
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
/**
|
||||
* @return the volume name
|
||||
*/
|
||||
|
||||
@ -16,10 +16,10 @@
|
||||
// under the License.
|
||||
package com.cloud.storage.snapshot;
|
||||
|
||||
public interface SnapshotPolicy {
|
||||
long getId();
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
String getUuid();
|
||||
public interface SnapshotPolicy extends Identity, InternalIdentity {
|
||||
|
||||
long getVolumeId();
|
||||
|
||||
|
||||
@ -23,9 +23,10 @@ import com.cloud.acl.ControlledEntity;
|
||||
import com.cloud.hypervisor.Hypervisor.HypervisorType;
|
||||
import com.cloud.storage.Storage.ImageFormat;
|
||||
import com.cloud.storage.Storage.TemplateType;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface VirtualMachineTemplate extends ControlledEntity, InternalIdentity {
|
||||
public interface VirtualMachineTemplate extends ControlledEntity, Identity, InternalIdentity {
|
||||
|
||||
public static enum BootloaderType {
|
||||
PyGrub, HVM, External, CD
|
||||
@ -41,13 +42,6 @@ public interface VirtualMachineTemplate extends ControlledEntity, InternalIdenti
|
||||
all // all templates (only usable by admins)
|
||||
}
|
||||
|
||||
/**
|
||||
* @return id.
|
||||
*/
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
boolean isFeatured();
|
||||
|
||||
/**
|
||||
|
||||
@ -19,9 +19,10 @@ package com.cloud.user;
|
||||
import java.util.Date;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface Account extends ControlledEntity, InternalIdentity {
|
||||
public interface Account extends ControlledEntity, InternalIdentity, Identity {
|
||||
public enum Type {
|
||||
Normal,
|
||||
Admin,
|
||||
@ -50,10 +51,6 @@ public interface Account extends ControlledEntity, InternalIdentity {
|
||||
|
||||
public static final long ACCOUNT_ID_SYSTEM = 1;
|
||||
|
||||
public long getId();
|
||||
|
||||
public String getUuid();
|
||||
|
||||
public String getAccountName();
|
||||
|
||||
public short getType();
|
||||
|
||||
@ -21,11 +21,6 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface SSHKeyPair extends ControlledEntity, InternalIdentity {
|
||||
|
||||
/**
|
||||
* @return The id of the key pair.
|
||||
*/
|
||||
public long getId();
|
||||
|
||||
/**
|
||||
* @return The given name of the key pair.
|
||||
*/
|
||||
|
||||
@ -19,10 +19,10 @@ package com.cloud.vm;
|
||||
import java.util.Date;
|
||||
|
||||
import com.cloud.acl.ControlledEntity;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface InstanceGroup extends ControlledEntity, InternalIdentity {
|
||||
long getId();
|
||||
public interface InstanceGroup extends ControlledEntity, Identity, InternalIdentity {
|
||||
|
||||
String getName();
|
||||
|
||||
|
||||
@ -25,11 +25,13 @@ import com.cloud.network.Networks.AddressFormat;
|
||||
import com.cloud.network.Networks.Mode;
|
||||
import com.cloud.utils.fsm.FiniteState;
|
||||
import com.cloud.utils.fsm.StateMachine;
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
* Nic represents one nic on the VM.
|
||||
*/
|
||||
public interface Nic {
|
||||
public interface Nic extends Identity, InternalIdentity {
|
||||
enum Event {
|
||||
ReservationRequested, ReleaseRequested, CancelRequested, OperationCompleted, OperationFailed,
|
||||
}
|
||||
@ -86,11 +88,6 @@ public interface Nic {
|
||||
PlaceHolder, Create, Start, Managed;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return id in the CloudStack database
|
||||
*/
|
||||
long getId();
|
||||
|
||||
/**
|
||||
* @return reservation id returned by the allocation source. This can be the String version of the database id if
|
||||
* the
|
||||
|
||||
@ -207,11 +207,6 @@ public interface VirtualMachine extends RunningOn, ControlledEntity, Identity, I
|
||||
*/
|
||||
public String getInstanceName();
|
||||
|
||||
/**
|
||||
* @return the id of this virtual machine. null means the id has not been set.
|
||||
*/
|
||||
public long getId();
|
||||
|
||||
/**
|
||||
* @return the host name of the virtual machine. If the user did not
|
||||
* specify the host name when creating the virtual machine then it is
|
||||
|
||||
16
api/test/integration/api/__init__.py
Normal file
16
api/test/integration/api/__init__.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
16
api/test/integration/api/setup.py
Normal file
16
api/test/integration/api/setup.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
16
api/test/integration/api/test/__init__.py
Normal file
16
api/test/integration/api/test/__init__.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
16
api/test/integration/api/test/account/__init__.py
Normal file
16
api/test/integration/api/test/account/__init__.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
61
api/test/integration/api/test/account/testCreateAccount.py
Normal file
61
api/test/integration/api/test/account/testCreateAccount.py
Normal file
@ -0,0 +1,61 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import factory
|
||||
import marvin
|
||||
from marvin import cloudstackTestCase
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib import utils
|
||||
|
||||
class AccountFactory(factory.Factory):
|
||||
FACTORY_FOR = createAccount.createAccountCmd
|
||||
|
||||
firstname = 'firstname-'+random_gen()
|
||||
lastname = 'lastname-'+random_gen()
|
||||
email = factory.lazy_attribute(lambda e: '{0}.{1}@cloudstack.org'.format(e.firstname, e.lastname).lower())
|
||||
|
||||
class AdminAccountFactory(AccountFactory):
|
||||
accounttype = 1
|
||||
|
||||
class UserAccountFactory(AccountFactory):
|
||||
accounttype = 0
|
||||
|
||||
class TestCreateAccount(cloudstackTestCase):
|
||||
def setUp(self):
|
||||
self.apiClient = self.testClient.getApiClient()
|
||||
self.userApiClient = self.testClient.getUserApiClient(account='test'+utils.random_gen(), 'ROOT')
|
||||
|
||||
def test_createAccountAsAdmin(self):
|
||||
"""
|
||||
creates an account for a user as admin
|
||||
"""
|
||||
Account.create(self.apiClient, services=None)
|
||||
from marvin.cloudstackAPI.createAccount import createAccountCmd
|
||||
self.assertEqual(True, False)
|
||||
|
||||
def test_createAccountAsUser(self):
|
||||
"""
|
||||
negative: create account as a user
|
||||
"""
|
||||
self.assertEqual(True, False)
|
||||
|
||||
def tearDown(self):
|
||||
self.apiClient.close()
|
||||
self.userApiClient.close()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@ -34,7 +34,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="alert")
|
||||
public class AlertVO implements Alert, Identity, InternalIdentity {
|
||||
public class AlertVO implements Alert {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -36,7 +36,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="async_job")
|
||||
public class AsyncJobVO implements AsyncJob, InternalIdentity {
|
||||
public class AsyncJobVO implements AsyncJob {
|
||||
public static final int CALLBACK_POLLING = 0;
|
||||
public static final int CALLBACK_EMAIL = 1;
|
||||
|
||||
@ -123,24 +123,24 @@ public class AsyncJobVO implements AsyncJob, InternalIdentity {
|
||||
|
||||
public AsyncJobVO() {
|
||||
this.uuid = UUID.randomUUID().toString();
|
||||
}
|
||||
|
||||
public AsyncJobVO(long userId, long accountId, String cmd, String cmdInfo, Long instanceId, Type instanceType) {
|
||||
this.userId = userId;
|
||||
this.accountId = accountId;
|
||||
this.cmd = cmd;
|
||||
this.cmdInfo = cmdInfo;
|
||||
}
|
||||
|
||||
public AsyncJobVO(long userId, long accountId, String cmd, String cmdInfo, Long instanceId, Type instanceType) {
|
||||
this.userId = userId;
|
||||
this.accountId = accountId;
|
||||
this.cmd = cmd;
|
||||
this.cmdInfo = cmdInfo;
|
||||
this.callbackType = CALLBACK_POLLING;
|
||||
this.uuid = UUID.randomUUID().toString();
|
||||
this.instanceId = instanceId;
|
||||
}
|
||||
|
||||
public AsyncJobVO(long userId, long accountId, String cmd, String cmdInfo,
|
||||
int callbackType, String callbackAddress, Long instanceId, Type instanceType) {
|
||||
|
||||
this(userId, accountId, cmd, cmdInfo, instanceId, instanceType);
|
||||
this.callbackType = callbackType;
|
||||
this.callbackAddress = callbackAddress;
|
||||
}
|
||||
|
||||
public AsyncJobVO(long userId, long accountId, String cmd, String cmdInfo,
|
||||
int callbackType, String callbackAddress, Long instanceId, Type instanceType) {
|
||||
|
||||
this(userId, accountId, cmd, cmdInfo, instanceId, instanceType);
|
||||
this.callbackType = callbackType;
|
||||
this.callbackAddress = callbackAddress;
|
||||
this.uuid = UUID.randomUUID().toString();
|
||||
}
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="op_host_capacity")
|
||||
public class CapacityVO implements Capacity, InternalIdentity {
|
||||
public class CapacityVO implements Capacity {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
@ -103,7 +103,7 @@ public class CapacityVO implements Capacity, InternalIdentity {
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Long getHostOrPoolId() {
|
||||
return hostOrPoolId;
|
||||
@ -196,4 +196,9 @@ public class CapacityVO implements Capacity, InternalIdentity {
|
||||
public void setUsedPercentage(float usedPercentage) {
|
||||
this.usedPercentage = usedPercentage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUuid() {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="resource_count")
|
||||
public class ResourceCountVO implements ResourceCount, InternalIdentity {
|
||||
public class ResourceCountVO implements ResourceCount {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
|
||||
@ -29,7 +29,7 @@ import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "resource_limit")
|
||||
public class ResourceLimitVO implements ResourceLimit, InternalIdentity {
|
||||
public class ResourceLimitVO implements ResourceLimit {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
|
||||
@ -35,7 +35,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="event")
|
||||
public class EventVO implements Event, Identity, InternalIdentity {
|
||||
public class EventVO implements Event {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -21,7 +21,6 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
import java.util.Date;
|
||||
|
||||
public interface UsageEvent extends InternalIdentity {
|
||||
long getId();
|
||||
String getType();
|
||||
|
||||
Date getCreateDate();
|
||||
|
||||
@ -30,7 +30,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="usage_event")
|
||||
public class UsageEventVO implements UsageEvent, InternalIdentity {
|
||||
public class UsageEventVO implements UsageEvent {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -49,7 +49,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
@Table(name="host")
|
||||
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
|
||||
@DiscriminatorColumn(name="type", discriminatorType=DiscriminatorType.STRING, length=32)
|
||||
public class HostVO implements Host, Identity, InternalIdentity {
|
||||
public class HostVO implements Host {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -34,7 +34,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="hypervisor_capabilities")
|
||||
public class HypervisorCapabilitiesVO implements HypervisorCapabilities, Identity, InternalIdentity {
|
||||
public class HypervisorCapabilitiesVO implements HypervisorCapabilities {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -33,7 +33,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name=("vpn_users"))
|
||||
public class VpnUserVO implements VpnUser, Identity, InternalIdentity {
|
||||
public class VpnUserVO implements VpnUser {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -33,7 +33,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name = ("security_group_rule"))
|
||||
public class SecurityGroupRuleVO implements SecurityRule, InternalIdentity {
|
||||
public class SecurityGroupRuleVO implements SecurityRule {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id")
|
||||
|
||||
@ -33,7 +33,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
@Table(name = ("security_group"))
|
||||
@JoinType(type = "left")
|
||||
@SecondaryTable(name = "security_group_rule", pkJoinColumns = { @PrimaryKeyJoinColumn(name = "id", referencedColumnName = "security_group_id") })
|
||||
public class SecurityGroupRulesVO implements SecurityGroupRules, InternalIdentity {
|
||||
public class SecurityGroupRulesVO implements SecurityGroupRules {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id")
|
||||
|
||||
@ -30,7 +30,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name = ("security_group"))
|
||||
public class SecurityGroupVO implements SecurityGroup, Identity, InternalIdentity {
|
||||
public class SecurityGroupVO implements SecurityGroup {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id")
|
||||
|
||||
@ -16,6 +16,8 @@
|
||||
// under the License.
|
||||
package com.cloud.network.security;
|
||||
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
* Work related to security groups for a vm
|
||||
*
|
||||
|
||||
@ -43,7 +43,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
@Table(name="disk_offering")
|
||||
@Inheritance(strategy=InheritanceType.JOINED)
|
||||
@DiscriminatorColumn(name="type", discriminatorType=DiscriminatorType.STRING, length=32)
|
||||
public class DiskOfferingVO implements DiskOffering, Identity, InternalIdentity {
|
||||
public class DiskOfferingVO implements DiskOffering {
|
||||
public enum Type {
|
||||
Disk,
|
||||
Service
|
||||
|
||||
@ -30,7 +30,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="guest_os_category")
|
||||
public class GuestOSCategoryVO implements GuestOsCategory, Identity, InternalIdentity {
|
||||
public class GuestOSCategoryVO implements GuestOsCategory {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -30,7 +30,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="guest_os")
|
||||
public class GuestOSVO implements GuestOS, Identity, InternalIdentity {
|
||||
public class GuestOSVO implements GuestOS {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -33,7 +33,7 @@ import java.util.Date;
|
||||
|
||||
@Entity
|
||||
@Table(name = "s3")
|
||||
public class S3VO implements S3, Identity, InternalIdentity {
|
||||
public class S3VO implements S3 {
|
||||
|
||||
public static final String ID_COLUMN_NAME = "id";
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="snapshot_policy")
|
||||
public class SnapshotPolicyVO implements SnapshotPolicy, InternalIdentity {
|
||||
public class SnapshotPolicyVO implements SnapshotPolicy {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
|
||||
@ -34,7 +34,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="snapshot_schedule")
|
||||
public class SnapshotScheduleVO implements SnapshotSchedule, InternalIdentity {
|
||||
public class SnapshotScheduleVO implements SnapshotSchedule {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
|
||||
@ -36,7 +36,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="snapshots")
|
||||
public class SnapshotVO implements Snapshot, Identity, InternalIdentity {
|
||||
public class SnapshotVO implements Snapshot {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
|
||||
@ -16,9 +16,11 @@
|
||||
// under the License.
|
||||
package com.cloud.storage;
|
||||
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public interface StoragePoolHostAssoc {
|
||||
public interface StoragePoolHostAssoc extends InternalIdentity {
|
||||
|
||||
long getHostId();
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="storage_pool_host_ref")
|
||||
public class StoragePoolHostVO implements StoragePoolHostAssoc, InternalIdentity {
|
||||
public class StoragePoolHostVO implements StoragePoolHostAssoc {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@ -37,7 +37,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="storage_pool")
|
||||
public class StoragePoolVO implements StoragePool, Identity, InternalIdentity {
|
||||
public class StoragePoolVO implements StoragePool {
|
||||
@Id
|
||||
@TableGenerator(name="storage_pool_sq", table="sequence", pkColumnName="name", valueColumnName="value", pkColumnValue="storage_pool_seq", allocationSize=1)
|
||||
@Column(name="id", updatable=false, nullable = false)
|
||||
|
||||
@ -36,7 +36,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="upload")
|
||||
public class UploadVO implements Upload, InternalIdentity {
|
||||
public class UploadVO implements Upload {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
long id;
|
||||
|
||||
@ -38,7 +38,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="template_host_ref")
|
||||
public class VMTemplateHostVO implements VMTemplateStorageResourceAssoc, InternalIdentity {
|
||||
public class VMTemplateHostVO implements VMTemplateStorageResourceAssoc {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
Long id;
|
||||
|
||||
@ -38,7 +38,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="template_spool_ref")
|
||||
public class VMTemplateStoragePoolVO implements VMTemplateStorageResourceAssoc, InternalIdentity {
|
||||
public class VMTemplateStoragePoolVO implements VMTemplateStorageResourceAssoc {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
long id;
|
||||
|
||||
@ -41,7 +41,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="vm_template")
|
||||
public class VMTemplateVO implements VirtualMachineTemplate, InternalIdentity {
|
||||
public class VMTemplateVO implements VirtualMachineTemplate {
|
||||
@Id
|
||||
@TableGenerator(name="vm_template_sq", table="sequence", pkColumnName="name", valueColumnName="value", pkColumnValue="vm_template_seq", allocationSize=1)
|
||||
@Column(name="id", nullable = false)
|
||||
|
||||
@ -39,7 +39,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name = "volumes")
|
||||
public class VolumeVO implements Volume, Identity, InternalIdentity {
|
||||
public class VolumeVO implements Volume {
|
||||
@Id
|
||||
@TableGenerator(name = "volume_sq", table = "sequence", pkColumnName = "name", valueColumnName = "value", pkColumnValue = "volume_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.TABLE)
|
||||
|
||||
@ -16,12 +16,12 @@
|
||||
// under the License.
|
||||
package com.cloud.storage.snapshot;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public interface SnapshotSchedule {
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
public interface SnapshotSchedule extends InternalIdentity, Identity {
|
||||
|
||||
Long getVolumeId();
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
@Entity
|
||||
@Table(name="account")
|
||||
public class AccountVO implements Account, Identity, InternalIdentity {
|
||||
public class AccountVO implements Account {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -28,7 +28,7 @@ import javax.persistence.Transient;
|
||||
|
||||
@Entity
|
||||
@Table(name="ssh_keypairs")
|
||||
public class SSHKeyPairVO implements SSHKeyPair, InternalIdentity {
|
||||
public class SSHKeyPairVO implements SSHKeyPair {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
|
||||
@ -36,7 +36,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
@Table(name="instance_group")
|
||||
@SecondaryTable(name="account",
|
||||
pkJoinColumns={@PrimaryKeyJoinColumn(name="account_id", referencedColumnName="id")})
|
||||
public class InstanceGroupVO implements InstanceGroup, Identity, InternalIdentity {
|
||||
public class InstanceGroupVO implements InstanceGroup {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
|
||||
@ -48,7 +48,7 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
@Table(name="vm_instance")
|
||||
@Inheritance(strategy=InheritanceType.JOINED)
|
||||
@DiscriminatorColumn(name="type", discriminatorType=DiscriminatorType.STRING, length=32)
|
||||
public class VMInstanceVO implements VirtualMachine, InternalIdentity, FiniteStateObject<State, VirtualMachine.Event> {
|
||||
public class VMInstanceVO implements VirtualMachine, FiniteStateObject<State, VirtualMachine.Event> {
|
||||
@Id
|
||||
@TableGenerator(name="vm_instance_sq", table="sequence", pkColumnName="name", valueColumnName="value", pkColumnValue="vm_instance_seq", allocationSize=1)
|
||||
@Column(name="id", updatable=false, nullable = false)
|
||||
|
||||
@ -16,7 +16,10 @@
|
||||
// under the License.
|
||||
package com.cloud.network;
|
||||
|
||||
public interface CiscoNexusVSMDevice {
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
public interface CiscoNexusVSMDevice extends InternalIdentity, Identity {
|
||||
|
||||
// This tells us whether the VSM is currently enabled or disabled. We may
|
||||
// need this if we would like to carry out any sort of maintenance on the
|
||||
@ -39,10 +42,6 @@ public interface CiscoNexusVSMDevice {
|
||||
Standby
|
||||
}
|
||||
|
||||
long getId();
|
||||
|
||||
String getUuid();
|
||||
|
||||
public String getvsmName();
|
||||
|
||||
public long getHostId();
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user