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): update via SDK Studio #1569

Merged
merged 1 commit into from
Mar 18, 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
18 changes: 9 additions & 9 deletions radar/bgproute.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (r bgpRouteMoasResponseMoaJSON) RawJSON() string {
type BGPRouteMoasResponseMoasOrigin struct {
Origin int64 `json:"origin,required"`
PeerCount int64 `json:"peer_count,required"`
RpkiValidation string `json:"rpki_validation,required"`
RPKIValidation string `json:"rpki_validation,required"`
JSON bgpRouteMoasResponseMoasOriginJSON `json:"-"`
}

Expand All @@ -168,7 +168,7 @@ type BGPRouteMoasResponseMoasOrigin struct {
type bgpRouteMoasResponseMoasOriginJSON struct {
Origin apijson.Field
PeerCount apijson.Field
RpkiValidation apijson.Field
RPKIValidation apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -233,7 +233,7 @@ type BGPRoutePfx2asResponsePrefixOrigin struct {
Origin int64 `json:"origin,required"`
PeerCount int64 `json:"peer_count,required"`
Prefix string `json:"prefix,required"`
RpkiValidation string `json:"rpki_validation,required"`
RPKIValidation string `json:"rpki_validation,required"`
JSON bgpRoutePfx2asResponsePrefixOriginJSON `json:"-"`
}

Expand All @@ -243,7 +243,7 @@ type bgpRoutePfx2asResponsePrefixOriginJSON struct {
Origin apijson.Field
PeerCount apijson.Field
Prefix apijson.Field
RpkiValidation apijson.Field
RPKIValidation apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -537,7 +537,7 @@ type BGPRoutePfx2asParams struct {
// Lookup origin ASNs of the given prefix
Prefix param.Field[string] `query:"prefix"`
// Return only results with matching rpki status: valid, invalid or unknown
RpkiStatus param.Field[BGPRoutePfx2asParamsRpkiStatus] `query:"rpkiStatus"`
RPKIStatus param.Field[BGPRoutePfx2asParamsRPKIStatus] `query:"rpkiStatus"`
}

// URLQuery serializes [BGPRoutePfx2asParams]'s query parameters as `url.Values`.
Expand All @@ -557,12 +557,12 @@ const (
)

// Return only results with matching rpki status: valid, invalid or unknown
type BGPRoutePfx2asParamsRpkiStatus string
type BGPRoutePfx2asParamsRPKIStatus string

const (
BGPRoutePfx2asParamsRpkiStatusValid BGPRoutePfx2asParamsRpkiStatus = "VALID"
BGPRoutePfx2asParamsRpkiStatusInvalid BGPRoutePfx2asParamsRpkiStatus = "INVALID"
BGPRoutePfx2asParamsRpkiStatusUnknown BGPRoutePfx2asParamsRpkiStatus = "UNKNOWN"
BGPRoutePfx2asParamsRPKIStatusValid BGPRoutePfx2asParamsRPKIStatus = "VALID"
BGPRoutePfx2asParamsRPKIStatusInvalid BGPRoutePfx2asParamsRPKIStatus = "INVALID"
BGPRoutePfx2asParamsRPKIStatusUnknown BGPRoutePfx2asParamsRPKIStatus = "UNKNOWN"
)

type BGPRoutePfx2asResponseEnvelope struct {
Expand Down
2 changes: 1 addition & 1 deletion radar/bgproute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestBGPRoutePfx2asWithOptionalParams(t *testing.T) {
LongestPrefixMatch: cloudflare.F(true),
Origin: cloudflare.F(int64(0)),
Prefix: cloudflare.F("1.1.1.0/24"),
RpkiStatus: cloudflare.F(radar.BGPRoutePfx2asParamsRpkiStatusInvalid),
RPKIStatus: cloudflare.F(radar.BGPRoutePfx2asParamsRPKIStatusInvalid),
})
if err != nil {
var apierr *cloudflare.Error
Expand Down