Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 16, 2024
1 parent 5a77eae commit ab55f0c
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 26 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ RUN apt-get update && apt-get install -y \
vim \
&& apt-get clean autoclean

# Ensure UTF-8 encoding
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

ENV GOPATH=/go
ENV PATH=$GOPATH/bin:$PATH

Expand Down
8 changes: 4 additions & 4 deletions zero_trust/dexfleetstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ func (r DEXFleetStatusLiveParams) URLQuery() (v url.Values) {
}

type DEXFleetStatusLiveResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result DEXFleetStatusLiveResponse `json:"result,required"`
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success DEXFleetStatusLiveResponseEnvelopeSuccess `json:"success,required"`
Result DEXFleetStatusLiveResponse `json:"result"`
JSON dexFleetStatusLiveResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -163,8 +163,8 @@ type DEXFleetStatusLiveResponseEnvelope struct {
type dexFleetStatusLiveResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
4 changes: 2 additions & 2 deletions zero_trust/dexhttptest.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ func (r DexhttpTestGetParamsInterval) IsKnown() bool {
type DexhttpTestGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result HTTPDetails `json:"result,required"`
// Whether the API call was successful
Success DexhttpTestGetResponseEnvelopeSuccess `json:"success,required"`
Result HTTPDetails `json:"result"`
JSON dexhttpTestGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -388,8 +388,8 @@ type DexhttpTestGetResponseEnvelope struct {
type dexhttpTestGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
8 changes: 4 additions & 4 deletions zero_trust/dexhttptestpercentile.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ func (r DEXHTTPTestPercentileGetParams) URLQuery() (v url.Values) {
}

type DexhttpTestPercentileGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result HTTPDetailsPercentiles `json:"result,required"`
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success DexhttpTestPercentileGetResponseEnvelopeSuccess `json:"success,required"`
Result HTTPDetailsPercentiles `json:"result"`
JSON dexhttpTestPercentileGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -163,8 +163,8 @@ type DexhttpTestPercentileGetResponseEnvelope struct {
type dexhttpTestPercentileGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
4 changes: 2 additions & 2 deletions zero_trust/dextest.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,9 @@ func (r testsTestsTracerouteResultsByColoRoundTripTimeOverTimeValueJSON) RawJSON
type DEXTestListResponse struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Tests `json:"result,required"`
// Whether the API call was successful
Success DEXTestListResponseSuccess `json:"success,required"`
Result Tests `json:"result"`
ResultInfo DEXTestListResponseResultInfo `json:"result_info"`
JSON dexTestListResponseJSON `json:"-"`
}
Expand All @@ -715,8 +715,8 @@ type DEXTestListResponse struct {
type dexTestListResponseJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
ResultInfo apijson.Field
raw string
ExtraFields map[string]apijson.Field
Expand Down
4 changes: 2 additions & 2 deletions zero_trust/dextestuniquedevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ func (r DEXTestUniqueDeviceListParams) URLQuery() (v url.Values) {
type DEXTestUniqueDeviceListResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result UniqueDevices `json:"result,required"`
// Whether the API call was successful
Success DEXTestUniqueDeviceListResponseEnvelopeSuccess `json:"success,required"`
Result UniqueDevices `json:"result"`
JSON dexTestUniqueDeviceListResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -101,8 +101,8 @@ type DEXTestUniqueDeviceListResponseEnvelope struct {
type dexTestUniqueDeviceListResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
16 changes: 8 additions & 8 deletions zero_trust/dextraceroutetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ func (r DEXTracerouteTestGetParamsInterval) IsKnown() bool {
type DEXTracerouteTestGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Traceroute `json:"result,required"`
// Whether the API call was successful
Success DEXTracerouteTestGetResponseEnvelopeSuccess `json:"success,required"`
Result Traceroute `json:"result"`
JSON dexTracerouteTestGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -480,8 +480,8 @@ type DEXTracerouteTestGetResponseEnvelope struct {
type dexTracerouteTestGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -549,9 +549,9 @@ func (r DEXTracerouteTestNetworkPathParamsInterval) IsKnown() bool {
type DEXTracerouteTestNetworkPathResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result NetworkPath `json:"result,required"`
// Whether the API call was successful
Success DEXTracerouteTestNetworkPathResponseEnvelopeSuccess `json:"success,required"`
Result NetworkPath `json:"result"`
JSON dexTracerouteTestNetworkPathResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -560,8 +560,8 @@ type DEXTracerouteTestNetworkPathResponseEnvelope struct {
type dexTracerouteTestNetworkPathResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -613,11 +613,11 @@ func (r DEXTracerouteTestPercentilesParams) URLQuery() (v url.Values) {
}

type DEXTracerouteTestPercentilesResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result DEXTracerouteTestPercentilesResponse `json:"result,required"`
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success DEXTracerouteTestPercentilesResponseEnvelopeSuccess `json:"success,required"`
Result DEXTracerouteTestPercentilesResponse `json:"result"`
JSON dexTracerouteTestPercentilesResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -626,8 +626,8 @@ type DEXTracerouteTestPercentilesResponseEnvelope struct {
type dexTracerouteTestPercentilesResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
8 changes: 4 additions & 4 deletions zero_trust/dextraceroutetestresultnetworkpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ type DEXTracerouteTestResultNetworkPathGetParams struct {
}

type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result,required"`
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess `json:"success,required"`
Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result"`
JSON dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -182,8 +182,8 @@ type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct {
type dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down

0 comments on commit ab55f0c

Please sign in to comment.