Sha256: 06ad3ceac4aa9ea532049d4d8d5b2dfc78b3a5f5b969e4a2bec318ba12060bf7

Contents?: true

Size: 1.83 KB

Versions: 4

Compression:

Stored size: 1.83 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

      # 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(Shared::Error)
      # OK
      field :schema, T.nilable(Shared::Schema)


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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
speakeasy_client_sdk_ruby-2.2.1 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-2.2.0 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-2.1.3 lib/sdk/models/operations/getschema.rb
speakeasy_client_sdk_ruby-2.1.2 lib/sdk/models/operations/getschema.rb