Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: API Sync by GitHub Action for @ctreatma #57

Merged
merged 3 commits into from
May 2, 2024
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
8 changes: 7 additions & 1 deletion services/metalv1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,13 @@ Class | Method | HTTP request | Description
*VRFsApi* | [**DeleteVrf**](docs/VRFsApi.md#deletevrf) | **Delete** /vrfs/{id} | Delete the VRF
*VRFsApi* | [**DeleteVrfRouteById**](docs/VRFsApi.md#deletevrfroutebyid) | **Delete** /routes/{id} | Delete a VRF Route
*VRFsApi* | [**FindVrfById**](docs/VRFsApi.md#findvrfbyid) | **Get** /vrfs/{id} | Retrieve a VRF
*VRFsApi* | [**FindVrfIpReservation**](docs/VRFsApi.md#findvrfipreservation) | **Get** /vrfs/{vrf_id}/ips/{id} | Retrieve all VRF IP Reservations in the VRF
*VRFsApi* | [**FindVrfIpReservation**](docs/VRFsApi.md#findvrfipreservation) | **Get** /vrfs/{vrf_id}/ips/{id} | Retrieve the Specified VRF IP Reservation
*VRFsApi* | [**FindVrfIpReservations**](docs/VRFsApi.md#findvrfipreservations) | **Get** /vrfs/{id}/ips | Retrieve all VRF IP Reservations in the VRF
*VRFsApi* | [**FindVrfRouteById**](docs/VRFsApi.md#findvrfroutebyid) | **Get** /routes/{id} | Retrieve a VRF Route
*VRFsApi* | [**FindVrfs**](docs/VRFsApi.md#findvrfs) | **Get** /projects/{id}/vrfs | Retrieve all VRFs in the project
*VRFsApi* | [**GetBgpDynamicNeighbors**](docs/VRFsApi.md#getbgpdynamicneighbors) | **Get** /metal-gateways/{id}/bgp-dynamic-neighbors | List BGP Dynamic Neighbors
*VRFsApi* | [**GetVrfBGPNeighbors**](docs/VRFsApi.md#getvrfbgpneighbors) | **Get** /vrfs/{id}/bgp-neighbors | Retreive BGP neighbor states for the VRF
*VRFsApi* | [**GetVrfLearnedRoutes**](docs/VRFsApi.md#getvrflearnedroutes) | **Get** /vrfs/{id}/learned-routes | Retreive learned L3 routes within the VRF
*VRFsApi* | [**GetVrfRoutes**](docs/VRFsApi.md#getvrfroutes) | **Get** /vrfs/{id}/routes | Retrieve all routes in the VRF
*VRFsApi* | [**UpdateVrf**](docs/VRFsApi.md#updatevrf) | **Put** /vrfs/{id} | Update the VRF
*VRFsApi* | [**UpdateVrfRouteById**](docs/VRFsApi.md#updatevrfroutebyid) | **Put** /routes/{id} | Update a VRF Route
Expand Down Expand Up @@ -514,6 +516,7 @@ Class | Method | HTTP request | Description
- [InstancesBatchCreateInput](docs/InstancesBatchCreateInput.md)
- [InstancesBatchCreateInputBatchesInner](docs/InstancesBatchCreateInputBatchesInner.md)
- [Interconnection](docs/Interconnection.md)
- [InterconnectionFabricProvider](docs/InterconnectionFabricProvider.md)
- [InterconnectionList](docs/InterconnectionList.md)
- [InterconnectionMetroList](docs/InterconnectionMetroList.md)
- [InterconnectionMetroListMetrosInner](docs/InterconnectionMetroListMetrosInner.md)
Expand All @@ -540,6 +543,7 @@ Class | Method | HTTP request | Description
- [LicenseList](docs/LicenseList.md)
- [LicenseUpdateInput](docs/LicenseUpdateInput.md)
- [LineItem](docs/LineItem.md)
- [LineItemAdjustment](docs/LineItemAdjustment.md)
- [Membership](docs/Membership.md)
- [MembershipInput](docs/MembershipInput.md)
- [MembershipList](docs/MembershipList.md)
Expand Down Expand Up @@ -679,12 +683,14 @@ Class | Method | HTTP request | Description
- [VlanVirtualCircuitType](docs/VlanVirtualCircuitType.md)
- [VlanVirtualCircuitUpdateInput](docs/VlanVirtualCircuitUpdateInput.md)
- [Vrf](docs/Vrf.md)
- [VrfBGPNeighbors](docs/VrfBGPNeighbors.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)
- [VrfLearnedRoutes](docs/VrfLearnedRoutes.md)
- [VrfList](docs/VrfList.md)
- [VrfMetalGateway](docs/VrfMetalGateway.md)
- [VrfMetalGatewayCreateInput](docs/VrfMetalGatewayCreateInput.md)
Expand Down
282 changes: 280 additions & 2 deletions services/metalv1/api_vrfs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/metalv1/docs/BGPApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ import (

func main() {
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Project UUID
bgpConfigRequestInput := *openapiclient.NewBgpConfigRequestInput(int32(65000), openapiclient.BgpConfigRequestInput_deployment_type("local")) // BgpConfigRequestInput | BGP config Request to create
bgpConfigRequestInput := *openapiclient.NewBgpConfigRequestInput(int64(65000), openapiclient.BgpConfigRequestInput_deployment_type("local")) // BgpConfigRequestInput | BGP config Request to create
include := []string{"Inner_example"} // []string | Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects. (optional)

configuration := openapiclient.NewConfiguration()
Expand Down
8 changes: 4 additions & 4 deletions services/metalv1/docs/BgpConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Asn** | Pointer to **int32** | Autonomous System Number. ASN is required with Global BGP. With Local BGP the private ASN, 65000, is assigned. | [optional]
**Asn** | Pointer to **int64** | Autonomous System Number. ASN is required with Global BGP. With Local BGP the private ASN, 65000, is assigned. | [optional]
Copy link
Contributor

Choose a reason for hiding this comment

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

Fixes ASN types

**CreatedAt** | Pointer to **time.Time** | | [optional]
**DeploymentType** | Pointer to [**BgpConfigDeploymentType**](BgpConfigDeploymentType.md) | | [optional]
**Href** | Pointer to **string** | | [optional]
Expand Down Expand Up @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set

### GetAsn

`func (o *BgpConfig) GetAsn() int32`
`func (o *BgpConfig) GetAsn() int64`

GetAsn returns the Asn field if non-nil, zero value otherwise.

### GetAsnOk

`func (o *BgpConfig) GetAsnOk() (*int32, bool)`
`func (o *BgpConfig) GetAsnOk() (*int64, bool)`

GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetAsn

`func (o *BgpConfig) SetAsn(v int32)`
`func (o *BgpConfig) SetAsn(v int64)`

SetAsn sets Asn field to given value.

Expand Down
Loading