Sha256: 2540ac08ad90b4978ef7338795961accadf0df8a82e43b8dd113fb92389415df

Contents?: true

Size: 1.71 KB

Versions: 14

Compression:

Stored size: 1.71 KB

Contents

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

# typed: true
# frozen_string_literal: true


module StackOne
  module Shared
  

    class Field < ::StackOne::Utils::FieldAugmented
      extend T::Sig

      # Unique identifier
      field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
      # The label of the field
      field :label, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
      # Provider's unique identifier
      field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
      # Indicates if the field is required
      field :required, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('required') } }
      # The type of the field
      field :type, T.nilable(::StackOne::Shared::FieldType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::StackOne::Shared::FieldType, true) } }
      # The possible values for the field
      field :values, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('values') } }


      sig { params(id: T.nilable(::String), label: T.nilable(::String), remote_id: T.nilable(::String), required: T.nilable(T::Boolean), type: T.nilable(::StackOne::Shared::FieldType), values: T.nilable(T::Array[::String])).void }
      def initialize(id: nil, label: nil, remote_id: nil, required: nil, type: nil, values: nil)
        @id = id
        @label = label
        @remote_id = remote_id
        @required = required
        @type = type
        @values = values
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
stackone_client-0.2.29 lib/stack_one/models/shared/field.rb
stackone_client-0.2.28 lib/stack_one/models/shared/field.rb
stackone_client-0.2.27 lib/stack_one/models/shared/field.rb
stackone_client-0.2.26 lib/stack_one/models/shared/field.rb
stackone_client-0.2.18 lib/stack_one/models/shared/field.rb
stackone_client-0.2.17 lib/stack_one/models/shared/field.rb
stackone_client-0.2.16 lib/stack_one/models/shared/field.rb
stackone_client-0.2.15 lib/stack_one/models/shared/field.rb
stackone_client-0.2.14 lib/stack_one/models/shared/field.rb
stackone_client-0.2.13 lib/stack_one/models/shared/field.rb
stackone_client-0.2.12 lib/stack_one/models/shared/field.rb
stackone_client-0.2.11 lib/stack_one/models/shared/field.rb
stackone_client-0.2.10 lib/stack_one/models/shared/field.rb
stackone_client-0.2.9 lib/stack_one/models/shared/field.rb