Skip to content

Commit 53460d2

Browse files
committed
feat: regenerate services based on current api def
1 parent ccca1da commit 53460d2

25 files changed

+104
-70
lines changed

Scripts/Services/Assistant/V2/AssistantService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,4 +333,4 @@ private void OnMessageResponse(RESTConnector.Request req, RESTConnector.Response
333333
((RequestObject<MessageResponse>)req).Callback(response, resp.Error);
334334
}
335335
}
336-
}
336+
}

Scripts/Services/Assistant/V2/Model/MessageContextSkill.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class MessageContextSkill
3131
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
3232
public Dictionary<string, object> UserDefined { get; set; }
3333
/// <summary>
34-
/// For internal use only.
34+
/// System context data used by the skill.
3535
/// </summary>
3636
[JsonProperty("system", NullValueHandling = NullValueHandling.Ignore)]
3737
public Dictionary<string, object> System { get; set; }

Scripts/Services/Assistant/V2/Model/MessageInputOptions.cs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,8 +25,9 @@ namespace IBM.Watson.Assistant.V2.Model
2525
public class MessageInputOptions
2626
{
2727
/// <summary>
28-
/// Whether to return additional diagnostic information. Set to `true` to return additional information under
29-
/// the `output.debug` key.
28+
/// Whether to return additional diagnostic information. Set to `true` to return additional information in the
29+
/// `output.debug` property. If you also specify **return_context**=`true`, the returned skill context includes
30+
/// the `system.state` property.
3031
/// </summary>
3132
[JsonProperty("debug", NullValueHandling = NullValueHandling.Ignore)]
3233
public bool? Debug { get; set; }
@@ -42,10 +43,19 @@ public class MessageInputOptions
4243
[JsonProperty("alternate_intents", NullValueHandling = NullValueHandling.Ignore)]
4344
public bool? AlternateIntents { get; set; }
4445
/// <summary>
45-
/// Whether to return session context with the response. If you specify `true`, the response will include the
46-
/// `context` property.
46+
/// Whether to return session context with the response. If you specify `true`, the response includes the
47+
/// `context` property. If you also specify **debug**=`true`, the returned skill context includes the
48+
/// `system.state` property.
4749
/// </summary>
4850
[JsonProperty("return_context", NullValueHandling = NullValueHandling.Ignore)]
4951
public bool? ReturnContext { get; set; }
52+
/// <summary>
53+
/// Whether to return session context, including full conversation state. If you specify `true`, the response
54+
/// includes the `context` property, and the skill context includes the `system.state` property.
55+
///
56+
/// **Note:** If **export**=`true`, the context is returned regardless of the value of **return_context**.
57+
/// </summary>
58+
[JsonProperty("export", NullValueHandling = NullValueHandling.Ignore)]
59+
public bool? Export { get; set; }
5060
}
5161
}

Scripts/Services/Assistant/V2/Model/MessageResponse.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@ public class MessageResponse
3030
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
3131
public MessageOutput Output { get; set; }
3232
/// <summary>
33-
/// State information for the conversation. The context is stored by the assistant on a per-session basis. You
34-
/// can use this property to access context variables.
33+
/// Context data for the conversation. The context is stored by the assistant on a per-session basis. You can
34+
/// use this property to access context variables.
3535
///
3636
/// **Note:** The context is included in message responses only if **return_context**=`true` in the message
3737
/// request.

Scripts/Services/CompareComply/V1/CompareComplyService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,9 @@ private void OnDeleteFeedbackResponse(RESTConnector.Request req, RESTConnector.R
845845
/// Run Compare and Comply methods over a collection of input documents.
846846
///
847847
/// **Important:** Batch processing requires the use of the [IBM Cloud Object Storage
848-
/// service](https://cloud.ibm.com/docs/services/cloud-object-storage?topic=cloud-object-storage-about#about-ibm-cloud-object-storage).
848+
/// service](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-about#about-ibm-cloud-object-storage).
849849
/// The use of IBM Cloud Object Storage with Compare and Comply is discussed at [Using batch
850-
/// processing](https://cloud.ibm.com/docs/services/compare-comply?topic=compare-comply-batching#before-you-batch).
850+
/// processing](https://cloud.ibm.com/docs/compare-comply?topic=compare-comply-batching#before-you-batch).
851851
/// </summary>
852852
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
853853
/// <param name="function">The Compare and Comply method to run across the submitted input documents.</param>
@@ -1193,4 +1193,4 @@ private void OnUpdateBatchResponse(RESTConnector.Request req, RESTConnector.Resp
11931193
((RequestObject<BatchStatus>)req).Callback(response, resp.Error);
11941194
}
11951195
}
1196-
}
1196+
}

Scripts/Services/Discovery/V1/DiscoveryService.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ private void OnDeleteDocumentResponse(RESTConnector.Request req, RESTConnector.R
24622462
/// Query a collection.
24632463
///
24642464
/// By using this method, you can construct long queries. For details, see the [Discovery
2465-
/// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts).
2465+
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-concepts#query-concepts).
24662466
/// </summary>
24672467
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
24682468
/// <param name="environmentId">The ID of the environment.</param>
@@ -2645,8 +2645,8 @@ private void OnQueryResponse(RESTConnector.Request req, RESTConnector.Response r
26452645
///
26462646
/// Queries for notices (errors or warnings) that might have been generated by the system. Notices are generated
26472647
/// when ingesting documents and performing relevance training. See the [Discovery
2648-
/// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts)
2649-
/// for more details on the query language.
2648+
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-concepts#query-concepts) for more
2649+
/// details on the query language.
26502650
/// </summary>
26512651
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
26522652
/// <param name="environmentId">The ID of the environment.</param>
@@ -2830,7 +2830,7 @@ private void OnQueryNoticesResponse(RESTConnector.Request req, RESTConnector.Res
28302830
///
28312831
/// By using this method, you can construct long queries that search multiple collection. For details, see the
28322832
/// [Discovery
2833-
/// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts).
2833+
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-concepts#query-concepts).
28342834
/// </summary>
28352835
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
28362836
/// <param name="environmentId">The ID of the environment.</param>
@@ -3007,8 +3007,8 @@ private void OnFederatedQueryResponse(RESTConnector.Request req, RESTConnector.R
30073007
///
30083008
/// Queries for notices (errors or warnings) that might have been generated by the system. Notices are generated
30093009
/// when ingesting documents and performing relevance training. See the [Discovery
3010-
/// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts)
3011-
/// for more details on the query language.
3010+
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-concepts#query-concepts) for more
3011+
/// details on the query language.
30123012
/// </summary>
30133013
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
30143014
/// <param name="environmentId">The ID of the environment.</param>
@@ -4047,7 +4047,7 @@ private void OnGetTrainingExampleResponse(RESTConnector.Request req, RESTConnect
40474047
///
40484048
/// You associate a customer ID with data by passing the **X-Watson-Metadata** header with a request that passes
40494049
/// data. For more information about personal data and customer IDs, see [Information
4050-
/// security](https://cloud.ibm.com/docs/services/discovery?topic=discovery-information-security#information-security).
4050+
/// security](https://cloud.ibm.com/docs/discovery?topic=discovery-information-security#information-security).
40514051
/// </summary>
40524052
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
40534053
/// <param name="customerId">The customer ID for which all data is to be deleted.</param>
@@ -5398,4 +5398,4 @@ private void OnDeleteGatewayResponse(RESTConnector.Request req, RESTConnector.Re
53985398
((RequestObject<GatewayDelete>)req).Callback(response, resp.Error);
53995399
}
54005400
}
5401-
}
5401+
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -207,15 +207,15 @@ public class SourceVersionValue
207207
/// The access key ID associated with the cloud object store. Only valid, and required, with a
208208
/// **credential_type** of `aws4_hmac`. This value is never returned and is only used when creating or modifying
209209
/// **credentials**. For more infomation, see the [cloud object store
210-
/// documentation](https://cloud.ibm.com/docs/services/cloud-object-storage?topic=cloud-object-storage-using-hmac-credentials#using-hmac-credentials).
210+
/// documentation](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-using-hmac-credentials#using-hmac-credentials).
211211
/// </summary>
212212
[JsonProperty("access_key_id", NullValueHandling = NullValueHandling.Ignore)]
213213
public string AccessKeyId { get; set; }
214214
/// <summary>
215215
/// The secret access key associated with the cloud object store. Only valid, and required, with a
216216
/// **credential_type** of `aws4_hmac`. This value is never returned and is only used when creating or modifying
217217
/// **credentials**. For more infomation, see the [cloud object store
218-
/// documentation](https://cloud.ibm.com/docs/services/cloud-object-storage?topic=cloud-object-storage-using-hmac-credentials#using-hmac-credentials).
218+
/// documentation](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-using-hmac-credentials#using-hmac-credentials).
219219
/// </summary>
220220
[JsonProperty("secret_access_key", NullValueHandling = NullValueHandling.Ignore)]
221221
public string SecretAccessKey { get; set; }

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -59,7 +59,7 @@ public class Enrichment
5959
/// When using `elements` the **options** object must contain Element Classification options. Additionally,
6060
/// when using the `elements` enrichment the configuration specified and files ingested must meet all the
6161
/// criteria specified in [the
62-
/// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-element-classification#element-classification).
62+
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-element-classification#element-classification).
6363
/// </summary>
6464
[JsonProperty("enrichment", NullValueHandling = NullValueHandling.Ignore)]
6565
public string _Enrichment { get; set; }

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,8 +27,8 @@ public class EnvironmentDocuments
2727
/// <summary>
2828
/// Number of documents indexed for the environment.
2929
/// </summary>
30-
[JsonProperty("indexed", NullValueHandling = NullValueHandling.Ignore)]
31-
public virtual long? Indexed { get; private set; }
30+
[JsonProperty("available", NullValueHandling = NullValueHandling.Ignore)]
31+
public virtual long? Available { get; private set; }
3232
/// <summary>
3333
/// Total number of documents allowed in the environment's capacity.
3434
/// </summary>

Scripts/Services/Discovery/V2/DiscoveryService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private void OnListCollectionsResponse(RESTConnector.Request req, RESTConnector.
155155
/// Query a project.
156156
///
157157
/// By using this method, you can construct queries. For details, see the [Discovery
158-
/// documentation](https://cloud.ibm.com/docs/services/discovery-data?topic=discovery-data-query-concepts).
158+
/// documentation](https://cloud.ibm.com/docs/discovery-data?topic=discovery-data-query-concepts).
159159
/// </summary>
160160
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
161161
/// <param name="projectId">The ID of the project. This information can be found from the deploy page of the

Scripts/Services/Discovery/V2/Model/QueryHistogramAggregation.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,6 +37,11 @@ public class QueryHistogramAggregation: QueryAggregation
3737
[JsonProperty("interval", NullValueHandling = NullValueHandling.Ignore)]
3838
public long? Interval { get; set; }
3939
/// <summary>
40+
/// Identifier specified in the query request of this aggregation.
41+
/// </summary>
42+
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
43+
public string Name { get; set; }
44+
/// <summary>
4045
/// Array of numeric intervals.
4146
/// </summary>
4247
[JsonProperty("results", NullValueHandling = NullValueHandling.Ignore)]

Scripts/Services/Discovery/V2/Model/QueryTermAggregation.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,6 +36,11 @@ public class QueryTermAggregation
3636
[JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
3737
public long? Count { get; set; }
3838
/// <summary>
39+
/// Identifier specified in the query request of this aggregation.
40+
/// </summary>
41+
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
42+
public string Name { get; set; }
43+
/// <summary>
3944
/// Array of top values for the field.
4045
/// </summary>
4146
[JsonProperty("results", NullValueHandling = NullValueHandling.Ignore)]

Scripts/Services/Discovery/V2/Model/QueryTimesliceAggregation.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,6 +36,11 @@ public class QueryTimesliceAggregation
3636
[JsonProperty("interval", NullValueHandling = NullValueHandling.Ignore)]
3737
public string Interval { get; set; }
3838
/// <summary>
39+
/// Identifier specified in the query request of this aggregation.
40+
/// </summary>
41+
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
42+
public string Name { get; set; }
43+
/// <summary>
3944
/// Array of aggregation results.
4045
/// </summary>
4146
[JsonProperty("results", NullValueHandling = NullValueHandling.Ignore)]

Scripts/Services/Discovery/V2/Model/QueryTopHitsAggregation.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@ public class QueryTopHitsAggregation
3030
[JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)]
3131
public long? Size { get; set; }
3232
/// <summary>
33+
/// Identifier specified in the query request of this aggregation.
34+
/// </summary>
35+
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
36+
public string Name { get; set; }
37+
/// <summary>
3338
/// Gets or Sets Hits
3439
/// </summary>
3540
[JsonProperty("hits", NullValueHandling = NullValueHandling.Ignore)]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class CategoriesOptions
3939
public long? Limit { get; set; }
4040
/// <summary>
4141
/// Enter a [custom
42-
/// model](https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-customizing)
42+
/// model](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing)
4343
/// ID to override the standard categories model.
4444
///
4545
/// The custom categories experimental feature will be retired on 19 December 2019. On that date, deployed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ public class CategoriesResult
2727
/// <summary>
2828
/// The path to the category through the 5-level taxonomy hierarchy. For the complete list of categories, see
2929
/// the [Categories
30-
/// hierarchy](https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-categories#categories-hierarchy)
30+
/// hierarchy](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-categories#categories-hierarchy)
3131
/// documentation.
3232
/// </summary>
3333
[JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ namespace IBM.Watson.NaturalLanguageUnderstanding.V1.Model
2121
{
2222
/// <summary>
2323
/// Identifies people, cities, organizations, and other entities in the content. See [Entity types and
24-
/// subtypes](https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-entity-types).
24+
/// subtypes](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types).
2525
///
2626
/// Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish.
2727
/// Arabic, Chinese, and Dutch are supported only through custom models.
@@ -40,7 +40,7 @@ public class EntitiesOptions
4040
public bool? Mentions { get; set; }
4141
/// <summary>
4242
/// Enter a [custom
43-
/// model](https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-customizing)
43+
/// model](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing)
4444
/// ID to override the standard entity detection model.
4545
/// </summary>
4646
[JsonProperty("model", NullValueHandling = NullValueHandling.Ignore)]

0 commit comments

Comments
 (0)