Skip to content

Commit 393e58f

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.467.0
1 parent d75a659 commit 393e58f

File tree

9 files changed

+270
-32
lines changed

9 files changed

+270
-32
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 2858c6d9-f946-4185-ae68-3b8e708830fb
33
management:
4-
docChecksum: c0adff9c67d3441eb02a83b1cee1a956
4+
docChecksum: 52df6f1f34dfe76968f8ed009cc2bfd3
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.465.1
7-
generationVersion: 2.488.4
8-
releaseVersion: 3.19.1
9-
configChecksum: 93cb08c9e2c4bcb8a9b9e97bec1bba0f
6+
speakeasyVersion: 1.467.0
7+
generationVersion: 2.492.3
8+
releaseVersion: 3.19.2
9+
configChecksum: 78309f1767add10831a0c6629f48c68b
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go
@@ -350,6 +350,7 @@ generatedFiles:
350350
- docs/pkg/models/shared/organizationusageresponse.md
351351
- docs/pkg/models/shared/preflightrequest.md
352352
- docs/pkg/models/shared/preflighttoken.md
353+
- docs/pkg/models/shared/pullrequestmetadata.md
353354
- docs/pkg/models/shared/relationship.md
354355
- docs/pkg/models/shared/remotedocument.md
355356
- docs/pkg/models/shared/remotesource.md

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.465.1
1+
speakeasyVersion: 1.467.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:2d298a7727cd049c888ba38dcd9de3f6d35fcca3e905e26a9ab6b371b67ab5d1
6-
sourceBlobDigest: sha256:aed3d6364ea14f272f9693c550d26d4b931dcb3aedddbd0ad65a4faf75284427
5+
sourceRevisionDigest: sha256:815483d45479153e520edc5dce5aa8bc10daf5d91a4384dcba68e3bc719cc7ae
6+
sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7
77
tags:
88
- latest
99
- main
@@ -12,10 +12,10 @@ targets:
1212
speakeasy-client-sdk-go:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:2d298a7727cd049c888ba38dcd9de3f6d35fcca3e905e26a9ab6b371b67ab5d1
16-
sourceBlobDigest: sha256:aed3d6364ea14f272f9693c550d26d4b931dcb3aedddbd0ad65a4faf75284427
15+
sourceRevisionDigest: sha256:815483d45479153e520edc5dce5aa8bc10daf5d91a4384dcba68e3bc719cc7ae
16+
sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7
1717
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
18-
codeSamplesRevisionDigest: sha256:b4fe93f3df87861f248deb2a3318fb8a1582808820a08f0c0046bae750aba44b
18+
codeSamplesRevisionDigest: sha256:c09e1d4f63db487480ebadd9930b439bfaeef89532b7f919c099cce48da0030c
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,4 +1536,14 @@ Based on:
15361536
### Generated
15371537
- [go v3.19.1] .
15381538
### Releases
1539-
- [Go v3.19.1] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.19.1 - .
1539+
- [Go v3.19.1] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.19.1 - .
1540+
1541+
## 2025-01-09 22:02:31
1542+
### Changes
1543+
Based on:
1544+
- OpenAPI Doc
1545+
- Speakeasy CLI 1.467.0 (2.492.3) https://github.com/speakeasy-api/speakeasy
1546+
### Generated
1547+
- [go v3.19.2] .
1548+
### Releases
1549+
- [Go v3.19.2] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.19.2 - .

docs/pkg/models/shared/githubpublishingprresponse.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Open generation PRs pending publishing
55

66
## Fields
77

8-
| Field | Type | Required | Description |
9-
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
10-
| `GenerationPullRequest` | **string* | :heavy_minus_sign: | N/A |
11-
| `PendingVersion` | **string* | :heavy_minus_sign: | N/A |
8+
| Field | Type | Required | Description |
9+
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
10+
| `PendingVersion` | **string* | :heavy_minus_sign: | N/A |
11+
| `PullRequest` | **string* | :heavy_minus_sign: | N/A |
12+
| `PullRequestMetadata` | [*shared.PullRequestMetadata](../../../pkg/models/shared/pullrequestmetadata.md) | :heavy_minus_sign: | This can only be populated when the github app is installed for a repo |
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# PullRequestMetadata
2+
3+
This can only be populated when the github app is installed for a repo
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
10+
| `BaseBranch` | **string* | :heavy_minus_sign: | N/A |
11+
| `CanMerge` | **bool* | :heavy_minus_sign: | N/A |
12+
| `CreatedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A |
13+
| `Description` | **string* | :heavy_minus_sign: | truncated to first 1000 characters |
14+
| `HeadBranch` | **string* | :heavy_minus_sign: | N/A |
15+
| `Labels` | []*string* | :heavy_minus_sign: | List of github labels |
16+
| `RequestedReviewers` | []*string* | :heavy_minus_sign: | List of github handles |
17+
| `Status` | **string* | :heavy_minus_sign: | N/A |
18+
| `Title` | **string* | :heavy_minus_sign: | N/A |

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generation:
1818
tests:
1919
generateNewTests: true
2020
go:
21-
version: 3.19.1
21+
version: 3.19.2
2222
additionalDependencies: {}
2323
allowUnknownFieldsInWeakUnions: false
2424
clientServerStatusCodesAsErrors: true

pkg/models/shared/githubpublishingprresponse.go

Lines changed: 110 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,107 @@
22

33
package shared
44

5-
// GithubPublishingPRResponse - Open generation PRs pending publishing
6-
type GithubPublishingPRResponse struct {
7-
GenerationPullRequest *string `json:"generation_pull_request,omitempty"`
8-
PendingVersion *string `json:"pending_version,omitempty"`
5+
import (
6+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/utils"
7+
"time"
8+
)
9+
10+
// PullRequestMetadata - This can only be populated when the github app is installed for a repo
11+
type PullRequestMetadata struct {
12+
BaseBranch *string `json:"base_branch,omitempty"`
13+
CanMerge *bool `json:"can_merge,omitempty"`
14+
CreatedAt *time.Time `json:"created_at,omitempty"`
15+
// truncated to first 1000 characters
16+
Description *string `json:"description,omitempty"`
17+
HeadBranch *string `json:"head_branch,omitempty"`
18+
// List of github labels
19+
Labels []string `json:"labels,omitempty"`
20+
// List of github handles
21+
RequestedReviewers []string `json:"requested_reviewers,omitempty"`
22+
Status *string `json:"status,omitempty"`
23+
Title *string `json:"title,omitempty"`
24+
}
25+
26+
func (p PullRequestMetadata) MarshalJSON() ([]byte, error) {
27+
return utils.MarshalJSON(p, "", false)
28+
}
29+
30+
func (p *PullRequestMetadata) UnmarshalJSON(data []byte) error {
31+
if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil {
32+
return err
33+
}
34+
return nil
35+
}
36+
37+
func (o *PullRequestMetadata) GetBaseBranch() *string {
38+
if o == nil {
39+
return nil
40+
}
41+
return o.BaseBranch
42+
}
43+
44+
func (o *PullRequestMetadata) GetCanMerge() *bool {
45+
if o == nil {
46+
return nil
47+
}
48+
return o.CanMerge
49+
}
50+
51+
func (o *PullRequestMetadata) GetCreatedAt() *time.Time {
52+
if o == nil {
53+
return nil
54+
}
55+
return o.CreatedAt
56+
}
57+
58+
func (o *PullRequestMetadata) GetDescription() *string {
59+
if o == nil {
60+
return nil
61+
}
62+
return o.Description
63+
}
64+
65+
func (o *PullRequestMetadata) GetHeadBranch() *string {
66+
if o == nil {
67+
return nil
68+
}
69+
return o.HeadBranch
70+
}
71+
72+
func (o *PullRequestMetadata) GetLabels() []string {
73+
if o == nil {
74+
return nil
75+
}
76+
return o.Labels
77+
}
78+
79+
func (o *PullRequestMetadata) GetRequestedReviewers() []string {
80+
if o == nil {
81+
return nil
82+
}
83+
return o.RequestedReviewers
984
}
1085

11-
func (o *GithubPublishingPRResponse) GetGenerationPullRequest() *string {
86+
func (o *PullRequestMetadata) GetStatus() *string {
1287
if o == nil {
1388
return nil
1489
}
15-
return o.GenerationPullRequest
90+
return o.Status
91+
}
92+
93+
func (o *PullRequestMetadata) GetTitle() *string {
94+
if o == nil {
95+
return nil
96+
}
97+
return o.Title
98+
}
99+
100+
// GithubPublishingPRResponse - Open generation PRs pending publishing
101+
type GithubPublishingPRResponse struct {
102+
PendingVersion *string `json:"pending_version,omitempty"`
103+
PullRequest *string `json:"pull_request,omitempty"`
104+
// This can only be populated when the github app is installed for a repo
105+
PullRequestMetadata *PullRequestMetadata `json:"pull_request_metadata,omitempty"`
16106
}
17107

18108
func (o *GithubPublishingPRResponse) GetPendingVersion() *string {
@@ -21,3 +111,17 @@ func (o *GithubPublishingPRResponse) GetPendingVersion() *string {
21111
}
22112
return o.PendingVersion
23113
}
114+
115+
func (o *GithubPublishingPRResponse) GetPullRequest() *string {
116+
if o == nil {
117+
return nil
118+
}
119+
return o.PullRequest
120+
}
121+
122+
func (o *GithubPublishingPRResponse) GetPullRequestMetadata() *PullRequestMetadata {
123+
if o == nil {
124+
return nil
125+
}
126+
return o.PullRequestMetadata
127+
}

speakeasy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ func New(opts ...SDKOption) *Speakeasy {
188188
sdkConfiguration: sdkConfiguration{
189189
Language: "go",
190190
OpenAPIDocVersion: "0.4.0",
191-
SDKVersion: "3.19.1",
192-
GenVersion: "2.488.4",
193-
UserAgent: "speakeasy-sdk/go 3.19.1 2.488.4 0.4.0 github.com/speakeasy-api/speakeasy-client-sdk-go",
191+
SDKVersion: "3.19.2",
192+
GenVersion: "2.492.3",
193+
UserAgent: "speakeasy-sdk/go 3.19.2 2.492.3 0.4.0 github.com/speakeasy-api/speakeasy-client-sdk-go",
194194
Globals: globals.Globals{},
195195
Hooks: hooks.New(),
196196
},

tests/mockserver/internal/sdk/models/components/githubpublishingprresponse.go

Lines changed: 110 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,107 @@
22

33
package components
44

5-
// GithubPublishingPRResponse - Open generation PRs pending publishing
6-
type GithubPublishingPRResponse struct {
7-
GenerationPullRequest *string `json:"generation_pull_request,omitempty"`
8-
PendingVersion *string `json:"pending_version,omitempty"`
5+
import (
6+
"mockserver/internal/sdk/utils"
7+
"time"
8+
)
9+
10+
// PullRequestMetadata - This can only be populated when the github app is installed for a repo
11+
type PullRequestMetadata struct {
12+
BaseBranch *string `json:"base_branch,omitempty"`
13+
CanMerge *bool `json:"can_merge,omitempty"`
14+
CreatedAt *time.Time `json:"created_at,omitempty"`
15+
// truncated to first 1000 characters
16+
Description *string `json:"description,omitempty"`
17+
HeadBranch *string `json:"head_branch,omitempty"`
18+
// List of github labels
19+
Labels []string `json:"labels,omitempty"`
20+
// List of github handles
21+
RequestedReviewers []string `json:"requested_reviewers,omitempty"`
22+
Status *string `json:"status,omitempty"`
23+
Title *string `json:"title,omitempty"`
24+
}
25+
26+
func (p PullRequestMetadata) MarshalJSON() ([]byte, error) {
27+
return utils.MarshalJSON(p, "", false)
28+
}
29+
30+
func (p *PullRequestMetadata) UnmarshalJSON(data []byte) error {
31+
if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil {
32+
return err
33+
}
34+
return nil
35+
}
36+
37+
func (o *PullRequestMetadata) GetBaseBranch() *string {
38+
if o == nil {
39+
return nil
40+
}
41+
return o.BaseBranch
42+
}
43+
44+
func (o *PullRequestMetadata) GetCanMerge() *bool {
45+
if o == nil {
46+
return nil
47+
}
48+
return o.CanMerge
49+
}
50+
51+
func (o *PullRequestMetadata) GetCreatedAt() *time.Time {
52+
if o == nil {
53+
return nil
54+
}
55+
return o.CreatedAt
56+
}
57+
58+
func (o *PullRequestMetadata) GetDescription() *string {
59+
if o == nil {
60+
return nil
61+
}
62+
return o.Description
63+
}
64+
65+
func (o *PullRequestMetadata) GetHeadBranch() *string {
66+
if o == nil {
67+
return nil
68+
}
69+
return o.HeadBranch
70+
}
71+
72+
func (o *PullRequestMetadata) GetLabels() []string {
73+
if o == nil {
74+
return nil
75+
}
76+
return o.Labels
77+
}
78+
79+
func (o *PullRequestMetadata) GetRequestedReviewers() []string {
80+
if o == nil {
81+
return nil
82+
}
83+
return o.RequestedReviewers
984
}
1085

11-
func (o *GithubPublishingPRResponse) GetGenerationPullRequest() *string {
86+
func (o *PullRequestMetadata) GetStatus() *string {
1287
if o == nil {
1388
return nil
1489
}
15-
return o.GenerationPullRequest
90+
return o.Status
91+
}
92+
93+
func (o *PullRequestMetadata) GetTitle() *string {
94+
if o == nil {
95+
return nil
96+
}
97+
return o.Title
98+
}
99+
100+
// GithubPublishingPRResponse - Open generation PRs pending publishing
101+
type GithubPublishingPRResponse struct {
102+
PendingVersion *string `json:"pending_version,omitempty"`
103+
PullRequest *string `json:"pull_request,omitempty"`
104+
// This can only be populated when the github app is installed for a repo
105+
PullRequestMetadata *PullRequestMetadata `json:"pull_request_metadata,omitempty"`
16106
}
17107

18108
func (o *GithubPublishingPRResponse) GetPendingVersion() *string {
@@ -21,3 +111,17 @@ func (o *GithubPublishingPRResponse) GetPendingVersion() *string {
21111
}
22112
return o.PendingVersion
23113
}
114+
115+
func (o *GithubPublishingPRResponse) GetPullRequest() *string {
116+
if o == nil {
117+
return nil
118+
}
119+
return o.PullRequest
120+
}
121+
122+
func (o *GithubPublishingPRResponse) GetPullRequestMetadata() *PullRequestMetadata {
123+
if o == nil {
124+
return nil
125+
}
126+
return o.PullRequestMetadata
127+
}

0 commit comments

Comments
 (0)