Skip to content

Commit

Permalink
release: 0.1.0-alpha.1 (#2)
Browse files Browse the repository at this point in the history
* chore: go live (#1)

* release: 0.1.0-alpha.1

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
  • Loading branch information
stainless-app[bot] authored Feb 7, 2025
1 parent 5d9b63a commit 75db68e
Showing 78 changed files with 5,437 additions and 25,103 deletions.
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0-alpha.1"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 106
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-63491b1baa3dbc60caaec79becdece3854356b354909e4bb3f1ccaab80a6be20.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-da4c36c6b1d973f481abb8eefdeb085d88eaf37eeaba30d276cb3daa405b6f0c.yml
78 changes: 78 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Changelog

## 0.1.0-alpha.1 (2025-02-07)

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)

### Features

* **api:** add events streaming ([7b06b6d](https://github.com/gitpod-io/flex-sdk-go/commit/7b06b6d80655159603946e90bdd2a7f290aae1a9))
* **api:** dedupe paginations ([844ce0c](https://github.com/gitpod-io/flex-sdk-go/commit/844ce0c0a6346e2bc09c1ca0774218853a42ed7a))
* **api:** fix pagination field names ([5d9b63a](https://github.com/gitpod-io/flex-sdk-go/commit/5d9b63a349e96e0d7d6c40907aa6dd5a16e5f1b9))
* **api:** manual updates ([0ce1c80](https://github.com/gitpod-io/flex-sdk-go/commit/0ce1c80121b3c57f64e090f6e8f6d38511f0e6fc))
* **api:** manual updates ([7f97b68](https://github.com/gitpod-io/flex-sdk-go/commit/7f97b68a42fb25dbd4814de7dae16a856df491b9))
* **api:** pagination config ([2fba4d4](https://github.com/gitpod-io/flex-sdk-go/commit/2fba4d49efb2157186289a03bd937f391867470e))
* **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))
* **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))
* **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))
* **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))
* **api:** update via SDK Studio ([95e28e4](https://github.com/gitpod-io/flex-sdk-go/commit/95e28e4046adbdac2368d83afb7293183c4feb05))
* **api:** update via SDK Studio ([c6ac608](https://github.com/gitpod-io/flex-sdk-go/commit/c6ac60843e1d9ac02d5d0641352eb942f7d6b3a9))
* **api:** update via SDK Studio ([23d2c90](https://github.com/gitpod-io/flex-sdk-go/commit/23d2c90c4890948732515b629d5a3e85c032cd3a))
* **api:** update via SDK Studio ([01b0d82](https://github.com/gitpod-io/flex-sdk-go/commit/01b0d82e4f08d5488610192804219ce17575efec))
* **api:** update via SDK Studio ([6ef2201](https://github.com/gitpod-io/flex-sdk-go/commit/6ef220173096a1ff89c4ee833e9cfd8562e4a126))
* **api:** update via SDK Studio ([f8874b6](https://github.com/gitpod-io/flex-sdk-go/commit/f8874b60e449349dac91dcce5776df76e34402f5))
* **api:** update via SDK Studio ([1e08279](https://github.com/gitpod-io/flex-sdk-go/commit/1e0827902b909fa3897368d6a7108c1064d588ad))
* **api:** update via SDK Studio ([00bf9ad](https://github.com/gitpod-io/flex-sdk-go/commit/00bf9ad9b89dc7eaa39f6a61215c7047498339da))
* **api:** update via SDK Studio ([3f0d5cd](https://github.com/gitpod-io/flex-sdk-go/commit/3f0d5cd57af9f17286f2e8a0b0104b4254cb6204))
* **api:** update via SDK Studio ([1a2a1f6](https://github.com/gitpod-io/flex-sdk-go/commit/1a2a1f66c8491d894fd5ebe0d2b8652448937ae6))
* **api:** update via SDK Studio ([e085c74](https://github.com/gitpod-io/flex-sdk-go/commit/e085c7455cb169e7433100b070f570331cdc29bf))
* **api:** update via SDK Studio ([4dbfaf1](https://github.com/gitpod-io/flex-sdk-go/commit/4dbfaf1c5982af8e68599a6cb42fcd7625dd4027))
* **api:** update via SDK Studio ([fae2a51](https://github.com/gitpod-io/flex-sdk-go/commit/fae2a514edf4816e2cc927e236e8febe5392e47c))
* **api:** update via SDK Studio ([5b939b4](https://github.com/gitpod-io/flex-sdk-go/commit/5b939b47cb7e63ea96192c1dba7b68ccb66dc330))
* **api:** update via SDK Studio ([0475403](https://github.com/gitpod-io/flex-sdk-go/commit/04754035486a77cd93411f113a69f69cf208f128))
* **api:** update via SDK Studio ([2e48633](https://github.com/gitpod-io/flex-sdk-go/commit/2e4863370ac6829882755e5d2c7a91c818136a42))
* **api:** update via SDK Studio ([daada19](https://github.com/gitpod-io/flex-sdk-go/commit/daada19224feef8c8198d46982c5cad59cb135a4))
* **api:** update via SDK Studio ([d41d24a](https://github.com/gitpod-io/flex-sdk-go/commit/d41d24ad6b1f5081cd12faf48be9e25b90bdb71c))
* **api:** update via SDK Studio ([0c29b09](https://github.com/gitpod-io/flex-sdk-go/commit/0c29b09e2219a5dec7b468d387fa1479adb2682f))
* **api:** update via SDK Studio ([94304f9](https://github.com/gitpod-io/flex-sdk-go/commit/94304f9e90884f325779b6592f9b58b9e5dd6584))
* **api:** update via SDK Studio ([7df303b](https://github.com/gitpod-io/flex-sdk-go/commit/7df303b41eb2bee5cdeab7155f0d3291ce6c6869))
* **api:** update via SDK Studio ([f38f5bf](https://github.com/gitpod-io/flex-sdk-go/commit/f38f5bfe96b6c0d760f35c24fe31faf20010ea71))
* **api:** update via SDK Studio ([d91ff3e](https://github.com/gitpod-io/flex-sdk-go/commit/d91ff3e8b5d2003abc1032fbe1b7ca4460507fc0))
* **api:** update via SDK Studio ([587e248](https://github.com/gitpod-io/flex-sdk-go/commit/587e248f96871423b4385a75a98d11d5bbafaa81))
* **api:** update via SDK Studio ([121a64f](https://github.com/gitpod-io/flex-sdk-go/commit/121a64f139fc0fc3e29827fac48856ac6744d85b))
* **client:** send `X-Stainless-Timeout` header ([2c7e88f](https://github.com/gitpod-io/flex-sdk-go/commit/2c7e88f0c39b3958401849e2d6c0e1dc753f6877))
* pagination responses ([8f4569a](https://github.com/gitpod-io/flex-sdk-go/commit/8f4569a96b08e814164884475ea69864ecc4e610))


### Bug Fixes

* fix apijson.Port for embedded structs ([efeae7c](https://github.com/gitpod-io/flex-sdk-go/commit/efeae7c812d04cc957c3305a7447b58306119c7c))
* fix apijson.Port for embedded structs ([60e9a40](https://github.com/gitpod-io/flex-sdk-go/commit/60e9a40244a5f77f899e693c646b59f030f00557))
* 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))
* fix unicode encoding for json ([da625f4](https://github.com/gitpod-io/flex-sdk-go/commit/da625f44e263be3dd03385efae9ff3392b346cc4))
* pagination example ([c2514e2](https://github.com/gitpod-io/flex-sdk-go/commit/c2514e25269e4662709dfb997b3b66077569c8fe))
* pagination response ([2a82e77](https://github.com/gitpod-io/flex-sdk-go/commit/2a82e775066fd42201e8481a8ad46e40f77212ac))
* **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))
* **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))


### Chores

* 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))
* bump license year ([44e7174](https://github.com/gitpod-io/flex-sdk-go/commit/44e717413ceb1d122ae94aff35077a710fc0f020))
* configure new SDK language ([a58f282](https://github.com/gitpod-io/flex-sdk-go/commit/a58f2822fc2d2f91517bd78b4c73e4d8bfef6adc))
* go live ([#1](https://github.com/gitpod-io/flex-sdk-go/issues/1)) ([966a7b3](https://github.com/gitpod-io/flex-sdk-go/commit/966a7b3d20e4ff7c98df72443859991a843aa8c1))
* **internal:** codegen related update ([e2267e2](https://github.com/gitpod-io/flex-sdk-go/commit/e2267e2a1e4508201c11d3141e6a4f9a54bc791a))
* **internal:** codegen related update ([b1ae6b0](https://github.com/gitpod-io/flex-sdk-go/commit/b1ae6b0b7dfb7ec14e3cb599728b081576790777))
* **internal:** codegen related update ([0c1b414](https://github.com/gitpod-io/flex-sdk-go/commit/0c1b4143dc7788efec18e3d35f4bbc65114aac5e))
* **internal:** codegen related update ([7aaf5e0](https://github.com/gitpod-io/flex-sdk-go/commit/7aaf5e0f9f94e64a35f0af3fdd20f34262f3e37c))
* **internal:** update examples ([4778169](https://github.com/gitpod-io/flex-sdk-go/commit/4778169765fb1b912e66de33ddd1db2cd85e4018))
* rebuild project due to codegen change ([bc60ea7](https://github.com/gitpod-io/flex-sdk-go/commit/bc60ea747051741bde334b8caa4c6c2e5f66c734))
* rebuild project due to codegen change ([e75888d](https://github.com/gitpod-io/flex-sdk-go/commit/e75888d3ffbbf647c42bf34c62853ec50088d2f7))
* rebuild project due to codegen change ([e6aaa0b](https://github.com/gitpod-io/flex-sdk-go/commit/e6aaa0bf1f9ecbd7ead59a8fe881ad31398117b2))


### Documentation

* document raw responses ([bbb2a23](https://github.com/gitpod-io/flex-sdk-go/commit/bbb2a2347f1ad8bbcd219ea10390bb0d1eb70087))
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ To use a local version of this library from source in another project, edit the
directive. This can be done through the CLI with the following:

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

## Running tests
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gitpod Go API Library

<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>
<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>

The Gitpod Go library provides convenient access to [the Gitpod REST
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/).

## Installation

<!-- x-release-please-start-version -->

```go
import (
"github.com/stainless-sdks/gitpod-go" // imported as gitpod
"github.com/gitpod-io/flex-sdk-go" // imported as gitpod
)
```

<!-- x-release-please-end -->

Or to pin the version:

<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/stainless-sdks/gitpod-go@v0.0.1-alpha.0'
go get -u 'github.com/gitpod-io/flex-sdk-go@v0.1.0-alpha.1'
```

<!-- x-release-please-end -->

## Requirements

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

"github.com/stainless-sdks/gitpod-go"
"github.com/stainless-sdks/gitpod-go/option"
"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/option"
)

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

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

### Pagination

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

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

We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/gitpod-go/issues) with questions, bugs, or suggestions.
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.

## Contributing

Loading
Oops, something went wrong.

0 comments on commit 75db68e

Please sign in to comment.