Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 17, 2024
1 parent 438a7c9 commit 39d96df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions intel/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ type IPBelongsToRefType string

const (
IPBelongsToRefTypeHostingProvider IPBelongsToRefType = "hosting_provider"
IPBelongsToRefTypeIsp IPBelongsToRefType = "isp"
IPBelongsToRefTypeISP IPBelongsToRefType = "isp"
IPBelongsToRefTypeOrganization IPBelongsToRefType = "organization"
)

func (r IPBelongsToRefType) IsKnown() bool {
switch r {
case IPBelongsToRefTypeHostingProvider, IPBelongsToRefTypeIsp, IPBelongsToRefTypeOrganization:
case IPBelongsToRefTypeHostingProvider, IPBelongsToRefTypeISP, IPBelongsToRefTypeOrganization:
return true
}
return false
Expand Down
4 changes: 2 additions & 2 deletions zero_trust/dex.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ type NetworkPathSlot struct {
ClientToCfIngressRTTMs int64 `json:"clientToCfIngressRttMs,required,nullable"`
Timestamp string `json:"timestamp,required"`
// Round trip time in ms of the client to ISP mile
ClientToIspRTTMs int64 `json:"clientToIspRttMs,nullable"`
ClientToISPRTTMs int64 `json:"clientToIspRttMs,nullable"`
JSON networkPathSlotJSON `json:"-"`
}

Expand All @@ -109,7 +109,7 @@ type networkPathSlotJSON struct {
ClientToCfEgressRTTMs apijson.Field
ClientToCfIngressRTTMs apijson.Field
Timestamp apijson.Field
ClientToIspRTTMs apijson.Field
ClientToISPRTTMs apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
4 changes: 2 additions & 2 deletions zero_trust/dextraceroutetestresultnetworkpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ const (
DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-app"
DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-cf-egress"
DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-cf-ingress"
DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToIsp DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-isp"
DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToISP DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-isp"
)

func (r DEXTracerouteTestResultNetworkPathGetResponseHopsMile) IsKnown() bool {
switch r {
case DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToIsp:
case DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToISP:
return true
}
return false
Expand Down

0 comments on commit 39d96df

Please sign in to comment.