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

feat: API Sync by GitHub Action (2023-10-12) #165

Merged
merged 3 commits into from
Oct 16, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

This API Sync PR was automated through GitHub Actions workflow_displatch
on 2023-10-12.

  • latest Swagger is fetched
  • patches have been applied
  • generated client has been updated

@@ -18,15 +18,16 @@ Name | Type | Description | Notes
**Status** | Pointer to [**VrfVirtualCircuitStatus**](VrfVirtualCircuitStatus.md) | | [optional]
**Subnet** | Pointer to **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** | Pointer to **[]string** | | [optional]
**Vrf** | Pointer to [**Vrf**](Vrf.md) | | [optional]
**Type** | Pointer to [**VrfIpReservationType**](VrfIpReservationType.md) | | [optional]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that's weird. Unlike the Java generator, the Go generator doesn't collapse the virtual circuit enums, but it does see a different model with the same contents (VrfIpReservationType is also an enum with vrf as the only allowed value) and use that instead of creating a dedicated, duplicate model.

The end result is functionally the same but it might be nice to be more intentional about it...maybe a single VrfType.yaml schema that we ref in multiple places in the schema, or a bunch of duplicate <thing>Type.yaml to force generators to create duplicate models.

@ctreatma ctreatma merged commit cd035c7 into main Oct 16, 2023
@ctreatma ctreatma deleted the sync/gh-1697144146 branch October 16, 2023 15:48
@github-actions
Copy link
Contributor Author

This PR is included in version 0.25.0 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant