Skip to content

Commit 0861162

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.175.1
1 parent bb7e596 commit 0861162

File tree

8 files changed

+39
-19
lines changed

8 files changed

+39
-19
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f5719c92-1297-4aa0-bc5f-37116859d1e3
33
management:
4-
docChecksum: dff663dce4f21ddf3fc2332b7d7be92b
4+
docChecksum: 557634d4bb5964b949ae70f79f40d856
55
docVersion: 0.4.0
66
speakeasyVersion: internal
7-
generationVersion: 2.250.16
8-
releaseVersion: 4.0.0
9-
configChecksum: 54cd3cfd318ae1fbd63dac91215918dd
7+
generationVersion: 2.250.21
8+
releaseVersion: 4.0.1
9+
configChecksum: 019d51f52f98131e4ae8f1d1f9f14e0f
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,4 +558,14 @@ Based on:
558558
### Generated
559559
- [ruby v4.0.0] .
560560
### Releases
561-
- [Ruby Gems v4.0.0] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.0.0 - .
561+
- [Ruby Gems v4.0.0] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.0.0 - .
562+
563+
## 2024-02-08 18:03:33
564+
### Changes
565+
Based on:
566+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
567+
- Speakeasy CLI 1.175.1 (2.250.21) https://github.com/speakeasy-api/speakeasy
568+
### Generated
569+
- [ruby v4.0.1] .
570+
### Releases
571+
- [Ruby Gems v4.0.1] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.0.1 - .

docs/models/operations/postworkspaceeventsresponse.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
8-
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
9-
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
10-
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
8+
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `error` | [T.nilable(::SpeakeasyClientSDK::Shared::Error)](../../models/shared/error.md) | :heavy_minus_sign: | N/A |
10+
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
11+
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ generation:
88
parameterOrderingFeb2024: false
99
requestResponseComponentNamesFeb2024: false
1010
ruby:
11-
version: 4.0.0
11+
version: 4.0.1
1212
author: Speakeasy
1313
description: Ruby Client SDK Generated by Speakeasy
1414
imports:

lib/speakeasy_client_sdk/events.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def post_workspace_events(request)
3636
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
3737
headers['content-type'] = req_content_type
3838
raise StandardError, 'request body is required' if data.nil? && form.nil?
39-
headers['Accept'] = '*/*'
39+
headers['Accept'] = 'application/json'
4040
headers['user-agent'] = @sdk_configuration.user_agent
4141

4242
r = @sdk_configuration.client.post(url) do |req|
@@ -56,7 +56,13 @@ def post_workspace_events(request)
5656
res = ::SpeakeasyClientSDK::Operations::PostWorkspaceEventsResponse.new(
5757
status_code: r.status, content_type: content_type, raw_response: r
5858
)
59-
59+
if r.status >= 200 && r.status < 300
60+
elsif r.status >= 500 && r.status < 600
61+
if Utils.match_content_type(content_type, 'application/json')
62+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
63+
res.error = out
64+
end
65+
end
6066
res
6167
end
6268
end

lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ class PostWorkspaceEventsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
1818
# HTTP response status code for this operation
1919
field :status_code, ::Integer
2020

21+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
2122

22-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
23-
def initialize(content_type: nil, raw_response: nil, status_code: nil)
23+
24+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
25+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
2426
@content_type = content_type
2527
@raw_response = raw_response
2628
@status_code = status_code
29+
@error = error
2730
end
2831
end
2932
end

lib/speakeasy_client_sdk/sdkconfiguration.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def initialize(client, security, server_url, server_idx, globals)
4141
@globals = globals.nil? ? {} : globals
4242
@language = 'ruby'
4343
@openapi_doc_version = '0.4.0'
44-
@sdk_version = '4.0.0'
45-
@gen_version = '2.250.16'
46-
@user_agent = 'speakeasy-sdk/ruby 4.0.0 2.250.16 0.4.0 speakeasy_client_sdk_ruby'
44+
@sdk_version = '4.0.1'
45+
@gen_version = '2.250.21'
46+
@user_agent = 'speakeasy-sdk/ruby 4.0.1 2.250.21 0.4.0 speakeasy_client_sdk_ruby'
4747
end
4848

4949
sig { returns([String, T::Hash[Symbol, String]]) }

speakeasy_client_sdk_ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
44

55
Gem::Specification.new do |s|
66
s.name = 'speakeasy_client_sdk_ruby'
7-
s.version = '4.0.0'
7+
s.version = '4.0.1'
88
s.platform = Gem::Platform::RUBY
99
s.licenses = ['Apache-2.0']
1010
s.summary = ''

0 commit comments

Comments
 (0)