Skip to content

Commit

Permalink
feat(sdk): automated oas update (#25)
Browse files Browse the repository at this point in the history
* feat(sdk): automated oas update

* Bump .speakeasy/gen.yaml based on label

* Update provider based on openapi.yaml changes

---------

Co-authored-by: pmalek <[email protected]>
Co-authored-by: team-k8s-bot <[email protected]>
  • Loading branch information
3 people authored Nov 28, 2024
1 parent 4334aa3 commit 255790c
Show file tree
Hide file tree
Showing 44 changed files with 14,181 additions and 19 deletions.
49 changes: 44 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: b81e5def-5b1e-4753-ae7c-0efccc2e6f61
management:
docChecksum: fa29cc9e179c247d0bd4fc3d22a986e7
docChecksum: f777507689e9cee350ab6cce0ce0c4c9
docVersion: 0.0.1
speakeasyVersion: 1.447.0
generationVersion: 2.463.0
releaseVersion: 0.1.10
configChecksum: c8dc9502d5252fed4b14ed4eff9888c2
speakeasyVersion: 1.448.2
generationVersion: 2.467.4
releaseVersion: 0.1.11
configChecksum: 8a6943464f649367a254aeacf4fc469c
features:
go:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -1086,6 +1086,7 @@ generatedFiles:
- docs/models/operations/listvaultrequest.md
- docs/models/operations/listvaultresponse.md
- docs/models/operations/listvaultresponsebody.md
- docs/models/operations/option.md
- docs/models/operations/patchsystemaccountsidaccesstokensidrequest.md
- docs/models/operations/patchsystemaccountsidaccesstokensidresponse.md
- docs/models/operations/patchsystemaccountsidrequest.md
Expand Down Expand Up @@ -1199,6 +1200,44 @@ generatedFiles:
- docs/models/sdkerrors/serviceunavailable.md
- docs/models/sdkerrors/status.md
- docs/models/sdkerrors/unauthorizederror.md
- docs/sdks/acls/README.md
- docs/sdks/apikeys/README.md
- docs/sdks/authentication/README.md
- docs/sdks/authsettings/README.md
- docs/sdks/basicauthcredentials/README.md
- docs/sdks/cacertificates/README.md
- docs/sdks/certificates/README.md
- docs/sdks/consumergroups/README.md
- docs/sdks/consumers/README.md
- docs/sdks/controlplanegroups/README.md
- docs/sdks/controlplanes/README.md
- docs/sdks/custompluginschemas/README.md
- docs/sdks/dpcertificates/README.md
- docs/sdks/dpnodes/README.md
- docs/sdks/hmacauthcredentials/README.md
- docs/sdks/impersonationsettings/README.md
- docs/sdks/invites/README.md
- docs/sdks/jwts/README.md
- docs/sdks/keys/README.md
- docs/sdks/keysets/README.md
- docs/sdks/me/README.md
- docs/sdks/mtlsauthcredentials/README.md
- docs/sdks/plugins/README.md
- docs/sdks/roles/README.md
- docs/sdks/routes/README.md
- docs/sdks/sdk/README.md
- docs/sdks/services/README.md
- docs/sdks/snis/README.md
- docs/sdks/systemaccounts/README.md
- docs/sdks/systemaccountsaccesstokens/README.md
- docs/sdks/systemaccountsroles/README.md
- docs/sdks/systemaccountsteammembership/README.md
- docs/sdks/targets/README.md
- docs/sdks/teammembership/README.md
- docs/sdks/teams/README.md
- docs/sdks/upstreams/README.md
- docs/sdks/users/README.md
- docs/sdks/vaults/README.md
- dpcertificates.go
- dpnodes.go
- go.mod
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
go:
version: 0.1.10
version: 0.1.11
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,15 +314,14 @@ For more information about the API: [Documentation for Kong Gateway and its APIs

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [sdk-konnect-go](#sdk-konnect-go)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Retries](#retries)

* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
<!-- End Table of Contents [toc] -->

<!-- Start Retries [retries] -->
Expand Down
37 changes: 37 additions & 0 deletions docs/models/operations/option.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## Options

### WithServerURL

WithServerURL allows providing an alternative server URL.

```go
operations.WithServerURL("http://api.example.com")
```

## WithTemplatedServerURL

WithTemplatedServerURL allows providing an alternative server URL with templated parameters.

```go
operations.WithTemplatedServerURL("http://{host}:{port}", map[string]string{
"host": "api.example.com",
"port": "8080",
})
```

### WithRetries

WithRetries allows customizing the default retry configuration. Only usable with methods that mention they support retries.

```go
operations.WithRetries(retry.Config{
Strategy: "backoff",
Backoff: retry.BackoffStrategy{
InitialInterval: 500 * time.Millisecond,
MaxInterval: 60 * time.Second,
Exponent: 1.5,
MaxElapsedTime: 5 * time.Minute,
},
RetryConnectionErrors: true,
})
```
Loading

0 comments on commit 255790c

Please sign in to comment.