Skip to content

Commit

Permalink
CodeGen from PR 27353 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge f2dc0f53371b09661e7253e6a4e013f9f82e7fa6 into 87e46c2a10b8a6d54ac45522659ec0bc9197de39
  • Loading branch information
SDKAuto committed Jan 19, 2024
1 parent 6c2ca8b commit d3ce402
Show file tree
Hide file tree
Showing 37 changed files with 1,984 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public partial class AnalyzeImageOptions
public AnalyzeImageOptions(Azure.AI.ContentSafety.ContentSafetyImageData image) { }
public System.Collections.Generic.IList<Azure.AI.ContentSafety.ImageCategory> Categories { get { throw null; } }
public Azure.AI.ContentSafety.ContentSafetyImageData Image { get { throw null; } }
public Azure.AI.ContentSafety.IncidentOptions Incidents { get { throw null; } set { } }
public Azure.AI.ContentSafety.AnalyzeImageOutputType? OutputType { get { throw null; } set { } }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
Expand All @@ -38,13 +39,26 @@ public partial class AnalyzeImageResult
{
internal AnalyzeImageResult() { }
public System.Collections.Generic.IReadOnlyList<Azure.AI.ContentSafety.ImageCategoriesAnalysis> CategoriesAnalysis { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.ContentSafety.IncidentMatch> IncidentMatches { get { throw null; } }
}
public partial class AnalyzeTextJailbreakOptions
{
public AnalyzeTextJailbreakOptions(string text) { }
public string Text { get { throw null; } }
}
public partial class AnalyzeTextJailbreakResult
{
internal AnalyzeTextJailbreakResult() { }
public Azure.AI.ContentSafety.JailbreakAnalysisResult JailbreakAnalysis { get { throw null; } }
}
public partial class AnalyzeTextOptions
{
public AnalyzeTextOptions(string text) { }
public System.Collections.Generic.IList<string> BlocklistNames { get { throw null; } }
public System.Collections.Generic.IList<Azure.AI.ContentSafety.TextCategory> Categories { get { throw null; } }
public System.Collections.Generic.IList<Azure.AI.ContentSafety.CustomizedCategory> CustomizedCategories { get { throw null; } }
public bool? HaltOnBlocklistHit { get { throw null; } set { } }
public Azure.AI.ContentSafety.IncidentOptions Incidents { get { throw null; } set { } }
public Azure.AI.ContentSafety.AnalyzeTextOutputType? OutputType { get { throw null; } set { } }
public string Text { get { throw null; } }
}
Expand All @@ -66,11 +80,24 @@ public AnalyzeTextOptions(string text) { }
public static bool operator !=(Azure.AI.ContentSafety.AnalyzeTextOutputType left, Azure.AI.ContentSafety.AnalyzeTextOutputType right) { throw null; }
public override string ToString() { throw null; }
}
public partial class AnalyzeTextProtectedMaterialOptions
{
public AnalyzeTextProtectedMaterialOptions(string text) { }
public string Text { get { throw null; } }
}
public partial class AnalyzeTextProtectedMaterialResult
{
internal AnalyzeTextProtectedMaterialResult() { }
public Azure.AI.ContentSafety.ProtectedMaterialAnalysisResult ProtectedMaterialAnalysis { get { throw null; } }
}
public partial class AnalyzeTextResult
{
internal AnalyzeTextResult() { }
public System.Collections.Generic.IReadOnlyList<Azure.AI.ContentSafety.TextBlocklistMatch> BlocklistsMatch { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.ContentSafety.TextCategoriesAnalysis> CategoriesAnalysis { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<string> Citation { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.ContentSafety.TextCustomizedCategoryAnalysis> CustomizedCategoriesAnalysis { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.ContentSafety.IncidentMatch> IncidentMatches { get { throw null; } }
}
public partial class BlocklistClient
{
Expand Down Expand Up @@ -131,13 +158,24 @@ public ContentSafetyClient(System.Uri endpoint, Azure.Core.TokenCredential crede
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.ContentSafety.AnalyzeTextResult>> AnalyzeTextAsync(Azure.AI.ContentSafety.AnalyzeTextOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> AnalyzeTextAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.ContentSafety.AnalyzeTextResult>> AnalyzeTextAsync(string text, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<Azure.AI.ContentSafety.AnalyzeTextJailbreakResult> DetectTextJailbreak(Azure.AI.ContentSafety.AnalyzeTextJailbreakOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response DetectTextJailbreak(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.ContentSafety.AnalyzeTextJailbreakResult>> DetectTextJailbreakAsync(Azure.AI.ContentSafety.AnalyzeTextJailbreakOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> DetectTextJailbreakAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response<Azure.AI.ContentSafety.AnalyzeTextProtectedMaterialResult> DetectTextProtectedMaterial(Azure.AI.ContentSafety.AnalyzeTextProtectedMaterialOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response DetectTextProtectedMaterial(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.ContentSafety.AnalyzeTextProtectedMaterialResult>> DetectTextProtectedMaterialAsync(Azure.AI.ContentSafety.AnalyzeTextProtectedMaterialOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> DetectTextProtectedMaterialAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
}
public partial class ContentSafetyClientOptions : Azure.Core.ClientOptions
{
public ContentSafetyClientOptions(Azure.AI.ContentSafety.ContentSafetyClientOptions.ServiceVersion version = Azure.AI.ContentSafety.ContentSafetyClientOptions.ServiceVersion.V2023_10_01) { }
public ContentSafetyClientOptions(Azure.AI.ContentSafety.ContentSafetyClientOptions.ServiceVersion version = Azure.AI.ContentSafety.ContentSafetyClientOptions.ServiceVersion.V2024_01_30_Preview) { }
public enum ServiceVersion
{
V2023_10_01 = 1,
V2023_10_15_Preview = 2,
V2023_10_30_Preview = 3,
V2024_01_30_Preview = 4,
}
}
public partial class ContentSafetyImageData
Expand All @@ -149,13 +187,26 @@ public ContentSafetyImageData(System.Uri blobUri) { }
public static partial class ContentSafetyModelFactory
{
public static Azure.AI.ContentSafety.AddOrUpdateTextBlocklistItemsResult AddOrUpdateTextBlocklistItemsResult(System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.TextBlocklistItem> blocklistItems = null) { throw null; }
public static Azure.AI.ContentSafety.AnalyzeImageResult AnalyzeImageResult(System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.ImageCategoriesAnalysis> categoriesAnalysis = null) { throw null; }
public static Azure.AI.ContentSafety.AnalyzeTextResult AnalyzeTextResult(System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.TextBlocklistMatch> blocklistsMatch = null, System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.TextCategoriesAnalysis> categoriesAnalysis = null) { throw null; }
public static Azure.AI.ContentSafety.AnalyzeImageResult AnalyzeImageResult(System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.ImageCategoriesAnalysis> categoriesAnalysis = null, System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.IncidentMatch> incidentMatches = null) { throw null; }
public static Azure.AI.ContentSafety.AnalyzeTextJailbreakResult AnalyzeTextJailbreakResult(Azure.AI.ContentSafety.JailbreakAnalysisResult jailbreakAnalysis = null) { throw null; }
public static Azure.AI.ContentSafety.AnalyzeTextProtectedMaterialResult AnalyzeTextProtectedMaterialResult(Azure.AI.ContentSafety.ProtectedMaterialAnalysisResult protectedMaterialAnalysis = null) { throw null; }
public static Azure.AI.ContentSafety.AnalyzeTextResult AnalyzeTextResult(System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.TextBlocklistMatch> blocklistsMatch = null, System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.TextCategoriesAnalysis> categoriesAnalysis = null, System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.IncidentMatch> incidentMatches = null, System.Collections.Generic.IEnumerable<string> citation = null, System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.TextCustomizedCategoryAnalysis> customizedCategoriesAnalysis = null) { throw null; }
public static Azure.AI.ContentSafety.ImageCategoriesAnalysis ImageCategoriesAnalysis(Azure.AI.ContentSafety.ImageCategory category = default(Azure.AI.ContentSafety.ImageCategory), int? severity = default(int?)) { throw null; }
public static Azure.AI.ContentSafety.IncidentMatch IncidentMatch(string incidentName = null) { throw null; }
public static Azure.AI.ContentSafety.JailbreakAnalysisResult JailbreakAnalysisResult(bool detected = false) { throw null; }
public static Azure.AI.ContentSafety.ProtectedMaterialAnalysisResult ProtectedMaterialAnalysisResult(bool detected = false) { throw null; }
public static Azure.AI.ContentSafety.TextBlocklist TextBlocklist(string name = null, string description = null) { throw null; }
public static Azure.AI.ContentSafety.TextBlocklistItem TextBlocklistItem(string blocklistItemId = null, string description = null, string text = null) { throw null; }
public static Azure.AI.ContentSafety.TextBlocklistMatch TextBlocklistMatch(string blocklistName = null, string blocklistItemId = null, string blocklistItemText = null) { throw null; }
public static Azure.AI.ContentSafety.TextCategoriesAnalysis TextCategoriesAnalysis(Azure.AI.ContentSafety.TextCategory category = default(Azure.AI.ContentSafety.TextCategory), int? severity = default(int?)) { throw null; }
public static Azure.AI.ContentSafety.TextCustomizedCategoryAnalysis TextCustomizedCategoryAnalysis(string categoryName = null, System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.TextCustomizedCategoryClassResult> customizedCategoriesAnalysis = null) { throw null; }
public static Azure.AI.ContentSafety.TextCustomizedCategoryClassResult TextCustomizedCategoryClassResult(int id = 0, string className = null) { throw null; }
}
public partial class CustomizedCategory
{
public CustomizedCategory(string categoryName, string modelId) { }
public string CategoryName { get { throw null; } }
public string ModelId { get { throw null; } }
}
public partial class ImageCategoriesAnalysis
{
Expand Down Expand Up @@ -183,6 +234,27 @@ internal ImageCategoriesAnalysis() { }
public static bool operator !=(Azure.AI.ContentSafety.ImageCategory left, Azure.AI.ContentSafety.ImageCategory right) { throw null; }
public override string ToString() { throw null; }
}
public partial class IncidentMatch
{
internal IncidentMatch() { }
public string IncidentName { get { throw null; } }
}
public partial class IncidentOptions
{
public IncidentOptions() { }
public bool? HaltOnIncidentHit { get { throw null; } set { } }
public System.Collections.Generic.IList<string> IncidentNames { get { throw null; } }
}
public partial class JailbreakAnalysisResult
{
internal JailbreakAnalysisResult() { }
public bool Detected { get { throw null; } }
}
public partial class ProtectedMaterialAnalysisResult
{
internal ProtectedMaterialAnalysisResult() { }
public bool Detected { get { throw null; } }
}
public partial class RemoveTextBlocklistItemsOptions
{
public RemoveTextBlocklistItemsOptions(System.Collections.Generic.IEnumerable<string> blocklistItemIds) { }
Expand Down Expand Up @@ -234,6 +306,18 @@ internal TextCategoriesAnalysis() { }
public static bool operator !=(Azure.AI.ContentSafety.TextCategory left, Azure.AI.ContentSafety.TextCategory right) { throw null; }
public override string ToString() { throw null; }
}
public partial class TextCustomizedCategoryAnalysis
{
internal TextCustomizedCategoryAnalysis() { }
public string CategoryName { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.ContentSafety.TextCustomizedCategoryClassResult> CustomizedCategoriesAnalysis { get { throw null; } }
}
public partial class TextCustomizedCategoryClassResult
{
internal TextCustomizedCategoryClassResult() { }
public string ClassName { get { throw null; } }
public int Id { get { throw null; } }
}
}
namespace Microsoft.Extensions.Azure
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d3ce402

Please sign in to comment.