11/**
2- * (C) Copyright IBM Corp. 2019, 2021 .
2+ * (C) Copyright IBM Corp. 2022 .
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.
@@ -23,37 +23,55 @@ namespace IBM.Watson.Discovery.v2
2323{
2424 public partial interface IDiscoveryService
2525 {
26+ DetailedResponse < ListProjectsResponse > ListProjects ( ) ;
27+ DetailedResponse < ProjectDetails > CreateProject ( string name , string type , DefaultQueryParams defaultQueryParameters = null ) ;
28+ DetailedResponse < ProjectDetails > GetProject ( string projectId ) ;
29+ DetailedResponse < ProjectDetails > UpdateProject ( string projectId , string name = null ) ;
30+ DetailedResponse < object > DeleteProject ( string projectId ) ;
31+ DetailedResponse < ListFieldsResponse > ListFields ( string projectId , List < string > collectionIds = null ) ;
2632 DetailedResponse < ListCollectionsResponse > ListCollections ( string projectId ) ;
27- DetailedResponse < CollectionDetails > CreateCollection ( string projectId , string name , string description = null , string language = null , List < CollectionEnrichment > enrichments = null ) ;
33+ DetailedResponse < CollectionDetails > CreateCollection ( string projectId , string name , string description = null , string language = null , List < CollectionEnrichment > enrichments = null , CollectionDetailsSmartDocumentUnderstanding smartDocumentUnderstanding = null ) ;
2834 DetailedResponse < CollectionDetails > GetCollection ( string projectId , string collectionId ) ;
2935 DetailedResponse < CollectionDetails > UpdateCollection ( string projectId , string collectionId , string name = null , string description = null , List < CollectionEnrichment > enrichments = null ) ;
3036 DetailedResponse < object > DeleteCollection ( string projectId , string collectionId ) ;
31- DetailedResponse < QueryResponse > Query ( string projectId , List < string > collectionIds = null , string filter = null , string query = null , string naturalLanguageQuery = null , string aggregation = null , long ? count = null , List < string > _return = null , long ? offset = null , string sort = null , bool ? highlight = null , bool ? spellingSuggestions = null , QueryLargeTableResults tableResults = null , QueryLargeSuggestedRefinements suggestedRefinements = null , QueryLargePassages passages = null ) ;
37+ DetailedResponse < ListDocumentsResponse > ListDocuments ( string projectId , string collectionId , long ? count = null , string status = null , bool ? hasNotices = null , bool ? isParent = null , string parentDocumentId = null , string sha256 = null ) ;
38+ DetailedResponse < DocumentAccepted > AddDocument ( string projectId , string collectionId , System . IO . MemoryStream file = null , string filename = null , string fileContentType = null , string metadata = null , bool ? xWatsonDiscoveryForce = null ) ;
39+ DetailedResponse < DocumentDetails > GetDocument ( string projectId , string collectionId , string documentId ) ;
40+ DetailedResponse < DocumentAccepted > UpdateDocument ( string projectId , string collectionId , string documentId , System . IO . MemoryStream file = null , string filename = null , string fileContentType = null , string metadata = null , bool ? xWatsonDiscoveryForce = null ) ;
41+ DetailedResponse < DeleteDocumentResponse > DeleteDocument ( string projectId , string collectionId , string documentId , bool ? xWatsonDiscoveryForce = null ) ;
42+ DetailedResponse < QueryResponse > Query ( string projectId , List < string > collectionIds = null , string filter = null , string query = null , string naturalLanguageQuery = null , string aggregation = null , long ? count = null , List < string > _return = null , long ? offset = null , string sort = null , bool ? highlight = null , bool ? spellingSuggestions = null , QueryLargeTableResults tableResults = null , QueryLargeSuggestedRefinements suggestedRefinements = null , QueryLargePassages passages = null , QueryLargeSimilar similar = null ) ;
3243 DetailedResponse < Completions > GetAutocompletion ( string projectId , string prefix , List < string > collectionIds = null , string field = null , long ? count = null ) ;
3344 DetailedResponse < QueryNoticesResponse > QueryCollectionNotices ( string projectId , string collectionId , string filter = null , string query = null , string naturalLanguageQuery = null , long ? count = null , long ? offset = null ) ;
3445 DetailedResponse < QueryNoticesResponse > QueryNotices ( string projectId , string filter = null , string query = null , string naturalLanguageQuery = null , long ? count = null , long ? offset = null ) ;
35- DetailedResponse < ListFieldsResponse > ListFields ( string projectId , List < string > collectionIds = null ) ;
46+ DetailedResponse < StopWordList > GetStopwordList ( string projectId , string collectionId ) ;
47+ DetailedResponse < StopWordList > CreateStopwordList ( string projectId , string collectionId , List < string > stopwords = null ) ;
48+ DetailedResponse < object > DeleteStopwordList ( string projectId , string collectionId ) ;
49+ DetailedResponse < Expansions > ListExpansions ( string projectId , string collectionId ) ;
50+ DetailedResponse < Expansions > CreateExpansions ( string projectId , string collectionId , List < Expansion > expansions ) ;
51+ DetailedResponse < object > DeleteExpansions ( string projectId , string collectionId ) ;
3652 DetailedResponse < ComponentSettingsResponse > GetComponentSettings ( string projectId ) ;
37- DetailedResponse < DocumentAccepted > AddDocument ( string projectId , string collectionId , System . IO . MemoryStream file = null , string filename = null , string fileContentType = null , string metadata = null , bool ? xWatsonDiscoveryForce = null ) ;
38- DetailedResponse < DocumentAccepted > UpdateDocument ( string projectId , string collectionId , string documentId , System . IO . MemoryStream file = null , string filename = null , string fileContentType = null , string metadata = null , bool ? xWatsonDiscoveryForce = null ) ;
39- DetailedResponse < DeleteDocumentResponse > DeleteDocument ( string projectId , string collectionId , string documentId , bool ? xWatsonDiscoveryForce = null ) ;
4053 DetailedResponse < TrainingQuerySet > ListTrainingQueries ( string projectId ) ;
4154 DetailedResponse < object > DeleteTrainingQueries ( string projectId ) ;
4255 DetailedResponse < TrainingQuery > CreateTrainingQuery ( string projectId , string naturalLanguageQuery , List < TrainingExample > examples , string filter = null ) ;
4356 DetailedResponse < TrainingQuery > GetTrainingQuery ( string projectId , string queryId ) ;
4457 DetailedResponse < TrainingQuery > UpdateTrainingQuery ( string projectId , string queryId , string naturalLanguageQuery , List < TrainingExample > examples , string filter = null ) ;
4558 DetailedResponse < object > DeleteTrainingQuery ( string projectId , string queryId ) ;
46- DetailedResponse < AnalyzedDocument > AnalyzeDocument ( string projectId , string collectionId , System . IO . MemoryStream file = null , string filename = null , string fileContentType = null , string metadata = null ) ;
4759 DetailedResponse < Enrichments > ListEnrichments ( string projectId ) ;
4860 DetailedResponse < Enrichment > CreateEnrichment ( string projectId , CreateEnrichment enrichment , System . IO . MemoryStream file = null ) ;
4961 DetailedResponse < Enrichment > GetEnrichment ( string projectId , string enrichmentId ) ;
5062 DetailedResponse < Enrichment > UpdateEnrichment ( string projectId , string enrichmentId , string name , string description = null ) ;
5163 DetailedResponse < object > DeleteEnrichment ( string projectId , string enrichmentId ) ;
52- DetailedResponse < ListProjectsResponse > ListProjects ( ) ;
53- DetailedResponse < ProjectDetails > CreateProject ( string name , string type , DefaultQueryParams defaultQueryParameters = null ) ;
54- DetailedResponse < ProjectDetails > GetProject ( string projectId ) ;
55- DetailedResponse < ProjectDetails > UpdateProject ( string projectId , string name = null ) ;
56- DetailedResponse < object > DeleteProject ( string projectId ) ;
64+ DetailedResponse < DocumentClassifiers > ListDocumentClassifiers ( string projectId ) ;
65+ DetailedResponse < DocumentClassifier > CreateDocumentClassifier ( string projectId , System . IO . MemoryStream trainingData , CreateDocumentClassifier classifier , System . IO . MemoryStream testData = null ) ;
66+ DetailedResponse < DocumentClassifier > GetDocumentClassifier ( string projectId , string classifierId ) ;
67+ DetailedResponse < DocumentClassifier > UpdateDocumentClassifier ( string projectId , string classifierId , UpdateDocumentClassifier classifier , System . IO . MemoryStream trainingData = null , System . IO . MemoryStream testData = null ) ;
68+ DetailedResponse < object > DeleteDocumentClassifier ( string projectId , string classifierId ) ;
69+ DetailedResponse < DocumentClassifierModels > ListDocumentClassifierModels ( string projectId , string classifierId ) ;
70+ DetailedResponse < DocumentClassifierModel > CreateDocumentClassifierModel ( string projectId , string classifierId , string name , string description = null , double ? learningRate = null , List < double ? > l1RegularizationStrengths = null , List < double ? > l2RegularizationStrengths = null , long ? trainingMaxSteps = null , double ? improvementRatio = null ) ;
71+ DetailedResponse < DocumentClassifierModel > GetDocumentClassifierModel ( string projectId , string classifierId , string modelId ) ;
72+ DetailedResponse < DocumentClassifierModel > UpdateDocumentClassifierModel ( string projectId , string classifierId , string modelId , string name = null , string description = null ) ;
73+ DetailedResponse < object > DeleteDocumentClassifierModel ( string projectId , string classifierId , string modelId ) ;
74+ DetailedResponse < AnalyzedDocument > AnalyzeDocument ( string projectId , string collectionId , System . IO . MemoryStream file = null , string filename = null , string fileContentType = null , string metadata = null ) ;
5775 DetailedResponse < object > DeleteUserData ( string customerId ) ;
5876 }
5977}
0 commit comments