Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

feat: generate inline enums #145

Merged
merged 5 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,18 +392,25 @@ Class | Method | HTTP request | Description
- [AuthTokenProject](docs/AuthTokenProject.md)
- [AuthTokenUser](docs/AuthTokenUser.md)
- [BGPSessionInput](docs/BGPSessionInput.md)
- [BGPSessionInputAddressFamily](docs/BGPSessionInputAddressFamily.md)
- [Batch](docs/Batch.md)
- [BatchesList](docs/BatchesList.md)
- [BgpConfig](docs/BgpConfig.md)
- [BgpConfigDeploymentType](docs/BgpConfigDeploymentType.md)
- [BgpConfigRequestInput](docs/BgpConfigRequestInput.md)
- [BgpConfigRequestInputDeploymentType](docs/BgpConfigRequestInputDeploymentType.md)
- [BgpConfigStatus](docs/BgpConfigStatus.md)
- [BgpDynamicNeighbor](docs/BgpDynamicNeighbor.md)
- [BgpDynamicNeighborCreateInput](docs/BgpDynamicNeighborCreateInput.md)
- [BgpDynamicNeighborList](docs/BgpDynamicNeighborList.md)
- [BgpDynamicNeighborState](docs/BgpDynamicNeighborState.md)
- [BgpNeighborData](docs/BgpNeighborData.md)
- [BgpRoute](docs/BgpRoute.md)
- [BgpSession](docs/BgpSession.md)
- [BgpSessionAddressFamily](docs/BgpSessionAddressFamily.md)
- [BgpSessionList](docs/BgpSessionList.md)
- [BgpSessionNeighbors](docs/BgpSessionNeighbors.md)
- [BgpSessionStatus](docs/BgpSessionStatus.md)
- [BondPortData](docs/BondPortData.md)
- [CapacityCheckPerFacilityInfo](docs/CapacityCheckPerFacilityInfo.md)
- [CapacityCheckPerFacilityList](docs/CapacityCheckPerFacilityList.md)
Expand All @@ -420,18 +427,26 @@ Class | Method | HTTP request | Description
- [CreateOrganizationInterconnectionRequest](docs/CreateOrganizationInterconnectionRequest.md)
- [CreateSelfServiceReservationRequest](docs/CreateSelfServiceReservationRequest.md)
- [CreateSelfServiceReservationRequestPeriod](docs/CreateSelfServiceReservationRequestPeriod.md)
- [CreateSelfServiceReservationRequestPeriodCount](docs/CreateSelfServiceReservationRequestPeriodCount.md)
- [CreateSelfServiceReservationRequestPeriodUnit](docs/CreateSelfServiceReservationRequestPeriodUnit.md)
- [DedicatedPortCreateInput](docs/DedicatedPortCreateInput.md)
- [DedicatedPortCreateInputMode](docs/DedicatedPortCreateInputMode.md)
- [DedicatedPortCreateInputType](docs/DedicatedPortCreateInputType.md)
- [Device](docs/Device.md)
- [DeviceActionInput](docs/DeviceActionInput.md)
- [DeviceActionInputType](docs/DeviceActionInputType.md)
- [DeviceActionsInner](docs/DeviceActionsInner.md)
- [DeviceCreateInFacilityInput](docs/DeviceCreateInFacilityInput.md)
- [DeviceCreateInMetroInput](docs/DeviceCreateInMetroInput.md)
- [DeviceCreateInput](docs/DeviceCreateInput.md)
- [DeviceCreateInputBillingCycle](docs/DeviceCreateInputBillingCycle.md)
- [DeviceCreatedBy](docs/DeviceCreatedBy.md)
- [DeviceHealthRollup](docs/DeviceHealthRollup.md)
- [DeviceHealthRollupHealthRollup](docs/DeviceHealthRollupHealthRollup.md)
- [DeviceList](docs/DeviceList.md)
- [DeviceMetro](docs/DeviceMetro.md)
- [DeviceProjectLite](docs/DeviceProjectLite.md)
- [DeviceState](docs/DeviceState.md)
- [DeviceUpdateInput](docs/DeviceUpdateInput.md)
- [DeviceUsage](docs/DeviceUsage.md)
- [DeviceUsageList](docs/DeviceUsageList.md)
Expand All @@ -443,12 +458,27 @@ Class | Method | HTTP request | Description
- [Event](docs/Event.md)
- [EventList](docs/EventList.md)
- [FabricServiceToken](docs/FabricServiceToken.md)
- [FabricServiceTokenRole](docs/FabricServiceTokenRole.md)
- [FabricServiceTokenServiceTokenType](docs/FabricServiceTokenServiceTokenType.md)
- [FabricServiceTokenState](docs/FabricServiceTokenState.md)
- [Facility](docs/Facility.md)
- [FacilityFeaturesInner](docs/FacilityFeaturesInner.md)
- [FacilityInput](docs/FacilityInput.md)
- [FacilityList](docs/FacilityList.md)
- [Filesystem](docs/Filesystem.md)
- [FindFacilitiesIncludeParameterInner](docs/FindFacilitiesIncludeParameterInner.md)
- [FindIPAddressById200Response](docs/FindIPAddressById200Response.md)
- [FindIPAvailabilitiesCidrParameter](docs/FindIPAvailabilitiesCidrParameter.md)
- [FindIPReservationsTypesParameterInner](docs/FindIPReservationsTypesParameterInner.md)
- [FindMetalGatewayById200Response](docs/FindMetalGatewayById200Response.md)
- [FindOrganizationDevicesCategoriesParameterInner](docs/FindOrganizationDevicesCategoriesParameterInner.md)
- [FindOrganizationsPersonalParameter](docs/FindOrganizationsPersonalParameter.md)
- [FindPlansTypeParameter](docs/FindPlansTypeParameter.md)
- [FindProjectHardwareReservationsProvisionableParameter](docs/FindProjectHardwareReservationsProvisionableParameter.md)
- [FindProjectHardwareReservationsStateParameter](docs/FindProjectHardwareReservationsStateParameter.md)
- [FindTrafficBucketParameter](docs/FindTrafficBucketParameter.md)
- [FindTrafficDirectionParameter](docs/FindTrafficDirectionParameter.md)
- [FindTrafficIntervalParameter](docs/FindTrafficIntervalParameter.md)
- [FindTrafficTimeframeParameter](docs/FindTrafficTimeframeParameter.md)
- [FirmwareSet](docs/FirmwareSet.md)
- [FirmwareSetListResponse](docs/FirmwareSetListResponse.md)
Expand All @@ -459,10 +489,12 @@ Class | Method | HTTP request | Description
- [HardwareReservationList](docs/HardwareReservationList.md)
- [Href](docs/Href.md)
- [IPAddress](docs/IPAddress.md)
- [IPAddressAddressFamily](docs/IPAddressAddressFamily.md)
- [IPAssignment](docs/IPAssignment.md)
- [IPAssignmentInput](docs/IPAssignmentInput.md)
- [IPAssignmentList](docs/IPAssignmentList.md)
- [IPAssignmentMetro](docs/IPAssignmentMetro.md)
- [IPAssignmentState](docs/IPAssignmentState.md)
- [IPAssignmentUpdateInput](docs/IPAssignmentUpdateInput.md)
- [IPAvailabilitiesList](docs/IPAvailabilitiesList.md)
- [IPReservation](docs/IPReservation.md)
Expand All @@ -471,16 +503,23 @@ Class | Method | HTTP request | Description
- [IPReservationListIpAddressesInner](docs/IPReservationListIpAddressesInner.md)
- [IPReservationMetro](docs/IPReservationMetro.md)
- [IPReservationRequestInput](docs/IPReservationRequestInput.md)
- [IPReservationType](docs/IPReservationType.md)
- [InstancesBatchCreateInput](docs/InstancesBatchCreateInput.md)
- [InstancesBatchCreateInputBatchesInner](docs/InstancesBatchCreateInputBatchesInner.md)
- [Interconnection](docs/Interconnection.md)
- [InterconnectionList](docs/InterconnectionList.md)
- [InterconnectionMode](docs/InterconnectionMode.md)
- [InterconnectionPort](docs/InterconnectionPort.md)
- [InterconnectionPortList](docs/InterconnectionPortList.md)
- [InterconnectionPortRole](docs/InterconnectionPortRole.md)
- [InterconnectionPortStatus](docs/InterconnectionPortStatus.md)
- [InterconnectionRedundancy](docs/InterconnectionRedundancy.md)
- [InterconnectionType](docs/InterconnectionType.md)
- [InterconnectionUpdateInput](docs/InterconnectionUpdateInput.md)
- [Invitation](docs/Invitation.md)
- [InvitationInput](docs/InvitationInput.md)
- [InvitationList](docs/InvitationList.md)
- [InvitationRolesInner](docs/InvitationRolesInner.md)
- [Invoice](docs/Invoice.md)
- [InvoiceList](docs/InvoiceList.md)
- [License](docs/License.md)
Expand All @@ -502,6 +541,7 @@ Class | Method | HTTP request | Description
- [MetalGatewayList](docs/MetalGatewayList.md)
- [MetalGatewayListMetalGatewaysInner](docs/MetalGatewayListMetalGatewaysInner.md)
- [MetalGatewayLite](docs/MetalGatewayLite.md)
- [MetalGatewayState](docs/MetalGatewayState.md)
- [Metro](docs/Metro.md)
- [MetroInput](docs/MetroInput.md)
- [MetroList](docs/MetroList.md)
Expand All @@ -524,30 +564,42 @@ Class | Method | HTTP request | Description
- [PlanAvailableInInner](docs/PlanAvailableInInner.md)
- [PlanAvailableInInnerPrice](docs/PlanAvailableInInnerPrice.md)
- [PlanAvailableInMetrosInner](docs/PlanAvailableInMetrosInner.md)
- [PlanDeploymentTypesInner](docs/PlanDeploymentTypesInner.md)
- [PlanList](docs/PlanList.md)
- [PlanSpecs](docs/PlanSpecs.md)
- [PlanSpecsCpusInner](docs/PlanSpecsCpusInner.md)
- [PlanSpecsDrivesInner](docs/PlanSpecsDrivesInner.md)
- [PlanSpecsDrivesInnerCategory](docs/PlanSpecsDrivesInnerCategory.md)
- [PlanSpecsDrivesInnerType](docs/PlanSpecsDrivesInnerType.md)
- [PlanSpecsFeatures](docs/PlanSpecsFeatures.md)
- [PlanSpecsMemory](docs/PlanSpecsMemory.md)
- [PlanSpecsNicsInner](docs/PlanSpecsNicsInner.md)
- [PlanSpecsNicsInnerType](docs/PlanSpecsNicsInnerType.md)
- [PlanType](docs/PlanType.md)
- [Port](docs/Port.md)
- [PortAssignInput](docs/PortAssignInput.md)
- [PortConvertLayer3Input](docs/PortConvertLayer3Input.md)
- [PortConvertLayer3InputRequestIpsInner](docs/PortConvertLayer3InputRequestIpsInner.md)
- [PortData](docs/PortData.md)
- [PortNetworkType](docs/PortNetworkType.md)
- [PortType](docs/PortType.md)
- [PortVlanAssignment](docs/PortVlanAssignment.md)
- [PortVlanAssignmentBatch](docs/PortVlanAssignmentBatch.md)
- [PortVlanAssignmentBatchCreateInput](docs/PortVlanAssignmentBatchCreateInput.md)
- [PortVlanAssignmentBatchCreateInputVlanAssignmentsInner](docs/PortVlanAssignmentBatchCreateInputVlanAssignmentsInner.md)
- [PortVlanAssignmentBatchList](docs/PortVlanAssignmentBatchList.md)
- [PortVlanAssignmentBatchState](docs/PortVlanAssignmentBatchState.md)
- [PortVlanAssignmentBatchVlanAssignmentsInner](docs/PortVlanAssignmentBatchVlanAssignmentsInner.md)
- [PortVlanAssignmentBatchVlanAssignmentsInnerState](docs/PortVlanAssignmentBatchVlanAssignmentsInnerState.md)
- [PortVlanAssignmentList](docs/PortVlanAssignmentList.md)
- [PortVlanAssignmentState](docs/PortVlanAssignmentState.md)
- [Project](docs/Project.md)
- [ProjectCreateFromRootInput](docs/ProjectCreateFromRootInput.md)
- [ProjectCreateFromRootInputType](docs/ProjectCreateFromRootInputType.md)
- [ProjectCreateInput](docs/ProjectCreateInput.md)
- [ProjectIdName](docs/ProjectIdName.md)
- [ProjectList](docs/ProjectList.md)
- [ProjectType](docs/ProjectType.md)
- [ProjectUpdateInput](docs/ProjectUpdateInput.md)
- [ProjectUsage](docs/ProjectUsage.md)
- [ProjectUsageList](docs/ProjectUsageList.md)
Expand Down Expand Up @@ -580,6 +632,7 @@ Class | Method | HTTP request | Description
- [SpotPricesReport](docs/SpotPricesReport.md)
- [Storage](docs/Storage.md)
- [SupportRequestInput](docs/SupportRequestInput.md)
- [SupportRequestInputPriority](docs/SupportRequestInputPriority.md)
- [TransferRequest](docs/TransferRequest.md)
- [TransferRequestInput](docs/TransferRequestInput.md)
- [TransferRequestList](docs/TransferRequestList.md)
Expand All @@ -600,25 +653,32 @@ Class | Method | HTTP request | Description
- [VirtualNetworkCreateInput](docs/VirtualNetworkCreateInput.md)
- [VirtualNetworkList](docs/VirtualNetworkList.md)
- [VlanFabricVcCreateInput](docs/VlanFabricVcCreateInput.md)
- [VlanFabricVcCreateInputServiceTokenType](docs/VlanFabricVcCreateInputServiceTokenType.md)
- [VlanFabricVcCreateInputType](docs/VlanFabricVcCreateInputType.md)
- [VlanVirtualCircuit](docs/VlanVirtualCircuit.md)
- [VlanVirtualCircuitCreateInput](docs/VlanVirtualCircuitCreateInput.md)
- [VlanVirtualCircuitStatus](docs/VlanVirtualCircuitStatus.md)
- [VlanVirtualCircuitUpdateInput](docs/VlanVirtualCircuitUpdateInput.md)
- [Vrf](docs/Vrf.md)
- [VrfCreateInput](docs/VrfCreateInput.md)
- [VrfFabricVcCreateInput](docs/VrfFabricVcCreateInput.md)
- [VrfIpReservation](docs/VrfIpReservation.md)
- [VrfIpReservationCreateInput](docs/VrfIpReservationCreateInput.md)
- [VrfIpReservationList](docs/VrfIpReservationList.md)
- [VrfIpReservationType](docs/VrfIpReservationType.md)
- [VrfList](docs/VrfList.md)
- [VrfMetalGateway](docs/VrfMetalGateway.md)
- [VrfMetalGatewayCreateInput](docs/VrfMetalGatewayCreateInput.md)
- [VrfRoute](docs/VrfRoute.md)
- [VrfRouteCreateInput](docs/VrfRouteCreateInput.md)
- [VrfRouteList](docs/VrfRouteList.md)
- [VrfRouteStatus](docs/VrfRouteStatus.md)
- [VrfRouteType](docs/VrfRouteType.md)
- [VrfRouteUpdateInput](docs/VrfRouteUpdateInput.md)
- [VrfUpdateInput](docs/VrfUpdateInput.md)
- [VrfVirtualCircuit](docs/VrfVirtualCircuit.md)
- [VrfVirtualCircuitCreateInput](docs/VrfVirtualCircuitCreateInput.md)
- [VrfVirtualCircuitStatus](docs/VrfVirtualCircuitStatus.md)
- [VrfVirtualCircuitUpdateInput](docs/VrfVirtualCircuitUpdateInput.md)


Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,10 @@ codegen:
${OPENAPI_GENERATOR} generate -g go \
--package-name ${PACKAGE_MAJOR} \
--http-user-agent "${GIT_REPO}/${PACKAGE_VERSION}" \
--api-name-suffix Api \
-p packageVersion=${PACKAGE_VERSION} \
-p isGoSubmodule=true \
-p disallowAdditionalPropertiesIfNotPresent=false \
--git-user-id ${GIT_ORG} \
--git-repo-id ${GIT_REPO}/${PACKAGE_PREFIX} \
-t /local/templates \
-c /local/config/openapi-generator.json \
-o /local/${PACKAGE_PREFIX}/${PACKAGE_MAJOR} \
-i /local/${SPEC_PATCHED_DIR}/${SPEC_ROOT_FILE}

Expand Down
Loading
Loading