Sha256: 4260691325400463c6b2d4813dbe2cb0799c3c9e7dda9be0103217be94c7ebce
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. # typed: true # frozen_string_literal: true require 'sorbet-runtime' require 'faraday' module StackOne module Shared # JobStatusEnumValue - The status of the job. class JobStatusEnumValue < T::Enum enums do PUBLISHED = new('published') DRAFT = new('draft') PENDING = new('pending') INTERNAL = new('internal') ARCHIVED = new('archived') CLOSED = new('closed') OPEN = new('open') UNMAPPED_VALUE = new('unmapped_value') end end class JobStatusEnum < StackOne::Utils::FieldAugmented extend T::Sig # The source value of the job status. field :source_value, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('source_value') } } # The status of the job. field :value, Shared::JobStatusEnumValue, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobStatusEnumValue, false) } } sig { params(source_value: String, value: Shared::JobStatusEnumValue).void } def initialize(source_value: nil, value: nil) @source_value = source_value @value = value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stackone_client-0.0.1 | lib/stackone/models/shared/jobstatusenum.rb |