diff --git a/RELEASES.md b/RELEASES.md index b830c91..fb5b4e7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -54,4 +54,28 @@ Based on: - OpenAPI Doc 1.0.0 - Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy ### Releases -- [Go v1.2.0] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.2.0 - . \ No newline at end of file +- [Go v1.2.0] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.2.0 - . + +## 2023-07-17 01:26:22 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy +### Releases +- [Go v1.3.0] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.3.0 - . + +## 2023-07-17 17:14:16 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy +### Releases +- [Go v1.4.0] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.4.0 - . + +## 2023-07-17 17:19:56 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy +### Releases +- [Go v1.4.1] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.4.1 - . \ No newline at end of file diff --git a/attempt.go b/attempt.go index de1b033..3ce3897 100755 --- a/attempt.go +++ b/attempt.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *attempt) Get(ctx context.Context, id string) (*operations.GetAttemptRes } res.EventAttempt = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/attempts.go b/attempts.go index 21b6313..f211107 100755 --- a/attempts.go +++ b/attempts.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,19 +77,28 @@ func (s *attempts) Get(ctx context.Context, request operations.GetAttemptsReques } res.EventAttemptPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/bookmark.go b/bookmark.go index 2e5b5b4..1ab11a9 100755 --- a/bookmark.go +++ b/bookmark.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -81,19 +82,28 @@ func (s *bookmark) Create(ctx context.Context, request operations.CreateBookmark } res.Bookmark = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -153,17 +163,26 @@ func (s *bookmark) Delete(ctx context.Context, id string) (*operations.DeleteBoo } res.DeletedBookmarkResponse = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -223,17 +242,26 @@ func (s *bookmark) Get(ctx context.Context, id string) (*operations.GetBookmarkR } res.Bookmark = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -304,6 +332,8 @@ func (s *bookmark) Trigger(ctx context.Context, requestBody operations.TriggerBo } res.EventArray = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -312,13 +342,20 @@ func (s *bookmark) Trigger(ctx context.Context, requestBody operations.TriggerBo case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -389,6 +426,8 @@ func (s *bookmark) Update(ctx context.Context, requestBody operations.UpdateBook } res.Bookmark = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -397,13 +436,20 @@ func (s *bookmark) Update(ctx context.Context, requestBody operations.UpdateBook case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/bookmarks.go b/bookmarks.go index cda08bc..113bee6 100755 --- a/bookmarks.go +++ b/bookmarks.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,19 +77,28 @@ func (s *bookmarks) Get(ctx context.Context, request operations.GetBookmarksRequ } res.BookmarkPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/bulkretryevent.go b/bulkretryevent.go index 87e568c..701a697 100755 --- a/bulkretryevent.go +++ b/bulkretryevent.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *bulkRetryEvent) Cancel(ctx context.Context, id string) (*operations.Can } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -149,19 +159,28 @@ func (s *bulkRetryEvent) Create(ctx context.Context, request operations.CreateEv } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -220,17 +239,26 @@ func (s *bulkRetryEvent) Get(ctx context.Context, id string) (*operations.GetEve } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/bulkretryignoredevent.go b/bulkretryignoredevent.go index cf78429..563be5c 100755 --- a/bulkretryignoredevent.go +++ b/bulkretryignoredevent.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *bulkRetryIgnoredEvent) Cancel(ctx context.Context, id string) (*operati } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -149,19 +159,28 @@ func (s *bulkRetryIgnoredEvent) Create(ctx context.Context, request operations.C } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -221,19 +240,28 @@ func (s *bulkRetryIgnoredEvent) Generate(ctx context.Context, query *operations. } res.BatchOperationPlan = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -292,17 +320,26 @@ func (s *bulkRetryIgnoredEvent) Get(ctx context.Context, id string) (*operations } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/bulkretryignoredevents.go b/bulkretryignoredevents.go index 5f62d9b..52fbfcc 100755 --- a/bulkretryignoredevents.go +++ b/bulkretryignoredevents.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -74,19 +75,28 @@ func (s *bulkRetryIgnoredEvents) Get(ctx context.Context, request operations.Get } res.BatchOperationPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/bulkretryrequests.go b/bulkretryrequests.go index 4b10fc6..f077bc4 100755 --- a/bulkretryrequests.go +++ b/bulkretryrequests.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -80,19 +81,28 @@ func (s *bulkRetryRequests) Create(ctx context.Context, request operations.Creat } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/connection.go b/connection.go index b7aba75..4feb859 100755 --- a/connection.go +++ b/connection.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *connection) Archive(ctx context.Context, id string) (*operations.Archiv } res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -149,19 +159,28 @@ func (s *connection) Create(ctx context.Context, request operations.CreateConnec } res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -220,17 +239,26 @@ func (s *connection) Delete(ctx context.Context, id string) (*operations.DeleteC } res.DeleteConnection200ApplicationJSONObject = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -289,19 +317,28 @@ func (s *connection) Get(ctx context.Context, id string) (*operations.GetConnect } res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 410: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -360,17 +397,26 @@ func (s *connection) Pause(ctx context.Context, id string) (*operations.PauseCon } res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -429,17 +475,26 @@ func (s *connection) Unarchive(ctx context.Context, id string) (*operations.Unar } res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -498,17 +553,26 @@ func (s *connection) Unpause(ctx context.Context, id string) (*operations.Unpaus } res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -578,6 +642,8 @@ func (s *connection) Update(ctx context.Context, requestBody operations.UpdateCo } res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -586,13 +652,20 @@ func (s *connection) Update(ctx context.Context, requestBody operations.UpdateCo case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -654,19 +727,28 @@ func (s *connection) Upsert(ctx context.Context, request operations.UpsertConnec } res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/connections.go b/connections.go index c59ce48..780e2d2 100755 --- a/connections.go +++ b/connections.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -75,19 +76,28 @@ func (s *connections) Get(ctx context.Context, request operations.GetConnections } res.ConnectionPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/customdomain.go b/customdomain.go index 5af1538..9a47ac9 100755 --- a/customdomain.go +++ b/customdomain.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -87,7 +88,13 @@ func (s *customDomain) Add(ctx context.Context, addCustomHostname shared.AddCust } res.AddCustomHostname = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -147,7 +154,13 @@ func (s *customDomain) Delete(ctx context.Context, domainID string, teamID strin } res.DeleteCustomDomainSchema = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/customdomains.go b/customdomains.go index 150cb0d..678b38a 100755 --- a/customdomains.go +++ b/customdomains.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,7 +77,13 @@ func (s *customDomains) List(ctx context.Context, teamID string) (*operations.Li } res.ListCustomDomainSchema = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/destination.go b/destination.go index 6a0ffde..520eeb1 100755 --- a/destination.go +++ b/destination.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -78,17 +79,26 @@ func (s *destination) Archive(ctx context.Context, id string) (*operations.Archi } res.Destination = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -151,19 +161,28 @@ func (s *destination) Create(ctx context.Context, request operations.CreateDesti } res.Destination = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -223,17 +242,26 @@ func (s *destination) Delete(ctx context.Context, id string) (*operations.Delete } res.DeleteDestination200ApplicationJSONObject = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -293,19 +321,28 @@ func (s *destination) Get(ctx context.Context, id string) (*operations.GetDestin } res.Destination = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 410: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -365,17 +402,26 @@ func (s *destination) Unarchive(ctx context.Context, id string) (*operations.Una } res.Destination = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -446,6 +492,8 @@ func (s *destination) Update(ctx context.Context, requestBody operations.UpdateD } res.Destination = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -454,13 +502,20 @@ func (s *destination) Update(ctx context.Context, requestBody operations.UpdateD case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -523,19 +578,28 @@ func (s *destination) Upsert(ctx context.Context, request operations.UpsertDesti } res.Destination = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/destinations.go b/destinations.go index d3ef0d0..66006e0 100755 --- a/destinations.go +++ b/destinations.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,19 +77,28 @@ func (s *destinations) Get(ctx context.Context, request operations.GetDestinatio } res.DestinationPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/docs/models/errors/apierrorresponse.md b/docs/models/errors/apierrorresponse.md new file mode 100755 index 0000000..ce661e1 --- /dev/null +++ b/docs/models/errors/apierrorresponse.md @@ -0,0 +1,14 @@ +# APIErrorResponse + +Error response model + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | +| `Code` | *string* | :heavy_check_mark: | Error code | +| `Data` | **APIErrorResponseData* | :heavy_minus_sign: | N/A | +| `Message` | *string* | :heavy_check_mark: | Error description | +| `Status` | *float32* | :heavy_check_mark: | Status code | \ No newline at end of file diff --git a/docs/models/errors/apierrorresponsedata.md b/docs/models/errors/apierrorresponsedata.md new file mode 100755 index 0000000..d33699a --- /dev/null +++ b/docs/models/errors/apierrorresponsedata.md @@ -0,0 +1,8 @@ +# APIErrorResponseData + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/archiveconnectionresponse.md b/docs/models/operations/archiveconnectionresponse.md index cfcc17b..bc41f6a 100755 --- a/docs/models/operations/archiveconnectionresponse.md +++ b/docs/models/operations/archiveconnectionresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/archivedestinationresponse.md b/docs/models/operations/archivedestinationresponse.md index 2bb8347..25ab855 100755 --- a/docs/models/operations/archivedestinationresponse.md +++ b/docs/models/operations/archivedestinationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/archiverulesetresponse.md b/docs/models/operations/archiverulesetresponse.md index b15cbdf..419b221 100755 --- a/docs/models/operations/archiverulesetresponse.md +++ b/docs/models/operations/archiverulesetresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/archivesourceresponse.md b/docs/models/operations/archivesourceresponse.md index be494cd..4205115 100755 --- a/docs/models/operations/archivesourceresponse.md +++ b/docs/models/operations/archivesourceresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/attachintegrationtosourceresponse.md b/docs/models/operations/attachintegrationtosourceresponse.md index 9886de1..017aa5c 100755 --- a/docs/models/operations/attachintegrationtosourceresponse.md +++ b/docs/models/operations/attachintegrationtosourceresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `AttachedIntegrationToSource` | [*shared.AttachedIntegrationToSource](../../models/shared/attachedintegrationtosource.md) | :heavy_minus_sign: | Attach operation success status | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/canceleventbulkretryresponse.md b/docs/models/operations/canceleventbulkretryresponse.md index eeef075..4f14ed2 100755 --- a/docs/models/operations/canceleventbulkretryresponse.md +++ b/docs/models/operations/canceleventbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single events bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single events bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/cancelignoredeventbulkretryresponse.md b/docs/models/operations/cancelignoredeventbulkretryresponse.md index 563f409..f3e0bff 100755 --- a/docs/models/operations/cancelignoredeventbulkretryresponse.md +++ b/docs/models/operations/cancelignoredeventbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single ignored events bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single ignored events bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/cancelrequestbulkretryresponse.md b/docs/models/operations/cancelrequestbulkretryresponse.md index 8af1ff9..17b4bc4 100755 --- a/docs/models/operations/cancelrequestbulkretryresponse.md +++ b/docs/models/operations/cancelrequestbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single requests bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single requests bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createbookmarkresponse.md b/docs/models/operations/createbookmarkresponse.md index acd9df4..62e8ec9 100755 --- a/docs/models/operations/createbookmarkresponse.md +++ b/docs/models/operations/createbookmarkresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `Bookmark` | [*shared.Bookmark](../../models/shared/bookmark.md) | :heavy_minus_sign: | A single bookmark | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `Bookmark` | [*shared.Bookmark](../../models/shared/bookmark.md) | :heavy_minus_sign: | A single bookmark | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createconnectionresponse.md b/docs/models/operations/createconnectionresponse.md index 6453e76..dc69008 100755 --- a/docs/models/operations/createconnectionresponse.md +++ b/docs/models/operations/createconnectionresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createdestinationresponse.md b/docs/models/operations/createdestinationresponse.md index b596068..fa6988e 100755 --- a/docs/models/operations/createdestinationresponse.md +++ b/docs/models/operations/createdestinationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createeventbulkretryresponse.md b/docs/models/operations/createeventbulkretryresponse.md index be9068b..ab5c481 100755 --- a/docs/models/operations/createeventbulkretryresponse.md +++ b/docs/models/operations/createeventbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single events bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single events bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createignoredeventbulkretryresponse.md b/docs/models/operations/createignoredeventbulkretryresponse.md index 77bcf5b..8bed917 100755 --- a/docs/models/operations/createignoredeventbulkretryresponse.md +++ b/docs/models/operations/createignoredeventbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single ignored events bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single ignored events bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createintegrationresponse.md b/docs/models/operations/createintegrationresponse.md index 470b60c..7e23da7 100755 --- a/docs/models/operations/createintegrationresponse.md +++ b/docs/models/operations/createintegrationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Integration` | [*shared.Integration](../../models/shared/integration.md) | :heavy_minus_sign: | A single integration | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Integration` | [*shared.Integration](../../models/shared/integration.md) | :heavy_minus_sign: | A single integration | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createissuetriggerresponse.md b/docs/models/operations/createissuetriggerresponse.md index d4a456d..a5ee77a 100755 --- a/docs/models/operations/createissuetriggerresponse.md +++ b/docs/models/operations/createissuetriggerresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createrequestbulkretryresponse.md b/docs/models/operations/createrequestbulkretryresponse.md index 3ae2d61..af885dc 100755 --- a/docs/models/operations/createrequestbulkretryresponse.md +++ b/docs/models/operations/createrequestbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single requests bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single requests bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createrulesetresponse.md b/docs/models/operations/createrulesetresponse.md index 9361c9a..26a81e1 100755 --- a/docs/models/operations/createrulesetresponse.md +++ b/docs/models/operations/createrulesetresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createsourceresponse.md b/docs/models/operations/createsourceresponse.md index df88e7b..6855016 100755 --- a/docs/models/operations/createsourceresponse.md +++ b/docs/models/operations/createsourceresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createtransformationresponse.md b/docs/models/operations/createtransformationresponse.md index aa31317..a65d42d 100755 --- a/docs/models/operations/createtransformationresponse.md +++ b/docs/models/operations/createtransformationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | -| `Transformation` | [*shared.Transformation](../../models/shared/transformation.md) | :heavy_minus_sign: | A single transformation | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | +| `Transformation` | [*shared.Transformation](../../models/shared/transformation.md) | :heavy_minus_sign: | A single transformation | \ No newline at end of file diff --git a/docs/models/operations/deletebookmarkresponse.md b/docs/models/operations/deletebookmarkresponse.md index 0853bf6..6d310ac 100755 --- a/docs/models/operations/deletebookmarkresponse.md +++ b/docs/models/operations/deletebookmarkresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `DeletedBookmarkResponse` | [*shared.DeletedBookmarkResponse](../../models/shared/deletedbookmarkresponse.md) | :heavy_minus_sign: | An object with deleted bookmark's id | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/deleteconnectionresponse.md b/docs/models/operations/deleteconnectionresponse.md index 891b55f..98c90b5 100755 --- a/docs/models/operations/deleteconnectionresponse.md +++ b/docs/models/operations/deleteconnectionresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | diff --git a/docs/models/operations/deletedestinationresponse.md b/docs/models/operations/deletedestinationresponse.md index 96fde56..9cf9c0b 100755 --- a/docs/models/operations/deletedestinationresponse.md +++ b/docs/models/operations/deletedestinationresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | diff --git a/docs/models/operations/deleteintegrationresponse.md b/docs/models/operations/deleteintegrationresponse.md index 2a789ed..df23962 100755 --- a/docs/models/operations/deleteintegrationresponse.md +++ b/docs/models/operations/deleteintegrationresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `DeletedIntegration` | [*shared.DeletedIntegration](../../models/shared/deletedintegration.md) | :heavy_minus_sign: | An object with deleted integration id | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/deleteissuetriggerresponse.md b/docs/models/operations/deleteissuetriggerresponse.md index a6a93d8..333f5a1 100755 --- a/docs/models/operations/deleteissuetriggerresponse.md +++ b/docs/models/operations/deleteissuetriggerresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `DeletedIssueTriggerResponse` | [*shared.DeletedIssueTriggerResponse](../../models/shared/deletedissuetriggerresponse.md) | :heavy_minus_sign: | An object with deleted issue trigger's id | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/deletesourceresponse.md b/docs/models/operations/deletesourceresponse.md index 50bf883..d548555 100755 --- a/docs/models/operations/deletesourceresponse.md +++ b/docs/models/operations/deletesourceresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | diff --git a/docs/models/operations/detachintegrationtosourceresponse.md b/docs/models/operations/detachintegrationtosourceresponse.md index 119c661..7108511 100755 --- a/docs/models/operations/detachintegrationtosourceresponse.md +++ b/docs/models/operations/detachintegrationtosourceresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `DetachedIntegrationFromSource` | [*shared.DetachedIntegrationFromSource](../../models/shared/detachedintegrationfromsource.md) | :heavy_minus_sign: | Detach operation success status | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/disableissuetriggerresponse.md b/docs/models/operations/disableissuetriggerresponse.md index 93f7705..e7a678e 100755 --- a/docs/models/operations/disableissuetriggerresponse.md +++ b/docs/models/operations/disableissuetriggerresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/dismississueresponse.md b/docs/models/operations/dismississueresponse.md index ce783fe..aeb41cc 100755 --- a/docs/models/operations/dismississueresponse.md +++ b/docs/models/operations/dismississueresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Issue` | *interface{}* | :heavy_minus_sign: | Dismissed issue | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Issue` | *interface{}* | :heavy_minus_sign: | Dismissed issue | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/enableissuetriggerresponse.md b/docs/models/operations/enableissuetriggerresponse.md index 4b2605d..140c590 100755 --- a/docs/models/operations/enableissuetriggerresponse.md +++ b/docs/models/operations/enableissuetriggerresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/generateignoredeventbulkretryplanresponse.md b/docs/models/operations/generateignoredeventbulkretryplanresponse.md index ea68621..e472d60 100755 --- a/docs/models/operations/generateignoredeventbulkretryplanresponse.md +++ b/docs/models/operations/generateignoredeventbulkretryplanresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `BatchOperationPlan` | [*shared.BatchOperationPlan](../../models/shared/batchoperationplan.md) | :heavy_minus_sign: | Ignored events bulk retry plan | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getattemptresponse.md b/docs/models/operations/getattemptresponse.md index 665a074..ca35e9a 100755 --- a/docs/models/operations/getattemptresponse.md +++ b/docs/models/operations/getattemptresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `EventAttempt` | [*shared.EventAttempt](../../models/shared/eventattempt.md) | :heavy_minus_sign: | A single attempt | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `EventAttempt` | [*shared.EventAttempt](../../models/shared/eventattempt.md) | :heavy_minus_sign: | A single attempt | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getattemptsresponse.md b/docs/models/operations/getattemptsresponse.md index df94caf..69e960a 100755 --- a/docs/models/operations/getattemptsresponse.md +++ b/docs/models/operations/getattemptsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `EventAttemptPaginatedResult` | [*shared.EventAttemptPaginatedResult](../../models/shared/eventattemptpaginatedresult.md) | :heavy_minus_sign: | List of attempts | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getbookmarkresponse.md b/docs/models/operations/getbookmarkresponse.md index dbbf89e..232bcdf 100755 --- a/docs/models/operations/getbookmarkresponse.md +++ b/docs/models/operations/getbookmarkresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `Bookmark` | [*shared.Bookmark](../../models/shared/bookmark.md) | :heavy_minus_sign: | A single bookmark | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `Bookmark` | [*shared.Bookmark](../../models/shared/bookmark.md) | :heavy_minus_sign: | A single bookmark | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getbookmarksresponse.md b/docs/models/operations/getbookmarksresponse.md index cf5146a..989ce36 100755 --- a/docs/models/operations/getbookmarksresponse.md +++ b/docs/models/operations/getbookmarksresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `BookmarkPaginatedResult` | [*shared.BookmarkPaginatedResult](../../models/shared/bookmarkpaginatedresult.md) | :heavy_minus_sign: | List of bookmarks | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getconnectionresponse.md b/docs/models/operations/getconnectionresponse.md index 74aa7f3..e65bcb2 100755 --- a/docs/models/operations/getconnectionresponse.md +++ b/docs/models/operations/getconnectionresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getconnectionsresponse.md b/docs/models/operations/getconnectionsresponse.md index f1f24e8..0e1ab0c 100755 --- a/docs/models/operations/getconnectionsresponse.md +++ b/docs/models/operations/getconnectionsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ConnectionPaginatedResult` | [*shared.ConnectionPaginatedResult](../../models/shared/connectionpaginatedresult.md) | :heavy_minus_sign: | List of connections | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getdestinationresponse.md b/docs/models/operations/getdestinationresponse.md index b7464f5..1e30eb9 100755 --- a/docs/models/operations/getdestinationresponse.md +++ b/docs/models/operations/getdestinationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdestinationsresponse.md b/docs/models/operations/getdestinationsresponse.md index dc0cd8d..5ad70e6 100755 --- a/docs/models/operations/getdestinationsresponse.md +++ b/docs/models/operations/getdestinationsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `DestinationPaginatedResult` | [*shared.DestinationPaginatedResult](../../models/shared/destinationpaginatedresult.md) | :heavy_minus_sign: | List of destinations | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/geteventbulkretryresponse.md b/docs/models/operations/geteventbulkretryresponse.md index bb0be74..9ea5acb 100755 --- a/docs/models/operations/geteventbulkretryresponse.md +++ b/docs/models/operations/geteventbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single events bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single events bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/geteventrawbodyresponse.md b/docs/models/operations/geteventrawbodyresponse.md index 9ca01dd..954f383 100755 --- a/docs/models/operations/geteventrawbodyresponse.md +++ b/docs/models/operations/geteventrawbodyresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `RawBody` | [*shared.RawBody](../../models/shared/rawbody.md) | :heavy_minus_sign: | A request raw body data | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `RawBody` | [*shared.RawBody](../../models/shared/rawbody.md) | :heavy_minus_sign: | A request raw body data | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/geteventresponse.md b/docs/models/operations/geteventresponse.md index e39faf5..a5b93d2 100755 --- a/docs/models/operations/geteventresponse.md +++ b/docs/models/operations/geteventresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Event` | [*shared.Event](../../models/shared/event.md) | :heavy_minus_sign: | A single event | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Event` | [*shared.Event](../../models/shared/event.md) | :heavy_minus_sign: | A single event | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/geteventsresponse.md b/docs/models/operations/geteventsresponse.md index 94b7fb3..d4813e0 100755 --- a/docs/models/operations/geteventsresponse.md +++ b/docs/models/operations/geteventsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `EventPaginatedResult` | [*shared.EventPaginatedResult](../../models/shared/eventpaginatedresult.md) | :heavy_minus_sign: | List of events | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getignoredeventbulkretriesresponse.md b/docs/models/operations/getignoredeventbulkretriesresponse.md index 5e626f5..9af1e01 100755 --- a/docs/models/operations/getignoredeventbulkretriesresponse.md +++ b/docs/models/operations/getignoredeventbulkretriesresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `BatchOperationPaginatedResult` | [*shared.BatchOperationPaginatedResult](../../models/shared/batchoperationpaginatedresult.md) | :heavy_minus_sign: | List of ignored events bulk retries | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getignoredeventbulkretryresponse.md b/docs/models/operations/getignoredeventbulkretryresponse.md index 1cb1b87..0f6acb8 100755 --- a/docs/models/operations/getignoredeventbulkretryresponse.md +++ b/docs/models/operations/getignoredeventbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single ignored events bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single ignored events bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getintegrationresponse.md b/docs/models/operations/getintegrationresponse.md index 5f5fb50..c8d6ca9 100755 --- a/docs/models/operations/getintegrationresponse.md +++ b/docs/models/operations/getintegrationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Integration` | [*shared.Integration](../../models/shared/integration.md) | :heavy_minus_sign: | A single integration | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Integration` | [*shared.Integration](../../models/shared/integration.md) | :heavy_minus_sign: | A single integration | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getintegrationsresponse.md b/docs/models/operations/getintegrationsresponse.md index e53c8af..e78152e 100755 --- a/docs/models/operations/getintegrationsresponse.md +++ b/docs/models/operations/getintegrationsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `IntegrationPaginatedResult` | [*shared.IntegrationPaginatedResult](../../models/shared/integrationpaginatedresult.md) | :heavy_minus_sign: | List of integrations | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getissuecountresponse.md b/docs/models/operations/getissuecountresponse.md index 66fe29c..419cb51 100755 --- a/docs/models/operations/getissuecountresponse.md +++ b/docs/models/operations/getissuecountresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Unprocessable Entity | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `IssueCount` | [*shared.IssueCount](../../models/shared/issuecount.md) | :heavy_minus_sign: | Issue count | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `IssueCount` | [*shared.IssueCount](../../models/shared/issuecount.md) | :heavy_minus_sign: | Issue count | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getissueresponse.md b/docs/models/operations/getissueresponse.md index cdf2317..544c60b 100755 --- a/docs/models/operations/getissueresponse.md +++ b/docs/models/operations/getissueresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `IssueWithData` | *interface{}* | :heavy_minus_sign: | A single issue | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `IssueWithData` | *interface{}* | :heavy_minus_sign: | A single issue | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getissuesresponse.md b/docs/models/operations/getissuesresponse.md index 7e73a28..b03bfb2 100755 --- a/docs/models/operations/getissuesresponse.md +++ b/docs/models/operations/getissuesresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `IssueWithDataPaginatedResult` | [*shared.IssueWithDataPaginatedResult](../../models/shared/issuewithdatapaginatedresult.md) | :heavy_minus_sign: | List of issues | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getissuetriggerresponse.md b/docs/models/operations/getissuetriggerresponse.md index 2dd5055..be17b93 100755 --- a/docs/models/operations/getissuetriggerresponse.md +++ b/docs/models/operations/getissuetriggerresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getissuetriggersresponse.md b/docs/models/operations/getissuetriggersresponse.md index 72a4ffb..d357402 100755 --- a/docs/models/operations/getissuetriggersresponse.md +++ b/docs/models/operations/getissuetriggersresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `IssueTriggerPaginatedResult` | [*shared.IssueTriggerPaginatedResult](../../models/shared/issuetriggerpaginatedresult.md) | :heavy_minus_sign: | List of issue triggers | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getrequestbulkretryresponse.md b/docs/models/operations/getrequestbulkretryresponse.md index 585b9eb..0297146 100755 --- a/docs/models/operations/getrequestbulkretryresponse.md +++ b/docs/models/operations/getrequestbulkretryresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single requests bulk retry | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `BatchOperation` | [*shared.BatchOperation](../../models/shared/batchoperation.md) | :heavy_minus_sign: | A single requests bulk retry | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getrequesteventsresponse.md b/docs/models/operations/getrequesteventsresponse.md index 668d516..e970a80 100755 --- a/docs/models/operations/getrequesteventsresponse.md +++ b/docs/models/operations/getrequesteventsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `EventPaginatedResult` | [*shared.EventPaginatedResult](../../models/shared/eventpaginatedresult.md) | :heavy_minus_sign: | List of events | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getrequestignoredeventsresponse.md b/docs/models/operations/getrequestignoredeventsresponse.md index 8df77c8..0e9796a 100755 --- a/docs/models/operations/getrequestignoredeventsresponse.md +++ b/docs/models/operations/getrequestignoredeventsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `IgnoredEventPaginatedResult` | [*shared.IgnoredEventPaginatedResult](../../models/shared/ignoredeventpaginatedresult.md) | :heavy_minus_sign: | List of ignored events | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getrequestrawbodyresponse.md b/docs/models/operations/getrequestrawbodyresponse.md index ce19e3f..1dd22fb 100755 --- a/docs/models/operations/getrequestrawbodyresponse.md +++ b/docs/models/operations/getrequestrawbodyresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `RawBody` | [*shared.RawBody](../../models/shared/rawbody.md) | :heavy_minus_sign: | A request raw body data | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `RawBody` | [*shared.RawBody](../../models/shared/rawbody.md) | :heavy_minus_sign: | A request raw body data | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getrequestresponse.md b/docs/models/operations/getrequestresponse.md index 86d570b..44afeb3 100755 --- a/docs/models/operations/getrequestresponse.md +++ b/docs/models/operations/getrequestresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Request` | [*shared.Request](../../models/shared/request.md) | :heavy_minus_sign: | A single request | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Request` | [*shared.Request](../../models/shared/request.md) | :heavy_minus_sign: | A single request | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getrequestsresponse.md b/docs/models/operations/getrequestsresponse.md index c5e23ce..d5eb8a8 100755 --- a/docs/models/operations/getrequestsresponse.md +++ b/docs/models/operations/getrequestsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `RequestPaginatedResult` | [*shared.RequestPaginatedResult](../../models/shared/requestpaginatedresult.md) | :heavy_minus_sign: | List of requests | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getrulesetresponse.md b/docs/models/operations/getrulesetresponse.md index 0d172d7..7a9b96a 100755 --- a/docs/models/operations/getrulesetresponse.md +++ b/docs/models/operations/getrulesetresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getrulesetsresponse.md b/docs/models/operations/getrulesetsresponse.md index 6bcf5e9..2446bca 100755 --- a/docs/models/operations/getrulesetsresponse.md +++ b/docs/models/operations/getrulesetsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `RulesetPaginatedResult` | [*shared.RulesetPaginatedResult](../../models/shared/rulesetpaginatedresult.md) | :heavy_minus_sign: | List of rulesets | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/getsourceresponse.md b/docs/models/operations/getsourceresponse.md index 5405ef3..d5c8ec2 100755 --- a/docs/models/operations/getsourceresponse.md +++ b/docs/models/operations/getsourceresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getsourcesresponse.md b/docs/models/operations/getsourcesresponse.md index 7fcd79b..5bf68d5 100755 --- a/docs/models/operations/getsourcesresponse.md +++ b/docs/models/operations/getsourcesresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `SourcePaginatedResult` | [*shared.SourcePaginatedResult](../../models/shared/sourcepaginatedresult.md) | :heavy_minus_sign: | List of sources | | `StatusCode` | *int* | :heavy_check_mark: | N/A | diff --git a/docs/models/operations/gettransformationexecutionresponse.md b/docs/models/operations/gettransformationexecutionresponse.md index c87b9c9..c19d0fa 100755 --- a/docs/models/operations/gettransformationexecutionresponse.md +++ b/docs/models/operations/gettransformationexecutionresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | diff --git a/docs/models/operations/gettransformationexecutionsresponse.md b/docs/models/operations/gettransformationexecutionsresponse.md index 7000e1e..034db22 100755 --- a/docs/models/operations/gettransformationexecutionsresponse.md +++ b/docs/models/operations/gettransformationexecutionsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | diff --git a/docs/models/operations/gettransformationresponse.md b/docs/models/operations/gettransformationresponse.md index 34c0ede..24b8228 100755 --- a/docs/models/operations/gettransformationresponse.md +++ b/docs/models/operations/gettransformationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | -| `Transformation` | [*shared.Transformation](../../models/shared/transformation.md) | :heavy_minus_sign: | A single transformation | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | +| `Transformation` | [*shared.Transformation](../../models/shared/transformation.md) | :heavy_minus_sign: | A single transformation | \ No newline at end of file diff --git a/docs/models/operations/gettransformationsresponse.md b/docs/models/operations/gettransformationsresponse.md index 0962b1e..5b5b103 100755 --- a/docs/models/operations/gettransformationsresponse.md +++ b/docs/models/operations/gettransformationsresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | diff --git a/docs/models/operations/muteeventresponse.md b/docs/models/operations/muteeventresponse.md index 9fbe729..edd5842 100755 --- a/docs/models/operations/muteeventresponse.md +++ b/docs/models/operations/muteeventresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Event` | [*shared.Event](../../models/shared/event.md) | :heavy_minus_sign: | A single event | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Event` | [*shared.Event](../../models/shared/event.md) | :heavy_minus_sign: | A single event | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/pauseconnectionresponse.md b/docs/models/operations/pauseconnectionresponse.md index ae11baa..f0fb3b0 100755 --- a/docs/models/operations/pauseconnectionresponse.md +++ b/docs/models/operations/pauseconnectionresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/retryeventresponse.md b/docs/models/operations/retryeventresponse.md index 2dc75ed..af6d05f 100755 --- a/docs/models/operations/retryeventresponse.md +++ b/docs/models/operations/retryeventresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `RetriedEvent` | [*shared.RetriedEvent](../../models/shared/retriedevent.md) | :heavy_minus_sign: | Retried event with event attempt | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `RetriedEvent` | [*shared.RetriedEvent](../../models/shared/retriedevent.md) | :heavy_minus_sign: | Retried event with event attempt | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/retryrequestresponse.md b/docs/models/operations/retryrequestresponse.md index b79c31d..150abef 100755 --- a/docs/models/operations/retryrequestresponse.md +++ b/docs/models/operations/retryrequestresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `RetryRequest` | [*shared.RetryRequest](../../models/shared/retryrequest.md) | :heavy_minus_sign: | Retry request operation result | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `RetryRequest` | [*shared.RetryRequest](../../models/shared/retryrequest.md) | :heavy_minus_sign: | Retry request operation result | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/testtransformationresponse.md b/docs/models/operations/testtransformationresponse.md index 3561b28..6c38bbb 100755 --- a/docs/models/operations/testtransformationresponse.md +++ b/docs/models/operations/testtransformationresponse.md @@ -5,7 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | | `ContentType` | *string* | :heavy_check_mark: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | N/A | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | diff --git a/docs/models/operations/triggerbookmarkresponse.md b/docs/models/operations/triggerbookmarkresponse.md index ba2909f..b9fe61d 100755 --- a/docs/models/operations/triggerbookmarkresponse.md +++ b/docs/models/operations/triggerbookmarkresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `EventArray` | [][shared.Event](../../models/shared/event.md) | :heavy_minus_sign: | Array of created events | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `EventArray` | [][shared.Event](../../models/shared/event.md) | :heavy_minus_sign: | Array of created events | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/unarchiveconnectionresponse.md b/docs/models/operations/unarchiveconnectionresponse.md index aa2c2fe..812530f 100755 --- a/docs/models/operations/unarchiveconnectionresponse.md +++ b/docs/models/operations/unarchiveconnectionresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/unarchivedestinationresponse.md b/docs/models/operations/unarchivedestinationresponse.md index 08ec9bd..8153005 100755 --- a/docs/models/operations/unarchivedestinationresponse.md +++ b/docs/models/operations/unarchivedestinationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/unarchiverulesetresponse.md b/docs/models/operations/unarchiverulesetresponse.md index 47d04e5..893a992 100755 --- a/docs/models/operations/unarchiverulesetresponse.md +++ b/docs/models/operations/unarchiverulesetresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/unarchivesourceresponse.md b/docs/models/operations/unarchivesourceresponse.md index 97c3e69..daa0f53 100755 --- a/docs/models/operations/unarchivesourceresponse.md +++ b/docs/models/operations/unarchivesourceresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/unpauseconnectionresponse.md b/docs/models/operations/unpauseconnectionresponse.md index b43b828..9ba949a 100755 --- a/docs/models/operations/unpauseconnectionresponse.md +++ b/docs/models/operations/unpauseconnectionresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Not Found | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatebookmarkresponse.md b/docs/models/operations/updatebookmarkresponse.md index 3121cdc..9f44d23 100755 --- a/docs/models/operations/updatebookmarkresponse.md +++ b/docs/models/operations/updatebookmarkresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `Bookmark` | [*shared.Bookmark](../../models/shared/bookmark.md) | :heavy_minus_sign: | A single bookmark | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `Bookmark` | [*shared.Bookmark](../../models/shared/bookmark.md) | :heavy_minus_sign: | A single bookmark | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updateconnectionresponse.md b/docs/models/operations/updateconnectionresponse.md index e373af0..2899863 100755 --- a/docs/models/operations/updateconnectionresponse.md +++ b/docs/models/operations/updateconnectionresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatedestinationresponse.md b/docs/models/operations/updatedestinationresponse.md index 1881811..6a39d5e 100755 --- a/docs/models/operations/updatedestinationresponse.md +++ b/docs/models/operations/updatedestinationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updateintegrationresponse.md b/docs/models/operations/updateintegrationresponse.md index 487a0de..fc4961c 100755 --- a/docs/models/operations/updateintegrationresponse.md +++ b/docs/models/operations/updateintegrationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Integration` | [*shared.Integration](../../models/shared/integration.md) | :heavy_minus_sign: | A single integration | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Integration` | [*shared.Integration](../../models/shared/integration.md) | :heavy_minus_sign: | A single integration | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updateissueresponse.md b/docs/models/operations/updateissueresponse.md index bc8a042..7d92234 100755 --- a/docs/models/operations/updateissueresponse.md +++ b/docs/models/operations/updateissueresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Issue` | *interface{}* | :heavy_minus_sign: | Updated issue | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Issue` | *interface{}* | :heavy_minus_sign: | Updated issue | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updateissuetriggerresponse.md b/docs/models/operations/updateissuetriggerresponse.md index 7251718..a98ecf4 100755 --- a/docs/models/operations/updateissuetriggerresponse.md +++ b/docs/models/operations/updateissuetriggerresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updaterulesetresponse.md b/docs/models/operations/updaterulesetresponse.md index 54a901c..84b6e2f 100755 --- a/docs/models/operations/updaterulesetresponse.md +++ b/docs/models/operations/updaterulesetresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatesourceresponse.md b/docs/models/operations/updatesourceresponse.md index dcfe7bc..b76fe76 100755 --- a/docs/models/operations/updatesourceresponse.md +++ b/docs/models/operations/updatesourceresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatetransformationresponse.md b/docs/models/operations/updatetransformationresponse.md index c1c7d89..2a67dd4 100755 --- a/docs/models/operations/updatetransformationresponse.md +++ b/docs/models/operations/updatetransformationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | -| `Transformation` | [*shared.Transformation](../../models/shared/transformation.md) | :heavy_minus_sign: | A single transformation | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | +| `Transformation` | [*shared.Transformation](../../models/shared/transformation.md) | :heavy_minus_sign: | A single transformation | \ No newline at end of file diff --git a/docs/models/operations/upsertconnectionresponse.md b/docs/models/operations/upsertconnectionresponse.md index 7a27d25..ba2981c 100755 --- a/docs/models/operations/upsertconnectionresponse.md +++ b/docs/models/operations/upsertconnectionresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | A single connection | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/upsertdestinationresponse.md b/docs/models/operations/upsertdestinationresponse.md index 640ab63..fd885b5 100755 --- a/docs/models/operations/upsertdestinationresponse.md +++ b/docs/models/operations/upsertdestinationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Destination` | [*shared.Destination](../../models/shared/destination.md) | :heavy_minus_sign: | A single destination | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/upsertissuetriggerresponse.md b/docs/models/operations/upsertissuetriggerresponse.md index 42f307b..eebf3e8 100755 --- a/docs/models/operations/upsertissuetriggerresponse.md +++ b/docs/models/operations/upsertissuetriggerresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `IssueTrigger` | [*shared.IssueTrigger](../../models/shared/issuetrigger.md) | :heavy_minus_sign: | A single issue trigger | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/upsertrulesetresponse.md b/docs/models/operations/upsertrulesetresponse.md index 40abc57..746800a 100755 --- a/docs/models/operations/upsertrulesetresponse.md +++ b/docs/models/operations/upsertrulesetresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Ruleset` | [*shared.Ruleset](../../models/shared/ruleset.md) | :heavy_minus_sign: | A single ruleset | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/upsertsourceresponse.md b/docs/models/operations/upsertsourceresponse.md index 9129941..298ac8b 100755 --- a/docs/models/operations/upsertsourceresponse.md +++ b/docs/models/operations/upsertsourceresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `Source` | [*shared.Source](../../models/shared/source.md) | :heavy_minus_sign: | A single source | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/upserttransformationresponse.md b/docs/models/operations/upserttransformationresponse.md index 740063f..9e8430c 100755 --- a/docs/models/operations/upserttransformationresponse.md +++ b/docs/models/operations/upserttransformationresponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `APIErrorResponse` | [*shared.APIErrorResponse](../../models/shared/apierrorresponse.md) | :heavy_minus_sign: | Bad Request | -| `ContentType` | *string* | :heavy_check_mark: | N/A | -| `StatusCode` | *int* | :heavy_check_mark: | N/A | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | -| `Transformation` | [*shared.Transformation](../../models/shared/transformation.md) | :heavy_minus_sign: | A single transformation | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A | +| `Transformation` | [*shared.Transformation](../../models/shared/transformation.md) | :heavy_minus_sign: | A single transformation | \ No newline at end of file diff --git a/docs/models/shared/apierrorresponse.md b/docs/models/shared/apierrorresponse.md deleted file mode 100755 index e1711c2..0000000 --- a/docs/models/shared/apierrorresponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# APIErrorResponse - -Error response model - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `Code` | *string* | :heavy_check_mark: | Error code | -| `Data` | [*APIErrorResponseData](../../models/shared/apierrorresponsedata.md) | :heavy_minus_sign: | N/A | -| `Message` | *string* | :heavy_check_mark: | Error description | -| `Status` | *float32* | :heavy_check_mark: | Status code | \ No newline at end of file diff --git a/docs/models/shared/apierrorresponsedata.md b/docs/models/shared/apierrorresponsedata.md deleted file mode 100755 index bbcaf6b..0000000 --- a/docs/models/shared/apierrorresponsedata.md +++ /dev/null @@ -1,7 +0,0 @@ -# APIErrorResponseData - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/event.go b/event.go index 6029fdb..b890bc7 100755 --- a/event.go +++ b/event.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *event) Get(ctx context.Context, id string) (*operations.GetEventRespons } res.Event = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -147,17 +157,26 @@ func (s *event) MuteEvent(ctx context.Context, id string) (*operations.MuteEvent } res.Event = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -217,17 +236,26 @@ func (s *event) Retry(ctx context.Context, id string) (*operations.RetryEventRes } res.RetriedEvent = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/eventrawbody.go b/eventrawbody.go index fe2d151..86d0fab 100755 --- a/eventrawbody.go +++ b/eventrawbody.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *eventRawBody) Get(ctx context.Context, id string) (*operations.GetEvent } res.RawBody = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/events.go b/events.go index 948148b..9f41751 100755 --- a/events.go +++ b/events.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,19 +77,28 @@ func (s *events) Get(ctx context.Context, request operations.GetEventsRequest) ( } res.EventPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/files.gen b/files.gen index 291929c..2309f9f 100755 --- a/files.gen +++ b/files.gen @@ -40,6 +40,7 @@ webhooknotifications.go hookdeck.go go.mod go.sum +pkg/models/sdkerrors/sdkerror.go pkg/types/bigint.go pkg/types/date.go pkg/types/datetime.go @@ -152,7 +153,6 @@ pkg/models/shared/attempttrigger.go pkg/models/shared/attemptstatus.go pkg/models/shared/attemptstate.go pkg/models/shared/attempterrorcode.go -pkg/models/shared/apierrorresponse.go pkg/models/shared/eventattemptpaginatedresult.go pkg/models/shared/seekpagination.go pkg/models/shared/orderbydirection.go @@ -260,6 +260,7 @@ pkg/models/shared/transformationpaginatedresult.go pkg/models/shared/togglewebhooknotifications.go pkg/models/shared/topicsvalue.go pkg/models/shared/security.go +pkg/models/sdkerrors/apierrorresponse.go docs/sdks/hookdeck/README.md docs/sdks/attempt/README.md docs/sdks/attempts/README.md @@ -870,8 +871,6 @@ docs/models/shared/attempttrigger.md docs/models/shared/attemptstatus.md docs/models/shared/attemptstate.md docs/models/shared/attempterrorcode.md -docs/models/shared/apierrorresponsedata.md -docs/models/shared/apierrorresponse.md docs/models/shared/eventattemptpaginatedresult.md docs/models/shared/seekpaginationdir.md docs/models/shared/seekpaginationorderby.md @@ -1043,4 +1042,6 @@ docs/models/shared/transformationpaginatedresult.md docs/models/shared/togglewebhooknotifications.md docs/models/shared/topicsvalue.md docs/models/shared/schemebasicauth.md -docs/models/shared/security.md \ No newline at end of file +docs/models/shared/security.md +docs/models/errors/apierrorresponsedata.md +docs/models/errors/apierrorresponse.md \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 23c2cf1..7a73a36 100644 --- a/gen.yaml +++ b/gen.yaml @@ -1,9 +1,9 @@ configVersion: 1.0.0 management: - docChecksum: 3e7295a1cd17ffd36e4c06c619746272 + docChecksum: bb2db859942682a0c387b6e92a5db55d docVersion: 1.0.0 - speakeasyVersion: 1.59.0 - generationVersion: 2.65.0 + speakeasyVersion: 1.61.0 + generationVersion: 2.70.0 generation: comments: disableComments: false @@ -13,6 +13,6 @@ generation: singleTagPerOp: false tagNamespacingDisabled: false go: - version: 1.2.0 + version: 1.4.1 maxMethodParams: 5 packageName: github.com/speakeasy-sdks/hookdeck-go diff --git a/hookdeck.go b/hookdeck.go index 8812269..8722718 100755 --- a/hookdeck.go +++ b/hookdeck.go @@ -223,8 +223,8 @@ func New(opts ...SDKOption) *Hookdeck { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "1.0.0", - SDKVersion: "1.2.0", - GenVersion: "2.65.0", + SDKVersion: "1.4.1", + GenVersion: "2.70.0", ServerDefaults: []map[string]string{ { "version": "2023-01-01", diff --git a/integration.go b/integration.go index bd183ec..2c6080b 100755 --- a/integration.go +++ b/integration.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -78,19 +79,28 @@ func (s *integration) AttachIntegrationToSource(ctx context.Context, id string, } res.AttachedIntegrationToSource = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -152,19 +162,28 @@ func (s *integration) Create(ctx context.Context, request operations.CreateInteg } res.Integration = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -223,17 +242,26 @@ func (s *integration) Delete(ctx context.Context, id string) (*operations.Delete } res.DeletedIntegration = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -293,19 +321,28 @@ func (s *integration) DetachIntegrationToSource(ctx context.Context, id string, } res.DetachedIntegrationFromSource = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -364,17 +401,26 @@ func (s *integration) Get(ctx context.Context, id string) (*operations.GetIntegr } res.Integration = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -444,6 +490,8 @@ func (s *integration) Update(ctx context.Context, requestBody operations.UpdateI } res.Integration = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -452,13 +500,20 @@ func (s *integration) Update(ctx context.Context, requestBody operations.UpdateI case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/integrations.go b/integrations.go index d2ba2a2..dd22a1a 100755 --- a/integrations.go +++ b/integrations.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -80,19 +81,28 @@ func (s *integrations) Get(ctx context.Context, label *string, provider *shared. } res.IntegrationPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/issue.go b/issue.go index 0de2490..3ee82b7 100755 --- a/issue.go +++ b/issue.go @@ -7,7 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" "net/http" @@ -76,17 +76,26 @@ func (s *issue) Dismiss(ctx context.Context, id string) (*operations.DismissIssu } res.Issue = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -145,17 +154,26 @@ func (s *issue) Get(ctx context.Context, id string) (*operations.GetIssueRespons } res.IssueWithData = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -225,19 +243,28 @@ func (s *issue) Update(ctx context.Context, requestBody operations.UpdateIssueRe } res.Issue = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/issues.go b/issues.go index b8578ac..7cfb6d9 100755 --- a/issues.go +++ b/issues.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -75,19 +76,28 @@ func (s *issues) Get(ctx context.Context, request operations.GetIssuesRequest) ( } res.IssueWithDataPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/issuescount.go b/issuescount.go index cc8078d..454755b 100755 --- a/issuescount.go +++ b/issuescount.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -74,17 +75,26 @@ func (s *issuesCount) Get(ctx context.Context, request operations.GetIssueCountR } res.IssueCount = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/issuetrigger.go b/issuetrigger.go index a8fc6f0..57e8d96 100755 --- a/issuetrigger.go +++ b/issuetrigger.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -81,19 +82,28 @@ func (s *issueTrigger) Create(ctx context.Context, request operations.CreateIssu } res.IssueTrigger = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -153,17 +163,26 @@ func (s *issueTrigger) Delete(ctx context.Context, id string) (*operations.Delet } res.DeletedIssueTriggerResponse = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -223,17 +242,26 @@ func (s *issueTrigger) Disable(ctx context.Context, id string) (*operations.Disa } res.IssueTrigger = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -293,17 +321,26 @@ func (s *issueTrigger) Enable(ctx context.Context, id string) (*operations.Enabl } res.IssueTrigger = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -363,17 +400,26 @@ func (s *issueTrigger) Get(ctx context.Context, id string) (*operations.GetIssue } res.IssueTrigger = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -444,19 +490,28 @@ func (s *issueTrigger) Update(ctx context.Context, requestBody operations.Update } res.IssueTrigger = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -519,19 +574,28 @@ func (s *issueTrigger) Upsert(ctx context.Context, request operations.UpsertIssu } res.IssueTrigger = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/issuetriggers.go b/issuetriggers.go index f45ac2a..a346b01 100755 --- a/issuetriggers.go +++ b/issuetriggers.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -75,19 +76,28 @@ func (s *issueTriggers) Get(ctx context.Context, request operations.GetIssueTrig } res.IssueTriggerPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/pkg/models/operations/addcustomdomain.go b/pkg/models/operations/addcustomdomain.go index 084d700..537fe49 100755 --- a/pkg/models/operations/addcustomdomain.go +++ b/pkg/models/operations/addcustomdomain.go @@ -12,6 +12,20 @@ type AddCustomDomainRequest struct { TeamID string `pathParam:"style=simple,explode=false,name=team_id"` } +func (o *AddCustomDomainRequest) GetAddCustomHostname() shared.AddCustomHostname { + if o == nil { + return shared.AddCustomHostname{} + } + return o.AddCustomHostname +} + +func (o *AddCustomDomainRequest) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + type AddCustomDomainResponse struct { // Custom domain successfuly added AddCustomHostname *shared.AddCustomHostname @@ -19,3 +33,31 @@ type AddCustomDomainResponse struct { StatusCode int RawResponse *http.Response } + +func (o *AddCustomDomainResponse) GetAddCustomHostname() *shared.AddCustomHostname { + if o == nil { + return nil + } + return o.AddCustomHostname +} + +func (o *AddCustomDomainResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *AddCustomDomainResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *AddCustomDomainResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/archiveconnection.go b/pkg/models/operations/archiveconnection.go index be50857..68bc727 100755 --- a/pkg/models/operations/archiveconnection.go +++ b/pkg/models/operations/archiveconnection.go @@ -11,12 +11,45 @@ type ArchiveConnectionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *ArchiveConnectionRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type ArchiveConnectionResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single connection Connection *shared.Connection ContentType string StatusCode int RawResponse *http.Response } + +func (o *ArchiveConnectionResponse) GetConnection() *shared.Connection { + if o == nil { + return nil + } + return o.Connection +} + +func (o *ArchiveConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *ArchiveConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *ArchiveConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/archivedestination.go b/pkg/models/operations/archivedestination.go index 3e65db5..b2299e9 100755 --- a/pkg/models/operations/archivedestination.go +++ b/pkg/models/operations/archivedestination.go @@ -11,12 +11,45 @@ type ArchiveDestinationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *ArchiveDestinationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type ArchiveDestinationResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single destination Destination *shared.Destination StatusCode int RawResponse *http.Response } + +func (o *ArchiveDestinationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *ArchiveDestinationResponse) GetDestination() *shared.Destination { + if o == nil { + return nil + } + return o.Destination +} + +func (o *ArchiveDestinationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *ArchiveDestinationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/archiveruleset.go b/pkg/models/operations/archiveruleset.go index 12d7fa8..f8932e9 100755 --- a/pkg/models/operations/archiveruleset.go +++ b/pkg/models/operations/archiveruleset.go @@ -11,12 +11,45 @@ type ArchiveRulesetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *ArchiveRulesetRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type ArchiveRulesetResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single ruleset Ruleset *shared.Ruleset StatusCode int RawResponse *http.Response } + +func (o *ArchiveRulesetResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *ArchiveRulesetResponse) GetRuleset() *shared.Ruleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *ArchiveRulesetResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *ArchiveRulesetResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/archivesource.go b/pkg/models/operations/archivesource.go index 0490e22..b7fef12 100755 --- a/pkg/models/operations/archivesource.go +++ b/pkg/models/operations/archivesource.go @@ -11,12 +11,45 @@ type ArchiveSourceRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *ArchiveSourceRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type ArchiveSourceResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single source Source *shared.Source StatusCode int RawResponse *http.Response } + +func (o *ArchiveSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *ArchiveSourceResponse) GetSource() *shared.Source { + if o == nil { + return nil + } + return o.Source +} + +func (o *ArchiveSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *ArchiveSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/attachintegrationtosource.go b/pkg/models/operations/attachintegrationtosource.go index 58c219c..bf2ae30 100755 --- a/pkg/models/operations/attachintegrationtosource.go +++ b/pkg/models/operations/attachintegrationtosource.go @@ -12,12 +12,52 @@ type AttachIntegrationToSourceRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=source_id"` } +func (o *AttachIntegrationToSourceRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *AttachIntegrationToSourceRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + type AttachIntegrationToSourceResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // Attach operation success status AttachedIntegrationToSource *shared.AttachedIntegrationToSource ContentType string StatusCode int RawResponse *http.Response } + +func (o *AttachIntegrationToSourceResponse) GetAttachedIntegrationToSource() *shared.AttachedIntegrationToSource { + if o == nil { + return nil + } + return o.AttachedIntegrationToSource +} + +func (o *AttachIntegrationToSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *AttachIntegrationToSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *AttachIntegrationToSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/canceleventbulkretry.go b/pkg/models/operations/canceleventbulkretry.go index ae110c8..0096649 100755 --- a/pkg/models/operations/canceleventbulkretry.go +++ b/pkg/models/operations/canceleventbulkretry.go @@ -11,12 +11,45 @@ type CancelEventBulkRetryRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *CancelEventBulkRetryRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type CancelEventBulkRetryResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single events bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *CancelEventBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *CancelEventBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CancelEventBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CancelEventBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/cancelignoredeventbulkretry.go b/pkg/models/operations/cancelignoredeventbulkretry.go index cfb72c3..ce21a4b 100755 --- a/pkg/models/operations/cancelignoredeventbulkretry.go +++ b/pkg/models/operations/cancelignoredeventbulkretry.go @@ -11,12 +11,45 @@ type CancelIgnoredEventBulkRetryRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *CancelIgnoredEventBulkRetryRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type CancelIgnoredEventBulkRetryResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single ignored events bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *CancelIgnoredEventBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *CancelIgnoredEventBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CancelIgnoredEventBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CancelIgnoredEventBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/cancelrequestbulkretry.go b/pkg/models/operations/cancelrequestbulkretry.go index 28aaea4..2b9ab4f 100755 --- a/pkg/models/operations/cancelrequestbulkretry.go +++ b/pkg/models/operations/cancelrequestbulkretry.go @@ -11,12 +11,45 @@ type CancelRequestBulkRetryRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *CancelRequestBulkRetryRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type CancelRequestBulkRetryResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single requests bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *CancelRequestBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *CancelRequestBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CancelRequestBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CancelRequestBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createbookmark.go b/pkg/models/operations/createbookmark.go index 6aab03b..095122c 100755 --- a/pkg/models/operations/createbookmark.go +++ b/pkg/models/operations/createbookmark.go @@ -18,12 +18,66 @@ type CreateBookmarkRequestBody struct { WebhookID string `json:"webhook_id"` } +func (o *CreateBookmarkRequestBody) GetEventDataID() string { + if o == nil { + return "" + } + return o.EventDataID +} + +func (o *CreateBookmarkRequestBody) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *CreateBookmarkRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *CreateBookmarkRequestBody) GetWebhookID() string { + if o == nil { + return "" + } + return o.WebhookID +} + type CreateBookmarkResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // A single bookmark Bookmark *shared.Bookmark ContentType string StatusCode int RawResponse *http.Response } + +func (o *CreateBookmarkResponse) GetBookmark() *shared.Bookmark { + if o == nil { + return nil + } + return o.Bookmark +} + +func (o *CreateBookmarkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateBookmarkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateBookmarkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createconnection.go b/pkg/models/operations/createconnection.go index 90dda23..77aea12 100755 --- a/pkg/models/operations/createconnection.go +++ b/pkg/models/operations/createconnection.go @@ -59,6 +59,62 @@ type CreateConnectionRequestBodyDestination struct { URL *string `json:"url,omitempty"` } +func (o *CreateConnectionRequestBodyDestination) GetAuthMethod() interface{} { + if o == nil { + return nil + } + return o.AuthMethod +} + +func (o *CreateConnectionRequestBodyDestination) GetCliPath() *string { + if o == nil { + return nil + } + return o.CliPath +} + +func (o *CreateConnectionRequestBodyDestination) GetHTTPMethod() *shared.DestinationHTTPMethod { + if o == nil { + return nil + } + return o.HTTPMethod +} + +func (o *CreateConnectionRequestBodyDestination) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateConnectionRequestBodyDestination) GetPathForwardingDisabled() *bool { + if o == nil { + return nil + } + return o.PathForwardingDisabled +} + +func (o *CreateConnectionRequestBodyDestination) GetRateLimit() interface{} { + if o == nil { + return nil + } + return o.RateLimit +} + +func (o *CreateConnectionRequestBodyDestination) GetRateLimitPeriod() *CreateConnectionRequestBodyDestinationRateLimitPeriod { + if o == nil { + return nil + } + return o.RateLimitPeriod +} + +func (o *CreateConnectionRequestBodyDestination) GetURL() *string { + if o == nil { + return nil + } + return o.URL +} + // CreateConnectionRequestBodyRuleset - Ruleset input object type CreateConnectionRequestBodyRuleset struct { IsTeamDefault *bool `json:"is_team_default,omitempty"` @@ -68,6 +124,27 @@ type CreateConnectionRequestBodyRuleset struct { Rules []interface{} `json:"rules,omitempty"` } +func (o *CreateConnectionRequestBodyRuleset) GetIsTeamDefault() *bool { + if o == nil { + return nil + } + return o.IsTeamDefault +} + +func (o *CreateConnectionRequestBodyRuleset) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateConnectionRequestBodyRuleset) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + // CreateConnectionRequestBodySource - Source input object type CreateConnectionRequestBodySource struct { // List of allowed HTTP methods. Defaults to PUT, POST, PATCH, DELETE. @@ -78,6 +155,27 @@ type CreateConnectionRequestBodySource struct { Name string `json:"name"` } +func (o *CreateConnectionRequestBodySource) GetAllowedHTTPMethods() []shared.SourceAllowedHTTPMethod { + if o == nil { + return nil + } + return o.AllowedHTTPMethods +} + +func (o *CreateConnectionRequestBodySource) GetCustomResponse() *shared.SourceCustomResponse { + if o == nil { + return nil + } + return o.CustomResponse +} + +func (o *CreateConnectionRequestBodySource) GetName() string { + if o == nil { + return "" + } + return o.Name +} + type CreateConnectionRequestBody struct { // Destination input object Destination *CreateConnectionRequestBodyDestination `json:"destination,omitempty"` @@ -97,12 +195,94 @@ type CreateConnectionRequestBody struct { SourceID *string `json:"source_id,omitempty"` } +func (o *CreateConnectionRequestBody) GetDestination() *CreateConnectionRequestBodyDestination { + if o == nil { + return nil + } + return o.Destination +} + +func (o *CreateConnectionRequestBody) GetDestinationID() *string { + if o == nil { + return nil + } + return o.DestinationID +} + +func (o *CreateConnectionRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateConnectionRequestBody) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + +func (o *CreateConnectionRequestBody) GetRuleset() *CreateConnectionRequestBodyRuleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *CreateConnectionRequestBody) GetRulesetID() *string { + if o == nil { + return nil + } + return o.RulesetID +} + +func (o *CreateConnectionRequestBody) GetSource() *CreateConnectionRequestBodySource { + if o == nil { + return nil + } + return o.Source +} + +func (o *CreateConnectionRequestBody) GetSourceID() *string { + if o == nil { + return nil + } + return o.SourceID +} + type CreateConnectionResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // A single connection Connection *shared.Connection ContentType string StatusCode int RawResponse *http.Response } + +func (o *CreateConnectionResponse) GetConnection() *shared.Connection { + if o == nil { + return nil + } + return o.Connection +} + +func (o *CreateConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createdestination.go b/pkg/models/operations/createdestination.go index 541da4c..3b9a29f 100755 --- a/pkg/models/operations/createdestination.go +++ b/pkg/models/operations/createdestination.go @@ -58,12 +58,94 @@ type CreateDestinationRequestBody struct { URL *string `json:"url,omitempty"` } +func (o *CreateDestinationRequestBody) GetAuthMethod() interface{} { + if o == nil { + return nil + } + return o.AuthMethod +} + +func (o *CreateDestinationRequestBody) GetCliPath() *string { + if o == nil { + return nil + } + return o.CliPath +} + +func (o *CreateDestinationRequestBody) GetHTTPMethod() *shared.DestinationHTTPMethod { + if o == nil { + return nil + } + return o.HTTPMethod +} + +func (o *CreateDestinationRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateDestinationRequestBody) GetPathForwardingDisabled() *bool { + if o == nil { + return nil + } + return o.PathForwardingDisabled +} + +func (o *CreateDestinationRequestBody) GetRateLimit() interface{} { + if o == nil { + return nil + } + return o.RateLimit +} + +func (o *CreateDestinationRequestBody) GetRateLimitPeriod() *CreateDestinationRequestBodyRateLimitPeriod { + if o == nil { + return nil + } + return o.RateLimitPeriod +} + +func (o *CreateDestinationRequestBody) GetURL() *string { + if o == nil { + return nil + } + return o.URL +} + type CreateDestinationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single destination Destination *shared.Destination StatusCode int RawResponse *http.Response } + +func (o *CreateDestinationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateDestinationResponse) GetDestination() *shared.Destination { + if o == nil { + return nil + } + return o.Destination +} + +func (o *CreateDestinationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateDestinationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createeventbulkretry.go b/pkg/models/operations/createeventbulkretry.go index b2205d3..6d6319b 100755 --- a/pkg/models/operations/createeventbulkretry.go +++ b/pkg/models/operations/createeventbulkretry.go @@ -21,6 +21,48 @@ type CreateEventBulkRetryRequestBodyQueryAttempts2 struct { Lte *int64 `json:"lte,omitempty"` } +func (o *CreateEventBulkRetryRequestBodyQueryAttempts2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateEventBulkRetryRequestBodyQueryAttempts2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *CreateEventBulkRetryRequestBodyQueryAttempts2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateEventBulkRetryRequestBodyQueryAttempts2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateEventBulkRetryRequestBodyQueryAttempts2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateEventBulkRetryRequestBodyQueryAttempts2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type CreateEventBulkRetryRequestBodyQueryAttemptsType string const ( @@ -234,6 +276,13 @@ type CreateEventBulkRetryRequestBodyQueryCliID2 struct { Any *bool `json:"any,omitempty"` } +func (o *CreateEventBulkRetryRequestBodyQueryCliID2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + type CreateEventBulkRetryRequestBodyQueryCliIDType string const ( @@ -403,6 +452,41 @@ type CreateEventBulkRetryRequestBodyQueryCreatedAt2 struct { Lte *time.Time `json:"lte,omitempty"` } +func (o *CreateEventBulkRetryRequestBodyQueryCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateEventBulkRetryRequestBodyQueryCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateEventBulkRetryRequestBodyQueryCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateEventBulkRetryRequestBodyQueryCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateEventBulkRetryRequestBodyQueryCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type CreateEventBulkRetryRequestBodyQueryCreatedAtType string const ( @@ -892,6 +976,41 @@ type CreateEventBulkRetryRequestBodyQueryLastAttemptAt2 struct { Lte *time.Time `json:"lte,omitempty"` } +func (o *CreateEventBulkRetryRequestBodyQueryLastAttemptAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateEventBulkRetryRequestBodyQueryLastAttemptAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateEventBulkRetryRequestBodyQueryLastAttemptAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateEventBulkRetryRequestBodyQueryLastAttemptAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateEventBulkRetryRequestBodyQueryLastAttemptAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type CreateEventBulkRetryRequestBodyQueryLastAttemptAtType string const ( @@ -1042,6 +1161,48 @@ type CreateEventBulkRetryRequestBodyQueryResponseStatus2 struct { Lte *int64 `json:"lte,omitempty"` } +func (o *CreateEventBulkRetryRequestBodyQueryResponseStatus2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateEventBulkRetryRequestBodyQueryResponseStatus2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *CreateEventBulkRetryRequestBodyQueryResponseStatus2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateEventBulkRetryRequestBodyQueryResponseStatus2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateEventBulkRetryRequestBodyQueryResponseStatus2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateEventBulkRetryRequestBodyQueryResponseStatus2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type CreateEventBulkRetryRequestBodyQueryResponseStatusType string const ( @@ -1279,6 +1440,41 @@ type CreateEventBulkRetryRequestBodyQuerySuccessfulAt2 struct { Lte *time.Time `json:"lte,omitempty"` } +func (o *CreateEventBulkRetryRequestBodyQuerySuccessfulAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateEventBulkRetryRequestBodyQuerySuccessfulAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateEventBulkRetryRequestBodyQuerySuccessfulAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateEventBulkRetryRequestBodyQuerySuccessfulAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateEventBulkRetryRequestBodyQuerySuccessfulAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type CreateEventBulkRetryRequestBodyQuerySuccessfulAtType string const ( @@ -1456,17 +1652,197 @@ type CreateEventBulkRetryRequestBodyQuery struct { WebhookID *CreateEventBulkRetryRequestBodyQueryWebhookID `json:"webhook_id,omitempty"` } +func (o *CreateEventBulkRetryRequestBodyQuery) GetAttempts() *CreateEventBulkRetryRequestBodyQueryAttempts { + if o == nil { + return nil + } + return o.Attempts +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetBody() *CreateEventBulkRetryRequestBodyQueryBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetBulkRetryID() *CreateEventBulkRetryRequestBodyQueryBulkRetryID { + if o == nil { + return nil + } + return o.BulkRetryID +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetCliID() *CreateEventBulkRetryRequestBodyQueryCliID { + if o == nil { + return nil + } + return o.CliID +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetCliUserID() *CreateEventBulkRetryRequestBodyQueryCliUserID { + if o == nil { + return nil + } + return o.CliUserID +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetCreatedAt() *CreateEventBulkRetryRequestBodyQueryCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetDestinationID() *CreateEventBulkRetryRequestBodyQueryDestinationID { + if o == nil { + return nil + } + return o.DestinationID +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetErrorCode() *CreateEventBulkRetryRequestBodyQueryErrorCode { + if o == nil { + return nil + } + return o.ErrorCode +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetEventDataID() *CreateEventBulkRetryRequestBodyQueryEventDataID { + if o == nil { + return nil + } + return o.EventDataID +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetHeaders() *CreateEventBulkRetryRequestBodyQueryHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetID() *CreateEventBulkRetryRequestBodyQueryID { + if o == nil { + return nil + } + return o.ID +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetIssueID() *CreateEventBulkRetryRequestBodyQueryIssueID { + if o == nil { + return nil + } + return o.IssueID +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetLastAttemptAt() *CreateEventBulkRetryRequestBodyQueryLastAttemptAt { + if o == nil { + return nil + } + return o.LastAttemptAt +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetParsedQuery() *CreateEventBulkRetryRequestBodyQueryParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetPath() *string { + if o == nil { + return nil + } + return o.Path +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetResponseStatus() *CreateEventBulkRetryRequestBodyQueryResponseStatus { + if o == nil { + return nil + } + return o.ResponseStatus +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetSearchTerm() *string { + if o == nil { + return nil + } + return o.SearchTerm +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetSourceID() *CreateEventBulkRetryRequestBodyQuerySourceID { + if o == nil { + return nil + } + return o.SourceID +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetStatus() *CreateEventBulkRetryRequestBodyQueryStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetSuccessfulAt() *CreateEventBulkRetryRequestBodyQuerySuccessfulAt { + if o == nil { + return nil + } + return o.SuccessfulAt +} + +func (o *CreateEventBulkRetryRequestBodyQuery) GetWebhookID() *CreateEventBulkRetryRequestBodyQueryWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + type CreateEventBulkRetryRequestBody struct { // Filter properties for the events to be included in the bulk retry Query *CreateEventBulkRetryRequestBodyQuery `json:"query,omitempty"` } +func (o *CreateEventBulkRetryRequestBody) GetQuery() *CreateEventBulkRetryRequestBodyQuery { + if o == nil { + return nil + } + return o.Query +} + type CreateEventBulkRetryResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // A single events bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *CreateEventBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *CreateEventBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateEventBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateEventBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createignoredeventbulkretry.go b/pkg/models/operations/createignoredeventbulkretry.go index 8ebd9b3..63034ae 100755 --- a/pkg/models/operations/createignoredeventbulkretry.go +++ b/pkg/models/operations/createignoredeventbulkretry.go @@ -156,17 +156,71 @@ type CreateIgnoredEventBulkRetryRequestBodyQuery struct { WebhookID *CreateIgnoredEventBulkRetryRequestBodyQueryWebhookID `json:"webhook_id,omitempty"` } +func (o *CreateIgnoredEventBulkRetryRequestBodyQuery) GetCause() *CreateIgnoredEventBulkRetryRequestBodyQueryCause { + if o == nil { + return nil + } + return o.Cause +} + +func (o *CreateIgnoredEventBulkRetryRequestBodyQuery) GetTransformationID() *string { + if o == nil { + return nil + } + return o.TransformationID +} + +func (o *CreateIgnoredEventBulkRetryRequestBodyQuery) GetWebhookID() *CreateIgnoredEventBulkRetryRequestBodyQueryWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + type CreateIgnoredEventBulkRetryRequestBody struct { // Filter by the bulk retry ignored event query object Query *CreateIgnoredEventBulkRetryRequestBodyQuery `json:"query,omitempty"` } +func (o *CreateIgnoredEventBulkRetryRequestBody) GetQuery() *CreateIgnoredEventBulkRetryRequestBodyQuery { + if o == nil { + return nil + } + return o.Query +} + type CreateIgnoredEventBulkRetryResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // A single ignored events bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *CreateIgnoredEventBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *CreateIgnoredEventBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateIgnoredEventBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateIgnoredEventBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createintegration.go b/pkg/models/operations/createintegration.go index 516553c..2a024f2 100755 --- a/pkg/models/operations/createintegration.go +++ b/pkg/models/operations/createintegration.go @@ -22,12 +22,66 @@ type CreateIntegrationRequestBody struct { Provider *shared.IntegrationProvider `json:"provider,omitempty"` } +func (o *CreateIntegrationRequestBody) GetConfigs() interface{} { + if o == nil { + return nil + } + return o.Configs +} + +func (o *CreateIntegrationRequestBody) GetFeatures() []shared.IntegrationFeature { + if o == nil { + return nil + } + return o.Features +} + +func (o *CreateIntegrationRequestBody) GetLabel() *string { + if o == nil { + return nil + } + return o.Label +} + +func (o *CreateIntegrationRequestBody) GetProvider() *shared.IntegrationProvider { + if o == nil { + return nil + } + return o.Provider +} + type CreateIntegrationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single integration Integration *shared.Integration StatusCode int RawResponse *http.Response } + +func (o *CreateIntegrationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateIntegrationResponse) GetIntegration() *shared.Integration { + if o == nil { + return nil + } + return o.Integration +} + +func (o *CreateIntegrationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateIntegrationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createissuetrigger.go b/pkg/models/operations/createissuetrigger.go index 2e3dd21..02d5a15 100755 --- a/pkg/models/operations/createissuetrigger.go +++ b/pkg/models/operations/createissuetrigger.go @@ -18,12 +18,66 @@ type CreateIssueTriggerRequestBody struct { Type shared.IssueType `json:"type"` } +func (o *CreateIssueTriggerRequestBody) GetChannels() shared.IssueTriggerChannels { + if o == nil { + return shared.IssueTriggerChannels{} + } + return o.Channels +} + +func (o *CreateIssueTriggerRequestBody) GetConfigs() interface{} { + if o == nil { + return nil + } + return o.Configs +} + +func (o *CreateIssueTriggerRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *CreateIssueTriggerRequestBody) GetType() shared.IssueType { + if o == nil { + return IssueType("") + } + return o.Type +} + type CreateIssueTriggerResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single issue trigger IssueTrigger *shared.IssueTrigger StatusCode int RawResponse *http.Response } + +func (o *CreateIssueTriggerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateIssueTriggerResponse) GetIssueTrigger() *shared.IssueTrigger { + if o == nil { + return nil + } + return o.IssueTrigger +} + +func (o *CreateIssueTriggerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateIssueTriggerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createrequestbulkretry.go b/pkg/models/operations/createrequestbulkretry.go index 7ddd6e7..8db3505 100755 --- a/pkg/models/operations/createrequestbulkretry.go +++ b/pkg/models/operations/createrequestbulkretry.go @@ -160,6 +160,41 @@ type CreateRequestBulkRetryRequestBodyQueryCreatedAt2 struct { Lte *time.Time `json:"lte,omitempty"` } +func (o *CreateRequestBulkRetryRequestBodyQueryCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateRequestBulkRetryRequestBodyQueryCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateRequestBulkRetryRequestBodyQueryCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateRequestBulkRetryRequestBodyQueryCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateRequestBulkRetryRequestBodyQueryCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type CreateRequestBulkRetryRequestBodyQueryCreatedAtType string const ( @@ -237,6 +272,48 @@ type CreateRequestBulkRetryRequestBodyQueryEventsCount2 struct { Lte *int64 `json:"lte,omitempty"` } +func (o *CreateRequestBulkRetryRequestBodyQueryEventsCount2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateRequestBulkRetryRequestBodyQueryEventsCount2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *CreateRequestBulkRetryRequestBodyQueryEventsCount2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateRequestBulkRetryRequestBodyQueryEventsCount2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateRequestBulkRetryRequestBodyQueryEventsCount2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateRequestBulkRetryRequestBodyQueryEventsCount2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type CreateRequestBulkRetryRequestBodyQueryEventsCountType string const ( @@ -478,6 +555,48 @@ type CreateRequestBulkRetryRequestBodyQueryIgnoredCount2 struct { Lte *int64 `json:"lte,omitempty"` } +func (o *CreateRequestBulkRetryRequestBodyQueryIgnoredCount2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIgnoredCount2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIgnoredCount2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIgnoredCount2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIgnoredCount2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIgnoredCount2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type CreateRequestBulkRetryRequestBodyQueryIgnoredCountType string const ( @@ -578,6 +697,41 @@ type CreateRequestBulkRetryRequestBodyQueryIngestedAt2 struct { Lte *time.Time `json:"lte,omitempty"` } +func (o *CreateRequestBulkRetryRequestBodyQueryIngestedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIngestedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIngestedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIngestedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateRequestBulkRetryRequestBodyQueryIngestedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type CreateRequestBulkRetryRequestBodyQueryIngestedAtType string const ( @@ -728,6 +882,48 @@ type CreateRequestBulkRetryRequestBodyQueryRejectionCause2 struct { Lte *shared.RequestRejectionCause `json:"lte,omitempty"` } +func (o *CreateRequestBulkRetryRequestBodyQueryRejectionCause2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *CreateRequestBulkRetryRequestBodyQueryRejectionCause2) GetContains() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Contains +} + +func (o *CreateRequestBulkRetryRequestBodyQueryRejectionCause2) GetGt() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Gt +} + +func (o *CreateRequestBulkRetryRequestBodyQueryRejectionCause2) GetGte() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Gte +} + +func (o *CreateRequestBulkRetryRequestBodyQueryRejectionCause2) GetLe() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Le +} + +func (o *CreateRequestBulkRetryRequestBodyQueryRejectionCause2) GetLte() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Lte +} + type CreateRequestBulkRetryRequestBodyQueryRejectionCauseType string const ( @@ -943,17 +1139,155 @@ type CreateRequestBulkRetryRequestBodyQuery struct { Verified *bool `json:"verified,omitempty"` } +func (o *CreateRequestBulkRetryRequestBodyQuery) GetBody() *CreateRequestBulkRetryRequestBodyQueryBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetBulkRetryID() *CreateRequestBulkRetryRequestBodyQueryBulkRetryID { + if o == nil { + return nil + } + return o.BulkRetryID +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetCreatedAt() *CreateRequestBulkRetryRequestBodyQueryCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetEventsCount() *CreateRequestBulkRetryRequestBodyQueryEventsCount { + if o == nil { + return nil + } + return o.EventsCount +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetHeaders() *CreateRequestBulkRetryRequestBodyQueryHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetID() *CreateRequestBulkRetryRequestBodyQueryID { + if o == nil { + return nil + } + return o.ID +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetIgnoredCount() *CreateRequestBulkRetryRequestBodyQueryIgnoredCount { + if o == nil { + return nil + } + return o.IgnoredCount +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetIngestedAt() *CreateRequestBulkRetryRequestBodyQueryIngestedAt { + if o == nil { + return nil + } + return o.IngestedAt +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetParsedQuery() *CreateRequestBulkRetryRequestBodyQueryParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetPath() *string { + if o == nil { + return nil + } + return o.Path +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetRejectionCause() *CreateRequestBulkRetryRequestBodyQueryRejectionCause { + if o == nil { + return nil + } + return o.RejectionCause +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetSearchTerm() *string { + if o == nil { + return nil + } + return o.SearchTerm +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetSourceID() *CreateRequestBulkRetryRequestBodyQuerySourceID { + if o == nil { + return nil + } + return o.SourceID +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetStatus() *CreateRequestBulkRetryRequestBodyQueryStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *CreateRequestBulkRetryRequestBodyQuery) GetVerified() *bool { + if o == nil { + return nil + } + return o.Verified +} + type CreateRequestBulkRetryRequestBody struct { // Filter properties for the events to be included in the bulk retry, use query parameters of [Requests](#requests) Query *CreateRequestBulkRetryRequestBodyQuery `json:"query,omitempty"` } +func (o *CreateRequestBulkRetryRequestBody) GetQuery() *CreateRequestBulkRetryRequestBodyQuery { + if o == nil { + return nil + } + return o.Query +} + type CreateRequestBulkRetryResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // A single requests bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *CreateRequestBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *CreateRequestBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateRequestBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateRequestBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createruleset.go b/pkg/models/operations/createruleset.go index ae7c396..0997596 100755 --- a/pkg/models/operations/createruleset.go +++ b/pkg/models/operations/createruleset.go @@ -15,12 +15,59 @@ type CreateRulesetRequestBody struct { Rules []interface{} `json:"rules,omitempty"` } +func (o *CreateRulesetRequestBody) GetIsTeamDefault() *bool { + if o == nil { + return nil + } + return o.IsTeamDefault +} + +func (o *CreateRulesetRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateRulesetRequestBody) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + type CreateRulesetResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single ruleset Ruleset *shared.Ruleset StatusCode int RawResponse *http.Response } + +func (o *CreateRulesetResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateRulesetResponse) GetRuleset() *shared.Ruleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *CreateRulesetResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateRulesetResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createsource.go b/pkg/models/operations/createsource.go index d4009f3..98ad4c8 100755 --- a/pkg/models/operations/createsource.go +++ b/pkg/models/operations/createsource.go @@ -16,12 +16,59 @@ type CreateSourceRequestBody struct { Name string `json:"name"` } +func (o *CreateSourceRequestBody) GetAllowedHTTPMethods() []shared.SourceAllowedHTTPMethod { + if o == nil { + return nil + } + return o.AllowedHTTPMethods +} + +func (o *CreateSourceRequestBody) GetCustomResponse() *shared.SourceCustomResponse { + if o == nil { + return nil + } + return o.CustomResponse +} + +func (o *CreateSourceRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + type CreateSourceResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single source Source *shared.Source StatusCode int RawResponse *http.Response } + +func (o *CreateSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceResponse) GetSource() *shared.Source { + if o == nil { + return nil + } + return o.Source +} + +func (o *CreateSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/createtransformation.go b/pkg/models/operations/createtransformation.go index bff4f84..02457f1 100755 --- a/pkg/models/operations/createtransformation.go +++ b/pkg/models/operations/createtransformation.go @@ -16,12 +16,59 @@ type CreateTransformationRequestBody struct { Name string `json:"name"` } +func (o *CreateTransformationRequestBody) GetCode() string { + if o == nil { + return "" + } + return o.Code +} + +func (o *CreateTransformationRequestBody) GetEnv() map[string]interface{} { + if o == nil { + return nil + } + return o.Env +} + +func (o *CreateTransformationRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + type CreateTransformationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // A single transformation Transformation *shared.Transformation } + +func (o *CreateTransformationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateTransformationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateTransformationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *CreateTransformationResponse) GetTransformation() *shared.Transformation { + if o == nil { + return nil + } + return o.Transformation +} diff --git a/pkg/models/operations/deletebookmark.go b/pkg/models/operations/deletebookmark.go index 67f86c4..c2e948b 100755 --- a/pkg/models/operations/deletebookmark.go +++ b/pkg/models/operations/deletebookmark.go @@ -11,12 +11,45 @@ type DeleteBookmarkRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *DeleteBookmarkRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type DeleteBookmarkResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // An object with deleted bookmark's id DeletedBookmarkResponse *shared.DeletedBookmarkResponse StatusCode int RawResponse *http.Response } + +func (o *DeleteBookmarkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteBookmarkResponse) GetDeletedBookmarkResponse() *shared.DeletedBookmarkResponse { + if o == nil { + return nil + } + return o.DeletedBookmarkResponse +} + +func (o *DeleteBookmarkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteBookmarkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/deleteconnection.go b/pkg/models/operations/deleteconnection.go index 19aed84..112d615 100755 --- a/pkg/models/operations/deleteconnection.go +++ b/pkg/models/operations/deleteconnection.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "net/http" ) @@ -11,18 +10,58 @@ type DeleteConnectionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *DeleteConnectionRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + // DeleteConnection200ApplicationJSON - A single connection type DeleteConnection200ApplicationJSON struct { // ID of the connection ID string `json:"id"` } +func (o *DeleteConnection200ApplicationJSON) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type DeleteConnectionResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // A single connection DeleteConnection200ApplicationJSONObject *DeleteConnection200ApplicationJSON } + +func (o *DeleteConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *DeleteConnectionResponse) GetDeleteConnection200ApplicationJSONObject() *DeleteConnection200ApplicationJSON { + if o == nil { + return nil + } + return o.DeleteConnection200ApplicationJSONObject +} diff --git a/pkg/models/operations/deletecustomdomain.go b/pkg/models/operations/deletecustomdomain.go index 6076c5c..0cfdd19 100755 --- a/pkg/models/operations/deletecustomdomain.go +++ b/pkg/models/operations/deletecustomdomain.go @@ -12,6 +12,20 @@ type DeleteCustomDomainRequest struct { TeamID string `pathParam:"style=simple,explode=false,name=team_id"` } +func (o *DeleteCustomDomainRequest) GetDomainID() string { + if o == nil { + return "" + } + return o.DomainID +} + +func (o *DeleteCustomDomainRequest) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + type DeleteCustomDomainResponse struct { ContentType string // Custom domain successfuly removed @@ -19,3 +33,31 @@ type DeleteCustomDomainResponse struct { StatusCode int RawResponse *http.Response } + +func (o *DeleteCustomDomainResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteCustomDomainResponse) GetDeleteCustomDomainSchema() *shared.DeleteCustomDomainSchema { + if o == nil { + return nil + } + return o.DeleteCustomDomainSchema +} + +func (o *DeleteCustomDomainResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteCustomDomainResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/deletedestination.go b/pkg/models/operations/deletedestination.go index 7ee7f62..3b58724 100755 --- a/pkg/models/operations/deletedestination.go +++ b/pkg/models/operations/deletedestination.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "net/http" ) @@ -11,18 +10,58 @@ type DeleteDestinationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *DeleteDestinationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + // DeleteDestination200ApplicationJSON - A single destination type DeleteDestination200ApplicationJSON struct { // ID of the destination ID string `json:"id"` } +func (o *DeleteDestination200ApplicationJSON) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type DeleteDestinationResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // A single destination DeleteDestination200ApplicationJSONObject *DeleteDestination200ApplicationJSON } + +func (o *DeleteDestinationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteDestinationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteDestinationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *DeleteDestinationResponse) GetDeleteDestination200ApplicationJSONObject() *DeleteDestination200ApplicationJSON { + if o == nil { + return nil + } + return o.DeleteDestination200ApplicationJSONObject +} diff --git a/pkg/models/operations/deleteintegration.go b/pkg/models/operations/deleteintegration.go index 24f99e8..23e0832 100755 --- a/pkg/models/operations/deleteintegration.go +++ b/pkg/models/operations/deleteintegration.go @@ -11,12 +11,45 @@ type DeleteIntegrationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *DeleteIntegrationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type DeleteIntegrationResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // An object with deleted integration id DeletedIntegration *shared.DeletedIntegration StatusCode int RawResponse *http.Response } + +func (o *DeleteIntegrationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteIntegrationResponse) GetDeletedIntegration() *shared.DeletedIntegration { + if o == nil { + return nil + } + return o.DeletedIntegration +} + +func (o *DeleteIntegrationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteIntegrationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/deleteissuetrigger.go b/pkg/models/operations/deleteissuetrigger.go index d127867..892adc2 100755 --- a/pkg/models/operations/deleteissuetrigger.go +++ b/pkg/models/operations/deleteissuetrigger.go @@ -11,12 +11,45 @@ type DeleteIssueTriggerRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *DeleteIssueTriggerRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type DeleteIssueTriggerResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // An object with deleted issue trigger's id DeletedIssueTriggerResponse *shared.DeletedIssueTriggerResponse StatusCode int RawResponse *http.Response } + +func (o *DeleteIssueTriggerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteIssueTriggerResponse) GetDeletedIssueTriggerResponse() *shared.DeletedIssueTriggerResponse { + if o == nil { + return nil + } + return o.DeletedIssueTriggerResponse +} + +func (o *DeleteIssueTriggerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteIssueTriggerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/deletesource.go b/pkg/models/operations/deletesource.go index 56a7066..69d2d1e 100755 --- a/pkg/models/operations/deletesource.go +++ b/pkg/models/operations/deletesource.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "net/http" ) @@ -11,18 +10,58 @@ type DeleteSourceRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *DeleteSourceRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + // DeleteSource200ApplicationJSON - A single source type DeleteSource200ApplicationJSON struct { // ID of the source ID string `json:"id"` } +func (o *DeleteSource200ApplicationJSON) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type DeleteSourceResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // A single source DeleteSource200ApplicationJSONObject *DeleteSource200ApplicationJSON } + +func (o *DeleteSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *DeleteSourceResponse) GetDeleteSource200ApplicationJSONObject() *DeleteSource200ApplicationJSON { + if o == nil { + return nil + } + return o.DeleteSource200ApplicationJSONObject +} diff --git a/pkg/models/operations/detachintegrationtosource.go b/pkg/models/operations/detachintegrationtosource.go index d2eb6e4..5b101ce 100755 --- a/pkg/models/operations/detachintegrationtosource.go +++ b/pkg/models/operations/detachintegrationtosource.go @@ -12,12 +12,52 @@ type DetachIntegrationToSourceRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=source_id"` } +func (o *DetachIntegrationToSourceRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *DetachIntegrationToSourceRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + type DetachIntegrationToSourceResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // Detach operation success status DetachedIntegrationFromSource *shared.DetachedIntegrationFromSource StatusCode int RawResponse *http.Response } + +func (o *DetachIntegrationToSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DetachIntegrationToSourceResponse) GetDetachedIntegrationFromSource() *shared.DetachedIntegrationFromSource { + if o == nil { + return nil + } + return o.DetachedIntegrationFromSource +} + +func (o *DetachIntegrationToSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DetachIntegrationToSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/disableissuetrigger.go b/pkg/models/operations/disableissuetrigger.go index b67ce2f..70ce24e 100755 --- a/pkg/models/operations/disableissuetrigger.go +++ b/pkg/models/operations/disableissuetrigger.go @@ -11,12 +11,45 @@ type DisableIssueTriggerRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *DisableIssueTriggerRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type DisableIssueTriggerResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single issue trigger IssueTrigger *shared.IssueTrigger StatusCode int RawResponse *http.Response } + +func (o *DisableIssueTriggerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DisableIssueTriggerResponse) GetIssueTrigger() *shared.IssueTrigger { + if o == nil { + return nil + } + return o.IssueTrigger +} + +func (o *DisableIssueTriggerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DisableIssueTriggerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/dismississue.go b/pkg/models/operations/dismississue.go index 0ce7d20..6a7f8fc 100755 --- a/pkg/models/operations/dismississue.go +++ b/pkg/models/operations/dismississue.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "net/http" ) @@ -11,12 +10,45 @@ type DismissIssueRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *DismissIssueRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type DismissIssueResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // Dismissed issue Issue interface{} StatusCode int RawResponse *http.Response } + +func (o *DismissIssueResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DismissIssueResponse) GetIssue() interface{} { + if o == nil { + return nil + } + return o.Issue +} + +func (o *DismissIssueResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DismissIssueResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/enableissuetrigger.go b/pkg/models/operations/enableissuetrigger.go index 9afe999..4b8f0a5 100755 --- a/pkg/models/operations/enableissuetrigger.go +++ b/pkg/models/operations/enableissuetrigger.go @@ -11,12 +11,45 @@ type EnableIssueTriggerRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *EnableIssueTriggerRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type EnableIssueTriggerResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single issue trigger IssueTrigger *shared.IssueTrigger StatusCode int RawResponse *http.Response } + +func (o *EnableIssueTriggerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *EnableIssueTriggerResponse) GetIssueTrigger() *shared.IssueTrigger { + if o == nil { + return nil + } + return o.IssueTrigger +} + +func (o *EnableIssueTriggerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *EnableIssueTriggerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/generateignoredeventbulkretryplan.go b/pkg/models/operations/generateignoredeventbulkretryplan.go index fdba82d..1b508df 100755 --- a/pkg/models/operations/generateignoredeventbulkretryplan.go +++ b/pkg/models/operations/generateignoredeventbulkretryplan.go @@ -156,17 +156,71 @@ type GenerateIgnoredEventBulkRetryPlanQuery struct { WebhookID *GenerateIgnoredEventBulkRetryPlanQueryWebhookID `queryParam:"name=webhook_id"` } +func (o *GenerateIgnoredEventBulkRetryPlanQuery) GetCause() *GenerateIgnoredEventBulkRetryPlanQueryCause { + if o == nil { + return nil + } + return o.Cause +} + +func (o *GenerateIgnoredEventBulkRetryPlanQuery) GetTransformationID() *string { + if o == nil { + return nil + } + return o.TransformationID +} + +func (o *GenerateIgnoredEventBulkRetryPlanQuery) GetWebhookID() *GenerateIgnoredEventBulkRetryPlanQueryWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + type GenerateIgnoredEventBulkRetryPlanRequest struct { // Filter by the bulk retry ignored event query object Query *GenerateIgnoredEventBulkRetryPlanQuery `queryParam:"style=form,explode=true,name=query"` } +func (o *GenerateIgnoredEventBulkRetryPlanRequest) GetQuery() *GenerateIgnoredEventBulkRetryPlanQuery { + if o == nil { + return nil + } + return o.Query +} + type GenerateIgnoredEventBulkRetryPlanResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // Ignored events bulk retry plan BatchOperationPlan *shared.BatchOperationPlan ContentType string StatusCode int RawResponse *http.Response } + +func (o *GenerateIgnoredEventBulkRetryPlanResponse) GetBatchOperationPlan() *shared.BatchOperationPlan { + if o == nil { + return nil + } + return o.BatchOperationPlan +} + +func (o *GenerateIgnoredEventBulkRetryPlanResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GenerateIgnoredEventBulkRetryPlanResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GenerateIgnoredEventBulkRetryPlanResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getattempt.go b/pkg/models/operations/getattempt.go index 7819a89..454275c 100755 --- a/pkg/models/operations/getattempt.go +++ b/pkg/models/operations/getattempt.go @@ -11,12 +11,45 @@ type GetAttemptRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetAttemptRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetAttemptResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single attempt EventAttempt *shared.EventAttempt StatusCode int RawResponse *http.Response } + +func (o *GetAttemptResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetAttemptResponse) GetEventAttempt() *shared.EventAttempt { + if o == nil { + return nil + } + return o.EventAttempt +} + +func (o *GetAttemptResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetAttemptResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getattempts.go b/pkg/models/operations/getattempts.go index 3415afd..5253ec0 100755 --- a/pkg/models/operations/getattempts.go +++ b/pkg/models/operations/getattempts.go @@ -328,12 +328,80 @@ type GetAttemptsRequest struct { Prev *string `queryParam:"style=form,explode=true,name=prev"` } +func (o *GetAttemptsRequest) GetDir() *GetAttemptsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetAttemptsRequest) GetEventID() *GetAttemptsEventID { + if o == nil { + return nil + } + return o.EventID +} + +func (o *GetAttemptsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetAttemptsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetAttemptsRequest) GetOrderBy() *GetAttemptsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetAttemptsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + type GetAttemptsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of attempts EventAttemptPaginatedResult *shared.EventAttemptPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetAttemptsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetAttemptsResponse) GetEventAttemptPaginatedResult() *shared.EventAttemptPaginatedResult { + if o == nil { + return nil + } + return o.EventAttemptPaginatedResult +} + +func (o *GetAttemptsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetAttemptsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getbookmark.go b/pkg/models/operations/getbookmark.go index 292597b..fd9a0f9 100755 --- a/pkg/models/operations/getbookmark.go +++ b/pkg/models/operations/getbookmark.go @@ -11,12 +11,45 @@ type GetBookmarkRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetBookmarkRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetBookmarkResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single bookmark Bookmark *shared.Bookmark ContentType string StatusCode int RawResponse *http.Response } + +func (o *GetBookmarkResponse) GetBookmark() *shared.Bookmark { + if o == nil { + return nil + } + return o.Bookmark +} + +func (o *GetBookmarkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetBookmarkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetBookmarkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getbookmarks.go b/pkg/models/operations/getbookmarks.go index f58c412..be3245b 100755 --- a/pkg/models/operations/getbookmarks.go +++ b/pkg/models/operations/getbookmarks.go @@ -352,6 +352,41 @@ type GetBookmarksLastUsedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetBookmarksLastUsedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetBookmarksLastUsedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetBookmarksLastUsedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetBookmarksLastUsedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetBookmarksLastUsedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetBookmarksLastUsedAtType string const ( @@ -687,12 +722,115 @@ type GetBookmarksRequest struct { WebhookID *GetBookmarksWebhookID `queryParam:"style=form,explode=true,name=webhook_id"` } +func (o *GetBookmarksRequest) GetDir() *GetBookmarksDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetBookmarksRequest) GetEventDataID() *GetBookmarksEventDataID { + if o == nil { + return nil + } + return o.EventDataID +} + +func (o *GetBookmarksRequest) GetID() *GetBookmarksID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetBookmarksRequest) GetLabel() *GetBookmarksLabel { + if o == nil { + return nil + } + return o.Label +} + +func (o *GetBookmarksRequest) GetLastUsedAt() *GetBookmarksLastUsedAt { + if o == nil { + return nil + } + return o.LastUsedAt +} + +func (o *GetBookmarksRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetBookmarksRequest) GetName() *GetBookmarksName { + if o == nil { + return nil + } + return o.Name +} + +func (o *GetBookmarksRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetBookmarksRequest) GetOrderBy() *GetBookmarksOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetBookmarksRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetBookmarksRequest) GetWebhookID() *GetBookmarksWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + type GetBookmarksResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // List of bookmarks BookmarkPaginatedResult *shared.BookmarkPaginatedResult ContentType string StatusCode int RawResponse *http.Response } + +func (o *GetBookmarksResponse) GetBookmarkPaginatedResult() *shared.BookmarkPaginatedResult { + if o == nil { + return nil + } + return o.BookmarkPaginatedResult +} + +func (o *GetBookmarksResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetBookmarksResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetBookmarksResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getconnection.go b/pkg/models/operations/getconnection.go index 5705296..cb1c3c3 100755 --- a/pkg/models/operations/getconnection.go +++ b/pkg/models/operations/getconnection.go @@ -11,12 +11,45 @@ type GetConnectionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetConnectionRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetConnectionResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single connection Connection *shared.Connection ContentType string StatusCode int RawResponse *http.Response } + +func (o *GetConnectionResponse) GetConnection() *shared.Connection { + if o == nil { + return nil + } + return o.Connection +} + +func (o *GetConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getconnections.go b/pkg/models/operations/getconnections.go index 2581da5..7243fac 100755 --- a/pkg/models/operations/getconnections.go +++ b/pkg/models/operations/getconnections.go @@ -21,6 +21,41 @@ type GetConnectionsArchivedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetConnectionsArchivedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetConnectionsArchivedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetConnectionsArchivedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetConnectionsArchivedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetConnectionsArchivedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetConnectionsArchivedAtType string const ( @@ -358,6 +393,48 @@ type GetConnectionsName2 struct { Lte *string `queryParam:"name=lte"` } +func (o *GetConnectionsName2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetConnectionsName2) GetContains() *string { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetConnectionsName2) GetGt() *string { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetConnectionsName2) GetGte() *string { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetConnectionsName2) GetLe() *string { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetConnectionsName2) GetLte() *string { + if o == nil { + return nil + } + return o.Lte +} + type GetConnectionsNameType string const ( @@ -552,6 +629,41 @@ type GetConnectionsPausedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetConnectionsPausedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetConnectionsPausedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetConnectionsPausedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetConnectionsPausedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetConnectionsPausedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetConnectionsPausedAtType string const ( @@ -704,12 +816,129 @@ type GetConnectionsRequest struct { SourceID *GetConnectionsSourceID `queryParam:"style=form,explode=true,name=source_id"` } +func (o *GetConnectionsRequest) GetArchived() *bool { + if o == nil { + return nil + } + return o.Archived +} + +func (o *GetConnectionsRequest) GetArchivedAt() *GetConnectionsArchivedAt { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *GetConnectionsRequest) GetDestinationID() *GetConnectionsDestinationID { + if o == nil { + return nil + } + return o.DestinationID +} + +func (o *GetConnectionsRequest) GetDir() *GetConnectionsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetConnectionsRequest) GetFullName() *string { + if o == nil { + return nil + } + return o.FullName +} + +func (o *GetConnectionsRequest) GetID() *GetConnectionsID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetConnectionsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetConnectionsRequest) GetName() *GetConnectionsName { + if o == nil { + return nil + } + return o.Name +} + +func (o *GetConnectionsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetConnectionsRequest) GetOrderBy() *GetConnectionsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetConnectionsRequest) GetPausedAt() *GetConnectionsPausedAt { + if o == nil { + return nil + } + return o.PausedAt +} + +func (o *GetConnectionsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetConnectionsRequest) GetSourceID() *GetConnectionsSourceID { + if o == nil { + return nil + } + return o.SourceID +} + type GetConnectionsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // List of connections ConnectionPaginatedResult *shared.ConnectionPaginatedResult ContentType string StatusCode int RawResponse *http.Response } + +func (o *GetConnectionsResponse) GetConnectionPaginatedResult() *shared.ConnectionPaginatedResult { + if o == nil { + return nil + } + return o.ConnectionPaginatedResult +} + +func (o *GetConnectionsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetConnectionsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetConnectionsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getdestination.go b/pkg/models/operations/getdestination.go index b7db43b..aaa5ce2 100755 --- a/pkg/models/operations/getdestination.go +++ b/pkg/models/operations/getdestination.go @@ -11,12 +11,45 @@ type GetDestinationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetDestinationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetDestinationResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single destination Destination *shared.Destination StatusCode int RawResponse *http.Response } + +func (o *GetDestinationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetDestinationResponse) GetDestination() *shared.Destination { + if o == nil { + return nil + } + return o.Destination +} + +func (o *GetDestinationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetDestinationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getdestinations.go b/pkg/models/operations/getdestinations.go index 3bb7534..062704d 100755 --- a/pkg/models/operations/getdestinations.go +++ b/pkg/models/operations/getdestinations.go @@ -21,6 +21,41 @@ type GetDestinationsArchivedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetDestinationsArchivedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetDestinationsArchivedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetDestinationsArchivedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetDestinationsArchivedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetDestinationsArchivedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetDestinationsArchivedAtType string const ( @@ -94,6 +129,13 @@ type GetDestinationsCliPath2 struct { Any *bool `queryParam:"name=any"` } +func (o *GetDestinationsCliPath2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + type GetDestinationsCliPathType string const ( @@ -387,6 +429,48 @@ type GetDestinationsName2 struct { Lte *string `queryParam:"name=lte"` } +func (o *GetDestinationsName2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetDestinationsName2) GetContains() *string { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetDestinationsName2) GetGt() *string { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetDestinationsName2) GetGte() *string { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetDestinationsName2) GetLe() *string { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetDestinationsName2) GetLte() *string { + if o == nil { + return nil + } + return o.Lte +} + type GetDestinationsNameType string const ( @@ -654,12 +738,115 @@ type GetDestinationsRequest struct { URL *GetDestinationsURL `queryParam:"style=form,explode=true,name=url"` } +func (o *GetDestinationsRequest) GetArchived() *bool { + if o == nil { + return nil + } + return o.Archived +} + +func (o *GetDestinationsRequest) GetArchivedAt() *GetDestinationsArchivedAt { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *GetDestinationsRequest) GetCliPath() *GetDestinationsCliPath { + if o == nil { + return nil + } + return o.CliPath +} + +func (o *GetDestinationsRequest) GetDir() *GetDestinationsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetDestinationsRequest) GetID() *GetDestinationsID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetDestinationsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetDestinationsRequest) GetName() *GetDestinationsName { + if o == nil { + return nil + } + return o.Name +} + +func (o *GetDestinationsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetDestinationsRequest) GetOrderBy() *GetDestinationsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetDestinationsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetDestinationsRequest) GetURL() *GetDestinationsURL { + if o == nil { + return nil + } + return o.URL +} + type GetDestinationsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of destinations DestinationPaginatedResult *shared.DestinationPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetDestinationsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetDestinationsResponse) GetDestinationPaginatedResult() *shared.DestinationPaginatedResult { + if o == nil { + return nil + } + return o.DestinationPaginatedResult +} + +func (o *GetDestinationsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetDestinationsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getevent.go b/pkg/models/operations/getevent.go index 365bf92..81f6ab8 100755 --- a/pkg/models/operations/getevent.go +++ b/pkg/models/operations/getevent.go @@ -11,12 +11,45 @@ type GetEventRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetEventRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetEventResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single event Event *shared.Event StatusCode int RawResponse *http.Response } + +func (o *GetEventResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetEventResponse) GetEvent() *shared.Event { + if o == nil { + return nil + } + return o.Event +} + +func (o *GetEventResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetEventResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/geteventbulkretry.go b/pkg/models/operations/geteventbulkretry.go index 53dced4..17daf73 100755 --- a/pkg/models/operations/geteventbulkretry.go +++ b/pkg/models/operations/geteventbulkretry.go @@ -11,12 +11,45 @@ type GetEventBulkRetryRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetEventBulkRetryRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetEventBulkRetryResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single events bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *GetEventBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *GetEventBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetEventBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetEventBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/geteventrawbody.go b/pkg/models/operations/geteventrawbody.go index bdbc481..0d7e705 100755 --- a/pkg/models/operations/geteventrawbody.go +++ b/pkg/models/operations/geteventrawbody.go @@ -11,12 +11,45 @@ type GetEventRawBodyRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetEventRawBodyRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetEventRawBodyResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A request raw body data RawBody *shared.RawBody StatusCode int RawResponse *http.Response } + +func (o *GetEventRawBodyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetEventRawBodyResponse) GetRawBody() *shared.RawBody { + if o == nil { + return nil + } + return o.RawBody +} + +func (o *GetEventRawBodyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetEventRawBodyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getevents.go b/pkg/models/operations/getevents.go index 5035dbf..1517296 100755 --- a/pkg/models/operations/getevents.go +++ b/pkg/models/operations/getevents.go @@ -22,6 +22,48 @@ type GetEventsAttempts2 struct { Lte *int64 `queryParam:"name=lte"` } +func (o *GetEventsAttempts2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetEventsAttempts2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetEventsAttempts2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetEventsAttempts2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetEventsAttempts2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetEventsAttempts2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type GetEventsAttemptsType string const ( @@ -235,6 +277,13 @@ type GetEventsCliID2 struct { Any *bool `queryParam:"name=any"` } +func (o *GetEventsCliID2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + type GetEventsCliIDType string const ( @@ -404,6 +453,41 @@ type GetEventsCreatedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetEventsCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetEventsCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetEventsCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetEventsCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetEventsCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetEventsCreatedAtType string const ( @@ -1041,6 +1125,41 @@ type GetEventsLastAttemptAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetEventsLastAttemptAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetEventsLastAttemptAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetEventsLastAttemptAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetEventsLastAttemptAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetEventsLastAttemptAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetEventsLastAttemptAtType string const ( @@ -1320,6 +1439,48 @@ type GetEventsResponseStatus2 struct { Lte *int64 `queryParam:"name=lte"` } +func (o *GetEventsResponseStatus2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetEventsResponseStatus2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetEventsResponseStatus2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetEventsResponseStatus2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetEventsResponseStatus2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetEventsResponseStatus2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type GetEventsResponseStatusType string const ( @@ -1557,6 +1718,41 @@ type GetEventsSuccessfulAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetEventsSuccessfulAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetEventsSuccessfulAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetEventsSuccessfulAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetEventsSuccessfulAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetEventsSuccessfulAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetEventsSuccessfulAtType string const ( @@ -1724,12 +1920,227 @@ type GetEventsRequest struct { WebhookID *GetEventsWebhookID `queryParam:"style=form,explode=true,name=webhook_id"` } +func (o *GetEventsRequest) GetAttempts() *GetEventsAttempts { + if o == nil { + return nil + } + return o.Attempts +} + +func (o *GetEventsRequest) GetBody() *GetEventsBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *GetEventsRequest) GetBulkRetryID() *GetEventsBulkRetryID { + if o == nil { + return nil + } + return o.BulkRetryID +} + +func (o *GetEventsRequest) GetCliID() *GetEventsCliID { + if o == nil { + return nil + } + return o.CliID +} + +func (o *GetEventsRequest) GetCliUserID() *GetEventsCliUserID { + if o == nil { + return nil + } + return o.CliUserID +} + +func (o *GetEventsRequest) GetCreatedAt() *GetEventsCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *GetEventsRequest) GetDestinationID() *GetEventsDestinationID { + if o == nil { + return nil + } + return o.DestinationID +} + +func (o *GetEventsRequest) GetDir() *GetEventsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetEventsRequest) GetErrorCode() *GetEventsErrorCode { + if o == nil { + return nil + } + return o.ErrorCode +} + +func (o *GetEventsRequest) GetEventDataID() *GetEventsEventDataID { + if o == nil { + return nil + } + return o.EventDataID +} + +func (o *GetEventsRequest) GetHeaders() *GetEventsHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *GetEventsRequest) GetID() *GetEventsID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetEventsRequest) GetInclude() *GetEventsInclude { + if o == nil { + return nil + } + return o.Include +} + +func (o *GetEventsRequest) GetIssueID() *GetEventsIssueID { + if o == nil { + return nil + } + return o.IssueID +} + +func (o *GetEventsRequest) GetLastAttemptAt() *GetEventsLastAttemptAt { + if o == nil { + return nil + } + return o.LastAttemptAt +} + +func (o *GetEventsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetEventsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetEventsRequest) GetOrderBy() *GetEventsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetEventsRequest) GetParsedQuery() *GetEventsParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *GetEventsRequest) GetPath() *string { + if o == nil { + return nil + } + return o.Path +} + +func (o *GetEventsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetEventsRequest) GetResponseStatus() *GetEventsResponseStatus { + if o == nil { + return nil + } + return o.ResponseStatus +} + +func (o *GetEventsRequest) GetSearchTerm() *string { + if o == nil { + return nil + } + return o.SearchTerm +} + +func (o *GetEventsRequest) GetSourceID() *GetEventsSourceID { + if o == nil { + return nil + } + return o.SourceID +} + +func (o *GetEventsRequest) GetStatus() *GetEventsStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *GetEventsRequest) GetSuccessfulAt() *GetEventsSuccessfulAt { + if o == nil { + return nil + } + return o.SuccessfulAt +} + +func (o *GetEventsRequest) GetWebhookID() *GetEventsWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + type GetEventsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of events EventPaginatedResult *shared.EventPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetEventsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetEventsResponse) GetEventPaginatedResult() *shared.EventPaginatedResult { + if o == nil { + return nil + } + return o.EventPaginatedResult +} + +func (o *GetEventsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetEventsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getignoredeventbulkretries.go b/pkg/models/operations/getignoredeventbulkretries.go index 4e621f2..a584857 100755 --- a/pkg/models/operations/getignoredeventbulkretries.go +++ b/pkg/models/operations/getignoredeventbulkretries.go @@ -21,6 +21,41 @@ type GetIgnoredEventBulkRetriesCancelledAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIgnoredEventBulkRetriesCancelledAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIgnoredEventBulkRetriesCancelledAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIgnoredEventBulkRetriesCancelledAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIgnoredEventBulkRetriesCancelledAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIgnoredEventBulkRetriesCancelledAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIgnoredEventBulkRetriesCancelledAtType string const ( @@ -98,6 +133,41 @@ type GetIgnoredEventBulkRetriesCompletedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIgnoredEventBulkRetriesCompletedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIgnoredEventBulkRetriesCompletedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIgnoredEventBulkRetriesCompletedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIgnoredEventBulkRetriesCompletedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIgnoredEventBulkRetriesCompletedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIgnoredEventBulkRetriesCompletedAtType string const ( @@ -175,6 +245,41 @@ type GetIgnoredEventBulkRetriesCreatedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIgnoredEventBulkRetriesCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIgnoredEventBulkRetriesCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIgnoredEventBulkRetriesCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIgnoredEventBulkRetriesCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIgnoredEventBulkRetriesCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIgnoredEventBulkRetriesCreatedAtType string const ( @@ -697,6 +802,27 @@ type GetIgnoredEventBulkRetriesQuery struct { WebhookID *GetIgnoredEventBulkRetriesQueryWebhookID `queryParam:"name=webhook_id"` } +func (o *GetIgnoredEventBulkRetriesQuery) GetCause() *GetIgnoredEventBulkRetriesQueryCause { + if o == nil { + return nil + } + return o.Cause +} + +func (o *GetIgnoredEventBulkRetriesQuery) GetTransformationID() *string { + if o == nil { + return nil + } + return o.TransformationID +} + +func (o *GetIgnoredEventBulkRetriesQuery) GetWebhookID() *GetIgnoredEventBulkRetriesQueryWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + type GetIgnoredEventBulkRetriesRequest struct { CancelledAt *GetIgnoredEventBulkRetriesCancelledAt `queryParam:"style=form,explode=true,name=cancelled_at"` CompletedAt *GetIgnoredEventBulkRetriesCompletedAt `queryParam:"style=form,explode=true,name=completed_at"` @@ -713,12 +839,122 @@ type GetIgnoredEventBulkRetriesRequest struct { QueryPartialMatch *bool `queryParam:"style=form,explode=true,name=query_partial_match"` } +func (o *GetIgnoredEventBulkRetriesRequest) GetCancelledAt() *GetIgnoredEventBulkRetriesCancelledAt { + if o == nil { + return nil + } + return o.CancelledAt +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetCompletedAt() *GetIgnoredEventBulkRetriesCompletedAt { + if o == nil { + return nil + } + return o.CompletedAt +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetCreatedAt() *GetIgnoredEventBulkRetriesCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetDir() *GetIgnoredEventBulkRetriesDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetID() *GetIgnoredEventBulkRetriesID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetInProgress() *bool { + if o == nil { + return nil + } + return o.InProgress +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetOrderBy() *GetIgnoredEventBulkRetriesOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetQuery() *GetIgnoredEventBulkRetriesQuery { + if o == nil { + return nil + } + return o.Query +} + +func (o *GetIgnoredEventBulkRetriesRequest) GetQueryPartialMatch() *bool { + if o == nil { + return nil + } + return o.QueryPartialMatch +} + type GetIgnoredEventBulkRetriesResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // List of ignored events bulk retries BatchOperationPaginatedResult *shared.BatchOperationPaginatedResult ContentType string StatusCode int RawResponse *http.Response } + +func (o *GetIgnoredEventBulkRetriesResponse) GetBatchOperationPaginatedResult() *shared.BatchOperationPaginatedResult { + if o == nil { + return nil + } + return o.BatchOperationPaginatedResult +} + +func (o *GetIgnoredEventBulkRetriesResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIgnoredEventBulkRetriesResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIgnoredEventBulkRetriesResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getignoredeventbulkretry.go b/pkg/models/operations/getignoredeventbulkretry.go index 5a4a364..435b843 100755 --- a/pkg/models/operations/getignoredeventbulkretry.go +++ b/pkg/models/operations/getignoredeventbulkretry.go @@ -11,12 +11,45 @@ type GetIgnoredEventBulkRetryRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetIgnoredEventBulkRetryRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetIgnoredEventBulkRetryResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single ignored events bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *GetIgnoredEventBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *GetIgnoredEventBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIgnoredEventBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIgnoredEventBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getintegration.go b/pkg/models/operations/getintegration.go index c74730c..9f5b9af 100755 --- a/pkg/models/operations/getintegration.go +++ b/pkg/models/operations/getintegration.go @@ -11,12 +11,45 @@ type GetIntegrationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetIntegrationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetIntegrationResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single integration Integration *shared.Integration StatusCode int RawResponse *http.Response } + +func (o *GetIntegrationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIntegrationResponse) GetIntegration() *shared.Integration { + if o == nil { + return nil + } + return o.Integration +} + +func (o *GetIntegrationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIntegrationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getintegrations.go b/pkg/models/operations/getintegrations.go index 99c7522..433c88c 100755 --- a/pkg/models/operations/getintegrations.go +++ b/pkg/models/operations/getintegrations.go @@ -13,12 +13,52 @@ type GetIntegrationsRequest struct { Provider *shared.IntegrationProvider `queryParam:"style=form,explode=true,name=provider"` } +func (o *GetIntegrationsRequest) GetLabel() *string { + if o == nil { + return nil + } + return o.Label +} + +func (o *GetIntegrationsRequest) GetProvider() *shared.IntegrationProvider { + if o == nil { + return nil + } + return o.Provider +} + type GetIntegrationsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of integrations IntegrationPaginatedResult *shared.IntegrationPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetIntegrationsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIntegrationsResponse) GetIntegrationPaginatedResult() *shared.IntegrationPaginatedResult { + if o == nil { + return nil + } + return o.IntegrationPaginatedResult +} + +func (o *GetIntegrationsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIntegrationsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getissue.go b/pkg/models/operations/getissue.go index 385f760..d2f2d9f 100755 --- a/pkg/models/operations/getissue.go +++ b/pkg/models/operations/getissue.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "net/http" ) @@ -11,12 +10,45 @@ type GetIssueRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetIssueRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetIssueResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single issue IssueWithData interface{} StatusCode int RawResponse *http.Response } + +func (o *GetIssueResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIssueResponse) GetIssueWithData() interface{} { + if o == nil { + return nil + } + return o.IssueWithData +} + +func (o *GetIssueResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIssueResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getissuecount.go b/pkg/models/operations/getissuecount.go index 108d41a..6a40932 100755 --- a/pkg/models/operations/getissuecount.go +++ b/pkg/models/operations/getissuecount.go @@ -223,6 +223,27 @@ type GetIssueCountAggregationKeys struct { WebhookID *GetIssueCountAggregationKeysWebhookID `queryParam:"name=webhook_id"` } +func (o *GetIssueCountAggregationKeys) GetErrorCode() *GetIssueCountAggregationKeysErrorCode { + if o == nil { + return nil + } + return o.ErrorCode +} + +func (o *GetIssueCountAggregationKeys) GetResponseStatus() *GetIssueCountAggregationKeysResponseStatus { + if o == nil { + return nil + } + return o.ResponseStatus +} + +func (o *GetIssueCountAggregationKeys) GetWebhookID() *GetIssueCountAggregationKeysWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + // GetIssueCountCreatedAt2 - Filter by created dates type GetIssueCountCreatedAt2 struct { Any *bool `queryParam:"name=any"` @@ -232,6 +253,41 @@ type GetIssueCountCreatedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssueCountCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssueCountCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssueCountCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssueCountCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssueCountCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssueCountCreatedAtType string const ( @@ -432,6 +488,41 @@ type GetIssueCountDismissedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssueCountDismissedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssueCountDismissedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssueCountDismissedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssueCountDismissedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssueCountDismissedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssueCountDismissedAtType string const ( @@ -509,6 +600,41 @@ type GetIssueCountFirstSeenAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssueCountFirstSeenAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssueCountFirstSeenAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssueCountFirstSeenAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssueCountFirstSeenAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssueCountFirstSeenAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssueCountFirstSeenAtType string const ( @@ -722,6 +848,41 @@ type GetIssueCountLastSeenAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssueCountLastSeenAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssueCountLastSeenAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssueCountLastSeenAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssueCountLastSeenAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssueCountLastSeenAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssueCountLastSeenAtType string const ( @@ -1284,12 +1445,143 @@ type GetIssueCountRequest struct { Type *GetIssueCountType `queryParam:"style=form,explode=true,name=type"` } +func (o *GetIssueCountRequest) GetAggregationKeys() *GetIssueCountAggregationKeys { + if o == nil { + return nil + } + return o.AggregationKeys +} + +func (o *GetIssueCountRequest) GetCreatedAt() *GetIssueCountCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *GetIssueCountRequest) GetDir() *GetIssueCountDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetIssueCountRequest) GetDismissedAt() *GetIssueCountDismissedAt { + if o == nil { + return nil + } + return o.DismissedAt +} + +func (o *GetIssueCountRequest) GetFirstSeenAt() *GetIssueCountFirstSeenAt { + if o == nil { + return nil + } + return o.FirstSeenAt +} + +func (o *GetIssueCountRequest) GetID() *GetIssueCountID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetIssueCountRequest) GetIssueTriggerID() *GetIssueCountIssueTriggerID { + if o == nil { + return nil + } + return o.IssueTriggerID +} + +func (o *GetIssueCountRequest) GetLastSeenAt() *GetIssueCountLastSeenAt { + if o == nil { + return nil + } + return o.LastSeenAt +} + +func (o *GetIssueCountRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetIssueCountRequest) GetMergedWith() *GetIssueCountMergedWith { + if o == nil { + return nil + } + return o.MergedWith +} + +func (o *GetIssueCountRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetIssueCountRequest) GetOrderBy() *GetIssueCountOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetIssueCountRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetIssueCountRequest) GetStatus() *GetIssueCountStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *GetIssueCountRequest) GetType() *GetIssueCountType { + if o == nil { + return nil + } + return o.Type +} + type GetIssueCountResponse struct { - // Unprocessable Entity - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // Issue count IssueCount *shared.IssueCount StatusCode int RawResponse *http.Response } + +func (o *GetIssueCountResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIssueCountResponse) GetIssueCount() *shared.IssueCount { + if o == nil { + return nil + } + return o.IssueCount +} + +func (o *GetIssueCountResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIssueCountResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getissues.go b/pkg/models/operations/getissues.go index 42386a2..68738c7 100755 --- a/pkg/models/operations/getissues.go +++ b/pkg/models/operations/getissues.go @@ -223,6 +223,27 @@ type GetIssuesAggregationKeys struct { WebhookID *GetIssuesAggregationKeysWebhookID `queryParam:"name=webhook_id"` } +func (o *GetIssuesAggregationKeys) GetErrorCode() *GetIssuesAggregationKeysErrorCode { + if o == nil { + return nil + } + return o.ErrorCode +} + +func (o *GetIssuesAggregationKeys) GetResponseStatus() *GetIssuesAggregationKeysResponseStatus { + if o == nil { + return nil + } + return o.ResponseStatus +} + +func (o *GetIssuesAggregationKeys) GetWebhookID() *GetIssuesAggregationKeysWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + // GetIssuesCreatedAt2 - Filter by created dates type GetIssuesCreatedAt2 struct { Any *bool `queryParam:"name=any"` @@ -232,6 +253,41 @@ type GetIssuesCreatedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssuesCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssuesCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssuesCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssuesCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssuesCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssuesCreatedAtType string const ( @@ -432,6 +488,41 @@ type GetIssuesDismissedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssuesDismissedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssuesDismissedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssuesDismissedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssuesDismissedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssuesDismissedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssuesDismissedAtType string const ( @@ -509,6 +600,41 @@ type GetIssuesFirstSeenAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssuesFirstSeenAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssuesFirstSeenAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssuesFirstSeenAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssuesFirstSeenAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssuesFirstSeenAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssuesFirstSeenAtType string const ( @@ -722,6 +848,41 @@ type GetIssuesLastSeenAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssuesLastSeenAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssuesLastSeenAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssuesLastSeenAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssuesLastSeenAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssuesLastSeenAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssuesLastSeenAtType string const ( @@ -1284,12 +1445,143 @@ type GetIssuesRequest struct { Type *GetIssuesType `queryParam:"style=form,explode=true,name=type"` } +func (o *GetIssuesRequest) GetAggregationKeys() *GetIssuesAggregationKeys { + if o == nil { + return nil + } + return o.AggregationKeys +} + +func (o *GetIssuesRequest) GetCreatedAt() *GetIssuesCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *GetIssuesRequest) GetDir() *GetIssuesDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetIssuesRequest) GetDismissedAt() *GetIssuesDismissedAt { + if o == nil { + return nil + } + return o.DismissedAt +} + +func (o *GetIssuesRequest) GetFirstSeenAt() *GetIssuesFirstSeenAt { + if o == nil { + return nil + } + return o.FirstSeenAt +} + +func (o *GetIssuesRequest) GetID() *GetIssuesID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetIssuesRequest) GetIssueTriggerID() *GetIssuesIssueTriggerID { + if o == nil { + return nil + } + return o.IssueTriggerID +} + +func (o *GetIssuesRequest) GetLastSeenAt() *GetIssuesLastSeenAt { + if o == nil { + return nil + } + return o.LastSeenAt +} + +func (o *GetIssuesRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetIssuesRequest) GetMergedWith() *GetIssuesMergedWith { + if o == nil { + return nil + } + return o.MergedWith +} + +func (o *GetIssuesRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetIssuesRequest) GetOrderBy() *GetIssuesOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetIssuesRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetIssuesRequest) GetStatus() *GetIssuesStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *GetIssuesRequest) GetType() *GetIssuesType { + if o == nil { + return nil + } + return o.Type +} + type GetIssuesResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of issues IssueWithDataPaginatedResult *shared.IssueWithDataPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetIssuesResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIssuesResponse) GetIssueWithDataPaginatedResult() *shared.IssueWithDataPaginatedResult { + if o == nil { + return nil + } + return o.IssueWithDataPaginatedResult +} + +func (o *GetIssuesResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIssuesResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getissuetrigger.go b/pkg/models/operations/getissuetrigger.go index e3d962f..9ebf7ee 100755 --- a/pkg/models/operations/getissuetrigger.go +++ b/pkg/models/operations/getissuetrigger.go @@ -11,12 +11,45 @@ type GetIssueTriggerRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetIssueTriggerRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetIssueTriggerResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single issue trigger IssueTrigger *shared.IssueTrigger StatusCode int RawResponse *http.Response } + +func (o *GetIssueTriggerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIssueTriggerResponse) GetIssueTrigger() *shared.IssueTrigger { + if o == nil { + return nil + } + return o.IssueTrigger +} + +func (o *GetIssueTriggerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIssueTriggerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getissuetriggers.go b/pkg/models/operations/getissuetriggers.go index 30bcb31..d7a8cda 100755 --- a/pkg/models/operations/getissuetriggers.go +++ b/pkg/models/operations/getissuetriggers.go @@ -144,6 +144,41 @@ type GetIssueTriggersDisabledAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetIssueTriggersDisabledAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetIssueTriggersDisabledAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetIssueTriggersDisabledAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetIssueTriggersDisabledAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetIssueTriggersDisabledAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetIssueTriggersDisabledAtType string const ( @@ -347,12 +382,94 @@ type GetIssueTriggersRequest struct { Type *shared.IssueType `queryParam:"style=form,explode=true,name=type"` } +func (o *GetIssueTriggersRequest) GetDir() *GetIssueTriggersDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetIssueTriggersRequest) GetDisabledAt() *GetIssueTriggersDisabledAt { + if o == nil { + return nil + } + return o.DisabledAt +} + +func (o *GetIssueTriggersRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetIssueTriggersRequest) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *GetIssueTriggersRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetIssueTriggersRequest) GetOrderBy() *GetIssueTriggersOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetIssueTriggersRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetIssueTriggersRequest) GetType() *shared.IssueType { + if o == nil { + return nil + } + return o.Type +} + type GetIssueTriggersResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of issue triggers IssueTriggerPaginatedResult *shared.IssueTriggerPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetIssueTriggersResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetIssueTriggersResponse) GetIssueTriggerPaginatedResult() *shared.IssueTriggerPaginatedResult { + if o == nil { + return nil + } + return o.IssueTriggerPaginatedResult +} + +func (o *GetIssueTriggersResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetIssueTriggersResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getrequest.go b/pkg/models/operations/getrequest.go index b652d56..5c8c91c 100755 --- a/pkg/models/operations/getrequest.go +++ b/pkg/models/operations/getrequest.go @@ -11,12 +11,45 @@ type GetRequestRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetRequestRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetRequestResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single request Request *shared.Request StatusCode int RawResponse *http.Response } + +func (o *GetRequestResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetRequestResponse) GetRequest() *shared.Request { + if o == nil { + return nil + } + return o.Request +} + +func (o *GetRequestResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetRequestResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getrequestbulkretry.go b/pkg/models/operations/getrequestbulkretry.go index 45b5a1c..b529bfe 100755 --- a/pkg/models/operations/getrequestbulkretry.go +++ b/pkg/models/operations/getrequestbulkretry.go @@ -11,12 +11,45 @@ type GetRequestBulkRetryRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetRequestBulkRetryRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetRequestBulkRetryResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single requests bulk retry BatchOperation *shared.BatchOperation ContentType string StatusCode int RawResponse *http.Response } + +func (o *GetRequestBulkRetryResponse) GetBatchOperation() *shared.BatchOperation { + if o == nil { + return nil + } + return o.BatchOperation +} + +func (o *GetRequestBulkRetryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetRequestBulkRetryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetRequestBulkRetryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getrequestevents.go b/pkg/models/operations/getrequestevents.go index f894cf3..ddd8ce9 100755 --- a/pkg/models/operations/getrequestevents.go +++ b/pkg/models/operations/getrequestevents.go @@ -22,6 +22,48 @@ type GetRequestEventsAttempts2 struct { Lte *int64 `queryParam:"name=lte"` } +func (o *GetRequestEventsAttempts2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestEventsAttempts2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetRequestEventsAttempts2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestEventsAttempts2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestEventsAttempts2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestEventsAttempts2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestEventsAttemptsType string const ( @@ -235,6 +277,13 @@ type GetRequestEventsCliID2 struct { Any *bool `queryParam:"name=any"` } +func (o *GetRequestEventsCliID2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + type GetRequestEventsCliIDType string const ( @@ -404,6 +453,41 @@ type GetRequestEventsCreatedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetRequestEventsCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestEventsCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestEventsCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestEventsCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestEventsCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestEventsCreatedAtType string const ( @@ -1041,6 +1125,41 @@ type GetRequestEventsLastAttemptAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetRequestEventsLastAttemptAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestEventsLastAttemptAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestEventsLastAttemptAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestEventsLastAttemptAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestEventsLastAttemptAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestEventsLastAttemptAtType string const ( @@ -1320,6 +1439,48 @@ type GetRequestEventsResponseStatus2 struct { Lte *int64 `queryParam:"name=lte"` } +func (o *GetRequestEventsResponseStatus2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestEventsResponseStatus2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetRequestEventsResponseStatus2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestEventsResponseStatus2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestEventsResponseStatus2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestEventsResponseStatus2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestEventsResponseStatusType string const ( @@ -1557,6 +1718,41 @@ type GetRequestEventsSuccessfulAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetRequestEventsSuccessfulAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestEventsSuccessfulAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestEventsSuccessfulAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestEventsSuccessfulAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestEventsSuccessfulAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestEventsSuccessfulAtType string const ( @@ -1725,12 +1921,234 @@ type GetRequestEventsRequest struct { WebhookID *GetRequestEventsWebhookID `queryParam:"style=form,explode=true,name=webhook_id"` } +func (o *GetRequestEventsRequest) GetAttempts() *GetRequestEventsAttempts { + if o == nil { + return nil + } + return o.Attempts +} + +func (o *GetRequestEventsRequest) GetBody() *GetRequestEventsBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *GetRequestEventsRequest) GetBulkRetryID() *GetRequestEventsBulkRetryID { + if o == nil { + return nil + } + return o.BulkRetryID +} + +func (o *GetRequestEventsRequest) GetCliID() *GetRequestEventsCliID { + if o == nil { + return nil + } + return o.CliID +} + +func (o *GetRequestEventsRequest) GetCliUserID() *GetRequestEventsCliUserID { + if o == nil { + return nil + } + return o.CliUserID +} + +func (o *GetRequestEventsRequest) GetCreatedAt() *GetRequestEventsCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *GetRequestEventsRequest) GetDestinationID() *GetRequestEventsDestinationID { + if o == nil { + return nil + } + return o.DestinationID +} + +func (o *GetRequestEventsRequest) GetDir() *GetRequestEventsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetRequestEventsRequest) GetErrorCode() *GetRequestEventsErrorCode { + if o == nil { + return nil + } + return o.ErrorCode +} + +func (o *GetRequestEventsRequest) GetEventDataID() *GetRequestEventsEventDataID { + if o == nil { + return nil + } + return o.EventDataID +} + +func (o *GetRequestEventsRequest) GetHeaders() *GetRequestEventsHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *GetRequestEventsRequest) GetIDPathParameter() string { + if o == nil { + return "" + } + return o.IDPathParameter +} + +func (o *GetRequestEventsRequest) GetIDQueryParameter() *GetRequestEventsID { + if o == nil { + return nil + } + return o.IDQueryParameter +} + +func (o *GetRequestEventsRequest) GetInclude() *GetRequestEventsInclude { + if o == nil { + return nil + } + return o.Include +} + +func (o *GetRequestEventsRequest) GetIssueID() *GetRequestEventsIssueID { + if o == nil { + return nil + } + return o.IssueID +} + +func (o *GetRequestEventsRequest) GetLastAttemptAt() *GetRequestEventsLastAttemptAt { + if o == nil { + return nil + } + return o.LastAttemptAt +} + +func (o *GetRequestEventsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetRequestEventsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetRequestEventsRequest) GetOrderBy() *GetRequestEventsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetRequestEventsRequest) GetParsedQuery() *GetRequestEventsParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *GetRequestEventsRequest) GetPath() *string { + if o == nil { + return nil + } + return o.Path +} + +func (o *GetRequestEventsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetRequestEventsRequest) GetResponseStatus() *GetRequestEventsResponseStatus { + if o == nil { + return nil + } + return o.ResponseStatus +} + +func (o *GetRequestEventsRequest) GetSearchTerm() *string { + if o == nil { + return nil + } + return o.SearchTerm +} + +func (o *GetRequestEventsRequest) GetSourceID() *GetRequestEventsSourceID { + if o == nil { + return nil + } + return o.SourceID +} + +func (o *GetRequestEventsRequest) GetStatus() *GetRequestEventsStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *GetRequestEventsRequest) GetSuccessfulAt() *GetRequestEventsSuccessfulAt { + if o == nil { + return nil + } + return o.SuccessfulAt +} + +func (o *GetRequestEventsRequest) GetWebhookID() *GetRequestEventsWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + type GetRequestEventsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of events EventPaginatedResult *shared.EventPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetRequestEventsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetRequestEventsResponse) GetEventPaginatedResult() *shared.EventPaginatedResult { + if o == nil { + return nil + } + return o.EventPaginatedResult +} + +func (o *GetRequestEventsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetRequestEventsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getrequestignoredevents.go b/pkg/models/operations/getrequestignoredevents.go index 484747c..fa6c5f7 100755 --- a/pkg/models/operations/getrequestignoredevents.go +++ b/pkg/models/operations/getrequestignoredevents.go @@ -329,12 +329,87 @@ type GetRequestIgnoredEventsRequest struct { Prev *string `queryParam:"style=form,explode=true,name=prev"` } +func (o *GetRequestIgnoredEventsRequest) GetDir() *GetRequestIgnoredEventsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetRequestIgnoredEventsRequest) GetIDPathParameter() string { + if o == nil { + return "" + } + return o.IDPathParameter +} + +func (o *GetRequestIgnoredEventsRequest) GetIDQueryParameter() *GetRequestIgnoredEventsID { + if o == nil { + return nil + } + return o.IDQueryParameter +} + +func (o *GetRequestIgnoredEventsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetRequestIgnoredEventsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetRequestIgnoredEventsRequest) GetOrderBy() *GetRequestIgnoredEventsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetRequestIgnoredEventsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + type GetRequestIgnoredEventsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of ignored events IgnoredEventPaginatedResult *shared.IgnoredEventPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetRequestIgnoredEventsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetRequestIgnoredEventsResponse) GetIgnoredEventPaginatedResult() *shared.IgnoredEventPaginatedResult { + if o == nil { + return nil + } + return o.IgnoredEventPaginatedResult +} + +func (o *GetRequestIgnoredEventsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetRequestIgnoredEventsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getrequestrawbody.go b/pkg/models/operations/getrequestrawbody.go index f07bf8a..2e51609 100755 --- a/pkg/models/operations/getrequestrawbody.go +++ b/pkg/models/operations/getrequestrawbody.go @@ -11,12 +11,45 @@ type GetRequestRawBodyRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetRequestRawBodyRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetRequestRawBodyResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A request raw body data RawBody *shared.RawBody StatusCode int RawResponse *http.Response } + +func (o *GetRequestRawBodyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetRequestRawBodyResponse) GetRawBody() *shared.RawBody { + if o == nil { + return nil + } + return o.RawBody +} + +func (o *GetRequestRawBodyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetRequestRawBodyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getrequests.go b/pkg/models/operations/getrequests.go index 495abfa..d7fe5e2 100755 --- a/pkg/models/operations/getrequests.go +++ b/pkg/models/operations/getrequests.go @@ -160,6 +160,41 @@ type GetRequestsCreatedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetRequestsCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestsCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestsCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestsCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestsCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestsCreatedAtType string const ( @@ -360,6 +395,48 @@ type GetRequestsEventsCount2 struct { Lte *int64 `queryParam:"name=lte"` } +func (o *GetRequestsEventsCount2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestsEventsCount2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetRequestsEventsCount2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestsEventsCount2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestsEventsCount2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestsEventsCount2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestsEventsCountType string const ( @@ -601,6 +678,48 @@ type GetRequestsIgnoredCount2 struct { Lte *int64 `queryParam:"name=lte"` } +func (o *GetRequestsIgnoredCount2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestsIgnoredCount2) GetContains() *int64 { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetRequestsIgnoredCount2) GetGt() *int64 { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestsIgnoredCount2) GetGte() *int64 { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestsIgnoredCount2) GetLe() *int64 { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestsIgnoredCount2) GetLte() *int64 { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestsIgnoredCountType string const ( @@ -726,6 +845,41 @@ type GetRequestsIngestedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetRequestsIngestedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestsIngestedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestsIngestedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestsIngestedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestsIngestedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestsIngestedAtType string const ( @@ -999,6 +1153,48 @@ type GetRequestsRejectionCause2 struct { Lte *shared.RequestRejectionCause `queryParam:"name=lte"` } +func (o *GetRequestsRejectionCause2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRequestsRejectionCause2) GetContains() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetRequestsRejectionCause2) GetGt() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRequestsRejectionCause2) GetGte() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRequestsRejectionCause2) GetLe() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRequestsRejectionCause2) GetLte() *shared.RequestRejectionCause { + if o == nil { + return nil + } + return o.Lte +} + type GetRequestsRejectionCauseType string const ( @@ -1211,12 +1407,185 @@ type GetRequestsRequest struct { Verified *bool `queryParam:"style=form,explode=true,name=verified"` } +func (o *GetRequestsRequest) GetBody() *GetRequestsBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *GetRequestsRequest) GetBulkRetryID() *GetRequestsBulkRetryID { + if o == nil { + return nil + } + return o.BulkRetryID +} + +func (o *GetRequestsRequest) GetCreatedAt() *GetRequestsCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *GetRequestsRequest) GetDir() *GetRequestsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetRequestsRequest) GetEventsCount() *GetRequestsEventsCount { + if o == nil { + return nil + } + return o.EventsCount +} + +func (o *GetRequestsRequest) GetHeaders() *GetRequestsHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *GetRequestsRequest) GetID() *GetRequestsID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetRequestsRequest) GetIgnoredCount() *GetRequestsIgnoredCount { + if o == nil { + return nil + } + return o.IgnoredCount +} + +func (o *GetRequestsRequest) GetInclude() *GetRequestsInclude { + if o == nil { + return nil + } + return o.Include +} + +func (o *GetRequestsRequest) GetIngestedAt() *GetRequestsIngestedAt { + if o == nil { + return nil + } + return o.IngestedAt +} + +func (o *GetRequestsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetRequestsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetRequestsRequest) GetOrderBy() *GetRequestsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetRequestsRequest) GetParsedQuery() *GetRequestsParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *GetRequestsRequest) GetPath() *string { + if o == nil { + return nil + } + return o.Path +} + +func (o *GetRequestsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetRequestsRequest) GetRejectionCause() *GetRequestsRejectionCause { + if o == nil { + return nil + } + return o.RejectionCause +} + +func (o *GetRequestsRequest) GetSearchTerm() *string { + if o == nil { + return nil + } + return o.SearchTerm +} + +func (o *GetRequestsRequest) GetSourceID() *GetRequestsSourceID { + if o == nil { + return nil + } + return o.SourceID +} + +func (o *GetRequestsRequest) GetStatus() *GetRequestsStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *GetRequestsRequest) GetVerified() *bool { + if o == nil { + return nil + } + return o.Verified +} + type GetRequestsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of requests RequestPaginatedResult *shared.RequestPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetRequestsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetRequestsResponse) GetRequestPaginatedResult() *shared.RequestPaginatedResult { + if o == nil { + return nil + } + return o.RequestPaginatedResult +} + +func (o *GetRequestsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetRequestsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getruleset.go b/pkg/models/operations/getruleset.go index 7457c7a..e0c1a57 100755 --- a/pkg/models/operations/getruleset.go +++ b/pkg/models/operations/getruleset.go @@ -11,12 +11,45 @@ type GetRulesetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetRulesetRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetRulesetResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single ruleset Ruleset *shared.Ruleset StatusCode int RawResponse *http.Response } + +func (o *GetRulesetResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetRulesetResponse) GetRuleset() *shared.Ruleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *GetRulesetResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetRulesetResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getrulesets.go b/pkg/models/operations/getrulesets.go index 9b8bc74..cbdf8e8 100755 --- a/pkg/models/operations/getrulesets.go +++ b/pkg/models/operations/getrulesets.go @@ -21,6 +21,41 @@ type GetRulesetsArchivedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetRulesetsArchivedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRulesetsArchivedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRulesetsArchivedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRulesetsArchivedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRulesetsArchivedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetRulesetsArchivedAtType string const ( @@ -630,6 +665,48 @@ type GetRulesetsName2 struct { Lte *GetRulesetsName2Lte `queryParam:"name=lte"` } +func (o *GetRulesetsName2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetRulesetsName2) GetContains() *GetRulesetsName2Contains { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetRulesetsName2) GetGt() *GetRulesetsName2Gt { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetRulesetsName2) GetGte() *GetRulesetsName2Gte { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetRulesetsName2) GetLe() *GetRulesetsName2Le { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetRulesetsName2) GetLte() *GetRulesetsName2Lte { + if o == nil { + return nil + } + return o.Lte +} + type GetRulesetsOrderBy2 string const ( @@ -759,12 +836,101 @@ type GetRulesetsRequest struct { Prev *string `queryParam:"style=form,explode=true,name=prev"` } +func (o *GetRulesetsRequest) GetArchived() *bool { + if o == nil { + return nil + } + return o.Archived +} + +func (o *GetRulesetsRequest) GetArchivedAt() *GetRulesetsArchivedAt { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *GetRulesetsRequest) GetDir() *GetRulesetsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetRulesetsRequest) GetID() *GetRulesetsID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetRulesetsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetRulesetsRequest) GetName() interface{} { + if o == nil { + return nil + } + return o.Name +} + +func (o *GetRulesetsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetRulesetsRequest) GetOrderBy() *GetRulesetsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetRulesetsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + type GetRulesetsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of rulesets RulesetPaginatedResult *shared.RulesetPaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetRulesetsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetRulesetsResponse) GetRulesetPaginatedResult() *shared.RulesetPaginatedResult { + if o == nil { + return nil + } + return o.RulesetPaginatedResult +} + +func (o *GetRulesetsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetRulesetsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getsource.go b/pkg/models/operations/getsource.go index 2a3a728..1ebc7b1 100755 --- a/pkg/models/operations/getsource.go +++ b/pkg/models/operations/getsource.go @@ -11,12 +11,45 @@ type GetSourceRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetSourceRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetSourceResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single source Source *shared.Source StatusCode int RawResponse *http.Response } + +func (o *GetSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceResponse) GetSource() *shared.Source { + if o == nil { + return nil + } + return o.Source +} + +func (o *GetSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/getsources.go b/pkg/models/operations/getsources.go index a39a095..e7ef4e9 100755 --- a/pkg/models/operations/getsources.go +++ b/pkg/models/operations/getsources.go @@ -21,6 +21,41 @@ type GetSourcesArchivedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetSourcesArchivedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetSourcesArchivedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetSourcesArchivedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetSourcesArchivedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetSourcesArchivedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetSourcesArchivedAtType string const ( @@ -285,6 +320,13 @@ type GetSourcesIntegrationID2 struct { Any *bool `queryParam:"name=any"` } +func (o *GetSourcesIntegrationID2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + type GetSourcesIntegrationIDType string const ( @@ -363,6 +405,48 @@ type GetSourcesName2 struct { Lte *string `queryParam:"name=lte"` } +func (o *GetSourcesName2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetSourcesName2) GetContains() *string { + if o == nil { + return nil + } + return o.Contains +} + +func (o *GetSourcesName2) GetGt() *string { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetSourcesName2) GetGte() *string { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetSourcesName2) GetLe() *string { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetSourcesName2) GetLte() *string { + if o == nil { + return nil + } + return o.Lte +} + type GetSourcesNameType string const ( @@ -561,12 +645,108 @@ type GetSourcesRequest struct { Prev *string `queryParam:"style=form,explode=true,name=prev"` } +func (o *GetSourcesRequest) GetArchived() *bool { + if o == nil { + return nil + } + return o.Archived +} + +func (o *GetSourcesRequest) GetArchivedAt() *GetSourcesArchivedAt { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *GetSourcesRequest) GetDir() *GetSourcesDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetSourcesRequest) GetID() *GetSourcesID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetSourcesRequest) GetIntegrationID() *GetSourcesIntegrationID { + if o == nil { + return nil + } + return o.IntegrationID +} + +func (o *GetSourcesRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetSourcesRequest) GetName() *GetSourcesName { + if o == nil { + return nil + } + return o.Name +} + +func (o *GetSourcesRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetSourcesRequest) GetOrderBy() *GetSourcesOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetSourcesRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + type GetSourcesResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // List of sources SourcePaginatedResult *shared.SourcePaginatedResult StatusCode int RawResponse *http.Response } + +func (o *GetSourcesResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourcesResponse) GetSourcePaginatedResult() *shared.SourcePaginatedResult { + if o == nil { + return nil + } + return o.SourcePaginatedResult +} + +func (o *GetSourcesResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourcesResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/gettransformation.go b/pkg/models/operations/gettransformation.go index 295344f..0580f65 100755 --- a/pkg/models/operations/gettransformation.go +++ b/pkg/models/operations/gettransformation.go @@ -11,12 +11,45 @@ type GetTransformationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetTransformationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetTransformationResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // A single transformation Transformation *shared.Transformation } + +func (o *GetTransformationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetTransformationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetTransformationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *GetTransformationResponse) GetTransformation() *shared.Transformation { + if o == nil { + return nil + } + return o.Transformation +} diff --git a/pkg/models/operations/gettransformationexecution.go b/pkg/models/operations/gettransformationexecution.go index 5e75a93..273589f 100755 --- a/pkg/models/operations/gettransformationexecution.go +++ b/pkg/models/operations/gettransformationexecution.go @@ -12,12 +12,52 @@ type GetTransformationExecutionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *GetTransformationExecutionRequest) GetExecutionID() string { + if o == nil { + return "" + } + return o.ExecutionID +} + +func (o *GetTransformationExecutionRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type GetTransformationExecutionResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // A single transformation execution TransformationExecution *shared.TransformationExecution } + +func (o *GetTransformationExecutionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetTransformationExecutionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetTransformationExecutionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *GetTransformationExecutionResponse) GetTransformationExecution() *shared.TransformationExecution { + if o == nil { + return nil + } + return o.TransformationExecution +} diff --git a/pkg/models/operations/gettransformationexecutions.go b/pkg/models/operations/gettransformationexecutions.go index 5ab6cd7..299d9ab 100755 --- a/pkg/models/operations/gettransformationexecutions.go +++ b/pkg/models/operations/gettransformationexecutions.go @@ -21,6 +21,41 @@ type GetTransformationExecutionsCreatedAt2 struct { Lte *time.Time `queryParam:"name=lte"` } +func (o *GetTransformationExecutionsCreatedAt2) GetAny() *bool { + if o == nil { + return nil + } + return o.Any +} + +func (o *GetTransformationExecutionsCreatedAt2) GetGt() *time.Time { + if o == nil { + return nil + } + return o.Gt +} + +func (o *GetTransformationExecutionsCreatedAt2) GetGte() *time.Time { + if o == nil { + return nil + } + return o.Gte +} + +func (o *GetTransformationExecutionsCreatedAt2) GetLe() *time.Time { + if o == nil { + return nil + } + return o.Le +} + +func (o *GetTransformationExecutionsCreatedAt2) GetLte() *time.Time { + if o == nil { + return nil + } + return o.Lte +} + type GetTransformationExecutionsCreatedAtType string const ( @@ -625,12 +660,108 @@ type GetTransformationExecutionsRequest struct { WebhookID *GetTransformationExecutionsWebhookID `queryParam:"style=form,explode=true,name=webhook_id"` } +func (o *GetTransformationExecutionsRequest) GetCreatedAt() *GetTransformationExecutionsCreatedAt { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *GetTransformationExecutionsRequest) GetDir() *GetTransformationExecutionsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetTransformationExecutionsRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *GetTransformationExecutionsRequest) GetIssueID() *GetTransformationExecutionsIssueID { + if o == nil { + return nil + } + return o.IssueID +} + +func (o *GetTransformationExecutionsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetTransformationExecutionsRequest) GetLogLevel() *GetTransformationExecutionsLogLevel { + if o == nil { + return nil + } + return o.LogLevel +} + +func (o *GetTransformationExecutionsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetTransformationExecutionsRequest) GetOrderBy() *GetTransformationExecutionsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetTransformationExecutionsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + +func (o *GetTransformationExecutionsRequest) GetWebhookID() *GetTransformationExecutionsWebhookID { + if o == nil { + return nil + } + return o.WebhookID +} + type GetTransformationExecutionsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // List of transformation executions TransformationExecutionPaginatedResult *shared.TransformationExecutionPaginatedResult } + +func (o *GetTransformationExecutionsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetTransformationExecutionsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetTransformationExecutionsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *GetTransformationExecutionsResponse) GetTransformationExecutionPaginatedResult() *shared.TransformationExecutionPaginatedResult { + if o == nil { + return nil + } + return o.TransformationExecutionPaginatedResult +} diff --git a/pkg/models/operations/gettransformations.go b/pkg/models/operations/gettransformations.go index dfb451a..534a61c 100755 --- a/pkg/models/operations/gettransformations.go +++ b/pkg/models/operations/gettransformations.go @@ -397,12 +397,87 @@ type GetTransformationsRequest struct { Prev *string `queryParam:"style=form,explode=true,name=prev"` } +func (o *GetTransformationsRequest) GetDir() *GetTransformationsDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *GetTransformationsRequest) GetID() *GetTransformationsID { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetTransformationsRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *GetTransformationsRequest) GetName() *GetTransformationsName { + if o == nil { + return nil + } + return o.Name +} + +func (o *GetTransformationsRequest) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *GetTransformationsRequest) GetOrderBy() *GetTransformationsOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *GetTransformationsRequest) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} + type GetTransformationsResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // List of transformations TransformationPaginatedResult *shared.TransformationPaginatedResult } + +func (o *GetTransformationsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetTransformationsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetTransformationsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *GetTransformationsResponse) GetTransformationPaginatedResult() *shared.TransformationPaginatedResult { + if o == nil { + return nil + } + return o.TransformationPaginatedResult +} diff --git a/pkg/models/operations/listcustomdomains.go b/pkg/models/operations/listcustomdomains.go index 865ef51..846ffcc 100755 --- a/pkg/models/operations/listcustomdomains.go +++ b/pkg/models/operations/listcustomdomains.go @@ -11,6 +11,13 @@ type ListCustomDomainsRequest struct { TeamID string `pathParam:"style=simple,explode=false,name=team_id"` } +func (o *ListCustomDomainsRequest) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + type ListCustomDomainsResponse struct { ContentType string // List of custom domains @@ -18,3 +25,31 @@ type ListCustomDomainsResponse struct { StatusCode int RawResponse *http.Response } + +func (o *ListCustomDomainsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *ListCustomDomainsResponse) GetListCustomDomainSchema() []shared.ListCustomDomainSchema { + if o == nil { + return nil + } + return o.ListCustomDomainSchema +} + +func (o *ListCustomDomainsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *ListCustomDomainsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/muteevent.go b/pkg/models/operations/muteevent.go index 0411893..292aeb1 100755 --- a/pkg/models/operations/muteevent.go +++ b/pkg/models/operations/muteevent.go @@ -11,12 +11,45 @@ type MuteEventRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *MuteEventRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type MuteEventResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single event Event *shared.Event StatusCode int RawResponse *http.Response } + +func (o *MuteEventResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *MuteEventResponse) GetEvent() *shared.Event { + if o == nil { + return nil + } + return o.Event +} + +func (o *MuteEventResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *MuteEventResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/pauseconnection.go b/pkg/models/operations/pauseconnection.go index 7da3341..e416607 100755 --- a/pkg/models/operations/pauseconnection.go +++ b/pkg/models/operations/pauseconnection.go @@ -11,12 +11,45 @@ type PauseConnectionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *PauseConnectionRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type PauseConnectionResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single connection Connection *shared.Connection ContentType string StatusCode int RawResponse *http.Response } + +func (o *PauseConnectionResponse) GetConnection() *shared.Connection { + if o == nil { + return nil + } + return o.Connection +} + +func (o *PauseConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PauseConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PauseConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/retryevent.go b/pkg/models/operations/retryevent.go index 345a40c..6db8ff0 100755 --- a/pkg/models/operations/retryevent.go +++ b/pkg/models/operations/retryevent.go @@ -11,12 +11,45 @@ type RetryEventRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *RetryEventRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type RetryEventResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // Retried event with event attempt RetriedEvent *shared.RetriedEvent StatusCode int RawResponse *http.Response } + +func (o *RetryEventResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *RetryEventResponse) GetRetriedEvent() *shared.RetriedEvent { + if o == nil { + return nil + } + return o.RetriedEvent +} + +func (o *RetryEventResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *RetryEventResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/retryrequest.go b/pkg/models/operations/retryrequest.go index 8dd4845..d075999 100755 --- a/pkg/models/operations/retryrequest.go +++ b/pkg/models/operations/retryrequest.go @@ -12,17 +12,64 @@ type RetryRequestRequestBody struct { WebhookIds []string `json:"webhook_ids"` } +func (o *RetryRequestRequestBody) GetWebhookIds() []string { + if o == nil { + return []string{} + } + return o.WebhookIds +} + type RetryRequestRequest struct { RequestBody RetryRequestRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *RetryRequestRequest) GetRequestBody() RetryRequestRequestBody { + if o == nil { + return RetryRequestRequestBody{} + } + return o.RequestBody +} + +func (o *RetryRequestRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type RetryRequestResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // Retry request operation result RetryRequest *shared.RetryRequest StatusCode int RawResponse *http.Response } + +func (o *RetryRequestResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *RetryRequestResponse) GetRetryRequest() *shared.RetryRequest { + if o == nil { + return nil + } + return o.RetryRequest +} + +func (o *RetryRequestResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *RetryRequestResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/testtransformation.go b/pkg/models/operations/testtransformation.go index d513632..917715e 100755 --- a/pkg/models/operations/testtransformation.go +++ b/pkg/models/operations/testtransformation.go @@ -104,6 +104,41 @@ type TestTransformationRequestBodyRequest struct { Query *string `json:"query,omitempty"` } +func (o *TestTransformationRequestBodyRequest) GetBody() *TestTransformationRequestBodyRequestBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *TestTransformationRequestBodyRequest) GetHeaders() map[string]string { + if o == nil { + return map[string]string{} + } + return o.Headers +} + +func (o *TestTransformationRequestBodyRequest) GetParsedQuery() *TestTransformationRequestBodyRequestParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *TestTransformationRequestBodyRequest) GetPath() *string { + if o == nil { + return nil + } + return o.Path +} + +func (o *TestTransformationRequestBodyRequest) GetQuery() *string { + if o == nil { + return nil + } + return o.Query +} + type TestTransformationRequestBody struct { // JavaScript code to be executed Code *string `json:"code,omitempty"` @@ -118,12 +153,80 @@ type TestTransformationRequestBody struct { WebhookID *string `json:"webhook_id,omitempty"` } +func (o *TestTransformationRequestBody) GetCode() *string { + if o == nil { + return nil + } + return o.Code +} + +func (o *TestTransformationRequestBody) GetEnv() *TestTransformationRequestBodyEnv { + if o == nil { + return nil + } + return o.Env +} + +func (o *TestTransformationRequestBody) GetEventID() *string { + if o == nil { + return nil + } + return o.EventID +} + +func (o *TestTransformationRequestBody) GetRequest() *TestTransformationRequestBodyRequest { + if o == nil { + return nil + } + return o.Request +} + +func (o *TestTransformationRequestBody) GetTransformationID() *string { + if o == nil { + return nil + } + return o.TransformationID +} + +func (o *TestTransformationRequestBody) GetWebhookID() *string { + if o == nil { + return nil + } + return o.WebhookID +} + type TestTransformationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // Transformation run output TransformationExecutorOutput *shared.TransformationExecutorOutput } + +func (o *TestTransformationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *TestTransformationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *TestTransformationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *TestTransformationResponse) GetTransformationExecutorOutput() *shared.TransformationExecutorOutput { + if o == nil { + return nil + } + return o.TransformationExecutorOutput +} diff --git a/pkg/models/operations/togglewebhooknotifications.go b/pkg/models/operations/togglewebhooknotifications.go index f8ac3a2..4d071c1 100755 --- a/pkg/models/operations/togglewebhooknotifications.go +++ b/pkg/models/operations/togglewebhooknotifications.go @@ -16,6 +16,27 @@ type ToggleWebhookNotificationsRequestBody struct { Topics []shared.TopicsValue `json:"topics,omitempty"` } +func (o *ToggleWebhookNotificationsRequestBody) GetEnabled() *bool { + if o == nil { + return nil + } + return o.Enabled +} + +func (o *ToggleWebhookNotificationsRequestBody) GetSourceID() *string { + if o == nil { + return nil + } + return o.SourceID +} + +func (o *ToggleWebhookNotificationsRequestBody) GetTopics() []shared.TopicsValue { + if o == nil { + return nil + } + return o.Topics +} + type ToggleWebhookNotificationsResponse struct { ContentType string StatusCode int @@ -23,3 +44,31 @@ type ToggleWebhookNotificationsResponse struct { // Toggle operation status response ToggleWebhookNotifications *shared.ToggleWebhookNotifications } + +func (o *ToggleWebhookNotificationsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *ToggleWebhookNotificationsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *ToggleWebhookNotificationsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *ToggleWebhookNotificationsResponse) GetToggleWebhookNotifications() *shared.ToggleWebhookNotifications { + if o == nil { + return nil + } + return o.ToggleWebhookNotifications +} diff --git a/pkg/models/operations/triggerbookmark.go b/pkg/models/operations/triggerbookmark.go index 7a88296..fbe1efc 100755 --- a/pkg/models/operations/triggerbookmark.go +++ b/pkg/models/operations/triggerbookmark.go @@ -42,17 +42,64 @@ type TriggerBookmarkRequestBody struct { Target *TriggerBookmarkRequestBodyTarget `json:"target,omitempty"` } +func (o *TriggerBookmarkRequestBody) GetTarget() *TriggerBookmarkRequestBodyTarget { + if o == nil { + return nil + } + return o.Target +} + type TriggerBookmarkRequest struct { RequestBody TriggerBookmarkRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *TriggerBookmarkRequest) GetRequestBody() TriggerBookmarkRequestBody { + if o == nil { + return TriggerBookmarkRequestBody{} + } + return o.RequestBody +} + +func (o *TriggerBookmarkRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type TriggerBookmarkResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // Array of created events EventArray []shared.Event StatusCode int RawResponse *http.Response } + +func (o *TriggerBookmarkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *TriggerBookmarkResponse) GetEventArray() []shared.Event { + if o == nil { + return nil + } + return o.EventArray +} + +func (o *TriggerBookmarkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *TriggerBookmarkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/unarchiveconnection.go b/pkg/models/operations/unarchiveconnection.go index a860111..8aef5b1 100755 --- a/pkg/models/operations/unarchiveconnection.go +++ b/pkg/models/operations/unarchiveconnection.go @@ -11,12 +11,45 @@ type UnarchiveConnectionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UnarchiveConnectionRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UnarchiveConnectionResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single connection Connection *shared.Connection ContentType string StatusCode int RawResponse *http.Response } + +func (o *UnarchiveConnectionResponse) GetConnection() *shared.Connection { + if o == nil { + return nil + } + return o.Connection +} + +func (o *UnarchiveConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnarchiveConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnarchiveConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/unarchivedestination.go b/pkg/models/operations/unarchivedestination.go index f326c5b..bf6b110 100755 --- a/pkg/models/operations/unarchivedestination.go +++ b/pkg/models/operations/unarchivedestination.go @@ -11,12 +11,45 @@ type UnarchiveDestinationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UnarchiveDestinationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UnarchiveDestinationResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single destination Destination *shared.Destination StatusCode int RawResponse *http.Response } + +func (o *UnarchiveDestinationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnarchiveDestinationResponse) GetDestination() *shared.Destination { + if o == nil { + return nil + } + return o.Destination +} + +func (o *UnarchiveDestinationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnarchiveDestinationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/unarchiveruleset.go b/pkg/models/operations/unarchiveruleset.go index 61067fa..ee924c1 100755 --- a/pkg/models/operations/unarchiveruleset.go +++ b/pkg/models/operations/unarchiveruleset.go @@ -11,12 +11,45 @@ type UnarchiveRulesetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UnarchiveRulesetRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UnarchiveRulesetResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single ruleset Ruleset *shared.Ruleset StatusCode int RawResponse *http.Response } + +func (o *UnarchiveRulesetResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnarchiveRulesetResponse) GetRuleset() *shared.Ruleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *UnarchiveRulesetResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnarchiveRulesetResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/unarchivesource.go b/pkg/models/operations/unarchivesource.go index 9b955dc..843315a 100755 --- a/pkg/models/operations/unarchivesource.go +++ b/pkg/models/operations/unarchivesource.go @@ -11,12 +11,45 @@ type UnarchiveSourceRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UnarchiveSourceRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UnarchiveSourceResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single source Source *shared.Source StatusCode int RawResponse *http.Response } + +func (o *UnarchiveSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnarchiveSourceResponse) GetSource() *shared.Source { + if o == nil { + return nil + } + return o.Source +} + +func (o *UnarchiveSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnarchiveSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/unpauseconnection.go b/pkg/models/operations/unpauseconnection.go index c3fa883..16506bc 100755 --- a/pkg/models/operations/unpauseconnection.go +++ b/pkg/models/operations/unpauseconnection.go @@ -11,12 +11,45 @@ type UnpauseConnectionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UnpauseConnectionRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UnpauseConnectionResponse struct { - // Not Found - APIErrorResponse *shared.APIErrorResponse // A single connection Connection *shared.Connection ContentType string StatusCode int RawResponse *http.Response } + +func (o *UnpauseConnectionResponse) GetConnection() *shared.Connection { + if o == nil { + return nil + } + return o.Connection +} + +func (o *UnpauseConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnpauseConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnpauseConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updatebookmark.go b/pkg/models/operations/updatebookmark.go index dd04e2e..0cd2be9 100755 --- a/pkg/models/operations/updatebookmark.go +++ b/pkg/models/operations/updatebookmark.go @@ -18,17 +18,85 @@ type UpdateBookmarkRequestBody struct { WebhookID *string `json:"webhook_id,omitempty"` } +func (o *UpdateBookmarkRequestBody) GetEventDataID() *string { + if o == nil { + return nil + } + return o.EventDataID +} + +func (o *UpdateBookmarkRequestBody) GetLabel() *string { + if o == nil { + return nil + } + return o.Label +} + +func (o *UpdateBookmarkRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *UpdateBookmarkRequestBody) GetWebhookID() *string { + if o == nil { + return nil + } + return o.WebhookID +} + type UpdateBookmarkRequest struct { RequestBody UpdateBookmarkRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateBookmarkRequest) GetRequestBody() UpdateBookmarkRequestBody { + if o == nil { + return UpdateBookmarkRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateBookmarkRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateBookmarkResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // A single bookmark Bookmark *shared.Bookmark ContentType string StatusCode int RawResponse *http.Response } + +func (o *UpdateBookmarkResponse) GetBookmark() *shared.Bookmark { + if o == nil { + return nil + } + return o.Bookmark +} + +func (o *UpdateBookmarkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateBookmarkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateBookmarkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updateconnection.go b/pkg/models/operations/updateconnection.go index 0068e77..46775e6 100755 --- a/pkg/models/operations/updateconnection.go +++ b/pkg/models/operations/updateconnection.go @@ -16,6 +16,27 @@ type UpdateConnectionRequestBodyRuleset struct { Rules []interface{} `json:"rules,omitempty"` } +func (o *UpdateConnectionRequestBodyRuleset) GetIsTeamDefault() *bool { + if o == nil { + return nil + } + return o.IsTeamDefault +} + +func (o *UpdateConnectionRequestBodyRuleset) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *UpdateConnectionRequestBodyRuleset) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + type UpdateConnectionRequestBody struct { // Unique name of the connection for the source Name *string `json:"name,omitempty"` @@ -27,17 +48,85 @@ type UpdateConnectionRequestBody struct { RulesetID *string `json:"ruleset_id,omitempty"` } +func (o *UpdateConnectionRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *UpdateConnectionRequestBody) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + +func (o *UpdateConnectionRequestBody) GetRuleset() *UpdateConnectionRequestBodyRuleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *UpdateConnectionRequestBody) GetRulesetID() *string { + if o == nil { + return nil + } + return o.RulesetID +} + type UpdateConnectionRequest struct { RequestBody UpdateConnectionRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateConnectionRequest) GetRequestBody() UpdateConnectionRequestBody { + if o == nil { + return UpdateConnectionRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateConnectionRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateConnectionResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // A single connection Connection *shared.Connection ContentType string StatusCode int RawResponse *http.Response } + +func (o *UpdateConnectionResponse) GetConnection() *shared.Connection { + if o == nil { + return nil + } + return o.Connection +} + +func (o *UpdateConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updatedestination.go b/pkg/models/operations/updatedestination.go index d6afb85..2426905 100755 --- a/pkg/models/operations/updatedestination.go +++ b/pkg/models/operations/updatedestination.go @@ -58,17 +58,113 @@ type UpdateDestinationRequestBody struct { URL *string `json:"url,omitempty"` } +func (o *UpdateDestinationRequestBody) GetAuthMethod() interface{} { + if o == nil { + return nil + } + return o.AuthMethod +} + +func (o *UpdateDestinationRequestBody) GetCliPath() *string { + if o == nil { + return nil + } + return o.CliPath +} + +func (o *UpdateDestinationRequestBody) GetHTTPMethod() *shared.DestinationHTTPMethod { + if o == nil { + return nil + } + return o.HTTPMethod +} + +func (o *UpdateDestinationRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *UpdateDestinationRequestBody) GetPathForwardingDisabled() *bool { + if o == nil { + return nil + } + return o.PathForwardingDisabled +} + +func (o *UpdateDestinationRequestBody) GetRateLimit() interface{} { + if o == nil { + return nil + } + return o.RateLimit +} + +func (o *UpdateDestinationRequestBody) GetRateLimitPeriod() *UpdateDestinationRequestBodyRateLimitPeriod { + if o == nil { + return nil + } + return o.RateLimitPeriod +} + +func (o *UpdateDestinationRequestBody) GetURL() *string { + if o == nil { + return nil + } + return o.URL +} + type UpdateDestinationRequest struct { RequestBody UpdateDestinationRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateDestinationRequest) GetRequestBody() UpdateDestinationRequestBody { + if o == nil { + return UpdateDestinationRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateDestinationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateDestinationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single destination Destination *shared.Destination StatusCode int RawResponse *http.Response } + +func (o *UpdateDestinationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateDestinationResponse) GetDestination() *shared.Destination { + if o == nil { + return nil + } + return o.Destination +} + +func (o *UpdateDestinationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateDestinationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updateintegration.go b/pkg/models/operations/updateintegration.go index b88f228..7be4894 100755 --- a/pkg/models/operations/updateintegration.go +++ b/pkg/models/operations/updateintegration.go @@ -22,17 +22,85 @@ type UpdateIntegrationRequestBody struct { Provider *shared.IntegrationProvider `json:"provider,omitempty"` } +func (o *UpdateIntegrationRequestBody) GetConfigs() interface{} { + if o == nil { + return nil + } + return o.Configs +} + +func (o *UpdateIntegrationRequestBody) GetFeatures() []shared.IntegrationFeature { + if o == nil { + return nil + } + return o.Features +} + +func (o *UpdateIntegrationRequestBody) GetLabel() *string { + if o == nil { + return nil + } + return o.Label +} + +func (o *UpdateIntegrationRequestBody) GetProvider() *shared.IntegrationProvider { + if o == nil { + return nil + } + return o.Provider +} + type UpdateIntegrationRequest struct { RequestBody UpdateIntegrationRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateIntegrationRequest) GetRequestBody() UpdateIntegrationRequestBody { + if o == nil { + return UpdateIntegrationRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateIntegrationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateIntegrationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single integration Integration *shared.Integration StatusCode int RawResponse *http.Response } + +func (o *UpdateIntegrationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateIntegrationResponse) GetIntegration() *shared.Integration { + if o == nil { + return nil + } + return o.Integration +} + +func (o *UpdateIntegrationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateIntegrationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updateissue.go b/pkg/models/operations/updateissue.go index da435e3..141d9da 100755 --- a/pkg/models/operations/updateissue.go +++ b/pkg/models/operations/updateissue.go @@ -5,7 +5,6 @@ package operations import ( "encoding/json" "fmt" - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "net/http" ) @@ -48,17 +47,64 @@ type UpdateIssueRequestBody struct { Status UpdateIssueRequestBodyStatus `json:"status"` } +func (o *UpdateIssueRequestBody) GetStatus() UpdateIssueRequestBodyStatus { + if o == nil { + return UpdateIssueRequestBodyStatus("") + } + return o.Status +} + type UpdateIssueRequest struct { RequestBody UpdateIssueRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateIssueRequest) GetRequestBody() UpdateIssueRequestBody { + if o == nil { + return UpdateIssueRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateIssueRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateIssueResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // Updated issue Issue interface{} StatusCode int RawResponse *http.Response } + +func (o *UpdateIssueResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateIssueResponse) GetIssue() interface{} { + if o == nil { + return nil + } + return o.Issue +} + +func (o *UpdateIssueResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateIssueResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updateissuetrigger.go b/pkg/models/operations/updateissuetrigger.go index baec741..3e991ad 100755 --- a/pkg/models/operations/updateissuetrigger.go +++ b/pkg/models/operations/updateissuetrigger.go @@ -19,17 +19,85 @@ type UpdateIssueTriggerRequestBody struct { Name *string `json:"name,omitempty"` } +func (o *UpdateIssueTriggerRequestBody) GetChannels() *shared.IssueTriggerChannels { + if o == nil { + return nil + } + return o.Channels +} + +func (o *UpdateIssueTriggerRequestBody) GetConfigs() interface{} { + if o == nil { + return nil + } + return o.Configs +} + +func (o *UpdateIssueTriggerRequestBody) GetDisabledAt() *time.Time { + if o == nil { + return nil + } + return o.DisabledAt +} + +func (o *UpdateIssueTriggerRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + type UpdateIssueTriggerRequest struct { RequestBody UpdateIssueTriggerRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateIssueTriggerRequest) GetRequestBody() UpdateIssueTriggerRequestBody { + if o == nil { + return UpdateIssueTriggerRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateIssueTriggerRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateIssueTriggerResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single issue trigger IssueTrigger *shared.IssueTrigger StatusCode int RawResponse *http.Response } + +func (o *UpdateIssueTriggerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateIssueTriggerResponse) GetIssueTrigger() *shared.IssueTrigger { + if o == nil { + return nil + } + return o.IssueTrigger +} + +func (o *UpdateIssueTriggerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateIssueTriggerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updateruleset.go b/pkg/models/operations/updateruleset.go index 27731db..a92a98c 100755 --- a/pkg/models/operations/updateruleset.go +++ b/pkg/models/operations/updateruleset.go @@ -15,17 +15,78 @@ type UpdateRulesetRequestBody struct { Rules []interface{} `json:"rules,omitempty"` } +func (o *UpdateRulesetRequestBody) GetIsTeamDefault() *bool { + if o == nil { + return nil + } + return o.IsTeamDefault +} + +func (o *UpdateRulesetRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *UpdateRulesetRequestBody) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + type UpdateRulesetRequest struct { RequestBody UpdateRulesetRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateRulesetRequest) GetRequestBody() UpdateRulesetRequestBody { + if o == nil { + return UpdateRulesetRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateRulesetRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateRulesetResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single ruleset Ruleset *shared.Ruleset StatusCode int RawResponse *http.Response } + +func (o *UpdateRulesetResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateRulesetResponse) GetRuleset() *shared.Ruleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *UpdateRulesetResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateRulesetResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updatesource.go b/pkg/models/operations/updatesource.go index 852c279..7d5cae4 100755 --- a/pkg/models/operations/updatesource.go +++ b/pkg/models/operations/updatesource.go @@ -16,17 +16,78 @@ type UpdateSourceRequestBody struct { Name *string `json:"name,omitempty"` } +func (o *UpdateSourceRequestBody) GetAllowedHTTPMethods() []shared.SourceAllowedHTTPMethod { + if o == nil { + return nil + } + return o.AllowedHTTPMethods +} + +func (o *UpdateSourceRequestBody) GetCustomResponse() *shared.SourceCustomResponse { + if o == nil { + return nil + } + return o.CustomResponse +} + +func (o *UpdateSourceRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + type UpdateSourceRequest struct { RequestBody UpdateSourceRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateSourceRequest) GetRequestBody() UpdateSourceRequestBody { + if o == nil { + return UpdateSourceRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateSourceRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateSourceResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single source Source *shared.Source StatusCode int RawResponse *http.Response } + +func (o *UpdateSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateSourceResponse) GetSource() *shared.Source { + if o == nil { + return nil + } + return o.Source +} + +func (o *UpdateSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/updatetransformation.go b/pkg/models/operations/updatetransformation.go index 0c7b4c8..dca917e 100755 --- a/pkg/models/operations/updatetransformation.go +++ b/pkg/models/operations/updatetransformation.go @@ -16,17 +16,78 @@ type UpdateTransformationRequestBody struct { Name *string `json:"name,omitempty"` } +func (o *UpdateTransformationRequestBody) GetCode() *string { + if o == nil { + return nil + } + return o.Code +} + +func (o *UpdateTransformationRequestBody) GetEnv() map[string]interface{} { + if o == nil { + return nil + } + return o.Env +} + +func (o *UpdateTransformationRequestBody) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + type UpdateTransformationRequest struct { RequestBody UpdateTransformationRequestBody `request:"mediaType=application/json"` ID string `pathParam:"style=simple,explode=false,name=id"` } +func (o *UpdateTransformationRequest) GetRequestBody() UpdateTransformationRequestBody { + if o == nil { + return UpdateTransformationRequestBody{} + } + return o.RequestBody +} + +func (o *UpdateTransformationRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + type UpdateTransformationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // A single transformation Transformation *shared.Transformation } + +func (o *UpdateTransformationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpdateTransformationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateTransformationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *UpdateTransformationResponse) GetTransformation() *shared.Transformation { + if o == nil { + return nil + } + return o.Transformation +} diff --git a/pkg/models/operations/upsertconnection.go b/pkg/models/operations/upsertconnection.go index 75ee712..68e2c27 100755 --- a/pkg/models/operations/upsertconnection.go +++ b/pkg/models/operations/upsertconnection.go @@ -59,6 +59,62 @@ type UpsertConnectionRequestBodyDestination struct { URL *string `json:"url,omitempty"` } +func (o *UpsertConnectionRequestBodyDestination) GetAuthMethod() interface{} { + if o == nil { + return nil + } + return o.AuthMethod +} + +func (o *UpsertConnectionRequestBodyDestination) GetCliPath() *string { + if o == nil { + return nil + } + return o.CliPath +} + +func (o *UpsertConnectionRequestBodyDestination) GetHTTPMethod() *shared.DestinationHTTPMethod { + if o == nil { + return nil + } + return o.HTTPMethod +} + +func (o *UpsertConnectionRequestBodyDestination) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *UpsertConnectionRequestBodyDestination) GetPathForwardingDisabled() *bool { + if o == nil { + return nil + } + return o.PathForwardingDisabled +} + +func (o *UpsertConnectionRequestBodyDestination) GetRateLimit() interface{} { + if o == nil { + return nil + } + return o.RateLimit +} + +func (o *UpsertConnectionRequestBodyDestination) GetRateLimitPeriod() *UpsertConnectionRequestBodyDestinationRateLimitPeriod { + if o == nil { + return nil + } + return o.RateLimitPeriod +} + +func (o *UpsertConnectionRequestBodyDestination) GetURL() *string { + if o == nil { + return nil + } + return o.URL +} + // UpsertConnectionRequestBodyRuleset - Ruleset input object type UpsertConnectionRequestBodyRuleset struct { IsTeamDefault *bool `json:"is_team_default,omitempty"` @@ -68,6 +124,27 @@ type UpsertConnectionRequestBodyRuleset struct { Rules []interface{} `json:"rules,omitempty"` } +func (o *UpsertConnectionRequestBodyRuleset) GetIsTeamDefault() *bool { + if o == nil { + return nil + } + return o.IsTeamDefault +} + +func (o *UpsertConnectionRequestBodyRuleset) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *UpsertConnectionRequestBodyRuleset) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + // UpsertConnectionRequestBodySource - Source input object type UpsertConnectionRequestBodySource struct { // List of allowed HTTP methods. Defaults to PUT, POST, PATCH, DELETE. @@ -78,6 +155,27 @@ type UpsertConnectionRequestBodySource struct { Name string `json:"name"` } +func (o *UpsertConnectionRequestBodySource) GetAllowedHTTPMethods() []shared.SourceAllowedHTTPMethod { + if o == nil { + return nil + } + return o.AllowedHTTPMethods +} + +func (o *UpsertConnectionRequestBodySource) GetCustomResponse() *shared.SourceCustomResponse { + if o == nil { + return nil + } + return o.CustomResponse +} + +func (o *UpsertConnectionRequestBodySource) GetName() string { + if o == nil { + return "" + } + return o.Name +} + type UpsertConnectionRequestBody struct { // Destination input object Destination *UpsertConnectionRequestBodyDestination `json:"destination,omitempty"` @@ -97,12 +195,94 @@ type UpsertConnectionRequestBody struct { SourceID *string `json:"source_id,omitempty"` } +func (o *UpsertConnectionRequestBody) GetDestination() *UpsertConnectionRequestBodyDestination { + if o == nil { + return nil + } + return o.Destination +} + +func (o *UpsertConnectionRequestBody) GetDestinationID() *string { + if o == nil { + return nil + } + return o.DestinationID +} + +func (o *UpsertConnectionRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *UpsertConnectionRequestBody) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + +func (o *UpsertConnectionRequestBody) GetRuleset() *UpsertConnectionRequestBodyRuleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *UpsertConnectionRequestBody) GetRulesetID() *string { + if o == nil { + return nil + } + return o.RulesetID +} + +func (o *UpsertConnectionRequestBody) GetSource() *UpsertConnectionRequestBodySource { + if o == nil { + return nil + } + return o.Source +} + +func (o *UpsertConnectionRequestBody) GetSourceID() *string { + if o == nil { + return nil + } + return o.SourceID +} + type UpsertConnectionResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse // A single connection Connection *shared.Connection ContentType string StatusCode int RawResponse *http.Response } + +func (o *UpsertConnectionResponse) GetConnection() *shared.Connection { + if o == nil { + return nil + } + return o.Connection +} + +func (o *UpsertConnectionResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpsertConnectionResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpsertConnectionResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/upsertdestination.go b/pkg/models/operations/upsertdestination.go index 9834ccb..8a0b6e4 100755 --- a/pkg/models/operations/upsertdestination.go +++ b/pkg/models/operations/upsertdestination.go @@ -58,12 +58,94 @@ type UpsertDestinationRequestBody struct { URL *string `json:"url,omitempty"` } +func (o *UpsertDestinationRequestBody) GetAuthMethod() interface{} { + if o == nil { + return nil + } + return o.AuthMethod +} + +func (o *UpsertDestinationRequestBody) GetCliPath() *string { + if o == nil { + return nil + } + return o.CliPath +} + +func (o *UpsertDestinationRequestBody) GetHTTPMethod() *shared.DestinationHTTPMethod { + if o == nil { + return nil + } + return o.HTTPMethod +} + +func (o *UpsertDestinationRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *UpsertDestinationRequestBody) GetPathForwardingDisabled() *bool { + if o == nil { + return nil + } + return o.PathForwardingDisabled +} + +func (o *UpsertDestinationRequestBody) GetRateLimit() interface{} { + if o == nil { + return nil + } + return o.RateLimit +} + +func (o *UpsertDestinationRequestBody) GetRateLimitPeriod() *UpsertDestinationRequestBodyRateLimitPeriod { + if o == nil { + return nil + } + return o.RateLimitPeriod +} + +func (o *UpsertDestinationRequestBody) GetURL() *string { + if o == nil { + return nil + } + return o.URL +} + type UpsertDestinationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single destination Destination *shared.Destination StatusCode int RawResponse *http.Response } + +func (o *UpsertDestinationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpsertDestinationResponse) GetDestination() *shared.Destination { + if o == nil { + return nil + } + return o.Destination +} + +func (o *UpsertDestinationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpsertDestinationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/upsertissuetrigger.go b/pkg/models/operations/upsertissuetrigger.go index bc28cc3..36f537e 100755 --- a/pkg/models/operations/upsertissuetrigger.go +++ b/pkg/models/operations/upsertissuetrigger.go @@ -18,12 +18,66 @@ type UpsertIssueTriggerRequestBody struct { Type shared.IssueType `json:"type"` } +func (o *UpsertIssueTriggerRequestBody) GetChannels() shared.IssueTriggerChannels { + if o == nil { + return shared.IssueTriggerChannels{} + } + return o.Channels +} + +func (o *UpsertIssueTriggerRequestBody) GetConfigs() interface{} { + if o == nil { + return nil + } + return o.Configs +} + +func (o *UpsertIssueTriggerRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *UpsertIssueTriggerRequestBody) GetType() shared.IssueType { + if o == nil { + return IssueType("") + } + return o.Type +} + type UpsertIssueTriggerResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single issue trigger IssueTrigger *shared.IssueTrigger StatusCode int RawResponse *http.Response } + +func (o *UpsertIssueTriggerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpsertIssueTriggerResponse) GetIssueTrigger() *shared.IssueTrigger { + if o == nil { + return nil + } + return o.IssueTrigger +} + +func (o *UpsertIssueTriggerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpsertIssueTriggerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/upsertruleset.go b/pkg/models/operations/upsertruleset.go index b361935..97af053 100755 --- a/pkg/models/operations/upsertruleset.go +++ b/pkg/models/operations/upsertruleset.go @@ -15,12 +15,59 @@ type UpsertRulesetRequestBody struct { Rules []interface{} `json:"rules,omitempty"` } +func (o *UpsertRulesetRequestBody) GetIsTeamDefault() *bool { + if o == nil { + return nil + } + return o.IsTeamDefault +} + +func (o *UpsertRulesetRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *UpsertRulesetRequestBody) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + type UpsertRulesetResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single ruleset Ruleset *shared.Ruleset StatusCode int RawResponse *http.Response } + +func (o *UpsertRulesetResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpsertRulesetResponse) GetRuleset() *shared.Ruleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *UpsertRulesetResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpsertRulesetResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/upsertsource.go b/pkg/models/operations/upsertsource.go index c2e241b..a95bc23 100755 --- a/pkg/models/operations/upsertsource.go +++ b/pkg/models/operations/upsertsource.go @@ -16,12 +16,59 @@ type UpsertSourceRequestBody struct { Name string `json:"name"` } +func (o *UpsertSourceRequestBody) GetAllowedHTTPMethods() []shared.SourceAllowedHTTPMethod { + if o == nil { + return nil + } + return o.AllowedHTTPMethods +} + +func (o *UpsertSourceRequestBody) GetCustomResponse() *shared.SourceCustomResponse { + if o == nil { + return nil + } + return o.CustomResponse +} + +func (o *UpsertSourceRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + type UpsertSourceResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string + ContentType string // A single source Source *shared.Source StatusCode int RawResponse *http.Response } + +func (o *UpsertSourceResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpsertSourceResponse) GetSource() *shared.Source { + if o == nil { + return nil + } + return o.Source +} + +func (o *UpsertSourceResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpsertSourceResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/pkg/models/operations/upserttransformation.go b/pkg/models/operations/upserttransformation.go index 562b735..54e0ed9 100755 --- a/pkg/models/operations/upserttransformation.go +++ b/pkg/models/operations/upserttransformation.go @@ -16,12 +16,59 @@ type UpsertTransformationRequestBody struct { Name string `json:"name"` } +func (o *UpsertTransformationRequestBody) GetCode() string { + if o == nil { + return "" + } + return o.Code +} + +func (o *UpsertTransformationRequestBody) GetEnv() map[string]interface{} { + if o == nil { + return nil + } + return o.Env +} + +func (o *UpsertTransformationRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + type UpsertTransformationResponse struct { - // Bad Request - APIErrorResponse *shared.APIErrorResponse - ContentType string - StatusCode int - RawResponse *http.Response + ContentType string + StatusCode int + RawResponse *http.Response // A single transformation Transformation *shared.Transformation } + +func (o *UpsertTransformationResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UpsertTransformationResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpsertTransformationResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *UpsertTransformationResponse) GetTransformation() *shared.Transformation { + if o == nil { + return nil + } + return o.Transformation +} diff --git a/pkg/models/sdkerrors/apierrorresponse.go b/pkg/models/sdkerrors/apierrorresponse.go new file mode 100755 index 0000000..70e7ce7 --- /dev/null +++ b/pkg/models/sdkerrors/apierrorresponse.go @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package sdkerrors + +import ( + "encoding/json" + "net/http" +) + +type APIErrorResponseData struct { + RawResponse *http.Response `json:"-"` +} + +var _ error = &APIErrorResponseData{} + +func (e *APIErrorResponseData) Error() string { + data, _ := json.Marshal(e) + return string(data) +} + +// APIErrorResponse - Error response model +type APIErrorResponse struct { + RawResponse *http.Response `json:"-"` + // Error code + Code string `json:"code"` + Data *APIErrorResponseData `json:"data,omitempty"` + // Error description + Message string `json:"message"` + // Status code + Status float32 `json:"status"` +} + +var _ error = &APIErrorResponse{} + +func (e *APIErrorResponse) Error() string { + data, _ := json.Marshal(e) + return string(data) +} diff --git a/pkg/models/sdkerrors/sdkerror.go b/pkg/models/sdkerrors/sdkerror.go new file mode 100755 index 0000000..5c1affd --- /dev/null +++ b/pkg/models/sdkerrors/sdkerror.go @@ -0,0 +1,35 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package sdkerrors + +import ( + "fmt" + "net/http" +) + +type SDKError struct { + Message string + StatusCode int + Body string + RawResponse *http.Response +} + +var _ error = &SDKError{} + +func NewSDKError(message string, statusCode int, body string, httpRes *http.Response) *SDKError { + return &SDKError{ + Message: message, + StatusCode: statusCode, + Body: body, + RawResponse: httpRes, + } +} + +func (e *SDKError) Error() string { + body := "" + if len(e.Body) > 0 { + body = fmt.Sprintf("\n%s", e.Body) + } + + return fmt.Sprintf("%s: Status %d%s", e.Message, e.StatusCode, body) +} diff --git a/pkg/models/shared/addcustomhostname.go b/pkg/models/shared/addcustomhostname.go index 0187aa4..03f8ade 100755 --- a/pkg/models/shared/addcustomhostname.go +++ b/pkg/models/shared/addcustomhostname.go @@ -7,3 +7,10 @@ type AddCustomHostname struct { // The custom hostname to attach to the workspace Hostname string `json:"hostname"` } + +func (o *AddCustomHostname) GetHostname() string { + if o == nil { + return "" + } + return o.Hostname +} diff --git a/pkg/models/shared/alertrule.go b/pkg/models/shared/alertrule.go index f99930b..4171a43 100755 --- a/pkg/models/shared/alertrule.go +++ b/pkg/models/shared/alertrule.go @@ -38,3 +38,17 @@ type AlertRule struct { // An alert rule must be of type `alert` Type AlertRuleType `json:"type"` } + +func (o *AlertRule) GetStrategy() AlertStrategy { + if o == nil { + return AlertStrategy("") + } + return o.Strategy +} + +func (o *AlertRule) GetType() AlertRuleType { + if o == nil { + return AlertRuleType("") + } + return o.Type +} diff --git a/pkg/models/shared/apierrorresponse.go b/pkg/models/shared/apierrorresponse.go deleted file mode 100755 index c72daa9..0000000 --- a/pkg/models/shared/apierrorresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type APIErrorResponseData struct { -} - -// APIErrorResponse - Error response model -type APIErrorResponse struct { - // Error code - Code string `json:"code"` - Data *APIErrorResponseData `json:"data,omitempty"` - // Error description - Message string `json:"message"` - // Status code - Status float32 `json:"status"` -} diff --git a/pkg/models/shared/apikey.go b/pkg/models/shared/apikey.go index 538df12..31f6e14 100755 --- a/pkg/models/shared/apikey.go +++ b/pkg/models/shared/apikey.go @@ -39,3 +39,17 @@ type APIKey struct { // Type of auth method Type APIKeyType `json:"type"` } + +func (o *APIKey) GetConfig() *DestinationAuthMethodAPIKeyConfig { + if o == nil { + return nil + } + return o.Config +} + +func (o *APIKey) GetType() APIKeyType { + if o == nil { + return APIKeyType("") + } + return o.Type +} diff --git a/pkg/models/shared/apikeyintegrationconfigs.go b/pkg/models/shared/apikeyintegrationconfigs.go index a007d96..8dfc5a6 100755 --- a/pkg/models/shared/apikeyintegrationconfigs.go +++ b/pkg/models/shared/apikeyintegrationconfigs.go @@ -7,3 +7,17 @@ type APIKeyIntegrationConfigs struct { APIKey string `json:"api_key"` HeaderKey string `json:"header_key"` } + +func (o *APIKeyIntegrationConfigs) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *APIKeyIntegrationConfigs) GetHeaderKey() string { + if o == nil { + return "" + } + return o.HeaderKey +} diff --git a/pkg/models/shared/attachedintegrationtosource.go b/pkg/models/shared/attachedintegrationtosource.go index eb90264..d106984 100755 --- a/pkg/models/shared/attachedintegrationtosource.go +++ b/pkg/models/shared/attachedintegrationtosource.go @@ -6,3 +6,10 @@ package shared type AttachedIntegrationToSource struct { Success bool `json:"success"` } + +func (o *AttachedIntegrationToSource) GetSuccess() bool { + if o == nil { + return false + } + return o.Success +} diff --git a/pkg/models/shared/basicauth.go b/pkg/models/shared/basicauth.go index 3b393d7..341a430 100755 --- a/pkg/models/shared/basicauth.go +++ b/pkg/models/shared/basicauth.go @@ -39,3 +39,17 @@ type BasicAuth struct { // Type of auth method Type BasicAuthType `json:"type"` } + +func (o *BasicAuth) GetConfig() *DestinationAuthMethodBasicAuthConfig { + if o == nil { + return nil + } + return o.Config +} + +func (o *BasicAuth) GetType() BasicAuthType { + if o == nil { + return BasicAuthType("") + } + return o.Type +} diff --git a/pkg/models/shared/basicauthintegrationconfigs.go b/pkg/models/shared/basicauthintegrationconfigs.go index 4b62205..626a8f6 100755 --- a/pkg/models/shared/basicauthintegrationconfigs.go +++ b/pkg/models/shared/basicauthintegrationconfigs.go @@ -7,3 +7,17 @@ type BasicAuthIntegrationConfigs struct { Name string `json:"name"` Password string `json:"password"` } + +func (o *BasicAuthIntegrationConfigs) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *BasicAuthIntegrationConfigs) GetPassword() string { + if o == nil { + return "" + } + return o.Password +} diff --git a/pkg/models/shared/batchoperation.go b/pkg/models/shared/batchoperation.go index eeff669..b3e9b9b 100755 --- a/pkg/models/shared/batchoperation.go +++ b/pkg/models/shared/batchoperation.go @@ -109,3 +109,108 @@ type BatchOperation struct { // Last time the bulk retry was updated UpdatedAt time.Time `json:"updated_at"` } + +func (o *BatchOperation) GetCancelledAt() *time.Time { + if o == nil { + return nil + } + return o.CancelledAt +} + +func (o *BatchOperation) GetCompletedAt() *time.Time { + if o == nil { + return nil + } + return o.CompletedAt +} + +func (o *BatchOperation) GetCompletedCount() *int64 { + if o == nil { + return nil + } + return o.CompletedCount +} + +func (o *BatchOperation) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *BatchOperation) GetEstimatedBatch() *int64 { + if o == nil { + return nil + } + return o.EstimatedBatch +} + +func (o *BatchOperation) GetEstimatedCount() *int64 { + if o == nil { + return nil + } + return o.EstimatedCount +} + +func (o *BatchOperation) GetFailedCount() *int64 { + if o == nil { + return nil + } + return o.FailedCount +} + +func (o *BatchOperation) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *BatchOperation) GetInProgress() bool { + if o == nil { + return false + } + return o.InProgress +} + +func (o *BatchOperation) GetNumber() *float32 { + if o == nil { + return nil + } + return o.Number +} + +func (o *BatchOperation) GetProcessedBatch() *int64 { + if o == nil { + return nil + } + return o.ProcessedBatch +} + +func (o *BatchOperation) GetProgress() *float32 { + if o == nil { + return nil + } + return o.Progress +} + +func (o *BatchOperation) GetQuery() *BatchOperationQuery { + if o == nil { + return nil + } + return o.Query +} + +func (o *BatchOperation) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *BatchOperation) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/batchoperationpaginatedresult.go b/pkg/models/shared/batchoperationpaginatedresult.go index 0a45002..cb7c3a8 100755 --- a/pkg/models/shared/batchoperationpaginatedresult.go +++ b/pkg/models/shared/batchoperationpaginatedresult.go @@ -8,3 +8,24 @@ type BatchOperationPaginatedResult struct { Models []BatchOperation `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *BatchOperationPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *BatchOperationPaginatedResult) GetModels() []BatchOperation { + if o == nil { + return nil + } + return o.Models +} + +func (o *BatchOperationPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/batchoperationplan.go b/pkg/models/shared/batchoperationplan.go index 8bbc0eb..5961dbd 100755 --- a/pkg/models/shared/batchoperationplan.go +++ b/pkg/models/shared/batchoperationplan.go @@ -11,3 +11,24 @@ type BatchOperationPlan struct { // Progression of the batch operations, values 0 - 1 Progress *float32 `json:"progress,omitempty"` } + +func (o *BatchOperationPlan) GetEstimatedBatch() *int64 { + if o == nil { + return nil + } + return o.EstimatedBatch +} + +func (o *BatchOperationPlan) GetEstimatedCount() *int64 { + if o == nil { + return nil + } + return o.EstimatedCount +} + +func (o *BatchOperationPlan) GetProgress() *float32 { + if o == nil { + return nil + } + return o.Progress +} diff --git a/pkg/models/shared/bearertoken.go b/pkg/models/shared/bearertoken.go index e33eed9..10f4d5a 100755 --- a/pkg/models/shared/bearertoken.go +++ b/pkg/models/shared/bearertoken.go @@ -39,3 +39,17 @@ type BearerToken struct { // Type of auth method Type BearerTokenType `json:"type"` } + +func (o *BearerToken) GetConfig() *DestinationAuthMethodBearerTokenConfig { + if o == nil { + return nil + } + return o.Config +} + +func (o *BearerToken) GetType() BearerTokenType { + if o == nil { + return BearerTokenType("") + } + return o.Type +} diff --git a/pkg/models/shared/bookmark.go b/pkg/models/shared/bookmark.go index 89acfda..20d72f9 100755 --- a/pkg/models/shared/bookmark.go +++ b/pkg/models/shared/bookmark.go @@ -28,3 +28,73 @@ type Bookmark struct { // ID of the associated connection WebhookID string `json:"webhook_id"` } + +func (o *Bookmark) GetAlias() *string { + if o == nil { + return nil + } + return o.Alias +} + +func (o *Bookmark) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Bookmark) GetData() *ShortEventData { + if o == nil { + return nil + } + return o.Data +} + +func (o *Bookmark) GetEventDataID() string { + if o == nil { + return "" + } + return o.EventDataID +} + +func (o *Bookmark) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Bookmark) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *Bookmark) GetLastUsedAt() *time.Time { + if o == nil { + return nil + } + return o.LastUsedAt +} + +func (o *Bookmark) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Bookmark) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} + +func (o *Bookmark) GetWebhookID() string { + if o == nil { + return "" + } + return o.WebhookID +} diff --git a/pkg/models/shared/bookmarkpaginatedresult.go b/pkg/models/shared/bookmarkpaginatedresult.go index 84c8690..039532d 100755 --- a/pkg/models/shared/bookmarkpaginatedresult.go +++ b/pkg/models/shared/bookmarkpaginatedresult.go @@ -8,3 +8,24 @@ type BookmarkPaginatedResult struct { Models []Bookmark `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *BookmarkPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *BookmarkPaginatedResult) GetModels() []Bookmark { + if o == nil { + return nil + } + return o.Models +} + +func (o *BookmarkPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/connection.go b/pkg/models/shared/connection.go index c7397f4..d2839e0 100755 --- a/pkg/models/shared/connection.go +++ b/pkg/models/shared/connection.go @@ -33,3 +33,87 @@ type Connection struct { // Date the connection was last updated UpdatedAt time.Time `json:"updated_at"` } + +func (o *Connection) GetArchivedAt() *time.Time { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *Connection) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Connection) GetDestination() Destination { + if o == nil { + return Destination{} + } + return o.Destination +} + +func (o *Connection) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Connection) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *Connection) GetPausedAt() *time.Time { + if o == nil { + return nil + } + return o.PausedAt +} + +func (o *Connection) GetResolvedRules() []interface{} { + if o == nil { + return nil + } + return o.ResolvedRules +} + +func (o *Connection) GetRules() []interface{} { + if o == nil { + return nil + } + return o.Rules +} + +func (o *Connection) GetRuleset() *Ruleset { + if o == nil { + return nil + } + return o.Ruleset +} + +func (o *Connection) GetSource() Source { + if o == nil { + return Source{} + } + return o.Source +} + +func (o *Connection) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Connection) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/connectionpaginatedresult.go b/pkg/models/shared/connectionpaginatedresult.go index f496c0c..cae113e 100755 --- a/pkg/models/shared/connectionpaginatedresult.go +++ b/pkg/models/shared/connectionpaginatedresult.go @@ -8,3 +8,24 @@ type ConnectionPaginatedResult struct { Models []Connection `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *ConnectionPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *ConnectionPaginatedResult) GetModels() []Connection { + if o == nil { + return nil + } + return o.Models +} + +func (o *ConnectionPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/consoleline.go b/pkg/models/shared/consoleline.go index 61a6661..5fbee03 100755 --- a/pkg/models/shared/consoleline.go +++ b/pkg/models/shared/consoleline.go @@ -47,3 +47,17 @@ type ConsoleLine struct { Message string `json:"message"` Type ConsoleLineType `json:"type"` } + +func (o *ConsoleLine) GetMessage() string { + if o == nil { + return "" + } + return o.Message +} + +func (o *ConsoleLine) GetType() ConsoleLineType { + if o == nil { + return ConsoleLineType("") + } + return o.Type +} diff --git a/pkg/models/shared/customsignature.go b/pkg/models/shared/customsignature.go index 34f4204..69a564b 100755 --- a/pkg/models/shared/customsignature.go +++ b/pkg/models/shared/customsignature.go @@ -39,3 +39,17 @@ type CustomSignature struct { // Type of auth method Type CustomSignatureType `json:"type"` } + +func (o *CustomSignature) GetConfig() DestinationAuthMethodCustomSignatureConfig { + if o == nil { + return DestinationAuthMethodCustomSignatureConfig{} + } + return o.Config +} + +func (o *CustomSignature) GetType() CustomSignatureType { + if o == nil { + return CustomSignatureType("") + } + return o.Type +} diff --git a/pkg/models/shared/delayrule.go b/pkg/models/shared/delayrule.go index 816ad91..66799c7 100755 --- a/pkg/models/shared/delayrule.go +++ b/pkg/models/shared/delayrule.go @@ -38,3 +38,17 @@ type DelayRule struct { // A delay rule must be of type `delay` Type DelayRuleType `json:"type"` } + +func (o *DelayRule) GetDelay() int64 { + if o == nil { + return 0 + } + return o.Delay +} + +func (o *DelayRule) GetType() DelayRuleType { + if o == nil { + return DelayRuleType("") + } + return o.Type +} diff --git a/pkg/models/shared/deletecustomdomainschema.go b/pkg/models/shared/deletecustomdomainschema.go index 0818e57..403a7be 100755 --- a/pkg/models/shared/deletecustomdomainschema.go +++ b/pkg/models/shared/deletecustomdomainschema.go @@ -7,3 +7,10 @@ type DeleteCustomDomainSchema struct { // The custom hostname ID ID string `json:"id"` } + +func (o *DeleteCustomDomainSchema) GetID() string { + if o == nil { + return "" + } + return o.ID +} diff --git a/pkg/models/shared/deletedbookmarkresponse.go b/pkg/models/shared/deletedbookmarkresponse.go index c33be0f..e1ecbec 100755 --- a/pkg/models/shared/deletedbookmarkresponse.go +++ b/pkg/models/shared/deletedbookmarkresponse.go @@ -7,3 +7,10 @@ type DeletedBookmarkResponse struct { // Bookmark ID ID string `json:"id"` } + +func (o *DeletedBookmarkResponse) GetID() string { + if o == nil { + return "" + } + return o.ID +} diff --git a/pkg/models/shared/deletedintegration.go b/pkg/models/shared/deletedintegration.go index 7726832..ee7e3e6 100755 --- a/pkg/models/shared/deletedintegration.go +++ b/pkg/models/shared/deletedintegration.go @@ -6,3 +6,10 @@ package shared type DeletedIntegration struct { ID string `json:"id"` } + +func (o *DeletedIntegration) GetID() string { + if o == nil { + return "" + } + return o.ID +} diff --git a/pkg/models/shared/deletedissuetriggerresponse.go b/pkg/models/shared/deletedissuetriggerresponse.go index 23821e0..cc7c880 100755 --- a/pkg/models/shared/deletedissuetriggerresponse.go +++ b/pkg/models/shared/deletedissuetriggerresponse.go @@ -6,3 +6,10 @@ package shared type DeletedIssueTriggerResponse struct { ID string `json:"id"` } + +func (o *DeletedIssueTriggerResponse) GetID() string { + if o == nil { + return "" + } + return o.ID +} diff --git a/pkg/models/shared/deliveryissue.go b/pkg/models/shared/deliveryissue.go index 94e0c68..a5351df 100755 --- a/pkg/models/shared/deliveryissue.go +++ b/pkg/models/shared/deliveryissue.go @@ -62,3 +62,108 @@ type DeliveryIssue struct { // ISO timestamp for when the issue was last updated UpdatedAt string `json:"updated_at"` } + +func (o *DeliveryIssue) GetAggregationKeys() DeliveryIssueAggregationKeys { + if o == nil { + return DeliveryIssueAggregationKeys{} + } + return o.AggregationKeys +} + +func (o *DeliveryIssue) GetAutoResolvedAt() *time.Time { + if o == nil { + return nil + } + return o.AutoResolvedAt +} + +func (o *DeliveryIssue) GetCreatedAt() string { + if o == nil { + return "" + } + return o.CreatedAt +} + +func (o *DeliveryIssue) GetDismissedAt() *time.Time { + if o == nil { + return nil + } + return o.DismissedAt +} + +func (o *DeliveryIssue) GetFirstSeenAt() time.Time { + if o == nil { + return time.Time{} + } + return o.FirstSeenAt +} + +func (o *DeliveryIssue) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *DeliveryIssue) GetLastSeenAt() time.Time { + if o == nil { + return time.Time{} + } + return o.LastSeenAt +} + +func (o *DeliveryIssue) GetLastUpdatedBy() *string { + if o == nil { + return nil + } + return o.LastUpdatedBy +} + +func (o *DeliveryIssue) GetMergedWith() *string { + if o == nil { + return nil + } + return o.MergedWith +} + +func (o *DeliveryIssue) GetOpenedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.OpenedAt +} + +func (o *DeliveryIssue) GetReference() DeliveryIssueReference { + if o == nil { + return DeliveryIssueReference{} + } + return o.Reference +} + +func (o *DeliveryIssue) GetStatus() IssueStatus { + if o == nil { + return IssueStatus("") + } + return o.Status +} + +func (o *DeliveryIssue) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *DeliveryIssue) GetType() DeliveryIssueType { + if o == nil { + return DeliveryIssueType("") + } + return o.Type +} + +func (o *DeliveryIssue) GetUpdatedAt() string { + if o == nil { + return "" + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/deliveryissueaggregationkeys.go b/pkg/models/shared/deliveryissueaggregationkeys.go index dc4dc4a..ddedd9a 100755 --- a/pkg/models/shared/deliveryissueaggregationkeys.go +++ b/pkg/models/shared/deliveryissueaggregationkeys.go @@ -8,3 +8,24 @@ type DeliveryIssueAggregationKeys struct { ResponseStatus []float32 `json:"response_status"` WebhookID []string `json:"webhook_id"` } + +func (o *DeliveryIssueAggregationKeys) GetErrorCode() []AttemptErrorCode { + if o == nil { + return []AttemptErrorCode{} + } + return o.ErrorCode +} + +func (o *DeliveryIssueAggregationKeys) GetResponseStatus() []float32 { + if o == nil { + return []float32{} + } + return o.ResponseStatus +} + +func (o *DeliveryIssueAggregationKeys) GetWebhookID() []string { + if o == nil { + return []string{} + } + return o.WebhookID +} diff --git a/pkg/models/shared/deliveryissuedata.go b/pkg/models/shared/deliveryissuedata.go index 9ca1c06..8b8af3e 100755 --- a/pkg/models/shared/deliveryissuedata.go +++ b/pkg/models/shared/deliveryissuedata.go @@ -7,3 +7,17 @@ type DeliveryIssueData struct { TriggerAttempt *EventAttempt `json:"trigger_attempt,omitempty"` TriggerEvent *Event `json:"trigger_event,omitempty"` } + +func (o *DeliveryIssueData) GetTriggerAttempt() *EventAttempt { + if o == nil { + return nil + } + return o.TriggerAttempt +} + +func (o *DeliveryIssueData) GetTriggerEvent() *Event { + if o == nil { + return nil + } + return o.TriggerEvent +} diff --git a/pkg/models/shared/deliveryissuereference.go b/pkg/models/shared/deliveryissuereference.go index 75ab772..85f9c14 100755 --- a/pkg/models/shared/deliveryissuereference.go +++ b/pkg/models/shared/deliveryissuereference.go @@ -7,3 +7,17 @@ type DeliveryIssueReference struct { AttemptID string `json:"attempt_id"` EventID string `json:"event_id"` } + +func (o *DeliveryIssueReference) GetAttemptID() string { + if o == nil { + return "" + } + return o.AttemptID +} + +func (o *DeliveryIssueReference) GetEventID() string { + if o == nil { + return "" + } + return o.EventID +} diff --git a/pkg/models/shared/deliveryissuewithdata.go b/pkg/models/shared/deliveryissuewithdata.go index c859aca..b9a4a24 100755 --- a/pkg/models/shared/deliveryissuewithdata.go +++ b/pkg/models/shared/deliveryissuewithdata.go @@ -64,3 +64,115 @@ type DeliveryIssueWithData struct { // ISO timestamp for when the issue was last updated UpdatedAt string `json:"updated_at"` } + +func (o *DeliveryIssueWithData) GetAggregationKeys() DeliveryIssueAggregationKeys { + if o == nil { + return DeliveryIssueAggregationKeys{} + } + return o.AggregationKeys +} + +func (o *DeliveryIssueWithData) GetAutoResolvedAt() *time.Time { + if o == nil { + return nil + } + return o.AutoResolvedAt +} + +func (o *DeliveryIssueWithData) GetCreatedAt() string { + if o == nil { + return "" + } + return o.CreatedAt +} + +func (o *DeliveryIssueWithData) GetData() *DeliveryIssueData { + if o == nil { + return nil + } + return o.Data +} + +func (o *DeliveryIssueWithData) GetDismissedAt() *time.Time { + if o == nil { + return nil + } + return o.DismissedAt +} + +func (o *DeliveryIssueWithData) GetFirstSeenAt() time.Time { + if o == nil { + return time.Time{} + } + return o.FirstSeenAt +} + +func (o *DeliveryIssueWithData) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *DeliveryIssueWithData) GetLastSeenAt() time.Time { + if o == nil { + return time.Time{} + } + return o.LastSeenAt +} + +func (o *DeliveryIssueWithData) GetLastUpdatedBy() *string { + if o == nil { + return nil + } + return o.LastUpdatedBy +} + +func (o *DeliveryIssueWithData) GetMergedWith() *string { + if o == nil { + return nil + } + return o.MergedWith +} + +func (o *DeliveryIssueWithData) GetOpenedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.OpenedAt +} + +func (o *DeliveryIssueWithData) GetReference() DeliveryIssueReference { + if o == nil { + return DeliveryIssueReference{} + } + return o.Reference +} + +func (o *DeliveryIssueWithData) GetStatus() IssueStatus { + if o == nil { + return IssueStatus("") + } + return o.Status +} + +func (o *DeliveryIssueWithData) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *DeliveryIssueWithData) GetType() DeliveryIssueWithDataType { + if o == nil { + return DeliveryIssueWithDataType("") + } + return o.Type +} + +func (o *DeliveryIssueWithData) GetUpdatedAt() string { + if o == nil { + return "" + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/destination.go b/pkg/models/shared/destination.go index 16892f0..a8e9ddb 100755 --- a/pkg/models/shared/destination.go +++ b/pkg/models/shared/destination.go @@ -34,3 +34,94 @@ type Destination struct { // HTTP endpoint of the destination URL *string `json:"url,omitempty"` } + +func (o *Destination) GetArchivedAt() *time.Time { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *Destination) GetAuthMethod() interface{} { + if o == nil { + return nil + } + return o.AuthMethod +} + +func (o *Destination) GetCliPath() *string { + if o == nil { + return nil + } + return o.CliPath +} + +func (o *Destination) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Destination) GetHTTPMethod() *DestinationHTTPMethod { + if o == nil { + return nil + } + return o.HTTPMethod +} + +func (o *Destination) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Destination) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *Destination) GetPathForwardingDisabled() *bool { + if o == nil { + return nil + } + return o.PathForwardingDisabled +} + +func (o *Destination) GetRateLimit() *int64 { + if o == nil { + return nil + } + return o.RateLimit +} + +func (o *Destination) GetRateLimitPeriod() *DestinationRateLimitPeriod { + if o == nil { + return nil + } + return o.RateLimitPeriod +} + +func (o *Destination) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Destination) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} + +func (o *Destination) GetURL() *string { + if o == nil { + return nil + } + return o.URL +} diff --git a/pkg/models/shared/destinationauthmethodapikeyconfig.go b/pkg/models/shared/destinationauthmethodapikeyconfig.go index 3ef988c..21b02a4 100755 --- a/pkg/models/shared/destinationauthmethodapikeyconfig.go +++ b/pkg/models/shared/destinationauthmethodapikeyconfig.go @@ -44,3 +44,24 @@ type DestinationAuthMethodAPIKeyConfig struct { // Whether the API key should be sent as a header or a query parameter To *DestinationAuthMethodAPIKeyConfigTo `json:"to,omitempty"` } + +func (o *DestinationAuthMethodAPIKeyConfig) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *DestinationAuthMethodAPIKeyConfig) GetKey() string { + if o == nil { + return "" + } + return o.Key +} + +func (o *DestinationAuthMethodAPIKeyConfig) GetTo() *DestinationAuthMethodAPIKeyConfigTo { + if o == nil { + return nil + } + return o.To +} diff --git a/pkg/models/shared/destinationauthmethodbasicauthconfig.go b/pkg/models/shared/destinationauthmethodbasicauthconfig.go index 53722d0..b4906a5 100755 --- a/pkg/models/shared/destinationauthmethodbasicauthconfig.go +++ b/pkg/models/shared/destinationauthmethodbasicauthconfig.go @@ -9,3 +9,17 @@ type DestinationAuthMethodBasicAuthConfig struct { // Username for basic auth Username string `json:"username"` } + +func (o *DestinationAuthMethodBasicAuthConfig) GetPassword() string { + if o == nil { + return "" + } + return o.Password +} + +func (o *DestinationAuthMethodBasicAuthConfig) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/pkg/models/shared/destinationauthmethodbearertokenconfig.go b/pkg/models/shared/destinationauthmethodbearertokenconfig.go index 0689375..2f1c1f2 100755 --- a/pkg/models/shared/destinationauthmethodbearertokenconfig.go +++ b/pkg/models/shared/destinationauthmethodbearertokenconfig.go @@ -7,3 +7,10 @@ type DestinationAuthMethodBearerTokenConfig struct { // Token for the bearer token auth Token string `json:"token"` } + +func (o *DestinationAuthMethodBearerTokenConfig) GetToken() string { + if o == nil { + return "" + } + return o.Token +} diff --git a/pkg/models/shared/destinationauthmethodcustomsignatureconfig.go b/pkg/models/shared/destinationauthmethodcustomsignatureconfig.go index 3a24c64..911510d 100755 --- a/pkg/models/shared/destinationauthmethodcustomsignatureconfig.go +++ b/pkg/models/shared/destinationauthmethodcustomsignatureconfig.go @@ -9,3 +9,17 @@ type DestinationAuthMethodCustomSignatureConfig struct { // Signing secret for the custom signature auth. If left empty a secret will be generated for you. SigningSecret *string `json:"signing_secret,omitempty"` } + +func (o *DestinationAuthMethodCustomSignatureConfig) GetKey() string { + if o == nil { + return "" + } + return o.Key +} + +func (o *DestinationAuthMethodCustomSignatureConfig) GetSigningSecret() *string { + if o == nil { + return nil + } + return o.SigningSecret +} diff --git a/pkg/models/shared/destinationpaginatedresult.go b/pkg/models/shared/destinationpaginatedresult.go index d4d2f8e..7dffc26 100755 --- a/pkg/models/shared/destinationpaginatedresult.go +++ b/pkg/models/shared/destinationpaginatedresult.go @@ -8,3 +8,24 @@ type DestinationPaginatedResult struct { Models []Destination `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *DestinationPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *DestinationPaginatedResult) GetModels() []Destination { + if o == nil { + return nil + } + return o.Models +} + +func (o *DestinationPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/event.go b/pkg/models/shared/event.go index 36d699c..e4a671a 100755 --- a/pkg/models/shared/event.go +++ b/pkg/models/shared/event.go @@ -252,6 +252,48 @@ type EventData struct { Query *string `json:"query,omitempty"` } +func (o *EventData) GetBody() *EventDataBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *EventData) GetHeaders() *EventDataHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *EventData) GetIsLargePayload() *bool { + if o == nil { + return nil + } + return o.IsLargePayload +} + +func (o *EventData) GetParsedQuery() *EventDataParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *EventData) GetPath() string { + if o == nil { + return "" + } + return o.Path +} + +func (o *EventData) GetQuery() *string { + if o == nil { + return nil + } + return o.Query +} + // Event - A single event type Event struct { // Number of delivery attempts made @@ -289,3 +331,136 @@ type Event struct { // ID of the associated connection WebhookID string `json:"webhook_id"` } + +func (o *Event) GetAttempts() int64 { + if o == nil { + return 0 + } + return o.Attempts +} + +func (o *Event) GetCliID() *string { + if o == nil { + return nil + } + return o.CliID +} + +func (o *Event) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Event) GetCreatedAtID() *string { + if o == nil { + return nil + } + return o.CreatedAtID +} + +func (o *Event) GetData() *EventData { + if o == nil { + return nil + } + return o.Data +} + +func (o *Event) GetDestinationID() string { + if o == nil { + return "" + } + return o.DestinationID +} + +func (o *Event) GetEventDataID() string { + if o == nil { + return "" + } + return o.EventDataID +} + +func (o *Event) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Event) GetLastAttemptAt() *time.Time { + if o == nil { + return nil + } + return o.LastAttemptAt +} + +func (o *Event) GetLastAttemptAtID() *string { + if o == nil { + return nil + } + return o.LastAttemptAtID +} + +func (o *Event) GetNextAttemptAt() *time.Time { + if o == nil { + return nil + } + return o.NextAttemptAt +} + +func (o *Event) GetRequestID() string { + if o == nil { + return "" + } + return o.RequestID +} + +func (o *Event) GetResponseStatus() *int64 { + if o == nil { + return nil + } + return o.ResponseStatus +} + +func (o *Event) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +func (o *Event) GetStatus() EventStatus { + if o == nil { + return EventStatus("") + } + return o.Status +} + +func (o *Event) GetSuccessfulAt() *time.Time { + if o == nil { + return nil + } + return o.SuccessfulAt +} + +func (o *Event) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Event) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} + +func (o *Event) GetWebhookID() string { + if o == nil { + return "" + } + return o.WebhookID +} diff --git a/pkg/models/shared/eventattempt.go b/pkg/models/shared/eventattempt.go index d2e75d2..3513f5f 100755 --- a/pkg/models/shared/eventattempt.go +++ b/pkg/models/shared/eventattempt.go @@ -166,3 +166,157 @@ type EventAttempt struct { // Date the attempt was last updated UpdatedAt time.Time `json:"updated_at"` } + +func (o *EventAttempt) GetArchivedAt() *string { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *EventAttempt) GetAttemptNumber() *int64 { + if o == nil { + return nil + } + return o.AttemptNumber +} + +func (o *EventAttempt) GetBody() *EventAttemptBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *EventAttempt) GetBulkRetryID() *string { + if o == nil { + return nil + } + return o.BulkRetryID +} + +func (o *EventAttempt) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *EventAttempt) GetDeliveredAt() *time.Time { + if o == nil { + return nil + } + return o.DeliveredAt +} + +func (o *EventAttempt) GetDeliveryLatency() *int64 { + if o == nil { + return nil + } + return o.DeliveryLatency +} + +func (o *EventAttempt) GetDestinationID() *string { + if o == nil { + return nil + } + return o.DestinationID +} + +func (o *EventAttempt) GetErrorCode() *AttemptErrorCode { + if o == nil { + return nil + } + return o.ErrorCode +} + +func (o *EventAttempt) GetEventID() string { + if o == nil { + return "" + } + return o.EventID +} + +func (o *EventAttempt) GetHTTPMethod() *EventAttemptHTTPMethod { + if o == nil { + return nil + } + return o.HTTPMethod +} + +func (o *EventAttempt) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *EventAttempt) GetRequestedURL() *string { + if o == nil { + return nil + } + return o.RequestedURL +} + +func (o *EventAttempt) GetRespondedAt() *time.Time { + if o == nil { + return nil + } + return o.RespondedAt +} + +func (o *EventAttempt) GetResponseLatency() *int64 { + if o == nil { + return nil + } + return o.ResponseLatency +} + +func (o *EventAttempt) GetResponseStatus() *int64 { + if o == nil { + return nil + } + return o.ResponseStatus +} + +func (o *EventAttempt) GetState() *AttemptState { + if o == nil { + return nil + } + return o.State +} + +func (o *EventAttempt) GetStatus() AttemptStatus { + if o == nil { + return AttemptStatus("") + } + return o.Status +} + +func (o *EventAttempt) GetSuccessfulAt() *time.Time { + if o == nil { + return nil + } + return o.SuccessfulAt +} + +func (o *EventAttempt) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *EventAttempt) GetTrigger() *AttemptTrigger { + if o == nil { + return nil + } + return o.Trigger +} + +func (o *EventAttempt) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/eventattemptpaginatedresult.go b/pkg/models/shared/eventattemptpaginatedresult.go index 51097c7..33ab949 100755 --- a/pkg/models/shared/eventattemptpaginatedresult.go +++ b/pkg/models/shared/eventattemptpaginatedresult.go @@ -8,3 +8,24 @@ type EventAttemptPaginatedResult struct { Models []EventAttempt `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *EventAttemptPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *EventAttemptPaginatedResult) GetModels() []EventAttempt { + if o == nil { + return nil + } + return o.Models +} + +func (o *EventAttemptPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/eventpaginatedresult.go b/pkg/models/shared/eventpaginatedresult.go index fecd084..5382727 100755 --- a/pkg/models/shared/eventpaginatedresult.go +++ b/pkg/models/shared/eventpaginatedresult.go @@ -8,3 +8,24 @@ type EventPaginatedResult struct { Models []Event `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *EventPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *EventPaginatedResult) GetModels() []Event { + if o == nil { + return nil + } + return o.Models +} + +func (o *EventPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/filterrule.go b/pkg/models/shared/filterrule.go index 85c1e2d..ef07951 100755 --- a/pkg/models/shared/filterrule.go +++ b/pkg/models/shared/filterrule.go @@ -44,3 +44,38 @@ type FilterRule struct { // A filter rule must be of type `filter` Type FilterRuleType `json:"type"` } + +func (o *FilterRule) GetBody() *ConnectionFilterProperty { + if o == nil { + return nil + } + return o.Body +} + +func (o *FilterRule) GetHeaders() *ConnectionFilterProperty { + if o == nil { + return nil + } + return o.Headers +} + +func (o *FilterRule) GetPath() *ConnectionFilterProperty { + if o == nil { + return nil + } + return o.Path +} + +func (o *FilterRule) GetQuery() *ConnectionFilterProperty { + if o == nil { + return nil + } + return o.Query +} + +func (o *FilterRule) GetType() FilterRuleType { + if o == nil { + return FilterRuleType("") + } + return o.Type +} diff --git a/pkg/models/shared/handledhmacconfigs.go b/pkg/models/shared/handledhmacconfigs.go index b49a2ba..c74eec7 100755 --- a/pkg/models/shared/handledhmacconfigs.go +++ b/pkg/models/shared/handledhmacconfigs.go @@ -6,3 +6,10 @@ package shared type HandledHMACConfigs struct { WebhookSecretKey string `json:"webhook_secret_key"` } + +func (o *HandledHMACConfigs) GetWebhookSecretKey() string { + if o == nil { + return "" + } + return o.WebhookSecretKey +} diff --git a/pkg/models/shared/hmacintegrationconfigs.go b/pkg/models/shared/hmacintegrationconfigs.go index a2f6e51..71a0553 100755 --- a/pkg/models/shared/hmacintegrationconfigs.go +++ b/pkg/models/shared/hmacintegrationconfigs.go @@ -41,3 +41,31 @@ type HMACIntegrationConfigs struct { HeaderKey string `json:"header_key"` WebhookSecretKey string `json:"webhook_secret_key"` } + +func (o *HMACIntegrationConfigs) GetAlgorithm() HMACAlgorithms { + if o == nil { + return HMACAlgorithms("") + } + return o.Algorithm +} + +func (o *HMACIntegrationConfigs) GetEncoding() HMACIntegrationConfigsEncoding { + if o == nil { + return HMACIntegrationConfigsEncoding("") + } + return o.Encoding +} + +func (o *HMACIntegrationConfigs) GetHeaderKey() string { + if o == nil { + return "" + } + return o.HeaderKey +} + +func (o *HMACIntegrationConfigs) GetWebhookSecretKey() string { + if o == nil { + return "" + } + return o.WebhookSecretKey +} diff --git a/pkg/models/shared/hookdecksignature.go b/pkg/models/shared/hookdecksignature.go index a723a01..0b09cf0 100755 --- a/pkg/models/shared/hookdecksignature.go +++ b/pkg/models/shared/hookdecksignature.go @@ -39,3 +39,17 @@ type HookdeckSignature struct { // Type of auth method Type HookdeckSignatureType `json:"type"` } + +func (o *HookdeckSignature) GetConfig() *DestinationAuthMethodSignatureConfig { + if o == nil { + return nil + } + return o.Config +} + +func (o *HookdeckSignature) GetType() HookdeckSignatureType { + if o == nil { + return HookdeckSignatureType("") + } + return o.Type +} diff --git a/pkg/models/shared/ignoredevent.go b/pkg/models/shared/ignoredevent.go index b5b9dde..f143fab 100755 --- a/pkg/models/shared/ignoredevent.go +++ b/pkg/models/shared/ignoredevent.go @@ -16,3 +16,59 @@ type IgnoredEvent struct { UpdatedAt time.Time `json:"updated_at"` WebhookID string `json:"webhook_id"` } + +func (o *IgnoredEvent) GetCause() IgnoredEventCause { + if o == nil { + return IgnoredEventCause("") + } + return o.Cause +} + +func (o *IgnoredEvent) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *IgnoredEvent) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *IgnoredEvent) GetMeta() interface{} { + if o == nil { + return nil + } + return o.Meta +} + +func (o *IgnoredEvent) GetRequestID() string { + if o == nil { + return "" + } + return o.RequestID +} + +func (o *IgnoredEvent) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *IgnoredEvent) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} + +func (o *IgnoredEvent) GetWebhookID() string { + if o == nil { + return "" + } + return o.WebhookID +} diff --git a/pkg/models/shared/ignoredeventpaginatedresult.go b/pkg/models/shared/ignoredeventpaginatedresult.go index cc26547..dfee311 100755 --- a/pkg/models/shared/ignoredeventpaginatedresult.go +++ b/pkg/models/shared/ignoredeventpaginatedresult.go @@ -8,3 +8,24 @@ type IgnoredEventPaginatedResult struct { Models []IgnoredEvent `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *IgnoredEventPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *IgnoredEventPaginatedResult) GetModels() []IgnoredEvent { + if o == nil { + return nil + } + return o.Models +} + +func (o *IgnoredEventPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/integration.go b/pkg/models/shared/integration.go index 4e14ab3..77dd521 100755 --- a/pkg/models/shared/integration.go +++ b/pkg/models/shared/integration.go @@ -31,3 +31,66 @@ type Integration struct { // Date the integration was last updated UpdatedAt time.Time `json:"updated_at"` } + +func (o *Integration) GetConfigs() interface{} { + if o == nil { + return nil + } + return o.Configs +} + +func (o *Integration) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Integration) GetFeatures() []IntegrationFeature { + if o == nil { + return []IntegrationFeature{} + } + return o.Features +} + +func (o *Integration) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Integration) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *Integration) GetProvider() IntegrationProvider { + if o == nil { + return IntegrationProvider("") + } + return o.Provider +} + +func (o *Integration) GetSources() []string { + if o == nil { + return []string{} + } + return o.Sources +} + +func (o *Integration) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Integration) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/integrationpaginatedresult.go b/pkg/models/shared/integrationpaginatedresult.go index 161bf05..3557344 100755 --- a/pkg/models/shared/integrationpaginatedresult.go +++ b/pkg/models/shared/integrationpaginatedresult.go @@ -8,3 +8,24 @@ type IntegrationPaginatedResult struct { Models []Integration `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *IntegrationPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *IntegrationPaginatedResult) GetModels() []Integration { + if o == nil { + return nil + } + return o.Models +} + +func (o *IntegrationPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/issuecount.go b/pkg/models/shared/issuecount.go index 5f32d4e..f4c7952 100755 --- a/pkg/models/shared/issuecount.go +++ b/pkg/models/shared/issuecount.go @@ -7,3 +7,10 @@ type IssueCount struct { // Number of issues Count int64 `json:"count"` } + +func (o *IssueCount) GetCount() int64 { + if o == nil { + return 0 + } + return o.Count +} diff --git a/pkg/models/shared/issuetrigger.go b/pkg/models/shared/issuetrigger.go index 5f92017..c0d24af 100755 --- a/pkg/models/shared/issuetrigger.go +++ b/pkg/models/shared/issuetrigger.go @@ -29,3 +29,73 @@ type IssueTrigger struct { // ISO timestamp for when the issue trigger was last updated UpdatedAt time.Time `json:"updated_at"` } + +func (o *IssueTrigger) GetChannels() *IssueTriggerChannels { + if o == nil { + return nil + } + return o.Channels +} + +func (o *IssueTrigger) GetConfigs() interface{} { + if o == nil { + return nil + } + return o.Configs +} + +func (o *IssueTrigger) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *IssueTrigger) GetDeletedAt() *time.Time { + if o == nil { + return nil + } + return o.DeletedAt +} + +func (o *IssueTrigger) GetDisabledAt() *time.Time { + if o == nil { + return nil + } + return o.DisabledAt +} + +func (o *IssueTrigger) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *IssueTrigger) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *IssueTrigger) GetTeamID() *string { + if o == nil { + return nil + } + return o.TeamID +} + +func (o *IssueTrigger) GetType() IssueType { + if o == nil { + return IssueType("") + } + return o.Type +} + +func (o *IssueTrigger) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/issuetriggerbackpressureconfigs.go b/pkg/models/shared/issuetriggerbackpressureconfigs.go index 0fb41b3..557d188 100755 --- a/pkg/models/shared/issuetriggerbackpressureconfigs.go +++ b/pkg/models/shared/issuetriggerbackpressureconfigs.go @@ -83,3 +83,17 @@ type IssueTriggerBackpressureConfigs struct { // A pattern to match on the destination name or array of destination IDs. Use `*` as wildcard. Destinations IssueTriggerBackpressureConfigsDestinations `json:"destinations"` } + +func (o *IssueTriggerBackpressureConfigs) GetDelay() int64 { + if o == nil { + return 0 + } + return o.Delay +} + +func (o *IssueTriggerBackpressureConfigs) GetDestinations() IssueTriggerBackpressureConfigsDestinations { + if o == nil { + return IssueTriggerBackpressureConfigsDestinations{} + } + return o.Destinations +} diff --git a/pkg/models/shared/issuetriggerchannels.go b/pkg/models/shared/issuetriggerchannels.go index 84dabbf..9c75b73 100755 --- a/pkg/models/shared/issuetriggerchannels.go +++ b/pkg/models/shared/issuetriggerchannels.go @@ -11,3 +11,24 @@ type IssueTriggerChannels struct { // Slack channel for an issue trigger Slack *IssueTriggerSlackChannel `json:"slack,omitempty"` } + +func (o *IssueTriggerChannels) GetEmail() *IssueTriggerEmailChannel { + if o == nil { + return nil + } + return o.Email +} + +func (o *IssueTriggerChannels) GetOpsgenie() *IssueTriggerIntegrationChannel { + if o == nil { + return nil + } + return o.Opsgenie +} + +func (o *IssueTriggerChannels) GetSlack() *IssueTriggerSlackChannel { + if o == nil { + return nil + } + return o.Slack +} diff --git a/pkg/models/shared/issuetriggerdeliveryconfigs.go b/pkg/models/shared/issuetriggerdeliveryconfigs.go index a438919..698ffff 100755 --- a/pkg/models/shared/issuetriggerdeliveryconfigs.go +++ b/pkg/models/shared/issuetriggerdeliveryconfigs.go @@ -83,3 +83,17 @@ type IssueTriggerDeliveryConfigs struct { // The strategy uses to open the issue Strategy IssueTriggerStrategy `json:"strategy"` } + +func (o *IssueTriggerDeliveryConfigs) GetConnections() IssueTriggerDeliveryConfigsConnections { + if o == nil { + return IssueTriggerDeliveryConfigsConnections{} + } + return o.Connections +} + +func (o *IssueTriggerDeliveryConfigs) GetStrategy() IssueTriggerStrategy { + if o == nil { + return IssueTriggerStrategy("") + } + return o.Strategy +} diff --git a/pkg/models/shared/issuetriggerpaginatedresult.go b/pkg/models/shared/issuetriggerpaginatedresult.go index 9b78275..c45c419 100755 --- a/pkg/models/shared/issuetriggerpaginatedresult.go +++ b/pkg/models/shared/issuetriggerpaginatedresult.go @@ -8,3 +8,24 @@ type IssueTriggerPaginatedResult struct { Models []IssueTrigger `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *IssueTriggerPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *IssueTriggerPaginatedResult) GetModels() []IssueTrigger { + if o == nil { + return nil + } + return o.Models +} + +func (o *IssueTriggerPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/issuetriggerslackchannel.go b/pkg/models/shared/issuetriggerslackchannel.go index 8729f79..1d0b0a1 100755 --- a/pkg/models/shared/issuetriggerslackchannel.go +++ b/pkg/models/shared/issuetriggerslackchannel.go @@ -7,3 +7,10 @@ type IssueTriggerSlackChannel struct { // Channel name ChannelName string `json:"channel_name"` } + +func (o *IssueTriggerSlackChannel) GetChannelName() string { + if o == nil { + return "" + } + return o.ChannelName +} diff --git a/pkg/models/shared/issuetriggertransformationconfigs.go b/pkg/models/shared/issuetriggertransformationconfigs.go index 6c8e4b6..b953bb8 100755 --- a/pkg/models/shared/issuetriggertransformationconfigs.go +++ b/pkg/models/shared/issuetriggertransformationconfigs.go @@ -83,3 +83,17 @@ type IssueTriggerTransformationConfigs struct { // A pattern to match on the transformation name or array of transformation IDs. Use `*` as wildcard. Transformations IssueTriggerTransformationConfigsTransformations `json:"transformations"` } + +func (o *IssueTriggerTransformationConfigs) GetLogLevel() TransformationExecutionLogLevel { + if o == nil { + return TransformationExecutionLogLevel("") + } + return o.LogLevel +} + +func (o *IssueTriggerTransformationConfigs) GetTransformations() IssueTriggerTransformationConfigsTransformations { + if o == nil { + return IssueTriggerTransformationConfigsTransformations{} + } + return o.Transformations +} diff --git a/pkg/models/shared/issuewithdatapaginatedresult.go b/pkg/models/shared/issuewithdatapaginatedresult.go index 952ac6e..24d44bb 100755 --- a/pkg/models/shared/issuewithdatapaginatedresult.go +++ b/pkg/models/shared/issuewithdatapaginatedresult.go @@ -8,3 +8,24 @@ type IssueWithDataPaginatedResult struct { Models []interface{} `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *IssueWithDataPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *IssueWithDataPaginatedResult) GetModels() []interface{} { + if o == nil { + return nil + } + return o.Models +} + +func (o *IssueWithDataPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/listcustomdomainschema.go b/pkg/models/shared/listcustomdomainschema.go index 98ff2cf..52c597f 100755 --- a/pkg/models/shared/listcustomdomainschema.go +++ b/pkg/models/shared/listcustomdomainschema.go @@ -8,21 +8,84 @@ type ListCustomDomainSchemaOwnershipVerification struct { Value *string `json:"value,omitempty"` } +func (o *ListCustomDomainSchemaOwnershipVerification) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *ListCustomDomainSchemaOwnershipVerification) GetType() *string { + if o == nil { + return nil + } + return o.Type +} + +func (o *ListCustomDomainSchemaOwnershipVerification) GetValue() *string { + if o == nil { + return nil + } + return o.Value +} + type ListCustomDomainSchemaSslDcvDelegationRecords struct { Cname *string `json:"cname,omitempty"` CnameTarget *string `json:"cname_target,omitempty"` } +func (o *ListCustomDomainSchemaSslDcvDelegationRecords) GetCname() *string { + if o == nil { + return nil + } + return o.Cname +} + +func (o *ListCustomDomainSchemaSslDcvDelegationRecords) GetCnameTarget() *string { + if o == nil { + return nil + } + return o.CnameTarget +} + type ListCustomDomainSchemaSslSettings struct { MinTLSVersion *string `json:"min_tls_version,omitempty"` } +func (o *ListCustomDomainSchemaSslSettings) GetMinTLSVersion() *string { + if o == nil { + return nil + } + return o.MinTLSVersion +} + type ListCustomDomainSchemaSslValidationRecords struct { Status *string `json:"status,omitempty"` TxtName *string `json:"txt_name,omitempty"` TxtValue *string `json:"txt_value,omitempty"` } +func (o *ListCustomDomainSchemaSslValidationRecords) GetStatus() *string { + if o == nil { + return nil + } + return o.Status +} + +func (o *ListCustomDomainSchemaSslValidationRecords) GetTxtName() *string { + if o == nil { + return nil + } + return o.TxtName +} + +func (o *ListCustomDomainSchemaSslValidationRecords) GetTxtValue() *string { + if o == nil { + return nil + } + return o.TxtValue +} + type ListCustomDomainSchemaSsl struct { BundleMethod *string `json:"bundle_method,omitempty"` CertificateAuthority *string `json:"certificate_authority,omitempty"` @@ -38,6 +101,90 @@ type ListCustomDomainSchemaSsl struct { Wildcard *bool `json:"wildcard,omitempty"` } +func (o *ListCustomDomainSchemaSsl) GetBundleMethod() *string { + if o == nil { + return nil + } + return o.BundleMethod +} + +func (o *ListCustomDomainSchemaSsl) GetCertificateAuthority() *string { + if o == nil { + return nil + } + return o.CertificateAuthority +} + +func (o *ListCustomDomainSchemaSsl) GetDcvDelegationRecords() []ListCustomDomainSchemaSslDcvDelegationRecords { + if o == nil { + return nil + } + return o.DcvDelegationRecords +} + +func (o *ListCustomDomainSchemaSsl) GetID() *string { + if o == nil { + return nil + } + return o.ID +} + +func (o *ListCustomDomainSchemaSsl) GetMethod() *string { + if o == nil { + return nil + } + return o.Method +} + +func (o *ListCustomDomainSchemaSsl) GetSettings() *ListCustomDomainSchemaSslSettings { + if o == nil { + return nil + } + return o.Settings +} + +func (o *ListCustomDomainSchemaSsl) GetStatus() *string { + if o == nil { + return nil + } + return o.Status +} + +func (o *ListCustomDomainSchemaSsl) GetTxtName() *string { + if o == nil { + return nil + } + return o.TxtName +} + +func (o *ListCustomDomainSchemaSsl) GetTxtValue() *string { + if o == nil { + return nil + } + return o.TxtValue +} + +func (o *ListCustomDomainSchemaSsl) GetType() *string { + if o == nil { + return nil + } + return o.Type +} + +func (o *ListCustomDomainSchemaSsl) GetValidationRecords() []ListCustomDomainSchemaSslValidationRecords { + if o == nil { + return nil + } + return o.ValidationRecords +} + +func (o *ListCustomDomainSchemaSsl) GetWildcard() *bool { + if o == nil { + return nil + } + return o.Wildcard +} + type ListCustomDomainSchema struct { CreatedAt *string `json:"created_at,omitempty"` Hostname *string `json:"hostname,omitempty"` @@ -47,3 +194,52 @@ type ListCustomDomainSchema struct { Status *string `json:"status,omitempty"` VerificationErrors []string `json:"verification_errors,omitempty"` } + +func (o *ListCustomDomainSchema) GetCreatedAt() *string { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *ListCustomDomainSchema) GetHostname() *string { + if o == nil { + return nil + } + return o.Hostname +} + +func (o *ListCustomDomainSchema) GetID() *string { + if o == nil { + return nil + } + return o.ID +} + +func (o *ListCustomDomainSchema) GetOwnershipVerification() *ListCustomDomainSchemaOwnershipVerification { + if o == nil { + return nil + } + return o.OwnershipVerification +} + +func (o *ListCustomDomainSchema) GetSsl() *ListCustomDomainSchemaSsl { + if o == nil { + return nil + } + return o.Ssl +} + +func (o *ListCustomDomainSchema) GetStatus() *string { + if o == nil { + return nil + } + return o.Status +} + +func (o *ListCustomDomainSchema) GetVerificationErrors() []string { + if o == nil { + return nil + } + return o.VerificationErrors +} diff --git a/pkg/models/shared/rawbody.go b/pkg/models/shared/rawbody.go index 0ad378a..29c9293 100755 --- a/pkg/models/shared/rawbody.go +++ b/pkg/models/shared/rawbody.go @@ -6,3 +6,10 @@ package shared type RawBody struct { Body string `json:"body"` } + +func (o *RawBody) GetBody() string { + if o == nil { + return "" + } + return o.Body +} diff --git a/pkg/models/shared/request.go b/pkg/models/shared/request.go index 1afad56..b9aeacc 100755 --- a/pkg/models/shared/request.go +++ b/pkg/models/shared/request.go @@ -253,6 +253,48 @@ type RequestData struct { Query *string `json:"query,omitempty"` } +func (o *RequestData) GetBody() *RequestDataBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *RequestData) GetHeaders() *RequestDataHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *RequestData) GetIsLargePayload() *bool { + if o == nil { + return nil + } + return o.IsLargePayload +} + +func (o *RequestData) GetParsedQuery() *RequestDataParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *RequestData) GetPath() string { + if o == nil { + return "" + } + return o.Path +} + +func (o *RequestData) GetQuery() *string { + if o == nil { + return nil + } + return o.Query +} + // RequestIngestPriority - The priority attributed to the request when received type RequestIngestPriority string @@ -317,3 +359,122 @@ type Request struct { // Whether or not the request was verified when received Verified *bool `json:"verified,omitempty"` } + +func (o *Request) GetCliEventsCount() *int64 { + if o == nil { + return nil + } + return o.CliEventsCount +} + +func (o *Request) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Request) GetData() *RequestData { + if o == nil { + return nil + } + return o.Data +} + +func (o *Request) GetDuplicateHash() *string { + if o == nil { + return nil + } + return o.DuplicateHash +} + +func (o *Request) GetDuplicateHits() *int64 { + if o == nil { + return nil + } + return o.DuplicateHits +} + +func (o *Request) GetEventsCount() *int64 { + if o == nil { + return nil + } + return o.EventsCount +} + +func (o *Request) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Request) GetIgnoredCount() *int64 { + if o == nil { + return nil + } + return o.IgnoredCount +} + +func (o *Request) GetIngestPriority() *RequestIngestPriority { + if o == nil { + return nil + } + return o.IngestPriority +} + +func (o *Request) GetIngestedAt() *time.Time { + if o == nil { + return nil + } + return o.IngestedAt +} + +func (o *Request) GetIngestedAtID() *string { + if o == nil { + return nil + } + return o.IngestedAtID +} + +func (o *Request) GetOriginalEventDataID() *string { + if o == nil { + return nil + } + return o.OriginalEventDataID +} + +func (o *Request) GetRejectionCause() *RequestRejectionCause { + if o == nil { + return nil + } + return o.RejectionCause +} + +func (o *Request) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +func (o *Request) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Request) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} + +func (o *Request) GetVerified() *bool { + if o == nil { + return nil + } + return o.Verified +} diff --git a/pkg/models/shared/requestpaginatedresult.go b/pkg/models/shared/requestpaginatedresult.go index 00c3ced..838ba27 100755 --- a/pkg/models/shared/requestpaginatedresult.go +++ b/pkg/models/shared/requestpaginatedresult.go @@ -8,3 +8,24 @@ type RequestPaginatedResult struct { Models []Request `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *RequestPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *RequestPaginatedResult) GetModels() []Request { + if o == nil { + return nil + } + return o.Models +} + +func (o *RequestPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/retriedevent.go b/pkg/models/shared/retriedevent.go index 56d74ad..eb2a55e 100755 --- a/pkg/models/shared/retriedevent.go +++ b/pkg/models/shared/retriedevent.go @@ -7,3 +7,17 @@ type RetriedEvent struct { Attempt EventAttempt `json:"attempt"` Event Event `json:"event"` } + +func (o *RetriedEvent) GetAttempt() EventAttempt { + if o == nil { + return EventAttempt{} + } + return o.Attempt +} + +func (o *RetriedEvent) GetEvent() Event { + if o == nil { + return Event{} + } + return o.Event +} diff --git a/pkg/models/shared/retryrequest.go b/pkg/models/shared/retryrequest.go index 9ca7875..20b9a85 100755 --- a/pkg/models/shared/retryrequest.go +++ b/pkg/models/shared/retryrequest.go @@ -7,3 +7,17 @@ type RetryRequest struct { Events []Event `json:"events,omitempty"` Request Request `json:"request"` } + +func (o *RetryRequest) GetEvents() []Event { + if o == nil { + return nil + } + return o.Events +} + +func (o *RetryRequest) GetRequest() Request { + if o == nil { + return Request{} + } + return o.Request +} diff --git a/pkg/models/shared/retryrule.go b/pkg/models/shared/retryrule.go index 6f516cd..3881af4 100755 --- a/pkg/models/shared/retryrule.go +++ b/pkg/models/shared/retryrule.go @@ -42,3 +42,31 @@ type RetryRule struct { // A retry rule must be of type `retry` Type RetryRuleType `json:"type"` } + +func (o *RetryRule) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *RetryRule) GetInterval() *int64 { + if o == nil { + return nil + } + return o.Interval +} + +func (o *RetryRule) GetStrategy() RetryStrategy { + if o == nil { + return RetryStrategy("") + } + return o.Strategy +} + +func (o *RetryRule) GetType() RetryRuleType { + if o == nil { + return RetryRuleType("") + } + return o.Type +} diff --git a/pkg/models/shared/ruleset.go b/pkg/models/shared/ruleset.go index 7137299..d66eb85 100755 --- a/pkg/models/shared/ruleset.go +++ b/pkg/models/shared/ruleset.go @@ -25,3 +25,59 @@ type Ruleset struct { // Date the ruleset was last updated UpdatedAt time.Time `json:"updated_at"` } + +func (o *Ruleset) GetArchivedAt() *time.Time { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *Ruleset) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Ruleset) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Ruleset) GetIsTeamDefault() bool { + if o == nil { + return false + } + return o.IsTeamDefault +} + +func (o *Ruleset) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *Ruleset) GetRules() []interface{} { + if o == nil { + return []interface{}{} + } + return o.Rules +} + +func (o *Ruleset) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Ruleset) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/rulesetpaginatedresult.go b/pkg/models/shared/rulesetpaginatedresult.go index 463337f..7db576f 100755 --- a/pkg/models/shared/rulesetpaginatedresult.go +++ b/pkg/models/shared/rulesetpaginatedresult.go @@ -8,3 +8,24 @@ type RulesetPaginatedResult struct { Models []Ruleset `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *RulesetPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *RulesetPaginatedResult) GetModels() []Ruleset { + if o == nil { + return nil + } + return o.Models +} + +func (o *RulesetPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/security.go b/pkg/models/shared/security.go index cc19e48..9954cc2 100755 --- a/pkg/models/shared/security.go +++ b/pkg/models/shared/security.go @@ -7,7 +7,35 @@ type SchemeBasicAuth struct { Username string `security:"name=username"` } +func (o *SchemeBasicAuth) GetPassword() string { + if o == nil { + return "" + } + return o.Password +} + +func (o *SchemeBasicAuth) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} + type Security struct { BasicAuth *SchemeBasicAuth `security:"scheme,type=http,subtype=basic"` BearerAuth *string `security:"scheme,type=http,subtype=bearer,name=Authorization"` } + +func (o *Security) GetBasicAuth() *SchemeBasicAuth { + if o == nil { + return nil + } + return o.BasicAuth +} + +func (o *Security) GetBearerAuth() *string { + if o == nil { + return nil + } + return o.BearerAuth +} diff --git a/pkg/models/shared/seekpagination.go b/pkg/models/shared/seekpagination.go index e327393..977d2c0 100755 --- a/pkg/models/shared/seekpagination.go +++ b/pkg/models/shared/seekpagination.go @@ -12,6 +12,13 @@ type SeekPaginationDir struct { Schema *OrderByDirection `json:"schema,omitempty"` } +func (o *SeekPaginationDir) GetSchema() *OrderByDirection { + if o == nil { + return nil + } + return o.Schema +} + type SeekPaginationOrderByType string const ( @@ -87,3 +94,38 @@ type SeekPagination struct { OrderBy *SeekPaginationOrderBy `json:"order_by,omitempty"` Prev *string `json:"prev,omitempty"` } + +func (o *SeekPagination) GetDir() *SeekPaginationDir { + if o == nil { + return nil + } + return o.Dir +} + +func (o *SeekPagination) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *SeekPagination) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + +func (o *SeekPagination) GetOrderBy() *SeekPaginationOrderBy { + if o == nil { + return nil + } + return o.OrderBy +} + +func (o *SeekPagination) GetPrev() *string { + if o == nil { + return nil + } + return o.Prev +} diff --git a/pkg/models/shared/shopifyintegrationconfigs.go b/pkg/models/shared/shopifyintegrationconfigs.go index 8cd8fc0..49ff1cb 100755 --- a/pkg/models/shared/shopifyintegrationconfigs.go +++ b/pkg/models/shared/shopifyintegrationconfigs.go @@ -46,3 +46,45 @@ type ShopifyIntegrationConfigs struct { Shop *string `json:"shop,omitempty"` WebhookSecretKey string `json:"webhook_secret_key"` } + +func (o *ShopifyIntegrationConfigs) GetAPIKey() *string { + if o == nil { + return nil + } + return o.APIKey +} + +func (o *ShopifyIntegrationConfigs) GetAPISecret() *string { + if o == nil { + return nil + } + return o.APISecret +} + +func (o *ShopifyIntegrationConfigs) GetRateLimit() *float32 { + if o == nil { + return nil + } + return o.RateLimit +} + +func (o *ShopifyIntegrationConfigs) GetRateLimitPeriod() *ShopifyIntegrationConfigsRateLimitPeriod { + if o == nil { + return nil + } + return o.RateLimitPeriod +} + +func (o *ShopifyIntegrationConfigs) GetShop() *string { + if o == nil { + return nil + } + return o.Shop +} + +func (o *ShopifyIntegrationConfigs) GetWebhookSecretKey() string { + if o == nil { + return "" + } + return o.WebhookSecretKey +} diff --git a/pkg/models/shared/shorteventdata.go b/pkg/models/shared/shorteventdata.go index 4e7e885..695bf93 100755 --- a/pkg/models/shared/shorteventdata.go +++ b/pkg/models/shared/shorteventdata.go @@ -250,3 +250,45 @@ type ShortEventData struct { Path string `json:"path"` Query *string `json:"query,omitempty"` } + +func (o *ShortEventData) GetBody() *ShortEventDataBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *ShortEventData) GetHeaders() *ShortEventDataHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *ShortEventData) GetIsLargePayload() *bool { + if o == nil { + return nil + } + return o.IsLargePayload +} + +func (o *ShortEventData) GetParsedQuery() *ShortEventDataParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *ShortEventData) GetPath() string { + if o == nil { + return "" + } + return o.Path +} + +func (o *ShortEventData) GetQuery() *string { + if o == nil { + return nil + } + return o.Query +} diff --git a/pkg/models/shared/source.go b/pkg/models/shared/source.go index da6b0da..91ecee7 100755 --- a/pkg/models/shared/source.go +++ b/pkg/models/shared/source.go @@ -18,6 +18,34 @@ type SourceIntegration struct { Provider IntegrationProvider `json:"provider"` } +func (o *SourceIntegration) GetFeatures() []IntegrationFeature { + if o == nil { + return []IntegrationFeature{} + } + return o.Features +} + +func (o *SourceIntegration) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *SourceIntegration) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *SourceIntegration) GetProvider() IntegrationProvider { + if o == nil { + return IntegrationProvider("") + } + return o.Provider +} + // Source - Associated [Source](#source-object) object type Source struct { // List of allowed HTTP methods. Defaults to PUT, POST, PATCH, DELETE. @@ -43,3 +71,80 @@ type Source struct { // A unique URL that must be supplied to your webhook's provider URL string `json:"url"` } + +func (o *Source) GetAllowedHTTPMethods() []SourceAllowedHTTPMethod { + if o == nil { + return nil + } + return o.AllowedHTTPMethods +} + +func (o *Source) GetArchivedAt() *time.Time { + if o == nil { + return nil + } + return o.ArchivedAt +} + +func (o *Source) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Source) GetCustomResponse() *SourceCustomResponse { + if o == nil { + return nil + } + return o.CustomResponse +} + +func (o *Source) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Source) GetIntegration() *SourceIntegration { + if o == nil { + return nil + } + return o.Integration +} + +func (o *Source) GetIntegrationID() *string { + if o == nil { + return nil + } + return o.IntegrationID +} + +func (o *Source) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *Source) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Source) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} + +func (o *Source) GetURL() string { + if o == nil { + return "" + } + return o.URL +} diff --git a/pkg/models/shared/sourcecustomresponse.go b/pkg/models/shared/sourcecustomresponse.go index 22554b8..fe2a845 100755 --- a/pkg/models/shared/sourcecustomresponse.go +++ b/pkg/models/shared/sourcecustomresponse.go @@ -9,3 +9,17 @@ type SourceCustomResponse struct { // Content type of the custom response ContentType SourceCustomResponseContentType `json:"content_type"` } + +func (o *SourceCustomResponse) GetBody() string { + if o == nil { + return "" + } + return o.Body +} + +func (o *SourceCustomResponse) GetContentType() SourceCustomResponseContentType { + if o == nil { + return SourceCustomResponseContentType("") + } + return o.ContentType +} diff --git a/pkg/models/shared/sourcepaginatedresult.go b/pkg/models/shared/sourcepaginatedresult.go index a336b6b..915f312 100755 --- a/pkg/models/shared/sourcepaginatedresult.go +++ b/pkg/models/shared/sourcepaginatedresult.go @@ -8,3 +8,24 @@ type SourcePaginatedResult struct { Models []Source `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *SourcePaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *SourcePaginatedResult) GetModels() []Source { + if o == nil { + return nil + } + return o.Models +} + +func (o *SourcePaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/togglewebhooknotifications.go b/pkg/models/shared/togglewebhooknotifications.go index 99e156d..f6431e3 100755 --- a/pkg/models/shared/togglewebhooknotifications.go +++ b/pkg/models/shared/togglewebhooknotifications.go @@ -8,3 +8,24 @@ type ToggleWebhookNotifications struct { SourceID string `json:"source_id"` Topics []TopicsValue `json:"topics,omitempty"` } + +func (o *ToggleWebhookNotifications) GetEnabled() bool { + if o == nil { + return false + } + return o.Enabled +} + +func (o *ToggleWebhookNotifications) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +func (o *ToggleWebhookNotifications) GetTopics() []TopicsValue { + if o == nil { + return nil + } + return o.Topics +} diff --git a/pkg/models/shared/transformation.go b/pkg/models/shared/transformation.go index ac05f16..98b9f50 100755 --- a/pkg/models/shared/transformation.go +++ b/pkg/models/shared/transformation.go @@ -25,3 +25,66 @@ type Transformation struct { // Date the transformation was last updated UpdatedAt time.Time `json:"updated_at"` } + +func (o *Transformation) GetCode() string { + if o == nil { + return "" + } + return o.Code +} + +func (o *Transformation) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *Transformation) GetEncryptedEnv() *string { + if o == nil { + return nil + } + return o.EncryptedEnv +} + +func (o *Transformation) GetEnv() map[string]string { + if o == nil { + return nil + } + return o.Env +} + +func (o *Transformation) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *Transformation) GetIv() *string { + if o == nil { + return nil + } + return o.Iv +} + +func (o *Transformation) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *Transformation) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *Transformation) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/transformationexecution.go b/pkg/models/shared/transformationexecution.go index fd24d73..a2c24e4 100755 --- a/pkg/models/shared/transformationexecution.go +++ b/pkg/models/shared/transformationexecution.go @@ -23,3 +23,94 @@ type TransformationExecution struct { UpdatedAt time.Time `json:"updated_at"` WebhookID string `json:"webhook_id"` } + +func (o *TransformationExecution) GetCreatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.CreatedAt +} + +func (o *TransformationExecution) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *TransformationExecution) GetIssueID() *string { + if o == nil { + return nil + } + return o.IssueID +} + +func (o *TransformationExecution) GetLogLevel() TransformationExecutionLogLevel { + if o == nil { + return TransformationExecutionLogLevel("") + } + return o.LogLevel +} + +func (o *TransformationExecution) GetLogs() []ConsoleLine { + if o == nil { + return []ConsoleLine{} + } + return o.Logs +} + +func (o *TransformationExecution) GetOriginalEventData() *ShortEventData { + if o == nil { + return nil + } + return o.OriginalEventData +} + +func (o *TransformationExecution) GetOriginalEventDataID() string { + if o == nil { + return "" + } + return o.OriginalEventDataID +} + +func (o *TransformationExecution) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *TransformationExecution) GetTransformationID() string { + if o == nil { + return "" + } + return o.TransformationID +} + +func (o *TransformationExecution) GetTransformedEventData() *ShortEventData { + if o == nil { + return nil + } + return o.TransformedEventData +} + +func (o *TransformationExecution) GetTransformedEventDataID() string { + if o == nil { + return "" + } + return o.TransformedEventDataID +} + +func (o *TransformationExecution) GetUpdatedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.UpdatedAt +} + +func (o *TransformationExecution) GetWebhookID() string { + if o == nil { + return "" + } + return o.WebhookID +} diff --git a/pkg/models/shared/transformationexecutionpaginatedresult.go b/pkg/models/shared/transformationexecutionpaginatedresult.go index 33a2a54..c389de5 100755 --- a/pkg/models/shared/transformationexecutionpaginatedresult.go +++ b/pkg/models/shared/transformationexecutionpaginatedresult.go @@ -8,3 +8,24 @@ type TransformationExecutionPaginatedResult struct { Models []TransformationExecution `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *TransformationExecutionPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *TransformationExecutionPaginatedResult) GetModels() []TransformationExecution { + if o == nil { + return nil + } + return o.Models +} + +func (o *TransformationExecutionPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/transformationexecutoroutput.go b/pkg/models/shared/transformationexecutoroutput.go index a4afb7f..20529a5 100755 --- a/pkg/models/shared/transformationexecutoroutput.go +++ b/pkg/models/shared/transformationexecutoroutput.go @@ -297,6 +297,41 @@ type TransformationExecutorOutputRequest struct { Query *TransformationExecutorOutputRequestQuery `json:"query,omitempty"` } +func (o *TransformationExecutorOutputRequest) GetBody() *TransformationExecutorOutputRequestBody { + if o == nil { + return nil + } + return o.Body +} + +func (o *TransformationExecutorOutputRequest) GetHeaders() *TransformationExecutorOutputRequestHeaders { + if o == nil { + return nil + } + return o.Headers +} + +func (o *TransformationExecutorOutputRequest) GetParsedQuery() *TransformationExecutorOutputRequestParsedQuery { + if o == nil { + return nil + } + return o.ParsedQuery +} + +func (o *TransformationExecutorOutputRequest) GetPath() string { + if o == nil { + return "" + } + return o.Path +} + +func (o *TransformationExecutorOutputRequest) GetQuery() *TransformationExecutorOutputRequestQuery { + if o == nil { + return nil + } + return o.Query +} + // TransformationExecutorOutput - Transformation run output type TransformationExecutorOutput struct { Console []ConsoleLine `json:"console,omitempty"` @@ -307,3 +342,45 @@ type TransformationExecutorOutput struct { RequestID *string `json:"request_id,omitempty"` TransformationID *string `json:"transformation_id,omitempty"` } + +func (o *TransformationExecutorOutput) GetConsole() []ConsoleLine { + if o == nil { + return nil + } + return o.Console +} + +func (o *TransformationExecutorOutput) GetExecutionID() *string { + if o == nil { + return nil + } + return o.ExecutionID +} + +func (o *TransformationExecutorOutput) GetLogLevel() TransformationExecutionLogLevel { + if o == nil { + return TransformationExecutionLogLevel("") + } + return o.LogLevel +} + +func (o *TransformationExecutorOutput) GetRequest() *TransformationExecutorOutputRequest { + if o == nil { + return nil + } + return o.Request +} + +func (o *TransformationExecutorOutput) GetRequestID() *string { + if o == nil { + return nil + } + return o.RequestID +} + +func (o *TransformationExecutorOutput) GetTransformationID() *string { + if o == nil { + return nil + } + return o.TransformationID +} diff --git a/pkg/models/shared/transformationfailedmeta.go b/pkg/models/shared/transformationfailedmeta.go index 95408bd..a777d0e 100755 --- a/pkg/models/shared/transformationfailedmeta.go +++ b/pkg/models/shared/transformationfailedmeta.go @@ -5,3 +5,10 @@ package shared type TransformationFailedMeta struct { TransformationID string `json:"transformation_id"` } + +func (o *TransformationFailedMeta) GetTransformationID() string { + if o == nil { + return "" + } + return o.TransformationID +} diff --git a/pkg/models/shared/transformationissue.go b/pkg/models/shared/transformationissue.go index efbc45d..ee9aa27 100755 --- a/pkg/models/shared/transformationissue.go +++ b/pkg/models/shared/transformationissue.go @@ -62,3 +62,108 @@ type TransformationIssue struct { // ISO timestamp for when the issue was last updated UpdatedAt string `json:"updated_at"` } + +func (o *TransformationIssue) GetAggregationKeys() TransformationIssueAggregationKeys { + if o == nil { + return TransformationIssueAggregationKeys{} + } + return o.AggregationKeys +} + +func (o *TransformationIssue) GetAutoResolvedAt() *time.Time { + if o == nil { + return nil + } + return o.AutoResolvedAt +} + +func (o *TransformationIssue) GetCreatedAt() string { + if o == nil { + return "" + } + return o.CreatedAt +} + +func (o *TransformationIssue) GetDismissedAt() *time.Time { + if o == nil { + return nil + } + return o.DismissedAt +} + +func (o *TransformationIssue) GetFirstSeenAt() time.Time { + if o == nil { + return time.Time{} + } + return o.FirstSeenAt +} + +func (o *TransformationIssue) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *TransformationIssue) GetLastSeenAt() time.Time { + if o == nil { + return time.Time{} + } + return o.LastSeenAt +} + +func (o *TransformationIssue) GetLastUpdatedBy() *string { + if o == nil { + return nil + } + return o.LastUpdatedBy +} + +func (o *TransformationIssue) GetMergedWith() *string { + if o == nil { + return nil + } + return o.MergedWith +} + +func (o *TransformationIssue) GetOpenedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.OpenedAt +} + +func (o *TransformationIssue) GetReference() TransformationIssueReference { + if o == nil { + return TransformationIssueReference{} + } + return o.Reference +} + +func (o *TransformationIssue) GetStatus() IssueStatus { + if o == nil { + return IssueStatus("") + } + return o.Status +} + +func (o *TransformationIssue) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *TransformationIssue) GetType() TransformationIssueType { + if o == nil { + return TransformationIssueType("") + } + return o.Type +} + +func (o *TransformationIssue) GetUpdatedAt() string { + if o == nil { + return "" + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/transformationissueaggregationkeys.go b/pkg/models/shared/transformationissueaggregationkeys.go index cc09fdf..5d2a072 100755 --- a/pkg/models/shared/transformationissueaggregationkeys.go +++ b/pkg/models/shared/transformationissueaggregationkeys.go @@ -8,3 +8,17 @@ type TransformationIssueAggregationKeys struct { LogLevel TransformationExecutionLogLevel `json:"log_level"` TransformationID []string `json:"transformation_id"` } + +func (o *TransformationIssueAggregationKeys) GetLogLevel() TransformationExecutionLogLevel { + if o == nil { + return TransformationExecutionLogLevel("") + } + return o.LogLevel +} + +func (o *TransformationIssueAggregationKeys) GetTransformationID() []string { + if o == nil { + return []string{} + } + return o.TransformationID +} diff --git a/pkg/models/shared/transformationissuedata.go b/pkg/models/shared/transformationissuedata.go index b516f25..711660a 100755 --- a/pkg/models/shared/transformationissuedata.go +++ b/pkg/models/shared/transformationissuedata.go @@ -7,3 +7,17 @@ type TransformationIssueData struct { TransformationExecution TransformationExecution `json:"transformation_execution"` TriggerAttempt *EventAttempt `json:"trigger_attempt,omitempty"` } + +func (o *TransformationIssueData) GetTransformationExecution() TransformationExecution { + if o == nil { + return TransformationExecution{} + } + return o.TransformationExecution +} + +func (o *TransformationIssueData) GetTriggerAttempt() *EventAttempt { + if o == nil { + return nil + } + return o.TriggerAttempt +} diff --git a/pkg/models/shared/transformationissuereference.go b/pkg/models/shared/transformationissuereference.go index 5fa2b23..aa86f4d 100755 --- a/pkg/models/shared/transformationissuereference.go +++ b/pkg/models/shared/transformationissuereference.go @@ -8,3 +8,17 @@ type TransformationIssueReference struct { // Deprecated but still found on historical issues TriggerEventRequestTransformationID *string `json:"trigger_event_request_transformation_id,omitempty"` } + +func (o *TransformationIssueReference) GetTransformationExecutionID() string { + if o == nil { + return "" + } + return o.TransformationExecutionID +} + +func (o *TransformationIssueReference) GetTriggerEventRequestTransformationID() *string { + if o == nil { + return nil + } + return o.TriggerEventRequestTransformationID +} diff --git a/pkg/models/shared/transformationissuewithdata.go b/pkg/models/shared/transformationissuewithdata.go index 9bf4c59..c3949d0 100755 --- a/pkg/models/shared/transformationissuewithdata.go +++ b/pkg/models/shared/transformationissuewithdata.go @@ -64,3 +64,115 @@ type TransformationIssueWithData struct { // ISO timestamp for when the issue was last updated UpdatedAt string `json:"updated_at"` } + +func (o *TransformationIssueWithData) GetAggregationKeys() TransformationIssueAggregationKeys { + if o == nil { + return TransformationIssueAggregationKeys{} + } + return o.AggregationKeys +} + +func (o *TransformationIssueWithData) GetAutoResolvedAt() *time.Time { + if o == nil { + return nil + } + return o.AutoResolvedAt +} + +func (o *TransformationIssueWithData) GetCreatedAt() string { + if o == nil { + return "" + } + return o.CreatedAt +} + +func (o *TransformationIssueWithData) GetData() *TransformationIssueData { + if o == nil { + return nil + } + return o.Data +} + +func (o *TransformationIssueWithData) GetDismissedAt() *time.Time { + if o == nil { + return nil + } + return o.DismissedAt +} + +func (o *TransformationIssueWithData) GetFirstSeenAt() time.Time { + if o == nil { + return time.Time{} + } + return o.FirstSeenAt +} + +func (o *TransformationIssueWithData) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *TransformationIssueWithData) GetLastSeenAt() time.Time { + if o == nil { + return time.Time{} + } + return o.LastSeenAt +} + +func (o *TransformationIssueWithData) GetLastUpdatedBy() *string { + if o == nil { + return nil + } + return o.LastUpdatedBy +} + +func (o *TransformationIssueWithData) GetMergedWith() *string { + if o == nil { + return nil + } + return o.MergedWith +} + +func (o *TransformationIssueWithData) GetOpenedAt() time.Time { + if o == nil { + return time.Time{} + } + return o.OpenedAt +} + +func (o *TransformationIssueWithData) GetReference() TransformationIssueReference { + if o == nil { + return TransformationIssueReference{} + } + return o.Reference +} + +func (o *TransformationIssueWithData) GetStatus() IssueStatus { + if o == nil { + return IssueStatus("") + } + return o.Status +} + +func (o *TransformationIssueWithData) GetTeamID() string { + if o == nil { + return "" + } + return o.TeamID +} + +func (o *TransformationIssueWithData) GetType() TransformationIssueWithDataType { + if o == nil { + return TransformationIssueWithDataType("") + } + return o.Type +} + +func (o *TransformationIssueWithData) GetUpdatedAt() string { + if o == nil { + return "" + } + return o.UpdatedAt +} diff --git a/pkg/models/shared/transformationpaginatedresult.go b/pkg/models/shared/transformationpaginatedresult.go index 2789550..2fb543b 100755 --- a/pkg/models/shared/transformationpaginatedresult.go +++ b/pkg/models/shared/transformationpaginatedresult.go @@ -8,3 +8,24 @@ type TransformationPaginatedResult struct { Models []Transformation `json:"models,omitempty"` Pagination *SeekPagination `json:"pagination,omitempty"` } + +func (o *TransformationPaginatedResult) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *TransformationPaginatedResult) GetModels() []Transformation { + if o == nil { + return nil + } + return o.Models +} + +func (o *TransformationPaginatedResult) GetPagination() *SeekPagination { + if o == nil { + return nil + } + return o.Pagination +} diff --git a/pkg/models/shared/transformfull.go b/pkg/models/shared/transformfull.go index 6df3a32..1b895f5 100755 --- a/pkg/models/shared/transformfull.go +++ b/pkg/models/shared/transformfull.go @@ -17,6 +17,27 @@ type TransformFullTransformation struct { Name string `json:"name"` } +func (o *TransformFullTransformation) GetCode() string { + if o == nil { + return "" + } + return o.Code +} + +func (o *TransformFullTransformation) GetEnv() map[string]string { + if o == nil { + return nil + } + return o.Env +} + +func (o *TransformFullTransformation) GetName() string { + if o == nil { + return "" + } + return o.Name +} + // TransformFullType - A transformation rule must be of type `transformation` type TransformFullType string @@ -50,3 +71,24 @@ type TransformFull struct { // A transformation rule must be of type `transformation` Type TransformFullType `json:"type"` } + +func (o *TransformFull) GetTransformation() *TransformFullTransformation { + if o == nil { + return nil + } + return o.Transformation +} + +func (o *TransformFull) GetTransformationID() *string { + if o == nil { + return nil + } + return o.TransformationID +} + +func (o *TransformFull) GetType() TransformFullType { + if o == nil { + return TransformFullType("") + } + return o.Type +} diff --git a/pkg/models/shared/transformreference.go b/pkg/models/shared/transformreference.go index b7145fa..85fd48c 100755 --- a/pkg/models/shared/transformreference.go +++ b/pkg/models/shared/transformreference.go @@ -38,3 +38,17 @@ type TransformReference struct { // A transformation rule must be of type `transformation` Type TransformReferenceType `json:"type"` } + +func (o *TransformReference) GetTransformationID() string { + if o == nil { + return "" + } + return o.TransformationID +} + +func (o *TransformReference) GetType() TransformReferenceType { + if o == nil { + return TransformReferenceType("") + } + return o.Type +} diff --git a/request.go b/request.go index 168346c..5e890d4 100755 --- a/request.go +++ b/request.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,17 +77,26 @@ func (s *request) Get(ctx context.Context, id string) (*operations.GetRequestRes } res.Request = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -156,6 +166,8 @@ func (s *request) Retry(ctx context.Context, requestBody operations.RetryRequest } res.RetryRequest = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -164,13 +176,20 @@ func (s *request) Retry(ctx context.Context, requestBody operations.RetryRequest case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/requestbulkretry.go b/requestbulkretry.go index 7f06b7d..f5510ea 100755 --- a/requestbulkretry.go +++ b/requestbulkretry.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,17 +77,26 @@ func (s *requestBulkRetry) Cancel(ctx context.Context, id string) (*operations.C } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -145,17 +155,26 @@ func (s *requestBulkRetry) Get(ctx context.Context, id string) (*operations.GetR } res.BatchOperation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/requestevents.go b/requestevents.go index 60cb886..4f48821 100755 --- a/requestevents.go +++ b/requestevents.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,6 +77,8 @@ func (s *requestEvents) Get(ctx context.Context, request operations.GetRequestEv } res.EventPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -84,13 +87,20 @@ func (s *requestEvents) Get(ctx context.Context, request operations.GetRequestEv case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/requestignoredevents.go b/requestignoredevents.go index d371c4e..4eb7243 100755 --- a/requestignoredevents.go +++ b/requestignoredevents.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,6 +77,8 @@ func (s *requestIgnoredEvents) Get(ctx context.Context, request operations.GetRe } res.IgnoredEventPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -84,13 +87,20 @@ func (s *requestIgnoredEvents) Get(ctx context.Context, request operations.GetRe case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/requestrawbody.go b/requestrawbody.go index 09f25e6..0b80a53 100755 --- a/requestrawbody.go +++ b/requestrawbody.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,17 +77,26 @@ func (s *requestRawBody) Get(ctx context.Context, id string) (*operations.GetReq } res.RawBody = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/requests.go b/requests.go index 8b67ae3..d684806 100755 --- a/requests.go +++ b/requests.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -75,19 +76,28 @@ func (s *requests) Get(ctx context.Context, request operations.GetRequestsReques } res.RequestPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/ruleset.go b/ruleset.go index a05ff6c..1bc8ac7 100755 --- a/ruleset.go +++ b/ruleset.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *ruleset) Archive(ctx context.Context, id string) (*operations.ArchiveRu } res.Ruleset = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -149,19 +159,28 @@ func (s *ruleset) Create(ctx context.Context, request operations.CreateRulesetRe } res.Ruleset = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -220,17 +239,26 @@ func (s *ruleset) Get(ctx context.Context, id string) (*operations.GetRulesetRes } res.Ruleset = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -289,17 +317,26 @@ func (s *ruleset) Unarchive(ctx context.Context, id string) (*operations.Unarchi } res.Ruleset = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -369,6 +406,8 @@ func (s *ruleset) Update(ctx context.Context, requestBody operations.UpdateRules } res.Ruleset = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -377,13 +416,20 @@ func (s *ruleset) Update(ctx context.Context, requestBody operations.UpdateRules case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -445,19 +491,28 @@ func (s *ruleset) Upsert(ctx context.Context, request operations.UpsertRulesetRe } res.Ruleset = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/rulesets.go b/rulesets.go index 511c113..cc2a47c 100755 --- a/rulesets.go +++ b/rulesets.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -75,19 +76,28 @@ func (s *rulesets) Get(ctx context.Context, request operations.GetRulesetsReques } res.RulesetPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/source.go b/source.go index 331d7d6..ff40e31 100755 --- a/source.go +++ b/source.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *source) Archive(ctx context.Context, id string) (*operations.ArchiveSou } res.Source = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -149,19 +159,28 @@ func (s *source) Create(ctx context.Context, request operations.CreateSourceRequ } res.Source = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -220,17 +239,26 @@ func (s *source) Delete(ctx context.Context, id string) (*operations.DeleteSourc } res.DeleteSource200ApplicationJSONObject = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -289,17 +317,26 @@ func (s *source) Get(ctx context.Context, id string) (*operations.GetSourceRespo } res.Source = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -358,17 +395,26 @@ func (s *source) Unarchive(ctx context.Context, id string) (*operations.Unarchiv } res.Source = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -438,6 +484,8 @@ func (s *source) Update(ctx context.Context, requestBody operations.UpdateSource } res.Source = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -446,13 +494,20 @@ func (s *source) Update(ctx context.Context, requestBody operations.UpdateSource case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -514,19 +569,28 @@ func (s *source) Upsert(ctx context.Context, request operations.UpsertSourceRequ } res.Source = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sources.go b/sources.go index 7fecc27..41c9263 100755 --- a/sources.go +++ b/sources.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -75,19 +76,28 @@ func (s *sources) Get(ctx context.Context, request operations.GetSourcesRequest) } res.SourcePaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/transformation.go b/transformation.go index 7a71edd..7410b31 100755 --- a/transformation.go +++ b/transformation.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -80,19 +81,28 @@ func (s *transformation) Create(ctx context.Context, request operations.CreateTr } res.Transformation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -151,17 +161,26 @@ func (s *transformation) Get(ctx context.Context, id string) (*operations.GetTra } res.Transformation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -223,19 +242,28 @@ func (s *transformation) Test(ctx context.Context, request operations.TestTransf } res.TransformationExecutorOutput = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -305,6 +333,8 @@ func (s *transformation) Update(ctx context.Context, requestBody operations.Upda } res.Transformation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough @@ -313,13 +343,20 @@ func (s *transformation) Update(ctx context.Context, requestBody operations.Upda case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -381,19 +418,28 @@ func (s *transformation) Upsert(ctx context.Context, request operations.UpsertTr } res.Transformation = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/transformationexecution.go b/transformationexecution.go index a55f093..45e0296 100755 --- a/transformationexecution.go +++ b/transformationexecution.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -77,17 +78,26 @@ func (s *transformationExecution) Get(ctx context.Context, executionID string, i } res.TransformationExecution = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 404: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/transformationexecutions.go b/transformationexecutions.go index 5fd8c1f..8991823 100755 --- a/transformationexecutions.go +++ b/transformationexecutions.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -76,19 +77,28 @@ func (s *transformationExecutions) Get(ctx context.Context, request operations.G } res.TransformationExecutionPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/transformations.go b/transformations.go index 28bb758..d241de2 100755 --- a/transformations.go +++ b/transformations.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -75,19 +76,28 @@ func (s *transformations) Get(ctx context.Context, request operations.GetTransfo } res.TransformationPaginatedResult = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 400: fallthrough case httpRes.StatusCode == 422: switch { case utils.MatchContentType(contentType, `application/json`): - var out *shared.APIErrorResponse + var out *sdkerrors.APIErrorResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { return nil, err } + out.RawResponse = httpRes - res.APIErrorResponse = out + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/webhooknotifications.go b/webhooknotifications.go index 11d593e..fa33d12 100755 --- a/webhooknotifications.go +++ b/webhooknotifications.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" "io" @@ -80,7 +81,13 @@ func (s *webhookNotifications) Toggle(ctx context.Context, request operations.To } res.ToggleWebhookNotifications = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil