Class: OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile
- Defined in:
- lib/openai/models/responses/response_apply_patch_tool_call.rb,
sig/openai/models/responses/response_apply_patch_tool_call.rbs
Instance Attribute Summary collapse
-
#diff ⇒ String
Diff to apply.
-
#path ⇒ String
Path of the file to update.
-
#type ⇒ :update_file
Update an existing file with the provided diff.
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.
149 150 151 152 153 |
# File 'sig/openai/models/responses/response_apply_patch_tool_call.rbs', line 149
def initialize: (
diff: String,
path: String,
?type: :update_file
) -> void
|
Instance Attribute Details
#diff ⇒ String
Diff to apply.
160 |
# File 'lib/openai/models/responses/response_apply_patch_tool_call.rb', line 160 required :diff, String |
#path ⇒ String
Path of the file to update.
166 |
# File 'lib/openai/models/responses/response_apply_patch_tool_call.rb', line 166 required :path, String |
#type ⇒ :update_file
Update an existing file with the provided diff.
172 |
# File 'lib/openai/models/responses/response_apply_patch_tool_call.rb', line 172 required :type, const: :update_file |
Instance Method Details
#to_hash ⇒ { diff: String, path: String, ?type: :update_file }
155 |
# File 'sig/openai/models/responses/response_apply_patch_tool_call.rbs', line 155
def to_hash: -> { diff: String, path: String, ?type: :update_file }
|