From 8985805b288f9bf15e7d7f9404286a02d7d814ee Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Oct 2023 19:35:07 +0000 Subject: [PATCH] sync: uncommitted changes detected when opening PR --- equinix-openapi-metal/api/openapi.yaml | 44 ++++++++- equinix-openapi-metal/docs/VirtualCircuit.md | 12 ++- .../docs/VlanVirtualCircuit.md | 12 ++- .../docs/VrfVirtualCircuit.md | 9 ++ .../metal/v1/model/VlanVirtualCircuit.java | 93 ++++++++++++++++--- .../metal/v1/model/VrfVirtualCircuit.java | 75 ++++++++++++++- .../metal/v1/model/VirtualCircuitTest.java | 8 ++ .../v1/model/VlanVirtualCircuitTest.java | 8 ++ .../metal/v1/model/VrfVirtualCircuitTest.java | 8 ++ 9 files changed, 252 insertions(+), 17 deletions(-) diff --git a/equinix-openapi-metal/api/openapi.yaml b/equinix-openapi-metal/api/openapi.yaml index f2ed02952..9bbf42c00 100644 --- a/equinix-openapi-metal/api/openapi.yaml +++ b/equinix-openapi-metal/api/openapi.yaml @@ -13517,6 +13517,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -13538,6 +13539,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -13904,6 +13906,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -13925,6 +13928,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -14206,6 +14210,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -14227,6 +14232,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -23699,6 +23705,11 @@ components: items: type: string type: array + type: + enum: + - vlan + - vrf + type: object virtual_network: $ref: '#/components/schemas/Href' vnid: @@ -23709,8 +23720,6 @@ components: updated_at: format: date-time type: string - required: - - virtual_network type: object VlanVirtualCircuitCreateInput: properties: @@ -23882,6 +23891,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -23903,6 +23913,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -24432,6 +24443,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -24453,6 +24465,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -24882,6 +24895,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -24903,6 +24917,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -25236,6 +25251,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -25257,6 +25273,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -25443,6 +25460,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -25464,6 +25482,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -25609,6 +25628,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -25630,6 +25650,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -25900,6 +25921,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -25921,6 +25943,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -26245,6 +26268,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -26266,6 +26290,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -26453,6 +26478,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -26474,6 +26500,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -26857,6 +26884,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -26878,6 +26906,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -27065,6 +27094,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -27086,6 +27116,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -27355,6 +27386,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -27376,6 +27408,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -27563,6 +27596,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -27584,6 +27618,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -27704,6 +27739,7 @@ components: href: href created_at: 2000-01-23T04:56:07.000+00:00 vrf: null + type: "{}" metal_ip: 12.0.0.1 speed: 7 tags: @@ -27794,6 +27830,10 @@ components: items: type: string type: array + type: + enum: + - vrf + type: object vrf: $ref: '#/components/schemas/Vrf' created_at: diff --git a/equinix-openapi-metal/docs/VirtualCircuit.md b/equinix-openapi-metal/docs/VirtualCircuit.md index b2ce09eb6..b32ac25f9 100644 --- a/equinix-openapi-metal/docs/VirtualCircuit.md +++ b/equinix-openapi-metal/docs/VirtualCircuit.md @@ -17,7 +17,8 @@ |**speed** | **Integer** | integer representing bps speed | [optional] | |**status** | [**StatusEnum**](#StatusEnum) | The status changes of a VRF virtual circuit are generally the same as Virtual Circuits that aren't in a VRF. However, for VRF Virtual Circuits on Fabric VCs, the status will change to 'waiting_on_peering_details' once the Fabric service token associated with the virtual circuit has been redeemed on Fabric, and Metal has found the associated Fabric connection. At this point, users can update the subnet, MD5 password, customer IP and/or metal IP accordingly. For VRF Virtual Circuits on Dedicated Ports, we require all peering details to be set on creation of a VRF Virtual Circuit. The status will change to `changing_peering_details` whenever an active VRF Virtual Circuit has any of its peering details updated. | [optional] | |**tags** | **List<String>** | | [optional] | -|**virtualNetwork** | [**Href**](Href.md) | | | +|**type** | [**TypeEnum**](#TypeEnum) | | [optional] | +|**virtualNetwork** | [**Href**](Href.md) | | [optional] | |**vnid** | **Integer** | | [optional] | |**createdAt** | **OffsetDateTime** | | [optional] | |**updatedAt** | **OffsetDateTime** | | [optional] | @@ -49,3 +50,12 @@ +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| VLAN | "vlan" | +| VRF | "vrf" | + + + diff --git a/equinix-openapi-metal/docs/VlanVirtualCircuit.md b/equinix-openapi-metal/docs/VlanVirtualCircuit.md index 0311665c4..cf4eeeb5d 100644 --- a/equinix-openapi-metal/docs/VlanVirtualCircuit.md +++ b/equinix-openapi-metal/docs/VlanVirtualCircuit.md @@ -17,7 +17,8 @@ |**speed** | **Integer** | For Virtual Circuits on shared and dedicated connections, this speed should match the one set on their Interconnection Ports. For Virtual Circuits on Fabric VCs (both Metal and Fabric Billed) that have found their corresponding Fabric connection, this is the actual speed of the interconnection that was configured when setting up the interconnection on the Fabric Portal. Details on Fabric VCs are included in the specification as a developer preview and is generally unavailable. Please contact our Support team for more details. | [optional] | |**status** | [**StatusEnum**](#StatusEnum) | The status of a Virtual Circuit is always 'pending' on creation. The status can turn to 'Waiting on Customer VLAN' if a Metro VLAN was not set yet on the Virtual Circuit and is the last step needed for full activation. For Dedicated interconnections, as long as the Dedicated Port has been associated to the Virtual Circuit and a NNI VNID has been set, it will turn to 'waiting_on_customer_vlan'. For Fabric VCs, it will only change to 'waiting_on_customer_vlan' once the corresponding Fabric connection has been found on the Fabric side. If the Fabric service token associated with the Virtual Circuit hasn't been redeemed on Fabric within the expiry time, it will change to an `expired` status. Once a Metro VLAN is set on the Virtual Circuit (which for Fabric VCs, can be set on creation of a Fabric VC) and the necessary set up is done, it will turn into 'Activating' status as it tries to activate the Virtual Circuit. Once the Virtual Circuit fully activates and is configured on the switch, it will turn to staus 'active'. For Fabric VCs (Metal Billed), we will start billing the moment the status of the Virtual Circuit turns to 'active'. If there are any changes to the VLAN after the Virtual Circuit is in an 'active' status, the status will show 'changing_vlan' if a new VLAN has been provided, or 'deactivating' if we are removing the VLAN. When a deletion request is issued for the Virtual Circuit, it will move to a 'deleting' status, and we will immediately unconfigure the switch for the Virtual Circuit and issue a deletion on any associated Fabric connections. Any associated Metro VLANs on the virtual circuit will also be unassociated after the switch has been successfully unconfigured. If there are any associated Fabric connections, we will only fully delete the Virtual Circuit once we have checked that the Fabric connection was fully deprovisioned on Fabric. | [optional] | |**tags** | **List<String>** | | [optional] | -|**virtualNetwork** | [**Href**](Href.md) | | | +|**type** | [**TypeEnum**](#TypeEnum) | | [optional] | +|**virtualNetwork** | [**Href**](Href.md) | | [optional] | |**vnid** | **Integer** | | [optional] | |**createdAt** | **OffsetDateTime** | | [optional] | |**updatedAt** | **OffsetDateTime** | | [optional] | @@ -43,3 +44,12 @@ +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| VLAN | "vlan" | +| VRF | "vrf" | + + + diff --git a/equinix-openapi-metal/docs/VrfVirtualCircuit.md b/equinix-openapi-metal/docs/VrfVirtualCircuit.md index 5a3ccf85b..e535aeb93 100644 --- a/equinix-openapi-metal/docs/VrfVirtualCircuit.md +++ b/equinix-openapi-metal/docs/VrfVirtualCircuit.md @@ -21,6 +21,7 @@ |**status** | [**StatusEnum**](#StatusEnum) | The status changes of a VRF virtual circuit are generally the same as Virtual Circuits that aren't in a VRF. However, for VRF Virtual Circuits on Fabric VCs, the status will change to 'waiting_on_peering_details' once the Fabric service token associated with the virtual circuit has been redeemed on Fabric, and Metal has found the associated Fabric connection. At this point, users can update the subnet, MD5 password, customer IP and/or metal IP accordingly. For VRF Virtual Circuits on Dedicated Ports, we require all peering details to be set on creation of a VRF Virtual Circuit. The status will change to `changing_peering_details` whenever an active VRF Virtual Circuit has any of its peering details updated. | [optional] | |**subnet** | **String** | The /30 or /31 subnet of one of the VRF IP Blocks that will be used with the VRF for the Virtual Circuit. This subnet does not have to be an existing VRF IP reservation, as we will create the VRF IP reservation on creation if it does not exist. The Metal IP and Customer IP must be IPs from this subnet. For /30 subnets, the network and broadcast IPs cannot be used as the Metal or Customer IP. | [optional] | |**tags** | **List<String>** | | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | | [optional] | |**vrf** | [**Vrf**](Vrf.md) | | | |**createdAt** | **OffsetDateTime** | | [optional] | |**updatedAt** | **OffsetDateTime** | | [optional] | @@ -46,3 +47,11 @@ +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| VRF | "vrf" | + + + diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/model/VlanVirtualCircuit.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/model/VlanVirtualCircuit.java index 5bff12bf3..3818e7e45 100644 --- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/model/VlanVirtualCircuit.java +++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/model/VlanVirtualCircuit.java @@ -164,6 +164,57 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TAGS) private List tags; + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + VLAN("vlan"), + + VRF("vrf"); + + private Object value; + + TypeEnum(Object value) { + this.value = value; + } + + public Object getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(Object value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextObject(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + public static final String SERIALIZED_NAME_VIRTUAL_NETWORK = "virtual_network"; @SerializedName(SERIALIZED_NAME_VIRTUAL_NETWORK) private Href virtualNetwork; @@ -401,6 +452,27 @@ public void setTags(List tags) { } + public VlanVirtualCircuit type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + public VlanVirtualCircuit virtualNetwork(Href virtualNetwork) { this.virtualNetwork = virtualNetwork; @@ -411,7 +483,7 @@ public VlanVirtualCircuit virtualNetwork(Href virtualNetwork) { * Get virtualNetwork * @return virtualNetwork **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public Href getVirtualNetwork() { return virtualNetwork; } @@ -549,6 +621,7 @@ public boolean equals(Object o) { Objects.equals(this.speed, vlanVirtualCircuit.speed) && Objects.equals(this.status, vlanVirtualCircuit.status) && Objects.equals(this.tags, vlanVirtualCircuit.tags) && + Objects.equals(this.type, vlanVirtualCircuit.type) && Objects.equals(this.virtualNetwork, vlanVirtualCircuit.virtualNetwork) && Objects.equals(this.vnid, vlanVirtualCircuit.vnid) && Objects.equals(this.createdAt, vlanVirtualCircuit.createdAt) && @@ -558,7 +631,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(bill, description, id, name, nniVlan, port, project, speed, status, tags, virtualNetwork, vnid, createdAt, updatedAt, additionalProperties); + return Objects.hash(bill, description, id, name, nniVlan, port, project, speed, status, tags, type, virtualNetwork, vnid, createdAt, updatedAt, additionalProperties); } @Override @@ -575,6 +648,7 @@ public String toString() { sb.append(" speed: ").append(toIndentedString(speed)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" virtualNetwork: ").append(toIndentedString(virtualNetwork)).append("\n"); sb.append(" vnid: ").append(toIndentedString(vnid)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); @@ -612,6 +686,7 @@ private String toIndentedString(Object o) { openapiFields.add("speed"); openapiFields.add("status"); openapiFields.add("tags"); + openapiFields.add("type"); openapiFields.add("virtual_network"); openapiFields.add("vnid"); openapiFields.add("created_at"); @@ -619,7 +694,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("virtual_network"); } /** @@ -634,13 +708,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in VlanVirtualCircuit is not found in the empty JSON string", VlanVirtualCircuit.openapiRequiredFields.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : VlanVirtualCircuit.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); @@ -666,8 +733,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - // validate the required field `virtual_network` - Href.validateJsonElement(jsonObj.get("virtual_network")); + // validate the optional field `virtual_network` + if (jsonObj.get("virtual_network") != null && !jsonObj.get("virtual_network").isJsonNull()) { + Href.validateJsonElement(jsonObj.get("virtual_network")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/model/VrfVirtualCircuit.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/model/VrfVirtualCircuit.java index e060ae1fa..cd07c05ee 100644 --- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/model/VrfVirtualCircuit.java +++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/model/VrfVirtualCircuit.java @@ -181,6 +181,55 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TAGS) private List tags; + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + VRF("vrf"); + + private Object value; + + TypeEnum(Object value) { + this.value = value; + } + + public Object getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(Object value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextObject(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + public static final String SERIALIZED_NAME_VRF = "vrf"; @SerializedName(SERIALIZED_NAME_VRF) private Vrf vrf; @@ -498,6 +547,27 @@ public void setTags(List tags) { } + public VrfVirtualCircuit type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + public VrfVirtualCircuit vrf(Vrf vrf) { this.vrf = vrf; @@ -629,6 +699,7 @@ public boolean equals(Object o) { Objects.equals(this.status, vrfVirtualCircuit.status) && Objects.equals(this.subnet, vrfVirtualCircuit.subnet) && Objects.equals(this.tags, vrfVirtualCircuit.tags) && + Objects.equals(this.type, vrfVirtualCircuit.type) && Objects.equals(this.vrf, vrfVirtualCircuit.vrf) && Objects.equals(this.createdAt, vrfVirtualCircuit.createdAt) && Objects.equals(this.updatedAt, vrfVirtualCircuit.updatedAt)&& @@ -637,7 +708,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(customerIp, description, id, md5, metalIp, name, port, nniVlan, peerAsn, project, speed, status, subnet, tags, vrf, createdAt, updatedAt, additionalProperties); + return Objects.hash(customerIp, description, id, md5, metalIp, name, port, nniVlan, peerAsn, project, speed, status, subnet, tags, type, vrf, createdAt, updatedAt, additionalProperties); } @Override @@ -658,6 +729,7 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" subnet: ").append(toIndentedString(subnet)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" vrf: ").append(toIndentedString(vrf)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); @@ -698,6 +770,7 @@ private String toIndentedString(Object o) { openapiFields.add("status"); openapiFields.add("subnet"); openapiFields.add("tags"); + openapiFields.add("type"); openapiFields.add("vrf"); openapiFields.add("created_at"); openapiFields.add("updated_at"); diff --git a/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VirtualCircuitTest.java b/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VirtualCircuitTest.java index 70eec4fb3..93aa178ab 100644 --- a/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VirtualCircuitTest.java +++ b/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VirtualCircuitTest.java @@ -125,6 +125,14 @@ public void tagsTest() { // TODO: test tags } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + /** * Test the property 'virtualNetwork' */ diff --git a/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VlanVirtualCircuitTest.java b/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VlanVirtualCircuitTest.java index 7f57851eb..279fa463b 100644 --- a/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VlanVirtualCircuitTest.java +++ b/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VlanVirtualCircuitTest.java @@ -122,6 +122,14 @@ public void tagsTest() { // TODO: test tags } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + /** * Test the property 'virtualNetwork' */ diff --git a/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VrfVirtualCircuitTest.java b/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VrfVirtualCircuitTest.java index 03e6d77a1..51c89666b 100644 --- a/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VrfVirtualCircuitTest.java +++ b/equinix-openapi-metal/src/test/java/com/equinix/openapi/metal/v1/model/VrfVirtualCircuitTest.java @@ -155,6 +155,14 @@ public void tagsTest() { // TODO: test tags } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + /** * Test the property 'vrf' */