Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.277.8
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed May 3, 2024
1 parent fda34c0 commit d36f9ca
Show file tree
Hide file tree
Showing 17 changed files with 243 additions and 13 deletions.
18 changes: 12 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: f5719c92-1297-4aa0-bc5f-37116859d1e3
management:
docChecksum: e87f7661ef116d09df25c842b1032981
docChecksum: 1710218668d467d8f56c88d745bfdf80
docVersion: 0.4.0 .
speakeasyVersion: 1.277.0
generationVersion: 2.317.0
releaseVersion: 4.1.9
configChecksum: ddad15a1c74b9e69042967f27a2ea41d
speakeasyVersion: 1.277.8
generationVersion: 2.319.10
releaseVersion: 4.1.10
configChecksum: 4f9fd4e22a6f1daa8c5743baafa391a2
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby
published: true
features:
ruby:
core: 3.2.11
core: 3.2.12
examples: 2.81.3
globalSecurity: 2.81.6
globalServerURLs: 2.82.3
Expand Down Expand Up @@ -145,6 +145,8 @@ generatedFiles:
- lib/speakeasy_client_sdk/models/operations/getrevisions_response.rb
- lib/speakeasy_client_sdk/models/operations/gettags_request.rb
- lib/speakeasy_client_sdk/models/operations/gettags_response.rb
- lib/speakeasy_client_sdk/models/operations/posttags_request.rb
- lib/speakeasy_client_sdk/models/operations/posttags_response.rb
- lib/speakeasy_client_sdk/models/operations/preflight_response.rb
- lib/speakeasy_client_sdk/models/operations/getaccesstoken_request.rb
- lib/speakeasy_client_sdk/models/operations/getaccesstoken_response.rb
Expand Down Expand Up @@ -202,6 +204,7 @@ generatedFiles:
- lib/speakeasy_client_sdk/models/shared/revision.rb
- lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb
- lib/speakeasy_client_sdk/models/shared/tag.rb
- lib/speakeasy_client_sdk/models/shared/addtags.rb
- lib/speakeasy_client_sdk/models/shared/preflighttoken.rb
- lib/speakeasy_client_sdk/models/shared/preflightrequest.rb
- lib/speakeasy_client_sdk/models/shared/claims.rb
Expand Down Expand Up @@ -298,6 +301,8 @@ generatedFiles:
- docs/models/operations/getrevisionsresponse.md
- docs/models/operations/gettagsrequest.md
- docs/models/operations/gettagsresponse.md
- docs/models/operations/posttagsrequest.md
- docs/models/operations/posttagsresponse.md
- docs/models/operations/preflightresponse.md
- docs/models/operations/getaccesstokenrequest.md
- docs/models/operations/getaccesstokenresponse.md
Expand Down Expand Up @@ -355,6 +360,7 @@ generatedFiles:
- docs/models/shared/revision.md
- docs/models/shared/gettagsresponse.md
- docs/models/shared/tag.md
- docs/models/shared/addtags.md
- docs/models/shared/preflighttoken.md
- docs/models/shared/preflightrequest.md
- docs/models/shared/claims.md
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
speakeasy_client_sdk_ruby (4.1.9)
speakeasy_client_sdk_ruby (4.1.10)
faraday
faraday-multipart
rack
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ end
* [get_namespaces](docs/sdks/artifacts/README.md#get_namespaces) - Each namespace contains many revisions.
* [get_revisions](docs/sdks/artifacts/README.md#get_revisions)
* [get_tags](docs/sdks/artifacts/README.md#get_tags)
* [post_tags](docs/sdks/artifacts/README.md#post_tags) - Add tags to an existing revision
* [preflight](docs/sdks/artifacts/README.md#preflight) - Get access token for communicating with OCI distribution endpoints

### [Auth](docs/sdks/auth/README.md)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -828,4 +828,14 @@ Based on:
### Generated
- [ruby v4.1.9] .
### Releases
- [Ruby Gems v4.1.9] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.1.9 - .
- [Ruby Gems v4.1.9] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.1.9 - .

## 2024-05-03 00:03:18
### Changes
Based on:
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
- Speakeasy CLI 1.277.8 (2.319.10) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v4.1.10] .
### Releases
- [Ruby Gems v4.1.10] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.1.10 - .
9 changes: 9 additions & 0 deletions docs/models/operations/posttagsrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PostTagsRequest


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `add_tags` | [T.nilable(::SpeakeasyClientSDK::Shared::AddTags)](../../models/shared/addtags.md) | :heavy_minus_sign: | A JSON representation of the tags to add |
| `namespace_name` | *::String* | :heavy_check_mark: | N/A |
11 changes: 11 additions & 0 deletions docs/models/operations/posttagsresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# PostTagsResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [T.nilable(::SpeakeasyClientSDK::Shared::Error)](../../models/shared/error.md) | :heavy_minus_sign: | Default error response |
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11 changes: 11 additions & 0 deletions docs/models/shared/addtags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AddTags

Request body of tags to add to a revision


## Fields

| Field | Type | Required | Description |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| `revision_digest` | *::String* | :heavy_check_mark: | revision digest to add tags too sha256:... |
| `tags` | T::Array<*::String*> | :heavy_check_mark: | string tags to add to the revision |
45 changes: 45 additions & 0 deletions docs/sdks/artifacts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* [get_namespaces](#get_namespaces) - Each namespace contains many revisions.
* [get_revisions](#get_revisions)
* [get_tags](#get_tags)
* [post_tags](#post_tags) - Add tags to an existing revision
* [preflight](#preflight) - Get access token for communicating with OCI distribution endpoints

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


## post_tags

Add tags to an existing revision

### Example Usage

```ruby
require 'speakeasy_client_sdk_ruby'


s = ::SpeakeasyClientSDK::SDK.new(
workspace_id: "<value>",
)
s.config_security(
::SpeakeasyClientSDK::Shared::Security.new(
api_key: "<YOUR_API_KEY_HERE>",
)
)


req = ::SpeakeasyClientSDK::Operations::PostTagsRequest.new(
namespace_name: "<value>",
)

res = s.artifacts.post_tags(req)

if res.status_code == 200
# handle response
end

```

### Parameters

| Parameter | Type | Required | Description |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `request` | [::SpeakeasyClientSDK::Operations::PostTagsRequest](../../models/operations/posttagsrequest.md) | :heavy_check_mark: | The request object to use for the request. |


### Response

**[T.nilable(::SpeakeasyClientSDK::Operations::PostTagsResponse)](../../models/operations/posttagsresponse.md)**


## preflight

Get access token for communicating with OCI distribution endpoints
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
ruby:
version: 4.1.9
version: 4.1.10
author: Speakeasy
description: Ruby Client SDK Generated by Speakeasy
imports:
Expand Down
47 changes: 47 additions & 0 deletions lib/speakeasy_client_sdk/artifacts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,53 @@ def get_tags(request)
end


sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::PostTagsRequest)).returns(::SpeakeasyClientSDK::Operations::PostTagsResponse) }
def post_tags(request)
# post_tags - Add tags to an existing revision
url, params = @sdk_configuration.get_server_details
base_url = Utils.template_url(url, params)
url = Utils.generate_url(
::SpeakeasyClientSDK::Operations::PostTagsRequest,
base_url,
'/v1/artifacts/namespaces/{namespace_name}/tags',
request,
@sdk_configuration.globals
)
headers = {}
req_content_type, data, form = Utils.serialize_request_body(request, :add_tags, :json)
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json'
headers['user-agent'] = @sdk_configuration.user_agent

r = @sdk_configuration.client.post(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
if form
req.body = Utils.encode_form(form)
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
req.body = URI.encode_www_form(data)
else
req.body = data
end
end

content_type = r.headers.fetch('Content-Type', 'application/octet-stream')

res = ::SpeakeasyClientSDK::Operations::PostTagsResponse.new(
status_code: r.status, content_type: content_type, raw_response: r
)
if r.status == 200
else

if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
res.error = out
end
end
res
end


sig { params(request: T.nilable(::SpeakeasyClientSDK::Shared::PreflightRequest)).returns(::SpeakeasyClientSDK::Operations::PreflightResponse) }
def preflight(request)
# preflight - Get access token for communicating with OCI distribution endpoints
Expand Down
2 changes: 2 additions & 0 deletions lib/speakeasy_client_sdk/models/operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ module Operations
autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/operations/getrevisions_response.rb'
autoload :GetTagsRequest, 'speakeasy_client_sdk/models/operations/gettags_request.rb'
autoload :GetTagsResponse, 'speakeasy_client_sdk/models/operations/gettags_response.rb'
autoload :PostTagsRequest, 'speakeasy_client_sdk/models/operations/posttags_request.rb'
autoload :PostTagsResponse, 'speakeasy_client_sdk/models/operations/posttags_response.rb'
autoload :PreflightResponse, 'speakeasy_client_sdk/models/operations/preflight_response.rb'
autoload :GetAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getaccesstoken_request.rb'
autoload :GetAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getaccesstoken_response.rb'
Expand Down
27 changes: 27 additions & 0 deletions lib/speakeasy_client_sdk/models/operations/posttags_request.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module SpeakeasyClientSDK
module Operations


class PostTagsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
extend T::Sig


field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
# A JSON representation of the tags to add
field :add_tags, T.nilable(::SpeakeasyClientSDK::Shared::AddTags), { 'request': { 'media_type': 'application/json' } }


sig { params(namespace_name: ::String, add_tags: T.nilable(::SpeakeasyClientSDK::Shared::AddTags)).void }
def initialize(namespace_name: nil, add_tags: nil)
@namespace_name = namespace_name
@add_tags = add_tags
end
end
end
end
33 changes: 33 additions & 0 deletions lib/speakeasy_client_sdk/models/operations/posttags_response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module SpeakeasyClientSDK
module Operations


class PostTagsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
extend T::Sig

# HTTP response content type for this operation
field :content_type, ::String
# Raw HTTP response; suitable for custom response parsing
field :raw_response, ::Faraday::Response
# HTTP response status code for this operation
field :status_code, ::Integer
# Default error response
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)


sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
@content_type = content_type
@raw_response = raw_response
@status_code = status_code
@error = error
end
end
end
end
1 change: 1 addition & 0 deletions lib/speakeasy_client_sdk/models/shared.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module Shared
autoload :Revision, 'speakeasy_client_sdk/models/shared/revision.rb'
autoload :GetTagsResponse, 'speakeasy_client_sdk/models/shared/gettagsresponse.rb'
autoload :Tag, 'speakeasy_client_sdk/models/shared/tag.rb'
autoload :AddTags, 'speakeasy_client_sdk/models/shared/addtags.rb'
autoload :PreflightToken, 'speakeasy_client_sdk/models/shared/preflighttoken.rb'
autoload :PreflightRequest, 'speakeasy_client_sdk/models/shared/preflightrequest.rb'
autoload :Claims, 'speakeasy_client_sdk/models/shared/claims.rb'
Expand Down
27 changes: 27 additions & 0 deletions lib/speakeasy_client_sdk/models/shared/addtags.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module SpeakeasyClientSDK
module Shared

# Request body of tags to add to a revision
class AddTags < ::SpeakeasyClientSDK::Utils::FieldAugmented
extend T::Sig

# revision digest to add tags too sha256:...
field :revision_digest, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revision_digest') } }
# string tags to add to the revision
field :tags, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('tags') } }


sig { params(revision_digest: ::String, tags: T::Array[::String]).void }
def initialize(revision_digest: nil, tags: nil)
@revision_digest = revision_digest
@tags = tags
end
end
end
end
6 changes: 3 additions & 3 deletions lib/speakeasy_client_sdk/sdkconfiguration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def initialize(client, security, server_url, server, globals)
@globals = globals.nil? ? {} : globals
@language = 'ruby'
@openapi_doc_version = '0.4.0 .'
@sdk_version = '4.1.9'
@gen_version = '2.317.0'
@user_agent = 'speakeasy-sdk/ruby 4.1.9 2.317.0 0.4.0 . speakeasy_client_sdk_ruby'
@sdk_version = '4.1.10'
@gen_version = '2.319.10'
@user_agent = 'speakeasy-sdk/ruby 4.1.10 2.319.10 0.4.0 . speakeasy_client_sdk_ruby'
end

sig { returns([String, T::Hash[Symbol, String]]) }
Expand Down
2 changes: 1 addition & 1 deletion speakeasy_client_sdk_ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)

Gem::Specification.new do |s|
s.name = 'speakeasy_client_sdk_ruby'
s.version = '4.1.9'
s.version = '4.1.10'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down

0 comments on commit d36f9ca

Please sign in to comment.