Class: Inttegro::File::CreateRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::File::CreateRequest
- Defined in:
- lib/inttegro/file/create_request.rb
Overview
Typed representation of the create request 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
-
#custom_data ⇒ String?
readonly
JSON object encoded as a string.
-
#file ⇒ String
readonly
Binary file part to store.
-
#purpose ⇒ String
readonly
File purpose policy to apply.
-
#title ⇒ String?
readonly
Optional display title for the file.
Instance Attribute Details
#custom_data ⇒ String? (readonly)
JSON object encoded as a string. Values must be strings.
Optional in the API payload; omitted values default to nil. Wire name: custom_data.
41 42 43 44 45 46 |
# File 'lib/inttegro/file/create_request.rb', line 41 class CreateRequest < T::Struct const :file, String const :purpose, String const :title, T.nilable(String), default: nil const :custom_data, T.nilable(String), default: nil end |
#file ⇒ String (readonly)
Binary file part to store.
Required in the API payload. Wire name: file.
41 42 43 44 45 46 |
# File 'lib/inttegro/file/create_request.rb', line 41 class CreateRequest < T::Struct const :file, String const :purpose, String const :title, T.nilable(String), default: nil const :custom_data, T.nilable(String), default: nil end |
#purpose ⇒ String (readonly)
File purpose policy to apply.
Required in the API payload. Wire name: purpose.
41 42 43 44 45 46 |
# File 'lib/inttegro/file/create_request.rb', line 41 class CreateRequest < T::Struct const :file, String const :purpose, String const :title, T.nilable(String), default: nil const :custom_data, T.nilable(String), default: nil end |
#title ⇒ String? (readonly)
Optional display title for the file.
Optional in the API payload; omitted values default to nil. Wire name: title.
41 42 43 44 45 46 |
# File 'lib/inttegro/file/create_request.rb', line 41 class CreateRequest < T::Struct const :file, String const :purpose, String const :title, T.nilable(String), default: nil const :custom_data, T.nilable(String), default: nil end |