speakeasy_client_sdk_ruby 4.1.8 → 4.1.10
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/artifacts.rb +47 -0
- data/lib/speakeasy_client_sdk/events.rb +49 -47
- data/lib/speakeasy_client_sdk/models/operations/{getworkspaceevents_request.rb → getworkspaceeventsbytarget_request.rb} +6 -6
- data/lib/speakeasy_client_sdk/models/operations/{getworkspaceeventsbysourcerevisiondigest_response.rb → getworkspaceeventsbytarget_response.rb} +1 -1
- data/lib/speakeasy_client_sdk/models/operations/posttags_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/posttags_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/{getworkspaceevents_response.rb → searchworkspaceevents_response.rb} +1 -1
- data/lib/speakeasy_client_sdk/models/operations.rb +6 -4
- data/lib/speakeasy_client_sdk/models/shared/addtags.rb +27 -0
- data/lib/speakeasy_client_sdk/models/shared.rb +1 -0
- data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
- metadata +9 -6
- data/lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_request.rb +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8d57464136517c9da05b3a027580342cb8be8a11d038dfe3622446c78f81002
|
4
|
+
data.tar.gz: 5b4330d693c9c72d824fd75517d46819466b26efa9141ae3ceb378faf654ec39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77cef5f8b867d9828b3ae071e69532835bcbf3cc0d3ceec3e70b858230c30ab9f98eb36da22fa08ea838659b8e74be02639a03efba1b3db7908f7a67e85dd77e
|
7
|
+
data.tar.gz: 92022be2d75140ee1aeb04341266018a5c9bc26a056c73f79726f25668c1c4c53752a4880d793b73cbc6d4f995d9f2f1cbaa46446b0c301440e7aa258712076e
|
@@ -223,6 +223,53 @@ module SpeakeasyClientSDK
|
|
223
223
|
end
|
224
224
|
|
225
225
|
|
226
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::PostTagsRequest)).returns(::SpeakeasyClientSDK::Operations::PostTagsResponse) }
|
227
|
+
def post_tags(request)
|
228
|
+
# post_tags - Add tags to an existing revision
|
229
|
+
url, params = @sdk_configuration.get_server_details
|
230
|
+
base_url = Utils.template_url(url, params)
|
231
|
+
url = Utils.generate_url(
|
232
|
+
::SpeakeasyClientSDK::Operations::PostTagsRequest,
|
233
|
+
base_url,
|
234
|
+
'/v1/artifacts/namespaces/{namespace_name}/tags',
|
235
|
+
request,
|
236
|
+
@sdk_configuration.globals
|
237
|
+
)
|
238
|
+
headers = {}
|
239
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :add_tags, :json)
|
240
|
+
headers['content-type'] = req_content_type
|
241
|
+
headers['Accept'] = 'application/json'
|
242
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
243
|
+
|
244
|
+
r = @sdk_configuration.client.post(url) do |req|
|
245
|
+
req.headers = headers
|
246
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
247
|
+
if form
|
248
|
+
req.body = Utils.encode_form(form)
|
249
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
250
|
+
req.body = URI.encode_www_form(data)
|
251
|
+
else
|
252
|
+
req.body = data
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
257
|
+
|
258
|
+
res = ::SpeakeasyClientSDK::Operations::PostTagsResponse.new(
|
259
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
260
|
+
)
|
261
|
+
if r.status == 200
|
262
|
+
else
|
263
|
+
|
264
|
+
if Utils.match_content_type(content_type, 'application/json')
|
265
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
266
|
+
res.error = out
|
267
|
+
end
|
268
|
+
end
|
269
|
+
res
|
270
|
+
end
|
271
|
+
|
272
|
+
|
226
273
|
sig { params(request: T.nilable(::SpeakeasyClientSDK::Shared::PreflightRequest)).returns(::SpeakeasyClientSDK::Operations::PreflightResponse) }
|
227
274
|
def preflight(request)
|
228
275
|
# preflight - Get access token for communicating with OCI distribution endpoints
|
@@ -19,20 +19,20 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::
|
23
|
-
def
|
24
|
-
#
|
22
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetWorkspaceEventsByTargetRequest)).returns(::SpeakeasyClientSDK::Operations::GetWorkspaceEventsByTargetResponse) }
|
23
|
+
def get_workspace_events_by_target(request)
|
24
|
+
# get_workspace_events_by_target - Load recent events for a particular workspace
|
25
25
|
url, params = @sdk_configuration.get_server_details
|
26
26
|
base_url = Utils.template_url(url, params)
|
27
27
|
url = Utils.generate_url(
|
28
|
-
::SpeakeasyClientSDK::Operations::
|
28
|
+
::SpeakeasyClientSDK::Operations::GetWorkspaceEventsByTargetRequest,
|
29
29
|
base_url,
|
30
|
-
'/v1/workspace/{workspaceID}/events',
|
30
|
+
'/v1/workspace/{workspaceID}/events/targets/{targetID}/events',
|
31
31
|
request,
|
32
32
|
@sdk_configuration.globals
|
33
33
|
)
|
34
34
|
headers = {}
|
35
|
-
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::
|
35
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetWorkspaceEventsByTargetRequest, request, @sdk_configuration.globals)
|
36
36
|
headers['Accept'] = 'application/json'
|
37
37
|
headers['user-agent'] = @sdk_configuration.user_agent
|
38
38
|
|
@@ -44,7 +44,7 @@ module SpeakeasyClientSDK
|
|
44
44
|
|
45
45
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
46
46
|
|
47
|
-
res = ::SpeakeasyClientSDK::Operations::
|
47
|
+
res = ::SpeakeasyClientSDK::Operations::GetWorkspaceEventsByTargetResponse.new(
|
48
48
|
status_code: r.status, content_type: content_type, raw_response: r
|
49
49
|
)
|
50
50
|
if r.status == 200
|
@@ -62,36 +62,38 @@ module SpeakeasyClientSDK
|
|
62
62
|
end
|
63
63
|
|
64
64
|
|
65
|
-
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::
|
66
|
-
def
|
67
|
-
#
|
65
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsRequest)).returns(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsResponse) }
|
66
|
+
def get_workspace_targets(request)
|
67
|
+
# get_workspace_targets - Load targets for a particular workspace
|
68
68
|
url, params = @sdk_configuration.get_server_details
|
69
69
|
base_url = Utils.template_url(url, params)
|
70
70
|
url = Utils.generate_url(
|
71
|
-
::SpeakeasyClientSDK::Operations::
|
71
|
+
::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsRequest,
|
72
72
|
base_url,
|
73
|
-
'/v1/workspace/{workspaceID}/events/
|
73
|
+
'/v1/workspace/{workspaceID}/events/targets',
|
74
74
|
request,
|
75
75
|
@sdk_configuration.globals
|
76
76
|
)
|
77
77
|
headers = {}
|
78
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsRequest, request, @sdk_configuration.globals)
|
78
79
|
headers['Accept'] = 'application/json'
|
79
80
|
headers['user-agent'] = @sdk_configuration.user_agent
|
80
81
|
|
81
82
|
r = @sdk_configuration.client.get(url) do |req|
|
82
83
|
req.headers = headers
|
84
|
+
req.params = query_params
|
83
85
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
84
86
|
end
|
85
87
|
|
86
88
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
87
89
|
|
88
|
-
res = ::SpeakeasyClientSDK::Operations::
|
90
|
+
res = ::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsResponse.new(
|
89
91
|
status_code: r.status, content_type: content_type, raw_response: r
|
90
92
|
)
|
91
93
|
if r.status == 200
|
92
94
|
if Utils.match_content_type(content_type, 'application/json')
|
93
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::
|
94
|
-
res.
|
95
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])
|
96
|
+
res.target_sdk_list = out
|
95
97
|
end
|
96
98
|
elsif r.status >= 500 && r.status < 600
|
97
99
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -103,39 +105,44 @@ module SpeakeasyClientSDK
|
|
103
105
|
end
|
104
106
|
|
105
107
|
|
106
|
-
sig { params(request:
|
107
|
-
def
|
108
|
-
#
|
108
|
+
sig { params(request: ::SpeakeasyClientSDK::Operations::PostWorkspaceEventsRequest).returns(::SpeakeasyClientSDK::Operations::PostWorkspaceEventsResponse) }
|
109
|
+
def post_workspace_events(request)
|
110
|
+
# post_workspace_events - Post events for a specific workspace
|
111
|
+
# Sends an array of events to be stored for a particular workspace.
|
109
112
|
url, params = @sdk_configuration.get_server_details
|
110
113
|
base_url = Utils.template_url(url, params)
|
111
114
|
url = Utils.generate_url(
|
112
|
-
::SpeakeasyClientSDK::Operations::
|
115
|
+
::SpeakeasyClientSDK::Operations::PostWorkspaceEventsRequest,
|
113
116
|
base_url,
|
114
|
-
'/v1/workspace/{workspaceID}/events
|
117
|
+
'/v1/workspace/{workspaceID}/events',
|
115
118
|
request,
|
116
119
|
@sdk_configuration.globals
|
117
120
|
)
|
118
121
|
headers = {}
|
119
|
-
|
122
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
123
|
+
headers['content-type'] = req_content_type
|
124
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
120
125
|
headers['Accept'] = 'application/json'
|
121
126
|
headers['user-agent'] = @sdk_configuration.user_agent
|
122
127
|
|
123
|
-
r = @sdk_configuration.client.
|
128
|
+
r = @sdk_configuration.client.post(url) do |req|
|
124
129
|
req.headers = headers
|
125
|
-
req.params = query_params
|
126
130
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
131
|
+
if form
|
132
|
+
req.body = Utils.encode_form(form)
|
133
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
134
|
+
req.body = URI.encode_www_form(data)
|
135
|
+
else
|
136
|
+
req.body = data
|
137
|
+
end
|
127
138
|
end
|
128
139
|
|
129
140
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
130
141
|
|
131
|
-
res = ::SpeakeasyClientSDK::Operations::
|
142
|
+
res = ::SpeakeasyClientSDK::Operations::PostWorkspaceEventsResponse.new(
|
132
143
|
status_code: r.status, content_type: content_type, raw_response: r
|
133
144
|
)
|
134
|
-
if r.status
|
135
|
-
if Utils.match_content_type(content_type, 'application/json')
|
136
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])
|
137
|
-
res.target_sdk_list = out
|
138
|
-
end
|
145
|
+
if r.status >= 200 && r.status < 300
|
139
146
|
elsif r.status >= 500 && r.status < 600
|
140
147
|
if Utils.match_content_type(content_type, 'application/json')
|
141
148
|
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
@@ -146,44 +153,39 @@ module SpeakeasyClientSDK
|
|
146
153
|
end
|
147
154
|
|
148
155
|
|
149
|
-
sig { params(request: ::SpeakeasyClientSDK::Operations::
|
150
|
-
def
|
151
|
-
#
|
152
|
-
# Sends an array of events to be stored for a particular workspace.
|
156
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::SearchWorkspaceEventsRequest)).returns(::SpeakeasyClientSDK::Operations::SearchWorkspaceEventsResponse) }
|
157
|
+
def search_workspace_events(request)
|
158
|
+
# search_workspace_events - Search events for a particular workspace by any field
|
153
159
|
url, params = @sdk_configuration.get_server_details
|
154
160
|
base_url = Utils.template_url(url, params)
|
155
161
|
url = Utils.generate_url(
|
156
|
-
::SpeakeasyClientSDK::Operations::
|
162
|
+
::SpeakeasyClientSDK::Operations::SearchWorkspaceEventsRequest,
|
157
163
|
base_url,
|
158
164
|
'/v1/workspace/{workspaceID}/events',
|
159
165
|
request,
|
160
166
|
@sdk_configuration.globals
|
161
167
|
)
|
162
168
|
headers = {}
|
163
|
-
|
164
|
-
headers['content-type'] = req_content_type
|
165
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
169
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::SearchWorkspaceEventsRequest, request, @sdk_configuration.globals)
|
166
170
|
headers['Accept'] = 'application/json'
|
167
171
|
headers['user-agent'] = @sdk_configuration.user_agent
|
168
172
|
|
169
|
-
r = @sdk_configuration.client.
|
173
|
+
r = @sdk_configuration.client.get(url) do |req|
|
170
174
|
req.headers = headers
|
175
|
+
req.params = query_params
|
171
176
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
172
|
-
if form
|
173
|
-
req.body = Utils.encode_form(form)
|
174
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
175
|
-
req.body = URI.encode_www_form(data)
|
176
|
-
else
|
177
|
-
req.body = data
|
178
|
-
end
|
179
177
|
end
|
180
178
|
|
181
179
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
182
180
|
|
183
|
-
res = ::SpeakeasyClientSDK::Operations::
|
181
|
+
res = ::SpeakeasyClientSDK::Operations::SearchWorkspaceEventsResponse.new(
|
184
182
|
status_code: r.status, content_type: content_type, raw_response: r
|
185
183
|
)
|
186
|
-
if r.status
|
184
|
+
if r.status == 200
|
185
|
+
if Utils.match_content_type(content_type, 'application/json')
|
186
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::CliEvent])
|
187
|
+
res.cli_event_batch = out
|
188
|
+
end
|
187
189
|
elsif r.status >= 500 && r.status < 600
|
188
190
|
if Utils.match_content_type(content_type, 'application/json')
|
189
191
|
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
@@ -8,21 +8,21 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class GetWorkspaceEventsByTargetRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target)
|
15
|
+
field :target_id, ::String, { 'path_param': { 'field_name': 'targetID', 'style': 'simple', 'explode': false } }
|
14
16
|
# Filter to only return events created after this timestamp
|
15
17
|
field :after_created_at, T.nilable(::DateTime), { 'query_param': { 'field_name': 'after_created_at', 'style': 'form', 'explode': true } }
|
16
|
-
# Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target)
|
17
|
-
field :generate_gen_lock_id, T.nilable(::String), { 'query_param': { 'field_name': 'generate_gen_lock_id', 'style': 'form', 'explode': true } }
|
18
18
|
# Unique identifier of the workspace.
|
19
19
|
field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
22
|
+
sig { params(target_id: ::String, after_created_at: T.nilable(::DateTime), workspace_id: T.nilable(::String)).void }
|
23
|
+
def initialize(target_id: nil, after_created_at: nil, workspace_id: nil)
|
24
|
+
@target_id = target_id
|
24
25
|
@after_created_at = after_created_at
|
25
|
-
@generate_gen_lock_id = generate_gen_lock_id
|
26
26
|
@workspace_id = workspace_id
|
27
27
|
end
|
28
28
|
end
|
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class GetWorkspaceEventsByTargetResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class PostTagsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
|
16
|
+
# A JSON representation of the tags to add
|
17
|
+
field :add_tags, T.nilable(::SpeakeasyClientSDK::Shared::AddTags), { 'request': { 'media_type': 'application/json' } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(namespace_name: ::String, add_tags: T.nilable(::SpeakeasyClientSDK::Shared::AddTags)).void }
|
21
|
+
def initialize(namespace_name: nil, add_tags: nil)
|
22
|
+
@namespace_name = namespace_name
|
23
|
+
@add_tags = add_tags
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
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 PostTagsResponse < ::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
|
@@ -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 SearchWorkspaceEventsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Unique identifier of the lint report digest.
|
15
|
+
field :lint_report_digest, T.nilable(::String), { 'query_param': { 'field_name': 'lint_report_digest', 'style': 'form', 'explode': true } }
|
16
|
+
# Unique identifier of the openapi diff report digest.
|
17
|
+
field :openapi_diff_report_digest, T.nilable(::String), { 'query_param': { 'field_name': 'openapi_diff_report_digest', 'style': 'form', 'explode': true } }
|
18
|
+
# Unique identifier of the source revision digest.
|
19
|
+
field :source_revision_digest, T.nilable(::String), { 'query_param': { 'field_name': 'source_revision_digest', 'style': 'form', 'explode': true } }
|
20
|
+
# Unique identifier of the workspace.
|
21
|
+
field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(lint_report_digest: T.nilable(::String), openapi_diff_report_digest: T.nilable(::String), source_revision_digest: T.nilable(::String), workspace_id: T.nilable(::String)).void }
|
25
|
+
def initialize(lint_report_digest: nil, openapi_diff_report_digest: nil, source_revision_digest: nil, workspace_id: nil)
|
26
|
+
@lint_report_digest = lint_report_digest
|
27
|
+
@openapi_diff_report_digest = openapi_diff_report_digest
|
28
|
+
@source_revision_digest = source_revision_digest
|
29
|
+
@workspace_id = workspace_id
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class SearchWorkspaceEventsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -68,6 +68,8 @@ module SpeakeasyClientSDK
|
|
68
68
|
autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/operations/getrevisions_response.rb'
|
69
69
|
autoload :GetTagsRequest, 'speakeasy_client_sdk/models/operations/gettags_request.rb'
|
70
70
|
autoload :GetTagsResponse, 'speakeasy_client_sdk/models/operations/gettags_response.rb'
|
71
|
+
autoload :PostTagsRequest, 'speakeasy_client_sdk/models/operations/posttags_request.rb'
|
72
|
+
autoload :PostTagsResponse, 'speakeasy_client_sdk/models/operations/posttags_response.rb'
|
71
73
|
autoload :PreflightResponse, 'speakeasy_client_sdk/models/operations/preflight_response.rb'
|
72
74
|
autoload :GetAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getaccesstoken_request.rb'
|
73
75
|
autoload :GetAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getaccesstoken_response.rb'
|
@@ -97,13 +99,13 @@ module SpeakeasyClientSDK
|
|
97
99
|
autoload :GetValidEmbedAccessTokensResponse, 'speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb'
|
98
100
|
autoload :RevokeEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb'
|
99
101
|
autoload :RevokeEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb'
|
100
|
-
autoload :
|
101
|
-
autoload :
|
102
|
-
autoload :GetWorkspaceEventsBySourceRevisionDigestRequest, 'speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_request.rb'
|
103
|
-
autoload :GetWorkspaceEventsBySourceRevisionDigestResponse, 'speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_response.rb'
|
102
|
+
autoload :GetWorkspaceEventsByTargetRequest, 'speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_request.rb'
|
103
|
+
autoload :GetWorkspaceEventsByTargetResponse, 'speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_response.rb'
|
104
104
|
autoload :GetWorkspaceTargetsRequest, 'speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb'
|
105
105
|
autoload :GetWorkspaceTargetsResponse, 'speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb'
|
106
106
|
autoload :PostWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb'
|
107
107
|
autoload :PostWorkspaceEventsResponse, 'speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb'
|
108
|
+
autoload :SearchWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/searchworkspaceevents_request.rb'
|
109
|
+
autoload :SearchWorkspaceEventsResponse, 'speakeasy_client_sdk/models/operations/searchworkspaceevents_response.rb'
|
108
110
|
end
|
109
111
|
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
|
+
# Request body of tags to add to a revision
|
11
|
+
class AddTags < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# revision digest to add tags too sha256:...
|
15
|
+
field :revision_digest, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revision_digest') } }
|
16
|
+
# string tags to add to the revision
|
17
|
+
field :tags, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('tags') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(revision_digest: ::String, tags: T::Array[::String]).void }
|
21
|
+
def initialize(revision_digest: nil, tags: nil)
|
22
|
+
@revision_digest = revision_digest
|
23
|
+
@tags = tags
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -25,6 +25,7 @@ module SpeakeasyClientSDK
|
|
25
25
|
autoload :Revision, 'speakeasy_client_sdk/models/shared/revision.rb'
|
26
26
|
autoload :GetTagsResponse, 'speakeasy_client_sdk/models/shared/gettagsresponse.rb'
|
27
27
|
autoload :Tag, 'speakeasy_client_sdk/models/shared/tag.rb'
|
28
|
+
autoload :AddTags, 'speakeasy_client_sdk/models/shared/addtags.rb'
|
28
29
|
autoload :PreflightToken, 'speakeasy_client_sdk/models/shared/preflighttoken.rb'
|
29
30
|
autoload :PreflightRequest, 'speakeasy_client_sdk/models/shared/preflightrequest.rb'
|
30
31
|
autoload :Claims, 'speakeasy_client_sdk/models/shared/claims.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.1.
|
45
|
-
@gen_version = '2.
|
46
|
-
@user_agent = 'speakeasy-sdk/ruby 4.1.
|
44
|
+
@sdk_version = '4.1.10'
|
45
|
+
@gen_version = '2.319.10'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.1.10 2.319.10 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.1.
|
4
|
+
version: 4.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -221,15 +221,15 @@ files:
|
|
221
221
|
- lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb
|
222
222
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_request.rb
|
223
223
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb
|
224
|
-
- lib/speakeasy_client_sdk/models/operations/
|
225
|
-
- lib/speakeasy_client_sdk/models/operations/
|
226
|
-
- lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_request.rb
|
227
|
-
- lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_response.rb
|
224
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_request.rb
|
225
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_response.rb
|
228
226
|
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb
|
229
227
|
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb
|
230
228
|
- lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
|
231
229
|
- lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb
|
232
230
|
- lib/speakeasy_client_sdk/models/operations/op.rb
|
231
|
+
- lib/speakeasy_client_sdk/models/operations/posttags_request.rb
|
232
|
+
- lib/speakeasy_client_sdk/models/operations/posttags_response.rb
|
233
233
|
- lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb
|
234
234
|
- lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb
|
235
235
|
- lib/speakeasy_client_sdk/models/operations/preflight_response.rb
|
@@ -242,6 +242,8 @@ files:
|
|
242
242
|
- lib/speakeasy_client_sdk/models/operations/registerschema_response.rb
|
243
243
|
- lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb
|
244
244
|
- lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb
|
245
|
+
- lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_request.rb
|
246
|
+
- lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_response.rb
|
245
247
|
- lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb
|
246
248
|
- lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb
|
247
249
|
- lib/speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb
|
@@ -256,6 +258,7 @@ files:
|
|
256
258
|
- lib/speakeasy_client_sdk/models/shared/accesstoken_account_type.rb
|
257
259
|
- lib/speakeasy_client_sdk/models/shared/accesstoken_user.rb
|
258
260
|
- lib/speakeasy_client_sdk/models/shared/account_type.rb
|
261
|
+
- lib/speakeasy_client_sdk/models/shared/addtags.rb
|
259
262
|
- lib/speakeasy_client_sdk/models/shared/annotations.rb
|
260
263
|
- lib/speakeasy_client_sdk/models/shared/api.rb
|
261
264
|
- lib/speakeasy_client_sdk/models/shared/api_input.rb
|
data/lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_request.rb
DELETED
@@ -1,27 +0,0 @@
|
|
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 GetWorkspaceEventsBySourceRevisionDigestRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# Unique identifier of the source revision digest.
|
15
|
-
field :source_revision_digest, ::String, { 'path_param': { 'field_name': 'sourceRevisionDigest', 'style': 'simple', 'explode': false } }
|
16
|
-
# Unique identifier of the workspace.
|
17
|
-
field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
|
18
|
-
|
19
|
-
|
20
|
-
sig { params(source_revision_digest: ::String, workspace_id: T.nilable(::String)).void }
|
21
|
-
def initialize(source_revision_digest: nil, workspace_id: nil)
|
22
|
-
@source_revision_digest = source_revision_digest
|
23
|
-
@workspace_id = workspace_id
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|