Skip to content

Commit b02887f

Browse files
authored
Merge pull request #295 from watson-developer-cloud/5533-regenerate-sdk
Regenerate SDK
2 parents 945ed4e + 454de5c commit b02887f

File tree

54 files changed

+912
-987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+912
-987
lines changed

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ You can get the latest SDK packages through NuGet. Installation instructions can
2828

2929
* [Assistant V1](/src/IBM.WatsonDeveloperCloud.Assistant.v1)
3030
* [Assistant V2](/src/IBM.WatsonDeveloperCloud.Assistant.v2)
31-
* [Conversation](/src/IBM.WatsonDeveloperCloud.Conversation.v1)
31+
* [Conversation](/src/IBM.WatsonDeveloperCloud.Conversation.v1) (deprecated - Use Assistant V1 or Assistant V2)
3232
* [Discovery](/src/IBM.WatsonDeveloperCloud.Discovery.v1)
33-
* [Language Translator V2](/src/IBM.WatsonDeveloperCloud.LanguageTranslator.v2) (deprecated)
33+
* [Language Translator V2](/src/IBM.WatsonDeveloperCloud.LanguageTranslator.v2) (deprecated - Use LanguageTranslator V3)
3434
* [Language Translator V3](/src/IBM.WatsonDeveloperCloud.LanguageTranslator.v3)
3535
* [Natural Language Understanding](/src/IBM.WatsonDeveloperCloud.NaturalLanguageUnderstanding.v1)
3636
* [Natural Language Classifier](/src/IBM.WatsonDeveloperCloud.NaturalLanguageClassifier.v1)
@@ -47,7 +47,6 @@ Watson services are migrating to token-based Identity and Access Management (IAM
4747

4848
- With some service instances, you authenticate to the API by using **[IAM](#iam)**.
4949
- In other instances, you authenticate by providing the **[username and password](#username-and-password)** for the service instance.
50-
- Visual Recognition uses a form of [API key](#api-key) only with instances created before May 23, 2018. Newer instances of Visual Recognition use [IAM](#iam).
5150

5251
### Getting credentials
5352
To find out which authentication to use, view the service credentials. You find the service credentials for authentication the same way for all Watson services:
@@ -102,15 +101,6 @@ void Example()
102101
}
103102
```
104103

105-
### API key
106-
**Important**: This type of authentication works only with Visual Recognition instances created before May 23, 2018. Newer instances of Visual Recognition use [IAM](#iam).
107-
```cs
108-
void Example()
109-
{
110-
_visualRecognition = new VisualRecognitionService("<apikey>", "<version-date>");
111-
}
112-
```
113-
114104
## Custom Request Headers
115105
You can send custom request headers by adding them to the `customData` object.
116106
```cs

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Counterexample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ public class Counterexample : BaseModel
3434
/// The timestamp for creation of the counterexample.
3535
/// </summary>
3636
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
37-
public virtual DateTime Created { get; private set; }
37+
public virtual DateTime? Created { get; private set; }
3838
/// <summary>
3939
/// The timestamp for the last update to the counterexample.
4040
/// </summary>
4141
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
42-
public virtual DateTime Updated { get; private set; }
42+
public virtual DateTime? Updated { get; private set; }
4343
}
4444

4545
}

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/DialogNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,12 @@ public enum DigressOutSlotsEnum
303303
/// The timestamp for creation of the dialog node.
304304
/// </summary>
305305
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
306-
public virtual DateTime Created { get; private set; }
306+
public virtual DateTime? Created { get; private set; }
307307
/// <summary>
308308
/// The timestamp for the most recent update to the dialog node.
309309
/// </summary>
310310
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
311-
public virtual DateTime Updated { get; private set; }
311+
public virtual DateTime? Updated { get; private set; }
312312
/// <summary>
313313
/// The actions for the dialog node.
314314
/// </summary>

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Entity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ public class Entity : BaseModel
3434
/// The timestamp for creation of the entity.
3535
/// </summary>
3636
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
37-
public virtual DateTime Created { get; private set; }
37+
public virtual DateTime? Created { get; private set; }
3838
/// <summary>
3939
/// The timestamp for the last update to the entity.
4040
/// </summary>
4141
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
42-
public virtual DateTime Updated { get; private set; }
42+
public virtual DateTime? Updated { get; private set; }
4343
/// <summary>
4444
/// The description of the entity.
4545
/// </summary>

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/EntityExport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public class EntityExport : BaseModel
3535
/// The timestamp for creation of the entity.
3636
/// </summary>
3737
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
38-
public virtual DateTime Created { get; private set; }
38+
public virtual DateTime? Created { get; private set; }
3939
/// <summary>
4040
/// The timestamp for the last update to the entity.
4141
/// </summary>
4242
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
43-
public virtual DateTime Updated { get; private set; }
43+
public virtual DateTime? Updated { get; private set; }
4444
/// <summary>
4545
/// The description of the entity.
4646
/// </summary>

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Example.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public class Example : BaseModel
3535
/// The timestamp for creation of the example.
3636
/// </summary>
3737
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
38-
public virtual DateTime Created { get; private set; }
38+
public virtual DateTime? Created { get; private set; }
3939
/// <summary>
4040
/// The timestamp for the last update to the example.
4141
/// </summary>
4242
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
43-
public virtual DateTime Updated { get; private set; }
43+
public virtual DateTime? Updated { get; private set; }
4444
/// <summary>
4545
/// An array of contextual entity mentions.
4646
/// </summary>

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Intent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ public class Intent : BaseModel
3434
/// The timestamp for creation of the intent.
3535
/// </summary>
3636
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
37-
public virtual DateTime Created { get; private set; }
37+
public virtual DateTime? Created { get; private set; }
3838
/// <summary>
3939
/// The timestamp for the last update to the intent.
4040
/// </summary>
4141
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
42-
public virtual DateTime Updated { get; private set; }
42+
public virtual DateTime? Updated { get; private set; }
4343
/// <summary>
4444
/// The description of the intent.
4545
/// </summary>

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/IntentExport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public class IntentExport : BaseModel
3535
/// The timestamp for creation of the intent.
3636
/// </summary>
3737
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
38-
public virtual DateTime Created { get; private set; }
38+
public virtual DateTime? Created { get; private set; }
3939
/// <summary>
4040
/// The timestamp for the last update to the intent.
4141
/// </summary>
4242
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
43-
public virtual DateTime Updated { get; private set; }
43+
public virtual DateTime? Updated { get; private set; }
4444
/// <summary>
4545
/// The description of the intent.
4646
/// </summary>

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Synonym.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ public class Synonym : BaseModel
3434
/// The timestamp for creation of the synonym.
3535
/// </summary>
3636
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
37-
public virtual DateTime Created { get; private set; }
37+
public virtual DateTime? Created { get; private set; }
3838
/// <summary>
3939
/// The timestamp for the most recent update to the synonym.
4040
/// </summary>
4141
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
42-
public virtual DateTime Updated { get; private set; }
42+
public virtual DateTime? Updated { get; private set; }
4343
}
4444

4545
}

src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Value.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ public enum ValueTypeEnum
7070
/// The timestamp for creation of the entity value.
7171
/// </summary>
7272
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
73-
public virtual DateTime Created { get; private set; }
73+
public virtual DateTime? Created { get; private set; }
7474
/// <summary>
7575
/// The timestamp for the last update to the entity value.
7676
/// </summary>
7777
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
78-
public virtual DateTime Updated { get; private set; }
78+
public virtual DateTime? Updated { get; private set; }
7979
/// <summary>
8080
/// An array containing any synonyms for the entity value.
8181
/// </summary>

0 commit comments

Comments
 (0)