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): OpenAPI spec update via Stainless API #1738

Merged
merged 1 commit into from
Apr 10, 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
2 changes: 2 additions & 0 deletions radar/bgproute.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ type BGPRouteTimeseriesParams struct {
DateStart param.Field[time.Time] `query:"dateStart" format:"date-time"`
// Format results are returned in.
Format param.Field[BGPRouteTimeseriesParamsFormat] `query:"format"`
// Include data delay meta information
IncludeDelay param.Field[bool] `query:"includeDelay"`
// Location Alpha2 code.
Location param.Field[string] `query:"location"`
}
Expand Down
13 changes: 7 additions & 6 deletions radar/bgproute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,13 @@ func TestBGPRouteTimeseriesWithOptionalParams(t *testing.T) {
option.WithAPIEmail("[email protected]"),
)
_, err := client.Radar.BGP.Routes.Timeseries(context.TODO(), radar.BGPRouteTimeseriesParams{
ASN: cloudflare.F(int64(0)),
DateEnd: cloudflare.F(time.Now()),
DateRange: cloudflare.F(radar.BGPRouteTimeseriesParamsDateRange7d),
DateStart: cloudflare.F(time.Now()),
Format: cloudflare.F(radar.BGPRouteTimeseriesParamsFormatJson),
Location: cloudflare.F("US"),
ASN: cloudflare.F(int64(0)),
DateEnd: cloudflare.F(time.Now()),
DateRange: cloudflare.F(radar.BGPRouteTimeseriesParamsDateRange7d),
DateStart: cloudflare.F(time.Now()),
Format: cloudflare.F(radar.BGPRouteTimeseriesParamsFormatJson),
IncludeDelay: cloudflare.F(true),
Location: cloudflare.F("US"),
})
if err != nil {
var apierr *cloudflare.Error
Expand Down