Dataworks-publicClient.cc 134 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/dataworks-public/Dataworks_publicClient.h>
  17. #include <alibabacloud/core/SimpleCredentialsProvider.h>
  18. using namespace AlibabaCloud;
  19. using namespace AlibabaCloud::Location;
  20. using namespace AlibabaCloud::Dataworks_public;
  21. using namespace AlibabaCloud::Dataworks_public::Model;
  22. namespace
  23. {
  24. const std::string SERVICE_NAME = "dataworks-public";
  25. }
  26. Dataworks_publicClient::Dataworks_publicClient(const Credentials &credentials, const ClientConfiguration &configuration) :
  27. RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
  28. {
  29. auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
  30. endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dide");
  31. }
  32. Dataworks_publicClient::Dataworks_publicClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
  33. RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
  34. {
  35. auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
  36. endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dide");
  37. }
  38. Dataworks_publicClient::Dataworks_publicClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
  39. RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
  40. {
  41. auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
  42. endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dide");
  43. }
  44. Dataworks_publicClient::~Dataworks_publicClient()
  45. {}
  46. Dataworks_publicClient::AbolishDataServiceApiOutcome Dataworks_publicClient::abolishDataServiceApi(const AbolishDataServiceApiRequest &request) const
  47. {
  48. auto endpointOutcome = endpointProvider_->getEndpoint();
  49. if (!endpointOutcome.isSuccess())
  50. return AbolishDataServiceApiOutcome(endpointOutcome.error());
  51. auto outcome = makeRequest(endpointOutcome.result(), request);
  52. if (outcome.isSuccess())
  53. return AbolishDataServiceApiOutcome(AbolishDataServiceApiResult(outcome.result()));
  54. else
  55. return AbolishDataServiceApiOutcome(outcome.error());
  56. }
  57. void Dataworks_publicClient::abolishDataServiceApiAsync(const AbolishDataServiceApiRequest& request, const AbolishDataServiceApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  58. {
  59. auto fn = [this, request, handler, context]()
  60. {
  61. handler(this, request, abolishDataServiceApi(request), context);
  62. };
  63. asyncExecute(new Runnable(fn));
  64. }
  65. Dataworks_publicClient::AbolishDataServiceApiOutcomeCallable Dataworks_publicClient::abolishDataServiceApiCallable(const AbolishDataServiceApiRequest &request) const
  66. {
  67. auto task = std::make_shared<std::packaged_task<AbolishDataServiceApiOutcome()>>(
  68. [this, request]()
  69. {
  70. return this->abolishDataServiceApi(request);
  71. });
  72. asyncExecute(new Runnable([task]() { (*task)(); }));
  73. return task->get_future();
  74. }
  75. Dataworks_publicClient::AddToMetaCategoryOutcome Dataworks_publicClient::addToMetaCategory(const AddToMetaCategoryRequest &request) const
  76. {
  77. auto endpointOutcome = endpointProvider_->getEndpoint();
  78. if (!endpointOutcome.isSuccess())
  79. return AddToMetaCategoryOutcome(endpointOutcome.error());
  80. auto outcome = makeRequest(endpointOutcome.result(), request);
  81. if (outcome.isSuccess())
  82. return AddToMetaCategoryOutcome(AddToMetaCategoryResult(outcome.result()));
  83. else
  84. return AddToMetaCategoryOutcome(outcome.error());
  85. }
  86. void Dataworks_publicClient::addToMetaCategoryAsync(const AddToMetaCategoryRequest& request, const AddToMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  87. {
  88. auto fn = [this, request, handler, context]()
  89. {
  90. handler(this, request, addToMetaCategory(request), context);
  91. };
  92. asyncExecute(new Runnable(fn));
  93. }
  94. Dataworks_publicClient::AddToMetaCategoryOutcomeCallable Dataworks_publicClient::addToMetaCategoryCallable(const AddToMetaCategoryRequest &request) const
  95. {
  96. auto task = std::make_shared<std::packaged_task<AddToMetaCategoryOutcome()>>(
  97. [this, request]()
  98. {
  99. return this->addToMetaCategory(request);
  100. });
  101. asyncExecute(new Runnable([task]() { (*task)(); }));
  102. return task->get_future();
  103. }
  104. Dataworks_publicClient::CheckMetaPartitionOutcome Dataworks_publicClient::checkMetaPartition(const CheckMetaPartitionRequest &request) const
  105. {
  106. auto endpointOutcome = endpointProvider_->getEndpoint();
  107. if (!endpointOutcome.isSuccess())
  108. return CheckMetaPartitionOutcome(endpointOutcome.error());
  109. auto outcome = makeRequest(endpointOutcome.result(), request);
  110. if (outcome.isSuccess())
  111. return CheckMetaPartitionOutcome(CheckMetaPartitionResult(outcome.result()));
  112. else
  113. return CheckMetaPartitionOutcome(outcome.error());
  114. }
  115. void Dataworks_publicClient::checkMetaPartitionAsync(const CheckMetaPartitionRequest& request, const CheckMetaPartitionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  116. {
  117. auto fn = [this, request, handler, context]()
  118. {
  119. handler(this, request, checkMetaPartition(request), context);
  120. };
  121. asyncExecute(new Runnable(fn));
  122. }
  123. Dataworks_publicClient::CheckMetaPartitionOutcomeCallable Dataworks_publicClient::checkMetaPartitionCallable(const CheckMetaPartitionRequest &request) const
  124. {
  125. auto task = std::make_shared<std::packaged_task<CheckMetaPartitionOutcome()>>(
  126. [this, request]()
  127. {
  128. return this->checkMetaPartition(request);
  129. });
  130. asyncExecute(new Runnable([task]() { (*task)(); }));
  131. return task->get_future();
  132. }
  133. Dataworks_publicClient::CheckMetaTableOutcome Dataworks_publicClient::checkMetaTable(const CheckMetaTableRequest &request) const
  134. {
  135. auto endpointOutcome = endpointProvider_->getEndpoint();
  136. if (!endpointOutcome.isSuccess())
  137. return CheckMetaTableOutcome(endpointOutcome.error());
  138. auto outcome = makeRequest(endpointOutcome.result(), request);
  139. if (outcome.isSuccess())
  140. return CheckMetaTableOutcome(CheckMetaTableResult(outcome.result()));
  141. else
  142. return CheckMetaTableOutcome(outcome.error());
  143. }
  144. void Dataworks_publicClient::checkMetaTableAsync(const CheckMetaTableRequest& request, const CheckMetaTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  145. {
  146. auto fn = [this, request, handler, context]()
  147. {
  148. handler(this, request, checkMetaTable(request), context);
  149. };
  150. asyncExecute(new Runnable(fn));
  151. }
  152. Dataworks_publicClient::CheckMetaTableOutcomeCallable Dataworks_publicClient::checkMetaTableCallable(const CheckMetaTableRequest &request) const
  153. {
  154. auto task = std::make_shared<std::packaged_task<CheckMetaTableOutcome()>>(
  155. [this, request]()
  156. {
  157. return this->checkMetaTable(request);
  158. });
  159. asyncExecute(new Runnable([task]() { (*task)(); }));
  160. return task->get_future();
  161. }
  162. Dataworks_publicClient::CreateConnectionOutcome Dataworks_publicClient::createConnection(const CreateConnectionRequest &request) const
  163. {
  164. auto endpointOutcome = endpointProvider_->getEndpoint();
  165. if (!endpointOutcome.isSuccess())
  166. return CreateConnectionOutcome(endpointOutcome.error());
  167. auto outcome = makeRequest(endpointOutcome.result(), request);
  168. if (outcome.isSuccess())
  169. return CreateConnectionOutcome(CreateConnectionResult(outcome.result()));
  170. else
  171. return CreateConnectionOutcome(outcome.error());
  172. }
  173. void Dataworks_publicClient::createConnectionAsync(const CreateConnectionRequest& request, const CreateConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  174. {
  175. auto fn = [this, request, handler, context]()
  176. {
  177. handler(this, request, createConnection(request), context);
  178. };
  179. asyncExecute(new Runnable(fn));
  180. }
  181. Dataworks_publicClient::CreateConnectionOutcomeCallable Dataworks_publicClient::createConnectionCallable(const CreateConnectionRequest &request) const
  182. {
  183. auto task = std::make_shared<std::packaged_task<CreateConnectionOutcome()>>(
  184. [this, request]()
  185. {
  186. return this->createConnection(request);
  187. });
  188. asyncExecute(new Runnable([task]() { (*task)(); }));
  189. return task->get_future();
  190. }
  191. Dataworks_publicClient::CreateDagComplementOutcome Dataworks_publicClient::createDagComplement(const CreateDagComplementRequest &request) const
  192. {
  193. auto endpointOutcome = endpointProvider_->getEndpoint();
  194. if (!endpointOutcome.isSuccess())
  195. return CreateDagComplementOutcome(endpointOutcome.error());
  196. auto outcome = makeRequest(endpointOutcome.result(), request);
  197. if (outcome.isSuccess())
  198. return CreateDagComplementOutcome(CreateDagComplementResult(outcome.result()));
  199. else
  200. return CreateDagComplementOutcome(outcome.error());
  201. }
  202. void Dataworks_publicClient::createDagComplementAsync(const CreateDagComplementRequest& request, const CreateDagComplementAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  203. {
  204. auto fn = [this, request, handler, context]()
  205. {
  206. handler(this, request, createDagComplement(request), context);
  207. };
  208. asyncExecute(new Runnable(fn));
  209. }
  210. Dataworks_publicClient::CreateDagComplementOutcomeCallable Dataworks_publicClient::createDagComplementCallable(const CreateDagComplementRequest &request) const
  211. {
  212. auto task = std::make_shared<std::packaged_task<CreateDagComplementOutcome()>>(
  213. [this, request]()
  214. {
  215. return this->createDagComplement(request);
  216. });
  217. asyncExecute(new Runnable([task]() { (*task)(); }));
  218. return task->get_future();
  219. }
  220. Dataworks_publicClient::CreateDagTestOutcome Dataworks_publicClient::createDagTest(const CreateDagTestRequest &request) const
  221. {
  222. auto endpointOutcome = endpointProvider_->getEndpoint();
  223. if (!endpointOutcome.isSuccess())
  224. return CreateDagTestOutcome(endpointOutcome.error());
  225. auto outcome = makeRequest(endpointOutcome.result(), request);
  226. if (outcome.isSuccess())
  227. return CreateDagTestOutcome(CreateDagTestResult(outcome.result()));
  228. else
  229. return CreateDagTestOutcome(outcome.error());
  230. }
  231. void Dataworks_publicClient::createDagTestAsync(const CreateDagTestRequest& request, const CreateDagTestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  232. {
  233. auto fn = [this, request, handler, context]()
  234. {
  235. handler(this, request, createDagTest(request), context);
  236. };
  237. asyncExecute(new Runnable(fn));
  238. }
  239. Dataworks_publicClient::CreateDagTestOutcomeCallable Dataworks_publicClient::createDagTestCallable(const CreateDagTestRequest &request) const
  240. {
  241. auto task = std::make_shared<std::packaged_task<CreateDagTestOutcome()>>(
  242. [this, request]()
  243. {
  244. return this->createDagTest(request);
  245. });
  246. asyncExecute(new Runnable([task]() { (*task)(); }));
  247. return task->get_future();
  248. }
  249. Dataworks_publicClient::CreateDataServiceApiOutcome Dataworks_publicClient::createDataServiceApi(const CreateDataServiceApiRequest &request) const
  250. {
  251. auto endpointOutcome = endpointProvider_->getEndpoint();
  252. if (!endpointOutcome.isSuccess())
  253. return CreateDataServiceApiOutcome(endpointOutcome.error());
  254. auto outcome = makeRequest(endpointOutcome.result(), request);
  255. if (outcome.isSuccess())
  256. return CreateDataServiceApiOutcome(CreateDataServiceApiResult(outcome.result()));
  257. else
  258. return CreateDataServiceApiOutcome(outcome.error());
  259. }
  260. void Dataworks_publicClient::createDataServiceApiAsync(const CreateDataServiceApiRequest& request, const CreateDataServiceApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  261. {
  262. auto fn = [this, request, handler, context]()
  263. {
  264. handler(this, request, createDataServiceApi(request), context);
  265. };
  266. asyncExecute(new Runnable(fn));
  267. }
  268. Dataworks_publicClient::CreateDataServiceApiOutcomeCallable Dataworks_publicClient::createDataServiceApiCallable(const CreateDataServiceApiRequest &request) const
  269. {
  270. auto task = std::make_shared<std::packaged_task<CreateDataServiceApiOutcome()>>(
  271. [this, request]()
  272. {
  273. return this->createDataServiceApi(request);
  274. });
  275. asyncExecute(new Runnable([task]() { (*task)(); }));
  276. return task->get_future();
  277. }
  278. Dataworks_publicClient::CreateFileOutcome Dataworks_publicClient::createFile(const CreateFileRequest &request) const
  279. {
  280. auto endpointOutcome = endpointProvider_->getEndpoint();
  281. if (!endpointOutcome.isSuccess())
  282. return CreateFileOutcome(endpointOutcome.error());
  283. auto outcome = makeRequest(endpointOutcome.result(), request);
  284. if (outcome.isSuccess())
  285. return CreateFileOutcome(CreateFileResult(outcome.result()));
  286. else
  287. return CreateFileOutcome(outcome.error());
  288. }
  289. void Dataworks_publicClient::createFileAsync(const CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  290. {
  291. auto fn = [this, request, handler, context]()
  292. {
  293. handler(this, request, createFile(request), context);
  294. };
  295. asyncExecute(new Runnable(fn));
  296. }
  297. Dataworks_publicClient::CreateFileOutcomeCallable Dataworks_publicClient::createFileCallable(const CreateFileRequest &request) const
  298. {
  299. auto task = std::make_shared<std::packaged_task<CreateFileOutcome()>>(
  300. [this, request]()
  301. {
  302. return this->createFile(request);
  303. });
  304. asyncExecute(new Runnable([task]() { (*task)(); }));
  305. return task->get_future();
  306. }
  307. Dataworks_publicClient::CreateFolderOutcome Dataworks_publicClient::createFolder(const CreateFolderRequest &request) const
  308. {
  309. auto endpointOutcome = endpointProvider_->getEndpoint();
  310. if (!endpointOutcome.isSuccess())
  311. return CreateFolderOutcome(endpointOutcome.error());
  312. auto outcome = makeRequest(endpointOutcome.result(), request);
  313. if (outcome.isSuccess())
  314. return CreateFolderOutcome(CreateFolderResult(outcome.result()));
  315. else
  316. return CreateFolderOutcome(outcome.error());
  317. }
  318. void Dataworks_publicClient::createFolderAsync(const CreateFolderRequest& request, const CreateFolderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  319. {
  320. auto fn = [this, request, handler, context]()
  321. {
  322. handler(this, request, createFolder(request), context);
  323. };
  324. asyncExecute(new Runnable(fn));
  325. }
  326. Dataworks_publicClient::CreateFolderOutcomeCallable Dataworks_publicClient::createFolderCallable(const CreateFolderRequest &request) const
  327. {
  328. auto task = std::make_shared<std::packaged_task<CreateFolderOutcome()>>(
  329. [this, request]()
  330. {
  331. return this->createFolder(request);
  332. });
  333. asyncExecute(new Runnable([task]() { (*task)(); }));
  334. return task->get_future();
  335. }
  336. Dataworks_publicClient::CreateMetaCategoryOutcome Dataworks_publicClient::createMetaCategory(const CreateMetaCategoryRequest &request) const
  337. {
  338. auto endpointOutcome = endpointProvider_->getEndpoint();
  339. if (!endpointOutcome.isSuccess())
  340. return CreateMetaCategoryOutcome(endpointOutcome.error());
  341. auto outcome = makeRequest(endpointOutcome.result(), request);
  342. if (outcome.isSuccess())
  343. return CreateMetaCategoryOutcome(CreateMetaCategoryResult(outcome.result()));
  344. else
  345. return CreateMetaCategoryOutcome(outcome.error());
  346. }
  347. void Dataworks_publicClient::createMetaCategoryAsync(const CreateMetaCategoryRequest& request, const CreateMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  348. {
  349. auto fn = [this, request, handler, context]()
  350. {
  351. handler(this, request, createMetaCategory(request), context);
  352. };
  353. asyncExecute(new Runnable(fn));
  354. }
  355. Dataworks_publicClient::CreateMetaCategoryOutcomeCallable Dataworks_publicClient::createMetaCategoryCallable(const CreateMetaCategoryRequest &request) const
  356. {
  357. auto task = std::make_shared<std::packaged_task<CreateMetaCategoryOutcome()>>(
  358. [this, request]()
  359. {
  360. return this->createMetaCategory(request);
  361. });
  362. asyncExecute(new Runnable([task]() { (*task)(); }));
  363. return task->get_future();
  364. }
  365. Dataworks_publicClient::CreateQualityEntityOutcome Dataworks_publicClient::createQualityEntity(const CreateQualityEntityRequest &request) const
  366. {
  367. auto endpointOutcome = endpointProvider_->getEndpoint();
  368. if (!endpointOutcome.isSuccess())
  369. return CreateQualityEntityOutcome(endpointOutcome.error());
  370. auto outcome = makeRequest(endpointOutcome.result(), request);
  371. if (outcome.isSuccess())
  372. return CreateQualityEntityOutcome(CreateQualityEntityResult(outcome.result()));
  373. else
  374. return CreateQualityEntityOutcome(outcome.error());
  375. }
  376. void Dataworks_publicClient::createQualityEntityAsync(const CreateQualityEntityRequest& request, const CreateQualityEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  377. {
  378. auto fn = [this, request, handler, context]()
  379. {
  380. handler(this, request, createQualityEntity(request), context);
  381. };
  382. asyncExecute(new Runnable(fn));
  383. }
  384. Dataworks_publicClient::CreateQualityEntityOutcomeCallable Dataworks_publicClient::createQualityEntityCallable(const CreateQualityEntityRequest &request) const
  385. {
  386. auto task = std::make_shared<std::packaged_task<CreateQualityEntityOutcome()>>(
  387. [this, request]()
  388. {
  389. return this->createQualityEntity(request);
  390. });
  391. asyncExecute(new Runnable([task]() { (*task)(); }));
  392. return task->get_future();
  393. }
  394. Dataworks_publicClient::CreateQualityFollowerOutcome Dataworks_publicClient::createQualityFollower(const CreateQualityFollowerRequest &request) const
  395. {
  396. auto endpointOutcome = endpointProvider_->getEndpoint();
  397. if (!endpointOutcome.isSuccess())
  398. return CreateQualityFollowerOutcome(endpointOutcome.error());
  399. auto outcome = makeRequest(endpointOutcome.result(), request);
  400. if (outcome.isSuccess())
  401. return CreateQualityFollowerOutcome(CreateQualityFollowerResult(outcome.result()));
  402. else
  403. return CreateQualityFollowerOutcome(outcome.error());
  404. }
  405. void Dataworks_publicClient::createQualityFollowerAsync(const CreateQualityFollowerRequest& request, const CreateQualityFollowerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  406. {
  407. auto fn = [this, request, handler, context]()
  408. {
  409. handler(this, request, createQualityFollower(request), context);
  410. };
  411. asyncExecute(new Runnable(fn));
  412. }
  413. Dataworks_publicClient::CreateQualityFollowerOutcomeCallable Dataworks_publicClient::createQualityFollowerCallable(const CreateQualityFollowerRequest &request) const
  414. {
  415. auto task = std::make_shared<std::packaged_task<CreateQualityFollowerOutcome()>>(
  416. [this, request]()
  417. {
  418. return this->createQualityFollower(request);
  419. });
  420. asyncExecute(new Runnable([task]() { (*task)(); }));
  421. return task->get_future();
  422. }
  423. Dataworks_publicClient::CreateQualityRelativeNodeOutcome Dataworks_publicClient::createQualityRelativeNode(const CreateQualityRelativeNodeRequest &request) const
  424. {
  425. auto endpointOutcome = endpointProvider_->getEndpoint();
  426. if (!endpointOutcome.isSuccess())
  427. return CreateQualityRelativeNodeOutcome(endpointOutcome.error());
  428. auto outcome = makeRequest(endpointOutcome.result(), request);
  429. if (outcome.isSuccess())
  430. return CreateQualityRelativeNodeOutcome(CreateQualityRelativeNodeResult(outcome.result()));
  431. else
  432. return CreateQualityRelativeNodeOutcome(outcome.error());
  433. }
  434. void Dataworks_publicClient::createQualityRelativeNodeAsync(const CreateQualityRelativeNodeRequest& request, const CreateQualityRelativeNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  435. {
  436. auto fn = [this, request, handler, context]()
  437. {
  438. handler(this, request, createQualityRelativeNode(request), context);
  439. };
  440. asyncExecute(new Runnable(fn));
  441. }
  442. Dataworks_publicClient::CreateQualityRelativeNodeOutcomeCallable Dataworks_publicClient::createQualityRelativeNodeCallable(const CreateQualityRelativeNodeRequest &request) const
  443. {
  444. auto task = std::make_shared<std::packaged_task<CreateQualityRelativeNodeOutcome()>>(
  445. [this, request]()
  446. {
  447. return this->createQualityRelativeNode(request);
  448. });
  449. asyncExecute(new Runnable([task]() { (*task)(); }));
  450. return task->get_future();
  451. }
  452. Dataworks_publicClient::CreateQualityRuleOutcome Dataworks_publicClient::createQualityRule(const CreateQualityRuleRequest &request) const
  453. {
  454. auto endpointOutcome = endpointProvider_->getEndpoint();
  455. if (!endpointOutcome.isSuccess())
  456. return CreateQualityRuleOutcome(endpointOutcome.error());
  457. auto outcome = makeRequest(endpointOutcome.result(), request);
  458. if (outcome.isSuccess())
  459. return CreateQualityRuleOutcome(CreateQualityRuleResult(outcome.result()));
  460. else
  461. return CreateQualityRuleOutcome(outcome.error());
  462. }
  463. void Dataworks_publicClient::createQualityRuleAsync(const CreateQualityRuleRequest& request, const CreateQualityRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  464. {
  465. auto fn = [this, request, handler, context]()
  466. {
  467. handler(this, request, createQualityRule(request), context);
  468. };
  469. asyncExecute(new Runnable(fn));
  470. }
  471. Dataworks_publicClient::CreateQualityRuleOutcomeCallable Dataworks_publicClient::createQualityRuleCallable(const CreateQualityRuleRequest &request) const
  472. {
  473. auto task = std::make_shared<std::packaged_task<CreateQualityRuleOutcome()>>(
  474. [this, request]()
  475. {
  476. return this->createQualityRule(request);
  477. });
  478. asyncExecute(new Runnable([task]() { (*task)(); }));
  479. return task->get_future();
  480. }
  481. Dataworks_publicClient::CreateRemindOutcome Dataworks_publicClient::createRemind(const CreateRemindRequest &request) const
  482. {
  483. auto endpointOutcome = endpointProvider_->getEndpoint();
  484. if (!endpointOutcome.isSuccess())
  485. return CreateRemindOutcome(endpointOutcome.error());
  486. auto outcome = makeRequest(endpointOutcome.result(), request);
  487. if (outcome.isSuccess())
  488. return CreateRemindOutcome(CreateRemindResult(outcome.result()));
  489. else
  490. return CreateRemindOutcome(outcome.error());
  491. }
  492. void Dataworks_publicClient::createRemindAsync(const CreateRemindRequest& request, const CreateRemindAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  493. {
  494. auto fn = [this, request, handler, context]()
  495. {
  496. handler(this, request, createRemind(request), context);
  497. };
  498. asyncExecute(new Runnable(fn));
  499. }
  500. Dataworks_publicClient::CreateRemindOutcomeCallable Dataworks_publicClient::createRemindCallable(const CreateRemindRequest &request) const
  501. {
  502. auto task = std::make_shared<std::packaged_task<CreateRemindOutcome()>>(
  503. [this, request]()
  504. {
  505. return this->createRemind(request);
  506. });
  507. asyncExecute(new Runnable([task]() { (*task)(); }));
  508. return task->get_future();
  509. }
  510. Dataworks_publicClient::CreateUdfFileOutcome Dataworks_publicClient::createUdfFile(const CreateUdfFileRequest &request) const
  511. {
  512. auto endpointOutcome = endpointProvider_->getEndpoint();
  513. if (!endpointOutcome.isSuccess())
  514. return CreateUdfFileOutcome(endpointOutcome.error());
  515. auto outcome = makeRequest(endpointOutcome.result(), request);
  516. if (outcome.isSuccess())
  517. return CreateUdfFileOutcome(CreateUdfFileResult(outcome.result()));
  518. else
  519. return CreateUdfFileOutcome(outcome.error());
  520. }
  521. void Dataworks_publicClient::createUdfFileAsync(const CreateUdfFileRequest& request, const CreateUdfFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  522. {
  523. auto fn = [this, request, handler, context]()
  524. {
  525. handler(this, request, createUdfFile(request), context);
  526. };
  527. asyncExecute(new Runnable(fn));
  528. }
  529. Dataworks_publicClient::CreateUdfFileOutcomeCallable Dataworks_publicClient::createUdfFileCallable(const CreateUdfFileRequest &request) const
  530. {
  531. auto task = std::make_shared<std::packaged_task<CreateUdfFileOutcome()>>(
  532. [this, request]()
  533. {
  534. return this->createUdfFile(request);
  535. });
  536. asyncExecute(new Runnable([task]() { (*task)(); }));
  537. return task->get_future();
  538. }
  539. Dataworks_publicClient::DeleteBusinessOutcome Dataworks_publicClient::deleteBusiness(const DeleteBusinessRequest &request) const
  540. {
  541. auto endpointOutcome = endpointProvider_->getEndpoint();
  542. if (!endpointOutcome.isSuccess())
  543. return DeleteBusinessOutcome(endpointOutcome.error());
  544. auto outcome = makeRequest(endpointOutcome.result(), request);
  545. if (outcome.isSuccess())
  546. return DeleteBusinessOutcome(DeleteBusinessResult(outcome.result()));
  547. else
  548. return DeleteBusinessOutcome(outcome.error());
  549. }
  550. void Dataworks_publicClient::deleteBusinessAsync(const DeleteBusinessRequest& request, const DeleteBusinessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  551. {
  552. auto fn = [this, request, handler, context]()
  553. {
  554. handler(this, request, deleteBusiness(request), context);
  555. };
  556. asyncExecute(new Runnable(fn));
  557. }
  558. Dataworks_publicClient::DeleteBusinessOutcomeCallable Dataworks_publicClient::deleteBusinessCallable(const DeleteBusinessRequest &request) const
  559. {
  560. auto task = std::make_shared<std::packaged_task<DeleteBusinessOutcome()>>(
  561. [this, request]()
  562. {
  563. return this->deleteBusiness(request);
  564. });
  565. asyncExecute(new Runnable([task]() { (*task)(); }));
  566. return task->get_future();
  567. }
  568. Dataworks_publicClient::DeleteConnectionOutcome Dataworks_publicClient::deleteConnection(const DeleteConnectionRequest &request) const
  569. {
  570. auto endpointOutcome = endpointProvider_->getEndpoint();
  571. if (!endpointOutcome.isSuccess())
  572. return DeleteConnectionOutcome(endpointOutcome.error());
  573. auto outcome = makeRequest(endpointOutcome.result(), request);
  574. if (outcome.isSuccess())
  575. return DeleteConnectionOutcome(DeleteConnectionResult(outcome.result()));
  576. else
  577. return DeleteConnectionOutcome(outcome.error());
  578. }
  579. void Dataworks_publicClient::deleteConnectionAsync(const DeleteConnectionRequest& request, const DeleteConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  580. {
  581. auto fn = [this, request, handler, context]()
  582. {
  583. handler(this, request, deleteConnection(request), context);
  584. };
  585. asyncExecute(new Runnable(fn));
  586. }
  587. Dataworks_publicClient::DeleteConnectionOutcomeCallable Dataworks_publicClient::deleteConnectionCallable(const DeleteConnectionRequest &request) const
  588. {
  589. auto task = std::make_shared<std::packaged_task<DeleteConnectionOutcome()>>(
  590. [this, request]()
  591. {
  592. return this->deleteConnection(request);
  593. });
  594. asyncExecute(new Runnable([task]() { (*task)(); }));
  595. return task->get_future();
  596. }
  597. Dataworks_publicClient::DeleteDataServiceApiOutcome Dataworks_publicClient::deleteDataServiceApi(const DeleteDataServiceApiRequest &request) const
  598. {
  599. auto endpointOutcome = endpointProvider_->getEndpoint();
  600. if (!endpointOutcome.isSuccess())
  601. return DeleteDataServiceApiOutcome(endpointOutcome.error());
  602. auto outcome = makeRequest(endpointOutcome.result(), request);
  603. if (outcome.isSuccess())
  604. return DeleteDataServiceApiOutcome(DeleteDataServiceApiResult(outcome.result()));
  605. else
  606. return DeleteDataServiceApiOutcome(outcome.error());
  607. }
  608. void Dataworks_publicClient::deleteDataServiceApiAsync(const DeleteDataServiceApiRequest& request, const DeleteDataServiceApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  609. {
  610. auto fn = [this, request, handler, context]()
  611. {
  612. handler(this, request, deleteDataServiceApi(request), context);
  613. };
  614. asyncExecute(new Runnable(fn));
  615. }
  616. Dataworks_publicClient::DeleteDataServiceApiOutcomeCallable Dataworks_publicClient::deleteDataServiceApiCallable(const DeleteDataServiceApiRequest &request) const
  617. {
  618. auto task = std::make_shared<std::packaged_task<DeleteDataServiceApiOutcome()>>(
  619. [this, request]()
  620. {
  621. return this->deleteDataServiceApi(request);
  622. });
  623. asyncExecute(new Runnable([task]() { (*task)(); }));
  624. return task->get_future();
  625. }
  626. Dataworks_publicClient::DeleteFileOutcome Dataworks_publicClient::deleteFile(const DeleteFileRequest &request) const
  627. {
  628. auto endpointOutcome = endpointProvider_->getEndpoint();
  629. if (!endpointOutcome.isSuccess())
  630. return DeleteFileOutcome(endpointOutcome.error());
  631. auto outcome = makeRequest(endpointOutcome.result(), request);
  632. if (outcome.isSuccess())
  633. return DeleteFileOutcome(DeleteFileResult(outcome.result()));
  634. else
  635. return DeleteFileOutcome(outcome.error());
  636. }
  637. void Dataworks_publicClient::deleteFileAsync(const DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  638. {
  639. auto fn = [this, request, handler, context]()
  640. {
  641. handler(this, request, deleteFile(request), context);
  642. };
  643. asyncExecute(new Runnable(fn));
  644. }
  645. Dataworks_publicClient::DeleteFileOutcomeCallable Dataworks_publicClient::deleteFileCallable(const DeleteFileRequest &request) const
  646. {
  647. auto task = std::make_shared<std::packaged_task<DeleteFileOutcome()>>(
  648. [this, request]()
  649. {
  650. return this->deleteFile(request);
  651. });
  652. asyncExecute(new Runnable([task]() { (*task)(); }));
  653. return task->get_future();
  654. }
  655. Dataworks_publicClient::DeleteFolderOutcome Dataworks_publicClient::deleteFolder(const DeleteFolderRequest &request) const
  656. {
  657. auto endpointOutcome = endpointProvider_->getEndpoint();
  658. if (!endpointOutcome.isSuccess())
  659. return DeleteFolderOutcome(endpointOutcome.error());
  660. auto outcome = makeRequest(endpointOutcome.result(), request);
  661. if (outcome.isSuccess())
  662. return DeleteFolderOutcome(DeleteFolderResult(outcome.result()));
  663. else
  664. return DeleteFolderOutcome(outcome.error());
  665. }
  666. void Dataworks_publicClient::deleteFolderAsync(const DeleteFolderRequest& request, const DeleteFolderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  667. {
  668. auto fn = [this, request, handler, context]()
  669. {
  670. handler(this, request, deleteFolder(request), context);
  671. };
  672. asyncExecute(new Runnable(fn));
  673. }
  674. Dataworks_publicClient::DeleteFolderOutcomeCallable Dataworks_publicClient::deleteFolderCallable(const DeleteFolderRequest &request) const
  675. {
  676. auto task = std::make_shared<std::packaged_task<DeleteFolderOutcome()>>(
  677. [this, request]()
  678. {
  679. return this->deleteFolder(request);
  680. });
  681. asyncExecute(new Runnable([task]() { (*task)(); }));
  682. return task->get_future();
  683. }
  684. Dataworks_publicClient::DeleteFromMetaCategoryOutcome Dataworks_publicClient::deleteFromMetaCategory(const DeleteFromMetaCategoryRequest &request) const
  685. {
  686. auto endpointOutcome = endpointProvider_->getEndpoint();
  687. if (!endpointOutcome.isSuccess())
  688. return DeleteFromMetaCategoryOutcome(endpointOutcome.error());
  689. auto outcome = makeRequest(endpointOutcome.result(), request);
  690. if (outcome.isSuccess())
  691. return DeleteFromMetaCategoryOutcome(DeleteFromMetaCategoryResult(outcome.result()));
  692. else
  693. return DeleteFromMetaCategoryOutcome(outcome.error());
  694. }
  695. void Dataworks_publicClient::deleteFromMetaCategoryAsync(const DeleteFromMetaCategoryRequest& request, const DeleteFromMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  696. {
  697. auto fn = [this, request, handler, context]()
  698. {
  699. handler(this, request, deleteFromMetaCategory(request), context);
  700. };
  701. asyncExecute(new Runnable(fn));
  702. }
  703. Dataworks_publicClient::DeleteFromMetaCategoryOutcomeCallable Dataworks_publicClient::deleteFromMetaCategoryCallable(const DeleteFromMetaCategoryRequest &request) const
  704. {
  705. auto task = std::make_shared<std::packaged_task<DeleteFromMetaCategoryOutcome()>>(
  706. [this, request]()
  707. {
  708. return this->deleteFromMetaCategory(request);
  709. });
  710. asyncExecute(new Runnable([task]() { (*task)(); }));
  711. return task->get_future();
  712. }
  713. Dataworks_publicClient::DeleteMetaCategoryOutcome Dataworks_publicClient::deleteMetaCategory(const DeleteMetaCategoryRequest &request) const
  714. {
  715. auto endpointOutcome = endpointProvider_->getEndpoint();
  716. if (!endpointOutcome.isSuccess())
  717. return DeleteMetaCategoryOutcome(endpointOutcome.error());
  718. auto outcome = makeRequest(endpointOutcome.result(), request);
  719. if (outcome.isSuccess())
  720. return DeleteMetaCategoryOutcome(DeleteMetaCategoryResult(outcome.result()));
  721. else
  722. return DeleteMetaCategoryOutcome(outcome.error());
  723. }
  724. void Dataworks_publicClient::deleteMetaCategoryAsync(const DeleteMetaCategoryRequest& request, const DeleteMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  725. {
  726. auto fn = [this, request, handler, context]()
  727. {
  728. handler(this, request, deleteMetaCategory(request), context);
  729. };
  730. asyncExecute(new Runnable(fn));
  731. }
  732. Dataworks_publicClient::DeleteMetaCategoryOutcomeCallable Dataworks_publicClient::deleteMetaCategoryCallable(const DeleteMetaCategoryRequest &request) const
  733. {
  734. auto task = std::make_shared<std::packaged_task<DeleteMetaCategoryOutcome()>>(
  735. [this, request]()
  736. {
  737. return this->deleteMetaCategory(request);
  738. });
  739. asyncExecute(new Runnable([task]() { (*task)(); }));
  740. return task->get_future();
  741. }
  742. Dataworks_publicClient::DeleteQualityEntityOutcome Dataworks_publicClient::deleteQualityEntity(const DeleteQualityEntityRequest &request) const
  743. {
  744. auto endpointOutcome = endpointProvider_->getEndpoint();
  745. if (!endpointOutcome.isSuccess())
  746. return DeleteQualityEntityOutcome(endpointOutcome.error());
  747. auto outcome = makeRequest(endpointOutcome.result(), request);
  748. if (outcome.isSuccess())
  749. return DeleteQualityEntityOutcome(DeleteQualityEntityResult(outcome.result()));
  750. else
  751. return DeleteQualityEntityOutcome(outcome.error());
  752. }
  753. void Dataworks_publicClient::deleteQualityEntityAsync(const DeleteQualityEntityRequest& request, const DeleteQualityEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  754. {
  755. auto fn = [this, request, handler, context]()
  756. {
  757. handler(this, request, deleteQualityEntity(request), context);
  758. };
  759. asyncExecute(new Runnable(fn));
  760. }
  761. Dataworks_publicClient::DeleteQualityEntityOutcomeCallable Dataworks_publicClient::deleteQualityEntityCallable(const DeleteQualityEntityRequest &request) const
  762. {
  763. auto task = std::make_shared<std::packaged_task<DeleteQualityEntityOutcome()>>(
  764. [this, request]()
  765. {
  766. return this->deleteQualityEntity(request);
  767. });
  768. asyncExecute(new Runnable([task]() { (*task)(); }));
  769. return task->get_future();
  770. }
  771. Dataworks_publicClient::DeleteQualityFollowerOutcome Dataworks_publicClient::deleteQualityFollower(const DeleteQualityFollowerRequest &request) const
  772. {
  773. auto endpointOutcome = endpointProvider_->getEndpoint();
  774. if (!endpointOutcome.isSuccess())
  775. return DeleteQualityFollowerOutcome(endpointOutcome.error());
  776. auto outcome = makeRequest(endpointOutcome.result(), request);
  777. if (outcome.isSuccess())
  778. return DeleteQualityFollowerOutcome(DeleteQualityFollowerResult(outcome.result()));
  779. else
  780. return DeleteQualityFollowerOutcome(outcome.error());
  781. }
  782. void Dataworks_publicClient::deleteQualityFollowerAsync(const DeleteQualityFollowerRequest& request, const DeleteQualityFollowerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  783. {
  784. auto fn = [this, request, handler, context]()
  785. {
  786. handler(this, request, deleteQualityFollower(request), context);
  787. };
  788. asyncExecute(new Runnable(fn));
  789. }
  790. Dataworks_publicClient::DeleteQualityFollowerOutcomeCallable Dataworks_publicClient::deleteQualityFollowerCallable(const DeleteQualityFollowerRequest &request) const
  791. {
  792. auto task = std::make_shared<std::packaged_task<DeleteQualityFollowerOutcome()>>(
  793. [this, request]()
  794. {
  795. return this->deleteQualityFollower(request);
  796. });
  797. asyncExecute(new Runnable([task]() { (*task)(); }));
  798. return task->get_future();
  799. }
  800. Dataworks_publicClient::DeleteQualityRelativeNodeOutcome Dataworks_publicClient::deleteQualityRelativeNode(const DeleteQualityRelativeNodeRequest &request) const
  801. {
  802. auto endpointOutcome = endpointProvider_->getEndpoint();
  803. if (!endpointOutcome.isSuccess())
  804. return DeleteQualityRelativeNodeOutcome(endpointOutcome.error());
  805. auto outcome = makeRequest(endpointOutcome.result(), request);
  806. if (outcome.isSuccess())
  807. return DeleteQualityRelativeNodeOutcome(DeleteQualityRelativeNodeResult(outcome.result()));
  808. else
  809. return DeleteQualityRelativeNodeOutcome(outcome.error());
  810. }
  811. void Dataworks_publicClient::deleteQualityRelativeNodeAsync(const DeleteQualityRelativeNodeRequest& request, const DeleteQualityRelativeNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  812. {
  813. auto fn = [this, request, handler, context]()
  814. {
  815. handler(this, request, deleteQualityRelativeNode(request), context);
  816. };
  817. asyncExecute(new Runnable(fn));
  818. }
  819. Dataworks_publicClient::DeleteQualityRelativeNodeOutcomeCallable Dataworks_publicClient::deleteQualityRelativeNodeCallable(const DeleteQualityRelativeNodeRequest &request) const
  820. {
  821. auto task = std::make_shared<std::packaged_task<DeleteQualityRelativeNodeOutcome()>>(
  822. [this, request]()
  823. {
  824. return this->deleteQualityRelativeNode(request);
  825. });
  826. asyncExecute(new Runnable([task]() { (*task)(); }));
  827. return task->get_future();
  828. }
  829. Dataworks_publicClient::DeleteQualityRuleOutcome Dataworks_publicClient::deleteQualityRule(const DeleteQualityRuleRequest &request) const
  830. {
  831. auto endpointOutcome = endpointProvider_->getEndpoint();
  832. if (!endpointOutcome.isSuccess())
  833. return DeleteQualityRuleOutcome(endpointOutcome.error());
  834. auto outcome = makeRequest(endpointOutcome.result(), request);
  835. if (outcome.isSuccess())
  836. return DeleteQualityRuleOutcome(DeleteQualityRuleResult(outcome.result()));
  837. else
  838. return DeleteQualityRuleOutcome(outcome.error());
  839. }
  840. void Dataworks_publicClient::deleteQualityRuleAsync(const DeleteQualityRuleRequest& request, const DeleteQualityRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  841. {
  842. auto fn = [this, request, handler, context]()
  843. {
  844. handler(this, request, deleteQualityRule(request), context);
  845. };
  846. asyncExecute(new Runnable(fn));
  847. }
  848. Dataworks_publicClient::DeleteQualityRuleOutcomeCallable Dataworks_publicClient::deleteQualityRuleCallable(const DeleteQualityRuleRequest &request) const
  849. {
  850. auto task = std::make_shared<std::packaged_task<DeleteQualityRuleOutcome()>>(
  851. [this, request]()
  852. {
  853. return this->deleteQualityRule(request);
  854. });
  855. asyncExecute(new Runnable([task]() { (*task)(); }));
  856. return task->get_future();
  857. }
  858. Dataworks_publicClient::DeleteRemindOutcome Dataworks_publicClient::deleteRemind(const DeleteRemindRequest &request) const
  859. {
  860. auto endpointOutcome = endpointProvider_->getEndpoint();
  861. if (!endpointOutcome.isSuccess())
  862. return DeleteRemindOutcome(endpointOutcome.error());
  863. auto outcome = makeRequest(endpointOutcome.result(), request);
  864. if (outcome.isSuccess())
  865. return DeleteRemindOutcome(DeleteRemindResult(outcome.result()));
  866. else
  867. return DeleteRemindOutcome(outcome.error());
  868. }
  869. void Dataworks_publicClient::deleteRemindAsync(const DeleteRemindRequest& request, const DeleteRemindAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  870. {
  871. auto fn = [this, request, handler, context]()
  872. {
  873. handler(this, request, deleteRemind(request), context);
  874. };
  875. asyncExecute(new Runnable(fn));
  876. }
  877. Dataworks_publicClient::DeleteRemindOutcomeCallable Dataworks_publicClient::deleteRemindCallable(const DeleteRemindRequest &request) const
  878. {
  879. auto task = std::make_shared<std::packaged_task<DeleteRemindOutcome()>>(
  880. [this, request]()
  881. {
  882. return this->deleteRemind(request);
  883. });
  884. asyncExecute(new Runnable([task]() { (*task)(); }));
  885. return task->get_future();
  886. }
  887. Dataworks_publicClient::DeployFileOutcome Dataworks_publicClient::deployFile(const DeployFileRequest &request) const
  888. {
  889. auto endpointOutcome = endpointProvider_->getEndpoint();
  890. if (!endpointOutcome.isSuccess())
  891. return DeployFileOutcome(endpointOutcome.error());
  892. auto outcome = makeRequest(endpointOutcome.result(), request);
  893. if (outcome.isSuccess())
  894. return DeployFileOutcome(DeployFileResult(outcome.result()));
  895. else
  896. return DeployFileOutcome(outcome.error());
  897. }
  898. void Dataworks_publicClient::deployFileAsync(const DeployFileRequest& request, const DeployFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  899. {
  900. auto fn = [this, request, handler, context]()
  901. {
  902. handler(this, request, deployFile(request), context);
  903. };
  904. asyncExecute(new Runnable(fn));
  905. }
  906. Dataworks_publicClient::DeployFileOutcomeCallable Dataworks_publicClient::deployFileCallable(const DeployFileRequest &request) const
  907. {
  908. auto task = std::make_shared<std::packaged_task<DeployFileOutcome()>>(
  909. [this, request]()
  910. {
  911. return this->deployFile(request);
  912. });
  913. asyncExecute(new Runnable([task]() { (*task)(); }));
  914. return task->get_future();
  915. }
  916. Dataworks_publicClient::EstablishRelationTableToBusinessOutcome Dataworks_publicClient::establishRelationTableToBusiness(const EstablishRelationTableToBusinessRequest &request) const
  917. {
  918. auto endpointOutcome = endpointProvider_->getEndpoint();
  919. if (!endpointOutcome.isSuccess())
  920. return EstablishRelationTableToBusinessOutcome(endpointOutcome.error());
  921. auto outcome = makeRequest(endpointOutcome.result(), request);
  922. if (outcome.isSuccess())
  923. return EstablishRelationTableToBusinessOutcome(EstablishRelationTableToBusinessResult(outcome.result()));
  924. else
  925. return EstablishRelationTableToBusinessOutcome(outcome.error());
  926. }
  927. void Dataworks_publicClient::establishRelationTableToBusinessAsync(const EstablishRelationTableToBusinessRequest& request, const EstablishRelationTableToBusinessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  928. {
  929. auto fn = [this, request, handler, context]()
  930. {
  931. handler(this, request, establishRelationTableToBusiness(request), context);
  932. };
  933. asyncExecute(new Runnable(fn));
  934. }
  935. Dataworks_publicClient::EstablishRelationTableToBusinessOutcomeCallable Dataworks_publicClient::establishRelationTableToBusinessCallable(const EstablishRelationTableToBusinessRequest &request) const
  936. {
  937. auto task = std::make_shared<std::packaged_task<EstablishRelationTableToBusinessOutcome()>>(
  938. [this, request]()
  939. {
  940. return this->establishRelationTableToBusiness(request);
  941. });
  942. asyncExecute(new Runnable([task]() { (*task)(); }));
  943. return task->get_future();
  944. }
  945. Dataworks_publicClient::GetBaselineConfigOutcome Dataworks_publicClient::getBaselineConfig(const GetBaselineConfigRequest &request) const
  946. {
  947. auto endpointOutcome = endpointProvider_->getEndpoint();
  948. if (!endpointOutcome.isSuccess())
  949. return GetBaselineConfigOutcome(endpointOutcome.error());
  950. auto outcome = makeRequest(endpointOutcome.result(), request);
  951. if (outcome.isSuccess())
  952. return GetBaselineConfigOutcome(GetBaselineConfigResult(outcome.result()));
  953. else
  954. return GetBaselineConfigOutcome(outcome.error());
  955. }
  956. void Dataworks_publicClient::getBaselineConfigAsync(const GetBaselineConfigRequest& request, const GetBaselineConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  957. {
  958. auto fn = [this, request, handler, context]()
  959. {
  960. handler(this, request, getBaselineConfig(request), context);
  961. };
  962. asyncExecute(new Runnable(fn));
  963. }
  964. Dataworks_publicClient::GetBaselineConfigOutcomeCallable Dataworks_publicClient::getBaselineConfigCallable(const GetBaselineConfigRequest &request) const
  965. {
  966. auto task = std::make_shared<std::packaged_task<GetBaselineConfigOutcome()>>(
  967. [this, request]()
  968. {
  969. return this->getBaselineConfig(request);
  970. });
  971. asyncExecute(new Runnable([task]() { (*task)(); }));
  972. return task->get_future();
  973. }
  974. Dataworks_publicClient::GetBaselineKeyPathOutcome Dataworks_publicClient::getBaselineKeyPath(const GetBaselineKeyPathRequest &request) const
  975. {
  976. auto endpointOutcome = endpointProvider_->getEndpoint();
  977. if (!endpointOutcome.isSuccess())
  978. return GetBaselineKeyPathOutcome(endpointOutcome.error());
  979. auto outcome = makeRequest(endpointOutcome.result(), request);
  980. if (outcome.isSuccess())
  981. return GetBaselineKeyPathOutcome(GetBaselineKeyPathResult(outcome.result()));
  982. else
  983. return GetBaselineKeyPathOutcome(outcome.error());
  984. }
  985. void Dataworks_publicClient::getBaselineKeyPathAsync(const GetBaselineKeyPathRequest& request, const GetBaselineKeyPathAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  986. {
  987. auto fn = [this, request, handler, context]()
  988. {
  989. handler(this, request, getBaselineKeyPath(request), context);
  990. };
  991. asyncExecute(new Runnable(fn));
  992. }
  993. Dataworks_publicClient::GetBaselineKeyPathOutcomeCallable Dataworks_publicClient::getBaselineKeyPathCallable(const GetBaselineKeyPathRequest &request) const
  994. {
  995. auto task = std::make_shared<std::packaged_task<GetBaselineKeyPathOutcome()>>(
  996. [this, request]()
  997. {
  998. return this->getBaselineKeyPath(request);
  999. });
  1000. asyncExecute(new Runnable([task]() { (*task)(); }));
  1001. return task->get_future();
  1002. }
  1003. Dataworks_publicClient::GetBaselineStatusOutcome Dataworks_publicClient::getBaselineStatus(const GetBaselineStatusRequest &request) const
  1004. {
  1005. auto endpointOutcome = endpointProvider_->getEndpoint();
  1006. if (!endpointOutcome.isSuccess())
  1007. return GetBaselineStatusOutcome(endpointOutcome.error());
  1008. auto outcome = makeRequest(endpointOutcome.result(), request);
  1009. if (outcome.isSuccess())
  1010. return GetBaselineStatusOutcome(GetBaselineStatusResult(outcome.result()));
  1011. else
  1012. return GetBaselineStatusOutcome(outcome.error());
  1013. }
  1014. void Dataworks_publicClient::getBaselineStatusAsync(const GetBaselineStatusRequest& request, const GetBaselineStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1015. {
  1016. auto fn = [this, request, handler, context]()
  1017. {
  1018. handler(this, request, getBaselineStatus(request), context);
  1019. };
  1020. asyncExecute(new Runnable(fn));
  1021. }
  1022. Dataworks_publicClient::GetBaselineStatusOutcomeCallable Dataworks_publicClient::getBaselineStatusCallable(const GetBaselineStatusRequest &request) const
  1023. {
  1024. auto task = std::make_shared<std::packaged_task<GetBaselineStatusOutcome()>>(
  1025. [this, request]()
  1026. {
  1027. return this->getBaselineStatus(request);
  1028. });
  1029. asyncExecute(new Runnable([task]() { (*task)(); }));
  1030. return task->get_future();
  1031. }
  1032. Dataworks_publicClient::GetBusinessOutcome Dataworks_publicClient::getBusiness(const GetBusinessRequest &request) const
  1033. {
  1034. auto endpointOutcome = endpointProvider_->getEndpoint();
  1035. if (!endpointOutcome.isSuccess())
  1036. return GetBusinessOutcome(endpointOutcome.error());
  1037. auto outcome = makeRequest(endpointOutcome.result(), request);
  1038. if (outcome.isSuccess())
  1039. return GetBusinessOutcome(GetBusinessResult(outcome.result()));
  1040. else
  1041. return GetBusinessOutcome(outcome.error());
  1042. }
  1043. void Dataworks_publicClient::getBusinessAsync(const GetBusinessRequest& request, const GetBusinessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1044. {
  1045. auto fn = [this, request, handler, context]()
  1046. {
  1047. handler(this, request, getBusiness(request), context);
  1048. };
  1049. asyncExecute(new Runnable(fn));
  1050. }
  1051. Dataworks_publicClient::GetBusinessOutcomeCallable Dataworks_publicClient::getBusinessCallable(const GetBusinessRequest &request) const
  1052. {
  1053. auto task = std::make_shared<std::packaged_task<GetBusinessOutcome()>>(
  1054. [this, request]()
  1055. {
  1056. return this->getBusiness(request);
  1057. });
  1058. asyncExecute(new Runnable([task]() { (*task)(); }));
  1059. return task->get_future();
  1060. }
  1061. Dataworks_publicClient::GetDataServiceApiOutcome Dataworks_publicClient::getDataServiceApi(const GetDataServiceApiRequest &request) const
  1062. {
  1063. auto endpointOutcome = endpointProvider_->getEndpoint();
  1064. if (!endpointOutcome.isSuccess())
  1065. return GetDataServiceApiOutcome(endpointOutcome.error());
  1066. auto outcome = makeRequest(endpointOutcome.result(), request);
  1067. if (outcome.isSuccess())
  1068. return GetDataServiceApiOutcome(GetDataServiceApiResult(outcome.result()));
  1069. else
  1070. return GetDataServiceApiOutcome(outcome.error());
  1071. }
  1072. void Dataworks_publicClient::getDataServiceApiAsync(const GetDataServiceApiRequest& request, const GetDataServiceApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1073. {
  1074. auto fn = [this, request, handler, context]()
  1075. {
  1076. handler(this, request, getDataServiceApi(request), context);
  1077. };
  1078. asyncExecute(new Runnable(fn));
  1079. }
  1080. Dataworks_publicClient::GetDataServiceApiOutcomeCallable Dataworks_publicClient::getDataServiceApiCallable(const GetDataServiceApiRequest &request) const
  1081. {
  1082. auto task = std::make_shared<std::packaged_task<GetDataServiceApiOutcome()>>(
  1083. [this, request]()
  1084. {
  1085. return this->getDataServiceApi(request);
  1086. });
  1087. asyncExecute(new Runnable([task]() { (*task)(); }));
  1088. return task->get_future();
  1089. }
  1090. Dataworks_publicClient::GetDataServiceApplicationOutcome Dataworks_publicClient::getDataServiceApplication(const GetDataServiceApplicationRequest &request) const
  1091. {
  1092. auto endpointOutcome = endpointProvider_->getEndpoint();
  1093. if (!endpointOutcome.isSuccess())
  1094. return GetDataServiceApplicationOutcome(endpointOutcome.error());
  1095. auto outcome = makeRequest(endpointOutcome.result(), request);
  1096. if (outcome.isSuccess())
  1097. return GetDataServiceApplicationOutcome(GetDataServiceApplicationResult(outcome.result()));
  1098. else
  1099. return GetDataServiceApplicationOutcome(outcome.error());
  1100. }
  1101. void Dataworks_publicClient::getDataServiceApplicationAsync(const GetDataServiceApplicationRequest& request, const GetDataServiceApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1102. {
  1103. auto fn = [this, request, handler, context]()
  1104. {
  1105. handler(this, request, getDataServiceApplication(request), context);
  1106. };
  1107. asyncExecute(new Runnable(fn));
  1108. }
  1109. Dataworks_publicClient::GetDataServiceApplicationOutcomeCallable Dataworks_publicClient::getDataServiceApplicationCallable(const GetDataServiceApplicationRequest &request) const
  1110. {
  1111. auto task = std::make_shared<std::packaged_task<GetDataServiceApplicationOutcome()>>(
  1112. [this, request]()
  1113. {
  1114. return this->getDataServiceApplication(request);
  1115. });
  1116. asyncExecute(new Runnable([task]() { (*task)(); }));
  1117. return task->get_future();
  1118. }
  1119. Dataworks_publicClient::GetDataServicePublishedApiOutcome Dataworks_publicClient::getDataServicePublishedApi(const GetDataServicePublishedApiRequest &request) const
  1120. {
  1121. auto endpointOutcome = endpointProvider_->getEndpoint();
  1122. if (!endpointOutcome.isSuccess())
  1123. return GetDataServicePublishedApiOutcome(endpointOutcome.error());
  1124. auto outcome = makeRequest(endpointOutcome.result(), request);
  1125. if (outcome.isSuccess())
  1126. return GetDataServicePublishedApiOutcome(GetDataServicePublishedApiResult(outcome.result()));
  1127. else
  1128. return GetDataServicePublishedApiOutcome(outcome.error());
  1129. }
  1130. void Dataworks_publicClient::getDataServicePublishedApiAsync(const GetDataServicePublishedApiRequest& request, const GetDataServicePublishedApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1131. {
  1132. auto fn = [this, request, handler, context]()
  1133. {
  1134. handler(this, request, getDataServicePublishedApi(request), context);
  1135. };
  1136. asyncExecute(new Runnable(fn));
  1137. }
  1138. Dataworks_publicClient::GetDataServicePublishedApiOutcomeCallable Dataworks_publicClient::getDataServicePublishedApiCallable(const GetDataServicePublishedApiRequest &request) const
  1139. {
  1140. auto task = std::make_shared<std::packaged_task<GetDataServicePublishedApiOutcome()>>(
  1141. [this, request]()
  1142. {
  1143. return this->getDataServicePublishedApi(request);
  1144. });
  1145. asyncExecute(new Runnable([task]() { (*task)(); }));
  1146. return task->get_future();
  1147. }
  1148. Dataworks_publicClient::GetDeploymentOutcome Dataworks_publicClient::getDeployment(const GetDeploymentRequest &request) const
  1149. {
  1150. auto endpointOutcome = endpointProvider_->getEndpoint();
  1151. if (!endpointOutcome.isSuccess())
  1152. return GetDeploymentOutcome(endpointOutcome.error());
  1153. auto outcome = makeRequest(endpointOutcome.result(), request);
  1154. if (outcome.isSuccess())
  1155. return GetDeploymentOutcome(GetDeploymentResult(outcome.result()));
  1156. else
  1157. return GetDeploymentOutcome(outcome.error());
  1158. }
  1159. void Dataworks_publicClient::getDeploymentAsync(const GetDeploymentRequest& request, const GetDeploymentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1160. {
  1161. auto fn = [this, request, handler, context]()
  1162. {
  1163. handler(this, request, getDeployment(request), context);
  1164. };
  1165. asyncExecute(new Runnable(fn));
  1166. }
  1167. Dataworks_publicClient::GetDeploymentOutcomeCallable Dataworks_publicClient::getDeploymentCallable(const GetDeploymentRequest &request) const
  1168. {
  1169. auto task = std::make_shared<std::packaged_task<GetDeploymentOutcome()>>(
  1170. [this, request]()
  1171. {
  1172. return this->getDeployment(request);
  1173. });
  1174. asyncExecute(new Runnable([task]() { (*task)(); }));
  1175. return task->get_future();
  1176. }
  1177. Dataworks_publicClient::GetFileOutcome Dataworks_publicClient::getFile(const GetFileRequest &request) const
  1178. {
  1179. auto endpointOutcome = endpointProvider_->getEndpoint();
  1180. if (!endpointOutcome.isSuccess())
  1181. return GetFileOutcome(endpointOutcome.error());
  1182. auto outcome = makeRequest(endpointOutcome.result(), request);
  1183. if (outcome.isSuccess())
  1184. return GetFileOutcome(GetFileResult(outcome.result()));
  1185. else
  1186. return GetFileOutcome(outcome.error());
  1187. }
  1188. void Dataworks_publicClient::getFileAsync(const GetFileRequest& request, const GetFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1189. {
  1190. auto fn = [this, request, handler, context]()
  1191. {
  1192. handler(this, request, getFile(request), context);
  1193. };
  1194. asyncExecute(new Runnable(fn));
  1195. }
  1196. Dataworks_publicClient::GetFileOutcomeCallable Dataworks_publicClient::getFileCallable(const GetFileRequest &request) const
  1197. {
  1198. auto task = std::make_shared<std::packaged_task<GetFileOutcome()>>(
  1199. [this, request]()
  1200. {
  1201. return this->getFile(request);
  1202. });
  1203. asyncExecute(new Runnable([task]() { (*task)(); }));
  1204. return task->get_future();
  1205. }
  1206. Dataworks_publicClient::GetFileVersionOutcome Dataworks_publicClient::getFileVersion(const GetFileVersionRequest &request) const
  1207. {
  1208. auto endpointOutcome = endpointProvider_->getEndpoint();
  1209. if (!endpointOutcome.isSuccess())
  1210. return GetFileVersionOutcome(endpointOutcome.error());
  1211. auto outcome = makeRequest(endpointOutcome.result(), request);
  1212. if (outcome.isSuccess())
  1213. return GetFileVersionOutcome(GetFileVersionResult(outcome.result()));
  1214. else
  1215. return GetFileVersionOutcome(outcome.error());
  1216. }
  1217. void Dataworks_publicClient::getFileVersionAsync(const GetFileVersionRequest& request, const GetFileVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1218. {
  1219. auto fn = [this, request, handler, context]()
  1220. {
  1221. handler(this, request, getFileVersion(request), context);
  1222. };
  1223. asyncExecute(new Runnable(fn));
  1224. }
  1225. Dataworks_publicClient::GetFileVersionOutcomeCallable Dataworks_publicClient::getFileVersionCallable(const GetFileVersionRequest &request) const
  1226. {
  1227. auto task = std::make_shared<std::packaged_task<GetFileVersionOutcome()>>(
  1228. [this, request]()
  1229. {
  1230. return this->getFileVersion(request);
  1231. });
  1232. asyncExecute(new Runnable([task]() { (*task)(); }));
  1233. return task->get_future();
  1234. }
  1235. Dataworks_publicClient::GetFolderOutcome Dataworks_publicClient::getFolder(const GetFolderRequest &request) const
  1236. {
  1237. auto endpointOutcome = endpointProvider_->getEndpoint();
  1238. if (!endpointOutcome.isSuccess())
  1239. return GetFolderOutcome(endpointOutcome.error());
  1240. auto outcome = makeRequest(endpointOutcome.result(), request);
  1241. if (outcome.isSuccess())
  1242. return GetFolderOutcome(GetFolderResult(outcome.result()));
  1243. else
  1244. return GetFolderOutcome(outcome.error());
  1245. }
  1246. void Dataworks_publicClient::getFolderAsync(const GetFolderRequest& request, const GetFolderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1247. {
  1248. auto fn = [this, request, handler, context]()
  1249. {
  1250. handler(this, request, getFolder(request), context);
  1251. };
  1252. asyncExecute(new Runnable(fn));
  1253. }
  1254. Dataworks_publicClient::GetFolderOutcomeCallable Dataworks_publicClient::getFolderCallable(const GetFolderRequest &request) const
  1255. {
  1256. auto task = std::make_shared<std::packaged_task<GetFolderOutcome()>>(
  1257. [this, request]()
  1258. {
  1259. return this->getFolder(request);
  1260. });
  1261. asyncExecute(new Runnable([task]() { (*task)(); }));
  1262. return task->get_future();
  1263. }
  1264. Dataworks_publicClient::GetInstanceOutcome Dataworks_publicClient::getInstance(const GetInstanceRequest &request) const
  1265. {
  1266. auto endpointOutcome = endpointProvider_->getEndpoint();
  1267. if (!endpointOutcome.isSuccess())
  1268. return GetInstanceOutcome(endpointOutcome.error());
  1269. auto outcome = makeRequest(endpointOutcome.result(), request);
  1270. if (outcome.isSuccess())
  1271. return GetInstanceOutcome(GetInstanceResult(outcome.result()));
  1272. else
  1273. return GetInstanceOutcome(outcome.error());
  1274. }
  1275. void Dataworks_publicClient::getInstanceAsync(const GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1276. {
  1277. auto fn = [this, request, handler, context]()
  1278. {
  1279. handler(this, request, getInstance(request), context);
  1280. };
  1281. asyncExecute(new Runnable(fn));
  1282. }
  1283. Dataworks_publicClient::GetInstanceOutcomeCallable Dataworks_publicClient::getInstanceCallable(const GetInstanceRequest &request) const
  1284. {
  1285. auto task = std::make_shared<std::packaged_task<GetInstanceOutcome()>>(
  1286. [this, request]()
  1287. {
  1288. return this->getInstance(request);
  1289. });
  1290. asyncExecute(new Runnable([task]() { (*task)(); }));
  1291. return task->get_future();
  1292. }
  1293. Dataworks_publicClient::GetInstanceLogOutcome Dataworks_publicClient::getInstanceLog(const GetInstanceLogRequest &request) const
  1294. {
  1295. auto endpointOutcome = endpointProvider_->getEndpoint();
  1296. if (!endpointOutcome.isSuccess())
  1297. return GetInstanceLogOutcome(endpointOutcome.error());
  1298. auto outcome = makeRequest(endpointOutcome.result(), request);
  1299. if (outcome.isSuccess())
  1300. return GetInstanceLogOutcome(GetInstanceLogResult(outcome.result()));
  1301. else
  1302. return GetInstanceLogOutcome(outcome.error());
  1303. }
  1304. void Dataworks_publicClient::getInstanceLogAsync(const GetInstanceLogRequest& request, const GetInstanceLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1305. {
  1306. auto fn = [this, request, handler, context]()
  1307. {
  1308. handler(this, request, getInstanceLog(request), context);
  1309. };
  1310. asyncExecute(new Runnable(fn));
  1311. }
  1312. Dataworks_publicClient::GetInstanceLogOutcomeCallable Dataworks_publicClient::getInstanceLogCallable(const GetInstanceLogRequest &request) const
  1313. {
  1314. auto task = std::make_shared<std::packaged_task<GetInstanceLogOutcome()>>(
  1315. [this, request]()
  1316. {
  1317. return this->getInstanceLog(request);
  1318. });
  1319. asyncExecute(new Runnable([task]() { (*task)(); }));
  1320. return task->get_future();
  1321. }
  1322. Dataworks_publicClient::GetMetaCategoryOutcome Dataworks_publicClient::getMetaCategory(const GetMetaCategoryRequest &request) const
  1323. {
  1324. auto endpointOutcome = endpointProvider_->getEndpoint();
  1325. if (!endpointOutcome.isSuccess())
  1326. return GetMetaCategoryOutcome(endpointOutcome.error());
  1327. auto outcome = makeRequest(endpointOutcome.result(), request);
  1328. if (outcome.isSuccess())
  1329. return GetMetaCategoryOutcome(GetMetaCategoryResult(outcome.result()));
  1330. else
  1331. return GetMetaCategoryOutcome(outcome.error());
  1332. }
  1333. void Dataworks_publicClient::getMetaCategoryAsync(const GetMetaCategoryRequest& request, const GetMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1334. {
  1335. auto fn = [this, request, handler, context]()
  1336. {
  1337. handler(this, request, getMetaCategory(request), context);
  1338. };
  1339. asyncExecute(new Runnable(fn));
  1340. }
  1341. Dataworks_publicClient::GetMetaCategoryOutcomeCallable Dataworks_publicClient::getMetaCategoryCallable(const GetMetaCategoryRequest &request) const
  1342. {
  1343. auto task = std::make_shared<std::packaged_task<GetMetaCategoryOutcome()>>(
  1344. [this, request]()
  1345. {
  1346. return this->getMetaCategory(request);
  1347. });
  1348. asyncExecute(new Runnable([task]() { (*task)(); }));
  1349. return task->get_future();
  1350. }
  1351. Dataworks_publicClient::GetMetaColumnLineageOutcome Dataworks_publicClient::getMetaColumnLineage(const GetMetaColumnLineageRequest &request) const
  1352. {
  1353. auto endpointOutcome = endpointProvider_->getEndpoint();
  1354. if (!endpointOutcome.isSuccess())
  1355. return GetMetaColumnLineageOutcome(endpointOutcome.error());
  1356. auto outcome = makeRequest(endpointOutcome.result(), request);
  1357. if (outcome.isSuccess())
  1358. return GetMetaColumnLineageOutcome(GetMetaColumnLineageResult(outcome.result()));
  1359. else
  1360. return GetMetaColumnLineageOutcome(outcome.error());
  1361. }
  1362. void Dataworks_publicClient::getMetaColumnLineageAsync(const GetMetaColumnLineageRequest& request, const GetMetaColumnLineageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1363. {
  1364. auto fn = [this, request, handler, context]()
  1365. {
  1366. handler(this, request, getMetaColumnLineage(request), context);
  1367. };
  1368. asyncExecute(new Runnable(fn));
  1369. }
  1370. Dataworks_publicClient::GetMetaColumnLineageOutcomeCallable Dataworks_publicClient::getMetaColumnLineageCallable(const GetMetaColumnLineageRequest &request) const
  1371. {
  1372. auto task = std::make_shared<std::packaged_task<GetMetaColumnLineageOutcome()>>(
  1373. [this, request]()
  1374. {
  1375. return this->getMetaColumnLineage(request);
  1376. });
  1377. asyncExecute(new Runnable([task]() { (*task)(); }));
  1378. return task->get_future();
  1379. }
  1380. Dataworks_publicClient::GetMetaDBInfoOutcome Dataworks_publicClient::getMetaDBInfo(const GetMetaDBInfoRequest &request) const
  1381. {
  1382. auto endpointOutcome = endpointProvider_->getEndpoint();
  1383. if (!endpointOutcome.isSuccess())
  1384. return GetMetaDBInfoOutcome(endpointOutcome.error());
  1385. auto outcome = makeRequest(endpointOutcome.result(), request);
  1386. if (outcome.isSuccess())
  1387. return GetMetaDBInfoOutcome(GetMetaDBInfoResult(outcome.result()));
  1388. else
  1389. return GetMetaDBInfoOutcome(outcome.error());
  1390. }
  1391. void Dataworks_publicClient::getMetaDBInfoAsync(const GetMetaDBInfoRequest& request, const GetMetaDBInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1392. {
  1393. auto fn = [this, request, handler, context]()
  1394. {
  1395. handler(this, request, getMetaDBInfo(request), context);
  1396. };
  1397. asyncExecute(new Runnable(fn));
  1398. }
  1399. Dataworks_publicClient::GetMetaDBInfoOutcomeCallable Dataworks_publicClient::getMetaDBInfoCallable(const GetMetaDBInfoRequest &request) const
  1400. {
  1401. auto task = std::make_shared<std::packaged_task<GetMetaDBInfoOutcome()>>(
  1402. [this, request]()
  1403. {
  1404. return this->getMetaDBInfo(request);
  1405. });
  1406. asyncExecute(new Runnable([task]() { (*task)(); }));
  1407. return task->get_future();
  1408. }
  1409. Dataworks_publicClient::GetMetaDBTableListOutcome Dataworks_publicClient::getMetaDBTableList(const GetMetaDBTableListRequest &request) const
  1410. {
  1411. auto endpointOutcome = endpointProvider_->getEndpoint();
  1412. if (!endpointOutcome.isSuccess())
  1413. return GetMetaDBTableListOutcome(endpointOutcome.error());
  1414. auto outcome = makeRequest(endpointOutcome.result(), request);
  1415. if (outcome.isSuccess())
  1416. return GetMetaDBTableListOutcome(GetMetaDBTableListResult(outcome.result()));
  1417. else
  1418. return GetMetaDBTableListOutcome(outcome.error());
  1419. }
  1420. void Dataworks_publicClient::getMetaDBTableListAsync(const GetMetaDBTableListRequest& request, const GetMetaDBTableListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1421. {
  1422. auto fn = [this, request, handler, context]()
  1423. {
  1424. handler(this, request, getMetaDBTableList(request), context);
  1425. };
  1426. asyncExecute(new Runnable(fn));
  1427. }
  1428. Dataworks_publicClient::GetMetaDBTableListOutcomeCallable Dataworks_publicClient::getMetaDBTableListCallable(const GetMetaDBTableListRequest &request) const
  1429. {
  1430. auto task = std::make_shared<std::packaged_task<GetMetaDBTableListOutcome()>>(
  1431. [this, request]()
  1432. {
  1433. return this->getMetaDBTableList(request);
  1434. });
  1435. asyncExecute(new Runnable([task]() { (*task)(); }));
  1436. return task->get_future();
  1437. }
  1438. Dataworks_publicClient::GetMetaTableBasicInfoOutcome Dataworks_publicClient::getMetaTableBasicInfo(const GetMetaTableBasicInfoRequest &request) const
  1439. {
  1440. auto endpointOutcome = endpointProvider_->getEndpoint();
  1441. if (!endpointOutcome.isSuccess())
  1442. return GetMetaTableBasicInfoOutcome(endpointOutcome.error());
  1443. auto outcome = makeRequest(endpointOutcome.result(), request);
  1444. if (outcome.isSuccess())
  1445. return GetMetaTableBasicInfoOutcome(GetMetaTableBasicInfoResult(outcome.result()));
  1446. else
  1447. return GetMetaTableBasicInfoOutcome(outcome.error());
  1448. }
  1449. void Dataworks_publicClient::getMetaTableBasicInfoAsync(const GetMetaTableBasicInfoRequest& request, const GetMetaTableBasicInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1450. {
  1451. auto fn = [this, request, handler, context]()
  1452. {
  1453. handler(this, request, getMetaTableBasicInfo(request), context);
  1454. };
  1455. asyncExecute(new Runnable(fn));
  1456. }
  1457. Dataworks_publicClient::GetMetaTableBasicInfoOutcomeCallable Dataworks_publicClient::getMetaTableBasicInfoCallable(const GetMetaTableBasicInfoRequest &request) const
  1458. {
  1459. auto task = std::make_shared<std::packaged_task<GetMetaTableBasicInfoOutcome()>>(
  1460. [this, request]()
  1461. {
  1462. return this->getMetaTableBasicInfo(request);
  1463. });
  1464. asyncExecute(new Runnable([task]() { (*task)(); }));
  1465. return task->get_future();
  1466. }
  1467. Dataworks_publicClient::GetMetaTableChangeLogOutcome Dataworks_publicClient::getMetaTableChangeLog(const GetMetaTableChangeLogRequest &request) const
  1468. {
  1469. auto endpointOutcome = endpointProvider_->getEndpoint();
  1470. if (!endpointOutcome.isSuccess())
  1471. return GetMetaTableChangeLogOutcome(endpointOutcome.error());
  1472. auto outcome = makeRequest(endpointOutcome.result(), request);
  1473. if (outcome.isSuccess())
  1474. return GetMetaTableChangeLogOutcome(GetMetaTableChangeLogResult(outcome.result()));
  1475. else
  1476. return GetMetaTableChangeLogOutcome(outcome.error());
  1477. }
  1478. void Dataworks_publicClient::getMetaTableChangeLogAsync(const GetMetaTableChangeLogRequest& request, const GetMetaTableChangeLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1479. {
  1480. auto fn = [this, request, handler, context]()
  1481. {
  1482. handler(this, request, getMetaTableChangeLog(request), context);
  1483. };
  1484. asyncExecute(new Runnable(fn));
  1485. }
  1486. Dataworks_publicClient::GetMetaTableChangeLogOutcomeCallable Dataworks_publicClient::getMetaTableChangeLogCallable(const GetMetaTableChangeLogRequest &request) const
  1487. {
  1488. auto task = std::make_shared<std::packaged_task<GetMetaTableChangeLogOutcome()>>(
  1489. [this, request]()
  1490. {
  1491. return this->getMetaTableChangeLog(request);
  1492. });
  1493. asyncExecute(new Runnable([task]() { (*task)(); }));
  1494. return task->get_future();
  1495. }
  1496. Dataworks_publicClient::GetMetaTableColumnOutcome Dataworks_publicClient::getMetaTableColumn(const GetMetaTableColumnRequest &request) const
  1497. {
  1498. auto endpointOutcome = endpointProvider_->getEndpoint();
  1499. if (!endpointOutcome.isSuccess())
  1500. return GetMetaTableColumnOutcome(endpointOutcome.error());
  1501. auto outcome = makeRequest(endpointOutcome.result(), request);
  1502. if (outcome.isSuccess())
  1503. return GetMetaTableColumnOutcome(GetMetaTableColumnResult(outcome.result()));
  1504. else
  1505. return GetMetaTableColumnOutcome(outcome.error());
  1506. }
  1507. void Dataworks_publicClient::getMetaTableColumnAsync(const GetMetaTableColumnRequest& request, const GetMetaTableColumnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1508. {
  1509. auto fn = [this, request, handler, context]()
  1510. {
  1511. handler(this, request, getMetaTableColumn(request), context);
  1512. };
  1513. asyncExecute(new Runnable(fn));
  1514. }
  1515. Dataworks_publicClient::GetMetaTableColumnOutcomeCallable Dataworks_publicClient::getMetaTableColumnCallable(const GetMetaTableColumnRequest &request) const
  1516. {
  1517. auto task = std::make_shared<std::packaged_task<GetMetaTableColumnOutcome()>>(
  1518. [this, request]()
  1519. {
  1520. return this->getMetaTableColumn(request);
  1521. });
  1522. asyncExecute(new Runnable([task]() { (*task)(); }));
  1523. return task->get_future();
  1524. }
  1525. Dataworks_publicClient::GetMetaTableFullInfoOutcome Dataworks_publicClient::getMetaTableFullInfo(const GetMetaTableFullInfoRequest &request) const
  1526. {
  1527. auto endpointOutcome = endpointProvider_->getEndpoint();
  1528. if (!endpointOutcome.isSuccess())
  1529. return GetMetaTableFullInfoOutcome(endpointOutcome.error());
  1530. auto outcome = makeRequest(endpointOutcome.result(), request);
  1531. if (outcome.isSuccess())
  1532. return GetMetaTableFullInfoOutcome(GetMetaTableFullInfoResult(outcome.result()));
  1533. else
  1534. return GetMetaTableFullInfoOutcome(outcome.error());
  1535. }
  1536. void Dataworks_publicClient::getMetaTableFullInfoAsync(const GetMetaTableFullInfoRequest& request, const GetMetaTableFullInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1537. {
  1538. auto fn = [this, request, handler, context]()
  1539. {
  1540. handler(this, request, getMetaTableFullInfo(request), context);
  1541. };
  1542. asyncExecute(new Runnable(fn));
  1543. }
  1544. Dataworks_publicClient::GetMetaTableFullInfoOutcomeCallable Dataworks_publicClient::getMetaTableFullInfoCallable(const GetMetaTableFullInfoRequest &request) const
  1545. {
  1546. auto task = std::make_shared<std::packaged_task<GetMetaTableFullInfoOutcome()>>(
  1547. [this, request]()
  1548. {
  1549. return this->getMetaTableFullInfo(request);
  1550. });
  1551. asyncExecute(new Runnable([task]() { (*task)(); }));
  1552. return task->get_future();
  1553. }
  1554. Dataworks_publicClient::GetMetaTableIntroWikiOutcome Dataworks_publicClient::getMetaTableIntroWiki(const GetMetaTableIntroWikiRequest &request) const
  1555. {
  1556. auto endpointOutcome = endpointProvider_->getEndpoint();
  1557. if (!endpointOutcome.isSuccess())
  1558. return GetMetaTableIntroWikiOutcome(endpointOutcome.error());
  1559. auto outcome = makeRequest(endpointOutcome.result(), request);
  1560. if (outcome.isSuccess())
  1561. return GetMetaTableIntroWikiOutcome(GetMetaTableIntroWikiResult(outcome.result()));
  1562. else
  1563. return GetMetaTableIntroWikiOutcome(outcome.error());
  1564. }
  1565. void Dataworks_publicClient::getMetaTableIntroWikiAsync(const GetMetaTableIntroWikiRequest& request, const GetMetaTableIntroWikiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1566. {
  1567. auto fn = [this, request, handler, context]()
  1568. {
  1569. handler(this, request, getMetaTableIntroWiki(request), context);
  1570. };
  1571. asyncExecute(new Runnable(fn));
  1572. }
  1573. Dataworks_publicClient::GetMetaTableIntroWikiOutcomeCallable Dataworks_publicClient::getMetaTableIntroWikiCallable(const GetMetaTableIntroWikiRequest &request) const
  1574. {
  1575. auto task = std::make_shared<std::packaged_task<GetMetaTableIntroWikiOutcome()>>(
  1576. [this, request]()
  1577. {
  1578. return this->getMetaTableIntroWiki(request);
  1579. });
  1580. asyncExecute(new Runnable([task]() { (*task)(); }));
  1581. return task->get_future();
  1582. }
  1583. Dataworks_publicClient::GetMetaTableLineageOutcome Dataworks_publicClient::getMetaTableLineage(const GetMetaTableLineageRequest &request) const
  1584. {
  1585. auto endpointOutcome = endpointProvider_->getEndpoint();
  1586. if (!endpointOutcome.isSuccess())
  1587. return GetMetaTableLineageOutcome(endpointOutcome.error());
  1588. auto outcome = makeRequest(endpointOutcome.result(), request);
  1589. if (outcome.isSuccess())
  1590. return GetMetaTableLineageOutcome(GetMetaTableLineageResult(outcome.result()));
  1591. else
  1592. return GetMetaTableLineageOutcome(outcome.error());
  1593. }
  1594. void Dataworks_publicClient::getMetaTableLineageAsync(const GetMetaTableLineageRequest& request, const GetMetaTableLineageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1595. {
  1596. auto fn = [this, request, handler, context]()
  1597. {
  1598. handler(this, request, getMetaTableLineage(request), context);
  1599. };
  1600. asyncExecute(new Runnable(fn));
  1601. }
  1602. Dataworks_publicClient::GetMetaTableLineageOutcomeCallable Dataworks_publicClient::getMetaTableLineageCallable(const GetMetaTableLineageRequest &request) const
  1603. {
  1604. auto task = std::make_shared<std::packaged_task<GetMetaTableLineageOutcome()>>(
  1605. [this, request]()
  1606. {
  1607. return this->getMetaTableLineage(request);
  1608. });
  1609. asyncExecute(new Runnable([task]() { (*task)(); }));
  1610. return task->get_future();
  1611. }
  1612. Dataworks_publicClient::GetMetaTableListByCategoryOutcome Dataworks_publicClient::getMetaTableListByCategory(const GetMetaTableListByCategoryRequest &request) const
  1613. {
  1614. auto endpointOutcome = endpointProvider_->getEndpoint();
  1615. if (!endpointOutcome.isSuccess())
  1616. return GetMetaTableListByCategoryOutcome(endpointOutcome.error());
  1617. auto outcome = makeRequest(endpointOutcome.result(), request);
  1618. if (outcome.isSuccess())
  1619. return GetMetaTableListByCategoryOutcome(GetMetaTableListByCategoryResult(outcome.result()));
  1620. else
  1621. return GetMetaTableListByCategoryOutcome(outcome.error());
  1622. }
  1623. void Dataworks_publicClient::getMetaTableListByCategoryAsync(const GetMetaTableListByCategoryRequest& request, const GetMetaTableListByCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1624. {
  1625. auto fn = [this, request, handler, context]()
  1626. {
  1627. handler(this, request, getMetaTableListByCategory(request), context);
  1628. };
  1629. asyncExecute(new Runnable(fn));
  1630. }
  1631. Dataworks_publicClient::GetMetaTableListByCategoryOutcomeCallable Dataworks_publicClient::getMetaTableListByCategoryCallable(const GetMetaTableListByCategoryRequest &request) const
  1632. {
  1633. auto task = std::make_shared<std::packaged_task<GetMetaTableListByCategoryOutcome()>>(
  1634. [this, request]()
  1635. {
  1636. return this->getMetaTableListByCategory(request);
  1637. });
  1638. asyncExecute(new Runnable([task]() { (*task)(); }));
  1639. return task->get_future();
  1640. }
  1641. Dataworks_publicClient::GetMetaTableOutputOutcome Dataworks_publicClient::getMetaTableOutput(const GetMetaTableOutputRequest &request) const
  1642. {
  1643. auto endpointOutcome = endpointProvider_->getEndpoint();
  1644. if (!endpointOutcome.isSuccess())
  1645. return GetMetaTableOutputOutcome(endpointOutcome.error());
  1646. auto outcome = makeRequest(endpointOutcome.result(), request);
  1647. if (outcome.isSuccess())
  1648. return GetMetaTableOutputOutcome(GetMetaTableOutputResult(outcome.result()));
  1649. else
  1650. return GetMetaTableOutputOutcome(outcome.error());
  1651. }
  1652. void Dataworks_publicClient::getMetaTableOutputAsync(const GetMetaTableOutputRequest& request, const GetMetaTableOutputAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1653. {
  1654. auto fn = [this, request, handler, context]()
  1655. {
  1656. handler(this, request, getMetaTableOutput(request), context);
  1657. };
  1658. asyncExecute(new Runnable(fn));
  1659. }
  1660. Dataworks_publicClient::GetMetaTableOutputOutcomeCallable Dataworks_publicClient::getMetaTableOutputCallable(const GetMetaTableOutputRequest &request) const
  1661. {
  1662. auto task = std::make_shared<std::packaged_task<GetMetaTableOutputOutcome()>>(
  1663. [this, request]()
  1664. {
  1665. return this->getMetaTableOutput(request);
  1666. });
  1667. asyncExecute(new Runnable([task]() { (*task)(); }));
  1668. return task->get_future();
  1669. }
  1670. Dataworks_publicClient::GetMetaTablePartitionOutcome Dataworks_publicClient::getMetaTablePartition(const GetMetaTablePartitionRequest &request) const
  1671. {
  1672. auto endpointOutcome = endpointProvider_->getEndpoint();
  1673. if (!endpointOutcome.isSuccess())
  1674. return GetMetaTablePartitionOutcome(endpointOutcome.error());
  1675. auto outcome = makeRequest(endpointOutcome.result(), request);
  1676. if (outcome.isSuccess())
  1677. return GetMetaTablePartitionOutcome(GetMetaTablePartitionResult(outcome.result()));
  1678. else
  1679. return GetMetaTablePartitionOutcome(outcome.error());
  1680. }
  1681. void Dataworks_publicClient::getMetaTablePartitionAsync(const GetMetaTablePartitionRequest& request, const GetMetaTablePartitionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1682. {
  1683. auto fn = [this, request, handler, context]()
  1684. {
  1685. handler(this, request, getMetaTablePartition(request), context);
  1686. };
  1687. asyncExecute(new Runnable(fn));
  1688. }
  1689. Dataworks_publicClient::GetMetaTablePartitionOutcomeCallable Dataworks_publicClient::getMetaTablePartitionCallable(const GetMetaTablePartitionRequest &request) const
  1690. {
  1691. auto task = std::make_shared<std::packaged_task<GetMetaTablePartitionOutcome()>>(
  1692. [this, request]()
  1693. {
  1694. return this->getMetaTablePartition(request);
  1695. });
  1696. asyncExecute(new Runnable([task]() { (*task)(); }));
  1697. return task->get_future();
  1698. }
  1699. Dataworks_publicClient::GetNodeOutcome Dataworks_publicClient::getNode(const GetNodeRequest &request) const
  1700. {
  1701. auto endpointOutcome = endpointProvider_->getEndpoint();
  1702. if (!endpointOutcome.isSuccess())
  1703. return GetNodeOutcome(endpointOutcome.error());
  1704. auto outcome = makeRequest(endpointOutcome.result(), request);
  1705. if (outcome.isSuccess())
  1706. return GetNodeOutcome(GetNodeResult(outcome.result()));
  1707. else
  1708. return GetNodeOutcome(outcome.error());
  1709. }
  1710. void Dataworks_publicClient::getNodeAsync(const GetNodeRequest& request, const GetNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1711. {
  1712. auto fn = [this, request, handler, context]()
  1713. {
  1714. handler(this, request, getNode(request), context);
  1715. };
  1716. asyncExecute(new Runnable(fn));
  1717. }
  1718. Dataworks_publicClient::GetNodeOutcomeCallable Dataworks_publicClient::getNodeCallable(const GetNodeRequest &request) const
  1719. {
  1720. auto task = std::make_shared<std::packaged_task<GetNodeOutcome()>>(
  1721. [this, request]()
  1722. {
  1723. return this->getNode(request);
  1724. });
  1725. asyncExecute(new Runnable([task]() { (*task)(); }));
  1726. return task->get_future();
  1727. }
  1728. Dataworks_publicClient::GetNodeCodeOutcome Dataworks_publicClient::getNodeCode(const GetNodeCodeRequest &request) const
  1729. {
  1730. auto endpointOutcome = endpointProvider_->getEndpoint();
  1731. if (!endpointOutcome.isSuccess())
  1732. return GetNodeCodeOutcome(endpointOutcome.error());
  1733. auto outcome = makeRequest(endpointOutcome.result(), request);
  1734. if (outcome.isSuccess())
  1735. return GetNodeCodeOutcome(GetNodeCodeResult(outcome.result()));
  1736. else
  1737. return GetNodeCodeOutcome(outcome.error());
  1738. }
  1739. void Dataworks_publicClient::getNodeCodeAsync(const GetNodeCodeRequest& request, const GetNodeCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1740. {
  1741. auto fn = [this, request, handler, context]()
  1742. {
  1743. handler(this, request, getNodeCode(request), context);
  1744. };
  1745. asyncExecute(new Runnable(fn));
  1746. }
  1747. Dataworks_publicClient::GetNodeCodeOutcomeCallable Dataworks_publicClient::getNodeCodeCallable(const GetNodeCodeRequest &request) const
  1748. {
  1749. auto task = std::make_shared<std::packaged_task<GetNodeCodeOutcome()>>(
  1750. [this, request]()
  1751. {
  1752. return this->getNodeCode(request);
  1753. });
  1754. asyncExecute(new Runnable([task]() { (*task)(); }));
  1755. return task->get_future();
  1756. }
  1757. Dataworks_publicClient::GetNodeOnBaselineOutcome Dataworks_publicClient::getNodeOnBaseline(const GetNodeOnBaselineRequest &request) const
  1758. {
  1759. auto endpointOutcome = endpointProvider_->getEndpoint();
  1760. if (!endpointOutcome.isSuccess())
  1761. return GetNodeOnBaselineOutcome(endpointOutcome.error());
  1762. auto outcome = makeRequest(endpointOutcome.result(), request);
  1763. if (outcome.isSuccess())
  1764. return GetNodeOnBaselineOutcome(GetNodeOnBaselineResult(outcome.result()));
  1765. else
  1766. return GetNodeOnBaselineOutcome(outcome.error());
  1767. }
  1768. void Dataworks_publicClient::getNodeOnBaselineAsync(const GetNodeOnBaselineRequest& request, const GetNodeOnBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1769. {
  1770. auto fn = [this, request, handler, context]()
  1771. {
  1772. handler(this, request, getNodeOnBaseline(request), context);
  1773. };
  1774. asyncExecute(new Runnable(fn));
  1775. }
  1776. Dataworks_publicClient::GetNodeOnBaselineOutcomeCallable Dataworks_publicClient::getNodeOnBaselineCallable(const GetNodeOnBaselineRequest &request) const
  1777. {
  1778. auto task = std::make_shared<std::packaged_task<GetNodeOnBaselineOutcome()>>(
  1779. [this, request]()
  1780. {
  1781. return this->getNodeOnBaseline(request);
  1782. });
  1783. asyncExecute(new Runnable([task]() { (*task)(); }));
  1784. return task->get_future();
  1785. }
  1786. Dataworks_publicClient::GetProjectDetailOutcome Dataworks_publicClient::getProjectDetail(const GetProjectDetailRequest &request) const
  1787. {
  1788. auto endpointOutcome = endpointProvider_->getEndpoint();
  1789. if (!endpointOutcome.isSuccess())
  1790. return GetProjectDetailOutcome(endpointOutcome.error());
  1791. auto outcome = makeRequest(endpointOutcome.result(), request);
  1792. if (outcome.isSuccess())
  1793. return GetProjectDetailOutcome(GetProjectDetailResult(outcome.result()));
  1794. else
  1795. return GetProjectDetailOutcome(outcome.error());
  1796. }
  1797. void Dataworks_publicClient::getProjectDetailAsync(const GetProjectDetailRequest& request, const GetProjectDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1798. {
  1799. auto fn = [this, request, handler, context]()
  1800. {
  1801. handler(this, request, getProjectDetail(request), context);
  1802. };
  1803. asyncExecute(new Runnable(fn));
  1804. }
  1805. Dataworks_publicClient::GetProjectDetailOutcomeCallable Dataworks_publicClient::getProjectDetailCallable(const GetProjectDetailRequest &request) const
  1806. {
  1807. auto task = std::make_shared<std::packaged_task<GetProjectDetailOutcome()>>(
  1808. [this, request]()
  1809. {
  1810. return this->getProjectDetail(request);
  1811. });
  1812. asyncExecute(new Runnable([task]() { (*task)(); }));
  1813. return task->get_future();
  1814. }
  1815. Dataworks_publicClient::GetQualityEntityOutcome Dataworks_publicClient::getQualityEntity(const GetQualityEntityRequest &request) const
  1816. {
  1817. auto endpointOutcome = endpointProvider_->getEndpoint();
  1818. if (!endpointOutcome.isSuccess())
  1819. return GetQualityEntityOutcome(endpointOutcome.error());
  1820. auto outcome = makeRequest(endpointOutcome.result(), request);
  1821. if (outcome.isSuccess())
  1822. return GetQualityEntityOutcome(GetQualityEntityResult(outcome.result()));
  1823. else
  1824. return GetQualityEntityOutcome(outcome.error());
  1825. }
  1826. void Dataworks_publicClient::getQualityEntityAsync(const GetQualityEntityRequest& request, const GetQualityEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1827. {
  1828. auto fn = [this, request, handler, context]()
  1829. {
  1830. handler(this, request, getQualityEntity(request), context);
  1831. };
  1832. asyncExecute(new Runnable(fn));
  1833. }
  1834. Dataworks_publicClient::GetQualityEntityOutcomeCallable Dataworks_publicClient::getQualityEntityCallable(const GetQualityEntityRequest &request) const
  1835. {
  1836. auto task = std::make_shared<std::packaged_task<GetQualityEntityOutcome()>>(
  1837. [this, request]()
  1838. {
  1839. return this->getQualityEntity(request);
  1840. });
  1841. asyncExecute(new Runnable([task]() { (*task)(); }));
  1842. return task->get_future();
  1843. }
  1844. Dataworks_publicClient::GetQualityFollowerOutcome Dataworks_publicClient::getQualityFollower(const GetQualityFollowerRequest &request) const
  1845. {
  1846. auto endpointOutcome = endpointProvider_->getEndpoint();
  1847. if (!endpointOutcome.isSuccess())
  1848. return GetQualityFollowerOutcome(endpointOutcome.error());
  1849. auto outcome = makeRequest(endpointOutcome.result(), request);
  1850. if (outcome.isSuccess())
  1851. return GetQualityFollowerOutcome(GetQualityFollowerResult(outcome.result()));
  1852. else
  1853. return GetQualityFollowerOutcome(outcome.error());
  1854. }
  1855. void Dataworks_publicClient::getQualityFollowerAsync(const GetQualityFollowerRequest& request, const GetQualityFollowerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1856. {
  1857. auto fn = [this, request, handler, context]()
  1858. {
  1859. handler(this, request, getQualityFollower(request), context);
  1860. };
  1861. asyncExecute(new Runnable(fn));
  1862. }
  1863. Dataworks_publicClient::GetQualityFollowerOutcomeCallable Dataworks_publicClient::getQualityFollowerCallable(const GetQualityFollowerRequest &request) const
  1864. {
  1865. auto task = std::make_shared<std::packaged_task<GetQualityFollowerOutcome()>>(
  1866. [this, request]()
  1867. {
  1868. return this->getQualityFollower(request);
  1869. });
  1870. asyncExecute(new Runnable([task]() { (*task)(); }));
  1871. return task->get_future();
  1872. }
  1873. Dataworks_publicClient::GetQualityRuleOutcome Dataworks_publicClient::getQualityRule(const GetQualityRuleRequest &request) const
  1874. {
  1875. auto endpointOutcome = endpointProvider_->getEndpoint();
  1876. if (!endpointOutcome.isSuccess())
  1877. return GetQualityRuleOutcome(endpointOutcome.error());
  1878. auto outcome = makeRequest(endpointOutcome.result(), request);
  1879. if (outcome.isSuccess())
  1880. return GetQualityRuleOutcome(GetQualityRuleResult(outcome.result()));
  1881. else
  1882. return GetQualityRuleOutcome(outcome.error());
  1883. }
  1884. void Dataworks_publicClient::getQualityRuleAsync(const GetQualityRuleRequest& request, const GetQualityRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1885. {
  1886. auto fn = [this, request, handler, context]()
  1887. {
  1888. handler(this, request, getQualityRule(request), context);
  1889. };
  1890. asyncExecute(new Runnable(fn));
  1891. }
  1892. Dataworks_publicClient::GetQualityRuleOutcomeCallable Dataworks_publicClient::getQualityRuleCallable(const GetQualityRuleRequest &request) const
  1893. {
  1894. auto task = std::make_shared<std::packaged_task<GetQualityRuleOutcome()>>(
  1895. [this, request]()
  1896. {
  1897. return this->getQualityRule(request);
  1898. });
  1899. asyncExecute(new Runnable([task]() { (*task)(); }));
  1900. return task->get_future();
  1901. }
  1902. Dataworks_publicClient::GetRemindOutcome Dataworks_publicClient::getRemind(const GetRemindRequest &request) const
  1903. {
  1904. auto endpointOutcome = endpointProvider_->getEndpoint();
  1905. if (!endpointOutcome.isSuccess())
  1906. return GetRemindOutcome(endpointOutcome.error());
  1907. auto outcome = makeRequest(endpointOutcome.result(), request);
  1908. if (outcome.isSuccess())
  1909. return GetRemindOutcome(GetRemindResult(outcome.result()));
  1910. else
  1911. return GetRemindOutcome(outcome.error());
  1912. }
  1913. void Dataworks_publicClient::getRemindAsync(const GetRemindRequest& request, const GetRemindAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1914. {
  1915. auto fn = [this, request, handler, context]()
  1916. {
  1917. handler(this, request, getRemind(request), context);
  1918. };
  1919. asyncExecute(new Runnable(fn));
  1920. }
  1921. Dataworks_publicClient::GetRemindOutcomeCallable Dataworks_publicClient::getRemindCallable(const GetRemindRequest &request) const
  1922. {
  1923. auto task = std::make_shared<std::packaged_task<GetRemindOutcome()>>(
  1924. [this, request]()
  1925. {
  1926. return this->getRemind(request);
  1927. });
  1928. asyncExecute(new Runnable([task]() { (*task)(); }));
  1929. return task->get_future();
  1930. }
  1931. Dataworks_publicClient::GetTopicOutcome Dataworks_publicClient::getTopic(const GetTopicRequest &request) const
  1932. {
  1933. auto endpointOutcome = endpointProvider_->getEndpoint();
  1934. if (!endpointOutcome.isSuccess())
  1935. return GetTopicOutcome(endpointOutcome.error());
  1936. auto outcome = makeRequest(endpointOutcome.result(), request);
  1937. if (outcome.isSuccess())
  1938. return GetTopicOutcome(GetTopicResult(outcome.result()));
  1939. else
  1940. return GetTopicOutcome(outcome.error());
  1941. }
  1942. void Dataworks_publicClient::getTopicAsync(const GetTopicRequest& request, const GetTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1943. {
  1944. auto fn = [this, request, handler, context]()
  1945. {
  1946. handler(this, request, getTopic(request), context);
  1947. };
  1948. asyncExecute(new Runnable(fn));
  1949. }
  1950. Dataworks_publicClient::GetTopicOutcomeCallable Dataworks_publicClient::getTopicCallable(const GetTopicRequest &request) const
  1951. {
  1952. auto task = std::make_shared<std::packaged_task<GetTopicOutcome()>>(
  1953. [this, request]()
  1954. {
  1955. return this->getTopic(request);
  1956. });
  1957. asyncExecute(new Runnable([task]() { (*task)(); }));
  1958. return task->get_future();
  1959. }
  1960. Dataworks_publicClient::GetTopicInfluenceOutcome Dataworks_publicClient::getTopicInfluence(const GetTopicInfluenceRequest &request) const
  1961. {
  1962. auto endpointOutcome = endpointProvider_->getEndpoint();
  1963. if (!endpointOutcome.isSuccess())
  1964. return GetTopicInfluenceOutcome(endpointOutcome.error());
  1965. auto outcome = makeRequest(endpointOutcome.result(), request);
  1966. if (outcome.isSuccess())
  1967. return GetTopicInfluenceOutcome(GetTopicInfluenceResult(outcome.result()));
  1968. else
  1969. return GetTopicInfluenceOutcome(outcome.error());
  1970. }
  1971. void Dataworks_publicClient::getTopicInfluenceAsync(const GetTopicInfluenceRequest& request, const GetTopicInfluenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  1972. {
  1973. auto fn = [this, request, handler, context]()
  1974. {
  1975. handler(this, request, getTopicInfluence(request), context);
  1976. };
  1977. asyncExecute(new Runnable(fn));
  1978. }
  1979. Dataworks_publicClient::GetTopicInfluenceOutcomeCallable Dataworks_publicClient::getTopicInfluenceCallable(const GetTopicInfluenceRequest &request) const
  1980. {
  1981. auto task = std::make_shared<std::packaged_task<GetTopicInfluenceOutcome()>>(
  1982. [this, request]()
  1983. {
  1984. return this->getTopicInfluence(request);
  1985. });
  1986. asyncExecute(new Runnable([task]() { (*task)(); }));
  1987. return task->get_future();
  1988. }
  1989. Dataworks_publicClient::ListAlertMessagesOutcome Dataworks_publicClient::listAlertMessages(const ListAlertMessagesRequest &request) const
  1990. {
  1991. auto endpointOutcome = endpointProvider_->getEndpoint();
  1992. if (!endpointOutcome.isSuccess())
  1993. return ListAlertMessagesOutcome(endpointOutcome.error());
  1994. auto outcome = makeRequest(endpointOutcome.result(), request);
  1995. if (outcome.isSuccess())
  1996. return ListAlertMessagesOutcome(ListAlertMessagesResult(outcome.result()));
  1997. else
  1998. return ListAlertMessagesOutcome(outcome.error());
  1999. }
  2000. void Dataworks_publicClient::listAlertMessagesAsync(const ListAlertMessagesRequest& request, const ListAlertMessagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2001. {
  2002. auto fn = [this, request, handler, context]()
  2003. {
  2004. handler(this, request, listAlertMessages(request), context);
  2005. };
  2006. asyncExecute(new Runnable(fn));
  2007. }
  2008. Dataworks_publicClient::ListAlertMessagesOutcomeCallable Dataworks_publicClient::listAlertMessagesCallable(const ListAlertMessagesRequest &request) const
  2009. {
  2010. auto task = std::make_shared<std::packaged_task<ListAlertMessagesOutcome()>>(
  2011. [this, request]()
  2012. {
  2013. return this->listAlertMessages(request);
  2014. });
  2015. asyncExecute(new Runnable([task]() { (*task)(); }));
  2016. return task->get_future();
  2017. }
  2018. Dataworks_publicClient::ListBaselineConfigsOutcome Dataworks_publicClient::listBaselineConfigs(const ListBaselineConfigsRequest &request) const
  2019. {
  2020. auto endpointOutcome = endpointProvider_->getEndpoint();
  2021. if (!endpointOutcome.isSuccess())
  2022. return ListBaselineConfigsOutcome(endpointOutcome.error());
  2023. auto outcome = makeRequest(endpointOutcome.result(), request);
  2024. if (outcome.isSuccess())
  2025. return ListBaselineConfigsOutcome(ListBaselineConfigsResult(outcome.result()));
  2026. else
  2027. return ListBaselineConfigsOutcome(outcome.error());
  2028. }
  2029. void Dataworks_publicClient::listBaselineConfigsAsync(const ListBaselineConfigsRequest& request, const ListBaselineConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2030. {
  2031. auto fn = [this, request, handler, context]()
  2032. {
  2033. handler(this, request, listBaselineConfigs(request), context);
  2034. };
  2035. asyncExecute(new Runnable(fn));
  2036. }
  2037. Dataworks_publicClient::ListBaselineConfigsOutcomeCallable Dataworks_publicClient::listBaselineConfigsCallable(const ListBaselineConfigsRequest &request) const
  2038. {
  2039. auto task = std::make_shared<std::packaged_task<ListBaselineConfigsOutcome()>>(
  2040. [this, request]()
  2041. {
  2042. return this->listBaselineConfigs(request);
  2043. });
  2044. asyncExecute(new Runnable([task]() { (*task)(); }));
  2045. return task->get_future();
  2046. }
  2047. Dataworks_publicClient::ListBaselineStatusesOutcome Dataworks_publicClient::listBaselineStatuses(const ListBaselineStatusesRequest &request) const
  2048. {
  2049. auto endpointOutcome = endpointProvider_->getEndpoint();
  2050. if (!endpointOutcome.isSuccess())
  2051. return ListBaselineStatusesOutcome(endpointOutcome.error());
  2052. auto outcome = makeRequest(endpointOutcome.result(), request);
  2053. if (outcome.isSuccess())
  2054. return ListBaselineStatusesOutcome(ListBaselineStatusesResult(outcome.result()));
  2055. else
  2056. return ListBaselineStatusesOutcome(outcome.error());
  2057. }
  2058. void Dataworks_publicClient::listBaselineStatusesAsync(const ListBaselineStatusesRequest& request, const ListBaselineStatusesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2059. {
  2060. auto fn = [this, request, handler, context]()
  2061. {
  2062. handler(this, request, listBaselineStatuses(request), context);
  2063. };
  2064. asyncExecute(new Runnable(fn));
  2065. }
  2066. Dataworks_publicClient::ListBaselineStatusesOutcomeCallable Dataworks_publicClient::listBaselineStatusesCallable(const ListBaselineStatusesRequest &request) const
  2067. {
  2068. auto task = std::make_shared<std::packaged_task<ListBaselineStatusesOutcome()>>(
  2069. [this, request]()
  2070. {
  2071. return this->listBaselineStatuses(request);
  2072. });
  2073. asyncExecute(new Runnable([task]() { (*task)(); }));
  2074. return task->get_future();
  2075. }
  2076. Dataworks_publicClient::ListBusinessOutcome Dataworks_publicClient::listBusiness(const ListBusinessRequest &request) const
  2077. {
  2078. auto endpointOutcome = endpointProvider_->getEndpoint();
  2079. if (!endpointOutcome.isSuccess())
  2080. return ListBusinessOutcome(endpointOutcome.error());
  2081. auto outcome = makeRequest(endpointOutcome.result(), request);
  2082. if (outcome.isSuccess())
  2083. return ListBusinessOutcome(ListBusinessResult(outcome.result()));
  2084. else
  2085. return ListBusinessOutcome(outcome.error());
  2086. }
  2087. void Dataworks_publicClient::listBusinessAsync(const ListBusinessRequest& request, const ListBusinessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2088. {
  2089. auto fn = [this, request, handler, context]()
  2090. {
  2091. handler(this, request, listBusiness(request), context);
  2092. };
  2093. asyncExecute(new Runnable(fn));
  2094. }
  2095. Dataworks_publicClient::ListBusinessOutcomeCallable Dataworks_publicClient::listBusinessCallable(const ListBusinessRequest &request) const
  2096. {
  2097. auto task = std::make_shared<std::packaged_task<ListBusinessOutcome()>>(
  2098. [this, request]()
  2099. {
  2100. return this->listBusiness(request);
  2101. });
  2102. asyncExecute(new Runnable([task]() { (*task)(); }));
  2103. return task->get_future();
  2104. }
  2105. Dataworks_publicClient::ListCalcEnginesOutcome Dataworks_publicClient::listCalcEngines(const ListCalcEnginesRequest &request) const
  2106. {
  2107. auto endpointOutcome = endpointProvider_->getEndpoint();
  2108. if (!endpointOutcome.isSuccess())
  2109. return ListCalcEnginesOutcome(endpointOutcome.error());
  2110. auto outcome = makeRequest(endpointOutcome.result(), request);
  2111. if (outcome.isSuccess())
  2112. return ListCalcEnginesOutcome(ListCalcEnginesResult(outcome.result()));
  2113. else
  2114. return ListCalcEnginesOutcome(outcome.error());
  2115. }
  2116. void Dataworks_publicClient::listCalcEnginesAsync(const ListCalcEnginesRequest& request, const ListCalcEnginesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2117. {
  2118. auto fn = [this, request, handler, context]()
  2119. {
  2120. handler(this, request, listCalcEngines(request), context);
  2121. };
  2122. asyncExecute(new Runnable(fn));
  2123. }
  2124. Dataworks_publicClient::ListCalcEnginesOutcomeCallable Dataworks_publicClient::listCalcEnginesCallable(const ListCalcEnginesRequest &request) const
  2125. {
  2126. auto task = std::make_shared<std::packaged_task<ListCalcEnginesOutcome()>>(
  2127. [this, request]()
  2128. {
  2129. return this->listCalcEngines(request);
  2130. });
  2131. asyncExecute(new Runnable([task]() { (*task)(); }));
  2132. return task->get_future();
  2133. }
  2134. Dataworks_publicClient::ListConnectionsOutcome Dataworks_publicClient::listConnections(const ListConnectionsRequest &request) const
  2135. {
  2136. auto endpointOutcome = endpointProvider_->getEndpoint();
  2137. if (!endpointOutcome.isSuccess())
  2138. return ListConnectionsOutcome(endpointOutcome.error());
  2139. auto outcome = makeRequest(endpointOutcome.result(), request);
  2140. if (outcome.isSuccess())
  2141. return ListConnectionsOutcome(ListConnectionsResult(outcome.result()));
  2142. else
  2143. return ListConnectionsOutcome(outcome.error());
  2144. }
  2145. void Dataworks_publicClient::listConnectionsAsync(const ListConnectionsRequest& request, const ListConnectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2146. {
  2147. auto fn = [this, request, handler, context]()
  2148. {
  2149. handler(this, request, listConnections(request), context);
  2150. };
  2151. asyncExecute(new Runnable(fn));
  2152. }
  2153. Dataworks_publicClient::ListConnectionsOutcomeCallable Dataworks_publicClient::listConnectionsCallable(const ListConnectionsRequest &request) const
  2154. {
  2155. auto task = std::make_shared<std::packaged_task<ListConnectionsOutcome()>>(
  2156. [this, request]()
  2157. {
  2158. return this->listConnections(request);
  2159. });
  2160. asyncExecute(new Runnable([task]() { (*task)(); }));
  2161. return task->get_future();
  2162. }
  2163. Dataworks_publicClient::ListDataServiceApiAuthoritiesOutcome Dataworks_publicClient::listDataServiceApiAuthorities(const ListDataServiceApiAuthoritiesRequest &request) const
  2164. {
  2165. auto endpointOutcome = endpointProvider_->getEndpoint();
  2166. if (!endpointOutcome.isSuccess())
  2167. return ListDataServiceApiAuthoritiesOutcome(endpointOutcome.error());
  2168. auto outcome = makeRequest(endpointOutcome.result(), request);
  2169. if (outcome.isSuccess())
  2170. return ListDataServiceApiAuthoritiesOutcome(ListDataServiceApiAuthoritiesResult(outcome.result()));
  2171. else
  2172. return ListDataServiceApiAuthoritiesOutcome(outcome.error());
  2173. }
  2174. void Dataworks_publicClient::listDataServiceApiAuthoritiesAsync(const ListDataServiceApiAuthoritiesRequest& request, const ListDataServiceApiAuthoritiesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2175. {
  2176. auto fn = [this, request, handler, context]()
  2177. {
  2178. handler(this, request, listDataServiceApiAuthorities(request), context);
  2179. };
  2180. asyncExecute(new Runnable(fn));
  2181. }
  2182. Dataworks_publicClient::ListDataServiceApiAuthoritiesOutcomeCallable Dataworks_publicClient::listDataServiceApiAuthoritiesCallable(const ListDataServiceApiAuthoritiesRequest &request) const
  2183. {
  2184. auto task = std::make_shared<std::packaged_task<ListDataServiceApiAuthoritiesOutcome()>>(
  2185. [this, request]()
  2186. {
  2187. return this->listDataServiceApiAuthorities(request);
  2188. });
  2189. asyncExecute(new Runnable([task]() { (*task)(); }));
  2190. return task->get_future();
  2191. }
  2192. Dataworks_publicClient::ListDataServiceApisOutcome Dataworks_publicClient::listDataServiceApis(const ListDataServiceApisRequest &request) const
  2193. {
  2194. auto endpointOutcome = endpointProvider_->getEndpoint();
  2195. if (!endpointOutcome.isSuccess())
  2196. return ListDataServiceApisOutcome(endpointOutcome.error());
  2197. auto outcome = makeRequest(endpointOutcome.result(), request);
  2198. if (outcome.isSuccess())
  2199. return ListDataServiceApisOutcome(ListDataServiceApisResult(outcome.result()));
  2200. else
  2201. return ListDataServiceApisOutcome(outcome.error());
  2202. }
  2203. void Dataworks_publicClient::listDataServiceApisAsync(const ListDataServiceApisRequest& request, const ListDataServiceApisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2204. {
  2205. auto fn = [this, request, handler, context]()
  2206. {
  2207. handler(this, request, listDataServiceApis(request), context);
  2208. };
  2209. asyncExecute(new Runnable(fn));
  2210. }
  2211. Dataworks_publicClient::ListDataServiceApisOutcomeCallable Dataworks_publicClient::listDataServiceApisCallable(const ListDataServiceApisRequest &request) const
  2212. {
  2213. auto task = std::make_shared<std::packaged_task<ListDataServiceApisOutcome()>>(
  2214. [this, request]()
  2215. {
  2216. return this->listDataServiceApis(request);
  2217. });
  2218. asyncExecute(new Runnable([task]() { (*task)(); }));
  2219. return task->get_future();
  2220. }
  2221. Dataworks_publicClient::ListDataServiceApplicationsOutcome Dataworks_publicClient::listDataServiceApplications(const ListDataServiceApplicationsRequest &request) const
  2222. {
  2223. auto endpointOutcome = endpointProvider_->getEndpoint();
  2224. if (!endpointOutcome.isSuccess())
  2225. return ListDataServiceApplicationsOutcome(endpointOutcome.error());
  2226. auto outcome = makeRequest(endpointOutcome.result(), request);
  2227. if (outcome.isSuccess())
  2228. return ListDataServiceApplicationsOutcome(ListDataServiceApplicationsResult(outcome.result()));
  2229. else
  2230. return ListDataServiceApplicationsOutcome(outcome.error());
  2231. }
  2232. void Dataworks_publicClient::listDataServiceApplicationsAsync(const ListDataServiceApplicationsRequest& request, const ListDataServiceApplicationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2233. {
  2234. auto fn = [this, request, handler, context]()
  2235. {
  2236. handler(this, request, listDataServiceApplications(request), context);
  2237. };
  2238. asyncExecute(new Runnable(fn));
  2239. }
  2240. Dataworks_publicClient::ListDataServiceApplicationsOutcomeCallable Dataworks_publicClient::listDataServiceApplicationsCallable(const ListDataServiceApplicationsRequest &request) const
  2241. {
  2242. auto task = std::make_shared<std::packaged_task<ListDataServiceApplicationsOutcome()>>(
  2243. [this, request]()
  2244. {
  2245. return this->listDataServiceApplications(request);
  2246. });
  2247. asyncExecute(new Runnable([task]() { (*task)(); }));
  2248. return task->get_future();
  2249. }
  2250. Dataworks_publicClient::ListDataServiceAuthorizedApisOutcome Dataworks_publicClient::listDataServiceAuthorizedApis(const ListDataServiceAuthorizedApisRequest &request) const
  2251. {
  2252. auto endpointOutcome = endpointProvider_->getEndpoint();
  2253. if (!endpointOutcome.isSuccess())
  2254. return ListDataServiceAuthorizedApisOutcome(endpointOutcome.error());
  2255. auto outcome = makeRequest(endpointOutcome.result(), request);
  2256. if (outcome.isSuccess())
  2257. return ListDataServiceAuthorizedApisOutcome(ListDataServiceAuthorizedApisResult(outcome.result()));
  2258. else
  2259. return ListDataServiceAuthorizedApisOutcome(outcome.error());
  2260. }
  2261. void Dataworks_publicClient::listDataServiceAuthorizedApisAsync(const ListDataServiceAuthorizedApisRequest& request, const ListDataServiceAuthorizedApisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2262. {
  2263. auto fn = [this, request, handler, context]()
  2264. {
  2265. handler(this, request, listDataServiceAuthorizedApis(request), context);
  2266. };
  2267. asyncExecute(new Runnable(fn));
  2268. }
  2269. Dataworks_publicClient::ListDataServiceAuthorizedApisOutcomeCallable Dataworks_publicClient::listDataServiceAuthorizedApisCallable(const ListDataServiceAuthorizedApisRequest &request) const
  2270. {
  2271. auto task = std::make_shared<std::packaged_task<ListDataServiceAuthorizedApisOutcome()>>(
  2272. [this, request]()
  2273. {
  2274. return this->listDataServiceAuthorizedApis(request);
  2275. });
  2276. asyncExecute(new Runnable([task]() { (*task)(); }));
  2277. return task->get_future();
  2278. }
  2279. Dataworks_publicClient::ListDataServicePublishedApisOutcome Dataworks_publicClient::listDataServicePublishedApis(const ListDataServicePublishedApisRequest &request) const
  2280. {
  2281. auto endpointOutcome = endpointProvider_->getEndpoint();
  2282. if (!endpointOutcome.isSuccess())
  2283. return ListDataServicePublishedApisOutcome(endpointOutcome.error());
  2284. auto outcome = makeRequest(endpointOutcome.result(), request);
  2285. if (outcome.isSuccess())
  2286. return ListDataServicePublishedApisOutcome(ListDataServicePublishedApisResult(outcome.result()));
  2287. else
  2288. return ListDataServicePublishedApisOutcome(outcome.error());
  2289. }
  2290. void Dataworks_publicClient::listDataServicePublishedApisAsync(const ListDataServicePublishedApisRequest& request, const ListDataServicePublishedApisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2291. {
  2292. auto fn = [this, request, handler, context]()
  2293. {
  2294. handler(this, request, listDataServicePublishedApis(request), context);
  2295. };
  2296. asyncExecute(new Runnable(fn));
  2297. }
  2298. Dataworks_publicClient::ListDataServicePublishedApisOutcomeCallable Dataworks_publicClient::listDataServicePublishedApisCallable(const ListDataServicePublishedApisRequest &request) const
  2299. {
  2300. auto task = std::make_shared<std::packaged_task<ListDataServicePublishedApisOutcome()>>(
  2301. [this, request]()
  2302. {
  2303. return this->listDataServicePublishedApis(request);
  2304. });
  2305. asyncExecute(new Runnable([task]() { (*task)(); }));
  2306. return task->get_future();
  2307. }
  2308. Dataworks_publicClient::ListFileVersionsOutcome Dataworks_publicClient::listFileVersions(const ListFileVersionsRequest &request) const
  2309. {
  2310. auto endpointOutcome = endpointProvider_->getEndpoint();
  2311. if (!endpointOutcome.isSuccess())
  2312. return ListFileVersionsOutcome(endpointOutcome.error());
  2313. auto outcome = makeRequest(endpointOutcome.result(), request);
  2314. if (outcome.isSuccess())
  2315. return ListFileVersionsOutcome(ListFileVersionsResult(outcome.result()));
  2316. else
  2317. return ListFileVersionsOutcome(outcome.error());
  2318. }
  2319. void Dataworks_publicClient::listFileVersionsAsync(const ListFileVersionsRequest& request, const ListFileVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2320. {
  2321. auto fn = [this, request, handler, context]()
  2322. {
  2323. handler(this, request, listFileVersions(request), context);
  2324. };
  2325. asyncExecute(new Runnable(fn));
  2326. }
  2327. Dataworks_publicClient::ListFileVersionsOutcomeCallable Dataworks_publicClient::listFileVersionsCallable(const ListFileVersionsRequest &request) const
  2328. {
  2329. auto task = std::make_shared<std::packaged_task<ListFileVersionsOutcome()>>(
  2330. [this, request]()
  2331. {
  2332. return this->listFileVersions(request);
  2333. });
  2334. asyncExecute(new Runnable([task]() { (*task)(); }));
  2335. return task->get_future();
  2336. }
  2337. Dataworks_publicClient::ListFilesOutcome Dataworks_publicClient::listFiles(const ListFilesRequest &request) const
  2338. {
  2339. auto endpointOutcome = endpointProvider_->getEndpoint();
  2340. if (!endpointOutcome.isSuccess())
  2341. return ListFilesOutcome(endpointOutcome.error());
  2342. auto outcome = makeRequest(endpointOutcome.result(), request);
  2343. if (outcome.isSuccess())
  2344. return ListFilesOutcome(ListFilesResult(outcome.result()));
  2345. else
  2346. return ListFilesOutcome(outcome.error());
  2347. }
  2348. void Dataworks_publicClient::listFilesAsync(const ListFilesRequest& request, const ListFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2349. {
  2350. auto fn = [this, request, handler, context]()
  2351. {
  2352. handler(this, request, listFiles(request), context);
  2353. };
  2354. asyncExecute(new Runnable(fn));
  2355. }
  2356. Dataworks_publicClient::ListFilesOutcomeCallable Dataworks_publicClient::listFilesCallable(const ListFilesRequest &request) const
  2357. {
  2358. auto task = std::make_shared<std::packaged_task<ListFilesOutcome()>>(
  2359. [this, request]()
  2360. {
  2361. return this->listFiles(request);
  2362. });
  2363. asyncExecute(new Runnable([task]() { (*task)(); }));
  2364. return task->get_future();
  2365. }
  2366. Dataworks_publicClient::ListFoldersOutcome Dataworks_publicClient::listFolders(const ListFoldersRequest &request) const
  2367. {
  2368. auto endpointOutcome = endpointProvider_->getEndpoint();
  2369. if (!endpointOutcome.isSuccess())
  2370. return ListFoldersOutcome(endpointOutcome.error());
  2371. auto outcome = makeRequest(endpointOutcome.result(), request);
  2372. if (outcome.isSuccess())
  2373. return ListFoldersOutcome(ListFoldersResult(outcome.result()));
  2374. else
  2375. return ListFoldersOutcome(outcome.error());
  2376. }
  2377. void Dataworks_publicClient::listFoldersAsync(const ListFoldersRequest& request, const ListFoldersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2378. {
  2379. auto fn = [this, request, handler, context]()
  2380. {
  2381. handler(this, request, listFolders(request), context);
  2382. };
  2383. asyncExecute(new Runnable(fn));
  2384. }
  2385. Dataworks_publicClient::ListFoldersOutcomeCallable Dataworks_publicClient::listFoldersCallable(const ListFoldersRequest &request) const
  2386. {
  2387. auto task = std::make_shared<std::packaged_task<ListFoldersOutcome()>>(
  2388. [this, request]()
  2389. {
  2390. return this->listFolders(request);
  2391. });
  2392. asyncExecute(new Runnable([task]() { (*task)(); }));
  2393. return task->get_future();
  2394. }
  2395. Dataworks_publicClient::ListInstancesOutcome Dataworks_publicClient::listInstances(const ListInstancesRequest &request) const
  2396. {
  2397. auto endpointOutcome = endpointProvider_->getEndpoint();
  2398. if (!endpointOutcome.isSuccess())
  2399. return ListInstancesOutcome(endpointOutcome.error());
  2400. auto outcome = makeRequest(endpointOutcome.result(), request);
  2401. if (outcome.isSuccess())
  2402. return ListInstancesOutcome(ListInstancesResult(outcome.result()));
  2403. else
  2404. return ListInstancesOutcome(outcome.error());
  2405. }
  2406. void Dataworks_publicClient::listInstancesAsync(const ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2407. {
  2408. auto fn = [this, request, handler, context]()
  2409. {
  2410. handler(this, request, listInstances(request), context);
  2411. };
  2412. asyncExecute(new Runnable(fn));
  2413. }
  2414. Dataworks_publicClient::ListInstancesOutcomeCallable Dataworks_publicClient::listInstancesCallable(const ListInstancesRequest &request) const
  2415. {
  2416. auto task = std::make_shared<std::packaged_task<ListInstancesOutcome()>>(
  2417. [this, request]()
  2418. {
  2419. return this->listInstances(request);
  2420. });
  2421. asyncExecute(new Runnable([task]() { (*task)(); }));
  2422. return task->get_future();
  2423. }
  2424. Dataworks_publicClient::ListNodeIOOutcome Dataworks_publicClient::listNodeIO(const ListNodeIORequest &request) const
  2425. {
  2426. auto endpointOutcome = endpointProvider_->getEndpoint();
  2427. if (!endpointOutcome.isSuccess())
  2428. return ListNodeIOOutcome(endpointOutcome.error());
  2429. auto outcome = makeRequest(endpointOutcome.result(), request);
  2430. if (outcome.isSuccess())
  2431. return ListNodeIOOutcome(ListNodeIOResult(outcome.result()));
  2432. else
  2433. return ListNodeIOOutcome(outcome.error());
  2434. }
  2435. void Dataworks_publicClient::listNodeIOAsync(const ListNodeIORequest& request, const ListNodeIOAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2436. {
  2437. auto fn = [this, request, handler, context]()
  2438. {
  2439. handler(this, request, listNodeIO(request), context);
  2440. };
  2441. asyncExecute(new Runnable(fn));
  2442. }
  2443. Dataworks_publicClient::ListNodeIOOutcomeCallable Dataworks_publicClient::listNodeIOCallable(const ListNodeIORequest &request) const
  2444. {
  2445. auto task = std::make_shared<std::packaged_task<ListNodeIOOutcome()>>(
  2446. [this, request]()
  2447. {
  2448. return this->listNodeIO(request);
  2449. });
  2450. asyncExecute(new Runnable([task]() { (*task)(); }));
  2451. return task->get_future();
  2452. }
  2453. Dataworks_publicClient::ListNodesOutcome Dataworks_publicClient::listNodes(const ListNodesRequest &request) const
  2454. {
  2455. auto endpointOutcome = endpointProvider_->getEndpoint();
  2456. if (!endpointOutcome.isSuccess())
  2457. return ListNodesOutcome(endpointOutcome.error());
  2458. auto outcome = makeRequest(endpointOutcome.result(), request);
  2459. if (outcome.isSuccess())
  2460. return ListNodesOutcome(ListNodesResult(outcome.result()));
  2461. else
  2462. return ListNodesOutcome(outcome.error());
  2463. }
  2464. void Dataworks_publicClient::listNodesAsync(const ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2465. {
  2466. auto fn = [this, request, handler, context]()
  2467. {
  2468. handler(this, request, listNodes(request), context);
  2469. };
  2470. asyncExecute(new Runnable(fn));
  2471. }
  2472. Dataworks_publicClient::ListNodesOutcomeCallable Dataworks_publicClient::listNodesCallable(const ListNodesRequest &request) const
  2473. {
  2474. auto task = std::make_shared<std::packaged_task<ListNodesOutcome()>>(
  2475. [this, request]()
  2476. {
  2477. return this->listNodes(request);
  2478. });
  2479. asyncExecute(new Runnable([task]() { (*task)(); }));
  2480. return task->get_future();
  2481. }
  2482. Dataworks_publicClient::ListQualityRulesOutcome Dataworks_publicClient::listQualityRules(const ListQualityRulesRequest &request) const
  2483. {
  2484. auto endpointOutcome = endpointProvider_->getEndpoint();
  2485. if (!endpointOutcome.isSuccess())
  2486. return ListQualityRulesOutcome(endpointOutcome.error());
  2487. auto outcome = makeRequest(endpointOutcome.result(), request);
  2488. if (outcome.isSuccess())
  2489. return ListQualityRulesOutcome(ListQualityRulesResult(outcome.result()));
  2490. else
  2491. return ListQualityRulesOutcome(outcome.error());
  2492. }
  2493. void Dataworks_publicClient::listQualityRulesAsync(const ListQualityRulesRequest& request, const ListQualityRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2494. {
  2495. auto fn = [this, request, handler, context]()
  2496. {
  2497. handler(this, request, listQualityRules(request), context);
  2498. };
  2499. asyncExecute(new Runnable(fn));
  2500. }
  2501. Dataworks_publicClient::ListQualityRulesOutcomeCallable Dataworks_publicClient::listQualityRulesCallable(const ListQualityRulesRequest &request) const
  2502. {
  2503. auto task = std::make_shared<std::packaged_task<ListQualityRulesOutcome()>>(
  2504. [this, request]()
  2505. {
  2506. return this->listQualityRules(request);
  2507. });
  2508. asyncExecute(new Runnable([task]() { (*task)(); }));
  2509. return task->get_future();
  2510. }
  2511. Dataworks_publicClient::ListRemindsOutcome Dataworks_publicClient::listReminds(const ListRemindsRequest &request) const
  2512. {
  2513. auto endpointOutcome = endpointProvider_->getEndpoint();
  2514. if (!endpointOutcome.isSuccess())
  2515. return ListRemindsOutcome(endpointOutcome.error());
  2516. auto outcome = makeRequest(endpointOutcome.result(), request);
  2517. if (outcome.isSuccess())
  2518. return ListRemindsOutcome(ListRemindsResult(outcome.result()));
  2519. else
  2520. return ListRemindsOutcome(outcome.error());
  2521. }
  2522. void Dataworks_publicClient::listRemindsAsync(const ListRemindsRequest& request, const ListRemindsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2523. {
  2524. auto fn = [this, request, handler, context]()
  2525. {
  2526. handler(this, request, listReminds(request), context);
  2527. };
  2528. asyncExecute(new Runnable(fn));
  2529. }
  2530. Dataworks_publicClient::ListRemindsOutcomeCallable Dataworks_publicClient::listRemindsCallable(const ListRemindsRequest &request) const
  2531. {
  2532. auto task = std::make_shared<std::packaged_task<ListRemindsOutcome()>>(
  2533. [this, request]()
  2534. {
  2535. return this->listReminds(request);
  2536. });
  2537. asyncExecute(new Runnable([task]() { (*task)(); }));
  2538. return task->get_future();
  2539. }
  2540. Dataworks_publicClient::ListResourceGroupsOutcome Dataworks_publicClient::listResourceGroups(const ListResourceGroupsRequest &request) const
  2541. {
  2542. auto endpointOutcome = endpointProvider_->getEndpoint();
  2543. if (!endpointOutcome.isSuccess())
  2544. return ListResourceGroupsOutcome(endpointOutcome.error());
  2545. auto outcome = makeRequest(endpointOutcome.result(), request);
  2546. if (outcome.isSuccess())
  2547. return ListResourceGroupsOutcome(ListResourceGroupsResult(outcome.result()));
  2548. else
  2549. return ListResourceGroupsOutcome(outcome.error());
  2550. }
  2551. void Dataworks_publicClient::listResourceGroupsAsync(const ListResourceGroupsRequest& request, const ListResourceGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2552. {
  2553. auto fn = [this, request, handler, context]()
  2554. {
  2555. handler(this, request, listResourceGroups(request), context);
  2556. };
  2557. asyncExecute(new Runnable(fn));
  2558. }
  2559. Dataworks_publicClient::ListResourceGroupsOutcomeCallable Dataworks_publicClient::listResourceGroupsCallable(const ListResourceGroupsRequest &request) const
  2560. {
  2561. auto task = std::make_shared<std::packaged_task<ListResourceGroupsOutcome()>>(
  2562. [this, request]()
  2563. {
  2564. return this->listResourceGroups(request);
  2565. });
  2566. asyncExecute(new Runnable([task]() { (*task)(); }));
  2567. return task->get_future();
  2568. }
  2569. Dataworks_publicClient::ListTopicsOutcome Dataworks_publicClient::listTopics(const ListTopicsRequest &request) const
  2570. {
  2571. auto endpointOutcome = endpointProvider_->getEndpoint();
  2572. if (!endpointOutcome.isSuccess())
  2573. return ListTopicsOutcome(endpointOutcome.error());
  2574. auto outcome = makeRequest(endpointOutcome.result(), request);
  2575. if (outcome.isSuccess())
  2576. return ListTopicsOutcome(ListTopicsResult(outcome.result()));
  2577. else
  2578. return ListTopicsOutcome(outcome.error());
  2579. }
  2580. void Dataworks_publicClient::listTopicsAsync(const ListTopicsRequest& request, const ListTopicsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2581. {
  2582. auto fn = [this, request, handler, context]()
  2583. {
  2584. handler(this, request, listTopics(request), context);
  2585. };
  2586. asyncExecute(new Runnable(fn));
  2587. }
  2588. Dataworks_publicClient::ListTopicsOutcomeCallable Dataworks_publicClient::listTopicsCallable(const ListTopicsRequest &request) const
  2589. {
  2590. auto task = std::make_shared<std::packaged_task<ListTopicsOutcome()>>(
  2591. [this, request]()
  2592. {
  2593. return this->listTopics(request);
  2594. });
  2595. asyncExecute(new Runnable([task]() { (*task)(); }));
  2596. return task->get_future();
  2597. }
  2598. Dataworks_publicClient::PublishDataServiceApiOutcome Dataworks_publicClient::publishDataServiceApi(const PublishDataServiceApiRequest &request) const
  2599. {
  2600. auto endpointOutcome = endpointProvider_->getEndpoint();
  2601. if (!endpointOutcome.isSuccess())
  2602. return PublishDataServiceApiOutcome(endpointOutcome.error());
  2603. auto outcome = makeRequest(endpointOutcome.result(), request);
  2604. if (outcome.isSuccess())
  2605. return PublishDataServiceApiOutcome(PublishDataServiceApiResult(outcome.result()));
  2606. else
  2607. return PublishDataServiceApiOutcome(outcome.error());
  2608. }
  2609. void Dataworks_publicClient::publishDataServiceApiAsync(const PublishDataServiceApiRequest& request, const PublishDataServiceApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2610. {
  2611. auto fn = [this, request, handler, context]()
  2612. {
  2613. handler(this, request, publishDataServiceApi(request), context);
  2614. };
  2615. asyncExecute(new Runnable(fn));
  2616. }
  2617. Dataworks_publicClient::PublishDataServiceApiOutcomeCallable Dataworks_publicClient::publishDataServiceApiCallable(const PublishDataServiceApiRequest &request) const
  2618. {
  2619. auto task = std::make_shared<std::packaged_task<PublishDataServiceApiOutcome()>>(
  2620. [this, request]()
  2621. {
  2622. return this->publishDataServiceApi(request);
  2623. });
  2624. asyncExecute(new Runnable([task]() { (*task)(); }));
  2625. return task->get_future();
  2626. }
  2627. Dataworks_publicClient::RestartInstanceOutcome Dataworks_publicClient::restartInstance(const RestartInstanceRequest &request) const
  2628. {
  2629. auto endpointOutcome = endpointProvider_->getEndpoint();
  2630. if (!endpointOutcome.isSuccess())
  2631. return RestartInstanceOutcome(endpointOutcome.error());
  2632. auto outcome = makeRequest(endpointOutcome.result(), request);
  2633. if (outcome.isSuccess())
  2634. return RestartInstanceOutcome(RestartInstanceResult(outcome.result()));
  2635. else
  2636. return RestartInstanceOutcome(outcome.error());
  2637. }
  2638. void Dataworks_publicClient::restartInstanceAsync(const RestartInstanceRequest& request, const RestartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2639. {
  2640. auto fn = [this, request, handler, context]()
  2641. {
  2642. handler(this, request, restartInstance(request), context);
  2643. };
  2644. asyncExecute(new Runnable(fn));
  2645. }
  2646. Dataworks_publicClient::RestartInstanceOutcomeCallable Dataworks_publicClient::restartInstanceCallable(const RestartInstanceRequest &request) const
  2647. {
  2648. auto task = std::make_shared<std::packaged_task<RestartInstanceOutcome()>>(
  2649. [this, request]()
  2650. {
  2651. return this->restartInstance(request);
  2652. });
  2653. asyncExecute(new Runnable([task]() { (*task)(); }));
  2654. return task->get_future();
  2655. }
  2656. Dataworks_publicClient::ResumeInstanceOutcome Dataworks_publicClient::resumeInstance(const ResumeInstanceRequest &request) const
  2657. {
  2658. auto endpointOutcome = endpointProvider_->getEndpoint();
  2659. if (!endpointOutcome.isSuccess())
  2660. return ResumeInstanceOutcome(endpointOutcome.error());
  2661. auto outcome = makeRequest(endpointOutcome.result(), request);
  2662. if (outcome.isSuccess())
  2663. return ResumeInstanceOutcome(ResumeInstanceResult(outcome.result()));
  2664. else
  2665. return ResumeInstanceOutcome(outcome.error());
  2666. }
  2667. void Dataworks_publicClient::resumeInstanceAsync(const ResumeInstanceRequest& request, const ResumeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2668. {
  2669. auto fn = [this, request, handler, context]()
  2670. {
  2671. handler(this, request, resumeInstance(request), context);
  2672. };
  2673. asyncExecute(new Runnable(fn));
  2674. }
  2675. Dataworks_publicClient::ResumeInstanceOutcomeCallable Dataworks_publicClient::resumeInstanceCallable(const ResumeInstanceRequest &request) const
  2676. {
  2677. auto task = std::make_shared<std::packaged_task<ResumeInstanceOutcome()>>(
  2678. [this, request]()
  2679. {
  2680. return this->resumeInstance(request);
  2681. });
  2682. asyncExecute(new Runnable([task]() { (*task)(); }));
  2683. return task->get_future();
  2684. }
  2685. Dataworks_publicClient::SearchMetaTablesOutcome Dataworks_publicClient::searchMetaTables(const SearchMetaTablesRequest &request) const
  2686. {
  2687. auto endpointOutcome = endpointProvider_->getEndpoint();
  2688. if (!endpointOutcome.isSuccess())
  2689. return SearchMetaTablesOutcome(endpointOutcome.error());
  2690. auto outcome = makeRequest(endpointOutcome.result(), request);
  2691. if (outcome.isSuccess())
  2692. return SearchMetaTablesOutcome(SearchMetaTablesResult(outcome.result()));
  2693. else
  2694. return SearchMetaTablesOutcome(outcome.error());
  2695. }
  2696. void Dataworks_publicClient::searchMetaTablesAsync(const SearchMetaTablesRequest& request, const SearchMetaTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2697. {
  2698. auto fn = [this, request, handler, context]()
  2699. {
  2700. handler(this, request, searchMetaTables(request), context);
  2701. };
  2702. asyncExecute(new Runnable(fn));
  2703. }
  2704. Dataworks_publicClient::SearchMetaTablesOutcomeCallable Dataworks_publicClient::searchMetaTablesCallable(const SearchMetaTablesRequest &request) const
  2705. {
  2706. auto task = std::make_shared<std::packaged_task<SearchMetaTablesOutcome()>>(
  2707. [this, request]()
  2708. {
  2709. return this->searchMetaTables(request);
  2710. });
  2711. asyncExecute(new Runnable([task]() { (*task)(); }));
  2712. return task->get_future();
  2713. }
  2714. Dataworks_publicClient::SetSuccessInstanceOutcome Dataworks_publicClient::setSuccessInstance(const SetSuccessInstanceRequest &request) const
  2715. {
  2716. auto endpointOutcome = endpointProvider_->getEndpoint();
  2717. if (!endpointOutcome.isSuccess())
  2718. return SetSuccessInstanceOutcome(endpointOutcome.error());
  2719. auto outcome = makeRequest(endpointOutcome.result(), request);
  2720. if (outcome.isSuccess())
  2721. return SetSuccessInstanceOutcome(SetSuccessInstanceResult(outcome.result()));
  2722. else
  2723. return SetSuccessInstanceOutcome(outcome.error());
  2724. }
  2725. void Dataworks_publicClient::setSuccessInstanceAsync(const SetSuccessInstanceRequest& request, const SetSuccessInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2726. {
  2727. auto fn = [this, request, handler, context]()
  2728. {
  2729. handler(this, request, setSuccessInstance(request), context);
  2730. };
  2731. asyncExecute(new Runnable(fn));
  2732. }
  2733. Dataworks_publicClient::SetSuccessInstanceOutcomeCallable Dataworks_publicClient::setSuccessInstanceCallable(const SetSuccessInstanceRequest &request) const
  2734. {
  2735. auto task = std::make_shared<std::packaged_task<SetSuccessInstanceOutcome()>>(
  2736. [this, request]()
  2737. {
  2738. return this->setSuccessInstance(request);
  2739. });
  2740. asyncExecute(new Runnable([task]() { (*task)(); }));
  2741. return task->get_future();
  2742. }
  2743. Dataworks_publicClient::StopInstanceOutcome Dataworks_publicClient::stopInstance(const StopInstanceRequest &request) const
  2744. {
  2745. auto endpointOutcome = endpointProvider_->getEndpoint();
  2746. if (!endpointOutcome.isSuccess())
  2747. return StopInstanceOutcome(endpointOutcome.error());
  2748. auto outcome = makeRequest(endpointOutcome.result(), request);
  2749. if (outcome.isSuccess())
  2750. return StopInstanceOutcome(StopInstanceResult(outcome.result()));
  2751. else
  2752. return StopInstanceOutcome(outcome.error());
  2753. }
  2754. void Dataworks_publicClient::stopInstanceAsync(const StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2755. {
  2756. auto fn = [this, request, handler, context]()
  2757. {
  2758. handler(this, request, stopInstance(request), context);
  2759. };
  2760. asyncExecute(new Runnable(fn));
  2761. }
  2762. Dataworks_publicClient::StopInstanceOutcomeCallable Dataworks_publicClient::stopInstanceCallable(const StopInstanceRequest &request) const
  2763. {
  2764. auto task = std::make_shared<std::packaged_task<StopInstanceOutcome()>>(
  2765. [this, request]()
  2766. {
  2767. return this->stopInstance(request);
  2768. });
  2769. asyncExecute(new Runnable([task]() { (*task)(); }));
  2770. return task->get_future();
  2771. }
  2772. Dataworks_publicClient::SubmitFileOutcome Dataworks_publicClient::submitFile(const SubmitFileRequest &request) const
  2773. {
  2774. auto endpointOutcome = endpointProvider_->getEndpoint();
  2775. if (!endpointOutcome.isSuccess())
  2776. return SubmitFileOutcome(endpointOutcome.error());
  2777. auto outcome = makeRequest(endpointOutcome.result(), request);
  2778. if (outcome.isSuccess())
  2779. return SubmitFileOutcome(SubmitFileResult(outcome.result()));
  2780. else
  2781. return SubmitFileOutcome(outcome.error());
  2782. }
  2783. void Dataworks_publicClient::submitFileAsync(const SubmitFileRequest& request, const SubmitFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2784. {
  2785. auto fn = [this, request, handler, context]()
  2786. {
  2787. handler(this, request, submitFile(request), context);
  2788. };
  2789. asyncExecute(new Runnable(fn));
  2790. }
  2791. Dataworks_publicClient::SubmitFileOutcomeCallable Dataworks_publicClient::submitFileCallable(const SubmitFileRequest &request) const
  2792. {
  2793. auto task = std::make_shared<std::packaged_task<SubmitFileOutcome()>>(
  2794. [this, request]()
  2795. {
  2796. return this->submitFile(request);
  2797. });
  2798. asyncExecute(new Runnable([task]() { (*task)(); }));
  2799. return task->get_future();
  2800. }
  2801. Dataworks_publicClient::SuspendInstanceOutcome Dataworks_publicClient::suspendInstance(const SuspendInstanceRequest &request) const
  2802. {
  2803. auto endpointOutcome = endpointProvider_->getEndpoint();
  2804. if (!endpointOutcome.isSuccess())
  2805. return SuspendInstanceOutcome(endpointOutcome.error());
  2806. auto outcome = makeRequest(endpointOutcome.result(), request);
  2807. if (outcome.isSuccess())
  2808. return SuspendInstanceOutcome(SuspendInstanceResult(outcome.result()));
  2809. else
  2810. return SuspendInstanceOutcome(outcome.error());
  2811. }
  2812. void Dataworks_publicClient::suspendInstanceAsync(const SuspendInstanceRequest& request, const SuspendInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2813. {
  2814. auto fn = [this, request, handler, context]()
  2815. {
  2816. handler(this, request, suspendInstance(request), context);
  2817. };
  2818. asyncExecute(new Runnable(fn));
  2819. }
  2820. Dataworks_publicClient::SuspendInstanceOutcomeCallable Dataworks_publicClient::suspendInstanceCallable(const SuspendInstanceRequest &request) const
  2821. {
  2822. auto task = std::make_shared<std::packaged_task<SuspendInstanceOutcome()>>(
  2823. [this, request]()
  2824. {
  2825. return this->suspendInstance(request);
  2826. });
  2827. asyncExecute(new Runnable([task]() { (*task)(); }));
  2828. return task->get_future();
  2829. }
  2830. Dataworks_publicClient::UpdateBusinessOutcome Dataworks_publicClient::updateBusiness(const UpdateBusinessRequest &request) const
  2831. {
  2832. auto endpointOutcome = endpointProvider_->getEndpoint();
  2833. if (!endpointOutcome.isSuccess())
  2834. return UpdateBusinessOutcome(endpointOutcome.error());
  2835. auto outcome = makeRequest(endpointOutcome.result(), request);
  2836. if (outcome.isSuccess())
  2837. return UpdateBusinessOutcome(UpdateBusinessResult(outcome.result()));
  2838. else
  2839. return UpdateBusinessOutcome(outcome.error());
  2840. }
  2841. void Dataworks_publicClient::updateBusinessAsync(const UpdateBusinessRequest& request, const UpdateBusinessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2842. {
  2843. auto fn = [this, request, handler, context]()
  2844. {
  2845. handler(this, request, updateBusiness(request), context);
  2846. };
  2847. asyncExecute(new Runnable(fn));
  2848. }
  2849. Dataworks_publicClient::UpdateBusinessOutcomeCallable Dataworks_publicClient::updateBusinessCallable(const UpdateBusinessRequest &request) const
  2850. {
  2851. auto task = std::make_shared<std::packaged_task<UpdateBusinessOutcome()>>(
  2852. [this, request]()
  2853. {
  2854. return this->updateBusiness(request);
  2855. });
  2856. asyncExecute(new Runnable([task]() { (*task)(); }));
  2857. return task->get_future();
  2858. }
  2859. Dataworks_publicClient::UpdateConnectionOutcome Dataworks_publicClient::updateConnection(const UpdateConnectionRequest &request) const
  2860. {
  2861. auto endpointOutcome = endpointProvider_->getEndpoint();
  2862. if (!endpointOutcome.isSuccess())
  2863. return UpdateConnectionOutcome(endpointOutcome.error());
  2864. auto outcome = makeRequest(endpointOutcome.result(), request);
  2865. if (outcome.isSuccess())
  2866. return UpdateConnectionOutcome(UpdateConnectionResult(outcome.result()));
  2867. else
  2868. return UpdateConnectionOutcome(outcome.error());
  2869. }
  2870. void Dataworks_publicClient::updateConnectionAsync(const UpdateConnectionRequest& request, const UpdateConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2871. {
  2872. auto fn = [this, request, handler, context]()
  2873. {
  2874. handler(this, request, updateConnection(request), context);
  2875. };
  2876. asyncExecute(new Runnable(fn));
  2877. }
  2878. Dataworks_publicClient::UpdateConnectionOutcomeCallable Dataworks_publicClient::updateConnectionCallable(const UpdateConnectionRequest &request) const
  2879. {
  2880. auto task = std::make_shared<std::packaged_task<UpdateConnectionOutcome()>>(
  2881. [this, request]()
  2882. {
  2883. return this->updateConnection(request);
  2884. });
  2885. asyncExecute(new Runnable([task]() { (*task)(); }));
  2886. return task->get_future();
  2887. }
  2888. Dataworks_publicClient::UpdateDataServiceApiOutcome Dataworks_publicClient::updateDataServiceApi(const UpdateDataServiceApiRequest &request) const
  2889. {
  2890. auto endpointOutcome = endpointProvider_->getEndpoint();
  2891. if (!endpointOutcome.isSuccess())
  2892. return UpdateDataServiceApiOutcome(endpointOutcome.error());
  2893. auto outcome = makeRequest(endpointOutcome.result(), request);
  2894. if (outcome.isSuccess())
  2895. return UpdateDataServiceApiOutcome(UpdateDataServiceApiResult(outcome.result()));
  2896. else
  2897. return UpdateDataServiceApiOutcome(outcome.error());
  2898. }
  2899. void Dataworks_publicClient::updateDataServiceApiAsync(const UpdateDataServiceApiRequest& request, const UpdateDataServiceApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2900. {
  2901. auto fn = [this, request, handler, context]()
  2902. {
  2903. handler(this, request, updateDataServiceApi(request), context);
  2904. };
  2905. asyncExecute(new Runnable(fn));
  2906. }
  2907. Dataworks_publicClient::UpdateDataServiceApiOutcomeCallable Dataworks_publicClient::updateDataServiceApiCallable(const UpdateDataServiceApiRequest &request) const
  2908. {
  2909. auto task = std::make_shared<std::packaged_task<UpdateDataServiceApiOutcome()>>(
  2910. [this, request]()
  2911. {
  2912. return this->updateDataServiceApi(request);
  2913. });
  2914. asyncExecute(new Runnable([task]() { (*task)(); }));
  2915. return task->get_future();
  2916. }
  2917. Dataworks_publicClient::UpdateFileOutcome Dataworks_publicClient::updateFile(const UpdateFileRequest &request) const
  2918. {
  2919. auto endpointOutcome = endpointProvider_->getEndpoint();
  2920. if (!endpointOutcome.isSuccess())
  2921. return UpdateFileOutcome(endpointOutcome.error());
  2922. auto outcome = makeRequest(endpointOutcome.result(), request);
  2923. if (outcome.isSuccess())
  2924. return UpdateFileOutcome(UpdateFileResult(outcome.result()));
  2925. else
  2926. return UpdateFileOutcome(outcome.error());
  2927. }
  2928. void Dataworks_publicClient::updateFileAsync(const UpdateFileRequest& request, const UpdateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2929. {
  2930. auto fn = [this, request, handler, context]()
  2931. {
  2932. handler(this, request, updateFile(request), context);
  2933. };
  2934. asyncExecute(new Runnable(fn));
  2935. }
  2936. Dataworks_publicClient::UpdateFileOutcomeCallable Dataworks_publicClient::updateFileCallable(const UpdateFileRequest &request) const
  2937. {
  2938. auto task = std::make_shared<std::packaged_task<UpdateFileOutcome()>>(
  2939. [this, request]()
  2940. {
  2941. return this->updateFile(request);
  2942. });
  2943. asyncExecute(new Runnable([task]() { (*task)(); }));
  2944. return task->get_future();
  2945. }
  2946. Dataworks_publicClient::UpdateFolderOutcome Dataworks_publicClient::updateFolder(const UpdateFolderRequest &request) const
  2947. {
  2948. auto endpointOutcome = endpointProvider_->getEndpoint();
  2949. if (!endpointOutcome.isSuccess())
  2950. return UpdateFolderOutcome(endpointOutcome.error());
  2951. auto outcome = makeRequest(endpointOutcome.result(), request);
  2952. if (outcome.isSuccess())
  2953. return UpdateFolderOutcome(UpdateFolderResult(outcome.result()));
  2954. else
  2955. return UpdateFolderOutcome(outcome.error());
  2956. }
  2957. void Dataworks_publicClient::updateFolderAsync(const UpdateFolderRequest& request, const UpdateFolderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2958. {
  2959. auto fn = [this, request, handler, context]()
  2960. {
  2961. handler(this, request, updateFolder(request), context);
  2962. };
  2963. asyncExecute(new Runnable(fn));
  2964. }
  2965. Dataworks_publicClient::UpdateFolderOutcomeCallable Dataworks_publicClient::updateFolderCallable(const UpdateFolderRequest &request) const
  2966. {
  2967. auto task = std::make_shared<std::packaged_task<UpdateFolderOutcome()>>(
  2968. [this, request]()
  2969. {
  2970. return this->updateFolder(request);
  2971. });
  2972. asyncExecute(new Runnable([task]() { (*task)(); }));
  2973. return task->get_future();
  2974. }
  2975. Dataworks_publicClient::UpdateMetaCategoryOutcome Dataworks_publicClient::updateMetaCategory(const UpdateMetaCategoryRequest &request) const
  2976. {
  2977. auto endpointOutcome = endpointProvider_->getEndpoint();
  2978. if (!endpointOutcome.isSuccess())
  2979. return UpdateMetaCategoryOutcome(endpointOutcome.error());
  2980. auto outcome = makeRequest(endpointOutcome.result(), request);
  2981. if (outcome.isSuccess())
  2982. return UpdateMetaCategoryOutcome(UpdateMetaCategoryResult(outcome.result()));
  2983. else
  2984. return UpdateMetaCategoryOutcome(outcome.error());
  2985. }
  2986. void Dataworks_publicClient::updateMetaCategoryAsync(const UpdateMetaCategoryRequest& request, const UpdateMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  2987. {
  2988. auto fn = [this, request, handler, context]()
  2989. {
  2990. handler(this, request, updateMetaCategory(request), context);
  2991. };
  2992. asyncExecute(new Runnable(fn));
  2993. }
  2994. Dataworks_publicClient::UpdateMetaCategoryOutcomeCallable Dataworks_publicClient::updateMetaCategoryCallable(const UpdateMetaCategoryRequest &request) const
  2995. {
  2996. auto task = std::make_shared<std::packaged_task<UpdateMetaCategoryOutcome()>>(
  2997. [this, request]()
  2998. {
  2999. return this->updateMetaCategory(request);
  3000. });
  3001. asyncExecute(new Runnable([task]() { (*task)(); }));
  3002. return task->get_future();
  3003. }
  3004. Dataworks_publicClient::UpdateQualityFollowerOutcome Dataworks_publicClient::updateQualityFollower(const UpdateQualityFollowerRequest &request) const
  3005. {
  3006. auto endpointOutcome = endpointProvider_->getEndpoint();
  3007. if (!endpointOutcome.isSuccess())
  3008. return UpdateQualityFollowerOutcome(endpointOutcome.error());
  3009. auto outcome = makeRequest(endpointOutcome.result(), request);
  3010. if (outcome.isSuccess())
  3011. return UpdateQualityFollowerOutcome(UpdateQualityFollowerResult(outcome.result()));
  3012. else
  3013. return UpdateQualityFollowerOutcome(outcome.error());
  3014. }
  3015. void Dataworks_publicClient::updateQualityFollowerAsync(const UpdateQualityFollowerRequest& request, const UpdateQualityFollowerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  3016. {
  3017. auto fn = [this, request, handler, context]()
  3018. {
  3019. handler(this, request, updateQualityFollower(request), context);
  3020. };
  3021. asyncExecute(new Runnable(fn));
  3022. }
  3023. Dataworks_publicClient::UpdateQualityFollowerOutcomeCallable Dataworks_publicClient::updateQualityFollowerCallable(const UpdateQualityFollowerRequest &request) const
  3024. {
  3025. auto task = std::make_shared<std::packaged_task<UpdateQualityFollowerOutcome()>>(
  3026. [this, request]()
  3027. {
  3028. return this->updateQualityFollower(request);
  3029. });
  3030. asyncExecute(new Runnable([task]() { (*task)(); }));
  3031. return task->get_future();
  3032. }
  3033. Dataworks_publicClient::UpdateQualityRuleOutcome Dataworks_publicClient::updateQualityRule(const UpdateQualityRuleRequest &request) const
  3034. {
  3035. auto endpointOutcome = endpointProvider_->getEndpoint();
  3036. if (!endpointOutcome.isSuccess())
  3037. return UpdateQualityRuleOutcome(endpointOutcome.error());
  3038. auto outcome = makeRequest(endpointOutcome.result(), request);
  3039. if (outcome.isSuccess())
  3040. return UpdateQualityRuleOutcome(UpdateQualityRuleResult(outcome.result()));
  3041. else
  3042. return UpdateQualityRuleOutcome(outcome.error());
  3043. }
  3044. void Dataworks_publicClient::updateQualityRuleAsync(const UpdateQualityRuleRequest& request, const UpdateQualityRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  3045. {
  3046. auto fn = [this, request, handler, context]()
  3047. {
  3048. handler(this, request, updateQualityRule(request), context);
  3049. };
  3050. asyncExecute(new Runnable(fn));
  3051. }
  3052. Dataworks_publicClient::UpdateQualityRuleOutcomeCallable Dataworks_publicClient::updateQualityRuleCallable(const UpdateQualityRuleRequest &request) const
  3053. {
  3054. auto task = std::make_shared<std::packaged_task<UpdateQualityRuleOutcome()>>(
  3055. [this, request]()
  3056. {
  3057. return this->updateQualityRule(request);
  3058. });
  3059. asyncExecute(new Runnable([task]() { (*task)(); }));
  3060. return task->get_future();
  3061. }
  3062. Dataworks_publicClient::UpdateRemindOutcome Dataworks_publicClient::updateRemind(const UpdateRemindRequest &request) const
  3063. {
  3064. auto endpointOutcome = endpointProvider_->getEndpoint();
  3065. if (!endpointOutcome.isSuccess())
  3066. return UpdateRemindOutcome(endpointOutcome.error());
  3067. auto outcome = makeRequest(endpointOutcome.result(), request);
  3068. if (outcome.isSuccess())
  3069. return UpdateRemindOutcome(UpdateRemindResult(outcome.result()));
  3070. else
  3071. return UpdateRemindOutcome(outcome.error());
  3072. }
  3073. void Dataworks_publicClient::updateRemindAsync(const UpdateRemindRequest& request, const UpdateRemindAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  3074. {
  3075. auto fn = [this, request, handler, context]()
  3076. {
  3077. handler(this, request, updateRemind(request), context);
  3078. };
  3079. asyncExecute(new Runnable(fn));
  3080. }
  3081. Dataworks_publicClient::UpdateRemindOutcomeCallable Dataworks_publicClient::updateRemindCallable(const UpdateRemindRequest &request) const
  3082. {
  3083. auto task = std::make_shared<std::packaged_task<UpdateRemindOutcome()>>(
  3084. [this, request]()
  3085. {
  3086. return this->updateRemind(request);
  3087. });
  3088. asyncExecute(new Runnable([task]() { (*task)(); }));
  3089. return task->get_future();
  3090. }
  3091. Dataworks_publicClient::UpdateUdfFileOutcome Dataworks_publicClient::updateUdfFile(const UpdateUdfFileRequest &request) const
  3092. {
  3093. auto endpointOutcome = endpointProvider_->getEndpoint();
  3094. if (!endpointOutcome.isSuccess())
  3095. return UpdateUdfFileOutcome(endpointOutcome.error());
  3096. auto outcome = makeRequest(endpointOutcome.result(), request);
  3097. if (outcome.isSuccess())
  3098. return UpdateUdfFileOutcome(UpdateUdfFileResult(outcome.result()));
  3099. else
  3100. return UpdateUdfFileOutcome(outcome.error());
  3101. }
  3102. void Dataworks_publicClient::updateUdfFileAsync(const UpdateUdfFileRequest& request, const UpdateUdfFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
  3103. {
  3104. auto fn = [this, request, handler, context]()
  3105. {
  3106. handler(this, request, updateUdfFile(request), context);
  3107. };
  3108. asyncExecute(new Runnable(fn));
  3109. }
  3110. Dataworks_publicClient::UpdateUdfFileOutcomeCallable Dataworks_publicClient::updateUdfFileCallable(const UpdateUdfFileRequest &request) const
  3111. {
  3112. auto task = std::make_shared<std::packaged_task<UpdateUdfFileOutcome()>>(
  3113. [this, request]()
  3114. {
  3115. return this->updateUdfFile(request);
  3116. });
  3117. asyncExecute(new Runnable([task]() { (*task)(); }));
  3118. return task->get_future();
  3119. }