Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -67,6 +74,13 @@ public bool TryPickValue2(
value = Value2;
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
14 changes: 14 additions & 0 deletions src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -67,6 +74,13 @@ public bool TryPickValue2(
value = Value2;
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
21 changes: 21 additions & 0 deletions src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickValue2(
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -97,6 +111,13 @@ public bool TryPickValue3(
value = Value3;
return IsValue3;
}

/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ public ActiveStatus(
public ActiveStatus()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ public AddUploadPartRequest(
public AddUploadPartRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,6 @@ public AdminApiKey(
public AdminApiKey()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickAdminApiKey(
return IsAdminApiKey;
}

/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.AdminApiKey PickAdminApiKey() => IsAdminApiKey
? AdminApiKey!
: throw new global::System.InvalidOperationException($"Expected union variant 'AdminApiKey' but the value was {ToString()}.");

/// <summary>
/// The newly created admin API key. The `value` field is only returned once, when the key is created.
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickAdminApiKeyCreateResponseVariant2(
value = AdminApiKeyCreateResponseVariant2;
return IsAdminApiKeyCreateResponseVariant2;
}

/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2 PickAdminApiKeyCreateResponseVariant2() => IsAdminApiKeyCreateResponseVariant2
? AdminApiKeyCreateResponseVariant2!
: throw new global::System.InvalidOperationException($"Expected union variant 'AdminApiKeyCreateResponseVariant2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ public AdminApiKeyCreateResponseVariant2(
public AdminApiKeyCreateResponseVariant2()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class AdminApiKeyLastUsedAt
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ public sealed partial class AdminApiKeyName
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ public AdminApiKeyOwner(
public AdminApiKeyOwner()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ public AdminApiKeysCreateRequest(
public AdminApiKeysCreateRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ public AdminApiKeysDeleteResponse(
public AdminApiKeysDeleteResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public bool TryPickFileCitation(
return IsFileCitation;
}

/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.FileCitationBody PickFileCitation() => IsFileCitation
? FileCitation!
: throw new global::System.InvalidOperationException($"Expected union variant 'FileCitation' but the value was {ToString()}.");

/// <summary>
/// A citation for a web resource used to generate a model response.
/// </summary>
Expand Down Expand Up @@ -74,6 +81,13 @@ public bool TryPickUrlCitation(
return IsUrlCitation;
}

/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.UrlCitationBody PickUrlCitation() => IsUrlCitation
? UrlCitation!
: throw new global::System.InvalidOperationException($"Expected union variant 'UrlCitation' but the value was {ToString()}.");

/// <summary>
/// A citation for a container file used to generate a model response.
/// </summary>
Expand Down Expand Up @@ -104,6 +118,13 @@ public bool TryPickContainerFileCitation(
return IsContainerFileCitation;
}

/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.ContainerFileCitationBody PickContainerFileCitation() => IsContainerFileCitation
? ContainerFileCitation!
: throw new global::System.InvalidOperationException($"Expected union variant 'ContainerFileCitation' but the value was {ToString()}.");

/// <summary>
/// A path to a file.
/// </summary>
Expand Down Expand Up @@ -133,6 +154,13 @@ public bool TryPickFilePath(
value = FilePath;
return IsFilePath;
}

/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.FilePath PickFilePath() => IsFilePath
? FilePath!
: throw new global::System.InvalidOperationException($"Expected union variant 'FilePath' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public AnnotationDiscriminator(
public AnnotationDiscriminator()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public bool TryPickFile(
return IsFile;
}

/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.FileAnnotation PickFile() => IsFile
? File!
: throw new global::System.InvalidOperationException($"Expected union variant 'File' but the value was {ToString()}.");

/// <summary>
/// Annotation that references a URL.
/// </summary>
Expand Down Expand Up @@ -73,6 +80,13 @@ public bool TryPickUrl(
value = Url;
return IsUrl;
}

/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.UrlAnnotation PickUrl() => IsUrl
? Url!
: throw new global::System.InvalidOperationException($"Expected union variant 'Url' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@ public ApiKeyList(
public ApiKeyList()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class ApiKeyListFirstId
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class ApiKeyListLastId
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ public ApplyPatchCreateFileOperation(
public ApplyPatchCreateFileOperation()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ public ApplyPatchCreateFileOperationParam(
public ApplyPatchCreateFileOperationParam()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,18 @@ public ApplyPatchDeleteFileOperation(
public ApplyPatchDeleteFileOperation()
{
}

/// <summary>
/// Creates a new <see cref="ApplyPatchDeleteFileOperation"/> from its single non-const required field,
/// hardcoding any const discriminator fields.
/// </summary>
public static ApplyPatchDeleteFileOperation FromPath(string path)
{
return new ApplyPatchDeleteFileOperation
{
Path = path,
};
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,18 @@ public ApplyPatchDeleteFileOperationParam(
public ApplyPatchDeleteFileOperationParam()
{
}

/// <summary>
/// Creates a new <see cref="ApplyPatchDeleteFileOperationParam"/> from its single non-const required field,
/// hardcoding any const discriminator fields.
/// </summary>
public static ApplyPatchDeleteFileOperationParam FromPath(string path)
{
return new ApplyPatchDeleteFileOperationParam
{
Path = path,
};
}

}
}
Loading
Loading