-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sdk): automated oas update (#25)
* 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
1 parent
4334aa3
commit 255790c
Showing
44 changed files
with
14,181 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}) | ||
``` |
Oops, something went wrong.