Skip to content

Commit deb0f5e

Browse files
committed
feat: Regenerate the services based on current API def
1 parent f9dede3 commit deb0f5e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Scripts/Services/Discovery/V2/DiscoveryService.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,9 @@ private void OnAddDocumentResponse(RESTConnector.Request req, RESTConnector.Resp
758758
///
759759
/// **Note:** This operation only works on collections created to accept direct file uploads. It cannot be used
760760
/// to modify a collection that connects to an external source such as Microsoft SharePoint.
761+
///
762+
/// **Note:** If an uploaded document is segmented, all segments will be overwritten, even if the updated
763+
/// version of the document has fewer segments.
761764
/// </summary>
762765
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
763766
/// <param name="projectId">The ID of the project. This information can be found from the deploy page of the
@@ -858,6 +861,9 @@ private void OnUpdateDocumentResponse(RESTConnector.Request req, RESTConnector.R
858861
///
859862
/// **Note:** This operation only works on collections created to accept direct file uploads. It cannot be used
860863
/// to modify a collection that connects to an external source such as Microsoft SharePoint.
864+
///
865+
/// **Note:** Segments of an uploaded document cannot be deleted individually. Delete all segments by deleting
866+
/// using the `parent_document_id` of a segment result.
861867
/// </summary>
862868
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
863869
/// <param name="projectId">The ID of the project. This information can be found from the deploy page of the

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/Model.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ public class Model
5353
/// <summary>
5454
/// The model version, if it was manually provided in Watson Knowledge Studio.
5555
/// </summary>
56+
[JsonProperty("model_version", NullValueHandling = NullValueHandling.Ignore)]
57+
public string ModelVersion { get; set; }
58+
/// <summary>
59+
/// (Deprecated — use `model_version`) The model version, if it was manually provided in Watson Knowledge
60+
/// Studio.
61+
/// </summary>
5662
[JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)]
5763
public string Version { get; set; }
5864
/// <summary>

0 commit comments

Comments
 (0)