@@ -161,6 +161,7 @@ public bool ConvertToHtml(SuccessCallback<HTMLReturn> successCallback, FailCallb
161
161
if ( ! string . IsNullOrEmpty ( modelId ) )
162
162
req . Parameters [ "model_id" ] = modelId ;
163
163
req . OnResponse = OnConvertToHtmlResponse ;
164
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=ConvertToHtml" ;
164
165
165
166
RESTConnector connector = RESTConnector . GetConnector ( Credentials , "/v1/html_conversion" ) ;
166
167
if ( connector == null )
@@ -269,6 +270,7 @@ public bool ClassifyElements(SuccessCallback<ClassifyReturn> successCallback, Fa
269
270
if ( ! string . IsNullOrEmpty ( modelId ) )
270
271
req . Parameters [ "model_id" ] = modelId ;
271
272
req . OnResponse = OnClassifyElementsResponse ;
273
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=ClassifyElements" ;
272
274
273
275
RESTConnector connector = RESTConnector . GetConnector ( Credentials , "/v1/element_classification" ) ;
274
276
if ( connector == null )
@@ -376,6 +378,7 @@ public bool ExtractTables(SuccessCallback<TableReturn> successCallback, FailCall
376
378
if ( ! string . IsNullOrEmpty ( modelId ) )
377
379
req . Parameters [ "model_id" ] = modelId ;
378
380
req . OnResponse = OnExtractTablesResponse ;
381
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=ExtractTables" ;
379
382
380
383
RESTConnector connector = RESTConnector . GetConnector ( Credentials , "/v1/tables" ) ;
381
384
if ( connector == null )
@@ -498,6 +501,7 @@ public bool CompareDocuments(SuccessCallback<CompareReturn> successCallback, Fai
498
501
if ( ! string . IsNullOrEmpty ( modelId ) )
499
502
req . Parameters [ "model_id" ] = modelId ;
500
503
req . OnResponse = OnCompareDocumentsResponse ;
504
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=CompareDocuments" ;
501
505
502
506
RESTConnector connector = RESTConnector . GetConnector ( Credentials , "/v1/comparison" ) ;
503
507
if ( connector == null )
@@ -607,6 +611,7 @@ public bool AddFeedback(SuccessCallback<FeedbackReturn> successCallback, FailCal
607
611
req . Headers [ "Content-Type" ] = "application/json" ;
608
612
req . Parameters [ "version" ] = VersionDate ;
609
613
req . OnResponse = OnAddFeedbackResponse ;
614
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=AddFeedback" ;
610
615
611
616
RESTConnector connector = RESTConnector . GetConnector ( Credentials , "/v1/feedback" ) ;
612
617
if ( connector == null )
@@ -710,6 +715,7 @@ public bool DeleteFeedback(SuccessCallback<FeedbackDeleted> successCallback, Fai
710
715
if ( ! string . IsNullOrEmpty ( modelId ) )
711
716
req . Parameters [ "model_id" ] = modelId ;
712
717
req . OnResponse = OnDeleteFeedbackResponse ;
718
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=DeleteFeedback" ;
713
719
714
720
RESTConnector connector = RESTConnector . GetConnector ( Credentials , string . Format ( "/v1/feedback/{0}" , feedbackId ) ) ;
715
721
if ( connector == null )
@@ -814,6 +820,7 @@ public bool GetFeedback(SuccessCallback<GetFeedback> successCallback, FailCallba
814
820
if ( ! string . IsNullOrEmpty ( modelId ) )
815
821
req . Parameters [ "model_id" ] = modelId ;
816
822
req . OnResponse = OnGetFeedbackResponse ;
823
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=GetFeedback" ;
817
824
818
825
RESTConnector connector = RESTConnector . GetConnector ( Credentials , string . Format ( "/v1/feedback/{0}" , feedbackId ) ) ;
819
826
if ( connector == null )
@@ -981,6 +988,7 @@ public bool ListFeedback(SuccessCallback<FeedbackList> successCallback, FailCall
981
988
if ( includeTotal != null )
982
989
req . Parameters [ "include_total" ] = includeTotal ;
983
990
req . OnResponse = OnListFeedbackResponse ;
991
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=ListFeedback" ;
984
992
985
993
RESTConnector connector = RESTConnector . GetConnector ( Credentials , "/v1/feedback" ) ;
986
994
if ( connector == null )
@@ -1126,6 +1134,7 @@ public bool CreateBatch(SuccessCallback<BatchStatus> successCallback, FailCallba
1126
1134
if ( ! string . IsNullOrEmpty ( modelId ) )
1127
1135
req . Parameters [ "model_id" ] = modelId ;
1128
1136
req . OnResponse = OnCreateBatchResponse ;
1137
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=CreateBatch" ;
1129
1138
1130
1139
RESTConnector connector = RESTConnector . GetConnector ( Credentials , "/v1/batches" ) ;
1131
1140
if ( connector == null )
@@ -1226,6 +1235,7 @@ public bool GetBatch(SuccessCallback<BatchStatus> successCallback, FailCallback
1226
1235
}
1227
1236
req . Parameters [ "version" ] = VersionDate ;
1228
1237
req . OnResponse = OnGetBatchResponse ;
1238
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=GetBatch" ;
1229
1239
1230
1240
RESTConnector connector = RESTConnector . GetConnector ( Credentials , string . Format ( "/v1/batches/{0}" , batchId ) ) ;
1231
1241
if ( connector == null )
@@ -1323,6 +1333,7 @@ public bool ListBatches(SuccessCallback<Batches> successCallback, FailCallback f
1323
1333
}
1324
1334
req . Parameters [ "version" ] = VersionDate ;
1325
1335
req . OnResponse = OnGetBatchesResponse ;
1336
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=ListBatches" ;
1326
1337
1327
1338
RESTConnector connector = RESTConnector . GetConnector ( Credentials , "/v1/batches" ) ;
1328
1339
if ( connector == null )
@@ -1436,6 +1447,7 @@ public bool UpdateBatch(SuccessCallback<BatchStatus> successCallback, FailCallba
1436
1447
if ( ! string . IsNullOrEmpty ( modelId ) )
1437
1448
req . Parameters [ "model_id" ] = modelId ;
1438
1449
req . OnResponse = OnUpdateBatchResponse ;
1450
+ req . Headers [ "X-IBMCloud-SDK-Analytics" ] = "service_name=compare-comply;service_version=v1;operation_id=UpdateBatch" ;
1439
1451
1440
1452
RESTConnector connector = RESTConnector . GetConnector ( Credentials , string . Format ( "/v1/batches/{0}" , batchId ) ) ;
1441
1453
if ( connector == null )
0 commit comments