Skip to content

Commit

Permalink
Merge pull request #28 from dubinc/speakeasy-sdk-regen-1720660829
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
devkiran authored Jul 11, 2024
2 parents 286ff3e + 6dfe0dc commit 2d557d8
Show file tree
Hide file tree
Showing 26 changed files with 1,252 additions and 180 deletions.
43 changes: 23 additions & 20 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,33 @@ id: ab657d60-207e-43a4-8cc8-692a672950ed
management:
docChecksum: d074e83422312242c953b9123b5c20aa
docVersion: 0.0.1
speakeasyVersion: 1.330.0
generationVersion: 2.361.10
releaseVersion: 0.2.0
configChecksum: c5f1e6166028cd54c6b662be7bb78732
speakeasyVersion: 1.331.0
generationVersion: 2.365.0
releaseVersion: 0.3.0
configChecksum: 22cf933045c93a75dfa8a0bd76057b37
repoURL: https://github.com/dubinc/dub-python.git
installationURL: https://github.com/dubinc/dub-python.git
published: true
features:
python:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.0
core: 0.2.11
deprecations: 0.1.1
errors: 0.1.0
examples: 0.1.0
flattening: 0.1.0
globalSecurity: 0.1.0
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 0.1.0
nameOverrides: 0.1.0
nullables: 0.1.0
responseFormat: 0.1.0
sdkHooks: 0.1.0
unions: 0.1.0
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.0
core: 5.0.0
defaultEnabledRetries: 0.2.0
deprecations: 3.0.0
errors: 3.0.0
examples: 3.0.0
flattening: 3.0.0
globalSecurity: 3.0.0
globalSecurityCallbacks: 1.0.0
globalSecurityFlattening: 1.0.0
globalServerURLs: 3.0.0
nameOverrides: 3.0.0
nullables: 1.0.0
responseFormat: 1.0.0
retries: 3.0.0
sdkHooks: 1.0.0
unions: 3.0.0
generatedFiles:
- src/dub/sdkconfiguration.py
- src/dub/links.py
Expand Down Expand Up @@ -270,6 +272,7 @@ generatedFiles:
- docs/models/operations/getmetatagsrequest.md
- docs/models/operations/getmetatagsresponsebody.md
- docs/sdks/dub/README.md
- docs/models/utils/retryconfig.md
- docs/sdks/links/README.md
- docs/sdks/qrcodes/README.md
- docs/sdks/analytics/README.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
python:
version: 0.2.0
version: 0.3.0
additionalDependencies:
dev: {}
main: {}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.330.0
speakeasyVersion: 1.331.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:8e40a5734ac7b8c93fa3a145bcf644264d615edd7bc0e519b37d478785b02630
sourceBlobDigest: sha256:be97ddc562c6312ec5f452c14ec46361a6bb49bb9dec434d84b14934742db2c8
sourceRevisionDigest: sha256:d15f9af671b762b49b52a8f8ec4c56f2687384572e76c6ff2a083cbf9ce1d5ad
sourceBlobDigest: sha256:ca5f23e5febac8e43193b559fd5ec8e73454019caa54067ee8baa5de16d58480
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:8e40a5734ac7b8c93fa3a145bcf644264d615edd7bc0e519b37d478785b02630
sourceBlobDigest: sha256:be97ddc562c6312ec5f452c14ec46361a6bb49bb9dec434d84b14934742db2c8
sourceRevisionDigest: sha256:d15f9af671b762b49b52a8f8ec4c56f2687384572e76c6ff2a083cbf9ce1d5ad
sourceBlobDigest: sha256:ca5f23e5febac8e43193b559fd5ec8e73454019caa54067ee8baa5de16d58480
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:8f1465773e44e0bbf855d7d7ac6d6d2d1e8ae5a52bf95028a05c18126b411611
codeSamplesRevisionDigest: sha256:4a603fcbd46387efe2eb230ae9ba8803169901335dc890ba45aeed17646ddc15
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,50 @@ if res is not None:
```
<!-- End Authentication [security] -->

<!-- Start Retries [retries] -->
## Retries

Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.

To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
```python
from dub import Dub
from dub.utils import BackoffStrategy, RetryConfig

s = Dub(
token="DUB_API_KEY",
)


res = s.links.list(request={},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

if res is not None:
# handle response
pass

```

If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
```python
from dub import Dub
from dub.utils import BackoffStrategy, RetryConfig

s = Dub(
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
token="DUB_API_KEY",
)


res = s.links.list(request={})

if res is not None:
# handle response
pass

```
<!-- End Retries [retries] -->

<!-- Placeholder for Future Speakeasy SDK Sections -->

# Development
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,14 @@ Based on:
### Generated
- [python v0.2.0] .
### Releases
- [PyPI v0.2.0] https://pypi.org/project/dub/0.2.0 - .
- [PyPI v0.2.0] https://pypi.org/project/dub/0.2.0 - .

## 2024-07-11 01:20:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.331.0 (2.365.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.3.0] .
### Releases
- [PyPI v0.3.0] https://pypi.org/project/dub/0.3.0 - .
Loading

0 comments on commit 2d557d8

Please sign in to comment.