diff --git a/equinix-openapi-fabric/docs/Port.md b/equinix-openapi-fabric/docs/Port.md index 2df3154..add8711 100644 --- a/equinix-openapi-fabric/docs/Port.md +++ b/equinix-openapi-fabric/docs/Port.md @@ -6,48 +6,48 @@ Port specification ## Properties -| Name | Type | Description | Notes | -|----------------------------|---------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|-----------------------| -| **type** | **PortType** | | [optional] | -| **id** | **Integer** | Equinix assigned response attribute for Port Id | [optional] | -| **href** | **URI** | Equinix assigned response attribute for an absolute URL that is the subject of the link's context. | [optional] [readonly] | -| **uuid** | **UUID** | Equinix assigned response attribute for port identifier | [optional] | -| **name** | **String** | Equinix assigned response attribute for Port name | [optional] | -| **description** | **String** | Equinix assigned response attribute for Port description | [optional] | -| **physicalPortsSpeed** | **Integer** | Physical Ports Speed in Mbps | [optional] | -| **connectionsCount** | **Integer** | Equinix assigned response attribute for Connection count | [optional] | -| **physicalPortsType** | [**PhysicalPortsTypeEnum**](#PhysicalPortsTypeEnum) | Physical Ports Type | [optional] | -| **physicalPortsCount** | **Integer** | | [optional] | -| **connectivitySourceType** | [**ConnectivitySourceTypeEnum**](#ConnectivitySourceTypeEnum) | Port connectivity type | [optional] | -| **bmmrType** | [**BmmrTypeEnum**](#BmmrTypeEnum) | | [optional] | -| **project** | [**Project**](Project.md) | | [optional] | -| **state** | **PortState** | | [optional] | -| **order** | [**PortOrder**](PortOrder.md) | | [optional] | -| **cvpId** | **String** | Equinix assigned response attribute for Unique ID for a virtual port. | [optional] | -| **operation** | [**PortOperation**](PortOperation.md) | | [optional] | -| **account** | [**SimplifiedAccount**](SimplifiedAccount.md) | | | -| **changelog** | [**Changelog**](Changelog.md) | | [optional] | -| **serviceType** | [**ServiceTypeEnum**](#ServiceTypeEnum) | Port service Type | [optional] | -| **bandwidth** | **Integer** | Equinix assigned response attribute for Port bandwidth in Mbps | [optional] | -| **availableBandwidth** | **Integer** | Equinix assigned response attribute for Port available bandwidth in Mbps | [optional] | -| **usedBandwidth** | **Integer** | Equinix assigned response attribute for Port used bandwidth in Mbps | [optional] | -| **location** | [**SimplifiedLocation**](SimplifiedLocation.md) | | | -| **device** | [**PortDevice**](PortDevice.md) | | [optional] | -| **_interface** | [**PortInterface**](PortInterface.md) | | [optional] | -| **demarcationPointIbx** | **String** | A-side/Equinix ibx | [optional] | -| **tetherIbx** | **String** | z-side/Equinix ibx | [optional] | -| **demarcationPoint** | [**PortDemarcationPoint**](PortDemarcationPoint.md) | | [optional] | -| **redundancy** | [**PortRedundancy**](PortRedundancy.md) | | [optional] | -| **encapsulation** | [**PortEncapsulation**](PortEncapsulation.md) | | | -| **lagEnabled** | **Boolean** | If LAG enabled | [optional] | -| **lag** | [**PortLag**](PortLag.md) | | [optional] | -| **asn** | **Integer** | Port ASN | [optional] | -| **settings** | [**PortSettings**](PortSettings.md) | | | -| **physicalPortQuantity** | **Integer** | Number of physical ports | [optional] | -| **notifications** | [**List<PortNotification>**](PortNotification.md) | Notification preferences | [optional] | -| **additionalInfo** | [**List<PortAdditionalInfo>**](PortAdditionalInfo.md) | Port additional information | [optional] | -| **physicalPorts** | [**List<PhysicalPort>**](PhysicalPort.md) | Physical ports that implement this port | [optional] | -| **loas** | [**List<PortLoa>**](PortLoa.md) | Port Loas | [optional] | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **PortType** | | [optional] | +|**id** | **Integer** | Equinix assigned response attribute for Port Id | [optional] | +|**href** | **URI** | Equinix assigned response attribute for an absolute URL that is the subject of the link's context. | [optional] [readonly] | +|**uuid** | **UUID** | Equinix assigned response attribute for port identifier | [optional] | +|**name** | **String** | Equinix assigned response attribute for Port name | [optional] | +|**description** | **String** | Equinix assigned response attribute for Port description | [optional] | +|**physicalPortsSpeed** | **Integer** | Physical Ports Speed in Mbps | [optional] | +|**connectionsCount** | **Integer** | Equinix assigned response attribute for Connection count | [optional] | +|**physicalPortsType** | [**PhysicalPortsTypeEnum**](#PhysicalPortsTypeEnum) | Physical Ports Type | [optional] | +|**physicalPortsCount** | **Integer** | | [optional] | +|**connectivitySourceType** | [**ConnectivitySourceTypeEnum**](#ConnectivitySourceTypeEnum) | Port connectivity type | [optional] | +|**bmmrType** | [**BmmrTypeEnum**](#BmmrTypeEnum) | | [optional] | +|**project** | [**Project**](Project.md) | | [optional] | +|**state** | **PortState** | | [optional] | +|**order** | [**PortOrder**](PortOrder.md) | | [optional] | +|**cvpId** | **String** | Equinix assigned response attribute for Unique ID for a virtual port. | [optional] | +|**operation** | [**PortOperation**](PortOperation.md) | | [optional] | +|**account** | [**SimplifiedAccount**](SimplifiedAccount.md) | | | +|**changelog** | [**Changelog**](Changelog.md) | | [optional] | +|**serviceType** | [**ServiceTypeEnum**](#ServiceTypeEnum) | Port service Type | [optional] | +|**bandwidth** | **Integer** | Equinix assigned response attribute for Port bandwidth in Mbps | [optional] | +|**availableBandwidth** | **Integer** | Equinix assigned response attribute for Port available bandwidth in Mbps | [optional] | +|**usedBandwidth** | **Integer** | Equinix assigned response attribute for Port used bandwidth in Mbps | [optional] | +|**location** | [**SimplifiedLocation**](SimplifiedLocation.md) | | | +|**device** | [**PortDevice**](PortDevice.md) | | [optional] | +|**_interface** | [**PortInterface**](PortInterface.md) | | [optional] | +|**demarcationPointIbx** | **String** | A-side/Equinix ibx | [optional] | +|**tetherIbx** | **String** | z-side/Equinix ibx | [optional] | +|**demarcationPoint** | [**PortDemarcationPoint**](PortDemarcationPoint.md) | | [optional] | +|**redundancy** | [**PortRedundancy**](PortRedundancy.md) | | [optional] | +|**encapsulation** | [**PortEncapsulation**](PortEncapsulation.md) | | | +|**lagEnabled** | **Boolean** | If LAG enabled | [optional] | +|**lag** | [**PortLag**](PortLag.md) | | [optional] | +|**asn** | **Integer** | Port ASN | [optional] | +|**settings** | [**PortSettings**](PortSettings.md) | | | +|**physicalPortQuantity** | **Integer** | Number of physical ports | [optional] | +|**notifications** | [**List<PortNotification>**](PortNotification.md) | Notification preferences | [optional] | +|**additionalInfo** | [**List<PortAdditionalInfo>**](PortAdditionalInfo.md) | Port additional information | [optional] | +|**physicalPorts** | [**List<PhysicalPort>**](PhysicalPort.md) | Physical ports that implement this port | [optional] | +|**loas** | [**List<PortLoa>**](PortLoa.md) | Port Loas | [optional] | diff --git a/equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/JSON.java b/equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/JSON.java index 6315dc0..6bacc54 100644 --- a/equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/JSON.java +++ b/equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/JSON.java @@ -64,8 +64,8 @@ public class JSON { private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); private static final StdDateFormat sdf = new StdDateFormat() - .withTimeZone(TimeZone.getTimeZone(ZoneId.systemDefault())) - .withColonInTimeZone(true); + .withTimeZone(TimeZone.getTimeZone(ZoneId.systemDefault())) + .withColonInTimeZone(true); private static final DateTimeFormatter dtf = DateTimeFormatter.ISO_OFFSET_DATE_TIME; @SuppressWarnings("unchecked") @@ -84,7 +84,7 @@ public Class getClas return getClassByDiscriminator(classByDiscriminatorValue, getDiscriminatorValue(readElement, "type")); } - }) + }) .registerTypeSelector(com.equinix.openapi.fabric.v4.model.MetroError.class, new TypeSelector() { @Override public Class getClassForElement(JsonElement readElement) { @@ -93,7 +93,7 @@ public Class getClassF return getClassByDiscriminator(classByDiscriminatorValue, getDiscriminatorValue(readElement, "errorCode")); } - }) + }) .registerTypeSelector(com.equinix.openapi.fabric.v4.model.PriceError.class, new TypeSelector() { @Override public Class getClassForElement(JsonElement readElement) { @@ -102,7 +102,8 @@ public Class getClassF return getClassByDiscriminator(classByDiscriminatorValue, getDiscriminatorValue(readElement, "errorCode")); } - }); + }) + ; GsonBuilder builder = fireBuilder.createGsonBuilder(); return builder; } @@ -428,8 +429,8 @@ public Enum deserialize(JsonElement json, java.lang.reflect.Type type, JsonDeser gsonBuilder.registerTypeAdapterFactory(new com.equinix.openapi.fabric.v4.model.VirtualPortPrice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.equinix.openapi.fabric.v4.model.VirtualPortRedundancy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.equinix.openapi.fabric.v4.model.VpicInterface.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapter(PortEncapsulation.TypeEnum.class, new UppercaseEnumAdapter()); - gsonBuilder.registerTypeAdapter(PortDeviceRedundancy.PriorityEnum.class, new UppercaseEnumAdapter()); + gsonBuilder.registerTypeAdapter(PortEncapsulation.TypeEnum.class,new UppercaseEnumAdapter()); + gsonBuilder.registerTypeAdapter(PortDeviceRedundancy.PriorityEnum.class,new UppercaseEnumAdapter()); gson = gsonBuilder.setPrettyPrinting().create(); } @@ -560,7 +561,7 @@ public OffsetDateTime read(JsonReader in) throws IOException { default: String date = in.nextString(); if (date.endsWith("+0000")) { - date = date.substring(0, date.length() - 5) + "Z"; + date = date.substring(0, date.length()-5) + "Z"; } return OffsetDateTime.parse(date, formatter); } @@ -625,8 +626,7 @@ public static class SqlDateTypeAdapter extends TypeAdapter { private DateFormat dateFormat; - public SqlDateTypeAdapter() { - } + public SqlDateTypeAdapter() {} public SqlDateTypeAdapter(DateFormat dateFormat) { this.dateFormat = dateFormat; @@ -679,8 +679,7 @@ public static class DateTypeAdapter extends TypeAdapter { private DateFormat dateFormat; - public DateTypeAdapter() { - } + public DateTypeAdapter() {} public DateTypeAdapter(DateFormat dateFormat) { this.dateFormat = dateFormat; diff --git a/equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/v4/model/Port.java b/equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/v4/model/Port.java index bf3d54a..d9e50a2 100644 --- a/equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/v4/model/Port.java +++ b/equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/v4/model/Port.java @@ -446,7 +446,7 @@ public Port type(PortType type) { * Get type * @return type **/ - @javax.annotation.Nullable + @javax.annotation.Nullable public PortType getType() { return type;