Sha256: 1c5c2c23752d3d1ed32ae7e3b0afd9073a4611642ab09b4db9a6f3046085464c

Contents?: true

Size: 1.85 KB

Versions: 57

Compression:

Stored size: 1.85 KB

Contents

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

# typed: true
# frozen_string_literal: true

require 'sorbet-runtime'
require 'faraday'

module SpeakeasyClientSDK
  module Shared
    # A Schema represents an API schema for a particular Api and Version.
    class Schema < SpeakeasyClientSDK::Utils::FieldAugmented
      extend T::Sig

      # The ID of the Api this Schema belongs to.
      field :api_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('api_id') } }
      # Creation timestamp.
      field :created_at, DateTime, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
      # A detailed description of the Schema.
      field :description, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('description') } }
      # An ID referencing this particular revision of the Schema.
      field :revision_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('revision_id') } }
      # The version ID of the Api this Schema belongs to.
      field :version_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('version_id') } }
      # The workspace ID this Schema belongs to.
      field :workspace_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('workspace_id') } }


      sig { params(api_id: String, created_at: DateTime, description: String, revision_id: String, version_id: String, workspace_id: String).void }
      def initialize(api_id: nil, created_at: nil, description: nil, revision_id: nil, version_id: nil, workspace_id: nil)
        @api_id = api_id
        @created_at = created_at
        @description = description
        @revision_id = revision_id
        @version_id = version_id
        @workspace_id = workspace_id
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
speakeasy_client_sdk_ruby-2.2.1 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-2.2.0 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-2.1.3 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-2.1.2 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-2.1.1 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-2.1.0 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-2.0.0 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.27.1 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.27.0 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.26.4 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.26.3 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.26.2 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.26.1 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.26.0 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.25.0 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.24.1 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.24.0 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.23.5 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.23.4 lib/sdk/models/shared/schema.rb
speakeasy_client_sdk_ruby-1.23.3 lib/sdk/models/shared/schema.rb