Class: Telnyx::Models::EmailBlocks::EmailBlockImportResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::EmailBlocks::EmailBlockImportResponse::Data
- Defined in:
- lib/telnyx/models/email_blocks/email_block_import_response.rb,
sig/telnyx/models/email_blocks/email_block_import_response.rbs
Overview
Defined Under Namespace
Modules: Provider, RecordType, Status
Instance Attribute Summary collapse
-
#completed_at ⇒ Time?
Omitted until terminal success.
- #created_at ⇒ Time
-
#created_count ⇒ Integer?
Only when
status == completed. -
#error_count ⇒ Integer?
Only when
status == completed. -
#errors ⇒ Hash{Symbol=>String}?
{row_number: reason}; only rendered when non-empty. -
#existing_count ⇒ Integer?
Only when
status == completed. -
#failure_reason ⇒ String?
Only on terminal failure.
- #id ⇒ String
-
#processed_rows ⇒ Integer?
Only when
status == completed. -
#provider ⇒ Symbol, ...
Omitted when nil.
-
#record_type ⇒ Symbol, Telnyx::Models::EmailBlocks::EmailBlockImportResponse::Data::RecordType
View-only.
-
#skipped_count ⇒ Integer?
Only when
status == completed. - #status ⇒ Symbol, Telnyx::Models::EmailBlocks::EmailBlockImportResponse::Data::Status
-
#total ⇒ Integer
Data-row count at upload.
- #updated_at ⇒ Time
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, record_type:, status:, total:, updated_at:, completed_at: nil, created_count: nil, error_count: nil, errors: nil, existing_count: nil, failure_reason: nil, processed_rows: nil, provider: nil, skipped_count: nil) ⇒ Object
constructor
Import job.
- #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(id:, created_at:, record_type:, status:, total:, updated_at:, completed_at: nil, created_count: nil, error_count: nil, errors: nil, existing_count: nil, failure_reason: nil, processed_rows: nil, provider: nil, skipped_count: nil) ⇒ Object
Import job. Schema fields hidden: account_id, csv_content, block_ttl_days.
Nullable fields use the omit-nullable pattern.
|
|
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 109
|
Instance Attribute Details
#completed_at ⇒ Time?
Omitted until terminal success.
59 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 59 optional :completed_at, Time |
#created_at ⇒ Time
31 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 31 required :created_at, Time |
#created_count ⇒ Integer?
Only when status == completed.
65 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 65 optional :created_count, Integer |
#error_count ⇒ Integer?
Only when status == completed.
71 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 71 optional :error_count, Integer |
#errors ⇒ Hash{Symbol=>String}?
{row_number: reason}; only rendered when non-empty.
77 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 77 optional :errors, Telnyx::Internal::Type::HashOf[String] |
#existing_count ⇒ Integer?
Only when status == completed.
83 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 83 optional :existing_count, Integer |
#failure_reason ⇒ String?
Only on terminal failure.
89 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 89 optional :failure_reason, String |
#id ⇒ String
26 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 26 required :id, String |
#processed_rows ⇒ Integer?
Only when status == completed.
95 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 95 optional :processed_rows, Integer |
#provider ⇒ Symbol, ...
Omitted when nil.
101 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 101 optional :provider, enum: -> { Telnyx::EmailBlocks::EmailBlockImportResponse::Data::Provider } |
#record_type ⇒ Symbol, Telnyx::Models::EmailBlocks::EmailBlockImportResponse::Data::RecordType
View-only.
37 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 37 required :record_type, enum: -> { Telnyx::EmailBlocks::EmailBlockImportResponse::Data::RecordType } |
#skipped_count ⇒ Integer?
Only when status == completed.
107 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 107 optional :skipped_count, Integer |
#status ⇒ Symbol, Telnyx::Models::EmailBlocks::EmailBlockImportResponse::Data::Status
42 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 42 required :status, enum: -> { Telnyx::EmailBlocks::EmailBlockImportResponse::Data::Status } |
#total ⇒ Integer
Data-row count at upload.
48 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 48 required :total, Integer |
#updated_at ⇒ Time
53 |
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 53 required :updated_at, Time |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/email_blocks/email_block_import_response.rb', line 151
|
Instance Method Details
#to_hash ⇒ {
108 |
# File 'sig/telnyx/models/email_blocks/email_block_import_response.rbs', line 108
def to_hash: -> {
|