From 2529ae228b86f98a147cae383ffdbe74188d8b2c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jul 2024 02:51:17 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#23) --- committestresult.go | 8 ++++---- inferencepipelinetestresult.go | 8 ++++---- project.go | 8 ++++---- projectcommit.go | 8 ++++---- projectinferencepipeline.go | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/committestresult.go b/committestresult.go index b5e099f..d941549 100644 --- a/committestresult.go +++ b/committestresult.go @@ -52,7 +52,7 @@ func (r *CommitTestResultService) List(ctx context.Context, projectVersionID str } type CommitTestResultListResponse struct { - Meta CommitTestResultListResponseMeta `json:"_meta,required"` + Meta CommitTestResultListResponse_Meta `json:"_meta,required"` Items []CommitTestResultListResponseItem `json:"items,required"` JSON commitTestResultListResponseJSON `json:"-"` } @@ -74,7 +74,7 @@ func (r commitTestResultListResponseJSON) RawJSON() string { return r.raw } -type CommitTestResultListResponseMeta struct { +type CommitTestResultListResponse_Meta struct { // The current page. Page int64 `json:"page,required"` // The number of items per page. @@ -87,7 +87,7 @@ type CommitTestResultListResponseMeta struct { } // commitTestResultListResponseMetaJSON contains the JSON metadata for the struct -// [CommitTestResultListResponseMeta] +// [CommitTestResultListResponse_Meta] type commitTestResultListResponseMetaJSON struct { Page apijson.Field PerPage apijson.Field @@ -97,7 +97,7 @@ type commitTestResultListResponseMetaJSON struct { ExtraFields map[string]apijson.Field } -func (r *CommitTestResultListResponseMeta) UnmarshalJSON(data []byte) (err error) { +func (r *CommitTestResultListResponse_Meta) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } diff --git a/inferencepipelinetestresult.go b/inferencepipelinetestresult.go index 31be5ad..8e710ea 100644 --- a/inferencepipelinetestresult.go +++ b/inferencepipelinetestresult.go @@ -52,7 +52,7 @@ func (r *InferencePipelineTestResultService) List(ctx context.Context, inference } type InferencePipelineTestResultListResponse struct { - Meta InferencePipelineTestResultListResponseMeta `json:"_meta,required"` + Meta InferencePipelineTestResultListResponse_Meta `json:"_meta,required"` Items []InferencePipelineTestResultListResponseItem `json:"items,required"` JSON inferencePipelineTestResultListResponseJSON `json:"-"` } @@ -74,7 +74,7 @@ func (r inferencePipelineTestResultListResponseJSON) RawJSON() string { return r.raw } -type InferencePipelineTestResultListResponseMeta struct { +type InferencePipelineTestResultListResponse_Meta struct { // The current page. Page int64 `json:"page,required"` // The number of items per page. @@ -87,7 +87,7 @@ type InferencePipelineTestResultListResponseMeta struct { } // inferencePipelineTestResultListResponseMetaJSON contains the JSON metadata for -// the struct [InferencePipelineTestResultListResponseMeta] +// the struct [InferencePipelineTestResultListResponse_Meta] type inferencePipelineTestResultListResponseMetaJSON struct { Page apijson.Field PerPage apijson.Field @@ -97,7 +97,7 @@ type inferencePipelineTestResultListResponseMetaJSON struct { ExtraFields map[string]apijson.Field } -func (r *InferencePipelineTestResultListResponseMeta) UnmarshalJSON(data []byte) (err error) { +func (r *InferencePipelineTestResultListResponse_Meta) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } diff --git a/project.go b/project.go index 2db1c8c..cfb1d9a 100644 --- a/project.go +++ b/project.go @@ -221,7 +221,7 @@ func (r projectNewResponseGitRepoJSON) RawJSON() string { } type ProjectListResponse struct { - Meta ProjectListResponseMeta `json:"_meta,required"` + Meta ProjectListResponse_Meta `json:"_meta,required"` Items []ProjectListResponseItem `json:"items,required"` JSON projectListResponseJSON `json:"-"` } @@ -243,7 +243,7 @@ func (r projectListResponseJSON) RawJSON() string { return r.raw } -type ProjectListResponseMeta struct { +type ProjectListResponse_Meta struct { // The current page. Page int64 `json:"page,required"` // The number of items per page. @@ -256,7 +256,7 @@ type ProjectListResponseMeta struct { } // projectListResponseMetaJSON contains the JSON metadata for the struct -// [ProjectListResponseMeta] +// [ProjectListResponse_Meta] type projectListResponseMetaJSON struct { Page apijson.Field PerPage apijson.Field @@ -266,7 +266,7 @@ type projectListResponseMetaJSON struct { ExtraFields map[string]apijson.Field } -func (r *ProjectListResponseMeta) UnmarshalJSON(data []byte) (err error) { +func (r *ProjectListResponse_Meta) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } diff --git a/projectcommit.go b/projectcommit.go index 7accda9..6bf3711 100644 --- a/projectcommit.go +++ b/projectcommit.go @@ -49,7 +49,7 @@ func (r *ProjectCommitService) List(ctx context.Context, projectID string, query } type ProjectCommitListResponse struct { - Meta ProjectCommitListResponseMeta `json:"_meta,required"` + Meta ProjectCommitListResponse_Meta `json:"_meta,required"` Items []ProjectCommitListResponseItem `json:"items,required"` JSON projectCommitListResponseJSON `json:"-"` } @@ -71,7 +71,7 @@ func (r projectCommitListResponseJSON) RawJSON() string { return r.raw } -type ProjectCommitListResponseMeta struct { +type ProjectCommitListResponse_Meta struct { // The current page. Page int64 `json:"page,required"` // The number of items per page. @@ -84,7 +84,7 @@ type ProjectCommitListResponseMeta struct { } // projectCommitListResponseMetaJSON contains the JSON metadata for the struct -// [ProjectCommitListResponseMeta] +// [ProjectCommitListResponse_Meta] type projectCommitListResponseMetaJSON struct { Page apijson.Field PerPage apijson.Field @@ -94,7 +94,7 @@ type projectCommitListResponseMetaJSON struct { ExtraFields map[string]apijson.Field } -func (r *ProjectCommitListResponseMeta) UnmarshalJSON(data []byte) (err error) { +func (r *ProjectCommitListResponse_Meta) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } diff --git a/projectinferencepipeline.go b/projectinferencepipeline.go index 49c9779..dff2001 100644 --- a/projectinferencepipeline.go +++ b/projectinferencepipeline.go @@ -165,7 +165,7 @@ func (r ProjectInferencePipelineNewResponseStatus) IsKnown() bool { } type ProjectInferencePipelineListResponse struct { - Meta ProjectInferencePipelineListResponseMeta `json:"_meta,required"` + Meta ProjectInferencePipelineListResponse_Meta `json:"_meta,required"` Items []ProjectInferencePipelineListResponseItem `json:"items,required"` JSON projectInferencePipelineListResponseJSON `json:"-"` } @@ -187,7 +187,7 @@ func (r projectInferencePipelineListResponseJSON) RawJSON() string { return r.raw } -type ProjectInferencePipelineListResponseMeta struct { +type ProjectInferencePipelineListResponse_Meta struct { // The current page. Page int64 `json:"page,required"` // The number of items per page. @@ -200,7 +200,7 @@ type ProjectInferencePipelineListResponseMeta struct { } // projectInferencePipelineListResponseMetaJSON contains the JSON metadata for the -// struct [ProjectInferencePipelineListResponseMeta] +// struct [ProjectInferencePipelineListResponse_Meta] type projectInferencePipelineListResponseMetaJSON struct { Page apijson.Field PerPage apijson.Field @@ -210,7 +210,7 @@ type projectInferencePipelineListResponseMetaJSON struct { ExtraFields map[string]apijson.Field } -func (r *ProjectInferencePipelineListResponseMeta) UnmarshalJSON(data []byte) (err error) { +func (r *ProjectInferencePipelineListResponse_Meta) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) }