mirror of
https://github.com/apache/jclouds.git
synced 2025-02-08 11:06:05 +00:00
Adds missing constructor properties
This commit is contained in:
parent
0b5475e876
commit
be62b9bbfd
@ -20,6 +20,8 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
import java.beans.ConstructorProperties;
|
||||
|
||||
/**
|
||||
* A Neutron Subnet Allocation Pool
|
||||
* Contains a start and an end IP address describing the pool.
|
||||
@ -33,6 +35,7 @@ public class AllocationPool {
|
||||
protected final String start;
|
||||
protected final String end;
|
||||
|
||||
@ConstructorProperties({"start", "end"})
|
||||
protected AllocationPool(String start, String end) {
|
||||
this.start = start;
|
||||
this.end = end;
|
||||
|
@ -21,6 +21,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
|
||||
/**
|
||||
* Information on the external gateway for the router
|
||||
@ -32,6 +33,7 @@ public class ExternalGatewayInfo {
|
||||
@Named("enable_snat")
|
||||
protected final Boolean enableSnat;
|
||||
|
||||
@ConstructorProperties({"network_id", "enable_snat"})
|
||||
protected ExternalGatewayInfo(String networkId, Boolean enableSnat) {
|
||||
this.networkId = networkId;
|
||||
this.enableSnat = enableSnat;
|
||||
|
@ -21,6 +21,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
|
||||
/**
|
||||
* This is used to provide additional DHCP-related options to Subnet. This is
|
||||
@ -40,6 +41,7 @@ public class ExtraDhcpOption {
|
||||
@Named("opt_value")
|
||||
protected final String optionValue;
|
||||
|
||||
@ConstructorProperties({"id", "opt_name", "opt_value"})
|
||||
protected ExtraDhcpOption(String id, String optionName, String optionValue) {
|
||||
this.id = id;
|
||||
this.optionName = optionName;
|
||||
|
@ -22,6 +22,7 @@ import com.google.common.base.Objects;
|
||||
import com.google.common.base.Objects.ToStringHelper;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
|
||||
/**
|
||||
* A Neutron Subnet Host Route
|
||||
@ -35,6 +36,7 @@ public class HostRoute {
|
||||
@Named("nexthop")
|
||||
private final String nextHop;
|
||||
|
||||
@ConstructorProperties({"destination", "nexthop"})
|
||||
protected HostRoute(String destinationCidr, String nextHop) {
|
||||
this.destinationCidr = destinationCidr;
|
||||
this.nextHop = nextHop;
|
||||
|
@ -21,6 +21,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
|
||||
/**
|
||||
* Describes an IP address
|
||||
@ -32,6 +33,7 @@ public class IP {
|
||||
@Named("subnet_id")
|
||||
protected final String subnetId;
|
||||
|
||||
@ConstructorProperties({"ip_address", "subnet_id"})
|
||||
protected IP(String ipAddress, String subnetId) {
|
||||
this.ipAddress = ipAddress;
|
||||
this.subnetId = subnetId;
|
||||
|
@ -21,6 +21,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
|
||||
/**
|
||||
* A Neutron Network Segment
|
||||
@ -39,6 +40,7 @@ public class NetworkSegment {
|
||||
@Named("provider:segmentation_id")
|
||||
protected final int segmentationId;
|
||||
|
||||
@ConstructorProperties({"provider:network_type", "provider:physical_network", "provider:segmentation_id"})
|
||||
protected NetworkSegment(NetworkType networkType, String physicalNetwork, int segmentationId) {
|
||||
this.networkType = networkType;
|
||||
this.physicalNetwork = physicalNetwork;
|
||||
|
@ -21,6 +21,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
|
||||
/**
|
||||
* A Neutron Router Interface
|
||||
@ -36,6 +37,7 @@ public class RouterInterface {
|
||||
@Named("port_id")
|
||||
protected final String portId;
|
||||
|
||||
@ConstructorProperties({"subnet_id", "port_id"})
|
||||
protected RouterInterface(String subnetId, String portId) {
|
||||
this.subnetId = subnetId;
|
||||
this.portId = portId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user