Skip to content

Commit 7d60d7f

Browse files
committed
feat(Regeneration): Regenerated all services using API definition commit 0baaf120beb3852ab9557e700f5
1 parent b613391 commit 7d60d7f

17 files changed

+95
-92
lines changed

Scripts/Services/Assistant/V1/Model/DialogRuntimeResponseGeneric.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ public class PreferenceValue
140140
[JsonProperty("topic", NullValueHandling = NullValueHandling.Ignore)]
141141
public virtual string Topic { get; private set; }
142142
/// <summary>
143+
/// The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated
144+
/// using the value of the dialog node's **user_label** property.
145+
/// </summary>
146+
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
147+
public string DialogNode { get; set; }
148+
/// <summary>
143149
/// An array of objects describing the possible matching dialog nodes from which the user can choose.
144150
///
145151
/// **Note:** The **suggestions** property is part of the disambiguation feature, which is only available for

Scripts/Services/Assistant/V1/Model/DialogSuggestion.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,11 @@ public class DialogSuggestion
4343
/// </summary>
4444
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
4545
public Dictionary<string, object> Output { get; set; }
46+
/// <summary>
47+
/// The ID of the dialog node that the **label** property is taken from. The **label** property is populated
48+
/// using the value of the dialog node's **user_label** property.
49+
/// </summary>
50+
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
51+
public string DialogNode { get; set; }
4652
}
4753
}

Scripts/Services/Discovery/V1/DiscoveryService.cs

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,8 +1041,9 @@ private void OnUpdateConfigurationResponse(RESTConnector.Request req, RESTConnec
10411041
/// (both are present at the same time), then request is rejected. The maximum supported configuration size is 1
10421042
/// MB. Configuration parts larger than 1 MB are rejected.
10431043
/// See the `GET /configurations/{configuration_id}` operation for an example configuration. (optional)</param>
1044-
/// <param name="file">The content of the document to ingest. The maximum supported file size is 50 megabytes.
1045-
/// Files larger than 50 megabytes is rejected. (optional)</param>
1044+
/// <param name="file">The content of the document to ingest. The maximum supported file size when adding a file
1045+
/// to a collection is 50 megabytes, the maximum supported file size when testing a confiruration is 1 megabyte.
1046+
/// Files larger than the supported size are rejected. (optional)</param>
10461047
/// <param name="filename">The filename for file. (optional)</param>
10471048
/// <param name="metadata">If you're using the Data Crawler to upload your documents, you can test a document
10481049
/// against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1
@@ -2350,13 +2351,17 @@ private void OnListExpansionsResponse(RESTConnector.Request req, RESTConnector.R
23502351
/// * Fields with empty name values after normalization are filtered out before indexing.
23512352
///
23522353
/// * Fields containing the following characters after normalization are filtered out before indexing: `#` and
2353-
/// `,`.
2354+
/// `,`
2355+
///
2356+
/// **Note:** Documents can be added with a specific **document_id** by using the
2357+
/// **_/v1/environments/{environment_id}/collections/{collection_id}/documents** method.
23542358
/// </summary>
23552359
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
23562360
/// <param name="environmentId">The ID of the environment.</param>
23572361
/// <param name="collectionId">The ID of the collection.</param>
2358-
/// <param name="file">The content of the document to ingest. The maximum supported file size is 50 megabytes.
2359-
/// Files larger than 50 megabytes is rejected. (optional)</param>
2362+
/// <param name="file">The content of the document to ingest. The maximum supported file size when adding a file
2363+
/// to a collection is 50 megabytes, the maximum supported file size when testing a confiruration is 1 megabyte.
2364+
/// Files larger than the supported size are rejected. (optional)</param>
23602365
/// <param name="filename">The filename for file. (optional)</param>
23612366
/// <param name="metadata">If you're using the Data Crawler to upload your documents, you can test a document
23622367
/// against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1
@@ -2601,14 +2606,19 @@ private void OnGetDocumentStatusResponse(RESTConnector.Request req, RESTConnecto
26012606
/// <summary>
26022607
/// Update a document.
26032608
///
2604-
/// Replace an existing document. Starts ingesting a document with optional metadata.
2609+
/// Replace an existing document or add a document with a specified **document_id**. Starts ingesting a document
2610+
/// with optional metadata.
2611+
///
2612+
/// **Note:** When uploading a new document with this method it automatically replaces any document stored with
2613+
/// the same **document_id** if it exists.
26052614
/// </summary>
26062615
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
26072616
/// <param name="environmentId">The ID of the environment.</param>
26082617
/// <param name="collectionId">The ID of the collection.</param>
26092618
/// <param name="documentId">The ID of the document.</param>
2610-
/// <param name="file">The content of the document to ingest. The maximum supported file size is 50 megabytes.
2611-
/// Files larger than 50 megabytes is rejected. (optional)</param>
2619+
/// <param name="file">The content of the document to ingest. The maximum supported file size when adding a file
2620+
/// to a collection is 50 megabytes, the maximum supported file size when testing a confiruration is 1 megabyte.
2621+
/// Files larger than the supported size are rejected. (optional)</param>
26122622
/// <param name="filename">The filename for file. (optional)</param>
26132623
/// <param name="metadata">If you're using the Data Crawler to upload your documents, you can test a document
26142624
/// against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1
@@ -2901,11 +2911,13 @@ private void OnFederatedQueryResponse(RESTConnector.Request req, RESTConnector.R
29012911
/// <param name="aggregation">An aggregation search that returns an exact answer by combining query search with
29022912
/// filters. Useful for applications to build lists, tables, and time series. For a full list of possible
29032913
/// aggregations, see the Query reference. (optional)</param>
2904-
/// <param name="count">Number of results to return. (optional)</param>
2914+
/// <param name="count">Number of results to return. The maximum for the **count** and **offset** values
2915+
/// together in any one query is **10000**. (optional)</param>
29052916
/// <param name="returnFields">A comma-separated list of the portion of the document hierarchy to return.
29062917
/// (optional)</param>
29072918
/// <param name="offset">The number of query results to skip at the beginning. For example, if the total number
2908-
/// of results that are returned is 10 and the offset is 8, it returns the last two results. (optional)</param>
2919+
/// of results that are returned is 10 and the offset is 8, it returns the last two results. The maximum for the
2920+
/// **count** and **offset** values together in any one query is **10000**. (optional)</param>
29092921
/// <param name="sort">A comma-separated list of fields in the document to sort on. You can optionally specify a
29102922
/// sort direction by prefixing the field with `-` for descending or `+` for ascending. Ascending is the default
29112923
/// sort direction if no prefix is specified. (optional)</param>
@@ -3357,11 +3369,13 @@ private void OnQueryEntitiesResponse(RESTConnector.Request req, RESTConnector.Re
33573369
/// <param name="aggregation">An aggregation search that returns an exact answer by combining query search with
33583370
/// filters. Useful for applications to build lists, tables, and time series. For a full list of possible
33593371
/// aggregations, see the Query reference. (optional)</param>
3360-
/// <param name="count">Number of results to return. (optional)</param>
3372+
/// <param name="count">Number of results to return. The maximum for the **count** and **offset** values
3373+
/// together in any one query is **10000**. (optional)</param>
33613374
/// <param name="returnFields">A comma-separated list of the portion of the document hierarchy to return.
33623375
/// (optional)</param>
33633376
/// <param name="offset">The number of query results to skip at the beginning. For example, if the total number
3364-
/// of results that are returned is 10 and the offset is 8, it returns the last two results. (optional)</param>
3377+
/// of results that are returned is 10 and the offset is 8, it returns the last two results. The maximum for the
3378+
/// **count** and **offset** values together in any one query is **10000**. (optional)</param>
33653379
/// <param name="sort">A comma-separated list of fields in the document to sort on. You can optionally specify a
33663380
/// sort direction by prefixing the field with `-` for descending or `+` for ascending. Ascending is the default
33673381
/// sort direction if no prefix is specified. (optional)</param>
@@ -4952,7 +4966,8 @@ private void OnGetMetricsQueryNoResultsResponse(RESTConnector.Request req, RESTC
49524966
/// an individual word or unigram within the query string.
49534967
/// </summary>
49544968
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
4955-
/// <param name="count">Number of results to return. (optional)</param>
4969+
/// <param name="count">Number of results to return. The maximum for the **count** and **offset** values
4970+
/// together in any one query is **10000**. (optional)</param>
49564971
/// <returns><see cref="MetricTokenResponse" />MetricTokenResponse</returns>
49574972
public bool GetMetricsQueryTokenEvent(Callback<MetricTokenResponse> callback, long? count = null)
49584973
{
@@ -5033,9 +5048,11 @@ private void OnGetMetricsQueryTokenEventResponse(RESTConnector.Request req, REST
50335048
/// text, but with the most relevant documents listed first. Use a query search when you want to find the most
50345049
/// relevant search results. You cannot use **natural_language_query** and **query** at the same time.
50355050
/// (optional)</param>
5036-
/// <param name="count">Number of results to return. (optional)</param>
5051+
/// <param name="count">Number of results to return. The maximum for the **count** and **offset** values
5052+
/// together in any one query is **10000**. (optional)</param>
50375053
/// <param name="offset">The number of query results to skip at the beginning. For example, if the total number
5038-
/// of results that are returned is 10 and the offset is 8, it returns the last two results. (optional)</param>
5054+
/// of results that are returned is 10 and the offset is 8, it returns the last two results. The maximum for the
5055+
/// **count** and **offset** values together in any one query is **10000**. (optional)</param>
50395056
/// <param name="sort">A comma-separated list of fields in the document to sort on. You can optionally specify a
50405057
/// sort direction by prefixing the field with `-` for descending or `+` for ascending. Ascending is the default
50415058
/// sort direction if no prefix is specified. (optional)</param>

Scripts/Services/Discovery/V1/Model/DiskUsage.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,5 @@ public class DiskUsage
3434
/// </summary>
3535
[JsonProperty("maximum_allowed_bytes", NullValueHandling = NullValueHandling.Ignore)]
3636
public virtual long? MaximumAllowedBytes { get; private set; }
37-
/// <summary>
38-
/// **Deprecated**: Total number of bytes available in the environment's disk capacity.
39-
/// </summary>
40-
[JsonProperty("total_bytes", NullValueHandling = NullValueHandling.Ignore)]
41-
public virtual long? TotalBytes { get; private set; }
42-
/// <summary>
43-
/// **Deprecated**: Amount of disk capacity used, in KB or GB format.
44-
/// </summary>
45-
[JsonProperty("used", NullValueHandling = NullValueHandling.Ignore)]
46-
public virtual string Used { get; private set; }
47-
/// <summary>
48-
/// **Deprecated**: Total amount of the environment's disk capacity, in KB or GB format.
49-
/// </summary>
50-
[JsonProperty("total", NullValueHandling = NullValueHandling.Ignore)]
51-
public virtual string Total { get; private set; }
52-
/// <summary>
53-
/// **Deprecated**: Percentage of the environment's disk capacity that is being used.
54-
/// </summary>
55-
[JsonProperty("percent_used", NullValueHandling = NullValueHandling.Ignore)]
56-
public virtual double? PercentUsed { get; private set; }
5737
}
5838
}

Scripts/Services/Discovery/V1/Model/DocumentStatus.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
using System.Collections.Generic;
1919
using Newtonsoft.Json;
20-
using System;
2120

2221
namespace IBM.Watson.Discovery.V1.Model
2322
{
@@ -101,16 +100,6 @@ public class FileTypeValue
101100
[JsonProperty("configuration_id", NullValueHandling = NullValueHandling.Ignore)]
102101
public virtual string ConfigurationId { get; private set; }
103102
/// <summary>
104-
/// The creation date of the document in the format yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
105-
/// </summary>
106-
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
107-
public virtual DateTime? Created { get; private set; }
108-
/// <summary>
109-
/// Date of the most recent document update, in the format yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
110-
/// </summary>
111-
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
112-
public virtual DateTime? Updated { get; private set; }
113-
/// <summary>
114103
/// Description of the document status.
115104
/// </summary>
116105
[JsonProperty("status_description", NullValueHandling = NullValueHandling.Ignore)]

Scripts/Services/Discovery/V1/Model/Enrichment.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public class Enrichment
3838
public string DestinationField { get; set; }
3939
/// <summary>
4040
/// Field to be enriched.
41+
///
42+
/// Arrays can be specified as the **source_field** if the **enrichment** service for this enrichment is set to
43+
/// `natural_language_undstanding`.
4144
/// </summary>
4245
[JsonProperty("source_field", NullValueHandling = NullValueHandling.Ignore)]
4346
public string SourceField { get; set; }
@@ -55,11 +58,7 @@ public class Enrichment
5558
/// When using `elements` the **options** object must contain Element Classification options. Additionally,
5659
/// when using the `elements` enrichment the configuration specified and files ingested must meet all the
5760
/// criteria specified in [the
58-
/// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-element-classification#element-classification)
59-
///
60-
///
61-
///
62-
/// Previous API versions also supported `alchemy_language`.
61+
/// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-element-classification#element-classification).
6362
/// </summary>
6463
[JsonProperty("enrichment", NullValueHandling = NullValueHandling.Ignore)]
6564
public string EnrichmentName { get; set; }

Scripts/Services/Discovery/V1/Model/IndexCapacity.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,5 @@ public class IndexCapacity
3939
/// </summary>
4040
[JsonProperty("collections", NullValueHandling = NullValueHandling.Ignore)]
4141
public CollectionUsage Collections { get; set; }
42-
/// <summary>
43-
/// **Deprecated**: Summary of the memory usage statistics for this environment.
44-
/// </summary>
45-
[JsonProperty("memory_usage", NullValueHandling = NullValueHandling.Ignore)]
46-
public MemoryUsage MemoryUsage { get; set; }
4742
}
4843
}

Scripts/Services/Discovery/V1/Model/Notice.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ public class SeverityValue
4949
public string Severity { get; set; }
5050
/// <summary>
5151
/// Identifies the notice. Many notices might have the same ID. This field exists so that user applications can
52-
/// programmatically identify a notice and take automatic corrective action.
52+
/// programmatically identify a notice and take automatic corrective action. Typical notice IDs include:
53+
/// `index_failed`, `index_failed_too_many_requests`, `index_failed_incompatible_field`,
54+
/// `index_failed_cluster_unavailable`, `ingestion_timeout`, `ingestion_error`, `bad_request`, `internal_error`,
55+
/// `missing_model`, `unsupported_model`, `smart_document_understanding_failed_incompatible_field`,
56+
/// `smart_document_understanding_failed_internal_error`, `smart_document_understanding_failed_internal_error`,
57+
/// `smart_document_understanding_failed_warning`, `smart_document_understanding_page_error`,
58+
/// `smart_document_understanding_page_warning`. **Note:** This is not a complete list, other values might be
59+
/// returned.
5360
/// </summary>
5461
[JsonProperty("notice_id", NullValueHandling = NullValueHandling.Ignore)]
5562
public virtual string NoticeId { get; private set; }
@@ -69,7 +76,9 @@ public class SeverityValue
6976
[JsonProperty("query_id", NullValueHandling = NullValueHandling.Ignore)]
7077
public virtual string QueryId { get; private set; }
7178
/// <summary>
72-
/// Ingestion or training step in which the notice occurred.
79+
/// Ingestion or training step in which the notice occurred. Typical step values include: `classify_elements`,
80+
/// `smartDocumentUnderstanding`, `ingestion`, `indexing`, `convert`. **Note:** This is not a complete list,
81+
/// other values might be returned.
7382
/// </summary>
7483
[JsonProperty("step", NullValueHandling = NullValueHandling.Ignore)]
7584
public virtual string Step { get; private set; }

Scripts/Services/Discovery/V1/Model/QueryNoticesResult.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ public class FileTypeValue
6161
[JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
6262
public string Id { get; set; }
6363
/// <summary>
64-
/// *Deprecated* This field is now part of the **result_metadata** object.
65-
/// </summary>
66-
[JsonProperty("score", NullValueHandling = NullValueHandling.Ignore)]
67-
public double? Score { get; set; }
68-
/// <summary>
6964
/// Metadata of the document.
7065
/// </summary>
7166
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
@@ -81,6 +76,11 @@ public class FileTypeValue
8176
[JsonProperty("result_metadata", NullValueHandling = NullValueHandling.Ignore)]
8277
public QueryResultMetadata ResultMetadata { get; set; }
8378
/// <summary>
79+
/// Automatically extracted result title.
80+
/// </summary>
81+
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
82+
public string Title { get; set; }
83+
/// <summary>
8484
/// The internal status code returned by the ingestion subsystem indicating the overall result of ingesting the
8585
/// source document.
8686
/// </summary>

Scripts/Services/Discovery/V1/Model/QueryResult.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ public class QueryResult
3131
[JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
3232
public string Id { get; set; }
3333
/// <summary>
34-
/// *Deprecated* This field is now part of the **result_metadata** object.
35-
/// </summary>
36-
[JsonProperty("score", NullValueHandling = NullValueHandling.Ignore)]
37-
public double? Score { get; set; }
38-
/// <summary>
3934
/// Metadata of the document.
4035
/// </summary>
4136
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
@@ -50,5 +45,10 @@ public class QueryResult
5045
/// </summary>
5146
[JsonProperty("result_metadata", NullValueHandling = NullValueHandling.Ignore)]
5247
public QueryResultMetadata ResultMetadata { get; set; }
48+
/// <summary>
49+
/// Automatically extracted result title.
50+
/// </summary>
51+
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
52+
public string Title { get; set; }
5353
}
5454
}

0 commit comments

Comments
 (0)