diff --git a/equinix-openapi-fabric/api/openapi.yaml b/equinix-openapi-fabric/api/openapi.yaml index 8bf7460..2022db2 100644 --- a/equinix-openapi-fabric/api/openapi.yaml +++ b/equinix-openapi-fabric/api/openapi.yaml @@ -32586,7 +32586,6 @@ components: - encapsulation - location - settings - - type type: object PhysicalPort: description: Physical Port specification diff --git a/equinix-openapi-fabric/docs/Port.md b/equinix-openapi-fabric/docs/Port.md index 8f5d707..2df3154 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** | | | -|**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 a782fe8..6315dc0 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 @@ -119,7 +119,7 @@ private static String getDiscriminatorValue(JsonElement readElement, String disc * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. * * @param classByDiscriminatorValue The map of discriminator values to Java classes. - * @param discriminatorValue The value of the OpenAPI discriminator in the input data. + * @param discriminatorValue The value of the OpenAPI discriminator in the input data. * @return The Java class that implements the OpenAPI schema */ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { 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 f7ad39e..bf3d54a 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.Nonnull + @javax.annotation.Nullable public PortType getType() { return type; @@ -1556,7 +1556,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); openapiRequiredFields.add("account"); openapiRequiredFields.add("location"); openapiRequiredFields.add("encapsulation"); diff --git a/patches/spec.fetched.json/20240909-port-required-field-skip.patch b/patches/spec.fetched.json/20240909-port-required-field-skip.patch index 741d8d1..45af3ce 100644 --- a/patches/spec.fetched.json/20240909-port-required-field-skip.patch +++ b/patches/spec.fetched.json/20240909-port-required-field-skip.patch @@ -1,8 +1,8 @@ diff --git a/spec/oas3.fabric.fetched.json b/spec/oas3.fabric.fetched.json -index 36eeef9..2f694fe 100644 +index 36eeef9..192026c 100644 --- a/spec/oas3.fabric.fetched.json +++ b/spec/oas3.fabric.fetched.json -@@ -14537,11 +14537,8 @@ +@@ -14537,13 +14537,9 @@ "Port": { "required": [ "account", @@ -11,6 +11,9 @@ index 36eeef9..2f694fe 100644 "location", - "physicalPortsSpeed", - "physicalPortsType", - "settings", - "type" +- "settings", +- "type" ++ "settings" ], + "type": "object", + "properties": { diff --git a/spec/oas3.fabric.patched.json b/spec/oas3.fabric.patched.json index 8f0f904..ee1725e 100644 --- a/spec/oas3.fabric.patched.json +++ b/spec/oas3.fabric.patched.json @@ -14537,8 +14537,7 @@ "account", "encapsulation", "location", - "settings", - "type" + "settings" ], "type": "object", "properties": {