public void DeleteTrainingExample() { Console.WriteLine(string.Format("\nCalling DeleteTrainingExample()...")); var result = _discovery.DeleteTrainingExample(_existingEnvironmentId, _createdCollectionId, _createdTrainingQueryId, _createdTrainingExampleId); if (result != null) { Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented)); _createdTrainingExampleId = null; } else { Console.WriteLine("result is null."); } }
public void DeleteTrainingExample() { IamAuthenticator authenticator = new IamAuthenticator( apikey: "{apikey}"); DiscoveryService service = new DiscoveryService("2019-04-30", authenticator); service.SetServiceUrl("{serviceUrl}"); var result = service.DeleteTrainingExample( environmentId: "{environmentId}", collectionId: "{collectionId}", queryId: "{queryId}", exampleId: "{exampleId}" ); Console.WriteLine(result.Response); }
public void DeleteTrainingExample() { IamConfig config = new IamConfig( apikey: apikey ); DiscoveryService service = new DiscoveryService(versionDate, config); service.SetEndpoint(url); var result = service.DeleteTrainingExample( environmentId: environmentId, collectionId: collectionId, queryId: queryId, exampleId: exampleId ); Console.WriteLine(result.Response); }
public void DeleteTrainingExample() { TokenOptions tokenOptions = new TokenOptions() { IamApiKey = apikey, ServiceUrl = url }; DiscoveryService service = new DiscoveryService(tokenOptions, versionDate); var result = service.DeleteTrainingExample( environmentId: environmentId, collectionId: collectionId, queryId: queryId, exampleId: exampleId ); Console.WriteLine(result.Response); }