Skip to content

Commit

Permalink
feat: OpenAPI spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 6, 2024
1 parent 4ce41f2 commit 99b1897
Show file tree
Hide file tree
Showing 51 changed files with 24,512 additions and 24,155 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", zoneNewResponse.Result.ID)
fmt.Printf("%+v\n", zoneNewResponse.ID)
}

```
Expand Down
1,112 changes: 568 additions & 544 deletions accessapp.go

Large diffs are not rendered by default.

348 changes: 186 additions & 162 deletions accessappca.go

Large diffs are not rendered by default.

8,140 changes: 4,054 additions & 4,086 deletions accessapppolicy.go

Large diffs are not rendered by default.

47 changes: 27 additions & 20 deletions accessapprevoketoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,41 +33,48 @@ func NewAccessAppRevokeTokenService(opts ...option.RequestOption) (r *AccessAppR
// Revokes all tokens issued for an application.
func (r *AccessAppRevokeTokenService) AccessApplicationsRevokeServiceTokens(ctx context.Context, accountOrZone string, accountOrZoneID string, appID AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensParamsAppID, opts ...option.RequestOption) (res *AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponse, err error) {
opts = append(r.Options[:], opts...)
var env AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelope
path := fmt.Sprintf("%s/%s/access/apps/%v/revoke_tokens", accountOrZone, accountOrZoneID, appID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, nil, &res, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, nil, &env, opts...)
if err != nil {
return
}
res = &env.Result
return
}

type AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponse struct {
Result interface{} `json:"result,nullable"`
Success AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseSuccess `json:"success"`
JSON accessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseJSON `json:"-"`
type AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponse = interface{}

// Identifier
//
// Satisfied by [shared.UnionString], [shared.UnionString].
type AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensParamsAppID interface {
ImplementsAccessAppRevokeTokenAccessApplicationsRevokeServiceTokensParamsAppID()
}

type AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelope struct {
Result AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponse `json:"result,nullable"`
Success AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeSuccess `json:"success"`
JSON accessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeJSON `json:"-"`
}

// accessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseJSON contains
// the JSON metadata for the struct
// [AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponse]
type accessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseJSON struct {
// accessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeJSON
// contains the JSON metadata for the struct
// [AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelope]
type accessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeJSON struct {
Result apijson.Field
Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponse) UnmarshalJSON(data []byte) (err error) {
func (r *AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelope) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

type AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseSuccess bool
type AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeSuccess bool

const (
AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseSuccessTrue AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseSuccess = true
AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseSuccessFalse AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseSuccess = false
AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeSuccessTrue AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeSuccess = true
AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeSuccessFalse AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensResponseEnvelopeSuccess = false
)

// Identifier
//
// Satisfied by [shared.UnionString], [shared.UnionString].
type AccessAppRevokeTokenAccessApplicationsRevokeServiceTokensParamsAppID interface {
ImplementsAccessAppRevokeTokenAccessApplicationsRevokeServiceTokensParamsAppID()
}
231 changes: 118 additions & 113 deletions accessappuserpolicycheck.go

Large diffs are not rendered by default.

Loading

0 comments on commit 99b1897

Please sign in to comment.