speakeasy_client_sdk_ruby 4.2.6 → 4.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/speakeasy_client_sdk/github.rb +38 -0
- data/lib/speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations.rb +2 -0
- data/lib/speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb +27 -0
- data/lib/speakeasy_client_sdk/models/shared.rb +1 -0
- data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aa099f059474f1b0e2aa04fc88e5dc1c2abcf6b8f8d3ea84552cebbe4cfc3e3
|
4
|
+
data.tar.gz: 226ad6aaebf35680b603d2dca36c68b3a553bbd760115362bc4cd0db81dd2aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b61441fb1555af95669364f6e802a599593c4b546bb8a5945c81e778a7fb48f0b5883f108987388fe264a6c1fbcc0ee41a2c2dd115de132da8268c017980ca4
|
7
|
+
data.tar.gz: 8400924b5ee0fd7cd089721e99101291399be2bb4be1671f29c4496642f4b13a016e2169db72935f30bd709ca1d850f73f76323c64aaac593542c51f8448bac4
|
@@ -19,6 +19,44 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
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
|
+
|
22
60
|
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GithubCheckAccessRequest)).returns(::SpeakeasyClientSDK::Operations::GithubCheckAccessResponse) }
|
23
61
|
def github_check_access(request)
|
24
62
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class FetchPublishingPRsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :generate_gen_lock_id, ::String, { 'query_param': { 'field_name': 'generate_gen_lock_id', 'style': 'form', 'explode': true } }
|
16
|
+
|
17
|
+
field :org, ::String, { 'query_param': { 'field_name': 'org', 'style': 'form', 'explode': true } }
|
18
|
+
|
19
|
+
field :repo, ::String, { 'query_param': { 'field_name': 'repo', 'style': 'form', 'explode': true } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(generate_gen_lock_id: ::String, org: ::String, repo: ::String).void }
|
23
|
+
def initialize(generate_gen_lock_id: nil, org: nil, repo: nil)
|
24
|
+
@generate_gen_lock_id = generate_gen_lock_id
|
25
|
+
@org = org
|
26
|
+
@repo = repo
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class FetchPublishingPRsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# Default error response
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
22
|
+
# OK
|
23
|
+
field :github_publishing_pr_response, T.nilable(::SpeakeasyClientSDK::Shared::GithubPublishingPRResponse)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), github_publishing_pr_response: T.nilable(::SpeakeasyClientSDK::Shared::GithubPublishingPRResponse)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, github_publishing_pr_response: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@error = error
|
32
|
+
@github_publishing_pr_response = github_publishing_pr_response
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -83,6 +83,8 @@ module SpeakeasyClientSDK
|
|
83
83
|
autoload :GetRequestFromEventLogResponse, 'speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb'
|
84
84
|
autoload :QueryEventLogRequest, 'speakeasy_client_sdk/models/operations/queryeventlog_request.rb'
|
85
85
|
autoload :QueryEventLogResponse, 'speakeasy_client_sdk/models/operations/queryeventlog_response.rb'
|
86
|
+
autoload :FetchPublishingPRsRequest, 'speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb'
|
87
|
+
autoload :FetchPublishingPRsResponse, 'speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb'
|
86
88
|
autoload :GithubCheckAccessRequest, 'speakeasy_client_sdk/models/operations/githubcheckaccess_request.rb'
|
87
89
|
autoload :GithubCheckAccessResponse, 'speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb'
|
88
90
|
autoload :GithubCheckPublishingSecretsRequest, 'speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# Open generation PRs pending publishing
|
11
|
+
class GithubPublishingPRResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :generation_pull_request, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generation_pull_request') } }
|
16
|
+
|
17
|
+
field :pending_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('pending_version') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(generation_pull_request: T.nilable(::String), pending_version: T.nilable(::String)).void }
|
21
|
+
def initialize(generation_pull_request: nil, pending_version: nil)
|
22
|
+
@generation_pull_request = generation_pull_request
|
23
|
+
@pending_version = pending_version
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -44,6 +44,7 @@ module SpeakeasyClientSDK
|
|
44
44
|
autoload :RequestMetadata, 'speakeasy_client_sdk/models/shared/requestmetadata.rb'
|
45
45
|
autoload :Filters, 'speakeasy_client_sdk/models/shared/filters.rb'
|
46
46
|
autoload :Filter, 'speakeasy_client_sdk/models/shared/filter.rb'
|
47
|
+
autoload :GithubPublishingPRResponse, 'speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb'
|
47
48
|
autoload :GithubMissingPublishingSecretsResponse, 'speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb'
|
48
49
|
autoload :GithubConfigureTargetRequest, 'speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb'
|
49
50
|
autoload :GithubStorePublishingSecretsRequest, 'speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb'
|
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
|
|
41
41
|
@globals = globals.nil? ? {} : globals
|
42
42
|
@language = 'ruby'
|
43
43
|
@openapi_doc_version = '0.4.0 .'
|
44
|
-
@sdk_version = '4.2.
|
45
|
-
@gen_version = '2.
|
46
|
-
@user_agent = 'speakeasy-sdk/ruby 4.2.
|
44
|
+
@sdk_version = '4.2.7'
|
45
|
+
@gen_version = '2.347.4'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.2.7 2.347.4 0.4.0 . speakeasy_client_sdk_ruby'
|
47
47
|
end
|
48
48
|
|
49
49
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: speakeasy_client_sdk_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -165,6 +165,8 @@ files:
|
|
165
165
|
- lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb
|
166
166
|
- lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb
|
167
167
|
- lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb
|
168
|
+
- lib/speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb
|
169
|
+
- lib/speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb
|
168
170
|
- lib/speakeasy_client_sdk/models/operations/file.rb
|
169
171
|
- lib/speakeasy_client_sdk/models/operations/findapiendpoint_request.rb
|
170
172
|
- lib/speakeasy_client_sdk/models/operations/findapiendpoint_response.rb
|
@@ -298,6 +300,7 @@ files:
|
|
298
300
|
- lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb
|
299
301
|
- lib/speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb
|
300
302
|
- lib/speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb
|
303
|
+
- lib/speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb
|
301
304
|
- lib/speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb
|
302
305
|
- lib/speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb
|
303
306
|
- lib/speakeasy_client_sdk/models/shared/interactiontype.rb
|