From d31e3634853bbef55d8027f437e3ebc033a2145b Mon Sep 17 00:00:00 2001 From: ShivangiReja <45216704+ShivangiReja@users.noreply.github.com> Date: Thu, 15 Sep 2022 13:21:22 -0700 Subject: [PATCH] [Search] Update language support for Ocr and ImageAnalysis skills (#31176) --- .../Azure.Search.Documents.netstandard2.0.cs | 190 +++++++ .../Models/ImageAnalysisSkillLanguage.cs | 145 +++++- .../src/Generated/Models/OcrSkillLanguage.cs | 467 +++++++++++++++++- ...SearchIndexerDataIdentity.Serialization.cs | 4 +- .../Models/SearchIndexerDataNoneIdentity.cs | 4 +- .../SearchIndexerDataUserAssignedIdentity.cs | 4 +- .../Azure.Search.Documents/src/autorest.md | 4 +- 7 files changed, 789 insertions(+), 29 deletions(-) diff --git a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs index b3eb3be6dd077..e584d7754721e 100644 --- a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs +++ b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs @@ -829,11 +829,58 @@ public ImageAnalysisSkill(System.Collections.Generic.IEnumerable Arabic. + public static ImageAnalysisSkillLanguage Ar { get; } = new ImageAnalysisSkillLanguage(ArValue); + /// Azerbaijani. + public static ImageAnalysisSkillLanguage Az { get; } = new ImageAnalysisSkillLanguage(AzValue); + /// Bulgarian. + public static ImageAnalysisSkillLanguage Bg { get; } = new ImageAnalysisSkillLanguage(BgValue); + /// Bosnian Latin. + public static ImageAnalysisSkillLanguage Bs { get; } = new ImageAnalysisSkillLanguage(BsValue); + /// Catalan. + public static ImageAnalysisSkillLanguage Ca { get; } = new ImageAnalysisSkillLanguage(CaValue); + /// Czech. + public static ImageAnalysisSkillLanguage Cs { get; } = new ImageAnalysisSkillLanguage(CsValue); + /// Welsh. + public static ImageAnalysisSkillLanguage Cy { get; } = new ImageAnalysisSkillLanguage(CyValue); + /// Danish. + public static ImageAnalysisSkillLanguage Da { get; } = new ImageAnalysisSkillLanguage(DaValue); + /// German. + public static ImageAnalysisSkillLanguage De { get; } = new ImageAnalysisSkillLanguage(DeValue); + /// Greek. + public static ImageAnalysisSkillLanguage El { get; } = new ImageAnalysisSkillLanguage(ElValue); /// English. public static ImageAnalysisSkillLanguage En { get; } = new ImageAnalysisSkillLanguage(EnValue); /// Spanish. public static ImageAnalysisSkillLanguage Es { get; } = new ImageAnalysisSkillLanguage(EsValue); + /// Estonian. + public static ImageAnalysisSkillLanguage Et { get; } = new ImageAnalysisSkillLanguage(EtValue); + /// Basque. + public static ImageAnalysisSkillLanguage Eu { get; } = new ImageAnalysisSkillLanguage(EuValue); + /// Finnish. + public static ImageAnalysisSkillLanguage Fi { get; } = new ImageAnalysisSkillLanguage(FiValue); + /// French. + public static ImageAnalysisSkillLanguage Fr { get; } = new ImageAnalysisSkillLanguage(FrValue); + /// Irish. + public static ImageAnalysisSkillLanguage Ga { get; } = new ImageAnalysisSkillLanguage(GaValue); + /// Galician. + public static ImageAnalysisSkillLanguage Gl { get; } = new ImageAnalysisSkillLanguage(GlValue); + /// Hebrew. + public static ImageAnalysisSkillLanguage He { get; } = new ImageAnalysisSkillLanguage(HeValue); + /// Hindi. + public static ImageAnalysisSkillLanguage Hi { get; } = new ImageAnalysisSkillLanguage(HiValue); + /// Croatian. + public static ImageAnalysisSkillLanguage Hr { get; } = new ImageAnalysisSkillLanguage(HrValue); + /// Hungarian. + public static ImageAnalysisSkillLanguage Hu { get; } = new ImageAnalysisSkillLanguage(HuValue); + /// Indonesian. + public static ImageAnalysisSkillLanguage Id { get; } = new ImageAnalysisSkillLanguage(IdValue); + /// Italian. + public static ImageAnalysisSkillLanguage It { get; } = new ImageAnalysisSkillLanguage(ItValue); /// Japanese. public static ImageAnalysisSkillLanguage Ja { get; } = new ImageAnalysisSkillLanguage(JaValue); - /// Portuguese. + /// Kazakh. + public static ImageAnalysisSkillLanguage Kk { get; } = new ImageAnalysisSkillLanguage(KkValue); + /// Korean. + public static ImageAnalysisSkillLanguage Ko { get; } = new ImageAnalysisSkillLanguage(KoValue); + /// Lithuanian. + public static ImageAnalysisSkillLanguage Lt { get; } = new ImageAnalysisSkillLanguage(LtValue); + /// Latvian. + public static ImageAnalysisSkillLanguage Lv { get; } = new ImageAnalysisSkillLanguage(LvValue); + /// Macedonian. + public static ImageAnalysisSkillLanguage Mk { get; } = new ImageAnalysisSkillLanguage(MkValue); + /// Malay Malaysia. + public static ImageAnalysisSkillLanguage Ms { get; } = new ImageAnalysisSkillLanguage(MsValue); + /// Norwegian (Bokmal). + public static ImageAnalysisSkillLanguage Nb { get; } = new ImageAnalysisSkillLanguage(NbValue); + /// Dutch. + public static ImageAnalysisSkillLanguage Nl { get; } = new ImageAnalysisSkillLanguage(NlValue); + /// Polish. + public static ImageAnalysisSkillLanguage Pl { get; } = new ImageAnalysisSkillLanguage(PlValue); + /// Dari. + public static ImageAnalysisSkillLanguage Prs { get; } = new ImageAnalysisSkillLanguage(PrsValue); + /// Portuguese-Brazil. + public static ImageAnalysisSkillLanguage PtBR { get; } = new ImageAnalysisSkillLanguage(PtBRValue); + /// Portuguese-Portugal. public static ImageAnalysisSkillLanguage Pt { get; } = new ImageAnalysisSkillLanguage(PtValue); - /// Chinese. + /// Portuguese-Portugal. + public static ImageAnalysisSkillLanguage PtPT { get; } = new ImageAnalysisSkillLanguage(PtPTValue); + /// Romanian. + public static ImageAnalysisSkillLanguage Ro { get; } = new ImageAnalysisSkillLanguage(RoValue); + /// Russian. + public static ImageAnalysisSkillLanguage Ru { get; } = new ImageAnalysisSkillLanguage(RuValue); + /// Slovak. + public static ImageAnalysisSkillLanguage Sk { get; } = new ImageAnalysisSkillLanguage(SkValue); + /// Slovenian. + public static ImageAnalysisSkillLanguage Sl { get; } = new ImageAnalysisSkillLanguage(SlValue); + /// Serbian - Cyrillic RS. + public static ImageAnalysisSkillLanguage SrCyrl { get; } = new ImageAnalysisSkillLanguage(SrCyrlValue); + /// Serbian - Latin RS. + public static ImageAnalysisSkillLanguage SrLatn { get; } = new ImageAnalysisSkillLanguage(SrLatnValue); + /// Swedish. + public static ImageAnalysisSkillLanguage Sv { get; } = new ImageAnalysisSkillLanguage(SvValue); + /// Thai. + public static ImageAnalysisSkillLanguage Th { get; } = new ImageAnalysisSkillLanguage(ThValue); + /// Turkish. + public static ImageAnalysisSkillLanguage Tr { get; } = new ImageAnalysisSkillLanguage(TrValue); + /// Ukrainian. + public static ImageAnalysisSkillLanguage Uk { get; } = new ImageAnalysisSkillLanguage(UkValue); + /// Vietnamese. + public static ImageAnalysisSkillLanguage Vi { get; } = new ImageAnalysisSkillLanguage(ViValue); + /// Chinese Simplified. public static ImageAnalysisSkillLanguage Zh { get; } = new ImageAnalysisSkillLanguage(ZhValue); + /// Chinese Simplified. + public static ImageAnalysisSkillLanguage ZhHans { get; } = new ImageAnalysisSkillLanguage(ZhHansValue); + /// Chinese Traditional. + public static ImageAnalysisSkillLanguage ZhHant { get; } = new ImageAnalysisSkillLanguage(ZhHantValue); /// Determines if two values are the same. public static bool operator ==(ImageAnalysisSkillLanguage left, ImageAnalysisSkillLanguage right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkillLanguage.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkillLanguage.cs index 5d0a38f5738d8..6a9349fee2d8d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkillLanguage.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkillLanguage.cs @@ -22,87 +22,516 @@ public OcrSkillLanguage(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } + private const string AfValue = "af"; + private const string SqValue = "sq"; + private const string AnpValue = "anp"; + private const string ArValue = "ar"; + private const string AstValue = "ast"; + private const string AwaValue = "awa"; + private const string AzValue = "az"; + private const string BfyValue = "bfy"; + private const string EuValue = "eu"; + private const string BeValue = "be"; + private const string BeCyrlValue = "be-cyrl"; + private const string BeLatnValue = "be-latn"; + private const string BhoValue = "bho"; + private const string BiValue = "bi"; + private const string BrxValue = "brx"; + private const string BsValue = "bs"; + private const string BraValue = "bra"; + private const string BrValue = "br"; + private const string BgValue = "bg"; + private const string BnsValue = "bns"; + private const string BuaValue = "bua"; + private const string CaValue = "ca"; + private const string CebValue = "ceb"; + private const string RabValue = "rab"; + private const string ChValue = "ch"; + private const string HneValue = "hne"; private const string ZhHansValue = "zh-Hans"; private const string ZhHantValue = "zh-Hant"; + private const string KwValue = "kw"; + private const string CoValue = "co"; + private const string CrhValue = "crh"; + private const string HrValue = "hr"; private const string CsValue = "cs"; private const string DaValue = "da"; + private const string PrsValue = "prs"; + private const string DhiValue = "dhi"; + private const string DoiValue = "doi"; private const string NlValue = "nl"; private const string EnValue = "en"; + private const string MyvValue = "myv"; + private const string EtValue = "et"; + private const string FoValue = "fo"; + private const string FjValue = "fj"; + private const string FilValue = "fil"; private const string FiValue = "fi"; private const string FrValue = "fr"; + private const string FurValue = "fur"; + private const string GagValue = "gag"; + private const string GlValue = "gl"; private const string DeValue = "de"; + private const string GilValue = "gil"; + private const string GonValue = "gon"; private const string ElValue = "el"; + private const string KlValue = "kl"; + private const string GvrValue = "gvr"; + private const string HtValue = "ht"; + private const string HlbValue = "hlb"; + private const string HniValue = "hni"; + private const string BgcValue = "bgc"; + private const string HawValue = "haw"; + private const string HiValue = "hi"; + private const string MwwValue = "mww"; + private const string HocValue = "hoc"; private const string HuValue = "hu"; + private const string IsValue = "is"; + private const string SmnValue = "smn"; + private const string IdValue = "id"; + private const string IaValue = "ia"; + private const string IuValue = "iu"; + private const string GaValue = "ga"; private const string ItValue = "it"; private const string JaValue = "ja"; + private const string JnsValue = "Jns"; + private const string JvValue = "jv"; + private const string KeaValue = "kea"; + private const string KacValue = "kac"; + private const string XnrValue = "xnr"; + private const string KrcValue = "krc"; + private const string KaaCyrlValue = "kaa-cyrl"; + private const string KaaValue = "kaa"; + private const string CsbValue = "csb"; + private const string KkCyrlValue = "kk-cyrl"; + private const string KkLatnValue = "kk-latn"; + private const string KlrValue = "klr"; + private const string KhaValue = "kha"; + private const string QucValue = "quc"; private const string KoValue = "ko"; + private const string KfqValue = "kfq"; + private const string KpyValue = "kpy"; + private const string KosValue = "kos"; + private const string KumValue = "kum"; + private const string KuArabValue = "ku-arab"; + private const string KuLatnValue = "ku-latn"; + private const string KruValue = "kru"; + private const string KyValue = "ky"; + private const string LktValue = "lkt"; + private const string LaValue = "la"; + private const string LtValue = "lt"; + private const string DsbValue = "dsb"; + private const string SmjValue = "smj"; + private const string LbValue = "lb"; + private const string BfzValue = "bfz"; + private const string MsValue = "ms"; + private const string MtValue = "mt"; + private const string KmjValue = "kmj"; + private const string GvValue = "gv"; + private const string MiValue = "mi"; + private const string MrValue = "mr"; + private const string MnValue = "mn"; + private const string CnrCyrlValue = "cnr-cyrl"; + private const string CnrLatnValue = "cnr-latn"; + private const string NapValue = "nap"; + private const string NeValue = "ne"; + private const string NiuValue = "niu"; + private const string NogValue = "nog"; + private const string SmeValue = "sme"; private const string NbValue = "nb"; + private const string NoValue = "no"; + private const string OcValue = "oc"; + private const string OsValue = "os"; + private const string PsValue = "ps"; + private const string FaValue = "fa"; private const string PlValue = "pl"; private const string PtValue = "pt"; - private const string RuValue = "ru"; - private const string EsValue = "es"; - private const string SvValue = "sv"; - private const string TrValue = "tr"; - private const string ArValue = "ar"; + private const string PaValue = "pa"; + private const string KshValue = "ksh"; private const string RoValue = "ro"; + private const string RmValue = "rm"; + private const string RuValue = "ru"; + private const string SckValue = "sck"; + private const string SmValue = "sm"; + private const string SaValue = "sa"; + private const string SatValue = "sat"; + private const string ScoValue = "sco"; + private const string GdValue = "gd"; + private const string SrValue = "sr"; private const string SrCyrlValue = "sr-Cyrl"; private const string SrLatnValue = "sr-Latn"; + private const string XsrValue = "xsr"; + private const string SrxValue = "srx"; + private const string SmsValue = "sms"; private const string SkValue = "sk"; + private const string SlValue = "sl"; + private const string SoValue = "so"; + private const string SmaValue = "sma"; + private const string EsValue = "es"; + private const string SwValue = "sw"; + private const string SvValue = "sv"; + private const string TgValue = "tg"; + private const string TtValue = "tt"; + private const string TetValue = "tet"; + private const string ThfValue = "thf"; + private const string ToValue = "to"; + private const string TrValue = "tr"; + private const string TkValue = "tk"; + private const string TyvValue = "tyv"; + private const string HsbValue = "hsb"; + private const string UrValue = "ur"; + private const string UgValue = "ug"; + private const string UzArabValue = "uz-arab"; + private const string UzCyrlValue = "uz-cyrl"; + private const string UzValue = "uz"; + private const string VoValue = "vo"; + private const string WaeValue = "wae"; + private const string CyValue = "cy"; + private const string FyValue = "fy"; + private const string YuaValue = "yua"; + private const string ZaValue = "za"; + private const string ZuValue = "zu"; private const string UnkValue = "unk"; - /// Chinese-Simplified. + /// Afrikaans. + public static OcrSkillLanguage Af { get; } = new OcrSkillLanguage(AfValue); + /// Albanian. + public static OcrSkillLanguage Sq { get; } = new OcrSkillLanguage(SqValue); + /// Angika (Devanagiri). + public static OcrSkillLanguage Anp { get; } = new OcrSkillLanguage(AnpValue); + /// Arabic. + public static OcrSkillLanguage Ar { get; } = new OcrSkillLanguage(ArValue); + /// Asturian. + public static OcrSkillLanguage Ast { get; } = new OcrSkillLanguage(AstValue); + /// Awadhi-Hindi (Devanagiri). + public static OcrSkillLanguage Awa { get; } = new OcrSkillLanguage(AwaValue); + /// Azerbaijani (Latin). + public static OcrSkillLanguage Az { get; } = new OcrSkillLanguage(AzValue); + /// Bagheli. + public static OcrSkillLanguage Bfy { get; } = new OcrSkillLanguage(BfyValue); + /// Basque. + public static OcrSkillLanguage Eu { get; } = new OcrSkillLanguage(EuValue); + /// Belarusian (Cyrillic and Latin). + public static OcrSkillLanguage Be { get; } = new OcrSkillLanguage(BeValue); + /// Belarusian (Cyrillic). + public static OcrSkillLanguage BeCyrl { get; } = new OcrSkillLanguage(BeCyrlValue); + /// Belarusian (Latin). + public static OcrSkillLanguage BeLatn { get; } = new OcrSkillLanguage(BeLatnValue); + /// Bhojpuri-Hindi (Devanagiri). + public static OcrSkillLanguage Bho { get; } = new OcrSkillLanguage(BhoValue); + /// Bislama. + public static OcrSkillLanguage Bi { get; } = new OcrSkillLanguage(BiValue); + /// Bodo (Devanagiri). + public static OcrSkillLanguage Brx { get; } = new OcrSkillLanguage(BrxValue); + /// Bosnian Latin. + public static OcrSkillLanguage Bs { get; } = new OcrSkillLanguage(BsValue); + /// Brajbha. + public static OcrSkillLanguage Bra { get; } = new OcrSkillLanguage(BraValue); + /// Breton. + public static OcrSkillLanguage Br { get; } = new OcrSkillLanguage(BrValue); + /// Bulgarian. + public static OcrSkillLanguage Bg { get; } = new OcrSkillLanguage(BgValue); + /// Bundeli. + public static OcrSkillLanguage Bns { get; } = new OcrSkillLanguage(BnsValue); + /// Buryat (Cyrillic). + public static OcrSkillLanguage Bua { get; } = new OcrSkillLanguage(BuaValue); + /// Catalan. + public static OcrSkillLanguage Ca { get; } = new OcrSkillLanguage(CaValue); + /// Cebuano. + public static OcrSkillLanguage Ceb { get; } = new OcrSkillLanguage(CebValue); + /// Chamling. + public static OcrSkillLanguage Rab { get; } = new OcrSkillLanguage(RabValue); + /// Chamorro. + public static OcrSkillLanguage Ch { get; } = new OcrSkillLanguage(ChValue); + /// Chhattisgarhi (Devanagiri). + public static OcrSkillLanguage Hne { get; } = new OcrSkillLanguage(HneValue); + /// Chinese Simplified. public static OcrSkillLanguage ZhHans { get; } = new OcrSkillLanguage(ZhHansValue); - /// Chinese-Traditional. + /// Chinese Traditional. public static OcrSkillLanguage ZhHant { get; } = new OcrSkillLanguage(ZhHantValue); + /// Cornish. + public static OcrSkillLanguage Kw { get; } = new OcrSkillLanguage(KwValue); + /// Corsican. + public static OcrSkillLanguage Co { get; } = new OcrSkillLanguage(CoValue); + /// Crimean Tatar (Latin). + public static OcrSkillLanguage Crh { get; } = new OcrSkillLanguage(CrhValue); + /// Croatian. + public static OcrSkillLanguage Hr { get; } = new OcrSkillLanguage(HrValue); /// Czech. public static OcrSkillLanguage Cs { get; } = new OcrSkillLanguage(CsValue); /// Danish. public static OcrSkillLanguage Da { get; } = new OcrSkillLanguage(DaValue); + /// Dari. + public static OcrSkillLanguage Prs { get; } = new OcrSkillLanguage(PrsValue); + /// Dhimal (Devanagiri). + public static OcrSkillLanguage Dhi { get; } = new OcrSkillLanguage(DhiValue); + /// Dogri (Devanagiri). + public static OcrSkillLanguage Doi { get; } = new OcrSkillLanguage(DoiValue); /// Dutch. public static OcrSkillLanguage Nl { get; } = new OcrSkillLanguage(NlValue); /// English. public static OcrSkillLanguage En { get; } = new OcrSkillLanguage(EnValue); + /// Erzya (Cyrillic). + public static OcrSkillLanguage Myv { get; } = new OcrSkillLanguage(MyvValue); + /// Estonian. + public static OcrSkillLanguage Et { get; } = new OcrSkillLanguage(EtValue); + /// Faroese. + public static OcrSkillLanguage Fo { get; } = new OcrSkillLanguage(FoValue); + /// Fijian. + public static OcrSkillLanguage Fj { get; } = new OcrSkillLanguage(FjValue); + /// Filipino. + public static OcrSkillLanguage Fil { get; } = new OcrSkillLanguage(FilValue); /// Finnish. public static OcrSkillLanguage Fi { get; } = new OcrSkillLanguage(FiValue); /// French. public static OcrSkillLanguage Fr { get; } = new OcrSkillLanguage(FrValue); + /// Frulian. + public static OcrSkillLanguage Fur { get; } = new OcrSkillLanguage(FurValue); + /// Gagauz (Latin). + public static OcrSkillLanguage Gag { get; } = new OcrSkillLanguage(GagValue); + /// Galician. + public static OcrSkillLanguage Gl { get; } = new OcrSkillLanguage(GlValue); /// German. public static OcrSkillLanguage De { get; } = new OcrSkillLanguage(DeValue); + /// Gilbertese. + public static OcrSkillLanguage Gil { get; } = new OcrSkillLanguage(GilValue); + /// Gondi (Devanagiri). + public static OcrSkillLanguage Gon { get; } = new OcrSkillLanguage(GonValue); /// Greek. public static OcrSkillLanguage El { get; } = new OcrSkillLanguage(ElValue); + /// Greenlandic. + public static OcrSkillLanguage Kl { get; } = new OcrSkillLanguage(KlValue); + /// Gurung (Devanagiri). + public static OcrSkillLanguage Gvr { get; } = new OcrSkillLanguage(GvrValue); + /// Haitian Creole. + public static OcrSkillLanguage Ht { get; } = new OcrSkillLanguage(HtValue); + /// Halbi (Devanagiri). + public static OcrSkillLanguage Hlb { get; } = new OcrSkillLanguage(HlbValue); + /// Hani. + public static OcrSkillLanguage Hni { get; } = new OcrSkillLanguage(HniValue); + /// Haryanvi. + public static OcrSkillLanguage Bgc { get; } = new OcrSkillLanguage(BgcValue); + /// Hawaiian. + public static OcrSkillLanguage Haw { get; } = new OcrSkillLanguage(HawValue); + /// Hindi. + public static OcrSkillLanguage Hi { get; } = new OcrSkillLanguage(HiValue); + /// Hmong Daw (Latin). + public static OcrSkillLanguage Mww { get; } = new OcrSkillLanguage(MwwValue); + /// Ho (Devanagiri). + public static OcrSkillLanguage Hoc { get; } = new OcrSkillLanguage(HocValue); /// Hungarian. public static OcrSkillLanguage Hu { get; } = new OcrSkillLanguage(HuValue); + /// Icelandic. + public static OcrSkillLanguage Is { get; } = new OcrSkillLanguage(IsValue); + /// Inari Sami. + public static OcrSkillLanguage Smn { get; } = new OcrSkillLanguage(SmnValue); + /// Indonesian. + public static OcrSkillLanguage Id { get; } = new OcrSkillLanguage(IdValue); + /// Interlingua. + public static OcrSkillLanguage Ia { get; } = new OcrSkillLanguage(IaValue); + /// Inuktitut (Latin). + public static OcrSkillLanguage Iu { get; } = new OcrSkillLanguage(IuValue); + /// Irish. + public static OcrSkillLanguage Ga { get; } = new OcrSkillLanguage(GaValue); /// Italian. public static OcrSkillLanguage It { get; } = new OcrSkillLanguage(ItValue); /// Japanese. public static OcrSkillLanguage Ja { get; } = new OcrSkillLanguage(JaValue); + /// Jaunsari (Devanagiri). + public static OcrSkillLanguage Jns { get; } = new OcrSkillLanguage(JnsValue); + /// Javanese. + public static OcrSkillLanguage Jv { get; } = new OcrSkillLanguage(JvValue); + /// Kabuverdianu. + public static OcrSkillLanguage Kea { get; } = new OcrSkillLanguage(KeaValue); + /// Kachin (Latin). + public static OcrSkillLanguage Kac { get; } = new OcrSkillLanguage(KacValue); + /// Kangri (Devanagiri). + public static OcrSkillLanguage Xnr { get; } = new OcrSkillLanguage(XnrValue); + /// Karachay-Balkar. + public static OcrSkillLanguage Krc { get; } = new OcrSkillLanguage(KrcValue); + /// Kara-Kalpak (Cyrillic). + public static OcrSkillLanguage KaaCyrl { get; } = new OcrSkillLanguage(KaaCyrlValue); + /// Kara-Kalpak (Latin). + public static OcrSkillLanguage Kaa { get; } = new OcrSkillLanguage(KaaValue); + /// Kashubian. + public static OcrSkillLanguage Csb { get; } = new OcrSkillLanguage(CsbValue); + /// Kazakh (Cyrillic). + public static OcrSkillLanguage KkCyrl { get; } = new OcrSkillLanguage(KkCyrlValue); + /// Kazakh (Latin). + public static OcrSkillLanguage KkLatn { get; } = new OcrSkillLanguage(KkLatnValue); + /// Khaling. + public static OcrSkillLanguage Klr { get; } = new OcrSkillLanguage(KlrValue); + /// Khasi. + public static OcrSkillLanguage Kha { get; } = new OcrSkillLanguage(KhaValue); + /// K'iche'. + public static OcrSkillLanguage Quc { get; } = new OcrSkillLanguage(QucValue); /// Korean. public static OcrSkillLanguage Ko { get; } = new OcrSkillLanguage(KoValue); - /// Norwegian (Bokmaal). + /// Korku. + public static OcrSkillLanguage Kfq { get; } = new OcrSkillLanguage(KfqValue); + /// Koryak. + public static OcrSkillLanguage Kpy { get; } = new OcrSkillLanguage(KpyValue); + /// Kosraean. + public static OcrSkillLanguage Kos { get; } = new OcrSkillLanguage(KosValue); + /// Kumyk (Cyrillic). + public static OcrSkillLanguage Kum { get; } = new OcrSkillLanguage(KumValue); + /// Kurdish (Arabic). + public static OcrSkillLanguage KuArab { get; } = new OcrSkillLanguage(KuArabValue); + /// Kurdish (Latin). + public static OcrSkillLanguage KuLatn { get; } = new OcrSkillLanguage(KuLatnValue); + /// Kurukh (Devanagiri). + public static OcrSkillLanguage Kru { get; } = new OcrSkillLanguage(KruValue); + /// Kyrgyz (Cyrillic). + public static OcrSkillLanguage Ky { get; } = new OcrSkillLanguage(KyValue); + /// Lakota. + public static OcrSkillLanguage Lkt { get; } = new OcrSkillLanguage(LktValue); + /// Latin. + public static OcrSkillLanguage La { get; } = new OcrSkillLanguage(LaValue); + /// Lithuanian. + public static OcrSkillLanguage Lt { get; } = new OcrSkillLanguage(LtValue); + /// Lower Sorbian. + public static OcrSkillLanguage Dsb { get; } = new OcrSkillLanguage(DsbValue); + /// Lule Sami. + public static OcrSkillLanguage Smj { get; } = new OcrSkillLanguage(SmjValue); + /// Luxembourgish. + public static OcrSkillLanguage Lb { get; } = new OcrSkillLanguage(LbValue); + /// Mahasu Pahari (Devanagiri). + public static OcrSkillLanguage Bfz { get; } = new OcrSkillLanguage(BfzValue); + /// Malay (Latin). + public static OcrSkillLanguage Ms { get; } = new OcrSkillLanguage(MsValue); + /// Maltese. + public static OcrSkillLanguage Mt { get; } = new OcrSkillLanguage(MtValue); + /// Malto (Devanagiri). + public static OcrSkillLanguage Kmj { get; } = new OcrSkillLanguage(KmjValue); + /// Manx. + public static OcrSkillLanguage Gv { get; } = new OcrSkillLanguage(GvValue); + /// Maori. + public static OcrSkillLanguage Mi { get; } = new OcrSkillLanguage(MiValue); + /// Marathi. + public static OcrSkillLanguage Mr { get; } = new OcrSkillLanguage(MrValue); + /// Mongolian (Cyrillic). + public static OcrSkillLanguage Mn { get; } = new OcrSkillLanguage(MnValue); + /// Montenegrin (Cyrillic). + public static OcrSkillLanguage CnrCyrl { get; } = new OcrSkillLanguage(CnrCyrlValue); + /// Montenegrin (Latin). + public static OcrSkillLanguage CnrLatn { get; } = new OcrSkillLanguage(CnrLatnValue); + /// Neapolitan. + public static OcrSkillLanguage Nap { get; } = new OcrSkillLanguage(NapValue); + /// Nepali. + public static OcrSkillLanguage Ne { get; } = new OcrSkillLanguage(NeValue); + /// Niuean. + public static OcrSkillLanguage Niu { get; } = new OcrSkillLanguage(NiuValue); + /// Nogay. + public static OcrSkillLanguage Nog { get; } = new OcrSkillLanguage(NogValue); + /// Northern Sami (Latin). + public static OcrSkillLanguage Sme { get; } = new OcrSkillLanguage(SmeValue); + /// Norwegian. public static OcrSkillLanguage Nb { get; } = new OcrSkillLanguage(NbValue); + /// Norwegian. + public static OcrSkillLanguage No { get; } = new OcrSkillLanguage(NoValue); + /// Occitan. + public static OcrSkillLanguage Oc { get; } = new OcrSkillLanguage(OcValue); + /// Ossetic. + public static OcrSkillLanguage Os { get; } = new OcrSkillLanguage(OsValue); + /// Pashto. + public static OcrSkillLanguage Ps { get; } = new OcrSkillLanguage(PsValue); + /// Persian. + public static OcrSkillLanguage Fa { get; } = new OcrSkillLanguage(FaValue); /// Polish. public static OcrSkillLanguage Pl { get; } = new OcrSkillLanguage(PlValue); /// Portuguese. public static OcrSkillLanguage Pt { get; } = new OcrSkillLanguage(PtValue); + /// Punjabi (Arabic). + public static OcrSkillLanguage Pa { get; } = new OcrSkillLanguage(PaValue); + /// Ripuarian. + public static OcrSkillLanguage Ksh { get; } = new OcrSkillLanguage(KshValue); + /// Romanian. + public static OcrSkillLanguage Ro { get; } = new OcrSkillLanguage(RoValue); + /// Romansh. + public static OcrSkillLanguage Rm { get; } = new OcrSkillLanguage(RmValue); /// Russian. public static OcrSkillLanguage Ru { get; } = new OcrSkillLanguage(RuValue); + /// Sadri (Devanagiri). + public static OcrSkillLanguage Sck { get; } = new OcrSkillLanguage(SckValue); + /// Samoan (Latin). + public static OcrSkillLanguage Sm { get; } = new OcrSkillLanguage(SmValue); + /// Sanskrit (Devanagiri). + public static OcrSkillLanguage Sa { get; } = new OcrSkillLanguage(SaValue); + /// Santali (Devanagiri). + public static OcrSkillLanguage Sat { get; } = new OcrSkillLanguage(SatValue); + /// Scots. + public static OcrSkillLanguage Sco { get; } = new OcrSkillLanguage(ScoValue); + /// Scottish Gaelic. + public static OcrSkillLanguage Gd { get; } = new OcrSkillLanguage(GdValue); + /// Serbian (Latin). + public static OcrSkillLanguage Sr { get; } = new OcrSkillLanguage(SrValue); + /// Serbian (Cyrillic). + public static OcrSkillLanguage SrCyrl { get; } = new OcrSkillLanguage(SrCyrlValue); + /// Serbian (Latin). + public static OcrSkillLanguage SrLatn { get; } = new OcrSkillLanguage(SrLatnValue); + /// Sherpa (Devanagiri). + public static OcrSkillLanguage Xsr { get; } = new OcrSkillLanguage(XsrValue); + /// Sirmauri (Devanagiri). + public static OcrSkillLanguage Srx { get; } = new OcrSkillLanguage(SrxValue); + /// Skolt Sami. + public static OcrSkillLanguage Sms { get; } = new OcrSkillLanguage(SmsValue); + /// Slovak. + public static OcrSkillLanguage Sk { get; } = new OcrSkillLanguage(SkValue); + /// Slovenian. + public static OcrSkillLanguage Sl { get; } = new OcrSkillLanguage(SlValue); + /// Somali (Arabic). + public static OcrSkillLanguage So { get; } = new OcrSkillLanguage(SoValue); + /// Southern Sami. + public static OcrSkillLanguage Sma { get; } = new OcrSkillLanguage(SmaValue); /// Spanish. public static OcrSkillLanguage Es { get; } = new OcrSkillLanguage(EsValue); + /// Swahili (Latin). + public static OcrSkillLanguage Sw { get; } = new OcrSkillLanguage(SwValue); /// Swedish. public static OcrSkillLanguage Sv { get; } = new OcrSkillLanguage(SvValue); + /// Tajik (Cyrillic). + public static OcrSkillLanguage Tg { get; } = new OcrSkillLanguage(TgValue); + /// Tatar (Latin). + public static OcrSkillLanguage Tt { get; } = new OcrSkillLanguage(TtValue); + /// Tetum. + public static OcrSkillLanguage Tet { get; } = new OcrSkillLanguage(TetValue); + /// Thangmi. + public static OcrSkillLanguage Thf { get; } = new OcrSkillLanguage(ThfValue); + /// Tongan. + public static OcrSkillLanguage To { get; } = new OcrSkillLanguage(ToValue); /// Turkish. public static OcrSkillLanguage Tr { get; } = new OcrSkillLanguage(TrValue); - /// Arabic. - public static OcrSkillLanguage Ar { get; } = new OcrSkillLanguage(ArValue); - /// Romanian. - public static OcrSkillLanguage Ro { get; } = new OcrSkillLanguage(RoValue); - /// Serbian (Cyrillic, Serbia). - public static OcrSkillLanguage SrCyrl { get; } = new OcrSkillLanguage(SrCyrlValue); - /// Serbian (Latin, Serbia). - public static OcrSkillLanguage SrLatn { get; } = new OcrSkillLanguage(SrLatnValue); - /// Slovak. - public static OcrSkillLanguage Sk { get; } = new OcrSkillLanguage(SkValue); - /// Unknown. If the language is explicitly set to "unk", the language will be auto-detected. + /// Turkmen (Latin). + public static OcrSkillLanguage Tk { get; } = new OcrSkillLanguage(TkValue); + /// Tuvan. + public static OcrSkillLanguage Tyv { get; } = new OcrSkillLanguage(TyvValue); + /// Upper Sorbian. + public static OcrSkillLanguage Hsb { get; } = new OcrSkillLanguage(HsbValue); + /// Urdu. + public static OcrSkillLanguage Ur { get; } = new OcrSkillLanguage(UrValue); + /// Uyghur (Arabic). + public static OcrSkillLanguage Ug { get; } = new OcrSkillLanguage(UgValue); + /// Uzbek (Arabic). + public static OcrSkillLanguage UzArab { get; } = new OcrSkillLanguage(UzArabValue); + /// Uzbek (Cyrillic). + public static OcrSkillLanguage UzCyrl { get; } = new OcrSkillLanguage(UzCyrlValue); + /// Uzbek (Latin). + public static OcrSkillLanguage Uz { get; } = new OcrSkillLanguage(UzValue); + /// Volapük. + public static OcrSkillLanguage Vo { get; } = new OcrSkillLanguage(VoValue); + /// Walser. + public static OcrSkillLanguage Wae { get; } = new OcrSkillLanguage(WaeValue); + /// Welsh. + public static OcrSkillLanguage Cy { get; } = new OcrSkillLanguage(CyValue); + /// Western Frisian. + public static OcrSkillLanguage Fy { get; } = new OcrSkillLanguage(FyValue); + /// Yucatec Maya. + public static OcrSkillLanguage Yua { get; } = new OcrSkillLanguage(YuaValue); + /// Zhuang. + public static OcrSkillLanguage Za { get; } = new OcrSkillLanguage(ZaValue); + /// Zulu. + public static OcrSkillLanguage Zu { get; } = new OcrSkillLanguage(ZuValue); + /// Unknown (All). public static OcrSkillLanguage Unk { get; } = new OcrSkillLanguage(UnkValue); /// Determines if two values are the same. public static bool operator ==(OcrSkillLanguage left, OcrSkillLanguage right) => left.Equals(right); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataIdentity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataIdentity.Serialization.cs index ee97f756963ba..d7e0f6844d5e5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataIdentity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataIdentity.Serialization.cs @@ -27,8 +27,8 @@ internal static SearchIndexerDataIdentity DeserializeSearchIndexerDataIdentity(J { switch (discriminator.GetString()) { - case "#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity": return SearchIndexerDataNoneIdentity.DeserializeSearchIndexerDataNoneIdentity(element); - case "#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity": return SearchIndexerDataUserAssignedIdentity.DeserializeSearchIndexerDataUserAssignedIdentity(element); + case "#Microsoft.Azure.Search.DataNoneIdentity": return SearchIndexerDataNoneIdentity.DeserializeSearchIndexerDataNoneIdentity(element); + case "#Microsoft.Azure.Search.DataUserAssignedIdentity": return SearchIndexerDataUserAssignedIdentity.DeserializeSearchIndexerDataUserAssignedIdentity(element); } } throw new NotSupportedException("Deserialization of abstract type 'global::Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity' not supported."); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataNoneIdentity.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataNoneIdentity.cs index 5b966058fb909..2721d9b058de3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataNoneIdentity.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataNoneIdentity.cs @@ -13,14 +13,14 @@ public partial class SearchIndexerDataNoneIdentity : SearchIndexerDataIdentity /// Initializes a new instance of SearchIndexerDataNoneIdentity. public SearchIndexerDataNoneIdentity() { - ODataType = "#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity"; + ODataType = "#Microsoft.Azure.Search.DataNoneIdentity"; } /// Initializes a new instance of SearchIndexerDataNoneIdentity. /// Identifies the concrete type of the identity. internal SearchIndexerDataNoneIdentity(string oDataType) : base(oDataType) { - ODataType = oDataType ?? "#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity"; + ODataType = oDataType ?? "#Microsoft.Azure.Search.DataNoneIdentity"; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataUserAssignedIdentity.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataUserAssignedIdentity.cs index 09d960e412b7c..9f53cec0d19ce 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataUserAssignedIdentity.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataUserAssignedIdentity.cs @@ -23,7 +23,7 @@ public SearchIndexerDataUserAssignedIdentity(string userAssignedIdentity) } UserAssignedIdentity = userAssignedIdentity; - ODataType = "#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity"; + ODataType = "#Microsoft.Azure.Search.DataUserAssignedIdentity"; } /// Initializes a new instance of SearchIndexerDataUserAssignedIdentity. @@ -32,7 +32,7 @@ public SearchIndexerDataUserAssignedIdentity(string userAssignedIdentity) internal SearchIndexerDataUserAssignedIdentity(string oDataType, string userAssignedIdentity) : base(oDataType) { UserAssignedIdentity = userAssignedIdentity; - ODataType = oDataType ?? "#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity"; + ODataType = oDataType ?? "#Microsoft.Azure.Search.DataUserAssignedIdentity"; } /// The fully qualified Azure resource Id of a user assigned managed identity typically in the form "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" that should have been assigned to the search service. diff --git a/sdk/search/Azure.Search.Documents/src/autorest.md b/sdk/search/Azure.Search.Documents/src/autorest.md index f4b6ed5ac1409..1334ba681d657 100644 --- a/sdk/search/Azure.Search.Documents/src/autorest.md +++ b/sdk/search/Azure.Search.Documents/src/autorest.md @@ -11,8 +11,8 @@ See the [Contributing guidelines](https://github.com/Azure/azure-sdk-for-net/blo ```yaml title: SearchServiceClient input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/d850f41f89530917000d8e6bb463f42bb745b930/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json - - https://github.com/Azure/azure-rest-api-specs/blob/d850f41f89530917000d8e6bb463f42bb745b930/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json + - https://github.com/Azure/azure-rest-api-specs/blob/932e261a870475e1a29115f62def7bb84e4d7b38/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json + - https://github.com/Azure/azure-rest-api-specs/blob/904899a23a417768ce1ec1d5f89f33817f8ef8ad/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json generation1-convenience-client: true ```