Skip to content

Commit 6fa4bcd

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.9.1 (#105)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4 * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent bd0dac8 commit 6fa4bcd

File tree

91 files changed

+4544
-145
lines changed

Some content is hidden

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

91 files changed

+4544
-145
lines changed

β€Ž.speakeasy/gen.lockβ€Ž

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

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.531.4
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:638b9c22a02b272e3432466d9e6b3891016e03f5ce2396be4bd728ed4d627ffc
6-
sourceBlobDigest: sha256:51be928c8c3ab90025f195260a209b9627088a4b6f6a34a6ef4ceaf3a7d92238
5+
sourceRevisionDigest: sha256:ebabd9136f8a08f1fe7c4b8d191ecdde2ba4a03b0ab97a4824959430270535ff
6+
sourceBlobDigest: sha256:d7a37fd6f778c2237e2f5d4f144b64f4f195ad513dd7e1dbaf55ece3ab5a2ba7
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1744621306
9+
- speakeasy-sdk-regen-1745226093
1010
- 1.0.0
1111
targets:
1212
StackOneRubyClient:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:638b9c22a02b272e3432466d9e6b3891016e03f5ce2396be4bd728ed4d627ffc
16-
sourceBlobDigest: sha256:51be928c8c3ab90025f195260a209b9627088a4b6f6a34a6ef4ceaf3a7d92238
15+
sourceRevisionDigest: sha256:ebabd9136f8a08f1fe7c4b8d191ecdde2ba4a03b0ab97a4824959430270535ff
16+
sourceBlobDigest: sha256:d7a37fd6f778c2237e2f5d4f144b64f4f195ad513dd7e1dbaf55ece3ab5a2ba7
1717
codeSamplesNamespace: code-samples-ruby-stackonerubyclient
18-
codeSamplesRevisionDigest: sha256:34be0b6620e45cdfcdd68d6b00b3429e8699514b59f161ef478af280c5c85f73
18+
codeSamplesRevisionDigest: sha256:b490b96fa67f1778f6d15f0a1b4f0b75f0e359296f2f8f3798207b3fa290642d
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ IAM: The documentation for the StackOne Unified API - IAM
2222
* [Authentication](#authentication)
2323
* [Available Resources and Operations](#available-resources-and-operations)
2424
* [Retries](#retries)
25+
* [Error Handling](#error-handling)
2526
* [Server Selection](#server-selection)
2627
* [Development](#development)
2728
* [Maturity](#maturity)
@@ -420,6 +421,96 @@ end
420421
```
421422
<!-- End Retries [retries] -->
422423

424+
<!-- Start Error Handling [errors] -->
425+
## Error Handling
426+
427+
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error.
428+
429+
By default an API error will raise a `Errors::APIError`, which has the following properties:
430+
431+
| Property | Type | Description |
432+
|----------------|-----------------------------------------|-----------------------|
433+
| `message` | *string* | The error message |
434+
| `status_code` | *int* | The HTTP status code |
435+
| `raw_response` | *Faraday::Response* | The raw HTTP response |
436+
| `body` | *string* | The response content |
437+
438+
When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `delete_account` method throws the following exceptions:
439+
440+
| Error Type | Status Code | Content Type |
441+
| ------------------------------------------- | ----------- | ---------------- |
442+
| Models::Errors::BadRequestResponse | 400 | application/json |
443+
| Models::Errors::UnauthorizedResponse | 401 | application/json |
444+
| Models::Errors::ForbiddenResponse | 403 | application/json |
445+
| Models::Errors::NotFoundResponse | 404 | application/json |
446+
| Models::Errors::RequestTimedOutResponse | 408 | application/json |
447+
| Models::Errors::ConflictResponse | 409 | application/json |
448+
| Models::Errors::UnprocessableEntityResponse | 422 | application/json |
449+
| Models::Errors::TooManyRequestsResponse | 429 | application/json |
450+
| Models::Errors::InternalServerErrorResponse | 500 | application/json |
451+
| Models::Errors::NotImplementedResponse | 501 | application/json |
452+
| Models::Errors::BadGatewayResponse | 502 | application/json |
453+
| Errors::APIError | 4XX, 5XX | \*/\* |
454+
455+
### Example
456+
457+
```ruby
458+
require 'stackone_client'
459+
460+
s = ::StackOne::StackOne.new(
461+
security: Models::Shared::Security.new(
462+
password: "",
463+
username: "",
464+
),
465+
)
466+
467+
begin
468+
res = s.accounts.delete_account(id="<id>")
469+
470+
if ! res.linked_account.nil?
471+
# handle response
472+
end
473+
rescue Models::Errors::BadRequestResponse => e
474+
# handle $e->$container data
475+
throw $e;
476+
rescue Models::Errors::UnauthorizedResponse => e
477+
# handle $e->$container data
478+
throw $e;
479+
rescue Models::Errors::ForbiddenResponse => e
480+
# handle $e->$container data
481+
throw $e;
482+
rescue Models::Errors::NotFoundResponse => e
483+
# handle $e->$container data
484+
throw $e;
485+
rescue Models::Errors::RequestTimedOutResponse => e
486+
# handle $e->$container data
487+
throw $e;
488+
rescue Models::Errors::ConflictResponse => e
489+
# handle $e->$container data
490+
throw $e;
491+
rescue Models::Errors::UnprocessableEntityResponse => e
492+
# handle $e->$container data
493+
throw $e;
494+
rescue Models::Errors::TooManyRequestsResponse => e
495+
# handle $e->$container data
496+
throw $e;
497+
rescue Models::Errors::InternalServerErrorResponse => e
498+
# handle $e->$container data
499+
throw $e;
500+
rescue Models::Errors::NotImplementedResponse => e
501+
# handle $e->$container data
502+
throw $e;
503+
rescue Models::Errors::BadGatewayResponse => e
504+
# handle $e->$container data
505+
throw $e;
506+
rescue Errors::APIError => e
507+
# handle default exception
508+
raise e
509+
end
510+
511+
```
512+
<!-- End Error Handling [errors] -->
513+
423514
<!-- Start Server Selection [server] -->
424515
## Server Selection
425516

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,4 +788,14 @@ Based on:
788788
### Generated
789789
- [ruby v0.8.0] .
790790
### Releases
791-
- [Ruby Gems v0.8.0] https://rubygems.org/gems/stackone_client/versions/0.8.0 - .
791+
- [Ruby Gems v0.8.0] https://rubygems.org/gems/stackone_client/versions/0.8.0 - .
792+
793+
## 2025-04-21 09:01:15
794+
### Changes
795+
Based on:
796+
- OpenAPI Doc
797+
- Speakeasy CLI 1.531.4 (2.570.4) https://github.com/speakeasy-api/speakeasy
798+
### Generated
799+
- [ruby v0.9.1] .
800+
### Releases
801+
- [Ruby Gems v0.9.1] https://rubygems.org/gems/stackone_client/versions/0.9.1 - .

β€ŽcodeSamples.yamlβ€Ž

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

0 commit comments

Comments
Β (0)