Skip to content

Commit bdfc47c

Browse files
author
SDKAuto
committed
CodeGen from PR 33248 in Azure/azure-rest-api-specs
Merge d2921c99d7b7017a1a24a3fe431ddb684b7ceee8 into f150e1bec3af8ff0fc242308c9a4e727bbdb3977
1 parent 27a7555 commit bdfc47c

File tree

8 files changed

+197
-63
lines changed

8 files changed

+197
-63
lines changed

sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,20 @@ public static partial class AIProjectsModelFactory
563563
public static Azure.AI.Projects.VectorStoreStaticChunkingStrategyResponse VectorStoreStaticChunkingStrategyResponse(Azure.AI.Projects.VectorStoreStaticChunkingStrategyOptions @static = null) { throw null; }
564564
public static Azure.AI.Projects.WorkspaceProperties WorkspaceProperties(string applicationInsights = null) { throw null; }
565565
}
566+
public partial class AISearchIndexResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>
567+
{
568+
public AISearchIndexResource(string indexConnectionId, string indexName, Azure.AI.Projects.AzureAISearchQueryType queryType, int topK) { }
569+
public string IndexConnectionId { get { throw null; } set { } }
570+
public string IndexName { get { throw null; } set { } }
571+
public Azure.AI.Projects.AzureAISearchQueryType QueryType { get { throw null; } set { } }
572+
public int TopK { get { throw null; } set { } }
573+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
574+
Azure.AI.Projects.AISearchIndexResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
575+
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
576+
Azure.AI.Projects.AISearchIndexResource System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
577+
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
578+
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
579+
}
566580
public partial class AOAIModelConfig : Azure.AI.Projects.TargetModelConfig, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AOAIModelConfig>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AOAIModelConfig>
567581
{
568582
public AOAIModelConfig(string azureEndpoint, string apiKey, string azureDeployment) { }
@@ -598,10 +612,31 @@ public enum AuthenticationType
598612
Custom = 3,
599613
None = 4,
600614
}
615+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
616+
public readonly partial struct AzureAISearchQueryType : System.IEquatable<Azure.AI.Projects.AzureAISearchQueryType>
617+
{
618+
private readonly object _dummy;
619+
private readonly int _dummyPrimitive;
620+
public AzureAISearchQueryType(string value) { throw null; }
621+
public static Azure.AI.Projects.AzureAISearchQueryType Semantic { get { throw null; } }
622+
public static Azure.AI.Projects.AzureAISearchQueryType Simple { get { throw null; } }
623+
public static Azure.AI.Projects.AzureAISearchQueryType Vector { get { throw null; } }
624+
public static Azure.AI.Projects.AzureAISearchQueryType VectorSemanticHybrid { get { throw null; } }
625+
public static Azure.AI.Projects.AzureAISearchQueryType VectorSimpleHybrid { get { throw null; } }
626+
public bool Equals(Azure.AI.Projects.AzureAISearchQueryType other) { throw null; }
627+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
628+
public override bool Equals(object obj) { throw null; }
629+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
630+
public override int GetHashCode() { throw null; }
631+
public static bool operator ==(Azure.AI.Projects.AzureAISearchQueryType left, Azure.AI.Projects.AzureAISearchQueryType right) { throw null; }
632+
public static implicit operator Azure.AI.Projects.AzureAISearchQueryType (string value) { throw null; }
633+
public static bool operator !=(Azure.AI.Projects.AzureAISearchQueryType left, Azure.AI.Projects.AzureAISearchQueryType right) { throw null; }
634+
public override string ToString() { throw null; }
635+
}
601636
public partial class AzureAISearchResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AzureAISearchResource>
602637
{
603638
public AzureAISearchResource() { }
604-
public System.Collections.Generic.IList<Azure.AI.Projects.IndexResource> IndexList { get { throw null; } }
639+
public System.Collections.Generic.IList<Azure.AI.Projects.AISearchIndexResource> IndexList { get { throw null; } }
605640
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
606641
Azure.AI.Projects.AzureAISearchResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
607642
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -1151,18 +1186,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
11511186
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IncompleteRunDetails>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
11521187
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IncompleteRunDetails>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
11531188
}
1154-
public partial class IndexResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>
1155-
{
1156-
public IndexResource(string indexConnectionId, string indexName) { }
1157-
public string IndexConnectionId { get { throw null; } set { } }
1158-
public string IndexName { get { throw null; } set { } }
1159-
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
1160-
Azure.AI.Projects.IndexResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1161-
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
1162-
Azure.AI.Projects.IndexResource System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1163-
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1164-
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1165-
}
11661189
public abstract partial class InputData : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.InputData>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.InputData>
11671190
{
11681191
protected InputData() { }

sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,20 @@ public static partial class AIProjectsModelFactory
563563
public static Azure.AI.Projects.VectorStoreStaticChunkingStrategyResponse VectorStoreStaticChunkingStrategyResponse(Azure.AI.Projects.VectorStoreStaticChunkingStrategyOptions @static = null) { throw null; }
564564
public static Azure.AI.Projects.WorkspaceProperties WorkspaceProperties(string applicationInsights = null) { throw null; }
565565
}
566+
public partial class AISearchIndexResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>
567+
{
568+
public AISearchIndexResource(string indexConnectionId, string indexName, Azure.AI.Projects.AzureAISearchQueryType queryType, int topK) { }
569+
public string IndexConnectionId { get { throw null; } set { } }
570+
public string IndexName { get { throw null; } set { } }
571+
public Azure.AI.Projects.AzureAISearchQueryType QueryType { get { throw null; } set { } }
572+
public int TopK { get { throw null; } set { } }
573+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
574+
Azure.AI.Projects.AISearchIndexResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
575+
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
576+
Azure.AI.Projects.AISearchIndexResource System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
577+
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
578+
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
579+
}
566580
public partial class AOAIModelConfig : Azure.AI.Projects.TargetModelConfig, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AOAIModelConfig>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AOAIModelConfig>
567581
{
568582
public AOAIModelConfig(string azureEndpoint, string apiKey, string azureDeployment) { }
@@ -598,10 +612,31 @@ public enum AuthenticationType
598612
Custom = 3,
599613
None = 4,
600614
}
615+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
616+
public readonly partial struct AzureAISearchQueryType : System.IEquatable<Azure.AI.Projects.AzureAISearchQueryType>
617+
{
618+
private readonly object _dummy;
619+
private readonly int _dummyPrimitive;
620+
public AzureAISearchQueryType(string value) { throw null; }
621+
public static Azure.AI.Projects.AzureAISearchQueryType Semantic { get { throw null; } }
622+
public static Azure.AI.Projects.AzureAISearchQueryType Simple { get { throw null; } }
623+
public static Azure.AI.Projects.AzureAISearchQueryType Vector { get { throw null; } }
624+
public static Azure.AI.Projects.AzureAISearchQueryType VectorSemanticHybrid { get { throw null; } }
625+
public static Azure.AI.Projects.AzureAISearchQueryType VectorSimpleHybrid { get { throw null; } }
626+
public bool Equals(Azure.AI.Projects.AzureAISearchQueryType other) { throw null; }
627+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
628+
public override bool Equals(object obj) { throw null; }
629+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
630+
public override int GetHashCode() { throw null; }
631+
public static bool operator ==(Azure.AI.Projects.AzureAISearchQueryType left, Azure.AI.Projects.AzureAISearchQueryType right) { throw null; }
632+
public static implicit operator Azure.AI.Projects.AzureAISearchQueryType (string value) { throw null; }
633+
public static bool operator !=(Azure.AI.Projects.AzureAISearchQueryType left, Azure.AI.Projects.AzureAISearchQueryType right) { throw null; }
634+
public override string ToString() { throw null; }
635+
}
601636
public partial class AzureAISearchResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AzureAISearchResource>
602637
{
603638
public AzureAISearchResource() { }
604-
public System.Collections.Generic.IList<Azure.AI.Projects.IndexResource> IndexList { get { throw null; } }
639+
public System.Collections.Generic.IList<Azure.AI.Projects.AISearchIndexResource> IndexList { get { throw null; } }
605640
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
606641
Azure.AI.Projects.AzureAISearchResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
607642
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -1151,18 +1186,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
11511186
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IncompleteRunDetails>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
11521187
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IncompleteRunDetails>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
11531188
}
1154-
public partial class IndexResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>
1155-
{
1156-
public IndexResource(string indexConnectionId, string indexName) { }
1157-
public string IndexConnectionId { get { throw null; } set { } }
1158-
public string IndexName { get { throw null; } set { } }
1159-
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
1160-
Azure.AI.Projects.IndexResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1161-
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
1162-
Azure.AI.Projects.IndexResource System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1163-
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1164-
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1165-
}
11661189
public abstract partial class InputData : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.InputData>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.InputData>
11671190
{
11681191
protected InputData() { }

0 commit comments

Comments
 (0)