Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openstack-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<dependency>
<groupId>com.woorea</groupId>
<artifactId>jersey-connector</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.2.2-SNAPSHOT</version>
</dependency>
</dependencies>
</profile>
Expand All @@ -60,7 +60,7 @@
<dependency>
<groupId>com.woorea</groupId>
<artifactId>jersey2-connector</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>3.2.2-SNAPSHOT</version>
</dependency>
</dependencies>
</profile>
Expand All @@ -70,7 +70,7 @@
<dependency>
<groupId>com.woorea</groupId>
<artifactId>resteasy-connector</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>3.2.2-SNAPSHOT</version>
</dependency>
</dependencies>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,89 +7,105 @@
import org.codehaus.jackson.map.annotate.JsonRootName;

@JsonRootName("subnet")
public class SubnetForCreate implements Serializable {

public class SubnetForCreate implements Serializable{
private String name;
@JsonProperty("network_id")
private String networkId;
@JsonProperty("ip_version")
private int ipVersion;
private String cidr;
@JsonProperty("allocation_pools")
private List<Pool> list;
private String name;
@JsonProperty("network_id")
private String networkId;
@JsonProperty("ip_version")
private int ipVersion;
private String cidr;
@JsonProperty("dns_nameservers")
private List<String> dnsNameServers;
@JsonProperty("allocation_pools")
private List<Pool> list;
@JsonProperty("tenant_id")
private String tenantId;

/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}

/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @return the id
*/
public String getNetworkId() {
return networkId;
}

/**
* @param id the id to set
*/
public void setNetworkId(String id) {
this.networkId = id;
}


/**
* @return the ipVersion
*/
public int getIpVersion() {
return ipVersion;
}

/**
* @param ipVersion the ipVersion to set
*/
public void setIpVersion(int ipVersion) {
this.ipVersion = ipVersion;
}

/**
* @return the cidr
*/
public String getCidr() {
return cidr;
}

/**
* @param cidr the cidr to set
*/
public void setCidr(String cidr) {
this.cidr = cidr;
}

/**
* @return the list
*/
public List<Pool> getList() {
return list;
}

/**
* @param list the list to set
*/
public void setList(List<Pool> list) {
this.list = list;
}

/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}

/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @return the id
*/
public String getNetworkId() {
return networkId;
}

/**
* @param id the id to set
*/
public void setNetworkId(String id) {
this.networkId = id;
}


/**
* @return the ipVersion
*/
public int getIpVersion() {
return ipVersion;
}

/**
* @param ipVersion the ipVersion to set
*/
public void setIpVersion(int ipVersion) {
this.ipVersion = ipVersion;
}

/**
* @return the cidr
*/
public String getCidr() {
return cidr;
}

/**
* @param cidr the cidr to set
*/
public void setCidr(String cidr) {
this.cidr = cidr;
}

/**
*
* @return dns names
*/
public List<String> getDnsNameServers() {
return dnsNameServers;
}

/**
* @param dnsNameServers list of dns name servers.
*/
public void setDnsNameServers(List<String> dnsNameServers) {
this.dnsNameServers = dnsNameServers;
}

/**
* @return the list
*/
public List<Pool> getList() {
return list;
}

/**
* @param list the list to set
*/
public void setList(List<Pool> list) {
this.list = list;
}

/**
* @return the tenantId
Expand Down