openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI.Responses/src/Generated/Models/ApplyPatchCreateFileOperation.cs
33lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System.ClientModel.Primitives; |
| 6 | using System.Diagnostics.CodeAnalysis; |
| 7 | using OpenAI; |
| 8 | |
| 9 | namespace OpenAI.Responses |
| 10 | { |
| 11 | [Experimental("OPENAI001")] |
| 12 | public partial class ApplyPatchCreateFileOperation : ApplyPatchOperation |
| 13 | { |
| 14 | public ApplyPatchCreateFileOperation(string filePath, string diff) : base(InternalApplyPatchOperationType.CreateFile) |
| 15 | { |
| 16 | Argument.AssertNotNull(filePath, nameof(filePath)); |
| 17 | Argument.AssertNotNull(diff, nameof(diff)); |
| 18 | |
| 19 | FilePath = filePath; |
| 20 | Diff = diff; |
| 21 | } |
| 22 | |
| 23 | #pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. |
| 24 | internal ApplyPatchCreateFileOperation(InternalApplyPatchOperationType kind, in JsonPatch patch, string filePath, string diff) : base(kind, patch) |
| 25 | { |
| 26 | FilePath = filePath; |
| 27 | Diff = diff; |
| 28 | } |
| 29 | #pragma warning restore SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. |
| 30 | |
| 31 | public string Diff { get; set; } |
| 32 | } |
| 33 | } |
| 34 | |