Skip to content

Commit d36f9ca

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.277.8
1 parent fda34c0 commit d36f9ca

File tree

17 files changed

+243
-13
lines changed

17 files changed

+243
-13
lines changed

.speakeasy/gen.lock

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: f5719c92-1297-4aa0-bc5f-37116859d1e3
33
management:
4-
docChecksum: e87f7661ef116d09df25c842b1032981
4+
docChecksum: 1710218668d467d8f56c88d745bfdf80
55
docVersion: 0.4.0 .
6-
speakeasyVersion: 1.277.0
7-
generationVersion: 2.317.0
8-
releaseVersion: 4.1.9
9-
configChecksum: ddad15a1c74b9e69042967f27a2ea41d
6+
speakeasyVersion: 1.277.8
7+
generationVersion: 2.319.10
8+
releaseVersion: 4.1.10
9+
configChecksum: 4f9fd4e22a6f1daa8c5743baafa391a2
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
1313
published: true
1414
features:
1515
ruby:
16-
core: 3.2.11
16+
core: 3.2.12
1717
examples: 2.81.3
1818
globalSecurity: 2.81.6
1919
globalServerURLs: 2.82.3
@@ -145,6 +145,8 @@ generatedFiles:
145145
- lib/speakeasy_client_sdk/models/operations/getrevisions_response.rb
146146
- lib/speakeasy_client_sdk/models/operations/gettags_request.rb
147147
- lib/speakeasy_client_sdk/models/operations/gettags_response.rb
148+
- lib/speakeasy_client_sdk/models/operations/posttags_request.rb
149+
- lib/speakeasy_client_sdk/models/operations/posttags_response.rb
148150
- lib/speakeasy_client_sdk/models/operations/preflight_response.rb
149151
- lib/speakeasy_client_sdk/models/operations/getaccesstoken_request.rb
150152
- lib/speakeasy_client_sdk/models/operations/getaccesstoken_response.rb
@@ -202,6 +204,7 @@ generatedFiles:
202204
- lib/speakeasy_client_sdk/models/shared/revision.rb
203205
- lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb
204206
- lib/speakeasy_client_sdk/models/shared/tag.rb
207+
- lib/speakeasy_client_sdk/models/shared/addtags.rb
205208
- lib/speakeasy_client_sdk/models/shared/preflighttoken.rb
206209
- lib/speakeasy_client_sdk/models/shared/preflightrequest.rb
207210
- lib/speakeasy_client_sdk/models/shared/claims.rb
@@ -298,6 +301,8 @@ generatedFiles:
298301
- docs/models/operations/getrevisionsresponse.md
299302
- docs/models/operations/gettagsrequest.md
300303
- docs/models/operations/gettagsresponse.md
304+
- docs/models/operations/posttagsrequest.md
305+
- docs/models/operations/posttagsresponse.md
301306
- docs/models/operations/preflightresponse.md
302307
- docs/models/operations/getaccesstokenrequest.md
303308
- docs/models/operations/getaccesstokenresponse.md
@@ -355,6 +360,7 @@ generatedFiles:
355360
- docs/models/shared/revision.md
356361
- docs/models/shared/gettagsresponse.md
357362
- docs/models/shared/tag.md
363+
- docs/models/shared/addtags.md
358364
- docs/models/shared/preflighttoken.md
359365
- docs/models/shared/preflightrequest.md
360366
- docs/models/shared/claims.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.1.9)
4+
speakeasy_client_sdk_ruby (4.1.10)
55
faraday
66
faraday-multipart
77
rack

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ end
8383
* [get_namespaces](docs/sdks/artifacts/README.md#get_namespaces) - Each namespace contains many revisions.
8484
* [get_revisions](docs/sdks/artifacts/README.md#get_revisions)
8585
* [get_tags](docs/sdks/artifacts/README.md#get_tags)
86+
* [post_tags](docs/sdks/artifacts/README.md#post_tags) - Add tags to an existing revision
8687
* [preflight](docs/sdks/artifacts/README.md#preflight) - Get access token for communicating with OCI distribution endpoints
8788

8889
### [Auth](docs/sdks/auth/README.md)

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,4 +828,14 @@ Based on:
828828
### Generated
829829
- [ruby v4.1.9] .
830830
### Releases
831-
- [Ruby Gems v4.1.9] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.1.9 - .
831+
- [Ruby Gems v4.1.9] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.1.9 - .
832+
833+
## 2024-05-03 00:03:18
834+
### Changes
835+
Based on:
836+
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
837+
- Speakeasy CLI 1.277.8 (2.319.10) https://github.com/speakeasy-api/speakeasy
838+
### Generated
839+
- [ruby v4.1.10] .
840+
### Releases
841+
- [Ruby Gems v4.1.10] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.1.10 - .
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PostTagsRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
8+
| `add_tags` | [T.nilable(::SpeakeasyClientSDK::Shared::AddTags)](../../models/shared/addtags.md) | :heavy_minus_sign: | A JSON representation of the tags to add |
9+
| `namespace_name` | *::String* | :heavy_check_mark: | N/A |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# PostTagsResponse
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+
| `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 |

docs/models/shared/addtags.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# AddTags
2+
3+
Request body of tags to add to a revision
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
10+
| `revision_digest` | *::String* | :heavy_check_mark: | revision digest to add tags too sha256:... |
11+
| `tags` | T::Array<*::String*> | :heavy_check_mark: | string tags to add to the revision |

docs/sdks/artifacts/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* [get_namespaces](#get_namespaces) - Each namespace contains many revisions.
99
* [get_revisions](#get_revisions)
1010
* [get_tags](#get_tags)
11+
* [post_tags](#post_tags) - Add tags to an existing revision
1112
* [preflight](#preflight) - Get access token for communicating with OCI distribution endpoints
1213

1314
## get_blob
@@ -222,6 +223,50 @@ end
222223
**[T.nilable(::SpeakeasyClientSDK::Operations::GetTagsResponse)](../../models/operations/gettagsresponse.md)**
223224

224225

226+
## post_tags
227+
228+
Add tags to an existing revision
229+
230+
### Example Usage
231+
232+
```ruby
233+
require 'speakeasy_client_sdk_ruby'
234+
235+
236+
s = ::SpeakeasyClientSDK::SDK.new(
237+
workspace_id: "<value>",
238+
)
239+
s.config_security(
240+
::SpeakeasyClientSDK::Shared::Security.new(
241+
api_key: "<YOUR_API_KEY_HERE>",
242+
)
243+
)
244+
245+
246+
req = ::SpeakeasyClientSDK::Operations::PostTagsRequest.new(
247+
namespace_name: "<value>",
248+
)
249+
250+
res = s.artifacts.post_tags(req)
251+
252+
if res.status_code == 200
253+
# handle response
254+
end
255+
256+
```
257+
258+
### Parameters
259+
260+
| Parameter | Type | Required | Description |
261+
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
262+
| `request` | [::SpeakeasyClientSDK::Operations::PostTagsRequest](../../models/operations/posttagsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
263+
264+
265+
### Response
266+
267+
**[T.nilable(::SpeakeasyClientSDK::Operations::PostTagsResponse)](../../models/operations/posttagsresponse.md)**
268+
269+
225270
## preflight
226271

227272
Get access token for communicating with OCI distribution endpoints

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.1.9
13+
version: 4.1.10
1414
author: Speakeasy
1515
description: Ruby Client SDK Generated by Speakeasy
1616
imports:

lib/speakeasy_client_sdk/artifacts.rb

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,53 @@ def get_tags(request)
223223
end
224224

225225

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+
226273
sig { params(request: T.nilable(::SpeakeasyClientSDK::Shared::PreflightRequest)).returns(::SpeakeasyClientSDK::Operations::PreflightResponse) }
227274
def preflight(request)
228275
# preflight - Get access token for communicating with OCI distribution endpoints

0 commit comments

Comments
 (0)