Skip to content

Commit 3f3c5a4

Browse files
authored
Merge pull request #402 from watson-developer-cloud/4.0.0/regeneration
4.0.0 Regeneration
2 parents b09a3f2 + 4d2769a commit 3f3c5a4

File tree

129 files changed

+1667
-3243
lines changed

Some content is hidden

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

129 files changed

+1667
-3243
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[bumpversion]
22
commit = True
3-
current_version = 4.0.0-rc1
3+
current_version = 3.5.0
44
message = docs: Update version numbers from {current_version} -> {new_version}
55

66
[bumpversion:file:Doxyfile]

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "Watson Developer Cloud .NET Standard SDK"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 4.0.0-rc1
41+
PROJECT_NUMBER = 3.5.0
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

MIGRATION-V4.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,16 @@ void Example()
186186
* `returnFields` was renamed to `_return` in the `QueryNotices()` method
187187
* `loggingOptOut` was renamed to `xWatsonLoggingOptOut` in the `FederatedQuery()` method
188188
* `collectionIds` is now required in the `FederatedQuery()` method
189+
* `collectionIds` changed position in the `FederatedQuery()` method
189190
* `returnFields` was renamed to `_return` in the `FederatedQuery()` method
190191
* `returnFields` was renamed to `_return` in the `FederatedQueryNotices()` method
191192
* `EnrichmentName` was renamed to `_Enrichment` in the `Enrichment` model
192193
* `FieldTypeEnumValue` was renamed to `TypeEnumValue` in the `Field` model
193194
* `FieldType` was renamed to `Type` in the `Field` model
194195
* `FieldName` was renamed to `_Field` in the `Field` model
196+
* `TestConfigurationInEnvironment()` method was removed
197+
* `QueryEntities()` method was removed
198+
* `QueryRelations()` method was removed
195199

196200
##### Language Translator v3
197201

@@ -213,7 +217,7 @@ void Example()
213217

214218
##### Visual Recognition v3
215219

216-
* Detect faces was removed
220+
* `DetectFaces()` method was removed
217221
* `ClassName` was renamed to `_Class` in the `ClassResult` model
218222
* `ClassName` was renamed to `_Class` in the `ModelClass` model
219223

examples/IBM.Watson.Assistant.v2.Examples/IBM.Watson.Assistant.v2.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0-rc91" />
9+
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

examples/IBM.Watson.CompareComply.v1.Examples/IBM.Watson.CompareComply.v1.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0-rc91" />
9+
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

examples/IBM.Watson.Discovery.v1.Examples/IBM.Watson.Discovery.v1.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0-rc91" />
9+
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

examples/IBM.Watson.Discovery.v1.Examples/ServiceExample.cs

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ static void Main(string[] args)
6767
example.GetConfiguration();
6868
example.UpdateConfiguration();
6969

70-
example.TestConfigurationInEnvironment();
71-
7270
example.ListCollections();
7371
example.CreateCollection();
7472
example.GetCollection();
@@ -91,8 +89,6 @@ static void Main(string[] args)
9189
example.QueryNotices();
9290
example.FederatedQuery();
9391
example.FederatedQueryNotices();
94-
example.QueryEntities();
95-
example.QueryRelations();
9692

9793
example.ListTrainingData();
9894
example.AddTrainingData();
@@ -324,34 +320,6 @@ public void DeleteConfiguration()
324320
}
325321
#endregion
326322

327-
#region Test Configuration in Environment
328-
public void TestConfigurationInEnvironment()
329-
{
330-
IamAuthenticator authenticator = new IamAuthenticator(
331-
apikey: "{apikey}");
332-
333-
DiscoveryService service = new DiscoveryService("2019-04-30", authenticator);
334-
service.SetServiceUrl("{serviceUrl}");
335-
336-
using (FileStream fs = File.OpenRead("{path_to_document}"))
337-
{
338-
using (MemoryStream ms = new MemoryStream())
339-
{
340-
fs.CopyTo(ms);
341-
var result = service.TestConfigurationInEnvironment(
342-
environmentId: "{environmentId}",
343-
configurationId: "{configurationId}",
344-
file: ms,
345-
filename: "{test_file}",
346-
fileContentType: "{document_content_type}"
347-
);
348-
349-
Console.WriteLine(result.Response);
350-
}
351-
}
352-
}
353-
#endregion
354-
355323
#region Collections
356324
public void ListCollections()
357325
{
@@ -789,6 +757,7 @@ public void FederatedQuery()
789757

790758
var result = service.FederatedQuery(
791759
environmentId: "{environmentId}",
760+
collectionIds: "{collectionIds}",
792761
naturalLanguageQuery: "{naturalLanguageQuery}",
793762
_return: "{returnFields}"
794763
);
@@ -812,38 +781,6 @@ public void FederatedQueryNotices()
812781

813782
Console.WriteLine(result.Response);
814783
}
815-
816-
public void QueryEntities()
817-
{
818-
IamAuthenticator authenticator = new IamAuthenticator(
819-
apikey: "{apikey}");
820-
821-
DiscoveryService service = new DiscoveryService("2019-04-30", authenticator);
822-
service.SetServiceUrl("{serviceUrl}");
823-
824-
var result = service.QueryEntities(
825-
environmentId: "{environmentId}",
826-
collectionId: "{collectionId}"
827-
);
828-
829-
Console.WriteLine(result.Response);
830-
}
831-
832-
public void QueryRelations()
833-
{
834-
IamAuthenticator authenticator = new IamAuthenticator(
835-
apikey: "{apikey}");
836-
837-
DiscoveryService service = new DiscoveryService("2019-04-30", authenticator);
838-
service.SetServiceUrl("{serviceUrl}");
839-
840-
var result = service.QueryRelations(
841-
environmentId: "{environmentId}",
842-
collectionId: "{collectionId}"
843-
);
844-
845-
Console.WriteLine(result.Response);
846-
}
847784
#endregion
848785

849786
#region Training Data

examples/IBM.Watson.LanguageTranslator.v3.Examples/IBM.Watson.LanguageTranslator.v3.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0-rc91" />
9+
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

examples/IBM.Watson.NaturalLangaugeClassifier.v1.Examples/IBM.Watson.NaturalLangaugeClassifier.v1.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0-rc91" />
9+
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

examples/IBM.Watson.NaturalLanguageUnderstanding.v1.Examples/IBM.Watson.NaturalLanguageUnderstanding.v1.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0-rc91" />
9+
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

0 commit comments

Comments
 (0)