Class: OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCall::Operation::CreateFile
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCall::Operation::CreateFile
- Defined in:
- lib/openai/models/beta/beta_response_input_item.rb,
sig/openai/models/beta/beta_response_input_item.rbs
Instance Attribute Summary collapse
-
#diff ⇒ String
Unified diff content to apply when creating the file.
-
#path ⇒ String
Path of the file to create relative to the workspace root.
-
#type ⇒ :create_file
The operation type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ CreateFile
constructor
A new instance of CreateFile.
- #to_hash ⇒ { diff: String, path: String, ?type: :create_file }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ CreateFile
Returns a new instance of CreateFile.
2140 2141 2142 2143 2144 |
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 2140
def initialize: (
diff: String,
path: String,
?type: :create_file
) -> void
|
Instance Attribute Details
#diff ⇒ String
Unified diff content to apply when creating the file.
2405 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2405 required :diff, String |
#path ⇒ String
Path of the file to create relative to the workspace root.
2411 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2411 required :path, String |
#type ⇒ :create_file
The operation type. Always create_file.
2417 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2417 required :type, const: :create_file |
Instance Method Details
#to_hash ⇒ { diff: String, path: String, ?type: :create_file }
2146 2147 2148 2149 2150 |
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 2146
def to_hash: -> {
diff: String,
path: String,
?type: :create_file
}
|