Class: Inttegro::UploadRequest::Attempt

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/upload_request/attempt.rb

Overview

Typed representation of the attempt object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#attempted_at ⇒ Time (readonly)

Value of the attempted_at field in the Inttegro API payload.

Required in the API payload. Wire name: attempted_at.

Returns:

  • (Time)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#content_type ⇒ String? (readonly)

Value of the content_type field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: content_type.

Returns:

  • (String, nil)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#declared_size ⇒ Integer? (readonly)

Value of the declared_size field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: declared_size.

Returns:

  • (Integer, nil)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#error ⇒ Inttegro::UploadRequest::LatestError? (readonly)

Value of the error field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: error.



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#failed_at ⇒ Time? (readonly)

Value of the failed_at field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: failed_at.

Returns:

  • (Time, nil)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#file_id ⇒ String? (readonly)

Value of the file_id field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: file_id.

Returns:

  • (String, nil)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#filename ⇒ String? (readonly)

Value of the filename field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: filename.

Returns:

  • (String, nil)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#id ⇒ String (readonly)

Value of the id field in the Inttegro API payload.

Required in the API payload. Wire name: id.

Returns:

  • (String)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#ordinal ⇒ Integer (readonly)

Value of the ordinal field in the Inttegro API payload.

Required in the API payload. Wire name: ordinal.

Returns:

  • (Integer)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#review ⇒ Inttegro::UploadRequest::Review? (readonly)

Value of the review field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: review.



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#status ⇒ String (readonly)

Value of the status field in the Inttegro API payload.

Required in the API payload. Wire name: status.

Returns:

  • (String)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#succeeded_at ⇒ Time? (readonly)

Value of the succeeded_at field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: succeeded_at.

Returns:

  • (Time, nil)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end

#upload_request_id ⇒ String (readonly)

Value of the upload_request_id field in the Inttegro API payload.

Required in the API payload. Wire name: upload_request_id.

Returns:

  • (String)


97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/inttegro/upload_request/attempt.rb', line 97

class Attempt < T::Struct
  const :attempted_at, Time
  const :content_type, T.nilable(String), default: nil
  const :declared_size, T.nilable(Integer), default: nil
  const :error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
  const :failed_at, T.nilable(Time), default: nil
  const :file_id, T.nilable(String), default: nil
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :ordinal, Integer
  const :review, T.nilable(Inttegro::UploadRequest::Review), default: nil
  const :status, String
  const :succeeded_at, T.nilable(Time), default: nil
  const :upload_request_id, String
end