Class: ContextDev::Models::BatchSubmitResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::BatchSubmitResponse
- Defined in:
- lib/context_dev/models/batch_submit_response.rb,
sig/context_dev/models/batch_submit_response.rbs
Overview
Defined Under Namespace
Modules: Format, Mode, Status Classes: Credits, InvalidURL, KeyMetadata
Instance Attribute Summary collapse
-
#crawl ⇒ ContextDev::Models::CrawlControls?
The crawl controls as submitted, so the limits requested can be compared against what the crawl reached.
-
#created_at ⇒ String
When the batch was created.
-
#credits ⇒ ContextDev::Models::BatchSubmitResponse::Credits
What accepting this batch cost.
-
#format_ ⇒ Symbol, ContextDev::Models::BatchSubmitResponse::Format
What each page will be returned as.
-
#id ⇒ String
Batch ID.
-
#input ⇒ ContextDev::Models::Intake
What submission took in, and what it charged for.
-
#invalid_urls ⇒ Array<ContextDev::Models::BatchSubmitResponse::InvalidURL>
Rejected URLs, up to 100.
-
#key_metadata ⇒ ContextDev::Models::BatchSubmitResponse::KeyMetadata?
API key usage for this request.
-
#mode ⇒ Symbol, ContextDev::Models::BatchSubmitResponse::Mode
How pages will be selected.
-
#status ⇒ Symbol, ContextDev::Models::BatchSubmitResponse::Status
Always
queued. -
#tags ⇒ Array<String>
Tags stored on the batch.
-
#webhook_secret ⇒ String?
Signing secret for the completion webhook, returned only here and never again.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(reason:, url:) ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(reason:, url:) ⇒ Object
|
|
# File 'lib/context_dev/models/batch_submit_response.rb', line 82
|
Instance Attribute Details
#crawl ⇒ ContextDev::Models::CrawlControls?
The crawl controls as submitted, so the limits requested can be compared against what the crawl reached.
18 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 18 required :crawl, -> { ContextDev::CrawlControls }, nil?: true |
#created_at ⇒ String
When the batch was created.
24 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 24 required :created_at, String |
#credits ⇒ ContextDev::Models::BatchSubmitResponse::Credits
What accepting this batch cost.
30 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 30 required :credits, -> { ContextDev::Models::BatchSubmitResponse::Credits } |
#format_ ⇒ Symbol, ContextDev::Models::BatchSubmitResponse::Format
What each page will be returned as.
36 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 36 required :format_, enum: -> { ContextDev::Models::BatchSubmitResponse::Format }, api_name: :format |
#id ⇒ String
Batch ID. Poll GET /batch/batch_id with it.
11 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 11 required :id, String |
#input ⇒ ContextDev::Models::Intake
What submission took in, and what it charged for.
42 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 42 required :input, -> { ContextDev::Intake } |
#invalid_urls ⇒ Array<ContextDev::Models::BatchSubmitResponse::InvalidURL>
Rejected URLs, up to 100. These are not charged.
48 49 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 48 required :invalid_urls, -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BatchSubmitResponse::InvalidURL] } |
#key_metadata ⇒ ContextDev::Models::BatchSubmitResponse::KeyMetadata?
API key usage for this request.
73 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 73 optional :key_metadata, -> { ContextDev::Models::BatchSubmitResponse::KeyMetadata } |
#mode ⇒ Symbol, ContextDev::Models::BatchSubmitResponse::Mode
How pages will be selected.
55 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 55 required :mode, enum: -> { ContextDev::Models::BatchSubmitResponse::Mode } |
#status ⇒ Symbol, ContextDev::Models::BatchSubmitResponse::Status
Always queued. An accepted batch has not started yet.
61 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 61 required :status, enum: -> { ContextDev::Models::BatchSubmitResponse::Status } |
#tags ⇒ Array<String>
Tags stored on the batch.
67 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 67 required :tags, ContextDev::Internal::Type::ArrayOf[String] |
#webhook_secret ⇒ String?
Signing secret for the completion webhook, returned only here and never again. Store it now; it is not repeated by GET /batch/batch_id.
80 |
# File 'lib/context_dev/models/batch_submit_response.rb', line 80 optional :webhook_secret, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/context_dev/models/batch_submit_response.rb', line 137
|
Instance Method Details
#to_hash ⇒ {
65 |
# File 'sig/context_dev/models/batch_submit_response.rbs', line 65
def to_hash: -> {
|