Skip to content

Commit e1ef7fe

Browse files
microsoft-graph-devx-bot[bot]Microsoft Graph DevX Tooling
andauthored
feat(generation): update request builders and models for dotnet beta (#199)
Update generated files with build 201791 Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
1 parent 46481fb commit e1ef7fe

File tree

5 files changed

+44
-31
lines changed

5 files changed

+44
-31
lines changed

dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Models/RetrievalExtract.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ public string OdataType
3737
set { BackingStore?.Set("@odata.type", value); }
3838
}
3939
#endif
40+
/// <summary>The relevanceScore property</summary>
41+
public double? RelevanceScore
42+
{
43+
get { return BackingStore?.Get<double?>("relevanceScore"); }
44+
set { BackingStore?.Set("relevanceScore", value); }
45+
}
4046
/// <summary>The text property</summary>
4147
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
4248
#nullable enable
@@ -80,6 +86,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
8086
return new Dictionary<string, Action<IParseNode>>
8187
{
8288
{ "@odata.type", n => { OdataType = n.GetStringValue(); } },
89+
{ "relevanceScore", n => { RelevanceScore = n.GetDoubleValue(); } },
8390
{ "text", n => { Text = n.GetStringValue(); } },
8491
};
8592
}
@@ -91,6 +98,7 @@ public virtual void Serialize(ISerializationWriter writer)
9198
{
9299
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
93100
writer.WriteStringValue("@odata.type", OdataType);
101+
writer.WriteDoubleValue("relevanceScore", RelevanceScore);
94102
writer.WriteStringValue("text", Text);
95103
writer.WriteAdditionalData(AdditionalData);
96104
}

dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Models/RetrievalHit.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ public string OdataType
7878
/// <summary>The sensitivityLabel property</summary>
7979
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
8080
#nullable enable
81-
public global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo? SensitivityLabel
81+
public global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo? SensitivityLabel
8282
{
83-
get { return BackingStore?.Get<global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo?>("sensitivityLabel"); }
83+
get { return BackingStore?.Get<global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo?>("sensitivityLabel"); }
8484
set { BackingStore?.Set("sensitivityLabel", value); }
8585
}
8686
#nullable restore
8787
#else
88-
public global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo SensitivityLabel
88+
public global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo SensitivityLabel
8989
{
90-
get { return BackingStore?.Get<global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo>("sensitivityLabel"); }
90+
get { return BackingStore?.Get<global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo>("sensitivityLabel"); }
9191
set { BackingStore?.Set("sensitivityLabel", value); }
9292
}
9393
#endif
@@ -137,7 +137,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
137137
{ "@odata.type", n => { OdataType = n.GetStringValue(); } },
138138
{ "resourceMetadata", n => { ResourceMetadata = n.GetObjectValue<global::Microsoft.Agents.M365Copilot.Beta.Models.SearchResourceMetadataDictionary>(global::Microsoft.Agents.M365Copilot.Beta.Models.SearchResourceMetadataDictionary.CreateFromDiscriminatorValue); } },
139139
{ "resourceType", n => { ResourceType = n.GetEnumValue<global::Microsoft.Agents.M365Copilot.Beta.Models.RetrievalEntityType>(); } },
140-
{ "sensitivityLabel", n => { SensitivityLabel = n.GetObjectValue<global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo>(global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo.CreateFromDiscriminatorValue); } },
140+
{ "sensitivityLabel", n => { SensitivityLabel = n.GetObjectValue<global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo>(global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo.CreateFromDiscriminatorValue); } },
141141
{ "webUrl", n => { WebUrl = n.GetStringValue(); } },
142142
};
143143
}
@@ -152,7 +152,7 @@ public virtual void Serialize(ISerializationWriter writer)
152152
writer.WriteStringValue("@odata.type", OdataType);
153153
writer.WriteObjectValue<global::Microsoft.Agents.M365Copilot.Beta.Models.SearchResourceMetadataDictionary>("resourceMetadata", ResourceMetadata);
154154
writer.WriteEnumValue<global::Microsoft.Agents.M365Copilot.Beta.Models.RetrievalEntityType>("resourceType", ResourceType);
155-
writer.WriteObjectValue<global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo>("sensitivityLabel", SensitivityLabel);
155+
writer.WriteObjectValue<global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo>("sensitivityLabel", SensitivityLabel);
156156
writer.WriteStringValue("webUrl", WebUrl);
157157
writer.WriteAdditionalData(AdditionalData);
158158
}
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
using System;
99
namespace Microsoft.Agents.M365Copilot.Beta.Models
1010
{
11-
/// <summary>
12-
/// Represents a sensitivityLabel.This model is shared with the CCS retrieval API and search where it is already unhidden.
13-
/// </summary>
1411
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
15-
public partial class SearchSensitivityLabelInfo : IAdditionalDataHolder, IBackedModel, IParsable
12+
#pragma warning disable CS1591
13+
public partial class SensitivityLabelInfo : IAdditionalDataHolder, IBackedModel, IParsable
14+
#pragma warning restore CS1591
1615
{
1716
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
1817
public IDictionary<string, object> AdditionalData
@@ -109,22 +108,22 @@ public string Tooltip
109108
}
110109
#endif
111110
/// <summary>
112-
/// Instantiates a new <see cref="global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo"/> and sets the default values.
111+
/// Instantiates a new <see cref="global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo"/> and sets the default values.
113112
/// </summary>
114-
public SearchSensitivityLabelInfo()
113+
public SensitivityLabelInfo()
115114
{
116115
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
117116
AdditionalData = new Dictionary<string, object>();
118117
}
119118
/// <summary>
120119
/// Creates a new instance of the appropriate class based on discriminator value
121120
/// </summary>
122-
/// <returns>A <see cref="global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo"/></returns>
121+
/// <returns>A <see cref="global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo"/></returns>
123122
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
124-
public static global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo CreateFromDiscriminatorValue(IParseNode parseNode)
123+
public static global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo CreateFromDiscriminatorValue(IParseNode parseNode)
125124
{
126125
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
127-
return new global::Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo();
126+
return new global::Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo();
128127
}
129128
/// <summary>
130129
/// The deserialization information for the current model
@@ -149,7 +148,12 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
149148
public virtual void Serialize(ISerializationWriter writer)
150149
{
151150
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
151+
writer.WriteStringValue("color", Color);
152+
writer.WriteStringValue("displayName", DisplayName);
152153
writer.WriteStringValue("@odata.type", OdataType);
154+
writer.WriteIntValue("priority", Priority);
155+
writer.WriteStringValue("sensitivityLabelId", SensitivityLabelId);
156+
writer.WriteStringValue("tooltip", Tooltip);
153157
writer.WriteAdditionalData(AdditionalData);
154158
}
155159
}

dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/kiota-dom-export.txt

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ Microsoft.Agents.M365Copilot.Beta.Models.retrievalExtract::|public|BackingStore:
11851185
Microsoft.Agents.M365Copilot.Beta.Models.retrievalExtract::|public|constructor():void
11861186
Microsoft.Agents.M365Copilot.Beta.Models.retrievalExtract::|public|GetFieldDeserializers():IDictionary<string, Action<IParseNode>>
11871187
Microsoft.Agents.M365Copilot.Beta.Models.retrievalExtract::|public|OdataType:string
1188+
Microsoft.Agents.M365Copilot.Beta.Models.retrievalExtract::|public|RelevanceScore:double?
11881189
Microsoft.Agents.M365Copilot.Beta.Models.retrievalExtract::|public|Serialize(writer:ISerializationWriter):void
11891190
Microsoft.Agents.M365Copilot.Beta.Models.retrievalExtract::|public|Text:string
11901191
Microsoft.Agents.M365Copilot.Beta.Models.retrievalExtract::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Agents.M365Copilot.Beta.Models.RetrievalExtract
@@ -1197,7 +1198,7 @@ Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|public|GetFieldDeseriali
11971198
Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|public|OdataType:string
11981199
Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|public|ResourceMetadata:global.Microsoft.Agents.M365Copilot.Beta.Models.SearchResourceMetadataDictionary
11991200
Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|public|ResourceType:global.Microsoft.Agents.M365Copilot.Beta.Models.RetrievalEntityType?
1200-
Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|public|SensitivityLabel:global.Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo
1201+
Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|public|SensitivityLabel:global.Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo
12011202
Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|public|Serialize(writer:ISerializationWriter):void
12021203
Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|public|WebUrl:string
12031204
Microsoft.Agents.M365Copilot.Beta.Models.retrievalHit::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Agents.M365Copilot.Beta.Models.RetrievalHit
@@ -1216,26 +1217,26 @@ Microsoft.Agents.M365Copilot.Beta.Models.searchResourceMetadataDictionary::|publ
12161217
Microsoft.Agents.M365Copilot.Beta.Models.searchResourceMetadataDictionary::|public|OdataType:string
12171218
Microsoft.Agents.M365Copilot.Beta.Models.searchResourceMetadataDictionary::|public|Serialize(writer:ISerializationWriter):void
12181219
Microsoft.Agents.M365Copilot.Beta.Models.searchResourceMetadataDictionary::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Agents.M365Copilot.Beta.Models.SearchResourceMetadataDictionary
1219-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|AdditionalData:IDictionary<string, object>
1220-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|BackingStore:IBackingStore
1221-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|Color:string
1222-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|constructor():void
1223-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|DisplayName:string
1224-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|GetFieldDeserializers():IDictionary<string, Action<IParseNode>>
1225-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|OdataType:string
1226-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|Priority:int?
1227-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|SensitivityLabelId:string
1228-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|Serialize(writer:ISerializationWriter):void
1229-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|public|Tooltip:string
1230-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Agents.M365Copilot.Beta.Models.SearchSensitivityLabelInfo
1231-
Microsoft.Agents.M365Copilot.Beta.Models.searchSensitivityLabelInfo~~>IAdditionalDataHolder; IBackedModel; IParsable
12321220
Microsoft.Agents.M365Copilot.Beta.Models.Security.submissionUserIdentity-->global.Microsoft.Agents.M365Copilot.Beta.Models.Identity
12331221
Microsoft.Agents.M365Copilot.Beta.Models.Security.submissionUserIdentity::|public|constructor():void
12341222
Microsoft.Agents.M365Copilot.Beta.Models.Security.submissionUserIdentity::|public|Email:string
12351223
Microsoft.Agents.M365Copilot.Beta.Models.Security.submissionUserIdentity::|public|GetFieldDeserializers():IDictionary<string, Action<IParseNode>>
12361224
Microsoft.Agents.M365Copilot.Beta.Models.Security.submissionUserIdentity::|public|OdataType:string
12371225
Microsoft.Agents.M365Copilot.Beta.Models.Security.submissionUserIdentity::|public|Serialize(writer:ISerializationWriter):void
12381226
Microsoft.Agents.M365Copilot.Beta.Models.Security.submissionUserIdentity::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Agents.M365Copilot.Beta.Models.Security.SubmissionUserIdentity
1227+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|AdditionalData:IDictionary<string, object>
1228+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|BackingStore:IBackingStore
1229+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|Color:string
1230+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|constructor():void
1231+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|DisplayName:string
1232+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|GetFieldDeserializers():IDictionary<string, Action<IParseNode>>
1233+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|OdataType:string
1234+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|Priority:int?
1235+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|SensitivityLabelId:string
1236+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|Serialize(writer:ISerializationWriter):void
1237+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|public|Tooltip:string
1238+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Agents.M365Copilot.Beta.Models.SensitivityLabelInfo
1239+
Microsoft.Agents.M365Copilot.Beta.Models.sensitivityLabelInfo~~>IAdditionalDataHolder; IBackedModel; IParsable
12391240
Microsoft.Agents.M365Copilot.Beta.Models.servicePrincipalIdentity-->global.Microsoft.Agents.M365Copilot.Beta.Models.Identity
12401241
Microsoft.Agents.M365Copilot.Beta.Models.servicePrincipalIdentity::|public|AppId:string
12411242
Microsoft.Agents.M365Copilot.Beta.Models.servicePrincipalIdentity::|public|constructor():void

dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/kiota-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"descriptionHash": "0BE52518D63A32ABE08F75C826BBA005E1A67D74B22970891C36558E0E020C40A3C936C5C11E5A8F42A315417B4453BCCC24796534DA554F0C1A294F14171D0E",
2+
"descriptionHash": "1EDFE4C00FEFF8DAEB55742184535F52BFF813EC31160DA623E9981EF31F85A67978D444495BA83F6119AC81B2C929FDD0EBC0B15C065D96362282A89482D3CF",
33
"descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
5-
"kiotaVersion": "1.29.0",
5+
"kiotaVersion": "1.30.0",
66
"clientClassName": "BaseAgentsM365CopilotBetaServiceClient",
77
"typeAccessModifier": "Public",
88
"clientNamespaceName": "Microsoft.Agents.M365Copilot.Beta",

0 commit comments

Comments
 (0)