Skip to content

Commit 0b0c0a4

Browse files
committed
feat: Regenerate service using current api defs
1 parent 7a4c8bb commit 0b0c0a4

File tree

14 files changed

+347
-199
lines changed

14 files changed

+347
-199
lines changed

Scripts/Services/CompareComply/V1/CompareComplyService.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
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.
@@ -72,6 +72,7 @@ public CompareComplyService(string versionDate) : this(versionDate, ConfigBasedA
7272
public CompareComplyService(string versionDate, Authenticator authenticator) : base(versionDate, authenticator, serviceId)
7373
{
7474
Authenticator = authenticator;
75+
7576
if (string.IsNullOrEmpty(versionDate))
7677
{
7778
throw new ArgumentNullException("A versionDate (format `yyyy-mm-dd`) is required to create an instance of CompareComplyService");
@@ -81,7 +82,6 @@ public CompareComplyService(string versionDate, Authenticator authenticator) : b
8182
VersionDate = versionDate;
8283
}
8384

84-
8585
if (string.IsNullOrEmpty(GetServiceUrl()))
8686
{
8787
SetServiceUrl(defaultServiceUrl);
@@ -142,6 +142,7 @@ public bool ConvertToHtml(Callback<HTMLReturn> callback, System.IO.MemoryStream
142142

143143
Connector.URL = GetServiceUrl() + "/v1/html_conversion";
144144
Authenticator.Authenticate(Connector);
145+
145146
return Connector.Send(req);
146147
}
147148

@@ -223,6 +224,7 @@ public bool ClassifyElements(Callback<ClassifyReturn> callback, System.IO.Memory
223224

224225
Connector.URL = GetServiceUrl() + "/v1/element_classification";
225226
Authenticator.Authenticate(Connector);
227+
226228
return Connector.Send(req);
227229
}
228230

@@ -304,6 +306,7 @@ public bool ExtractTables(Callback<TableReturn> callback, System.IO.MemoryStream
304306

305307
Connector.URL = GetServiceUrl() + "/v1/tables";
306308
Authenticator.Authenticate(Connector);
309+
307310
return Connector.Send(req);
308311
}
309312

@@ -403,6 +406,7 @@ public bool CompareDocuments(Callback<CompareReturn> callback, System.IO.MemoryS
403406

404407
Connector.URL = GetServiceUrl() + "/v1/comparison";
405408
Authenticator.Authenticate(Connector);
409+
406410
return Connector.Send(req);
407411
}
408412

@@ -486,6 +490,7 @@ public bool AddFeedback(Callback<FeedbackReturn> callback, FeedbackDataInput fee
486490

487491
Connector.URL = GetServiceUrl() + "/v1/feedback";
488492
Authenticator.Authenticate(Connector);
493+
489494
return Connector.Send(req);
490495
}
491496

@@ -654,6 +659,7 @@ public bool ListFeedback(Callback<FeedbackList> callback, string feedbackType =
654659

655660
Connector.URL = GetServiceUrl() + "/v1/feedback";
656661
Authenticator.Authenticate(Connector);
662+
657663
return Connector.Send(req);
658664
}
659665

@@ -729,6 +735,7 @@ public bool GetFeedback(Callback<GetFeedback> callback, string feedbackId, strin
729735

730736
Connector.URL = GetServiceUrl() + string.Format("/v1/feedback/{0}", feedbackId);
731737
Authenticator.Authenticate(Connector);
738+
732739
return Connector.Send(req);
733740
}
734741

@@ -804,6 +811,7 @@ public bool DeleteFeedback(Callback<FeedbackDeleted> callback, string feedbackId
804811

805812
Connector.URL = GetServiceUrl() + string.Format("/v1/feedback/{0}", feedbackId);
806813
Authenticator.Authenticate(Connector);
814+
807815
return Connector.Send(req);
808816
}
809817

@@ -939,6 +947,7 @@ public bool CreateBatch(Callback<BatchStatus> callback, string function, System.
939947

940948
Connector.URL = GetServiceUrl() + "/v1/batches";
941949
Authenticator.Authenticate(Connector);
950+
942951
return Connector.Send(req);
943952
}
944953

@@ -1003,6 +1012,7 @@ public bool ListBatches(Callback<Batches> callback)
10031012

10041013
Connector.URL = GetServiceUrl() + "/v1/batches";
10051014
Authenticator.Authenticate(Connector);
1015+
10061016
return Connector.Send(req);
10071017
}
10081018

@@ -1070,6 +1080,7 @@ public bool GetBatch(Callback<BatchStatus> callback, string batchId)
10701080

10711081
Connector.URL = GetServiceUrl() + string.Format("/v1/batches/{0}", batchId);
10721082
Authenticator.Authenticate(Connector);
1083+
10731084
return Connector.Send(req);
10741085
}
10751086

@@ -1153,6 +1164,7 @@ public bool UpdateBatch(Callback<BatchStatus> callback, string batchId, string a
11531164

11541165
Connector.URL = GetServiceUrl() + string.Format("/v1/batches/{0}", batchId);
11551166
Authenticator.Authenticate(Connector);
1167+
11561168
return Connector.Send(req);
11571169
}
11581170

0 commit comments

Comments
 (0)