Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#1569)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 18, 2024
1 parent 2aa66a9 commit 3c4a6ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
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

0 comments on commit 3c4a6ea

Please sign in to comment.