Skip to content

Commit 75db68e

Browse files
release: 0.1.0-alpha.1 (#2)
* chore: go live (#1) * release: 0.1.0-alpha.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 5d9b63a commit 75db68e

File tree

78 files changed

+5437
-25103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+5437
-25103
lines changed

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0-alpha.1"
3+
}

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 106
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-63491b1baa3dbc60caaec79becdece3854356b354909e4bb3f1ccaab80a6be20.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-da4c36c6b1d973f481abb8eefdeb085d88eaf37eeaba30d276cb3daa405b6f0c.yml

CHANGELOG.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Changelog
2+
3+
## 0.1.0-alpha.1 (2025-02-07)
4+
5+
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/gitpod-io/flex-sdk-go/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
6+
7+
### Features
8+
9+
* **api:** add events streaming ([7b06b6d](https://github.com/gitpod-io/flex-sdk-go/commit/7b06b6d80655159603946e90bdd2a7f290aae1a9))
10+
* **api:** dedupe paginations ([844ce0c](https://github.com/gitpod-io/flex-sdk-go/commit/844ce0c0a6346e2bc09c1ca0774218853a42ed7a))
11+
* **api:** fix pagination field names ([5d9b63a](https://github.com/gitpod-io/flex-sdk-go/commit/5d9b63a349e96e0d7d6c40907aa6dd5a16e5f1b9))
12+
* **api:** manual updates ([0ce1c80](https://github.com/gitpod-io/flex-sdk-go/commit/0ce1c80121b3c57f64e090f6e8f6d38511f0e6fc))
13+
* **api:** manual updates ([7f97b68](https://github.com/gitpod-io/flex-sdk-go/commit/7f97b68a42fb25dbd4814de7dae16a856df491b9))
14+
* **api:** pagination config ([2fba4d4](https://github.com/gitpod-io/flex-sdk-go/commit/2fba4d49efb2157186289a03bd937f391867470e))
15+
* **api:** properly produce empty request bodies ([#4](https://github.com/gitpod-io/flex-sdk-go/issues/4)) ([99f62a8](https://github.com/gitpod-io/flex-sdk-go/commit/99f62a8c92c6591b8bea5c17e0360f62a1f9254e))
16+
* **api:** strip enum prefix ([#11](https://github.com/gitpod-io/flex-sdk-go/issues/11)) ([14372b8](https://github.com/gitpod-io/flex-sdk-go/commit/14372b8a15aeac0128174c55be895a936c6620b4))
17+
* **api:** try to fix updateenvironmentrequest ([#8](https://github.com/gitpod-io/flex-sdk-go/issues/8)) ([6a8ac0f](https://github.com/gitpod-io/flex-sdk-go/commit/6a8ac0f0c043c86f0d39fa1a38075f7770123d36))
18+
* **api:** update to latest changes ([#10](https://github.com/gitpod-io/flex-sdk-go/issues/10)) ([9ea005e](https://github.com/gitpod-io/flex-sdk-go/commit/9ea005e0c22967d6f1d22859b39b070e70a6db54))
19+
* **api:** update via SDK Studio ([95e28e4](https://github.com/gitpod-io/flex-sdk-go/commit/95e28e4046adbdac2368d83afb7293183c4feb05))
20+
* **api:** update via SDK Studio ([c6ac608](https://github.com/gitpod-io/flex-sdk-go/commit/c6ac60843e1d9ac02d5d0641352eb942f7d6b3a9))
21+
* **api:** update via SDK Studio ([23d2c90](https://github.com/gitpod-io/flex-sdk-go/commit/23d2c90c4890948732515b629d5a3e85c032cd3a))
22+
* **api:** update via SDK Studio ([01b0d82](https://github.com/gitpod-io/flex-sdk-go/commit/01b0d82e4f08d5488610192804219ce17575efec))
23+
* **api:** update via SDK Studio ([6ef2201](https://github.com/gitpod-io/flex-sdk-go/commit/6ef220173096a1ff89c4ee833e9cfd8562e4a126))
24+
* **api:** update via SDK Studio ([f8874b6](https://github.com/gitpod-io/flex-sdk-go/commit/f8874b60e449349dac91dcce5776df76e34402f5))
25+
* **api:** update via SDK Studio ([1e08279](https://github.com/gitpod-io/flex-sdk-go/commit/1e0827902b909fa3897368d6a7108c1064d588ad))
26+
* **api:** update via SDK Studio ([00bf9ad](https://github.com/gitpod-io/flex-sdk-go/commit/00bf9ad9b89dc7eaa39f6a61215c7047498339da))
27+
* **api:** update via SDK Studio ([3f0d5cd](https://github.com/gitpod-io/flex-sdk-go/commit/3f0d5cd57af9f17286f2e8a0b0104b4254cb6204))
28+
* **api:** update via SDK Studio ([1a2a1f6](https://github.com/gitpod-io/flex-sdk-go/commit/1a2a1f66c8491d894fd5ebe0d2b8652448937ae6))
29+
* **api:** update via SDK Studio ([e085c74](https://github.com/gitpod-io/flex-sdk-go/commit/e085c7455cb169e7433100b070f570331cdc29bf))
30+
* **api:** update via SDK Studio ([4dbfaf1](https://github.com/gitpod-io/flex-sdk-go/commit/4dbfaf1c5982af8e68599a6cb42fcd7625dd4027))
31+
* **api:** update via SDK Studio ([fae2a51](https://github.com/gitpod-io/flex-sdk-go/commit/fae2a514edf4816e2cc927e236e8febe5392e47c))
32+
* **api:** update via SDK Studio ([5b939b4](https://github.com/gitpod-io/flex-sdk-go/commit/5b939b47cb7e63ea96192c1dba7b68ccb66dc330))
33+
* **api:** update via SDK Studio ([0475403](https://github.com/gitpod-io/flex-sdk-go/commit/04754035486a77cd93411f113a69f69cf208f128))
34+
* **api:** update via SDK Studio ([2e48633](https://github.com/gitpod-io/flex-sdk-go/commit/2e4863370ac6829882755e5d2c7a91c818136a42))
35+
* **api:** update via SDK Studio ([daada19](https://github.com/gitpod-io/flex-sdk-go/commit/daada19224feef8c8198d46982c5cad59cb135a4))
36+
* **api:** update via SDK Studio ([d41d24a](https://github.com/gitpod-io/flex-sdk-go/commit/d41d24ad6b1f5081cd12faf48be9e25b90bdb71c))
37+
* **api:** update via SDK Studio ([0c29b09](https://github.com/gitpod-io/flex-sdk-go/commit/0c29b09e2219a5dec7b468d387fa1479adb2682f))
38+
* **api:** update via SDK Studio ([94304f9](https://github.com/gitpod-io/flex-sdk-go/commit/94304f9e90884f325779b6592f9b58b9e5dd6584))
39+
* **api:** update via SDK Studio ([7df303b](https://github.com/gitpod-io/flex-sdk-go/commit/7df303b41eb2bee5cdeab7155f0d3291ce6c6869))
40+
* **api:** update via SDK Studio ([f38f5bf](https://github.com/gitpod-io/flex-sdk-go/commit/f38f5bfe96b6c0d760f35c24fe31faf20010ea71))
41+
* **api:** update via SDK Studio ([d91ff3e](https://github.com/gitpod-io/flex-sdk-go/commit/d91ff3e8b5d2003abc1032fbe1b7ca4460507fc0))
42+
* **api:** update via SDK Studio ([587e248](https://github.com/gitpod-io/flex-sdk-go/commit/587e248f96871423b4385a75a98d11d5bbafaa81))
43+
* **api:** update via SDK Studio ([121a64f](https://github.com/gitpod-io/flex-sdk-go/commit/121a64f139fc0fc3e29827fac48856ac6744d85b))
44+
* **client:** send `X-Stainless-Timeout` header ([2c7e88f](https://github.com/gitpod-io/flex-sdk-go/commit/2c7e88f0c39b3958401849e2d6c0e1dc753f6877))
45+
* pagination responses ([8f4569a](https://github.com/gitpod-io/flex-sdk-go/commit/8f4569a96b08e814164884475ea69864ecc4e610))
46+
47+
48+
### Bug Fixes
49+
50+
* fix apijson.Port for embedded structs ([efeae7c](https://github.com/gitpod-io/flex-sdk-go/commit/efeae7c812d04cc957c3305a7447b58306119c7c))
51+
* fix apijson.Port for embedded structs ([60e9a40](https://github.com/gitpod-io/flex-sdk-go/commit/60e9a40244a5f77f899e693c646b59f030f00557))
52+
* fix early cancel when RequestTimeout is provided for streaming requests ([#9](https://github.com/gitpod-io/flex-sdk-go/issues/9)) ([85c3877](https://github.com/gitpod-io/flex-sdk-go/commit/85c3877513d216815d84fd69e8ad77de7497d1a0))
53+
* fix unicode encoding for json ([da625f4](https://github.com/gitpod-io/flex-sdk-go/commit/da625f44e263be3dd03385efae9ff3392b346cc4))
54+
* pagination example ([c2514e2](https://github.com/gitpod-io/flex-sdk-go/commit/c2514e25269e4662709dfb997b3b66077569c8fe))
55+
* pagination response ([2a82e77](https://github.com/gitpod-io/flex-sdk-go/commit/2a82e775066fd42201e8481a8ad46e40f77212ac))
56+
* **tests:** disable mock tests ([#5](https://github.com/gitpod-io/flex-sdk-go/issues/5)) ([d05b1fd](https://github.com/gitpod-io/flex-sdk-go/commit/d05b1fd4a3df4b467f9b170006d28c64e4ac9c75))
57+
* **tests:** disable test mocks ([#3](https://github.com/gitpod-io/flex-sdk-go/issues/3)) ([ba10691](https://github.com/gitpod-io/flex-sdk-go/commit/ba10691f2b65fcbdc7407065a13493c6b6dbe4e2))
58+
59+
60+
### Chores
61+
62+
* add UnionUnmarshaler for responses that are interfaces ([#6](https://github.com/gitpod-io/flex-sdk-go/issues/6)) ([d6fff80](https://github.com/gitpod-io/flex-sdk-go/commit/d6fff8045ed918f66fbb7889a654fb332c46a77a))
63+
* bump license year ([44e7174](https://github.com/gitpod-io/flex-sdk-go/commit/44e717413ceb1d122ae94aff35077a710fc0f020))
64+
* configure new SDK language ([a58f282](https://github.com/gitpod-io/flex-sdk-go/commit/a58f2822fc2d2f91517bd78b4c73e4d8bfef6adc))
65+
* go live ([#1](https://github.com/gitpod-io/flex-sdk-go/issues/1)) ([966a7b3](https://github.com/gitpod-io/flex-sdk-go/commit/966a7b3d20e4ff7c98df72443859991a843aa8c1))
66+
* **internal:** codegen related update ([e2267e2](https://github.com/gitpod-io/flex-sdk-go/commit/e2267e2a1e4508201c11d3141e6a4f9a54bc791a))
67+
* **internal:** codegen related update ([b1ae6b0](https://github.com/gitpod-io/flex-sdk-go/commit/b1ae6b0b7dfb7ec14e3cb599728b081576790777))
68+
* **internal:** codegen related update ([0c1b414](https://github.com/gitpod-io/flex-sdk-go/commit/0c1b4143dc7788efec18e3d35f4bbc65114aac5e))
69+
* **internal:** codegen related update ([7aaf5e0](https://github.com/gitpod-io/flex-sdk-go/commit/7aaf5e0f9f94e64a35f0af3fdd20f34262f3e37c))
70+
* **internal:** update examples ([4778169](https://github.com/gitpod-io/flex-sdk-go/commit/4778169765fb1b912e66de33ddd1db2cd85e4018))
71+
* rebuild project due to codegen change ([bc60ea7](https://github.com/gitpod-io/flex-sdk-go/commit/bc60ea747051741bde334b8caa4c6c2e5f66c734))
72+
* rebuild project due to codegen change ([e75888d](https://github.com/gitpod-io/flex-sdk-go/commit/e75888d3ffbbf647c42bf34c62853ec50088d2f7))
73+
* rebuild project due to codegen change ([e6aaa0b](https://github.com/gitpod-io/flex-sdk-go/commit/e6aaa0bf1f9ecbd7ead59a8fe881ad31398117b2))
74+
75+
76+
### Documentation
77+
78+
* document raw responses ([bbb2a23](https://github.com/gitpod-io/flex-sdk-go/commit/bbb2a2347f1ad8bbcd219ea10390bb0d1eb70087))

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To use a local version of this library from source in another project, edit the
4141
directive. This can be done through the CLI with the following:
4242

4343
```sh
44-
$ go mod edit -replace github.com/stainless-sdks/gitpod-go=/path/to/gitpod-go
44+
$ go mod edit -replace github.com/gitpod-io/flex-sdk-go=/path/to/flex-sdk-go
4545
```
4646

4747
## Running tests

README.md

+17-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gitpod Go API Library
22

3-
<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go"><img src="https://pkg.go.dev/badge/github.com/stainless-sdks/gitpod-go.svg" alt="Go Reference"></a>
3+
<a href="https://pkg.go.dev/github.com/gitpod-io/flex-sdk-go"><img src="https://pkg.go.dev/badge/github.com/gitpod-io/flex-sdk-go.svg" alt="Go Reference"></a>
44

55
The Gitpod Go library provides convenient access to [the Gitpod REST
66
API](https://docs.gitpod.com) from applications written in Go. The full API of this library can be found in [api.md](api.md).
@@ -9,18 +9,26 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
99

1010
## Installation
1111

12+
<!-- x-release-please-start-version -->
13+
1214
```go
1315
import (
14-
"github.com/stainless-sdks/gitpod-go" // imported as gitpod
16+
"github.com/gitpod-io/flex-sdk-go" // imported as gitpod
1517
)
1618
```
1719

20+
<!-- x-release-please-end -->
21+
1822
Or to pin the version:
1923

24+
<!-- x-release-please-start-version -->
25+
2026
```sh
21-
go get -u 'github.com/stainless-sdks/gitpod-go@v0.0.1-alpha.0'
27+
go get -u 'github.com/gitpod-io/flex-sdk-go@v0.1.0-alpha.1'
2228
```
2329

30+
<!-- x-release-please-end -->
31+
2432
## Requirements
2533

2634
This library requires Go 1.18+.
@@ -36,8 +44,8 @@ import (
3644
"context"
3745
"fmt"
3846

39-
"github.com/stainless-sdks/gitpod-go"
40-
"github.com/stainless-sdks/gitpod-go/option"
47+
"github.com/gitpod-io/flex-sdk-go"
48+
"github.com/gitpod-io/flex-sdk-go/option"
4149
)
4250

4351
func main() {
@@ -145,7 +153,7 @@ client.Runners.New(context.TODO(), ...,
145153
)
146154
```
147155

148-
See the [full list of request options](https://pkg.go.dev/github.com/stainless-sdks/gitpod-go/option).
156+
See the [full list of request options](https://pkg.go.dev/github.com/gitpod-io/flex-sdk-go/option).
149157

150158
### Pagination
151159

@@ -157,8 +165,8 @@ You can use `.ListAutoPaging()` methods to iterate through items across all page
157165
iter := client.Environments.Automations.Services.ListAutoPaging(context.TODO(), gitpod.EnvironmentAutomationServiceListParams{})
158166
// Automatically fetches more pages as needed.
159167
for iter.Next() {
160-
environmentAutomationServiceListResponse := iter.Current()
161-
fmt.Printf("%+v\n", environmentAutomationServiceListResponse)
168+
service := iter.Current()
169+
fmt.Printf("%+v\n", service)
162170
}
163171
if err := iter.Err(); err != nil {
164172
panic(err.Error())
@@ -376,7 +384,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
376384

377385
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
378386

379-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/gitpod-go/issues) with questions, bugs, or suggestions.
387+
We are keen for your feedback; please open an [issue](https://www.github.com/gitpod-io/flex-sdk-go/issues) with questions, bugs, or suggestions.
380388

381389
## Contributing
382390

0 commit comments

Comments
 (0)