Skip to content

Commit b867306

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.6.0 (#100)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.517.3 * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 5af8e96 commit b867306

File tree

426 files changed

+6593
-47459
lines changed

Some content is hidden

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

426 files changed

+6593
-47459
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
plugins:
2+
- rubocop-minitest
3+
14
AllCops:
25
Exclude:
36
- Rakefile

.speakeasy/gen.lock

Lines changed: 76 additions & 31 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.513.4
1+
speakeasyVersion: 1.517.3
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:ac0501187a699592b05193305e407af2c3823d6df0ad77e4935e506c3556f206
6-
sourceBlobDigest: sha256:051f166072a3ef4eb117d7d2bec04db284015e0595b10f773cfb31e508fc8732
5+
sourceRevisionDigest: sha256:05f17d0a28e812d57bd585cf2210eaa2c0bb3624fe3cff1a85f096dc7b3a1984
6+
sourceBlobDigest: sha256:9d4f7944ac1a30c5c010a4f3f18c31897dd49d5d652d80a552548e722e464dbc
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1741597287
9+
- speakeasy-sdk-regen-1741967727
1010
- 1.0.0
1111
targets:
1212
StackOneRubyClient:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:ac0501187a699592b05193305e407af2c3823d6df0ad77e4935e506c3556f206
16-
sourceBlobDigest: sha256:051f166072a3ef4eb117d7d2bec04db284015e0595b10f773cfb31e508fc8732
15+
sourceRevisionDigest: sha256:05f17d0a28e812d57bd585cf2210eaa2c0bb3624fe3cff1a85f096dc7b3a1984
16+
sourceBlobDigest: sha256:9d4f7944ac1a30c5c010a4f3f18c31897dd49d5d652d80a552548e722e464dbc
1717
codeSamplesNamespace: code-samples-ruby-stackonerubyclient
18-
codeSamplesRevisionDigest: sha256:b6e42ea3de4bb895bdebbbbf1bb0af2144f9273f990f383eb308325d5030d246
18+
codeSamplesRevisionDigest: sha256:4d362f5227329ea9aaf311bee0725f0cb1fecba7558fcd62bf61bf231012d4e4
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ IAM: The documentation for the StackOne Unified API - IAM
2121
* [SDK Example Usage](#sdk-example-usage)
2222
* [Authentication](#authentication)
2323
* [Available Resources and Operations](#available-resources-and-operations)
24+
* [Retries](#retries)
2425
* [Server Selection](#server-selection)
2526
* [Development](#development)
2627
* [Maturity](#maturity)
@@ -241,7 +242,7 @@ end
241242
* [get_employment](docs/sdks/hris/README.md#get_employment) - Get Employment
242243
* [get_group](docs/sdks/hris/README.md#get_group) - Get Group
243244
* [get_job](docs/sdks/hris/README.md#get_job) - Get Job
244-
* [get_location](docs/sdks/hris/README.md#get_location) - Get Location
245+
* [get_location](docs/sdks/hris/README.md#get_location) - Get Work Location
245246
* [get_team_group](docs/sdks/hris/README.md#get_team_group) - Get Team Group
246247
* [get_time_entries](docs/sdks/hris/README.md#get_time_entries) - Get Time Entry
247248
* [get_time_off_policy](docs/sdks/hris/README.md#get_time_off_policy) - Get Time Off Policy
@@ -264,7 +265,7 @@ end
264265
* [list_employments](docs/sdks/hris/README.md#list_employments) - List Employments
265266
* [list_groups](docs/sdks/hris/README.md#list_groups) - List Groups
266267
* [list_jobs](docs/sdks/hris/README.md#list_jobs) - List Jobs
267-
* [list_locations](docs/sdks/hris/README.md#list_locations) - List locations
268+
* [list_locations](docs/sdks/hris/README.md#list_locations) - List Work Locations
268269
* [list_team_groups](docs/sdks/hris/README.md#list_team_groups) - List Team Groups
269270
* [list_time_entries](docs/sdks/hris/README.md#list_time_entries) - List Time Entries
270271
* [list_time_off_policies](docs/sdks/hris/README.md#list_time_off_policies) - List Time Off Policies
@@ -354,6 +355,60 @@ end
354355
</details>
355356
<!-- End Available Resources and Operations [operations] -->
356357

358+
<!-- Start Retries [retries] -->
359+
## Retries
360+
361+
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.
362+
363+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
364+
```ruby
365+
require 'stackone_client'
366+
367+
s = ::StackOne::StackOne.new(
368+
security: ::StackOne::Shared::Security.new(
369+
password: "",
370+
username: "",
371+
),
372+
)
373+
374+
res = s.accounts.delete_account(id="<id>")
375+
376+
if ! res.linked_account.nil?
377+
# handle response
378+
end
379+
380+
```
381+
382+
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:
383+
```ruby
384+
require 'stackone_client'
385+
386+
s = ::StackOne::StackOne.new(
387+
retry_config: Utils::RetryConfig.new(
388+
backoff: Utils::BackoffStrategy.new(
389+
exponent: 1.1,
390+
initial_interval: 1,
391+
max_elapsed_time: 100,
392+
max_interval: 50
393+
),
394+
retry_connection_errors: false,
395+
strategy: 'backoff'
396+
),
397+
security: ::StackOne::Shared::Security.new(
398+
password: "",
399+
username: "",
400+
),
401+
)
402+
403+
res = s.accounts.delete_account(id="<id>")
404+
405+
if ! res.linked_account.nil?
406+
# handle response
407+
end
408+
409+
```
410+
<!-- End Retries [retries] -->
411+
357412
<!-- Start Server Selection [server] -->
358413
## Server Selection
359414

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,4 +738,14 @@ Based on:
738738
### Generated
739739
- [ruby v0.5.9] .
740740
### Releases
741-
- [Ruby Gems v0.5.9] https://rubygems.org/gems/stackone_client/versions/0.5.9 - .
741+
- [Ruby Gems v0.5.9] https://rubygems.org/gems/stackone_client/versions/0.5.9 - .
742+
743+
## 2025-03-14 15:55:11
744+
### Changes
745+
Based on:
746+
- OpenAPI Doc
747+
- Speakeasy CLI 1.517.3 (2.548.6) https://github.com/speakeasy-api/speakeasy
748+
### Generated
749+
- [ruby v0.6.0] .
750+
### Releases
751+
- [Ruby Gems v0.6.0] https://rubygems.org/gems/stackone_client/versions/0.6.0 - .

0 commit comments

Comments
 (0)