speakeasy_client_sdk_ruby 4.2.5 → 4.2.6
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 +80 -0
- data/lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations.rb +3 -0
- data/lib/speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb +24 -0
- data/lib/speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb +27 -0
- data/lib/speakeasy_client_sdk/models/shared.rb +2 -0
- data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22c517fa3d744161dfd68672763e9c89ee5c30299e77a749cb572ffc3d43269f
|
4
|
+
data.tar.gz: 23dcfa69d0737146c8efbb4483a82f80e13e912801285dd26f6fbe5ac660744d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0368a037b0fc029555e06c5075e1482ee8797c4324b24fc163798e5be882b2b933da30bf12fdd0065c68f21a337be9fb965054481086d8197bb1231b14413bc
|
7
|
+
data.tar.gz: 584df905018703c5a5cd4b529fe4844a3ed45884f49e9c9164605b8d6ebbe8d397a98c35b6e0fbb4ce7450825cee9907d10de50b41496c06de9b48b4d80a0701
|
@@ -53,6 +53,44 @@ module SpeakeasyClientSDK
|
|
53
53
|
end
|
54
54
|
|
55
55
|
|
56
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsRequest)).returns(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsResponse) }
|
57
|
+
def github_check_publishing_secrets(request)
|
58
|
+
|
59
|
+
url, params = @sdk_configuration.get_server_details
|
60
|
+
base_url = Utils.template_url(url, params)
|
61
|
+
url = "#{base_url}/v1/github/publishing_secrets"
|
62
|
+
headers = {}
|
63
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsRequest, request, @sdk_configuration.globals)
|
64
|
+
headers['Accept'] = 'application/json'
|
65
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
66
|
+
|
67
|
+
r = @sdk_configuration.client.get(url) do |req|
|
68
|
+
req.headers = headers
|
69
|
+
req.params = query_params
|
70
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
71
|
+
end
|
72
|
+
|
73
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
74
|
+
|
75
|
+
res = ::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsResponse.new(
|
76
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
77
|
+
)
|
78
|
+
if r.status == 200
|
79
|
+
if Utils.match_content_type(content_type, 'application/json')
|
80
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubMissingPublishingSecretsResponse)
|
81
|
+
res.github_missing_publishing_secrets_response = out
|
82
|
+
end
|
83
|
+
else
|
84
|
+
|
85
|
+
if Utils.match_content_type(content_type, 'application/json')
|
86
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
87
|
+
res.error = out
|
88
|
+
end
|
89
|
+
end
|
90
|
+
res
|
91
|
+
end
|
92
|
+
|
93
|
+
|
56
94
|
sig { params(request: ::SpeakeasyClientSDK::Shared::GithubConfigureTargetRequest).returns(::SpeakeasyClientSDK::Operations::GithubConfigureTargetResponse) }
|
57
95
|
def github_configure_target(request)
|
58
96
|
|
@@ -95,6 +133,48 @@ module SpeakeasyClientSDK
|
|
95
133
|
end
|
96
134
|
|
97
135
|
|
136
|
+
sig { params(request: ::SpeakeasyClientSDK::Shared::GithubStorePublishingSecretsRequest).returns(::SpeakeasyClientSDK::Operations::GithubStorePublishingSecretsResponse) }
|
137
|
+
def github_store_publishing_secrets(request)
|
138
|
+
|
139
|
+
url, params = @sdk_configuration.get_server_details
|
140
|
+
base_url = Utils.template_url(url, params)
|
141
|
+
url = "#{base_url}/v1/github/publishing_secrets"
|
142
|
+
headers = {}
|
143
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
144
|
+
headers['content-type'] = req_content_type
|
145
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
146
|
+
headers['Accept'] = 'application/json'
|
147
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
148
|
+
|
149
|
+
r = @sdk_configuration.client.post(url) do |req|
|
150
|
+
req.headers = headers
|
151
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
152
|
+
if form
|
153
|
+
req.body = Utils.encode_form(form)
|
154
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
155
|
+
req.body = URI.encode_www_form(data)
|
156
|
+
else
|
157
|
+
req.body = data
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
162
|
+
|
163
|
+
res = ::SpeakeasyClientSDK::Operations::GithubStorePublishingSecretsResponse.new(
|
164
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
165
|
+
)
|
166
|
+
if r.status == 200
|
167
|
+
else
|
168
|
+
|
169
|
+
if Utils.match_content_type(content_type, 'application/json')
|
170
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
171
|
+
res.error = out
|
172
|
+
end
|
173
|
+
end
|
174
|
+
res
|
175
|
+
end
|
176
|
+
|
177
|
+
|
98
178
|
sig { params(request: ::SpeakeasyClientSDK::Shared::GithubTriggerActionRequest).returns(::SpeakeasyClientSDK::Operations::GithubTriggerActionResponse) }
|
99
179
|
def github_trigger_action(request)
|
100
180
|
|
@@ -0,0 +1,24 @@
|
|
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 GithubCheckPublishingSecretsRequest < ::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
|
+
|
18
|
+
sig { params(generate_gen_lock_id: ::String).void }
|
19
|
+
def initialize(generate_gen_lock_id: nil)
|
20
|
+
@generate_gen_lock_id = generate_gen_lock_id
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
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 GithubCheckPublishingSecretsResponse < ::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_missing_publishing_secrets_response, T.nilable(::SpeakeasyClientSDK::Shared::GithubMissingPublishingSecretsResponse)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), github_missing_publishing_secrets_response: T.nilable(::SpeakeasyClientSDK::Shared::GithubMissingPublishingSecretsResponse)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, github_missing_publishing_secrets_response: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@error = error
|
32
|
+
@github_missing_publishing_secrets_response = github_missing_publishing_secrets_response
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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 GithubStorePublishingSecretsResponse < ::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
|
+
|
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)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@error = error
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -85,7 +85,10 @@ module SpeakeasyClientSDK
|
|
85
85
|
autoload :QueryEventLogResponse, 'speakeasy_client_sdk/models/operations/queryeventlog_response.rb'
|
86
86
|
autoload :GithubCheckAccessRequest, 'speakeasy_client_sdk/models/operations/githubcheckaccess_request.rb'
|
87
87
|
autoload :GithubCheckAccessResponse, 'speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb'
|
88
|
+
autoload :GithubCheckPublishingSecretsRequest, 'speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb'
|
89
|
+
autoload :GithubCheckPublishingSecretsResponse, 'speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_response.rb'
|
88
90
|
autoload :GithubConfigureTargetResponse, 'speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb'
|
91
|
+
autoload :GithubStorePublishingSecretsResponse, 'speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb'
|
89
92
|
autoload :GithubTriggerActionResponse, 'speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb'
|
90
93
|
autoload :CreateFreeTrialResponse, 'speakeasy_client_sdk/models/operations/createfreetrial_response.rb'
|
91
94
|
autoload :GetOrganizationUsageResponse, 'speakeasy_client_sdk/models/operations/getorganizationusage_response.rb'
|
@@ -0,0 +1,24 @@
|
|
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
|
+
# A valid response containing MISSING publishing secret keys for a github target
|
11
|
+
class GithubMissingPublishingSecretsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :missing_secrets, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('missing_secrets') } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(missing_secrets: T.nilable(T::Array[::String])).void }
|
19
|
+
def initialize(missing_secrets: nil)
|
20
|
+
@missing_secrets = missing_secrets
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -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
|
+
# A request to store publishing secrets for a github target
|
11
|
+
class GithubStorePublishingSecretsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The generation lock ID
|
15
|
+
field :generate_gen_lock_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_id') } }
|
16
|
+
# A map of secrets to store in the GitHub target
|
17
|
+
field :secrets, T.nilable(T::Hash[Symbol, ::String]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('secrets') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(generate_gen_lock_id: ::String, secrets: T.nilable(T::Hash[Symbol, ::String])).void }
|
21
|
+
def initialize(generate_gen_lock_id: nil, secrets: nil)
|
22
|
+
@generate_gen_lock_id = generate_gen_lock_id
|
23
|
+
@secrets = secrets
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -44,7 +44,9 @@ 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 :GithubMissingPublishingSecretsResponse, 'speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb'
|
47
48
|
autoload :GithubConfigureTargetRequest, 'speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb'
|
49
|
+
autoload :GithubStorePublishingSecretsRequest, 'speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb'
|
48
50
|
autoload :GithubTriggerActionRequest, 'speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb'
|
49
51
|
autoload :OrganizationUsageResponse, 'speakeasy_client_sdk/models/shared/organizationusageresponse.rb'
|
50
52
|
autoload :OrganizationUsage, 'speakeasy_client_sdk/models/shared/organizationusage.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.6'
|
45
|
+
@gen_version = '2.342.6'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.2.6 2.342.6 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.6
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -231,7 +231,10 @@ files:
|
|
231
231
|
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb
|
232
232
|
- lib/speakeasy_client_sdk/models/operations/githubcheckaccess_request.rb
|
233
233
|
- lib/speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb
|
234
|
+
- lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb
|
235
|
+
- lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_response.rb
|
234
236
|
- lib/speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb
|
237
|
+
- lib/speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb
|
235
238
|
- lib/speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb
|
236
239
|
- lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
|
237
240
|
- lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb
|
@@ -294,6 +297,8 @@ files:
|
|
294
297
|
- lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb
|
295
298
|
- lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb
|
296
299
|
- lib/speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb
|
300
|
+
- lib/speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb
|
301
|
+
- lib/speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb
|
297
302
|
- lib/speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb
|
298
303
|
- lib/speakeasy_client_sdk/models/shared/interactiontype.rb
|
299
304
|
- lib/speakeasy_client_sdk/models/shared/level.rb
|