>
> /**
> * This must be within the range specified by IPv4Range, and is typically
> the first usable address in that range.
> * If not specified, the default value is the first usable address in
> IPv4Range.
> */
> @Nullable public abstract String gatewayIPv4();
>
> - @SerializedNames({ "id", "creationTimestamp", "selfLink", "name",
> "description", "IPv4Range", "gatewayIPv4" })
> + @Nullable public abstract List<URI> subnetworks();
> +
> + public static Network create(String id, Date creationTimestamp, URI
> selfLink, String name, String description, String rangeIPv4,
> + String gatewayIPv4) {
> + return new AutoValue_Network(id, creationTimestamp, selfLink, name,
> NetworkType.LegacyNetwork, description,
> + rangeIPv4, gatewayIPv4, null);
> + }
To avoid errors in serialisation, it is better to provide just one factory
method. Let's remove this one and keep just the new one.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1006/files/0c51ed39650e9cab341136716a9d9732c63f7dd0#r78042181