googletoolresults.pp 104 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412
  1. unit googletoolresults;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAny = Class;
  9. TDuration = Class;
  10. TExecution = Class;
  11. TFailureDetail = Class;
  12. TFileReference = Class;
  13. THistory = Class;
  14. TImage = Class;
  15. TInconclusiveDetail = Class;
  16. TListExecutionsResponse = Class;
  17. TListHistoriesResponse = Class;
  18. TListStepThumbnailsResponse = Class;
  19. TListStepsResponse = Class;
  20. TOutcome = Class;
  21. TProjectSettings = Class;
  22. TPublishXunitXmlFilesRequest = Class;
  23. TSkippedDetail = Class;
  24. TStackTrace = Class;
  25. TStatus = Class;
  26. TStep = Class;
  27. TStepDimensionValueEntry = Class;
  28. TStepLabelsEntry = Class;
  29. TSuccessDetail = Class;
  30. TTestCaseReference = Class;
  31. TTestExecutionStep = Class;
  32. TTestIssue = Class;
  33. TTestSuiteOverview = Class;
  34. TTestTiming = Class;
  35. TThumbnail = Class;
  36. TTimestamp = Class;
  37. TToolExecution = Class;
  38. TToolExecutionStep = Class;
  39. TToolExitCode = Class;
  40. TToolOutputReference = Class;
  41. TAnyArray = Array of TAny;
  42. TDurationArray = Array of TDuration;
  43. TExecutionArray = Array of TExecution;
  44. TFailureDetailArray = Array of TFailureDetail;
  45. TFileReferenceArray = Array of TFileReference;
  46. THistoryArray = Array of THistory;
  47. TImageArray = Array of TImage;
  48. TInconclusiveDetailArray = Array of TInconclusiveDetail;
  49. TListExecutionsResponseArray = Array of TListExecutionsResponse;
  50. TListHistoriesResponseArray = Array of TListHistoriesResponse;
  51. TListStepThumbnailsResponseArray = Array of TListStepThumbnailsResponse;
  52. TListStepsResponseArray = Array of TListStepsResponse;
  53. TOutcomeArray = Array of TOutcome;
  54. TProjectSettingsArray = Array of TProjectSettings;
  55. TPublishXunitXmlFilesRequestArray = Array of TPublishXunitXmlFilesRequest;
  56. TSkippedDetailArray = Array of TSkippedDetail;
  57. TStackTraceArray = Array of TStackTrace;
  58. TStatusArray = Array of TStatus;
  59. TStepArray = Array of TStep;
  60. TStepDimensionValueEntryArray = Array of TStepDimensionValueEntry;
  61. TStepLabelsEntryArray = Array of TStepLabelsEntry;
  62. TSuccessDetailArray = Array of TSuccessDetail;
  63. TTestCaseReferenceArray = Array of TTestCaseReference;
  64. TTestExecutionStepArray = Array of TTestExecutionStep;
  65. TTestIssueArray = Array of TTestIssue;
  66. TTestSuiteOverviewArray = Array of TTestSuiteOverview;
  67. TTestTimingArray = Array of TTestTiming;
  68. TThumbnailArray = Array of TThumbnail;
  69. TTimestampArray = Array of TTimestamp;
  70. TToolExecutionArray = Array of TToolExecution;
  71. TToolExecutionStepArray = Array of TToolExecutionStep;
  72. TToolExitCodeArray = Array of TToolExitCode;
  73. TToolOutputReferenceArray = Array of TToolOutputReference;
  74. //Anonymous types, using auto-generated names
  75. TListExecutionsResponseTypeexecutionsArray = Array of TExecution;
  76. TListHistoriesResponseTypehistoriesArray = Array of THistory;
  77. TListStepThumbnailsResponseTypethumbnailsArray = Array of TImage;
  78. TListStepsResponseTypestepsArray = Array of TStep;
  79. TPublishXunitXmlFilesRequestTypexunitXmlFilesArray = Array of TFileReference;
  80. TStatusTypedetailsArray = Array of TAny;
  81. TStepTypedimensionValueArray = Array of TStepDimensionValueEntry;
  82. TStepTypelabelsArray = Array of TStepLabelsEntry;
  83. TTestExecutionStepTypetestIssuesArray = Array of TTestIssue;
  84. TTestExecutionStepTypetestSuiteOverviewsArray = Array of TTestSuiteOverview;
  85. TToolExecutionTypetoolLogsArray = Array of TFileReference;
  86. TToolExecutionTypetoolOutputsArray = Array of TToolOutputReference;
  87. { --------------------------------------------------------------------
  88. TAny
  89. --------------------------------------------------------------------}
  90. TAny = Class(TGoogleBaseObject)
  91. Private
  92. FtypeUrl : String;
  93. Fvalue : String;
  94. Protected
  95. //Property setters
  96. Procedure SettypeUrl(AIndex : Integer; const AValue : String); virtual;
  97. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  98. Public
  99. Published
  100. Property typeUrl : String Index 0 Read FtypeUrl Write SettypeUrl;
  101. Property value : String Index 8 Read Fvalue Write Setvalue;
  102. end;
  103. TAnyClass = Class of TAny;
  104. { --------------------------------------------------------------------
  105. TDuration
  106. --------------------------------------------------------------------}
  107. TDuration = Class(TGoogleBaseObject)
  108. Private
  109. Fnanos : integer;
  110. Fseconds : String;
  111. Protected
  112. //Property setters
  113. Procedure Setnanos(AIndex : Integer; const AValue : integer); virtual;
  114. Procedure Setseconds(AIndex : Integer; const AValue : String); virtual;
  115. Public
  116. Published
  117. Property nanos : integer Index 0 Read Fnanos Write Setnanos;
  118. Property seconds : String Index 8 Read Fseconds Write Setseconds;
  119. end;
  120. TDurationClass = Class of TDuration;
  121. { --------------------------------------------------------------------
  122. TExecution
  123. --------------------------------------------------------------------}
  124. TExecution = Class(TGoogleBaseObject)
  125. Private
  126. FcompletionTime : TTimestamp;
  127. FcreationTime : TTimestamp;
  128. FexecutionId : String;
  129. Foutcome : TOutcome;
  130. Fstate : String;
  131. FtestExecutionMatrixId : String;
  132. Protected
  133. //Property setters
  134. Procedure SetcompletionTime(AIndex : Integer; const AValue : TTimestamp); virtual;
  135. Procedure SetcreationTime(AIndex : Integer; const AValue : TTimestamp); virtual;
  136. Procedure SetexecutionId(AIndex : Integer; const AValue : String); virtual;
  137. Procedure Setoutcome(AIndex : Integer; const AValue : TOutcome); virtual;
  138. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  139. Procedure SettestExecutionMatrixId(AIndex : Integer; const AValue : String); virtual;
  140. Public
  141. Published
  142. Property completionTime : TTimestamp Index 0 Read FcompletionTime Write SetcompletionTime;
  143. Property creationTime : TTimestamp Index 8 Read FcreationTime Write SetcreationTime;
  144. Property executionId : String Index 16 Read FexecutionId Write SetexecutionId;
  145. Property outcome : TOutcome Index 24 Read Foutcome Write Setoutcome;
  146. Property state : String Index 32 Read Fstate Write Setstate;
  147. Property testExecutionMatrixId : String Index 40 Read FtestExecutionMatrixId Write SettestExecutionMatrixId;
  148. end;
  149. TExecutionClass = Class of TExecution;
  150. { --------------------------------------------------------------------
  151. TFailureDetail
  152. --------------------------------------------------------------------}
  153. TFailureDetail = Class(TGoogleBaseObject)
  154. Private
  155. Fcrashed : boolean;
  156. FnotInstalled : boolean;
  157. FotherNativeCrash : boolean;
  158. FtimedOut : boolean;
  159. FunableToCrawl : boolean;
  160. Protected
  161. //Property setters
  162. Procedure Setcrashed(AIndex : Integer; const AValue : boolean); virtual;
  163. Procedure SetnotInstalled(AIndex : Integer; const AValue : boolean); virtual;
  164. Procedure SetotherNativeCrash(AIndex : Integer; const AValue : boolean); virtual;
  165. Procedure SettimedOut(AIndex : Integer; const AValue : boolean); virtual;
  166. Procedure SetunableToCrawl(AIndex : Integer; const AValue : boolean); virtual;
  167. Public
  168. Published
  169. Property crashed : boolean Index 0 Read Fcrashed Write Setcrashed;
  170. Property notInstalled : boolean Index 8 Read FnotInstalled Write SetnotInstalled;
  171. Property otherNativeCrash : boolean Index 16 Read FotherNativeCrash Write SetotherNativeCrash;
  172. Property timedOut : boolean Index 24 Read FtimedOut Write SettimedOut;
  173. Property unableToCrawl : boolean Index 32 Read FunableToCrawl Write SetunableToCrawl;
  174. end;
  175. TFailureDetailClass = Class of TFailureDetail;
  176. { --------------------------------------------------------------------
  177. TFileReference
  178. --------------------------------------------------------------------}
  179. TFileReference = Class(TGoogleBaseObject)
  180. Private
  181. FfileUri : String;
  182. Protected
  183. //Property setters
  184. Procedure SetfileUri(AIndex : Integer; const AValue : String); virtual;
  185. Public
  186. Published
  187. Property fileUri : String Index 0 Read FfileUri Write SetfileUri;
  188. end;
  189. TFileReferenceClass = Class of TFileReference;
  190. { --------------------------------------------------------------------
  191. THistory
  192. --------------------------------------------------------------------}
  193. THistory = Class(TGoogleBaseObject)
  194. Private
  195. FdisplayName : String;
  196. FhistoryId : String;
  197. Fname : String;
  198. Protected
  199. //Property setters
  200. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  201. Procedure SethistoryId(AIndex : Integer; const AValue : String); virtual;
  202. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  203. Public
  204. Published
  205. Property displayName : String Index 0 Read FdisplayName Write SetdisplayName;
  206. Property historyId : String Index 8 Read FhistoryId Write SethistoryId;
  207. Property name : String Index 16 Read Fname Write Setname;
  208. end;
  209. THistoryClass = Class of THistory;
  210. { --------------------------------------------------------------------
  211. TImage
  212. --------------------------------------------------------------------}
  213. TImage = Class(TGoogleBaseObject)
  214. Private
  215. Ferror : TStatus;
  216. FsourceImage : TToolOutputReference;
  217. FstepId : String;
  218. Fthumbnail : TThumbnail;
  219. Protected
  220. //Property setters
  221. Procedure Seterror(AIndex : Integer; const AValue : TStatus); virtual;
  222. Procedure SetsourceImage(AIndex : Integer; const AValue : TToolOutputReference); virtual;
  223. Procedure SetstepId(AIndex : Integer; const AValue : String); virtual;
  224. Procedure Setthumbnail(AIndex : Integer; const AValue : TThumbnail); virtual;
  225. Public
  226. Published
  227. Property error : TStatus Index 0 Read Ferror Write Seterror;
  228. Property sourceImage : TToolOutputReference Index 8 Read FsourceImage Write SetsourceImage;
  229. Property stepId : String Index 16 Read FstepId Write SetstepId;
  230. Property thumbnail : TThumbnail Index 24 Read Fthumbnail Write Setthumbnail;
  231. end;
  232. TImageClass = Class of TImage;
  233. { --------------------------------------------------------------------
  234. TInconclusiveDetail
  235. --------------------------------------------------------------------}
  236. TInconclusiveDetail = Class(TGoogleBaseObject)
  237. Private
  238. FabortedByUser : boolean;
  239. FinfrastructureFailure : boolean;
  240. FnativeCrash : boolean;
  241. Protected
  242. //Property setters
  243. Procedure SetabortedByUser(AIndex : Integer; const AValue : boolean); virtual;
  244. Procedure SetinfrastructureFailure(AIndex : Integer; const AValue : boolean); virtual;
  245. Procedure SetnativeCrash(AIndex : Integer; const AValue : boolean); virtual;
  246. Public
  247. Published
  248. Property abortedByUser : boolean Index 0 Read FabortedByUser Write SetabortedByUser;
  249. Property infrastructureFailure : boolean Index 8 Read FinfrastructureFailure Write SetinfrastructureFailure;
  250. Property nativeCrash : boolean Index 16 Read FnativeCrash Write SetnativeCrash;
  251. end;
  252. TInconclusiveDetailClass = Class of TInconclusiveDetail;
  253. { --------------------------------------------------------------------
  254. TListExecutionsResponse
  255. --------------------------------------------------------------------}
  256. TListExecutionsResponse = Class(TGoogleBaseObject)
  257. Private
  258. Fexecutions : TListExecutionsResponseTypeexecutionsArray;
  259. FnextPageToken : String;
  260. Protected
  261. //Property setters
  262. Procedure Setexecutions(AIndex : Integer; const AValue : TListExecutionsResponseTypeexecutionsArray); virtual;
  263. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  264. //2.6.4. bug workaround
  265. {$IFDEF VER2_6}
  266. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  267. {$ENDIF VER2_6}
  268. Public
  269. Published
  270. Property executions : TListExecutionsResponseTypeexecutionsArray Index 0 Read Fexecutions Write Setexecutions;
  271. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  272. end;
  273. TListExecutionsResponseClass = Class of TListExecutionsResponse;
  274. { --------------------------------------------------------------------
  275. TListHistoriesResponse
  276. --------------------------------------------------------------------}
  277. TListHistoriesResponse = Class(TGoogleBaseObject)
  278. Private
  279. Fhistories : TListHistoriesResponseTypehistoriesArray;
  280. FnextPageToken : String;
  281. Protected
  282. //Property setters
  283. Procedure Sethistories(AIndex : Integer; const AValue : TListHistoriesResponseTypehistoriesArray); virtual;
  284. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  285. //2.6.4. bug workaround
  286. {$IFDEF VER2_6}
  287. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  288. {$ENDIF VER2_6}
  289. Public
  290. Published
  291. Property histories : TListHistoriesResponseTypehistoriesArray Index 0 Read Fhistories Write Sethistories;
  292. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  293. end;
  294. TListHistoriesResponseClass = Class of TListHistoriesResponse;
  295. { --------------------------------------------------------------------
  296. TListStepThumbnailsResponse
  297. --------------------------------------------------------------------}
  298. TListStepThumbnailsResponse = Class(TGoogleBaseObject)
  299. Private
  300. FnextPageToken : String;
  301. Fthumbnails : TListStepThumbnailsResponseTypethumbnailsArray;
  302. Protected
  303. //Property setters
  304. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  305. Procedure Setthumbnails(AIndex : Integer; const AValue : TListStepThumbnailsResponseTypethumbnailsArray); virtual;
  306. //2.6.4. bug workaround
  307. {$IFDEF VER2_6}
  308. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  309. {$ENDIF VER2_6}
  310. Public
  311. Published
  312. Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
  313. Property thumbnails : TListStepThumbnailsResponseTypethumbnailsArray Index 8 Read Fthumbnails Write Setthumbnails;
  314. end;
  315. TListStepThumbnailsResponseClass = Class of TListStepThumbnailsResponse;
  316. { --------------------------------------------------------------------
  317. TListStepsResponse
  318. --------------------------------------------------------------------}
  319. TListStepsResponse = Class(TGoogleBaseObject)
  320. Private
  321. FnextPageToken : String;
  322. Fsteps : TListStepsResponseTypestepsArray;
  323. Protected
  324. //Property setters
  325. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  326. Procedure Setsteps(AIndex : Integer; const AValue : TListStepsResponseTypestepsArray); virtual;
  327. //2.6.4. bug workaround
  328. {$IFDEF VER2_6}
  329. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  330. {$ENDIF VER2_6}
  331. Public
  332. Published
  333. Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
  334. Property steps : TListStepsResponseTypestepsArray Index 8 Read Fsteps Write Setsteps;
  335. end;
  336. TListStepsResponseClass = Class of TListStepsResponse;
  337. { --------------------------------------------------------------------
  338. TOutcome
  339. --------------------------------------------------------------------}
  340. TOutcome = Class(TGoogleBaseObject)
  341. Private
  342. FfailureDetail : TFailureDetail;
  343. FinconclusiveDetail : TInconclusiveDetail;
  344. FskippedDetail : TSkippedDetail;
  345. FsuccessDetail : TSuccessDetail;
  346. Fsummary : String;
  347. Protected
  348. //Property setters
  349. Procedure SetfailureDetail(AIndex : Integer; const AValue : TFailureDetail); virtual;
  350. Procedure SetinconclusiveDetail(AIndex : Integer; const AValue : TInconclusiveDetail); virtual;
  351. Procedure SetskippedDetail(AIndex : Integer; const AValue : TSkippedDetail); virtual;
  352. Procedure SetsuccessDetail(AIndex : Integer; const AValue : TSuccessDetail); virtual;
  353. Procedure Setsummary(AIndex : Integer; const AValue : String); virtual;
  354. Public
  355. Published
  356. Property failureDetail : TFailureDetail Index 0 Read FfailureDetail Write SetfailureDetail;
  357. Property inconclusiveDetail : TInconclusiveDetail Index 8 Read FinconclusiveDetail Write SetinconclusiveDetail;
  358. Property skippedDetail : TSkippedDetail Index 16 Read FskippedDetail Write SetskippedDetail;
  359. Property successDetail : TSuccessDetail Index 24 Read FsuccessDetail Write SetsuccessDetail;
  360. Property summary : String Index 32 Read Fsummary Write Setsummary;
  361. end;
  362. TOutcomeClass = Class of TOutcome;
  363. { --------------------------------------------------------------------
  364. TProjectSettings
  365. --------------------------------------------------------------------}
  366. TProjectSettings = Class(TGoogleBaseObject)
  367. Private
  368. FdefaultBucket : String;
  369. Fname : String;
  370. Protected
  371. //Property setters
  372. Procedure SetdefaultBucket(AIndex : Integer; const AValue : String); virtual;
  373. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  374. Public
  375. Published
  376. Property defaultBucket : String Index 0 Read FdefaultBucket Write SetdefaultBucket;
  377. Property name : String Index 8 Read Fname Write Setname;
  378. end;
  379. TProjectSettingsClass = Class of TProjectSettings;
  380. { --------------------------------------------------------------------
  381. TPublishXunitXmlFilesRequest
  382. --------------------------------------------------------------------}
  383. TPublishXunitXmlFilesRequest = Class(TGoogleBaseObject)
  384. Private
  385. FxunitXmlFiles : TPublishXunitXmlFilesRequestTypexunitXmlFilesArray;
  386. Protected
  387. //Property setters
  388. Procedure SetxunitXmlFiles(AIndex : Integer; const AValue : TPublishXunitXmlFilesRequestTypexunitXmlFilesArray); virtual;
  389. //2.6.4. bug workaround
  390. {$IFDEF VER2_6}
  391. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  392. {$ENDIF VER2_6}
  393. Public
  394. Published
  395. Property xunitXmlFiles : TPublishXunitXmlFilesRequestTypexunitXmlFilesArray Index 0 Read FxunitXmlFiles Write SetxunitXmlFiles;
  396. end;
  397. TPublishXunitXmlFilesRequestClass = Class of TPublishXunitXmlFilesRequest;
  398. { --------------------------------------------------------------------
  399. TSkippedDetail
  400. --------------------------------------------------------------------}
  401. TSkippedDetail = Class(TGoogleBaseObject)
  402. Private
  403. FincompatibleAppVersion : boolean;
  404. FincompatibleArchitecture : boolean;
  405. FincompatibleDevice : boolean;
  406. Protected
  407. //Property setters
  408. Procedure SetincompatibleAppVersion(AIndex : Integer; const AValue : boolean); virtual;
  409. Procedure SetincompatibleArchitecture(AIndex : Integer; const AValue : boolean); virtual;
  410. Procedure SetincompatibleDevice(AIndex : Integer; const AValue : boolean); virtual;
  411. Public
  412. Published
  413. Property incompatibleAppVersion : boolean Index 0 Read FincompatibleAppVersion Write SetincompatibleAppVersion;
  414. Property incompatibleArchitecture : boolean Index 8 Read FincompatibleArchitecture Write SetincompatibleArchitecture;
  415. Property incompatibleDevice : boolean Index 16 Read FincompatibleDevice Write SetincompatibleDevice;
  416. end;
  417. TSkippedDetailClass = Class of TSkippedDetail;
  418. { --------------------------------------------------------------------
  419. TStackTrace
  420. --------------------------------------------------------------------}
  421. TStackTrace = Class(TGoogleBaseObject)
  422. Private
  423. Fexception : String;
  424. Protected
  425. //Property setters
  426. Procedure Setexception(AIndex : Integer; const AValue : String); virtual;
  427. Public
  428. Published
  429. Property exception : String Index 0 Read Fexception Write Setexception;
  430. end;
  431. TStackTraceClass = Class of TStackTrace;
  432. { --------------------------------------------------------------------
  433. TStatus
  434. --------------------------------------------------------------------}
  435. TStatus = Class(TGoogleBaseObject)
  436. Private
  437. Fcode : integer;
  438. Fdetails : TStatusTypedetailsArray;
  439. Fmessage : String;
  440. Protected
  441. //Property setters
  442. Procedure Setcode(AIndex : Integer; const AValue : integer); virtual;
  443. Procedure Setdetails(AIndex : Integer; const AValue : TStatusTypedetailsArray); virtual;
  444. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  445. //2.6.4. bug workaround
  446. {$IFDEF VER2_6}
  447. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  448. {$ENDIF VER2_6}
  449. Public
  450. Published
  451. Property code : integer Index 0 Read Fcode Write Setcode;
  452. Property details : TStatusTypedetailsArray Index 8 Read Fdetails Write Setdetails;
  453. Property message : String Index 16 Read Fmessage Write Setmessage;
  454. end;
  455. TStatusClass = Class of TStatus;
  456. { --------------------------------------------------------------------
  457. TStep
  458. --------------------------------------------------------------------}
  459. TStep = Class(TGoogleBaseObject)
  460. Private
  461. FcompletionTime : TTimestamp;
  462. FcreationTime : TTimestamp;
  463. Fdescription : String;
  464. FdeviceUsageDuration : TDuration;
  465. FdimensionValue : TStepTypedimensionValueArray;
  466. FhasImages : boolean;
  467. Flabels : TStepTypelabelsArray;
  468. Fname : String;
  469. Foutcome : TOutcome;
  470. FrunDuration : TDuration;
  471. Fstate : String;
  472. FstepId : String;
  473. FtestExecutionStep : TTestExecutionStep;
  474. FtoolExecutionStep : TToolExecutionStep;
  475. Protected
  476. //Property setters
  477. Procedure SetcompletionTime(AIndex : Integer; const AValue : TTimestamp); virtual;
  478. Procedure SetcreationTime(AIndex : Integer; const AValue : TTimestamp); virtual;
  479. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  480. Procedure SetdeviceUsageDuration(AIndex : Integer; const AValue : TDuration); virtual;
  481. Procedure SetdimensionValue(AIndex : Integer; const AValue : TStepTypedimensionValueArray); virtual;
  482. Procedure SethasImages(AIndex : Integer; const AValue : boolean); virtual;
  483. Procedure Setlabels(AIndex : Integer; const AValue : TStepTypelabelsArray); virtual;
  484. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  485. Procedure Setoutcome(AIndex : Integer; const AValue : TOutcome); virtual;
  486. Procedure SetrunDuration(AIndex : Integer; const AValue : TDuration); virtual;
  487. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  488. Procedure SetstepId(AIndex : Integer; const AValue : String); virtual;
  489. Procedure SettestExecutionStep(AIndex : Integer; const AValue : TTestExecutionStep); virtual;
  490. Procedure SettoolExecutionStep(AIndex : Integer; const AValue : TToolExecutionStep); virtual;
  491. //2.6.4. bug workaround
  492. {$IFDEF VER2_6}
  493. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  494. {$ENDIF VER2_6}
  495. Public
  496. Published
  497. Property completionTime : TTimestamp Index 0 Read FcompletionTime Write SetcompletionTime;
  498. Property creationTime : TTimestamp Index 8 Read FcreationTime Write SetcreationTime;
  499. Property description : String Index 16 Read Fdescription Write Setdescription;
  500. Property deviceUsageDuration : TDuration Index 24 Read FdeviceUsageDuration Write SetdeviceUsageDuration;
  501. Property dimensionValue : TStepTypedimensionValueArray Index 32 Read FdimensionValue Write SetdimensionValue;
  502. Property hasImages : boolean Index 40 Read FhasImages Write SethasImages;
  503. Property labels : TStepTypelabelsArray Index 48 Read Flabels Write Setlabels;
  504. Property name : String Index 56 Read Fname Write Setname;
  505. Property outcome : TOutcome Index 64 Read Foutcome Write Setoutcome;
  506. Property runDuration : TDuration Index 72 Read FrunDuration Write SetrunDuration;
  507. Property state : String Index 80 Read Fstate Write Setstate;
  508. Property stepId : String Index 88 Read FstepId Write SetstepId;
  509. Property testExecutionStep : TTestExecutionStep Index 96 Read FtestExecutionStep Write SettestExecutionStep;
  510. Property toolExecutionStep : TToolExecutionStep Index 104 Read FtoolExecutionStep Write SettoolExecutionStep;
  511. end;
  512. TStepClass = Class of TStep;
  513. { --------------------------------------------------------------------
  514. TStepDimensionValueEntry
  515. --------------------------------------------------------------------}
  516. TStepDimensionValueEntry = Class(TGoogleBaseObject)
  517. Private
  518. Fkey : String;
  519. Fvalue : String;
  520. Protected
  521. //Property setters
  522. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  523. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  524. Public
  525. Published
  526. Property key : String Index 0 Read Fkey Write Setkey;
  527. Property value : String Index 8 Read Fvalue Write Setvalue;
  528. end;
  529. TStepDimensionValueEntryClass = Class of TStepDimensionValueEntry;
  530. { --------------------------------------------------------------------
  531. TStepLabelsEntry
  532. --------------------------------------------------------------------}
  533. TStepLabelsEntry = Class(TGoogleBaseObject)
  534. Private
  535. Fkey : String;
  536. Fvalue : String;
  537. Protected
  538. //Property setters
  539. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  540. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  541. Public
  542. Published
  543. Property key : String Index 0 Read Fkey Write Setkey;
  544. Property value : String Index 8 Read Fvalue Write Setvalue;
  545. end;
  546. TStepLabelsEntryClass = Class of TStepLabelsEntry;
  547. { --------------------------------------------------------------------
  548. TSuccessDetail
  549. --------------------------------------------------------------------}
  550. TSuccessDetail = Class(TGoogleBaseObject)
  551. Private
  552. FotherNativeCrash : boolean;
  553. Protected
  554. //Property setters
  555. Procedure SetotherNativeCrash(AIndex : Integer; const AValue : boolean); virtual;
  556. Public
  557. Published
  558. Property otherNativeCrash : boolean Index 0 Read FotherNativeCrash Write SetotherNativeCrash;
  559. end;
  560. TSuccessDetailClass = Class of TSuccessDetail;
  561. { --------------------------------------------------------------------
  562. TTestCaseReference
  563. --------------------------------------------------------------------}
  564. TTestCaseReference = Class(TGoogleBaseObject)
  565. Private
  566. FclassName : String;
  567. Fname : String;
  568. FtestSuiteName : String;
  569. Protected
  570. //Property setters
  571. Procedure SetclassName(AIndex : Integer; const AValue : String); virtual;
  572. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  573. Procedure SettestSuiteName(AIndex : Integer; const AValue : String); virtual;
  574. Public
  575. Published
  576. Property className : String Index 0 Read FclassName Write SetclassName;
  577. Property name : String Index 8 Read Fname Write Setname;
  578. Property testSuiteName : String Index 16 Read FtestSuiteName Write SettestSuiteName;
  579. end;
  580. TTestCaseReferenceClass = Class of TTestCaseReference;
  581. { --------------------------------------------------------------------
  582. TTestExecutionStep
  583. --------------------------------------------------------------------}
  584. TTestExecutionStep = Class(TGoogleBaseObject)
  585. Private
  586. FtestIssues : TTestExecutionStepTypetestIssuesArray;
  587. FtestSuiteOverviews : TTestExecutionStepTypetestSuiteOverviewsArray;
  588. FtestTiming : TTestTiming;
  589. FtoolExecution : TToolExecution;
  590. Protected
  591. //Property setters
  592. Procedure SettestIssues(AIndex : Integer; const AValue : TTestExecutionStepTypetestIssuesArray); virtual;
  593. Procedure SettestSuiteOverviews(AIndex : Integer; const AValue : TTestExecutionStepTypetestSuiteOverviewsArray); virtual;
  594. Procedure SettestTiming(AIndex : Integer; const AValue : TTestTiming); virtual;
  595. Procedure SettoolExecution(AIndex : Integer; const AValue : TToolExecution); virtual;
  596. //2.6.4. bug workaround
  597. {$IFDEF VER2_6}
  598. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  599. {$ENDIF VER2_6}
  600. Public
  601. Published
  602. Property testIssues : TTestExecutionStepTypetestIssuesArray Index 0 Read FtestIssues Write SettestIssues;
  603. Property testSuiteOverviews : TTestExecutionStepTypetestSuiteOverviewsArray Index 8 Read FtestSuiteOverviews Write SettestSuiteOverviews;
  604. Property testTiming : TTestTiming Index 16 Read FtestTiming Write SettestTiming;
  605. Property toolExecution : TToolExecution Index 24 Read FtoolExecution Write SettoolExecution;
  606. end;
  607. TTestExecutionStepClass = Class of TTestExecutionStep;
  608. { --------------------------------------------------------------------
  609. TTestIssue
  610. --------------------------------------------------------------------}
  611. TTestIssue = Class(TGoogleBaseObject)
  612. Private
  613. FerrorMessage : String;
  614. FstackTrace : TStackTrace;
  615. Protected
  616. //Property setters
  617. Procedure SeterrorMessage(AIndex : Integer; const AValue : String); virtual;
  618. Procedure SetstackTrace(AIndex : Integer; const AValue : TStackTrace); virtual;
  619. Public
  620. Published
  621. Property errorMessage : String Index 0 Read FerrorMessage Write SeterrorMessage;
  622. Property stackTrace : TStackTrace Index 8 Read FstackTrace Write SetstackTrace;
  623. end;
  624. TTestIssueClass = Class of TTestIssue;
  625. { --------------------------------------------------------------------
  626. TTestSuiteOverview
  627. --------------------------------------------------------------------}
  628. TTestSuiteOverview = Class(TGoogleBaseObject)
  629. Private
  630. FerrorCount : integer;
  631. FfailureCount : integer;
  632. Fname : String;
  633. FskippedCount : integer;
  634. FtotalCount : integer;
  635. FxmlSource : TFileReference;
  636. Protected
  637. //Property setters
  638. Procedure SeterrorCount(AIndex : Integer; const AValue : integer); virtual;
  639. Procedure SetfailureCount(AIndex : Integer; const AValue : integer); virtual;
  640. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  641. Procedure SetskippedCount(AIndex : Integer; const AValue : integer); virtual;
  642. Procedure SettotalCount(AIndex : Integer; const AValue : integer); virtual;
  643. Procedure SetxmlSource(AIndex : Integer; const AValue : TFileReference); virtual;
  644. Public
  645. Published
  646. Property errorCount : integer Index 0 Read FerrorCount Write SeterrorCount;
  647. Property failureCount : integer Index 8 Read FfailureCount Write SetfailureCount;
  648. Property name : String Index 16 Read Fname Write Setname;
  649. Property skippedCount : integer Index 24 Read FskippedCount Write SetskippedCount;
  650. Property totalCount : integer Index 32 Read FtotalCount Write SettotalCount;
  651. Property xmlSource : TFileReference Index 40 Read FxmlSource Write SetxmlSource;
  652. end;
  653. TTestSuiteOverviewClass = Class of TTestSuiteOverview;
  654. { --------------------------------------------------------------------
  655. TTestTiming
  656. --------------------------------------------------------------------}
  657. TTestTiming = Class(TGoogleBaseObject)
  658. Private
  659. FtestProcessDuration : TDuration;
  660. Protected
  661. //Property setters
  662. Procedure SettestProcessDuration(AIndex : Integer; const AValue : TDuration); virtual;
  663. Public
  664. Published
  665. Property testProcessDuration : TDuration Index 0 Read FtestProcessDuration Write SettestProcessDuration;
  666. end;
  667. TTestTimingClass = Class of TTestTiming;
  668. { --------------------------------------------------------------------
  669. TThumbnail
  670. --------------------------------------------------------------------}
  671. TThumbnail = Class(TGoogleBaseObject)
  672. Private
  673. FcontentType : String;
  674. Fdata : String;
  675. FheightPx : integer;
  676. FwidthPx : integer;
  677. Protected
  678. //Property setters
  679. Procedure SetcontentType(AIndex : Integer; const AValue : String); virtual;
  680. Procedure Setdata(AIndex : Integer; const AValue : String); virtual;
  681. Procedure SetheightPx(AIndex : Integer; const AValue : integer); virtual;
  682. Procedure SetwidthPx(AIndex : Integer; const AValue : integer); virtual;
  683. Public
  684. Published
  685. Property contentType : String Index 0 Read FcontentType Write SetcontentType;
  686. Property data : String Index 8 Read Fdata Write Setdata;
  687. Property heightPx : integer Index 16 Read FheightPx Write SetheightPx;
  688. Property widthPx : integer Index 24 Read FwidthPx Write SetwidthPx;
  689. end;
  690. TThumbnailClass = Class of TThumbnail;
  691. { --------------------------------------------------------------------
  692. TTimestamp
  693. --------------------------------------------------------------------}
  694. TTimestamp = Class(TGoogleBaseObject)
  695. Private
  696. Fnanos : integer;
  697. Fseconds : String;
  698. Protected
  699. //Property setters
  700. Procedure Setnanos(AIndex : Integer; const AValue : integer); virtual;
  701. Procedure Setseconds(AIndex : Integer; const AValue : String); virtual;
  702. Public
  703. Published
  704. Property nanos : integer Index 0 Read Fnanos Write Setnanos;
  705. Property seconds : String Index 8 Read Fseconds Write Setseconds;
  706. end;
  707. TTimestampClass = Class of TTimestamp;
  708. { --------------------------------------------------------------------
  709. TToolExecution
  710. --------------------------------------------------------------------}
  711. TToolExecution = Class(TGoogleBaseObject)
  712. Private
  713. FcommandLineArguments : TStringArray;
  714. FexitCode : TToolExitCode;
  715. FtoolLogs : TToolExecutionTypetoolLogsArray;
  716. FtoolOutputs : TToolExecutionTypetoolOutputsArray;
  717. Protected
  718. //Property setters
  719. Procedure SetcommandLineArguments(AIndex : Integer; const AValue : TStringArray); virtual;
  720. Procedure SetexitCode(AIndex : Integer; const AValue : TToolExitCode); virtual;
  721. Procedure SettoolLogs(AIndex : Integer; const AValue : TToolExecutionTypetoolLogsArray); virtual;
  722. Procedure SettoolOutputs(AIndex : Integer; const AValue : TToolExecutionTypetoolOutputsArray); virtual;
  723. //2.6.4. bug workaround
  724. {$IFDEF VER2_6}
  725. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  726. {$ENDIF VER2_6}
  727. Public
  728. Published
  729. Property commandLineArguments : TStringArray Index 0 Read FcommandLineArguments Write SetcommandLineArguments;
  730. Property exitCode : TToolExitCode Index 8 Read FexitCode Write SetexitCode;
  731. Property toolLogs : TToolExecutionTypetoolLogsArray Index 16 Read FtoolLogs Write SettoolLogs;
  732. Property toolOutputs : TToolExecutionTypetoolOutputsArray Index 24 Read FtoolOutputs Write SettoolOutputs;
  733. end;
  734. TToolExecutionClass = Class of TToolExecution;
  735. { --------------------------------------------------------------------
  736. TToolExecutionStep
  737. --------------------------------------------------------------------}
  738. TToolExecutionStep = Class(TGoogleBaseObject)
  739. Private
  740. FtoolExecution : TToolExecution;
  741. Protected
  742. //Property setters
  743. Procedure SettoolExecution(AIndex : Integer; const AValue : TToolExecution); virtual;
  744. Public
  745. Published
  746. Property toolExecution : TToolExecution Index 0 Read FtoolExecution Write SettoolExecution;
  747. end;
  748. TToolExecutionStepClass = Class of TToolExecutionStep;
  749. { --------------------------------------------------------------------
  750. TToolExitCode
  751. --------------------------------------------------------------------}
  752. TToolExitCode = Class(TGoogleBaseObject)
  753. Private
  754. Fnumber : integer;
  755. Protected
  756. //Property setters
  757. Procedure Setnumber(AIndex : Integer; const AValue : integer); virtual;
  758. Public
  759. Published
  760. Property number : integer Index 0 Read Fnumber Write Setnumber;
  761. end;
  762. TToolExitCodeClass = Class of TToolExitCode;
  763. { --------------------------------------------------------------------
  764. TToolOutputReference
  765. --------------------------------------------------------------------}
  766. TToolOutputReference = Class(TGoogleBaseObject)
  767. Private
  768. FcreationTime : TTimestamp;
  769. Foutput : TFileReference;
  770. FtestCase : TTestCaseReference;
  771. Protected
  772. //Property setters
  773. Procedure SetcreationTime(AIndex : Integer; const AValue : TTimestamp); virtual;
  774. Procedure Setoutput(AIndex : Integer; const AValue : TFileReference); virtual;
  775. Procedure SettestCase(AIndex : Integer; const AValue : TTestCaseReference); virtual;
  776. Public
  777. Published
  778. Property creationTime : TTimestamp Index 0 Read FcreationTime Write SetcreationTime;
  779. Property output : TFileReference Index 8 Read Foutput Write Setoutput;
  780. Property testCase : TTestCaseReference Index 16 Read FtestCase Write SettestCase;
  781. end;
  782. TToolOutputReferenceClass = Class of TToolOutputReference;
  783. { --------------------------------------------------------------------
  784. TProjectsHistoriesExecutionsStepsThumbnailsResource
  785. --------------------------------------------------------------------}
  786. //Optional query Options for TProjectsHistoriesExecutionsStepsThumbnailsResource, method List
  787. TProjectsHistoriesExecutionsStepsThumbnailsListOptions = Record
  788. pageSize : integer;
  789. pageToken : String;
  790. end;
  791. TProjectsHistoriesExecutionsStepsThumbnailsResource = Class(TGoogleResource)
  792. Public
  793. Class Function ResourceName : String; override;
  794. Class Function DefaultAPI : TGoogleAPIClass; override;
  795. Function List(executionId: string; historyId: string; projectId: string; stepId: string; AQuery : string = '') : TListStepThumbnailsResponse;
  796. Function List(executionId: string; historyId: string; projectId: string; stepId: string; AQuery : TProjectsHistoriesExecutionsStepsThumbnailslistOptions) : TListStepThumbnailsResponse;
  797. end;
  798. { --------------------------------------------------------------------
  799. TProjectsHistoriesExecutionsStepsResource
  800. --------------------------------------------------------------------}
  801. //Optional query Options for TProjectsHistoriesExecutionsStepsResource, method Create
  802. TProjectsHistoriesExecutionsStepsCreateOptions = Record
  803. requestId : String;
  804. end;
  805. //Optional query Options for TProjectsHistoriesExecutionsStepsResource, method List
  806. TProjectsHistoriesExecutionsStepsListOptions = Record
  807. pageSize : integer;
  808. pageToken : String;
  809. end;
  810. //Optional query Options for TProjectsHistoriesExecutionsStepsResource, method Patch
  811. TProjectsHistoriesExecutionsStepsPatchOptions = Record
  812. requestId : String;
  813. end;
  814. TProjectsHistoriesExecutionsStepsResource = Class(TGoogleResource)
  815. Private
  816. FThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  817. Function GetThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;
  818. Public
  819. Class Function ResourceName : String; override;
  820. Class Function DefaultAPI : TGoogleAPIClass; override;
  821. Function Create(executionId: string; historyId: string; projectId: string; aStep : TStep; AQuery : string = '') : TStep;overload;
  822. Function Create(executionId: string; historyId: string; projectId: string; aStep : TStep; AQuery : TProjectsHistoriesExecutionsStepscreateOptions) : TStep;overload;
  823. Function Get(executionId: string; historyId: string; projectId: string; stepId: string) : TStep;
  824. Function List(executionId: string; historyId: string; projectId: string; AQuery : string = '') : TListStepsResponse;
  825. Function List(executionId: string; historyId: string; projectId: string; AQuery : TProjectsHistoriesExecutionsStepslistOptions) : TListStepsResponse;
  826. Function Patch(executionId: string; historyId: string; projectId: string; stepId: string; aStep : TStep; AQuery : string = '') : TStep;
  827. Function Patch(executionId: string; historyId: string; projectId: string; stepId: string; aStep : TStep; AQuery : TProjectsHistoriesExecutionsStepspatchOptions) : TStep;
  828. Function PublishXunitXmlFiles(executionId: string; historyId: string; projectId: string; stepId: string; aPublishXunitXmlFilesRequest : TPublishXunitXmlFilesRequest) : TStep;
  829. Function CreateThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  830. Function CreateThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  831. Property ThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource Read GetThumbnailsInstance;
  832. end;
  833. { --------------------------------------------------------------------
  834. TProjectsHistoriesExecutionsResource
  835. --------------------------------------------------------------------}
  836. //Optional query Options for TProjectsHistoriesExecutionsResource, method Create
  837. TProjectsHistoriesExecutionsCreateOptions = Record
  838. requestId : String;
  839. end;
  840. //Optional query Options for TProjectsHistoriesExecutionsResource, method List
  841. TProjectsHistoriesExecutionsListOptions = Record
  842. pageSize : integer;
  843. pageToken : String;
  844. end;
  845. //Optional query Options for TProjectsHistoriesExecutionsResource, method Patch
  846. TProjectsHistoriesExecutionsPatchOptions = Record
  847. requestId : String;
  848. end;
  849. TProjectsHistoriesExecutionsResource = Class(TGoogleResource)
  850. Private
  851. FStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  852. FStepsInstance : TProjectsHistoriesExecutionsStepsResource;
  853. Function GetStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;
  854. Function GetStepsInstance : TProjectsHistoriesExecutionsStepsResource;virtual;
  855. Public
  856. Class Function ResourceName : String; override;
  857. Class Function DefaultAPI : TGoogleAPIClass; override;
  858. Function Create(historyId: string; projectId: string; aExecution : TExecution; AQuery : string = '') : TExecution;overload;
  859. Function Create(historyId: string; projectId: string; aExecution : TExecution; AQuery : TProjectsHistoriesExecutionscreateOptions) : TExecution;overload;
  860. Function Get(executionId: string; historyId: string; projectId: string) : TExecution;
  861. Function List(historyId: string; projectId: string; AQuery : string = '') : TListExecutionsResponse;
  862. Function List(historyId: string; projectId: string; AQuery : TProjectsHistoriesExecutionslistOptions) : TListExecutionsResponse;
  863. Function Patch(executionId: string; historyId: string; projectId: string; aExecution : TExecution; AQuery : string = '') : TExecution;
  864. Function Patch(executionId: string; historyId: string; projectId: string; aExecution : TExecution; AQuery : TProjectsHistoriesExecutionspatchOptions) : TExecution;
  865. Function CreateStepsThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  866. Function CreateStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  867. Function CreateStepsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsResource;virtual;overload;
  868. Function CreateStepsResource : TProjectsHistoriesExecutionsStepsResource;virtual;overload;
  869. Property StepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource Read GetStepsThumbnailsInstance;
  870. Property StepsResource : TProjectsHistoriesExecutionsStepsResource Read GetStepsInstance;
  871. end;
  872. { --------------------------------------------------------------------
  873. TProjectsHistoriesResource
  874. --------------------------------------------------------------------}
  875. //Optional query Options for TProjectsHistoriesResource, method Create
  876. TProjectsHistoriesCreateOptions = Record
  877. requestId : String;
  878. end;
  879. //Optional query Options for TProjectsHistoriesResource, method List
  880. TProjectsHistoriesListOptions = Record
  881. filterByName : String;
  882. pageSize : integer;
  883. pageToken : String;
  884. end;
  885. TProjectsHistoriesResource = Class(TGoogleResource)
  886. Private
  887. FExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  888. FExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;
  889. FExecutionsInstance : TProjectsHistoriesExecutionsResource;
  890. Function GetExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;
  891. Function GetExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;virtual;
  892. Function GetExecutionsInstance : TProjectsHistoriesExecutionsResource;virtual;
  893. Public
  894. Class Function ResourceName : String; override;
  895. Class Function DefaultAPI : TGoogleAPIClass; override;
  896. Function Create(projectId: string; aHistory : THistory; AQuery : string = '') : THistory;overload;
  897. Function Create(projectId: string; aHistory : THistory; AQuery : TProjectsHistoriescreateOptions) : THistory;overload;
  898. Function Get(historyId: string; projectId: string) : THistory;
  899. Function List(projectId: string; AQuery : string = '') : TListHistoriesResponse;
  900. Function List(projectId: string; AQuery : TProjectsHistorieslistOptions) : TListHistoriesResponse;
  901. Function CreateExecutionsStepsThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  902. Function CreateExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  903. Function CreateExecutionsStepsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsResource;virtual;overload;
  904. Function CreateExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource;virtual;overload;
  905. Function CreateExecutionsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsResource;virtual;overload;
  906. Function CreateExecutionsResource : TProjectsHistoriesExecutionsResource;virtual;overload;
  907. Property ExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource Read GetExecutionsStepsThumbnailsInstance;
  908. Property ExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource Read GetExecutionsStepsInstance;
  909. Property ExecutionsResource : TProjectsHistoriesExecutionsResource Read GetExecutionsInstance;
  910. end;
  911. { --------------------------------------------------------------------
  912. TProjectsResource
  913. --------------------------------------------------------------------}
  914. TProjectsResource = Class(TGoogleResource)
  915. Private
  916. FHistoriesExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  917. FHistoriesExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;
  918. FHistoriesExecutionsInstance : TProjectsHistoriesExecutionsResource;
  919. FHistoriesInstance : TProjectsHistoriesResource;
  920. Function GetHistoriesExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;
  921. Function GetHistoriesExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;virtual;
  922. Function GetHistoriesExecutionsInstance : TProjectsHistoriesExecutionsResource;virtual;
  923. Function GetHistoriesInstance : TProjectsHistoriesResource;virtual;
  924. Public
  925. Class Function ResourceName : String; override;
  926. Class Function DefaultAPI : TGoogleAPIClass; override;
  927. Function GetSettings(projectId: string) : TProjectSettings;
  928. Function InitializeSettings(projectId: string) : TProjectSettings;
  929. Function CreateHistoriesExecutionsStepsThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  930. Function CreateHistoriesExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  931. Function CreateHistoriesExecutionsStepsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsResource;virtual;overload;
  932. Function CreateHistoriesExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource;virtual;overload;
  933. Function CreateHistoriesExecutionsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsResource;virtual;overload;
  934. Function CreateHistoriesExecutionsResource : TProjectsHistoriesExecutionsResource;virtual;overload;
  935. Function CreateHistoriesResource(AOwner : TComponent) : TProjectsHistoriesResource;virtual;overload;
  936. Function CreateHistoriesResource : TProjectsHistoriesResource;virtual;overload;
  937. Property HistoriesExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource Read GetHistoriesExecutionsStepsThumbnailsInstance;
  938. Property HistoriesExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource Read GetHistoriesExecutionsStepsInstance;
  939. Property HistoriesExecutionsResource : TProjectsHistoriesExecutionsResource Read GetHistoriesExecutionsInstance;
  940. Property HistoriesResource : TProjectsHistoriesResource Read GetHistoriesInstance;
  941. end;
  942. { --------------------------------------------------------------------
  943. TToolresultsAPI
  944. --------------------------------------------------------------------}
  945. TToolresultsAPI = Class(TGoogleAPI)
  946. Private
  947. FProjectsHistoriesExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  948. FProjectsHistoriesExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;
  949. FProjectsHistoriesExecutionsInstance : TProjectsHistoriesExecutionsResource;
  950. FProjectsHistoriesInstance : TProjectsHistoriesResource;
  951. FProjectsInstance : TProjectsResource;
  952. Function GetProjectsHistoriesExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;
  953. Function GetProjectsHistoriesExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;virtual;
  954. Function GetProjectsHistoriesExecutionsInstance : TProjectsHistoriesExecutionsResource;virtual;
  955. Function GetProjectsHistoriesInstance : TProjectsHistoriesResource;virtual;
  956. Function GetProjectsInstance : TProjectsResource;virtual;
  957. Public
  958. //Override class functions with API info
  959. Class Function APIName : String; override;
  960. Class Function APIVersion : String; override;
  961. Class Function APIRevision : String; override;
  962. Class Function APIID : String; override;
  963. Class Function APITitle : String; override;
  964. Class Function APIDescription : String; override;
  965. Class Function APIOwnerDomain : String; override;
  966. Class Function APIOwnerName : String; override;
  967. Class Function APIIcon16 : String; override;
  968. Class Function APIIcon32 : String; override;
  969. Class Function APIdocumentationLink : String; override;
  970. Class Function APIrootUrl : string; override;
  971. Class Function APIbasePath : string;override;
  972. Class Function APIbaseURL : String;override;
  973. Class Function APIProtocol : string;override;
  974. Class Function APIservicePath : string;override;
  975. Class Function APIbatchPath : String;override;
  976. Class Function APIAuthScopes : TScopeInfoArray;override;
  977. Class Function APINeedsAuth : Boolean;override;
  978. Class Procedure RegisterAPIResources; override;
  979. //Add create function for resources
  980. Function CreateProjectsHistoriesExecutionsStepsThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  981. Function CreateProjectsHistoriesExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;virtual;overload;
  982. Function CreateProjectsHistoriesExecutionsStepsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsResource;virtual;overload;
  983. Function CreateProjectsHistoriesExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource;virtual;overload;
  984. Function CreateProjectsHistoriesExecutionsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsResource;virtual;overload;
  985. Function CreateProjectsHistoriesExecutionsResource : TProjectsHistoriesExecutionsResource;virtual;overload;
  986. Function CreateProjectsHistoriesResource(AOwner : TComponent) : TProjectsHistoriesResource;virtual;overload;
  987. Function CreateProjectsHistoriesResource : TProjectsHistoriesResource;virtual;overload;
  988. Function CreateProjectsResource(AOwner : TComponent) : TProjectsResource;virtual;overload;
  989. Function CreateProjectsResource : TProjectsResource;virtual;overload;
  990. //Add default on-demand instances for resources
  991. Property ProjectsHistoriesExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource Read GetProjectsHistoriesExecutionsStepsThumbnailsInstance;
  992. Property ProjectsHistoriesExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource Read GetProjectsHistoriesExecutionsStepsInstance;
  993. Property ProjectsHistoriesExecutionsResource : TProjectsHistoriesExecutionsResource Read GetProjectsHistoriesExecutionsInstance;
  994. Property ProjectsHistoriesResource : TProjectsHistoriesResource Read GetProjectsHistoriesInstance;
  995. Property ProjectsResource : TProjectsResource Read GetProjectsInstance;
  996. end;
  997. implementation
  998. { --------------------------------------------------------------------
  999. TAny
  1000. --------------------------------------------------------------------}
  1001. Procedure TAny.SettypeUrl(AIndex : Integer; const AValue : String);
  1002. begin
  1003. If (FtypeUrl=AValue) then exit;
  1004. FtypeUrl:=AValue;
  1005. MarkPropertyChanged(AIndex);
  1006. end;
  1007. Procedure TAny.Setvalue(AIndex : Integer; const AValue : String);
  1008. begin
  1009. If (Fvalue=AValue) then exit;
  1010. Fvalue:=AValue;
  1011. MarkPropertyChanged(AIndex);
  1012. end;
  1013. { --------------------------------------------------------------------
  1014. TDuration
  1015. --------------------------------------------------------------------}
  1016. Procedure TDuration.Setnanos(AIndex : Integer; const AValue : integer);
  1017. begin
  1018. If (Fnanos=AValue) then exit;
  1019. Fnanos:=AValue;
  1020. MarkPropertyChanged(AIndex);
  1021. end;
  1022. Procedure TDuration.Setseconds(AIndex : Integer; const AValue : String);
  1023. begin
  1024. If (Fseconds=AValue) then exit;
  1025. Fseconds:=AValue;
  1026. MarkPropertyChanged(AIndex);
  1027. end;
  1028. { --------------------------------------------------------------------
  1029. TExecution
  1030. --------------------------------------------------------------------}
  1031. Procedure TExecution.SetcompletionTime(AIndex : Integer; const AValue : TTimestamp);
  1032. begin
  1033. If (FcompletionTime=AValue) then exit;
  1034. FcompletionTime:=AValue;
  1035. MarkPropertyChanged(AIndex);
  1036. end;
  1037. Procedure TExecution.SetcreationTime(AIndex : Integer; const AValue : TTimestamp);
  1038. begin
  1039. If (FcreationTime=AValue) then exit;
  1040. FcreationTime:=AValue;
  1041. MarkPropertyChanged(AIndex);
  1042. end;
  1043. Procedure TExecution.SetexecutionId(AIndex : Integer; const AValue : String);
  1044. begin
  1045. If (FexecutionId=AValue) then exit;
  1046. FexecutionId:=AValue;
  1047. MarkPropertyChanged(AIndex);
  1048. end;
  1049. Procedure TExecution.Setoutcome(AIndex : Integer; const AValue : TOutcome);
  1050. begin
  1051. If (Foutcome=AValue) then exit;
  1052. Foutcome:=AValue;
  1053. MarkPropertyChanged(AIndex);
  1054. end;
  1055. Procedure TExecution.Setstate(AIndex : Integer; const AValue : String);
  1056. begin
  1057. If (Fstate=AValue) then exit;
  1058. Fstate:=AValue;
  1059. MarkPropertyChanged(AIndex);
  1060. end;
  1061. Procedure TExecution.SettestExecutionMatrixId(AIndex : Integer; const AValue : String);
  1062. begin
  1063. If (FtestExecutionMatrixId=AValue) then exit;
  1064. FtestExecutionMatrixId:=AValue;
  1065. MarkPropertyChanged(AIndex);
  1066. end;
  1067. { --------------------------------------------------------------------
  1068. TFailureDetail
  1069. --------------------------------------------------------------------}
  1070. Procedure TFailureDetail.Setcrashed(AIndex : Integer; const AValue : boolean);
  1071. begin
  1072. If (Fcrashed=AValue) then exit;
  1073. Fcrashed:=AValue;
  1074. MarkPropertyChanged(AIndex);
  1075. end;
  1076. Procedure TFailureDetail.SetnotInstalled(AIndex : Integer; const AValue : boolean);
  1077. begin
  1078. If (FnotInstalled=AValue) then exit;
  1079. FnotInstalled:=AValue;
  1080. MarkPropertyChanged(AIndex);
  1081. end;
  1082. Procedure TFailureDetail.SetotherNativeCrash(AIndex : Integer; const AValue : boolean);
  1083. begin
  1084. If (FotherNativeCrash=AValue) then exit;
  1085. FotherNativeCrash:=AValue;
  1086. MarkPropertyChanged(AIndex);
  1087. end;
  1088. Procedure TFailureDetail.SettimedOut(AIndex : Integer; const AValue : boolean);
  1089. begin
  1090. If (FtimedOut=AValue) then exit;
  1091. FtimedOut:=AValue;
  1092. MarkPropertyChanged(AIndex);
  1093. end;
  1094. Procedure TFailureDetail.SetunableToCrawl(AIndex : Integer; const AValue : boolean);
  1095. begin
  1096. If (FunableToCrawl=AValue) then exit;
  1097. FunableToCrawl:=AValue;
  1098. MarkPropertyChanged(AIndex);
  1099. end;
  1100. { --------------------------------------------------------------------
  1101. TFileReference
  1102. --------------------------------------------------------------------}
  1103. Procedure TFileReference.SetfileUri(AIndex : Integer; const AValue : String);
  1104. begin
  1105. If (FfileUri=AValue) then exit;
  1106. FfileUri:=AValue;
  1107. MarkPropertyChanged(AIndex);
  1108. end;
  1109. { --------------------------------------------------------------------
  1110. THistory
  1111. --------------------------------------------------------------------}
  1112. Procedure THistory.SetdisplayName(AIndex : Integer; const AValue : String);
  1113. begin
  1114. If (FdisplayName=AValue) then exit;
  1115. FdisplayName:=AValue;
  1116. MarkPropertyChanged(AIndex);
  1117. end;
  1118. Procedure THistory.SethistoryId(AIndex : Integer; const AValue : String);
  1119. begin
  1120. If (FhistoryId=AValue) then exit;
  1121. FhistoryId:=AValue;
  1122. MarkPropertyChanged(AIndex);
  1123. end;
  1124. Procedure THistory.Setname(AIndex : Integer; const AValue : String);
  1125. begin
  1126. If (Fname=AValue) then exit;
  1127. Fname:=AValue;
  1128. MarkPropertyChanged(AIndex);
  1129. end;
  1130. { --------------------------------------------------------------------
  1131. TImage
  1132. --------------------------------------------------------------------}
  1133. Procedure TImage.Seterror(AIndex : Integer; const AValue : TStatus);
  1134. begin
  1135. If (Ferror=AValue) then exit;
  1136. Ferror:=AValue;
  1137. MarkPropertyChanged(AIndex);
  1138. end;
  1139. Procedure TImage.SetsourceImage(AIndex : Integer; const AValue : TToolOutputReference);
  1140. begin
  1141. If (FsourceImage=AValue) then exit;
  1142. FsourceImage:=AValue;
  1143. MarkPropertyChanged(AIndex);
  1144. end;
  1145. Procedure TImage.SetstepId(AIndex : Integer; const AValue : String);
  1146. begin
  1147. If (FstepId=AValue) then exit;
  1148. FstepId:=AValue;
  1149. MarkPropertyChanged(AIndex);
  1150. end;
  1151. Procedure TImage.Setthumbnail(AIndex : Integer; const AValue : TThumbnail);
  1152. begin
  1153. If (Fthumbnail=AValue) then exit;
  1154. Fthumbnail:=AValue;
  1155. MarkPropertyChanged(AIndex);
  1156. end;
  1157. { --------------------------------------------------------------------
  1158. TInconclusiveDetail
  1159. --------------------------------------------------------------------}
  1160. Procedure TInconclusiveDetail.SetabortedByUser(AIndex : Integer; const AValue : boolean);
  1161. begin
  1162. If (FabortedByUser=AValue) then exit;
  1163. FabortedByUser:=AValue;
  1164. MarkPropertyChanged(AIndex);
  1165. end;
  1166. Procedure TInconclusiveDetail.SetinfrastructureFailure(AIndex : Integer; const AValue : boolean);
  1167. begin
  1168. If (FinfrastructureFailure=AValue) then exit;
  1169. FinfrastructureFailure:=AValue;
  1170. MarkPropertyChanged(AIndex);
  1171. end;
  1172. Procedure TInconclusiveDetail.SetnativeCrash(AIndex : Integer; const AValue : boolean);
  1173. begin
  1174. If (FnativeCrash=AValue) then exit;
  1175. FnativeCrash:=AValue;
  1176. MarkPropertyChanged(AIndex);
  1177. end;
  1178. { --------------------------------------------------------------------
  1179. TListExecutionsResponse
  1180. --------------------------------------------------------------------}
  1181. Procedure TListExecutionsResponse.Setexecutions(AIndex : Integer; const AValue : TListExecutionsResponseTypeexecutionsArray);
  1182. begin
  1183. If (Fexecutions=AValue) then exit;
  1184. Fexecutions:=AValue;
  1185. MarkPropertyChanged(AIndex);
  1186. end;
  1187. Procedure TListExecutionsResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1188. begin
  1189. If (FnextPageToken=AValue) then exit;
  1190. FnextPageToken:=AValue;
  1191. MarkPropertyChanged(AIndex);
  1192. end;
  1193. //2.6.4. bug workaround
  1194. {$IFDEF VER2_6}
  1195. Procedure TListExecutionsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1196. begin
  1197. Case AName of
  1198. 'executions' : SetLength(Fexecutions,ALength);
  1199. else
  1200. Inherited SetArrayLength(AName,ALength);
  1201. end;
  1202. end;
  1203. {$ENDIF VER2_6}
  1204. { --------------------------------------------------------------------
  1205. TListHistoriesResponse
  1206. --------------------------------------------------------------------}
  1207. Procedure TListHistoriesResponse.Sethistories(AIndex : Integer; const AValue : TListHistoriesResponseTypehistoriesArray);
  1208. begin
  1209. If (Fhistories=AValue) then exit;
  1210. Fhistories:=AValue;
  1211. MarkPropertyChanged(AIndex);
  1212. end;
  1213. Procedure TListHistoriesResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1214. begin
  1215. If (FnextPageToken=AValue) then exit;
  1216. FnextPageToken:=AValue;
  1217. MarkPropertyChanged(AIndex);
  1218. end;
  1219. //2.6.4. bug workaround
  1220. {$IFDEF VER2_6}
  1221. Procedure TListHistoriesResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1222. begin
  1223. Case AName of
  1224. 'histories' : SetLength(Fhistories,ALength);
  1225. else
  1226. Inherited SetArrayLength(AName,ALength);
  1227. end;
  1228. end;
  1229. {$ENDIF VER2_6}
  1230. { --------------------------------------------------------------------
  1231. TListStepThumbnailsResponse
  1232. --------------------------------------------------------------------}
  1233. Procedure TListStepThumbnailsResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1234. begin
  1235. If (FnextPageToken=AValue) then exit;
  1236. FnextPageToken:=AValue;
  1237. MarkPropertyChanged(AIndex);
  1238. end;
  1239. Procedure TListStepThumbnailsResponse.Setthumbnails(AIndex : Integer; const AValue : TListStepThumbnailsResponseTypethumbnailsArray);
  1240. begin
  1241. If (Fthumbnails=AValue) then exit;
  1242. Fthumbnails:=AValue;
  1243. MarkPropertyChanged(AIndex);
  1244. end;
  1245. //2.6.4. bug workaround
  1246. {$IFDEF VER2_6}
  1247. Procedure TListStepThumbnailsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1248. begin
  1249. Case AName of
  1250. 'thumbnails' : SetLength(Fthumbnails,ALength);
  1251. else
  1252. Inherited SetArrayLength(AName,ALength);
  1253. end;
  1254. end;
  1255. {$ENDIF VER2_6}
  1256. { --------------------------------------------------------------------
  1257. TListStepsResponse
  1258. --------------------------------------------------------------------}
  1259. Procedure TListStepsResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1260. begin
  1261. If (FnextPageToken=AValue) then exit;
  1262. FnextPageToken:=AValue;
  1263. MarkPropertyChanged(AIndex);
  1264. end;
  1265. Procedure TListStepsResponse.Setsteps(AIndex : Integer; const AValue : TListStepsResponseTypestepsArray);
  1266. begin
  1267. If (Fsteps=AValue) then exit;
  1268. Fsteps:=AValue;
  1269. MarkPropertyChanged(AIndex);
  1270. end;
  1271. //2.6.4. bug workaround
  1272. {$IFDEF VER2_6}
  1273. Procedure TListStepsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1274. begin
  1275. Case AName of
  1276. 'steps' : SetLength(Fsteps,ALength);
  1277. else
  1278. Inherited SetArrayLength(AName,ALength);
  1279. end;
  1280. end;
  1281. {$ENDIF VER2_6}
  1282. { --------------------------------------------------------------------
  1283. TOutcome
  1284. --------------------------------------------------------------------}
  1285. Procedure TOutcome.SetfailureDetail(AIndex : Integer; const AValue : TFailureDetail);
  1286. begin
  1287. If (FfailureDetail=AValue) then exit;
  1288. FfailureDetail:=AValue;
  1289. MarkPropertyChanged(AIndex);
  1290. end;
  1291. Procedure TOutcome.SetinconclusiveDetail(AIndex : Integer; const AValue : TInconclusiveDetail);
  1292. begin
  1293. If (FinconclusiveDetail=AValue) then exit;
  1294. FinconclusiveDetail:=AValue;
  1295. MarkPropertyChanged(AIndex);
  1296. end;
  1297. Procedure TOutcome.SetskippedDetail(AIndex : Integer; const AValue : TSkippedDetail);
  1298. begin
  1299. If (FskippedDetail=AValue) then exit;
  1300. FskippedDetail:=AValue;
  1301. MarkPropertyChanged(AIndex);
  1302. end;
  1303. Procedure TOutcome.SetsuccessDetail(AIndex : Integer; const AValue : TSuccessDetail);
  1304. begin
  1305. If (FsuccessDetail=AValue) then exit;
  1306. FsuccessDetail:=AValue;
  1307. MarkPropertyChanged(AIndex);
  1308. end;
  1309. Procedure TOutcome.Setsummary(AIndex : Integer; const AValue : String);
  1310. begin
  1311. If (Fsummary=AValue) then exit;
  1312. Fsummary:=AValue;
  1313. MarkPropertyChanged(AIndex);
  1314. end;
  1315. { --------------------------------------------------------------------
  1316. TProjectSettings
  1317. --------------------------------------------------------------------}
  1318. Procedure TProjectSettings.SetdefaultBucket(AIndex : Integer; const AValue : String);
  1319. begin
  1320. If (FdefaultBucket=AValue) then exit;
  1321. FdefaultBucket:=AValue;
  1322. MarkPropertyChanged(AIndex);
  1323. end;
  1324. Procedure TProjectSettings.Setname(AIndex : Integer; const AValue : String);
  1325. begin
  1326. If (Fname=AValue) then exit;
  1327. Fname:=AValue;
  1328. MarkPropertyChanged(AIndex);
  1329. end;
  1330. { --------------------------------------------------------------------
  1331. TPublishXunitXmlFilesRequest
  1332. --------------------------------------------------------------------}
  1333. Procedure TPublishXunitXmlFilesRequest.SetxunitXmlFiles(AIndex : Integer; const AValue : TPublishXunitXmlFilesRequestTypexunitXmlFilesArray);
  1334. begin
  1335. If (FxunitXmlFiles=AValue) then exit;
  1336. FxunitXmlFiles:=AValue;
  1337. MarkPropertyChanged(AIndex);
  1338. end;
  1339. //2.6.4. bug workaround
  1340. {$IFDEF VER2_6}
  1341. Procedure TPublishXunitXmlFilesRequest.SetArrayLength(Const AName : String; ALength : Longint);
  1342. begin
  1343. Case AName of
  1344. 'xunitxmlfiles' : SetLength(FxunitXmlFiles,ALength);
  1345. else
  1346. Inherited SetArrayLength(AName,ALength);
  1347. end;
  1348. end;
  1349. {$ENDIF VER2_6}
  1350. { --------------------------------------------------------------------
  1351. TSkippedDetail
  1352. --------------------------------------------------------------------}
  1353. Procedure TSkippedDetail.SetincompatibleAppVersion(AIndex : Integer; const AValue : boolean);
  1354. begin
  1355. If (FincompatibleAppVersion=AValue) then exit;
  1356. FincompatibleAppVersion:=AValue;
  1357. MarkPropertyChanged(AIndex);
  1358. end;
  1359. Procedure TSkippedDetail.SetincompatibleArchitecture(AIndex : Integer; const AValue : boolean);
  1360. begin
  1361. If (FincompatibleArchitecture=AValue) then exit;
  1362. FincompatibleArchitecture:=AValue;
  1363. MarkPropertyChanged(AIndex);
  1364. end;
  1365. Procedure TSkippedDetail.SetincompatibleDevice(AIndex : Integer; const AValue : boolean);
  1366. begin
  1367. If (FincompatibleDevice=AValue) then exit;
  1368. FincompatibleDevice:=AValue;
  1369. MarkPropertyChanged(AIndex);
  1370. end;
  1371. { --------------------------------------------------------------------
  1372. TStackTrace
  1373. --------------------------------------------------------------------}
  1374. Procedure TStackTrace.Setexception(AIndex : Integer; const AValue : String);
  1375. begin
  1376. If (Fexception=AValue) then exit;
  1377. Fexception:=AValue;
  1378. MarkPropertyChanged(AIndex);
  1379. end;
  1380. { --------------------------------------------------------------------
  1381. TStatus
  1382. --------------------------------------------------------------------}
  1383. Procedure TStatus.Setcode(AIndex : Integer; const AValue : integer);
  1384. begin
  1385. If (Fcode=AValue) then exit;
  1386. Fcode:=AValue;
  1387. MarkPropertyChanged(AIndex);
  1388. end;
  1389. Procedure TStatus.Setdetails(AIndex : Integer; const AValue : TStatusTypedetailsArray);
  1390. begin
  1391. If (Fdetails=AValue) then exit;
  1392. Fdetails:=AValue;
  1393. MarkPropertyChanged(AIndex);
  1394. end;
  1395. Procedure TStatus.Setmessage(AIndex : Integer; const AValue : String);
  1396. begin
  1397. If (Fmessage=AValue) then exit;
  1398. Fmessage:=AValue;
  1399. MarkPropertyChanged(AIndex);
  1400. end;
  1401. //2.6.4. bug workaround
  1402. {$IFDEF VER2_6}
  1403. Procedure TStatus.SetArrayLength(Const AName : String; ALength : Longint);
  1404. begin
  1405. Case AName of
  1406. 'details' : SetLength(Fdetails,ALength);
  1407. else
  1408. Inherited SetArrayLength(AName,ALength);
  1409. end;
  1410. end;
  1411. {$ENDIF VER2_6}
  1412. { --------------------------------------------------------------------
  1413. TStep
  1414. --------------------------------------------------------------------}
  1415. Procedure TStep.SetcompletionTime(AIndex : Integer; const AValue : TTimestamp);
  1416. begin
  1417. If (FcompletionTime=AValue) then exit;
  1418. FcompletionTime:=AValue;
  1419. MarkPropertyChanged(AIndex);
  1420. end;
  1421. Procedure TStep.SetcreationTime(AIndex : Integer; const AValue : TTimestamp);
  1422. begin
  1423. If (FcreationTime=AValue) then exit;
  1424. FcreationTime:=AValue;
  1425. MarkPropertyChanged(AIndex);
  1426. end;
  1427. Procedure TStep.Setdescription(AIndex : Integer; const AValue : String);
  1428. begin
  1429. If (Fdescription=AValue) then exit;
  1430. Fdescription:=AValue;
  1431. MarkPropertyChanged(AIndex);
  1432. end;
  1433. Procedure TStep.SetdeviceUsageDuration(AIndex : Integer; const AValue : TDuration);
  1434. begin
  1435. If (FdeviceUsageDuration=AValue) then exit;
  1436. FdeviceUsageDuration:=AValue;
  1437. MarkPropertyChanged(AIndex);
  1438. end;
  1439. Procedure TStep.SetdimensionValue(AIndex : Integer; const AValue : TStepTypedimensionValueArray);
  1440. begin
  1441. If (FdimensionValue=AValue) then exit;
  1442. FdimensionValue:=AValue;
  1443. MarkPropertyChanged(AIndex);
  1444. end;
  1445. Procedure TStep.SethasImages(AIndex : Integer; const AValue : boolean);
  1446. begin
  1447. If (FhasImages=AValue) then exit;
  1448. FhasImages:=AValue;
  1449. MarkPropertyChanged(AIndex);
  1450. end;
  1451. Procedure TStep.Setlabels(AIndex : Integer; const AValue : TStepTypelabelsArray);
  1452. begin
  1453. If (Flabels=AValue) then exit;
  1454. Flabels:=AValue;
  1455. MarkPropertyChanged(AIndex);
  1456. end;
  1457. Procedure TStep.Setname(AIndex : Integer; const AValue : String);
  1458. begin
  1459. If (Fname=AValue) then exit;
  1460. Fname:=AValue;
  1461. MarkPropertyChanged(AIndex);
  1462. end;
  1463. Procedure TStep.Setoutcome(AIndex : Integer; const AValue : TOutcome);
  1464. begin
  1465. If (Foutcome=AValue) then exit;
  1466. Foutcome:=AValue;
  1467. MarkPropertyChanged(AIndex);
  1468. end;
  1469. Procedure TStep.SetrunDuration(AIndex : Integer; const AValue : TDuration);
  1470. begin
  1471. If (FrunDuration=AValue) then exit;
  1472. FrunDuration:=AValue;
  1473. MarkPropertyChanged(AIndex);
  1474. end;
  1475. Procedure TStep.Setstate(AIndex : Integer; const AValue : String);
  1476. begin
  1477. If (Fstate=AValue) then exit;
  1478. Fstate:=AValue;
  1479. MarkPropertyChanged(AIndex);
  1480. end;
  1481. Procedure TStep.SetstepId(AIndex : Integer; const AValue : String);
  1482. begin
  1483. If (FstepId=AValue) then exit;
  1484. FstepId:=AValue;
  1485. MarkPropertyChanged(AIndex);
  1486. end;
  1487. Procedure TStep.SettestExecutionStep(AIndex : Integer; const AValue : TTestExecutionStep);
  1488. begin
  1489. If (FtestExecutionStep=AValue) then exit;
  1490. FtestExecutionStep:=AValue;
  1491. MarkPropertyChanged(AIndex);
  1492. end;
  1493. Procedure TStep.SettoolExecutionStep(AIndex : Integer; const AValue : TToolExecutionStep);
  1494. begin
  1495. If (FtoolExecutionStep=AValue) then exit;
  1496. FtoolExecutionStep:=AValue;
  1497. MarkPropertyChanged(AIndex);
  1498. end;
  1499. //2.6.4. bug workaround
  1500. {$IFDEF VER2_6}
  1501. Procedure TStep.SetArrayLength(Const AName : String; ALength : Longint);
  1502. begin
  1503. Case AName of
  1504. 'dimensionvalue' : SetLength(FdimensionValue,ALength);
  1505. 'labels' : SetLength(Flabels,ALength);
  1506. else
  1507. Inherited SetArrayLength(AName,ALength);
  1508. end;
  1509. end;
  1510. {$ENDIF VER2_6}
  1511. { --------------------------------------------------------------------
  1512. TStepDimensionValueEntry
  1513. --------------------------------------------------------------------}
  1514. Procedure TStepDimensionValueEntry.Setkey(AIndex : Integer; const AValue : String);
  1515. begin
  1516. If (Fkey=AValue) then exit;
  1517. Fkey:=AValue;
  1518. MarkPropertyChanged(AIndex);
  1519. end;
  1520. Procedure TStepDimensionValueEntry.Setvalue(AIndex : Integer; const AValue : String);
  1521. begin
  1522. If (Fvalue=AValue) then exit;
  1523. Fvalue:=AValue;
  1524. MarkPropertyChanged(AIndex);
  1525. end;
  1526. { --------------------------------------------------------------------
  1527. TStepLabelsEntry
  1528. --------------------------------------------------------------------}
  1529. Procedure TStepLabelsEntry.Setkey(AIndex : Integer; const AValue : String);
  1530. begin
  1531. If (Fkey=AValue) then exit;
  1532. Fkey:=AValue;
  1533. MarkPropertyChanged(AIndex);
  1534. end;
  1535. Procedure TStepLabelsEntry.Setvalue(AIndex : Integer; const AValue : String);
  1536. begin
  1537. If (Fvalue=AValue) then exit;
  1538. Fvalue:=AValue;
  1539. MarkPropertyChanged(AIndex);
  1540. end;
  1541. { --------------------------------------------------------------------
  1542. TSuccessDetail
  1543. --------------------------------------------------------------------}
  1544. Procedure TSuccessDetail.SetotherNativeCrash(AIndex : Integer; const AValue : boolean);
  1545. begin
  1546. If (FotherNativeCrash=AValue) then exit;
  1547. FotherNativeCrash:=AValue;
  1548. MarkPropertyChanged(AIndex);
  1549. end;
  1550. { --------------------------------------------------------------------
  1551. TTestCaseReference
  1552. --------------------------------------------------------------------}
  1553. Procedure TTestCaseReference.SetclassName(AIndex : Integer; const AValue : String);
  1554. begin
  1555. If (FclassName=AValue) then exit;
  1556. FclassName:=AValue;
  1557. MarkPropertyChanged(AIndex);
  1558. end;
  1559. Procedure TTestCaseReference.Setname(AIndex : Integer; const AValue : String);
  1560. begin
  1561. If (Fname=AValue) then exit;
  1562. Fname:=AValue;
  1563. MarkPropertyChanged(AIndex);
  1564. end;
  1565. Procedure TTestCaseReference.SettestSuiteName(AIndex : Integer; const AValue : String);
  1566. begin
  1567. If (FtestSuiteName=AValue) then exit;
  1568. FtestSuiteName:=AValue;
  1569. MarkPropertyChanged(AIndex);
  1570. end;
  1571. { --------------------------------------------------------------------
  1572. TTestExecutionStep
  1573. --------------------------------------------------------------------}
  1574. Procedure TTestExecutionStep.SettestIssues(AIndex : Integer; const AValue : TTestExecutionStepTypetestIssuesArray);
  1575. begin
  1576. If (FtestIssues=AValue) then exit;
  1577. FtestIssues:=AValue;
  1578. MarkPropertyChanged(AIndex);
  1579. end;
  1580. Procedure TTestExecutionStep.SettestSuiteOverviews(AIndex : Integer; const AValue : TTestExecutionStepTypetestSuiteOverviewsArray);
  1581. begin
  1582. If (FtestSuiteOverviews=AValue) then exit;
  1583. FtestSuiteOverviews:=AValue;
  1584. MarkPropertyChanged(AIndex);
  1585. end;
  1586. Procedure TTestExecutionStep.SettestTiming(AIndex : Integer; const AValue : TTestTiming);
  1587. begin
  1588. If (FtestTiming=AValue) then exit;
  1589. FtestTiming:=AValue;
  1590. MarkPropertyChanged(AIndex);
  1591. end;
  1592. Procedure TTestExecutionStep.SettoolExecution(AIndex : Integer; const AValue : TToolExecution);
  1593. begin
  1594. If (FtoolExecution=AValue) then exit;
  1595. FtoolExecution:=AValue;
  1596. MarkPropertyChanged(AIndex);
  1597. end;
  1598. //2.6.4. bug workaround
  1599. {$IFDEF VER2_6}
  1600. Procedure TTestExecutionStep.SetArrayLength(Const AName : String; ALength : Longint);
  1601. begin
  1602. Case AName of
  1603. 'testissues' : SetLength(FtestIssues,ALength);
  1604. 'testsuiteoverviews' : SetLength(FtestSuiteOverviews,ALength);
  1605. else
  1606. Inherited SetArrayLength(AName,ALength);
  1607. end;
  1608. end;
  1609. {$ENDIF VER2_6}
  1610. { --------------------------------------------------------------------
  1611. TTestIssue
  1612. --------------------------------------------------------------------}
  1613. Procedure TTestIssue.SeterrorMessage(AIndex : Integer; const AValue : String);
  1614. begin
  1615. If (FerrorMessage=AValue) then exit;
  1616. FerrorMessage:=AValue;
  1617. MarkPropertyChanged(AIndex);
  1618. end;
  1619. Procedure TTestIssue.SetstackTrace(AIndex : Integer; const AValue : TStackTrace);
  1620. begin
  1621. If (FstackTrace=AValue) then exit;
  1622. FstackTrace:=AValue;
  1623. MarkPropertyChanged(AIndex);
  1624. end;
  1625. { --------------------------------------------------------------------
  1626. TTestSuiteOverview
  1627. --------------------------------------------------------------------}
  1628. Procedure TTestSuiteOverview.SeterrorCount(AIndex : Integer; const AValue : integer);
  1629. begin
  1630. If (FerrorCount=AValue) then exit;
  1631. FerrorCount:=AValue;
  1632. MarkPropertyChanged(AIndex);
  1633. end;
  1634. Procedure TTestSuiteOverview.SetfailureCount(AIndex : Integer; const AValue : integer);
  1635. begin
  1636. If (FfailureCount=AValue) then exit;
  1637. FfailureCount:=AValue;
  1638. MarkPropertyChanged(AIndex);
  1639. end;
  1640. Procedure TTestSuiteOverview.Setname(AIndex : Integer; const AValue : String);
  1641. begin
  1642. If (Fname=AValue) then exit;
  1643. Fname:=AValue;
  1644. MarkPropertyChanged(AIndex);
  1645. end;
  1646. Procedure TTestSuiteOverview.SetskippedCount(AIndex : Integer; const AValue : integer);
  1647. begin
  1648. If (FskippedCount=AValue) then exit;
  1649. FskippedCount:=AValue;
  1650. MarkPropertyChanged(AIndex);
  1651. end;
  1652. Procedure TTestSuiteOverview.SettotalCount(AIndex : Integer; const AValue : integer);
  1653. begin
  1654. If (FtotalCount=AValue) then exit;
  1655. FtotalCount:=AValue;
  1656. MarkPropertyChanged(AIndex);
  1657. end;
  1658. Procedure TTestSuiteOverview.SetxmlSource(AIndex : Integer; const AValue : TFileReference);
  1659. begin
  1660. If (FxmlSource=AValue) then exit;
  1661. FxmlSource:=AValue;
  1662. MarkPropertyChanged(AIndex);
  1663. end;
  1664. { --------------------------------------------------------------------
  1665. TTestTiming
  1666. --------------------------------------------------------------------}
  1667. Procedure TTestTiming.SettestProcessDuration(AIndex : Integer; const AValue : TDuration);
  1668. begin
  1669. If (FtestProcessDuration=AValue) then exit;
  1670. FtestProcessDuration:=AValue;
  1671. MarkPropertyChanged(AIndex);
  1672. end;
  1673. { --------------------------------------------------------------------
  1674. TThumbnail
  1675. --------------------------------------------------------------------}
  1676. Procedure TThumbnail.SetcontentType(AIndex : Integer; const AValue : String);
  1677. begin
  1678. If (FcontentType=AValue) then exit;
  1679. FcontentType:=AValue;
  1680. MarkPropertyChanged(AIndex);
  1681. end;
  1682. Procedure TThumbnail.Setdata(AIndex : Integer; const AValue : String);
  1683. begin
  1684. If (Fdata=AValue) then exit;
  1685. Fdata:=AValue;
  1686. MarkPropertyChanged(AIndex);
  1687. end;
  1688. Procedure TThumbnail.SetheightPx(AIndex : Integer; const AValue : integer);
  1689. begin
  1690. If (FheightPx=AValue) then exit;
  1691. FheightPx:=AValue;
  1692. MarkPropertyChanged(AIndex);
  1693. end;
  1694. Procedure TThumbnail.SetwidthPx(AIndex : Integer; const AValue : integer);
  1695. begin
  1696. If (FwidthPx=AValue) then exit;
  1697. FwidthPx:=AValue;
  1698. MarkPropertyChanged(AIndex);
  1699. end;
  1700. { --------------------------------------------------------------------
  1701. TTimestamp
  1702. --------------------------------------------------------------------}
  1703. Procedure TTimestamp.Setnanos(AIndex : Integer; const AValue : integer);
  1704. begin
  1705. If (Fnanos=AValue) then exit;
  1706. Fnanos:=AValue;
  1707. MarkPropertyChanged(AIndex);
  1708. end;
  1709. Procedure TTimestamp.Setseconds(AIndex : Integer; const AValue : String);
  1710. begin
  1711. If (Fseconds=AValue) then exit;
  1712. Fseconds:=AValue;
  1713. MarkPropertyChanged(AIndex);
  1714. end;
  1715. { --------------------------------------------------------------------
  1716. TToolExecution
  1717. --------------------------------------------------------------------}
  1718. Procedure TToolExecution.SetcommandLineArguments(AIndex : Integer; const AValue : TStringArray);
  1719. begin
  1720. If (FcommandLineArguments=AValue) then exit;
  1721. FcommandLineArguments:=AValue;
  1722. MarkPropertyChanged(AIndex);
  1723. end;
  1724. Procedure TToolExecution.SetexitCode(AIndex : Integer; const AValue : TToolExitCode);
  1725. begin
  1726. If (FexitCode=AValue) then exit;
  1727. FexitCode:=AValue;
  1728. MarkPropertyChanged(AIndex);
  1729. end;
  1730. Procedure TToolExecution.SettoolLogs(AIndex : Integer; const AValue : TToolExecutionTypetoolLogsArray);
  1731. begin
  1732. If (FtoolLogs=AValue) then exit;
  1733. FtoolLogs:=AValue;
  1734. MarkPropertyChanged(AIndex);
  1735. end;
  1736. Procedure TToolExecution.SettoolOutputs(AIndex : Integer; const AValue : TToolExecutionTypetoolOutputsArray);
  1737. begin
  1738. If (FtoolOutputs=AValue) then exit;
  1739. FtoolOutputs:=AValue;
  1740. MarkPropertyChanged(AIndex);
  1741. end;
  1742. //2.6.4. bug workaround
  1743. {$IFDEF VER2_6}
  1744. Procedure TToolExecution.SetArrayLength(Const AName : String; ALength : Longint);
  1745. begin
  1746. Case AName of
  1747. 'commandlinearguments' : SetLength(FcommandLineArguments,ALength);
  1748. 'toollogs' : SetLength(FtoolLogs,ALength);
  1749. 'tooloutputs' : SetLength(FtoolOutputs,ALength);
  1750. else
  1751. Inherited SetArrayLength(AName,ALength);
  1752. end;
  1753. end;
  1754. {$ENDIF VER2_6}
  1755. { --------------------------------------------------------------------
  1756. TToolExecutionStep
  1757. --------------------------------------------------------------------}
  1758. Procedure TToolExecutionStep.SettoolExecution(AIndex : Integer; const AValue : TToolExecution);
  1759. begin
  1760. If (FtoolExecution=AValue) then exit;
  1761. FtoolExecution:=AValue;
  1762. MarkPropertyChanged(AIndex);
  1763. end;
  1764. { --------------------------------------------------------------------
  1765. TToolExitCode
  1766. --------------------------------------------------------------------}
  1767. Procedure TToolExitCode.Setnumber(AIndex : Integer; const AValue : integer);
  1768. begin
  1769. If (Fnumber=AValue) then exit;
  1770. Fnumber:=AValue;
  1771. MarkPropertyChanged(AIndex);
  1772. end;
  1773. { --------------------------------------------------------------------
  1774. TToolOutputReference
  1775. --------------------------------------------------------------------}
  1776. Procedure TToolOutputReference.SetcreationTime(AIndex : Integer; const AValue : TTimestamp);
  1777. begin
  1778. If (FcreationTime=AValue) then exit;
  1779. FcreationTime:=AValue;
  1780. MarkPropertyChanged(AIndex);
  1781. end;
  1782. Procedure TToolOutputReference.Setoutput(AIndex : Integer; const AValue : TFileReference);
  1783. begin
  1784. If (Foutput=AValue) then exit;
  1785. Foutput:=AValue;
  1786. MarkPropertyChanged(AIndex);
  1787. end;
  1788. Procedure TToolOutputReference.SettestCase(AIndex : Integer; const AValue : TTestCaseReference);
  1789. begin
  1790. If (FtestCase=AValue) then exit;
  1791. FtestCase:=AValue;
  1792. MarkPropertyChanged(AIndex);
  1793. end;
  1794. { --------------------------------------------------------------------
  1795. TProjectsHistoriesExecutionsStepsThumbnailsResource
  1796. --------------------------------------------------------------------}
  1797. Class Function TProjectsHistoriesExecutionsStepsThumbnailsResource.ResourceName : String;
  1798. begin
  1799. Result:='thumbnails';
  1800. end;
  1801. Class Function TProjectsHistoriesExecutionsStepsThumbnailsResource.DefaultAPI : TGoogleAPIClass;
  1802. begin
  1803. Result:=TtoolresultsAPI;
  1804. end;
  1805. Function TProjectsHistoriesExecutionsStepsThumbnailsResource.List(executionId: string; historyId: string; projectId: string; stepId: string; AQuery : string = '') : TListStepThumbnailsResponse;
  1806. Const
  1807. _HTTPMethod = 'GET';
  1808. _Path = '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails';
  1809. _Methodid = 'toolresults.projects.histories.executions.steps.thumbnails.list';
  1810. Var
  1811. _P : String;
  1812. begin
  1813. _P:=SubstitutePath(_Path,['executionId',executionId,'historyId',historyId,'projectId',projectId,'stepId',stepId]);
  1814. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListStepThumbnailsResponse) as TListStepThumbnailsResponse;
  1815. end;
  1816. Function TProjectsHistoriesExecutionsStepsThumbnailsResource.List(executionId: string; historyId: string; projectId: string; stepId: string; AQuery : TProjectsHistoriesExecutionsStepsThumbnailslistOptions) : TListStepThumbnailsResponse;
  1817. Var
  1818. _Q : String;
  1819. begin
  1820. _Q:='';
  1821. AddToQuery(_Q,'pageSize',AQuery.pageSize);
  1822. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  1823. Result:=List(executionId,historyId,projectId,stepId,_Q);
  1824. end;
  1825. { --------------------------------------------------------------------
  1826. TProjectsHistoriesExecutionsStepsResource
  1827. --------------------------------------------------------------------}
  1828. Class Function TProjectsHistoriesExecutionsStepsResource.ResourceName : String;
  1829. begin
  1830. Result:='steps';
  1831. end;
  1832. Class Function TProjectsHistoriesExecutionsStepsResource.DefaultAPI : TGoogleAPIClass;
  1833. begin
  1834. Result:=TtoolresultsAPI;
  1835. end;
  1836. Function TProjectsHistoriesExecutionsStepsResource.Create(executionId: string; historyId: string; projectId: string; aStep : TStep; AQuery : string = '') : TStep;
  1837. Const
  1838. _HTTPMethod = 'POST';
  1839. _Path = '{projectId}/histories/{historyId}/executions/{executionId}/steps';
  1840. _Methodid = 'toolresults.projects.histories.executions.steps.create';
  1841. Var
  1842. _P : String;
  1843. begin
  1844. _P:=SubstitutePath(_Path,['executionId',executionId,'historyId',historyId,'projectId',projectId]);
  1845. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aStep,TStep) as TStep;
  1846. end;
  1847. Function TProjectsHistoriesExecutionsStepsResource.Create(executionId: string; historyId: string; projectId: string; aStep : TStep; AQuery : TProjectsHistoriesExecutionsStepscreateOptions) : TStep;
  1848. Var
  1849. _Q : String;
  1850. begin
  1851. _Q:='';
  1852. AddToQuery(_Q,'requestId',AQuery.requestId);
  1853. Result:=Create(executionId,historyId,projectId,aStep,_Q);
  1854. end;
  1855. Function TProjectsHistoriesExecutionsStepsResource.Get(executionId: string; historyId: string; projectId: string; stepId: string) : TStep;
  1856. Const
  1857. _HTTPMethod = 'GET';
  1858. _Path = '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}';
  1859. _Methodid = 'toolresults.projects.histories.executions.steps.get';
  1860. Var
  1861. _P : String;
  1862. begin
  1863. _P:=SubstitutePath(_Path,['executionId',executionId,'historyId',historyId,'projectId',projectId,'stepId',stepId]);
  1864. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TStep) as TStep;
  1865. end;
  1866. Function TProjectsHistoriesExecutionsStepsResource.List(executionId: string; historyId: string; projectId: string; AQuery : string = '') : TListStepsResponse;
  1867. Const
  1868. _HTTPMethod = 'GET';
  1869. _Path = '{projectId}/histories/{historyId}/executions/{executionId}/steps';
  1870. _Methodid = 'toolresults.projects.histories.executions.steps.list';
  1871. Var
  1872. _P : String;
  1873. begin
  1874. _P:=SubstitutePath(_Path,['executionId',executionId,'historyId',historyId,'projectId',projectId]);
  1875. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListStepsResponse) as TListStepsResponse;
  1876. end;
  1877. Function TProjectsHistoriesExecutionsStepsResource.List(executionId: string; historyId: string; projectId: string; AQuery : TProjectsHistoriesExecutionsStepslistOptions) : TListStepsResponse;
  1878. Var
  1879. _Q : String;
  1880. begin
  1881. _Q:='';
  1882. AddToQuery(_Q,'pageSize',AQuery.pageSize);
  1883. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  1884. Result:=List(executionId,historyId,projectId,_Q);
  1885. end;
  1886. Function TProjectsHistoriesExecutionsStepsResource.Patch(executionId: string; historyId: string; projectId: string; stepId: string; aStep : TStep; AQuery : string = '') : TStep;
  1887. Const
  1888. _HTTPMethod = 'PATCH';
  1889. _Path = '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}';
  1890. _Methodid = 'toolresults.projects.histories.executions.steps.patch';
  1891. Var
  1892. _P : String;
  1893. begin
  1894. _P:=SubstitutePath(_Path,['executionId',executionId,'historyId',historyId,'projectId',projectId,'stepId',stepId]);
  1895. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aStep,TStep) as TStep;
  1896. end;
  1897. Function TProjectsHistoriesExecutionsStepsResource.Patch(executionId: string; historyId: string; projectId: string; stepId: string; aStep : TStep; AQuery : TProjectsHistoriesExecutionsStepspatchOptions) : TStep;
  1898. Var
  1899. _Q : String;
  1900. begin
  1901. _Q:='';
  1902. AddToQuery(_Q,'requestId',AQuery.requestId);
  1903. Result:=Patch(executionId,historyId,projectId,stepId,aStep,_Q);
  1904. end;
  1905. Function TProjectsHistoriesExecutionsStepsResource.PublishXunitXmlFiles(executionId: string; historyId: string; projectId: string; stepId: string; aPublishXunitXmlFilesRequest : TPublishXunitXmlFilesRequest) : TStep;
  1906. Const
  1907. _HTTPMethod = 'POST';
  1908. _Path = '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles';
  1909. _Methodid = 'toolresults.projects.histories.executions.steps.publishXunitXmlFiles';
  1910. Var
  1911. _P : String;
  1912. begin
  1913. _P:=SubstitutePath(_Path,['executionId',executionId,'historyId',historyId,'projectId',projectId,'stepId',stepId]);
  1914. Result:=ServiceCall(_HTTPMethod,_P,'',aPublishXunitXmlFilesRequest,TStep) as TStep;
  1915. end;
  1916. Function TProjectsHistoriesExecutionsStepsResource.GetThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  1917. begin
  1918. if (FThumbnailsInstance=Nil) then
  1919. FThumbnailsInstance:=CreateThumbnailsResource;
  1920. Result:=FThumbnailsInstance;
  1921. end;
  1922. Function TProjectsHistoriesExecutionsStepsResource.CreateThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  1923. begin
  1924. Result:=CreateThumbnailsResource(Self);
  1925. end;
  1926. Function TProjectsHistoriesExecutionsStepsResource.CreateThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  1927. begin
  1928. Result:=TProjectsHistoriesExecutionsStepsThumbnailsResource.Create(AOwner);
  1929. Result.API:=Self.API;
  1930. end;
  1931. { --------------------------------------------------------------------
  1932. TProjectsHistoriesExecutionsResource
  1933. --------------------------------------------------------------------}
  1934. Class Function TProjectsHistoriesExecutionsResource.ResourceName : String;
  1935. begin
  1936. Result:='executions';
  1937. end;
  1938. Class Function TProjectsHistoriesExecutionsResource.DefaultAPI : TGoogleAPIClass;
  1939. begin
  1940. Result:=TtoolresultsAPI;
  1941. end;
  1942. Function TProjectsHistoriesExecutionsResource.Create(historyId: string; projectId: string; aExecution : TExecution; AQuery : string = '') : TExecution;
  1943. Const
  1944. _HTTPMethod = 'POST';
  1945. _Path = '{projectId}/histories/{historyId}/executions';
  1946. _Methodid = 'toolresults.projects.histories.executions.create';
  1947. Var
  1948. _P : String;
  1949. begin
  1950. _P:=SubstitutePath(_Path,['historyId',historyId,'projectId',projectId]);
  1951. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aExecution,TExecution) as TExecution;
  1952. end;
  1953. Function TProjectsHistoriesExecutionsResource.Create(historyId: string; projectId: string; aExecution : TExecution; AQuery : TProjectsHistoriesExecutionscreateOptions) : TExecution;
  1954. Var
  1955. _Q : String;
  1956. begin
  1957. _Q:='';
  1958. AddToQuery(_Q,'requestId',AQuery.requestId);
  1959. Result:=Create(historyId,projectId,aExecution,_Q);
  1960. end;
  1961. Function TProjectsHistoriesExecutionsResource.Get(executionId: string; historyId: string; projectId: string) : TExecution;
  1962. Const
  1963. _HTTPMethod = 'GET';
  1964. _Path = '{projectId}/histories/{historyId}/executions/{executionId}';
  1965. _Methodid = 'toolresults.projects.histories.executions.get';
  1966. Var
  1967. _P : String;
  1968. begin
  1969. _P:=SubstitutePath(_Path,['executionId',executionId,'historyId',historyId,'projectId',projectId]);
  1970. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TExecution) as TExecution;
  1971. end;
  1972. Function TProjectsHistoriesExecutionsResource.List(historyId: string; projectId: string; AQuery : string = '') : TListExecutionsResponse;
  1973. Const
  1974. _HTTPMethod = 'GET';
  1975. _Path = '{projectId}/histories/{historyId}/executions';
  1976. _Methodid = 'toolresults.projects.histories.executions.list';
  1977. Var
  1978. _P : String;
  1979. begin
  1980. _P:=SubstitutePath(_Path,['historyId',historyId,'projectId',projectId]);
  1981. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListExecutionsResponse) as TListExecutionsResponse;
  1982. end;
  1983. Function TProjectsHistoriesExecutionsResource.List(historyId: string; projectId: string; AQuery : TProjectsHistoriesExecutionslistOptions) : TListExecutionsResponse;
  1984. Var
  1985. _Q : String;
  1986. begin
  1987. _Q:='';
  1988. AddToQuery(_Q,'pageSize',AQuery.pageSize);
  1989. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  1990. Result:=List(historyId,projectId,_Q);
  1991. end;
  1992. Function TProjectsHistoriesExecutionsResource.Patch(executionId: string; historyId: string; projectId: string; aExecution : TExecution; AQuery : string = '') : TExecution;
  1993. Const
  1994. _HTTPMethod = 'PATCH';
  1995. _Path = '{projectId}/histories/{historyId}/executions/{executionId}';
  1996. _Methodid = 'toolresults.projects.histories.executions.patch';
  1997. Var
  1998. _P : String;
  1999. begin
  2000. _P:=SubstitutePath(_Path,['executionId',executionId,'historyId',historyId,'projectId',projectId]);
  2001. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aExecution,TExecution) as TExecution;
  2002. end;
  2003. Function TProjectsHistoriesExecutionsResource.Patch(executionId: string; historyId: string; projectId: string; aExecution : TExecution; AQuery : TProjectsHistoriesExecutionspatchOptions) : TExecution;
  2004. Var
  2005. _Q : String;
  2006. begin
  2007. _Q:='';
  2008. AddToQuery(_Q,'requestId',AQuery.requestId);
  2009. Result:=Patch(executionId,historyId,projectId,aExecution,_Q);
  2010. end;
  2011. Function TProjectsHistoriesExecutionsResource.GetStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2012. begin
  2013. if (FStepsThumbnailsInstance=Nil) then
  2014. FStepsThumbnailsInstance:=CreateStepsThumbnailsResource;
  2015. Result:=FStepsThumbnailsInstance;
  2016. end;
  2017. Function TProjectsHistoriesExecutionsResource.CreateStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2018. begin
  2019. Result:=CreateStepsThumbnailsResource(Self);
  2020. end;
  2021. Function TProjectsHistoriesExecutionsResource.CreateStepsThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2022. begin
  2023. Result:=TProjectsHistoriesExecutionsStepsThumbnailsResource.Create(AOwner);
  2024. Result.API:=Self.API;
  2025. end;
  2026. Function TProjectsHistoriesExecutionsResource.GetStepsInstance : TProjectsHistoriesExecutionsStepsResource;
  2027. begin
  2028. if (FStepsInstance=Nil) then
  2029. FStepsInstance:=CreateStepsResource;
  2030. Result:=FStepsInstance;
  2031. end;
  2032. Function TProjectsHistoriesExecutionsResource.CreateStepsResource : TProjectsHistoriesExecutionsStepsResource;
  2033. begin
  2034. Result:=CreateStepsResource(Self);
  2035. end;
  2036. Function TProjectsHistoriesExecutionsResource.CreateStepsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsResource;
  2037. begin
  2038. Result:=TProjectsHistoriesExecutionsStepsResource.Create(AOwner);
  2039. Result.API:=Self.API;
  2040. end;
  2041. { --------------------------------------------------------------------
  2042. TProjectsHistoriesResource
  2043. --------------------------------------------------------------------}
  2044. Class Function TProjectsHistoriesResource.ResourceName : String;
  2045. begin
  2046. Result:='histories';
  2047. end;
  2048. Class Function TProjectsHistoriesResource.DefaultAPI : TGoogleAPIClass;
  2049. begin
  2050. Result:=TtoolresultsAPI;
  2051. end;
  2052. Function TProjectsHistoriesResource.Create(projectId: string; aHistory : THistory; AQuery : string = '') : THistory;
  2053. Const
  2054. _HTTPMethod = 'POST';
  2055. _Path = '{projectId}/histories';
  2056. _Methodid = 'toolresults.projects.histories.create';
  2057. Var
  2058. _P : String;
  2059. begin
  2060. _P:=SubstitutePath(_Path,['projectId',projectId]);
  2061. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aHistory,THistory) as THistory;
  2062. end;
  2063. Function TProjectsHistoriesResource.Create(projectId: string; aHistory : THistory; AQuery : TProjectsHistoriescreateOptions) : THistory;
  2064. Var
  2065. _Q : String;
  2066. begin
  2067. _Q:='';
  2068. AddToQuery(_Q,'requestId',AQuery.requestId);
  2069. Result:=Create(projectId,aHistory,_Q);
  2070. end;
  2071. Function TProjectsHistoriesResource.Get(historyId: string; projectId: string) : THistory;
  2072. Const
  2073. _HTTPMethod = 'GET';
  2074. _Path = '{projectId}/histories/{historyId}';
  2075. _Methodid = 'toolresults.projects.histories.get';
  2076. Var
  2077. _P : String;
  2078. begin
  2079. _P:=SubstitutePath(_Path,['historyId',historyId,'projectId',projectId]);
  2080. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,THistory) as THistory;
  2081. end;
  2082. Function TProjectsHistoriesResource.List(projectId: string; AQuery : string = '') : TListHistoriesResponse;
  2083. Const
  2084. _HTTPMethod = 'GET';
  2085. _Path = '{projectId}/histories';
  2086. _Methodid = 'toolresults.projects.histories.list';
  2087. Var
  2088. _P : String;
  2089. begin
  2090. _P:=SubstitutePath(_Path,['projectId',projectId]);
  2091. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListHistoriesResponse) as TListHistoriesResponse;
  2092. end;
  2093. Function TProjectsHistoriesResource.List(projectId: string; AQuery : TProjectsHistorieslistOptions) : TListHistoriesResponse;
  2094. Var
  2095. _Q : String;
  2096. begin
  2097. _Q:='';
  2098. AddToQuery(_Q,'filterByName',AQuery.filterByName);
  2099. AddToQuery(_Q,'pageSize',AQuery.pageSize);
  2100. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2101. Result:=List(projectId,_Q);
  2102. end;
  2103. Function TProjectsHistoriesResource.GetExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2104. begin
  2105. if (FExecutionsStepsThumbnailsInstance=Nil) then
  2106. FExecutionsStepsThumbnailsInstance:=CreateExecutionsStepsThumbnailsResource;
  2107. Result:=FExecutionsStepsThumbnailsInstance;
  2108. end;
  2109. Function TProjectsHistoriesResource.CreateExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2110. begin
  2111. Result:=CreateExecutionsStepsThumbnailsResource(Self);
  2112. end;
  2113. Function TProjectsHistoriesResource.CreateExecutionsStepsThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2114. begin
  2115. Result:=TProjectsHistoriesExecutionsStepsThumbnailsResource.Create(AOwner);
  2116. Result.API:=Self.API;
  2117. end;
  2118. Function TProjectsHistoriesResource.GetExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;
  2119. begin
  2120. if (FExecutionsStepsInstance=Nil) then
  2121. FExecutionsStepsInstance:=CreateExecutionsStepsResource;
  2122. Result:=FExecutionsStepsInstance;
  2123. end;
  2124. Function TProjectsHistoriesResource.CreateExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource;
  2125. begin
  2126. Result:=CreateExecutionsStepsResource(Self);
  2127. end;
  2128. Function TProjectsHistoriesResource.CreateExecutionsStepsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsResource;
  2129. begin
  2130. Result:=TProjectsHistoriesExecutionsStepsResource.Create(AOwner);
  2131. Result.API:=Self.API;
  2132. end;
  2133. Function TProjectsHistoriesResource.GetExecutionsInstance : TProjectsHistoriesExecutionsResource;
  2134. begin
  2135. if (FExecutionsInstance=Nil) then
  2136. FExecutionsInstance:=CreateExecutionsResource;
  2137. Result:=FExecutionsInstance;
  2138. end;
  2139. Function TProjectsHistoriesResource.CreateExecutionsResource : TProjectsHistoriesExecutionsResource;
  2140. begin
  2141. Result:=CreateExecutionsResource(Self);
  2142. end;
  2143. Function TProjectsHistoriesResource.CreateExecutionsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsResource;
  2144. begin
  2145. Result:=TProjectsHistoriesExecutionsResource.Create(AOwner);
  2146. Result.API:=Self.API;
  2147. end;
  2148. { --------------------------------------------------------------------
  2149. TProjectsResource
  2150. --------------------------------------------------------------------}
  2151. Class Function TProjectsResource.ResourceName : String;
  2152. begin
  2153. Result:='projects';
  2154. end;
  2155. Class Function TProjectsResource.DefaultAPI : TGoogleAPIClass;
  2156. begin
  2157. Result:=TtoolresultsAPI;
  2158. end;
  2159. Function TProjectsResource.GetSettings(projectId: string) : TProjectSettings;
  2160. Const
  2161. _HTTPMethod = 'GET';
  2162. _Path = '{projectId}/settings';
  2163. _Methodid = 'toolresults.projects.getSettings';
  2164. Var
  2165. _P : String;
  2166. begin
  2167. _P:=SubstitutePath(_Path,['projectId',projectId]);
  2168. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProjectSettings) as TProjectSettings;
  2169. end;
  2170. Function TProjectsResource.InitializeSettings(projectId: string) : TProjectSettings;
  2171. Const
  2172. _HTTPMethod = 'POST';
  2173. _Path = '{projectId}:initializeSettings';
  2174. _Methodid = 'toolresults.projects.initializeSettings';
  2175. Var
  2176. _P : String;
  2177. begin
  2178. _P:=SubstitutePath(_Path,['projectId',projectId]);
  2179. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProjectSettings) as TProjectSettings;
  2180. end;
  2181. Function TProjectsResource.GetHistoriesExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2182. begin
  2183. if (FHistoriesExecutionsStepsThumbnailsInstance=Nil) then
  2184. FHistoriesExecutionsStepsThumbnailsInstance:=CreateHistoriesExecutionsStepsThumbnailsResource;
  2185. Result:=FHistoriesExecutionsStepsThumbnailsInstance;
  2186. end;
  2187. Function TProjectsResource.CreateHistoriesExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2188. begin
  2189. Result:=CreateHistoriesExecutionsStepsThumbnailsResource(Self);
  2190. end;
  2191. Function TProjectsResource.CreateHistoriesExecutionsStepsThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2192. begin
  2193. Result:=TProjectsHistoriesExecutionsStepsThumbnailsResource.Create(AOwner);
  2194. Result.API:=Self.API;
  2195. end;
  2196. Function TProjectsResource.GetHistoriesExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;
  2197. begin
  2198. if (FHistoriesExecutionsStepsInstance=Nil) then
  2199. FHistoriesExecutionsStepsInstance:=CreateHistoriesExecutionsStepsResource;
  2200. Result:=FHistoriesExecutionsStepsInstance;
  2201. end;
  2202. Function TProjectsResource.CreateHistoriesExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource;
  2203. begin
  2204. Result:=CreateHistoriesExecutionsStepsResource(Self);
  2205. end;
  2206. Function TProjectsResource.CreateHistoriesExecutionsStepsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsResource;
  2207. begin
  2208. Result:=TProjectsHistoriesExecutionsStepsResource.Create(AOwner);
  2209. Result.API:=Self.API;
  2210. end;
  2211. Function TProjectsResource.GetHistoriesExecutionsInstance : TProjectsHistoriesExecutionsResource;
  2212. begin
  2213. if (FHistoriesExecutionsInstance=Nil) then
  2214. FHistoriesExecutionsInstance:=CreateHistoriesExecutionsResource;
  2215. Result:=FHistoriesExecutionsInstance;
  2216. end;
  2217. Function TProjectsResource.CreateHistoriesExecutionsResource : TProjectsHistoriesExecutionsResource;
  2218. begin
  2219. Result:=CreateHistoriesExecutionsResource(Self);
  2220. end;
  2221. Function TProjectsResource.CreateHistoriesExecutionsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsResource;
  2222. begin
  2223. Result:=TProjectsHistoriesExecutionsResource.Create(AOwner);
  2224. Result.API:=Self.API;
  2225. end;
  2226. Function TProjectsResource.GetHistoriesInstance : TProjectsHistoriesResource;
  2227. begin
  2228. if (FHistoriesInstance=Nil) then
  2229. FHistoriesInstance:=CreateHistoriesResource;
  2230. Result:=FHistoriesInstance;
  2231. end;
  2232. Function TProjectsResource.CreateHistoriesResource : TProjectsHistoriesResource;
  2233. begin
  2234. Result:=CreateHistoriesResource(Self);
  2235. end;
  2236. Function TProjectsResource.CreateHistoriesResource(AOwner : TComponent) : TProjectsHistoriesResource;
  2237. begin
  2238. Result:=TProjectsHistoriesResource.Create(AOwner);
  2239. Result.API:=Self.API;
  2240. end;
  2241. { --------------------------------------------------------------------
  2242. TToolresultsAPI
  2243. --------------------------------------------------------------------}
  2244. Class Function TToolresultsAPI.APIName : String;
  2245. begin
  2246. Result:='toolresults';
  2247. end;
  2248. Class Function TToolresultsAPI.APIVersion : String;
  2249. begin
  2250. Result:='v1beta3';
  2251. end;
  2252. Class Function TToolresultsAPI.APIRevision : String;
  2253. begin
  2254. Result:='20160523';
  2255. end;
  2256. Class Function TToolresultsAPI.APIID : String;
  2257. begin
  2258. Result:='toolresults:v1beta3';
  2259. end;
  2260. Class Function TToolresultsAPI.APITitle : String;
  2261. begin
  2262. Result:='Cloud Tool Results API';
  2263. end;
  2264. Class Function TToolresultsAPI.APIDescription : String;
  2265. begin
  2266. Result:='Reads and publishes results from Cloud Test Lab.';
  2267. end;
  2268. Class Function TToolresultsAPI.APIOwnerDomain : String;
  2269. begin
  2270. Result:='google.com';
  2271. end;
  2272. Class Function TToolresultsAPI.APIOwnerName : String;
  2273. begin
  2274. Result:='Google';
  2275. end;
  2276. Class Function TToolresultsAPI.APIIcon16 : String;
  2277. begin
  2278. Result:='http://www.google.com/images/icons/product/search-16.gif';
  2279. end;
  2280. Class Function TToolresultsAPI.APIIcon32 : String;
  2281. begin
  2282. Result:='http://www.google.com/images/icons/product/search-32.gif';
  2283. end;
  2284. Class Function TToolresultsAPI.APIdocumentationLink : String;
  2285. begin
  2286. Result:='https://developers.google.com/cloud-test-lab/';
  2287. end;
  2288. Class Function TToolresultsAPI.APIrootUrl : string;
  2289. begin
  2290. Result:='https://www.googleapis.com/';
  2291. end;
  2292. Class Function TToolresultsAPI.APIbasePath : string;
  2293. begin
  2294. Result:='/toolresults/v1beta3/projects/';
  2295. end;
  2296. Class Function TToolresultsAPI.APIbaseURL : String;
  2297. begin
  2298. Result:='https://www.googleapis.com/toolresults/v1beta3/projects/';
  2299. end;
  2300. Class Function TToolresultsAPI.APIProtocol : string;
  2301. begin
  2302. Result:='rest';
  2303. end;
  2304. Class Function TToolresultsAPI.APIservicePath : string;
  2305. begin
  2306. Result:='toolresults/v1beta3/projects/';
  2307. end;
  2308. Class Function TToolresultsAPI.APIbatchPath : String;
  2309. begin
  2310. Result:='batch';
  2311. end;
  2312. Class Function TToolresultsAPI.APIAuthScopes : TScopeInfoArray;
  2313. begin
  2314. SetLength(Result,1);
  2315. Result[0].Name:='https://www.googleapis.com/auth/cloud-platform';
  2316. Result[0].Description:='View and manage your data across Google Cloud Platform services';
  2317. end;
  2318. Class Function TToolresultsAPI.APINeedsAuth : Boolean;
  2319. begin
  2320. Result:=True;
  2321. end;
  2322. Class Procedure TToolresultsAPI.RegisterAPIResources;
  2323. begin
  2324. TAny.RegisterObject;
  2325. TDuration.RegisterObject;
  2326. TExecution.RegisterObject;
  2327. TFailureDetail.RegisterObject;
  2328. TFileReference.RegisterObject;
  2329. THistory.RegisterObject;
  2330. TImage.RegisterObject;
  2331. TInconclusiveDetail.RegisterObject;
  2332. TListExecutionsResponse.RegisterObject;
  2333. TListHistoriesResponse.RegisterObject;
  2334. TListStepThumbnailsResponse.RegisterObject;
  2335. TListStepsResponse.RegisterObject;
  2336. TOutcome.RegisterObject;
  2337. TProjectSettings.RegisterObject;
  2338. TPublishXunitXmlFilesRequest.RegisterObject;
  2339. TSkippedDetail.RegisterObject;
  2340. TStackTrace.RegisterObject;
  2341. TStatus.RegisterObject;
  2342. TStep.RegisterObject;
  2343. TStepDimensionValueEntry.RegisterObject;
  2344. TStepLabelsEntry.RegisterObject;
  2345. TSuccessDetail.RegisterObject;
  2346. TTestCaseReference.RegisterObject;
  2347. TTestExecutionStep.RegisterObject;
  2348. TTestIssue.RegisterObject;
  2349. TTestSuiteOverview.RegisterObject;
  2350. TTestTiming.RegisterObject;
  2351. TThumbnail.RegisterObject;
  2352. TTimestamp.RegisterObject;
  2353. TToolExecution.RegisterObject;
  2354. TToolExecutionStep.RegisterObject;
  2355. TToolExitCode.RegisterObject;
  2356. TToolOutputReference.RegisterObject;
  2357. end;
  2358. Function TToolresultsAPI.GetProjectsHistoriesExecutionsStepsThumbnailsInstance : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2359. begin
  2360. if (FProjectsHistoriesExecutionsStepsThumbnailsInstance=Nil) then
  2361. FProjectsHistoriesExecutionsStepsThumbnailsInstance:=CreateProjectsHistoriesExecutionsStepsThumbnailsResource;
  2362. Result:=FProjectsHistoriesExecutionsStepsThumbnailsInstance;
  2363. end;
  2364. Function TToolresultsAPI.CreateProjectsHistoriesExecutionsStepsThumbnailsResource : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2365. begin
  2366. Result:=CreateProjectsHistoriesExecutionsStepsThumbnailsResource(Self);
  2367. end;
  2368. Function TToolresultsAPI.CreateProjectsHistoriesExecutionsStepsThumbnailsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsThumbnailsResource;
  2369. begin
  2370. Result:=TProjectsHistoriesExecutionsStepsThumbnailsResource.Create(AOwner);
  2371. Result.API:=Self.API;
  2372. end;
  2373. Function TToolresultsAPI.GetProjectsHistoriesExecutionsStepsInstance : TProjectsHistoriesExecutionsStepsResource;
  2374. begin
  2375. if (FProjectsHistoriesExecutionsStepsInstance=Nil) then
  2376. FProjectsHistoriesExecutionsStepsInstance:=CreateProjectsHistoriesExecutionsStepsResource;
  2377. Result:=FProjectsHistoriesExecutionsStepsInstance;
  2378. end;
  2379. Function TToolresultsAPI.CreateProjectsHistoriesExecutionsStepsResource : TProjectsHistoriesExecutionsStepsResource;
  2380. begin
  2381. Result:=CreateProjectsHistoriesExecutionsStepsResource(Self);
  2382. end;
  2383. Function TToolresultsAPI.CreateProjectsHistoriesExecutionsStepsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsStepsResource;
  2384. begin
  2385. Result:=TProjectsHistoriesExecutionsStepsResource.Create(AOwner);
  2386. Result.API:=Self.API;
  2387. end;
  2388. Function TToolresultsAPI.GetProjectsHistoriesExecutionsInstance : TProjectsHistoriesExecutionsResource;
  2389. begin
  2390. if (FProjectsHistoriesExecutionsInstance=Nil) then
  2391. FProjectsHistoriesExecutionsInstance:=CreateProjectsHistoriesExecutionsResource;
  2392. Result:=FProjectsHistoriesExecutionsInstance;
  2393. end;
  2394. Function TToolresultsAPI.CreateProjectsHistoriesExecutionsResource : TProjectsHistoriesExecutionsResource;
  2395. begin
  2396. Result:=CreateProjectsHistoriesExecutionsResource(Self);
  2397. end;
  2398. Function TToolresultsAPI.CreateProjectsHistoriesExecutionsResource(AOwner : TComponent) : TProjectsHistoriesExecutionsResource;
  2399. begin
  2400. Result:=TProjectsHistoriesExecutionsResource.Create(AOwner);
  2401. Result.API:=Self.API;
  2402. end;
  2403. Function TToolresultsAPI.GetProjectsHistoriesInstance : TProjectsHistoriesResource;
  2404. begin
  2405. if (FProjectsHistoriesInstance=Nil) then
  2406. FProjectsHistoriesInstance:=CreateProjectsHistoriesResource;
  2407. Result:=FProjectsHistoriesInstance;
  2408. end;
  2409. Function TToolresultsAPI.CreateProjectsHistoriesResource : TProjectsHistoriesResource;
  2410. begin
  2411. Result:=CreateProjectsHistoriesResource(Self);
  2412. end;
  2413. Function TToolresultsAPI.CreateProjectsHistoriesResource(AOwner : TComponent) : TProjectsHistoriesResource;
  2414. begin
  2415. Result:=TProjectsHistoriesResource.Create(AOwner);
  2416. Result.API:=Self.API;
  2417. end;
  2418. Function TToolresultsAPI.GetProjectsInstance : TProjectsResource;
  2419. begin
  2420. if (FProjectsInstance=Nil) then
  2421. FProjectsInstance:=CreateProjectsResource;
  2422. Result:=FProjectsInstance;
  2423. end;
  2424. Function TToolresultsAPI.CreateProjectsResource : TProjectsResource;
  2425. begin
  2426. Result:=CreateProjectsResource(Self);
  2427. end;
  2428. Function TToolresultsAPI.CreateProjectsResource(AOwner : TComponent) : TProjectsResource;
  2429. begin
  2430. Result:=TProjectsResource.Create(AOwner);
  2431. Result.API:=Self.API;
  2432. end;
  2433. initialization
  2434. TToolresultsAPI.RegisterAPI;
  2435. end.