speakeasy_client_sdk_ruby 4.1.9 → 4.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/speakeasy_client_sdk/artifacts.rb +47 -0
- 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.rb +2 -0
- 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 +5 -2
    
        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
         | 
| @@ -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
         | 
| @@ -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'
         | 
| @@ -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
         | 
| @@ -228,6 +228,8 @@ files: | |
| 228 228 | 
             
            - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
         | 
| 229 229 | 
             
            - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb
         | 
| 230 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
         | 
| 231 233 | 
             
            - lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb
         | 
| 232 234 | 
             
            - lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb
         | 
| 233 235 | 
             
            - lib/speakeasy_client_sdk/models/operations/preflight_response.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
         |