Class: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCall::Operation::UpdateFile
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCall::Operation::UpdateFile
- Defined in:
- lib/openai/models/responses/response_input_item.rb,
sig/openai/models/responses/response_input_item.rbs
Instance Attribute Summary collapse
-
#diff ⇒ String
Unified diff content to apply to the existing file.
-
#path ⇒ String
Path of the file to update relative to the workspace root.
-
#type ⇒ :update_file
The operation type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ UpdateFile
constructor
A new instance of UpdateFile.
- #to_hash ⇒ { diff: String, path: String, ?type: :update_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 ⇒ UpdateFile
Returns a new instance of UpdateFile.
1462 1463 1464 1465 1466 |
# File 'sig/openai/models/responses/response_input_item.rbs', line 1462
def initialize: (
diff: String,
path: String,
?type: :update_file
) -> void
|
Instance Attribute Details
#diff ⇒ String
Unified diff content to apply to the existing file.
1690 |
# File 'lib/openai/models/responses/response_input_item.rb', line 1690 required :diff, String |
#path ⇒ String
Path of the file to update relative to the workspace root.
1696 |
# File 'lib/openai/models/responses/response_input_item.rb', line 1696 required :path, String |
#type ⇒ :update_file
The operation type. Always update_file.
1702 |
# File 'lib/openai/models/responses/response_input_item.rb', line 1702 required :type, const: :update_file |
Instance Method Details
#to_hash ⇒ { diff: String, path: String, ?type: :update_file }
1468 1469 1470 1471 1472 |
# File 'sig/openai/models/responses/response_input_item.rbs', line 1468
def to_hash: -> {
diff: String,
path: String,
?type: :update_file
}
|