Sha256: aa74bff6c272d2344ca8e871d90a01d486d02a4fc503bd8b30900232a481bf6a

Contents?: true

Size: 1.68 KB

Versions: 40

Compression:

Stored size: 1.68 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true

require 'sorbet-runtime'
require 'faraday'
require_relative '../shared/error'
require_relative '../shared/schema'

module SpeakeasyClientSDK
  module Operations

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

      # The ID of the Api to get the schema for.
      field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
      # The version ID of the Api to delete metadata for.
      field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }


      sig { params(api_id: String, version_id: String).void }
      def initialize(api_id: nil, version_id: nil)
        @api_id = api_id
        @version_id = version_id
      end
    end


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


      field :content_type, String

      field :status_code, Integer
      # Default error response
      field :error, T.nilable(Shared::Error)

      field :raw_response, T.nilable(Faraday::Response)
      # OK
      field :schema, T.nilable(Shared::Schema)


      sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), schema: T.nilable(Shared::Schema)).void }
      def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, schema: nil)
        @content_type = content_type
        @status_code = status_code
        @error = error
        @raw_response = raw_response
        @schema = schema
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
speakeasy_client_sdk_ruby-1.23.5 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.23.4 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.23.3 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.23.2 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.23.1 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.23.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.22.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.21.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.20.1 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.20.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.19.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.18.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.17.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.16.1 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.16.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.15.1 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.15.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.14.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.13.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-1.12.1 lib/sdk/models/operations/getschema.rb