Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Apr 15, 2024
1 parent e15b1dc commit 1241d56
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 69 deletions.
16 changes: 8 additions & 8 deletions secondary_dns/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ func (r ACLNewParams) MarshalJSON() (data []byte, err error) {
type ACLNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ACL `json:"result,required"`
// Whether the API call was successful
Success ACLNewResponseEnvelopeSuccess `json:"success,required"`
Result ACL `json:"result"`
JSON aclNewResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -196,8 +196,8 @@ type ACLNewResponseEnvelope struct {
type aclNewResponseEnvelopeJSON 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 @@ -237,9 +237,9 @@ func (r ACLUpdateParams) MarshalJSON() (data []byte, err error) {
type ACLUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ACL `json:"result,required"`
// Whether the API call was successful
Success ACLUpdateResponseEnvelopeSuccess `json:"success,required"`
Result ACL `json:"result"`
JSON aclUpdateResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -248,8 +248,8 @@ type ACLUpdateResponseEnvelope struct {
type aclUpdateResponseEnvelopeJSON 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 @@ -293,9 +293,9 @@ func (r ACLDeleteParams) MarshalJSON() (data []byte, err error) {
type ACLDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ACLDeleteResponse `json:"result,required"`
// Whether the API call was successful
Success ACLDeleteResponseEnvelopeSuccess `json:"success,required"`
Result ACLDeleteResponse `json:"result"`
JSON aclDeleteResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -304,8 +304,8 @@ type ACLDeleteResponseEnvelope struct {
type aclDeleteResponseEnvelopeJSON 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 @@ -340,9 +340,9 @@ type ACLGetParams struct {
type ACLGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ACL `json:"result,required"`
// Whether the API call was successful
Success ACLGetResponseEnvelopeSuccess `json:"success,required"`
Result ACL `json:"result"`
JSON aclGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -351,8 +351,8 @@ type ACLGetResponseEnvelope struct {
type aclGetResponseEnvelopeJSON 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 secondary_dns/forceaxfr.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,20 @@ func (r ForceAXFRNewParams) MarshalJSON() (data []byte, err error) {
type ForceAXFRNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// When force_axfr query parameter is set to true, the response is a simple string
Result ForceAXFR `json:"result,required"`
// Whether the API call was successful
Success ForceAXFRNewResponseEnvelopeSuccess `json:"success,required"`
JSON forceAXFRNewResponseEnvelopeJSON `json:"-"`
// When force_axfr query parameter is set to true, the response is a simple string
Result ForceAXFR `json:"result"`
JSON forceAXFRNewResponseEnvelopeJSON `json:"-"`
}

// forceAXFRNewResponseEnvelopeJSON contains the JSON metadata for the struct
// [ForceAXFRNewResponseEnvelope]
type forceAXFRNewResponseEnvelopeJSON 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
24 changes: 12 additions & 12 deletions secondary_dns/incoming.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ func (r IncomingNewParams) MarshalJSON() (data []byte, err error) {
type IncomingNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result IncomingNewResponse `json:"result,required"`
// Whether the API call was successful
Success IncomingNewResponseEnvelopeSuccess `json:"success,required"`
Result IncomingNewResponse `json:"result"`
JSON incomingNewResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -262,8 +262,8 @@ type IncomingNewResponseEnvelope struct {
type incomingNewResponseEnvelopeJSON 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 @@ -307,11 +307,11 @@ func (r IncomingUpdateParams) MarshalJSON() (data []byte, err error) {
}

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

Expand All @@ -320,8 +320,8 @@ type IncomingUpdateResponseEnvelope struct {
type incomingUpdateResponseEnvelopeJSON 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 @@ -359,11 +359,11 @@ func (r IncomingDeleteParams) MarshalJSON() (data []byte, err error) {
}

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

Expand All @@ -372,8 +372,8 @@ type IncomingDeleteResponseEnvelope struct {
type incomingDeleteResponseEnvelopeJSON 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 @@ -408,9 +408,9 @@ type IncomingGetParams struct {
type IncomingGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result IncomingGetResponse `json:"result,required"`
// Whether the API call was successful
Success IncomingGetResponseEnvelopeSuccess `json:"success,required"`
Result IncomingGetResponse `json:"result"`
JSON incomingGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -419,8 +419,8 @@ type IncomingGetResponseEnvelope struct {
type incomingGetResponseEnvelopeJSON 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
50 changes: 25 additions & 25 deletions secondary_dns/outgoing.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ func (r OutgoingNewParams) MarshalJSON() (data []byte, err error) {
type OutgoingNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result OutgoingNewResponse `json:"result,required"`
// Whether the API call was successful
Success OutgoingNewResponseEnvelopeSuccess `json:"success,required"`
Result OutgoingNewResponse `json:"result"`
JSON outgoingNewResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -293,8 +293,8 @@ type OutgoingNewResponseEnvelope struct {
type outgoingNewResponseEnvelopeJSON 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 @@ -335,11 +335,11 @@ func (r OutgoingUpdateParams) MarshalJSON() (data []byte, err error) {
}

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

Expand All @@ -348,8 +348,8 @@ type OutgoingUpdateResponseEnvelope struct {
type outgoingUpdateResponseEnvelopeJSON 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 @@ -387,11 +387,11 @@ func (r OutgoingDeleteParams) MarshalJSON() (data []byte, err error) {
}

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

Expand All @@ -400,8 +400,8 @@ type OutgoingDeleteResponseEnvelope struct {
type outgoingDeleteResponseEnvelopeJSON 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 @@ -441,20 +441,20 @@ func (r OutgoingDisableParams) MarshalJSON() (data []byte, err error) {
type OutgoingDisableResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// The zone transfer status of a primary zone
Result DisableTransfer `json:"result,required"`
// Whether the API call was successful
Success OutgoingDisableResponseEnvelopeSuccess `json:"success,required"`
JSON outgoingDisableResponseEnvelopeJSON `json:"-"`
// The zone transfer status of a primary zone
Result DisableTransfer `json:"result"`
JSON outgoingDisableResponseEnvelopeJSON `json:"-"`
}

// outgoingDisableResponseEnvelopeJSON contains the JSON metadata for the struct
// [OutgoingDisableResponseEnvelope]
type outgoingDisableResponseEnvelopeJSON 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 @@ -494,20 +494,20 @@ func (r OutgoingEnableParams) MarshalJSON() (data []byte, err error) {
type OutgoingEnableResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// The zone transfer status of a primary zone
Result EnableTransfer `json:"result,required"`
// Whether the API call was successful
Success OutgoingEnableResponseEnvelopeSuccess `json:"success,required"`
JSON outgoingEnableResponseEnvelopeJSON `json:"-"`
// The zone transfer status of a primary zone
Result EnableTransfer `json:"result"`
JSON outgoingEnableResponseEnvelopeJSON `json:"-"`
}

// outgoingEnableResponseEnvelopeJSON contains the JSON metadata for the struct
// [OutgoingEnableResponseEnvelope]
type outgoingEnableResponseEnvelopeJSON 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 @@ -547,21 +547,21 @@ func (r OutgoingForceNotifyParams) MarshalJSON() (data []byte, err error) {
type OutgoingForceNotifyResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// When force_notify query parameter is set to true, the response is a simple
// string
Result string `json:"result,required"`
// Whether the API call was successful
Success OutgoingForceNotifyResponseEnvelopeSuccess `json:"success,required"`
JSON outgoingForceNotifyResponseEnvelopeJSON `json:"-"`
// When force_notify query parameter is set to true, the response is a simple
// string
Result string `json:"result"`
JSON outgoingForceNotifyResponseEnvelopeJSON `json:"-"`
}

// outgoingForceNotifyResponseEnvelopeJSON contains the JSON metadata for the
// struct [OutgoingForceNotifyResponseEnvelope]
type outgoingForceNotifyResponseEnvelopeJSON 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 @@ -596,9 +596,9 @@ type OutgoingGetParams struct {
type OutgoingGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result OutgoingGetResponse `json:"result,required"`
// Whether the API call was successful
Success OutgoingGetResponseEnvelopeSuccess `json:"success,required"`
Result OutgoingGetResponse `json:"result"`
JSON outgoingGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -607,8 +607,8 @@ type OutgoingGetResponseEnvelope struct {
type outgoingGetResponseEnvelopeJSON 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 secondary_dns/outgoingstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ type OutgoingStatusGetParams struct {
type OutgoingStatusGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// The zone transfer status of a primary zone
Result EnableTransfer `json:"result,required"`
// Whether the API call was successful
Success OutgoingStatusGetResponseEnvelopeSuccess `json:"success,required"`
JSON outgoingStatusGetResponseEnvelopeJSON `json:"-"`
// The zone transfer status of a primary zone
Result EnableTransfer `json:"result"`
JSON outgoingStatusGetResponseEnvelopeJSON `json:"-"`
}

// outgoingStatusGetResponseEnvelopeJSON contains the JSON metadata for the struct
// [OutgoingStatusGetResponseEnvelope]
type outgoingStatusGetResponseEnvelopeJSON 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
Loading

0 comments on commit 1241d56

Please sign in to comment.