@@ -1009,10 +1009,10 @@ private DocumentAccepted UpdateDocument(string environmentId, string collectionI
10091009 #endregion
10101010
10111011 #region FederatedQuery
1012- private QueryResponse FederatedQuery ( string environmentId , List < string > collectionIds , string filter = null , string query = null , string naturalLanguageQuery = null , string aggregation = null , long ? count = null , List < string > returnFields = null , long ? offset = null , List < string > sort = null , bool ? highlight = null , bool ? deduplicate = null , string deduplicateField = null , bool ? similar = null , List < string > similarDocumentIds = null , List < string > similarFields = null , Dictionary < string , object > customData = null )
1012+ private QueryResponse FederatedQuery ( string environmentId , List < string > collectionIds , string filter = null , string query = null , string naturalLanguageQuery = null , string aggregation = null , long ? count = null , List < string > returnFields = null , long ? offset = null , List < string > sort = null , bool ? highlight = null , bool ? deduplicate = null , string deduplicateField = null , bool ? similar = null , List < string > similarDocumentIds = null , List < string > similarFields = null , bool ? passages = null , List < string > passagesFields = null , long ? passagesCount = null , long ? passagesCharacters = null , Dictionary < string , object > customData = null )
10131013 {
10141014 Console . WriteLine ( "\n Attempting to FederatedQuery()" ) ;
1015- var result = _service . FederatedQuery ( environmentId : environmentId , collectionIds : collectionIds , filter : filter , query : query , naturalLanguageQuery : naturalLanguageQuery , aggregation : aggregation , count : count , returnFields : returnFields , offset : offset , sort : sort , highlight : highlight , deduplicate : deduplicate , deduplicateField : deduplicateField , similar : similar , similarDocumentIds : similarDocumentIds , similarFields : similarFields , customData : customData ) ;
1015+ var result = _service . FederatedQuery ( environmentId : environmentId , collectionIds : collectionIds , filter : filter , query : query , naturalLanguageQuery : naturalLanguageQuery , aggregation : aggregation , count : count , returnFields : returnFields , offset : offset , sort : sort , highlight : highlight , deduplicate : deduplicate , deduplicateField : deduplicateField , similar : similar , similarDocumentIds : similarDocumentIds , similarFields : similarFields , passages : passages , passagesFields : passagesFields , passagesCount : passagesCount , passagesCharacters : passagesCharacters , customData : customData ) ;
10161016
10171017 if ( result != null )
10181018 {
@@ -1331,6 +1331,101 @@ private BaseModel DeleteUserData(string customerId, Dictionary<string, object> c
13311331 }
13321332 #endregion
13331333
1334+ #region CreateCredentials
1335+ private Credentials CreateCredentials ( string environmentId , Credentials credentialsParameter , Dictionary < string , object > customData = null )
1336+ {
1337+ Console . WriteLine ( "\n Attempting to CreateCredentials()" ) ;
1338+ var result = _service . CreateCredentials ( environmentId : environmentId , credentialsParameter : credentialsParameter , customData : customData ) ;
1339+
1340+ if ( result != null )
1341+ {
1342+ Console . WriteLine ( "CreateCredentials() succeeded:\n {0}" , JsonConvert . SerializeObject ( result , Formatting . Indented ) ) ;
1343+ }
1344+ else
1345+ {
1346+ Console . WriteLine ( "Failed to CreateCredentials()" ) ;
1347+ }
1348+
1349+ return result ;
1350+ }
1351+ #endregion
1352+
1353+ #region DeleteCredentials
1354+ private DeleteCredentials DeleteCredentials ( string environmentId , string credentialId , Dictionary < string , object > customData = null )
1355+ {
1356+ Console . WriteLine ( "\n Attempting to DeleteCredentials()" ) ;
1357+ var result = _service . DeleteCredentials ( environmentId : environmentId , credentialId : credentialId , customData : customData ) ;
1358+
1359+ if ( result != null )
1360+ {
1361+ Console . WriteLine ( "DeleteCredentials() succeeded:\n {0}" , JsonConvert . SerializeObject ( result , Formatting . Indented ) ) ;
1362+ }
1363+ else
1364+ {
1365+ Console . WriteLine ( "Failed to DeleteCredentials()" ) ;
1366+ }
1367+
1368+ return result ;
1369+ }
1370+ #endregion
1371+
1372+ #region GetCredentials
1373+ private Credentials GetCredentials ( string environmentId , string credentialId , Dictionary < string , object > customData = null )
1374+ {
1375+ Console . WriteLine ( "\n Attempting to GetCredentials()" ) ;
1376+ var result = _service . GetCredentials ( environmentId : environmentId , credentialId : credentialId , customData : customData ) ;
1377+
1378+ if ( result != null )
1379+ {
1380+ Console . WriteLine ( "GetCredentials() succeeded:\n {0}" , JsonConvert . SerializeObject ( result , Formatting . Indented ) ) ;
1381+ }
1382+ else
1383+ {
1384+ Console . WriteLine ( "Failed to GetCredentials()" ) ;
1385+ }
1386+
1387+ return result ;
1388+ }
1389+ #endregion
1390+
1391+ #region ListCredentials
1392+ private CredentialsList ListCredentials ( string environmentId , Dictionary < string , object > customData = null )
1393+ {
1394+ Console . WriteLine ( "\n Attempting to ListCredentials()" ) ;
1395+ var result = _service . ListCredentials ( environmentId : environmentId , customData : customData ) ;
1396+
1397+ if ( result != null )
1398+ {
1399+ Console . WriteLine ( "ListCredentials() succeeded:\n {0}" , JsonConvert . SerializeObject ( result , Formatting . Indented ) ) ;
1400+ }
1401+ else
1402+ {
1403+ Console . WriteLine ( "Failed to ListCredentials()" ) ;
1404+ }
1405+
1406+ return result ;
1407+ }
1408+ #endregion
1409+
1410+ #region UpdateCredentials
1411+ private Credentials UpdateCredentials ( string environmentId , string credentialId , Credentials credentialsParameter , Dictionary < string , object > customData = null )
1412+ {
1413+ Console . WriteLine ( "\n Attempting to UpdateCredentials()" ) ;
1414+ var result = _service . UpdateCredentials ( environmentId : environmentId , credentialId : credentialId , credentialsParameter : credentialsParameter , customData : customData ) ;
1415+
1416+ if ( result != null )
1417+ {
1418+ Console . WriteLine ( "UpdateCredentials() succeeded:\n {0}" , JsonConvert . SerializeObject ( result , Formatting . Indented ) ) ;
1419+ }
1420+ else
1421+ {
1422+ Console . WriteLine ( "Failed to UpdateCredentials()" ) ;
1423+ }
1424+
1425+ return result ;
1426+ }
1427+ #endregion
1428+
13341429 #endregion
13351430 }
13361431}
0 commit comments