Skip to content

Commit 19c001a

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.310.0
1 parent be48fc1 commit 19c001a

17 files changed

+239
-12
lines changed

.speakeasy/gen.lock

Lines changed: 11 additions & 5 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: faf7375f0e20304e1fb56c4a4b633e29
4+
docChecksum: eb530f662240663b5cb067995daf351c
55
docVersion: 0.4.0 .
6-
speakeasyVersion: 1.308.2
7-
generationVersion: 2.342.6
8-
releaseVersion: 4.2.6
9-
configChecksum: d2d4d5af5f88c69c89cf6cfddf70629d
6+
speakeasyVersion: 1.310.0
7+
generationVersion: 2.347.4
8+
releaseVersion: 4.2.7
9+
configChecksum: ae4a9158d79ed02d1132019fe59c2091
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
@@ -163,6 +163,8 @@ generatedFiles:
163163
- lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb
164164
- lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb
165165
- lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb
166+
- lib/speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb
167+
- lib/speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb
166168
- lib/speakeasy_client_sdk/models/operations/githubcheckaccess_request.rb
167169
- lib/speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb
168170
- lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb
@@ -242,6 +244,7 @@ generatedFiles:
242244
- lib/speakeasy_client_sdk/models/shared/requestmetadata.rb
243245
- lib/speakeasy_client_sdk/models/shared/filters.rb
244246
- lib/speakeasy_client_sdk/models/shared/filter.rb
247+
- lib/speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb
245248
- lib/speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb
246249
- lib/speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb
247250
- lib/speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb
@@ -341,6 +344,8 @@ generatedFiles:
341344
- docs/models/operations/getrequestfromeventlogresponse.md
342345
- docs/models/operations/queryeventlogrequest.md
343346
- docs/models/operations/queryeventlogresponse.md
347+
- docs/models/operations/fetchpublishingprsrequest.md
348+
- docs/models/operations/fetchpublishingprsresponse.md
344349
- docs/models/operations/githubcheckaccessrequest.md
345350
- docs/models/operations/githubcheckaccessresponse.md
346351
- docs/models/operations/githubcheckpublishingsecretsrequest.md
@@ -420,6 +425,7 @@ generatedFiles:
420425
- docs/models/shared/requestmetadata.md
421426
- docs/models/shared/filters.md
422427
- docs/models/shared/filter.md
428+
- docs/models/shared/githubpublishingprresponse.md
423429
- docs/models/shared/githubmissingpublishingsecretsresponse.md
424430
- docs/models/shared/githubconfiguretargetrequest.md
425431
- docs/models/shared/githubstorepublishingsecretsrequest.md

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
speakeasy_client_sdk_ruby (4.2.6)
4+
speakeasy_client_sdk_ruby (4.2.7)
55
faraday
66
faraday-multipart
77
rack

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ end
9999

100100
### [Github](docs/sdks/github/README.md)
101101

102+
* [fetch_publishing_p_rs](docs/sdks/github/README.md#fetch_publishing_p_rs)
102103
* [github_check_access](docs/sdks/github/README.md#github_check_access)
103104
* [github_check_publishing_secrets](docs/sdks/github/README.md#github_check_publishing_secrets)
104105
* [github_configure_target](docs/sdks/github/README.md#github_configure_target)

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,4 +938,14 @@ Based on:
938938
### Generated
939939
- [ruby v4.2.6] .
940940
### Releases
941-
- [Ruby Gems v4.2.6] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.6 - .
941+
- [Ruby Gems v4.2.6] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.6 - .
942+
943+
## 2024-06-20 00:03:01
944+
### Changes
945+
Based on:
946+
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
947+
- Speakeasy CLI 1.310.0 (2.347.4) https://github.com/speakeasy-api/speakeasy
948+
### Generated
949+
- [ruby v4.2.7] .
950+
### Releases
951+
- [Ruby Gems v4.2.7] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.7 - .
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# FetchPublishingPRsRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------- | ---------------------- | ---------------------- | ---------------------- |
8+
| `generate_gen_lock_id` | *::String* | :heavy_check_mark: | N/A |
9+
| `org` | *::String* | :heavy_check_mark: | N/A |
10+
| `repo` | *::String* | :heavy_check_mark: | N/A |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# FetchPublishingPRsResponse
2+
3+
4+
## Fields
5+
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: | Default error response |
10+
| `github_publishing_pr_response` | [T.nilable(::SpeakeasyClientSDK::Shared::GithubPublishingPRResponse)](../../models/shared/githubpublishingprresponse.md) | :heavy_minus_sign: | OK |
11+
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
12+
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GithubPublishingPRResponse
2+
3+
Open generation PRs pending publishing
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------- | ------------------------- | ------------------------- | ------------------------- |
10+
| `generation_pull_request` | *T.nilable(::String)* | :heavy_minus_sign: | N/A |
11+
| `pending_version` | *T.nilable(::String)* | :heavy_minus_sign: | N/A |

docs/sdks/github/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,55 @@
33

44
### Available Operations
55

6+
* [fetch_publishing_p_rs](#fetch_publishing_p_rs)
67
* [github_check_access](#github_check_access)
78
* [github_check_publishing_secrets](#github_check_publishing_secrets)
89
* [github_configure_target](#github_configure_target)
910
* [github_store_publishing_secrets](#github_store_publishing_secrets)
1011
* [github_trigger_action](#github_trigger_action)
1112

13+
## fetch_publishing_p_rs
14+
15+
### Example Usage
16+
17+
```ruby
18+
require 'speakeasy_client_sdk_ruby'
19+
20+
21+
s = ::SpeakeasyClientSDK::SDK.new
22+
s.config_security(
23+
::SpeakeasyClientSDK::Shared::Security.new(
24+
api_key: "<YOUR_API_KEY_HERE>",
25+
)
26+
)
27+
28+
29+
req = ::SpeakeasyClientSDK::Operations::FetchPublishingPRsRequest.new(
30+
generate_gen_lock_id: "<value>",
31+
org: "<value>",
32+
repo: "<value>",
33+
)
34+
35+
res = s.github.fetch_publishing_p_rs(req)
36+
37+
if ! res.github_publishing_pr_response.nil?
38+
# handle response
39+
end
40+
41+
```
42+
43+
### Parameters
44+
45+
| Parameter | Type | Required | Description |
46+
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
47+
| `request` | [::SpeakeasyClientSDK::Operations::FetchPublishingPRsRequest](../../models/operations/fetchpublishingprsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
48+
49+
50+
### Response
51+
52+
**[T.nilable(::SpeakeasyClientSDK::Operations::FetchPublishingPRsResponse)](../../models/operations/fetchpublishingprsresponse.md)**
53+
54+
1255
## github_check_access
1356

1457
### Example Usage

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
ruby:
13-
version: 4.2.6
13+
version: 4.2.7
1414
author: Speakeasy
1515
description: Ruby Client SDK Generated by Speakeasy
1616
imports:

lib/speakeasy_client_sdk/github.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,44 @@ def initialize(sdk_config)
1919
end
2020

2121

22+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::FetchPublishingPRsRequest)).returns(::SpeakeasyClientSDK::Operations::FetchPublishingPRsResponse) }
23+
def fetch_publishing_p_rs(request)
24+
25+
url, params = @sdk_configuration.get_server_details
26+
base_url = Utils.template_url(url, params)
27+
url = "#{base_url}/v1/github/publishing_prs"
28+
headers = {}
29+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::FetchPublishingPRsRequest, request, @sdk_configuration.globals)
30+
headers['Accept'] = 'application/json'
31+
headers['user-agent'] = @sdk_configuration.user_agent
32+
33+
r = @sdk_configuration.client.get(url) do |req|
34+
req.headers = headers
35+
req.params = query_params
36+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
37+
end
38+
39+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
40+
41+
res = ::SpeakeasyClientSDK::Operations::FetchPublishingPRsResponse.new(
42+
status_code: r.status, content_type: content_type, raw_response: r
43+
)
44+
if r.status == 200
45+
if Utils.match_content_type(content_type, 'application/json')
46+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubPublishingPRResponse)
47+
res.github_publishing_pr_response = out
48+
end
49+
else
50+
51+
if Utils.match_content_type(content_type, 'application/json')
52+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
53+
res.error = out
54+
end
55+
end
56+
res
57+
end
58+
59+
2260
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GithubCheckAccessRequest)).returns(::SpeakeasyClientSDK::Operations::GithubCheckAccessResponse) }
2361
def github_check_access(request)
2462

0 commit comments

Comments
 (0)