googleclouddebugger.pp 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920
  1. unit googleclouddebugger;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TRegisterDebuggeeRequest = Class;
  9. TDebuggee = Class;
  10. TStatusMessage = Class;
  11. TFormatMessage = Class;
  12. TSourceContext = Class;
  13. TCloudRepoSourceContext = Class;
  14. TRepoId = Class;
  15. TProjectRepoId = Class;
  16. TAliasContext = Class;
  17. TCloudWorkspaceSourceContext = Class;
  18. TCloudWorkspaceId = Class;
  19. TGerritSourceContext = Class;
  20. TGitSourceContext = Class;
  21. TExtendedSourceContext = Class;
  22. TRegisterDebuggeeResponse = Class;
  23. TListActiveBreakpointsResponse = Class;
  24. TBreakpoint = Class;
  25. TSourceLocation = Class;
  26. TStackFrame = Class;
  27. TVariable = Class;
  28. TUpdateActiveBreakpointRequest = Class;
  29. TUpdateActiveBreakpointResponse = Class;
  30. TSetBreakpointResponse = Class;
  31. TGetBreakpointResponse = Class;
  32. TEmpty = Class;
  33. TListBreakpointsResponse = Class;
  34. TListDebuggeesResponse = Class;
  35. TRegisterDebuggeeRequestArray = Array of TRegisterDebuggeeRequest;
  36. TDebuggeeArray = Array of TDebuggee;
  37. TStatusMessageArray = Array of TStatusMessage;
  38. TFormatMessageArray = Array of TFormatMessage;
  39. TSourceContextArray = Array of TSourceContext;
  40. TCloudRepoSourceContextArray = Array of TCloudRepoSourceContext;
  41. TRepoIdArray = Array of TRepoId;
  42. TProjectRepoIdArray = Array of TProjectRepoId;
  43. TAliasContextArray = Array of TAliasContext;
  44. TCloudWorkspaceSourceContextArray = Array of TCloudWorkspaceSourceContext;
  45. TCloudWorkspaceIdArray = Array of TCloudWorkspaceId;
  46. TGerritSourceContextArray = Array of TGerritSourceContext;
  47. TGitSourceContextArray = Array of TGitSourceContext;
  48. TExtendedSourceContextArray = Array of TExtendedSourceContext;
  49. TRegisterDebuggeeResponseArray = Array of TRegisterDebuggeeResponse;
  50. TListActiveBreakpointsResponseArray = Array of TListActiveBreakpointsResponse;
  51. TBreakpointArray = Array of TBreakpoint;
  52. TSourceLocationArray = Array of TSourceLocation;
  53. TStackFrameArray = Array of TStackFrame;
  54. TVariableArray = Array of TVariable;
  55. TUpdateActiveBreakpointRequestArray = Array of TUpdateActiveBreakpointRequest;
  56. TUpdateActiveBreakpointResponseArray = Array of TUpdateActiveBreakpointResponse;
  57. TSetBreakpointResponseArray = Array of TSetBreakpointResponse;
  58. TGetBreakpointResponseArray = Array of TGetBreakpointResponse;
  59. TEmptyArray = Array of TEmpty;
  60. TListBreakpointsResponseArray = Array of TListBreakpointsResponse;
  61. TListDebuggeesResponseArray = Array of TListDebuggeesResponse;
  62. //Anonymous types, using auto-generated names
  63. TDebuggeeTypelabels = Class;
  64. TExtendedSourceContextTypelabels = Class;
  65. TBreakpointTypelabels = Class;
  66. TDebuggeeTypesourceContextsArray = Array of TSourceContext;
  67. TDebuggeeTypeextSourceContextsArray = Array of TExtendedSourceContext;
  68. TListActiveBreakpointsResponseTypebreakpointsArray = Array of TBreakpoint;
  69. TBreakpointTypestackFramesArray = Array of TStackFrame;
  70. TBreakpointTypeevaluatedExpressionsArray = Array of TVariable;
  71. TBreakpointTypevariableTableArray = Array of TVariable;
  72. TStackFrameTypeargumentsArray = Array of TVariable;
  73. TStackFrameTypelocalsArray = Array of TVariable;
  74. TVariableTypemembersArray = Array of TVariable;
  75. TListBreakpointsResponseTypebreakpointsArray = Array of TBreakpoint;
  76. TListDebuggeesResponseTypedebuggeesArray = Array of TDebuggee;
  77. { --------------------------------------------------------------------
  78. TRegisterDebuggeeRequest
  79. --------------------------------------------------------------------}
  80. TRegisterDebuggeeRequest = Class(TGoogleBaseObject)
  81. Private
  82. Fdebuggee : TDebuggee;
  83. Protected
  84. //Property setters
  85. Procedure Setdebuggee(AIndex : Integer; const AValue : TDebuggee); virtual;
  86. Public
  87. Published
  88. Property debuggee : TDebuggee Index 0 Read Fdebuggee Write Setdebuggee;
  89. end;
  90. TRegisterDebuggeeRequestClass = Class of TRegisterDebuggeeRequest;
  91. { --------------------------------------------------------------------
  92. TDebuggeeTypelabels
  93. --------------------------------------------------------------------}
  94. TDebuggeeTypelabels = Class(TGoogleBaseObject)
  95. Private
  96. Protected
  97. //Property setters
  98. Public
  99. Class Function AllowAdditionalProperties : Boolean; override;
  100. Published
  101. end;
  102. TDebuggeeTypelabelsClass = Class of TDebuggeeTypelabels;
  103. { --------------------------------------------------------------------
  104. TDebuggee
  105. --------------------------------------------------------------------}
  106. TDebuggee = Class(TGoogleBaseObject)
  107. Private
  108. Fid : String;
  109. Fproject : String;
  110. Funiquifier : String;
  111. Fdescription : String;
  112. FisInactive : boolean;
  113. FagentVersion : String;
  114. FisDisabled : boolean;
  115. Fstatus : TStatusMessage;
  116. FsourceContexts : TDebuggeeTypesourceContextsArray;
  117. FextSourceContexts : TDebuggeeTypeextSourceContextsArray;
  118. Flabels : TDebuggeeTypelabels;
  119. Protected
  120. //Property setters
  121. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  122. Procedure Setproject(AIndex : Integer; const AValue : String); virtual;
  123. Procedure Setuniquifier(AIndex : Integer; const AValue : String); virtual;
  124. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  125. Procedure SetisInactive(AIndex : Integer; const AValue : boolean); virtual;
  126. Procedure SetagentVersion(AIndex : Integer; const AValue : String); virtual;
  127. Procedure SetisDisabled(AIndex : Integer; const AValue : boolean); virtual;
  128. Procedure Setstatus(AIndex : Integer; const AValue : TStatusMessage); virtual;
  129. Procedure SetsourceContexts(AIndex : Integer; const AValue : TDebuggeeTypesourceContextsArray); virtual;
  130. Procedure SetextSourceContexts(AIndex : Integer; const AValue : TDebuggeeTypeextSourceContextsArray); virtual;
  131. Procedure Setlabels(AIndex : Integer; const AValue : TDebuggeeTypelabels); virtual;
  132. //2.6.4. bug workaround
  133. {$IFDEF VER2_6}
  134. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  135. {$ENDIF VER2_6}
  136. Public
  137. Published
  138. Property id : String Index 0 Read Fid Write Setid;
  139. Property project : String Index 8 Read Fproject Write Setproject;
  140. Property uniquifier : String Index 16 Read Funiquifier Write Setuniquifier;
  141. Property description : String Index 24 Read Fdescription Write Setdescription;
  142. Property isInactive : boolean Index 32 Read FisInactive Write SetisInactive;
  143. Property agentVersion : String Index 40 Read FagentVersion Write SetagentVersion;
  144. Property isDisabled : boolean Index 48 Read FisDisabled Write SetisDisabled;
  145. Property status : TStatusMessage Index 56 Read Fstatus Write Setstatus;
  146. Property sourceContexts : TDebuggeeTypesourceContextsArray Index 64 Read FsourceContexts Write SetsourceContexts;
  147. Property extSourceContexts : TDebuggeeTypeextSourceContextsArray Index 72 Read FextSourceContexts Write SetextSourceContexts;
  148. Property labels : TDebuggeeTypelabels Index 80 Read Flabels Write Setlabels;
  149. end;
  150. TDebuggeeClass = Class of TDebuggee;
  151. { --------------------------------------------------------------------
  152. TStatusMessage
  153. --------------------------------------------------------------------}
  154. TStatusMessage = Class(TGoogleBaseObject)
  155. Private
  156. FisError : boolean;
  157. FrefersTo : String;
  158. Fdescription : TFormatMessage;
  159. Protected
  160. //Property setters
  161. Procedure SetisError(AIndex : Integer; const AValue : boolean); virtual;
  162. Procedure SetrefersTo(AIndex : Integer; const AValue : String); virtual;
  163. Procedure Setdescription(AIndex : Integer; const AValue : TFormatMessage); virtual;
  164. Public
  165. Published
  166. Property isError : boolean Index 0 Read FisError Write SetisError;
  167. Property refersTo : String Index 8 Read FrefersTo Write SetrefersTo;
  168. Property description : TFormatMessage Index 16 Read Fdescription Write Setdescription;
  169. end;
  170. TStatusMessageClass = Class of TStatusMessage;
  171. { --------------------------------------------------------------------
  172. TFormatMessage
  173. --------------------------------------------------------------------}
  174. TFormatMessage = Class(TGoogleBaseObject)
  175. Private
  176. Fformat : String;
  177. Fparameters : TStringArray;
  178. Protected
  179. //Property setters
  180. Procedure Setformat(AIndex : Integer; const AValue : String); virtual;
  181. Procedure Setparameters(AIndex : Integer; const AValue : TStringArray); virtual;
  182. //2.6.4. bug workaround
  183. {$IFDEF VER2_6}
  184. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  185. {$ENDIF VER2_6}
  186. Public
  187. Published
  188. Property format : String Index 0 Read Fformat Write Setformat;
  189. Property parameters : TStringArray Index 8 Read Fparameters Write Setparameters;
  190. end;
  191. TFormatMessageClass = Class of TFormatMessage;
  192. { --------------------------------------------------------------------
  193. TSourceContext
  194. --------------------------------------------------------------------}
  195. TSourceContext = Class(TGoogleBaseObject)
  196. Private
  197. FcloudRepo : TCloudRepoSourceContext;
  198. FcloudWorkspace : TCloudWorkspaceSourceContext;
  199. Fgerrit : TGerritSourceContext;
  200. Fgit : TGitSourceContext;
  201. Protected
  202. //Property setters
  203. Procedure SetcloudRepo(AIndex : Integer; const AValue : TCloudRepoSourceContext); virtual;
  204. Procedure SetcloudWorkspace(AIndex : Integer; const AValue : TCloudWorkspaceSourceContext); virtual;
  205. Procedure Setgerrit(AIndex : Integer; const AValue : TGerritSourceContext); virtual;
  206. Procedure Setgit(AIndex : Integer; const AValue : TGitSourceContext); virtual;
  207. Public
  208. Published
  209. Property cloudRepo : TCloudRepoSourceContext Index 0 Read FcloudRepo Write SetcloudRepo;
  210. Property cloudWorkspace : TCloudWorkspaceSourceContext Index 8 Read FcloudWorkspace Write SetcloudWorkspace;
  211. Property gerrit : TGerritSourceContext Index 16 Read Fgerrit Write Setgerrit;
  212. Property git : TGitSourceContext Index 24 Read Fgit Write Setgit;
  213. end;
  214. TSourceContextClass = Class of TSourceContext;
  215. { --------------------------------------------------------------------
  216. TCloudRepoSourceContext
  217. --------------------------------------------------------------------}
  218. TCloudRepoSourceContext = Class(TGoogleBaseObject)
  219. Private
  220. FrepoId : TRepoId;
  221. FrevisionId : String;
  222. FaliasName : String;
  223. FaliasContext : TAliasContext;
  224. Protected
  225. //Property setters
  226. Procedure SetrepoId(AIndex : Integer; const AValue : TRepoId); virtual;
  227. Procedure SetrevisionId(AIndex : Integer; const AValue : String); virtual;
  228. Procedure SetaliasName(AIndex : Integer; const AValue : String); virtual;
  229. Procedure SetaliasContext(AIndex : Integer; const AValue : TAliasContext); virtual;
  230. Public
  231. Published
  232. Property repoId : TRepoId Index 0 Read FrepoId Write SetrepoId;
  233. Property revisionId : String Index 8 Read FrevisionId Write SetrevisionId;
  234. Property aliasName : String Index 16 Read FaliasName Write SetaliasName;
  235. Property aliasContext : TAliasContext Index 24 Read FaliasContext Write SetaliasContext;
  236. end;
  237. TCloudRepoSourceContextClass = Class of TCloudRepoSourceContext;
  238. { --------------------------------------------------------------------
  239. TRepoId
  240. --------------------------------------------------------------------}
  241. TRepoId = Class(TGoogleBaseObject)
  242. Private
  243. FprojectRepoId : TProjectRepoId;
  244. Fuid : String;
  245. Protected
  246. //Property setters
  247. Procedure SetprojectRepoId(AIndex : Integer; const AValue : TProjectRepoId); virtual;
  248. Procedure Setuid(AIndex : Integer; const AValue : String); virtual;
  249. Public
  250. Published
  251. Property projectRepoId : TProjectRepoId Index 0 Read FprojectRepoId Write SetprojectRepoId;
  252. Property uid : String Index 8 Read Fuid Write Setuid;
  253. end;
  254. TRepoIdClass = Class of TRepoId;
  255. { --------------------------------------------------------------------
  256. TProjectRepoId
  257. --------------------------------------------------------------------}
  258. TProjectRepoId = Class(TGoogleBaseObject)
  259. Private
  260. FprojectId : String;
  261. FrepoName : String;
  262. Protected
  263. //Property setters
  264. Procedure SetprojectId(AIndex : Integer; const AValue : String); virtual;
  265. Procedure SetrepoName(AIndex : Integer; const AValue : String); virtual;
  266. Public
  267. Published
  268. Property projectId : String Index 0 Read FprojectId Write SetprojectId;
  269. Property repoName : String Index 8 Read FrepoName Write SetrepoName;
  270. end;
  271. TProjectRepoIdClass = Class of TProjectRepoId;
  272. { --------------------------------------------------------------------
  273. TAliasContext
  274. --------------------------------------------------------------------}
  275. TAliasContext = Class(TGoogleBaseObject)
  276. Private
  277. Fkind : String;
  278. Fname : String;
  279. Protected
  280. //Property setters
  281. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  282. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  283. Public
  284. Published
  285. Property kind : String Index 0 Read Fkind Write Setkind;
  286. Property name : String Index 8 Read Fname Write Setname;
  287. end;
  288. TAliasContextClass = Class of TAliasContext;
  289. { --------------------------------------------------------------------
  290. TCloudWorkspaceSourceContext
  291. --------------------------------------------------------------------}
  292. TCloudWorkspaceSourceContext = Class(TGoogleBaseObject)
  293. Private
  294. FworkspaceId : TCloudWorkspaceId;
  295. FsnapshotId : String;
  296. Protected
  297. //Property setters
  298. Procedure SetworkspaceId(AIndex : Integer; const AValue : TCloudWorkspaceId); virtual;
  299. Procedure SetsnapshotId(AIndex : Integer; const AValue : String); virtual;
  300. Public
  301. Published
  302. Property workspaceId : TCloudWorkspaceId Index 0 Read FworkspaceId Write SetworkspaceId;
  303. Property snapshotId : String Index 8 Read FsnapshotId Write SetsnapshotId;
  304. end;
  305. TCloudWorkspaceSourceContextClass = Class of TCloudWorkspaceSourceContext;
  306. { --------------------------------------------------------------------
  307. TCloudWorkspaceId
  308. --------------------------------------------------------------------}
  309. TCloudWorkspaceId = Class(TGoogleBaseObject)
  310. Private
  311. FrepoId : TRepoId;
  312. Fname : String;
  313. Protected
  314. //Property setters
  315. Procedure SetrepoId(AIndex : Integer; const AValue : TRepoId); virtual;
  316. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  317. Public
  318. Published
  319. Property repoId : TRepoId Index 0 Read FrepoId Write SetrepoId;
  320. Property name : String Index 8 Read Fname Write Setname;
  321. end;
  322. TCloudWorkspaceIdClass = Class of TCloudWorkspaceId;
  323. { --------------------------------------------------------------------
  324. TGerritSourceContext
  325. --------------------------------------------------------------------}
  326. TGerritSourceContext = Class(TGoogleBaseObject)
  327. Private
  328. FhostUri : String;
  329. FgerritProject : String;
  330. FrevisionId : String;
  331. FaliasName : String;
  332. FaliasContext : TAliasContext;
  333. Protected
  334. //Property setters
  335. Procedure SethostUri(AIndex : Integer; const AValue : String); virtual;
  336. Procedure SetgerritProject(AIndex : Integer; const AValue : String); virtual;
  337. Procedure SetrevisionId(AIndex : Integer; const AValue : String); virtual;
  338. Procedure SetaliasName(AIndex : Integer; const AValue : String); virtual;
  339. Procedure SetaliasContext(AIndex : Integer; const AValue : TAliasContext); virtual;
  340. Public
  341. Published
  342. Property hostUri : String Index 0 Read FhostUri Write SethostUri;
  343. Property gerritProject : String Index 8 Read FgerritProject Write SetgerritProject;
  344. Property revisionId : String Index 16 Read FrevisionId Write SetrevisionId;
  345. Property aliasName : String Index 24 Read FaliasName Write SetaliasName;
  346. Property aliasContext : TAliasContext Index 32 Read FaliasContext Write SetaliasContext;
  347. end;
  348. TGerritSourceContextClass = Class of TGerritSourceContext;
  349. { --------------------------------------------------------------------
  350. TGitSourceContext
  351. --------------------------------------------------------------------}
  352. TGitSourceContext = Class(TGoogleBaseObject)
  353. Private
  354. Furl : String;
  355. FrevisionId : String;
  356. Protected
  357. //Property setters
  358. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  359. Procedure SetrevisionId(AIndex : Integer; const AValue : String); virtual;
  360. Public
  361. Published
  362. Property url : String Index 0 Read Furl Write Seturl;
  363. Property revisionId : String Index 8 Read FrevisionId Write SetrevisionId;
  364. end;
  365. TGitSourceContextClass = Class of TGitSourceContext;
  366. { --------------------------------------------------------------------
  367. TExtendedSourceContextTypelabels
  368. --------------------------------------------------------------------}
  369. TExtendedSourceContextTypelabels = Class(TGoogleBaseObject)
  370. Private
  371. Protected
  372. //Property setters
  373. Public
  374. Class Function AllowAdditionalProperties : Boolean; override;
  375. Published
  376. end;
  377. TExtendedSourceContextTypelabelsClass = Class of TExtendedSourceContextTypelabels;
  378. { --------------------------------------------------------------------
  379. TExtendedSourceContext
  380. --------------------------------------------------------------------}
  381. TExtendedSourceContext = Class(TGoogleBaseObject)
  382. Private
  383. Fcontext : TSourceContext;
  384. Flabels : TExtendedSourceContextTypelabels;
  385. Protected
  386. //Property setters
  387. Procedure Setcontext(AIndex : Integer; const AValue : TSourceContext); virtual;
  388. Procedure Setlabels(AIndex : Integer; const AValue : TExtendedSourceContextTypelabels); virtual;
  389. Public
  390. Published
  391. Property context : TSourceContext Index 0 Read Fcontext Write Setcontext;
  392. Property labels : TExtendedSourceContextTypelabels Index 8 Read Flabels Write Setlabels;
  393. end;
  394. TExtendedSourceContextClass = Class of TExtendedSourceContext;
  395. { --------------------------------------------------------------------
  396. TRegisterDebuggeeResponse
  397. --------------------------------------------------------------------}
  398. TRegisterDebuggeeResponse = Class(TGoogleBaseObject)
  399. Private
  400. Fdebuggee : TDebuggee;
  401. Protected
  402. //Property setters
  403. Procedure Setdebuggee(AIndex : Integer; const AValue : TDebuggee); virtual;
  404. Public
  405. Published
  406. Property debuggee : TDebuggee Index 0 Read Fdebuggee Write Setdebuggee;
  407. end;
  408. TRegisterDebuggeeResponseClass = Class of TRegisterDebuggeeResponse;
  409. { --------------------------------------------------------------------
  410. TListActiveBreakpointsResponse
  411. --------------------------------------------------------------------}
  412. TListActiveBreakpointsResponse = Class(TGoogleBaseObject)
  413. Private
  414. Fbreakpoints : TListActiveBreakpointsResponseTypebreakpointsArray;
  415. FnextWaitToken : String;
  416. FwaitExpired : boolean;
  417. Protected
  418. //Property setters
  419. Procedure Setbreakpoints(AIndex : Integer; const AValue : TListActiveBreakpointsResponseTypebreakpointsArray); virtual;
  420. Procedure SetnextWaitToken(AIndex : Integer; const AValue : String); virtual;
  421. Procedure SetwaitExpired(AIndex : Integer; const AValue : boolean); virtual;
  422. //2.6.4. bug workaround
  423. {$IFDEF VER2_6}
  424. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  425. {$ENDIF VER2_6}
  426. Public
  427. Published
  428. Property breakpoints : TListActiveBreakpointsResponseTypebreakpointsArray Index 0 Read Fbreakpoints Write Setbreakpoints;
  429. Property nextWaitToken : String Index 8 Read FnextWaitToken Write SetnextWaitToken;
  430. Property waitExpired : boolean Index 16 Read FwaitExpired Write SetwaitExpired;
  431. end;
  432. TListActiveBreakpointsResponseClass = Class of TListActiveBreakpointsResponse;
  433. { --------------------------------------------------------------------
  434. TBreakpointTypelabels
  435. --------------------------------------------------------------------}
  436. TBreakpointTypelabels = Class(TGoogleBaseObject)
  437. Private
  438. Protected
  439. //Property setters
  440. Public
  441. Class Function AllowAdditionalProperties : Boolean; override;
  442. Published
  443. end;
  444. TBreakpointTypelabelsClass = Class of TBreakpointTypelabels;
  445. { --------------------------------------------------------------------
  446. TBreakpoint
  447. --------------------------------------------------------------------}
  448. TBreakpoint = Class(TGoogleBaseObject)
  449. Private
  450. Fid : String;
  451. Faction : String;
  452. Flocation : TSourceLocation;
  453. Fcondition : String;
  454. Fexpressions : TStringArray;
  455. FlogMessageFormat : String;
  456. FlogLevel : String;
  457. FisFinalState : boolean;
  458. FcreateTime : String;
  459. FfinalTime : String;
  460. FuserEmail : String;
  461. Fstatus : TStatusMessage;
  462. FstackFrames : TBreakpointTypestackFramesArray;
  463. FevaluatedExpressions : TBreakpointTypeevaluatedExpressionsArray;
  464. FvariableTable : TBreakpointTypevariableTableArray;
  465. Flabels : TBreakpointTypelabels;
  466. Protected
  467. //Property setters
  468. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  469. Procedure Setaction(AIndex : Integer; const AValue : String); virtual;
  470. Procedure Setlocation(AIndex : Integer; const AValue : TSourceLocation); virtual;
  471. Procedure Setcondition(AIndex : Integer; const AValue : String); virtual;
  472. Procedure Setexpressions(AIndex : Integer; const AValue : TStringArray); virtual;
  473. Procedure SetlogMessageFormat(AIndex : Integer; const AValue : String); virtual;
  474. Procedure SetlogLevel(AIndex : Integer; const AValue : String); virtual;
  475. Procedure SetisFinalState(AIndex : Integer; const AValue : boolean); virtual;
  476. Procedure SetcreateTime(AIndex : Integer; const AValue : String); virtual;
  477. Procedure SetfinalTime(AIndex : Integer; const AValue : String); virtual;
  478. Procedure SetuserEmail(AIndex : Integer; const AValue : String); virtual;
  479. Procedure Setstatus(AIndex : Integer; const AValue : TStatusMessage); virtual;
  480. Procedure SetstackFrames(AIndex : Integer; const AValue : TBreakpointTypestackFramesArray); virtual;
  481. Procedure SetevaluatedExpressions(AIndex : Integer; const AValue : TBreakpointTypeevaluatedExpressionsArray); virtual;
  482. Procedure SetvariableTable(AIndex : Integer; const AValue : TBreakpointTypevariableTableArray); virtual;
  483. Procedure Setlabels(AIndex : Integer; const AValue : TBreakpointTypelabels); virtual;
  484. //2.6.4. bug workaround
  485. {$IFDEF VER2_6}
  486. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  487. {$ENDIF VER2_6}
  488. Public
  489. Published
  490. Property id : String Index 0 Read Fid Write Setid;
  491. Property action : String Index 8 Read Faction Write Setaction;
  492. Property location : TSourceLocation Index 16 Read Flocation Write Setlocation;
  493. Property condition : String Index 24 Read Fcondition Write Setcondition;
  494. Property expressions : TStringArray Index 32 Read Fexpressions Write Setexpressions;
  495. Property logMessageFormat : String Index 40 Read FlogMessageFormat Write SetlogMessageFormat;
  496. Property logLevel : String Index 48 Read FlogLevel Write SetlogLevel;
  497. Property isFinalState : boolean Index 56 Read FisFinalState Write SetisFinalState;
  498. Property createTime : String Index 64 Read FcreateTime Write SetcreateTime;
  499. Property finalTime : String Index 72 Read FfinalTime Write SetfinalTime;
  500. Property userEmail : String Index 80 Read FuserEmail Write SetuserEmail;
  501. Property status : TStatusMessage Index 88 Read Fstatus Write Setstatus;
  502. Property stackFrames : TBreakpointTypestackFramesArray Index 96 Read FstackFrames Write SetstackFrames;
  503. Property evaluatedExpressions : TBreakpointTypeevaluatedExpressionsArray Index 104 Read FevaluatedExpressions Write SetevaluatedExpressions;
  504. Property variableTable : TBreakpointTypevariableTableArray Index 112 Read FvariableTable Write SetvariableTable;
  505. Property labels : TBreakpointTypelabels Index 120 Read Flabels Write Setlabels;
  506. end;
  507. TBreakpointClass = Class of TBreakpoint;
  508. { --------------------------------------------------------------------
  509. TSourceLocation
  510. --------------------------------------------------------------------}
  511. TSourceLocation = Class(TGoogleBaseObject)
  512. Private
  513. Fpath : String;
  514. Fline : integer;
  515. Protected
  516. //Property setters
  517. Procedure Setpath(AIndex : Integer; const AValue : String); virtual;
  518. Procedure Setline(AIndex : Integer; const AValue : integer); virtual;
  519. Public
  520. Published
  521. Property path : String Index 0 Read Fpath Write Setpath;
  522. Property line : integer Index 8 Read Fline Write Setline;
  523. end;
  524. TSourceLocationClass = Class of TSourceLocation;
  525. { --------------------------------------------------------------------
  526. TStackFrame
  527. --------------------------------------------------------------------}
  528. TStackFrame = Class(TGoogleBaseObject)
  529. Private
  530. F_function : String;
  531. Flocation : TSourceLocation;
  532. Farguments : TStackFrameTypeargumentsArray;
  533. Flocals : TStackFrameTypelocalsArray;
  534. Protected
  535. Class Function ExportPropertyName(Const AName : String) : string; override;
  536. //Property setters
  537. Procedure Set_function(AIndex : Integer; const AValue : String); virtual;
  538. Procedure Setlocation(AIndex : Integer; const AValue : TSourceLocation); virtual;
  539. Procedure Setarguments(AIndex : Integer; const AValue : TStackFrameTypeargumentsArray); virtual;
  540. Procedure Setlocals(AIndex : Integer; const AValue : TStackFrameTypelocalsArray); virtual;
  541. //2.6.4. bug workaround
  542. {$IFDEF VER2_6}
  543. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  544. {$ENDIF VER2_6}
  545. Public
  546. Published
  547. Property _function : String Index 0 Read F_function Write Set_function;
  548. Property location : TSourceLocation Index 8 Read Flocation Write Setlocation;
  549. Property arguments : TStackFrameTypeargumentsArray Index 16 Read Farguments Write Setarguments;
  550. Property locals : TStackFrameTypelocalsArray Index 24 Read Flocals Write Setlocals;
  551. end;
  552. TStackFrameClass = Class of TStackFrame;
  553. { --------------------------------------------------------------------
  554. TVariable
  555. --------------------------------------------------------------------}
  556. TVariable = Class(TGoogleBaseObject)
  557. Private
  558. Fname : String;
  559. Fvalue : String;
  560. F_type : String;
  561. Fmembers : TVariableTypemembersArray;
  562. FvarTableIndex : integer;
  563. Fstatus : TStatusMessage;
  564. Protected
  565. Class Function ExportPropertyName(Const AName : String) : string; override;
  566. //Property setters
  567. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  568. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  569. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  570. Procedure Setmembers(AIndex : Integer; const AValue : TVariableTypemembersArray); virtual;
  571. Procedure SetvarTableIndex(AIndex : Integer; const AValue : integer); virtual;
  572. Procedure Setstatus(AIndex : Integer; const AValue : TStatusMessage); virtual;
  573. //2.6.4. bug workaround
  574. {$IFDEF VER2_6}
  575. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  576. {$ENDIF VER2_6}
  577. Public
  578. Published
  579. Property name : String Index 0 Read Fname Write Setname;
  580. Property value : String Index 8 Read Fvalue Write Setvalue;
  581. Property _type : String Index 16 Read F_type Write Set_type;
  582. Property members : TVariableTypemembersArray Index 24 Read Fmembers Write Setmembers;
  583. Property varTableIndex : integer Index 32 Read FvarTableIndex Write SetvarTableIndex;
  584. Property status : TStatusMessage Index 40 Read Fstatus Write Setstatus;
  585. end;
  586. TVariableClass = Class of TVariable;
  587. { --------------------------------------------------------------------
  588. TUpdateActiveBreakpointRequest
  589. --------------------------------------------------------------------}
  590. TUpdateActiveBreakpointRequest = Class(TGoogleBaseObject)
  591. Private
  592. Fbreakpoint : TBreakpoint;
  593. Protected
  594. //Property setters
  595. Procedure Setbreakpoint(AIndex : Integer; const AValue : TBreakpoint); virtual;
  596. Public
  597. Published
  598. Property breakpoint : TBreakpoint Index 0 Read Fbreakpoint Write Setbreakpoint;
  599. end;
  600. TUpdateActiveBreakpointRequestClass = Class of TUpdateActiveBreakpointRequest;
  601. { --------------------------------------------------------------------
  602. TUpdateActiveBreakpointResponse
  603. --------------------------------------------------------------------}
  604. TUpdateActiveBreakpointResponse = Class(TGoogleBaseObject)
  605. Private
  606. Protected
  607. //Property setters
  608. Public
  609. Published
  610. end;
  611. TUpdateActiveBreakpointResponseClass = Class of TUpdateActiveBreakpointResponse;
  612. { --------------------------------------------------------------------
  613. TSetBreakpointResponse
  614. --------------------------------------------------------------------}
  615. TSetBreakpointResponse = Class(TGoogleBaseObject)
  616. Private
  617. Fbreakpoint : TBreakpoint;
  618. Protected
  619. //Property setters
  620. Procedure Setbreakpoint(AIndex : Integer; const AValue : TBreakpoint); virtual;
  621. Public
  622. Published
  623. Property breakpoint : TBreakpoint Index 0 Read Fbreakpoint Write Setbreakpoint;
  624. end;
  625. TSetBreakpointResponseClass = Class of TSetBreakpointResponse;
  626. { --------------------------------------------------------------------
  627. TGetBreakpointResponse
  628. --------------------------------------------------------------------}
  629. TGetBreakpointResponse = Class(TGoogleBaseObject)
  630. Private
  631. Fbreakpoint : TBreakpoint;
  632. Protected
  633. //Property setters
  634. Procedure Setbreakpoint(AIndex : Integer; const AValue : TBreakpoint); virtual;
  635. Public
  636. Published
  637. Property breakpoint : TBreakpoint Index 0 Read Fbreakpoint Write Setbreakpoint;
  638. end;
  639. TGetBreakpointResponseClass = Class of TGetBreakpointResponse;
  640. { --------------------------------------------------------------------
  641. TEmpty
  642. --------------------------------------------------------------------}
  643. TEmpty = Class(TGoogleBaseObject)
  644. Private
  645. Protected
  646. //Property setters
  647. Public
  648. Published
  649. end;
  650. TEmptyClass = Class of TEmpty;
  651. { --------------------------------------------------------------------
  652. TListBreakpointsResponse
  653. --------------------------------------------------------------------}
  654. TListBreakpointsResponse = Class(TGoogleBaseObject)
  655. Private
  656. Fbreakpoints : TListBreakpointsResponseTypebreakpointsArray;
  657. FnextWaitToken : String;
  658. Protected
  659. //Property setters
  660. Procedure Setbreakpoints(AIndex : Integer; const AValue : TListBreakpointsResponseTypebreakpointsArray); virtual;
  661. Procedure SetnextWaitToken(AIndex : Integer; const AValue : String); virtual;
  662. //2.6.4. bug workaround
  663. {$IFDEF VER2_6}
  664. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  665. {$ENDIF VER2_6}
  666. Public
  667. Published
  668. Property breakpoints : TListBreakpointsResponseTypebreakpointsArray Index 0 Read Fbreakpoints Write Setbreakpoints;
  669. Property nextWaitToken : String Index 8 Read FnextWaitToken Write SetnextWaitToken;
  670. end;
  671. TListBreakpointsResponseClass = Class of TListBreakpointsResponse;
  672. { --------------------------------------------------------------------
  673. TListDebuggeesResponse
  674. --------------------------------------------------------------------}
  675. TListDebuggeesResponse = Class(TGoogleBaseObject)
  676. Private
  677. Fdebuggees : TListDebuggeesResponseTypedebuggeesArray;
  678. Protected
  679. //Property setters
  680. Procedure Setdebuggees(AIndex : Integer; const AValue : TListDebuggeesResponseTypedebuggeesArray); virtual;
  681. //2.6.4. bug workaround
  682. {$IFDEF VER2_6}
  683. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  684. {$ENDIF VER2_6}
  685. Public
  686. Published
  687. Property debuggees : TListDebuggeesResponseTypedebuggeesArray Index 0 Read Fdebuggees Write Setdebuggees;
  688. end;
  689. TListDebuggeesResponseClass = Class of TListDebuggeesResponse;
  690. { --------------------------------------------------------------------
  691. TControllerDebuggeesBreakpointsResource
  692. --------------------------------------------------------------------}
  693. //Optional query Options for TControllerDebuggeesBreakpointsResource, method List
  694. TControllerDebuggeesBreakpointsListOptions = Record
  695. waitToken : String;
  696. successOnTimeout : boolean;
  697. end;
  698. TControllerDebuggeesBreakpointsResource = Class(TGoogleResource)
  699. Public
  700. Class Function ResourceName : String; override;
  701. Class Function DefaultAPI : TGoogleAPIClass; override;
  702. Function List(debuggeeId: string; AQuery : string = '') : TListActiveBreakpointsResponse;
  703. Function List(debuggeeId: string; AQuery : TControllerDebuggeesBreakpointslistOptions) : TListActiveBreakpointsResponse;
  704. Function Update(debuggeeId: string; id: string; aUpdateActiveBreakpointRequest : TUpdateActiveBreakpointRequest) : TUpdateActiveBreakpointResponse;
  705. end;
  706. { --------------------------------------------------------------------
  707. TControllerDebuggeesResource
  708. --------------------------------------------------------------------}
  709. TControllerDebuggeesResource = Class(TGoogleResource)
  710. Private
  711. FBreakpointsInstance : TControllerDebuggeesBreakpointsResource;
  712. Function GetBreakpointsInstance : TControllerDebuggeesBreakpointsResource;virtual;
  713. Public
  714. Class Function ResourceName : String; override;
  715. Class Function DefaultAPI : TGoogleAPIClass; override;
  716. Function Register(aRegisterDebuggeeRequest : TRegisterDebuggeeRequest) : TRegisterDebuggeeResponse;
  717. Function CreateBreakpointsResource(AOwner : TComponent) : TControllerDebuggeesBreakpointsResource;virtual;overload;
  718. Function CreateBreakpointsResource : TControllerDebuggeesBreakpointsResource;virtual;overload;
  719. Property BreakpointsResource : TControllerDebuggeesBreakpointsResource Read GetBreakpointsInstance;
  720. end;
  721. { --------------------------------------------------------------------
  722. TControllerResource
  723. --------------------------------------------------------------------}
  724. TControllerResource = Class(TGoogleResource)
  725. Private
  726. FDebuggeesBreakpointsInstance : TControllerDebuggeesBreakpointsResource;
  727. FDebuggeesInstance : TControllerDebuggeesResource;
  728. Function GetDebuggeesBreakpointsInstance : TControllerDebuggeesBreakpointsResource;virtual;
  729. Function GetDebuggeesInstance : TControllerDebuggeesResource;virtual;
  730. Public
  731. Class Function ResourceName : String; override;
  732. Class Function DefaultAPI : TGoogleAPIClass; override;
  733. Function CreateDebuggeesBreakpointsResource(AOwner : TComponent) : TControllerDebuggeesBreakpointsResource;virtual;overload;
  734. Function CreateDebuggeesBreakpointsResource : TControllerDebuggeesBreakpointsResource;virtual;overload;
  735. Function CreateDebuggeesResource(AOwner : TComponent) : TControllerDebuggeesResource;virtual;overload;
  736. Function CreateDebuggeesResource : TControllerDebuggeesResource;virtual;overload;
  737. Property DebuggeesBreakpointsResource : TControllerDebuggeesBreakpointsResource Read GetDebuggeesBreakpointsInstance;
  738. Property DebuggeesResource : TControllerDebuggeesResource Read GetDebuggeesInstance;
  739. end;
  740. { --------------------------------------------------------------------
  741. TDebuggerDebuggeesBreakpointsResource
  742. --------------------------------------------------------------------}
  743. //Optional query Options for TDebuggerDebuggeesBreakpointsResource, method Set
  744. TDebuggerDebuggeesBreakpointsSetOptions = Record
  745. clientVersion : String;
  746. end;
  747. //Optional query Options for TDebuggerDebuggeesBreakpointsResource, method Get
  748. TDebuggerDebuggeesBreakpointsGetOptions = Record
  749. clientVersion : String;
  750. end;
  751. //Optional query Options for TDebuggerDebuggeesBreakpointsResource, method Delete
  752. TDebuggerDebuggeesBreakpointsDeleteOptions = Record
  753. clientVersion : String;
  754. end;
  755. //Optional query Options for TDebuggerDebuggeesBreakpointsResource, method List
  756. TDebuggerDebuggeesBreakpointsListOptions = Record
  757. includeAllUsers : boolean;
  758. includeInactive : boolean;
  759. actionvalue : String;
  760. stripResults : boolean;
  761. waitToken : String;
  762. clientVersion : String;
  763. end;
  764. TDebuggerDebuggeesBreakpointsResource = Class(TGoogleResource)
  765. Public
  766. Class Function ResourceName : String; override;
  767. Class Function DefaultAPI : TGoogleAPIClass; override;
  768. Function _set(debuggeeId: string; aBreakpoint : TBreakpoint; AQuery : string = '') : TSetBreakpointResponse;
  769. Function _set(debuggeeId: string; aBreakpoint : TBreakpoint; AQuery : TDebuggerDebuggeesBreakpointssetOptions) : TSetBreakpointResponse;
  770. Function Get(debuggeeId: string; breakpointId: string; AQuery : string = '') : TGetBreakpointResponse;
  771. Function Get(debuggeeId: string; breakpointId: string; AQuery : TDebuggerDebuggeesBreakpointsgetOptions) : TGetBreakpointResponse;
  772. Function Delete(debuggeeId: string; breakpointId: string; AQuery : string = '') : TEmpty;
  773. Function Delete(debuggeeId: string; breakpointId: string; AQuery : TDebuggerDebuggeesBreakpointsdeleteOptions) : TEmpty;
  774. Function List(debuggeeId: string; AQuery : string = '') : TListBreakpointsResponse;
  775. Function List(debuggeeId: string; AQuery : TDebuggerDebuggeesBreakpointslistOptions) : TListBreakpointsResponse;
  776. end;
  777. { --------------------------------------------------------------------
  778. TDebuggerDebuggeesResource
  779. --------------------------------------------------------------------}
  780. //Optional query Options for TDebuggerDebuggeesResource, method List
  781. TDebuggerDebuggeesListOptions = Record
  782. project : String;
  783. includeInactive : boolean;
  784. clientVersion : String;
  785. end;
  786. TDebuggerDebuggeesResource = Class(TGoogleResource)
  787. Private
  788. FBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;
  789. Function GetBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;virtual;
  790. Public
  791. Class Function ResourceName : String; override;
  792. Class Function DefaultAPI : TGoogleAPIClass; override;
  793. Function List(AQuery : string = '') : TListDebuggeesResponse;
  794. Function List(AQuery : TDebuggerDebuggeeslistOptions) : TListDebuggeesResponse;
  795. Function CreateBreakpointsResource(AOwner : TComponent) : TDebuggerDebuggeesBreakpointsResource;virtual;overload;
  796. Function CreateBreakpointsResource : TDebuggerDebuggeesBreakpointsResource;virtual;overload;
  797. Property BreakpointsResource : TDebuggerDebuggeesBreakpointsResource Read GetBreakpointsInstance;
  798. end;
  799. { --------------------------------------------------------------------
  800. TDebuggerResource
  801. --------------------------------------------------------------------}
  802. TDebuggerResource = Class(TGoogleResource)
  803. Private
  804. FDebuggeesBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;
  805. FDebuggeesInstance : TDebuggerDebuggeesResource;
  806. Function GetDebuggeesBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;virtual;
  807. Function GetDebuggeesInstance : TDebuggerDebuggeesResource;virtual;
  808. Public
  809. Class Function ResourceName : String; override;
  810. Class Function DefaultAPI : TGoogleAPIClass; override;
  811. Function CreateDebuggeesBreakpointsResource(AOwner : TComponent) : TDebuggerDebuggeesBreakpointsResource;virtual;overload;
  812. Function CreateDebuggeesBreakpointsResource : TDebuggerDebuggeesBreakpointsResource;virtual;overload;
  813. Function CreateDebuggeesResource(AOwner : TComponent) : TDebuggerDebuggeesResource;virtual;overload;
  814. Function CreateDebuggeesResource : TDebuggerDebuggeesResource;virtual;overload;
  815. Property DebuggeesBreakpointsResource : TDebuggerDebuggeesBreakpointsResource Read GetDebuggeesBreakpointsInstance;
  816. Property DebuggeesResource : TDebuggerDebuggeesResource Read GetDebuggeesInstance;
  817. end;
  818. { --------------------------------------------------------------------
  819. TClouddebuggerAPI
  820. --------------------------------------------------------------------}
  821. TClouddebuggerAPI = Class(TGoogleAPI)
  822. Private
  823. FControllerDebuggeesBreakpointsInstance : TControllerDebuggeesBreakpointsResource;
  824. FControllerDebuggeesInstance : TControllerDebuggeesResource;
  825. FControllerInstance : TControllerResource;
  826. FDebuggerDebuggeesBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;
  827. FDebuggerDebuggeesInstance : TDebuggerDebuggeesResource;
  828. FDebuggerInstance : TDebuggerResource;
  829. Function GetControllerDebuggeesBreakpointsInstance : TControllerDebuggeesBreakpointsResource;virtual;
  830. Function GetControllerDebuggeesInstance : TControllerDebuggeesResource;virtual;
  831. Function GetControllerInstance : TControllerResource;virtual;
  832. Function GetDebuggerDebuggeesBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;virtual;
  833. Function GetDebuggerDebuggeesInstance : TDebuggerDebuggeesResource;virtual;
  834. Function GetDebuggerInstance : TDebuggerResource;virtual;
  835. Public
  836. //Override class functions with API info
  837. Class Function APIName : String; override;
  838. Class Function APIVersion : String; override;
  839. Class Function APIRevision : String; override;
  840. Class Function APIID : String; override;
  841. Class Function APITitle : String; override;
  842. Class Function APIDescription : String; override;
  843. Class Function APIOwnerDomain : String; override;
  844. Class Function APIOwnerName : String; override;
  845. Class Function APIIcon16 : String; override;
  846. Class Function APIIcon32 : String; override;
  847. Class Function APIdocumentationLink : String; override;
  848. Class Function APIrootUrl : string; override;
  849. Class Function APIbasePath : string;override;
  850. Class Function APIbaseURL : String;override;
  851. Class Function APIProtocol : string;override;
  852. Class Function APIservicePath : string;override;
  853. Class Function APIbatchPath : String;override;
  854. Class Function APIAuthScopes : TScopeInfoArray;override;
  855. Class Function APINeedsAuth : Boolean;override;
  856. Class Procedure RegisterAPIResources; override;
  857. //Add create function for resources
  858. Function CreateControllerDebuggeesBreakpointsResource(AOwner : TComponent) : TControllerDebuggeesBreakpointsResource;virtual;overload;
  859. Function CreateControllerDebuggeesBreakpointsResource : TControllerDebuggeesBreakpointsResource;virtual;overload;
  860. Function CreateControllerDebuggeesResource(AOwner : TComponent) : TControllerDebuggeesResource;virtual;overload;
  861. Function CreateControllerDebuggeesResource : TControllerDebuggeesResource;virtual;overload;
  862. Function CreateControllerResource(AOwner : TComponent) : TControllerResource;virtual;overload;
  863. Function CreateControllerResource : TControllerResource;virtual;overload;
  864. Function CreateDebuggerDebuggeesBreakpointsResource(AOwner : TComponent) : TDebuggerDebuggeesBreakpointsResource;virtual;overload;
  865. Function CreateDebuggerDebuggeesBreakpointsResource : TDebuggerDebuggeesBreakpointsResource;virtual;overload;
  866. Function CreateDebuggerDebuggeesResource(AOwner : TComponent) : TDebuggerDebuggeesResource;virtual;overload;
  867. Function CreateDebuggerDebuggeesResource : TDebuggerDebuggeesResource;virtual;overload;
  868. Function CreateDebuggerResource(AOwner : TComponent) : TDebuggerResource;virtual;overload;
  869. Function CreateDebuggerResource : TDebuggerResource;virtual;overload;
  870. //Add default on-demand instances for resources
  871. Property ControllerDebuggeesBreakpointsResource : TControllerDebuggeesBreakpointsResource Read GetControllerDebuggeesBreakpointsInstance;
  872. Property ControllerDebuggeesResource : TControllerDebuggeesResource Read GetControllerDebuggeesInstance;
  873. Property ControllerResource : TControllerResource Read GetControllerInstance;
  874. Property DebuggerDebuggeesBreakpointsResource : TDebuggerDebuggeesBreakpointsResource Read GetDebuggerDebuggeesBreakpointsInstance;
  875. Property DebuggerDebuggeesResource : TDebuggerDebuggeesResource Read GetDebuggerDebuggeesInstance;
  876. Property DebuggerResource : TDebuggerResource Read GetDebuggerInstance;
  877. end;
  878. implementation
  879. { --------------------------------------------------------------------
  880. TRegisterDebuggeeRequest
  881. --------------------------------------------------------------------}
  882. Procedure TRegisterDebuggeeRequest.Setdebuggee(AIndex : Integer; const AValue : TDebuggee);
  883. begin
  884. If (Fdebuggee=AValue) then exit;
  885. Fdebuggee:=AValue;
  886. MarkPropertyChanged(AIndex);
  887. end;
  888. { --------------------------------------------------------------------
  889. TDebuggeeTypelabels
  890. --------------------------------------------------------------------}
  891. Class Function TDebuggeeTypelabels.AllowAdditionalProperties : Boolean;
  892. begin
  893. Result:=True;
  894. end;
  895. { --------------------------------------------------------------------
  896. TDebuggee
  897. --------------------------------------------------------------------}
  898. Procedure TDebuggee.Setid(AIndex : Integer; const AValue : String);
  899. begin
  900. If (Fid=AValue) then exit;
  901. Fid:=AValue;
  902. MarkPropertyChanged(AIndex);
  903. end;
  904. Procedure TDebuggee.Setproject(AIndex : Integer; const AValue : String);
  905. begin
  906. If (Fproject=AValue) then exit;
  907. Fproject:=AValue;
  908. MarkPropertyChanged(AIndex);
  909. end;
  910. Procedure TDebuggee.Setuniquifier(AIndex : Integer; const AValue : String);
  911. begin
  912. If (Funiquifier=AValue) then exit;
  913. Funiquifier:=AValue;
  914. MarkPropertyChanged(AIndex);
  915. end;
  916. Procedure TDebuggee.Setdescription(AIndex : Integer; const AValue : String);
  917. begin
  918. If (Fdescription=AValue) then exit;
  919. Fdescription:=AValue;
  920. MarkPropertyChanged(AIndex);
  921. end;
  922. Procedure TDebuggee.SetisInactive(AIndex : Integer; const AValue : boolean);
  923. begin
  924. If (FisInactive=AValue) then exit;
  925. FisInactive:=AValue;
  926. MarkPropertyChanged(AIndex);
  927. end;
  928. Procedure TDebuggee.SetagentVersion(AIndex : Integer; const AValue : String);
  929. begin
  930. If (FagentVersion=AValue) then exit;
  931. FagentVersion:=AValue;
  932. MarkPropertyChanged(AIndex);
  933. end;
  934. Procedure TDebuggee.SetisDisabled(AIndex : Integer; const AValue : boolean);
  935. begin
  936. If (FisDisabled=AValue) then exit;
  937. FisDisabled:=AValue;
  938. MarkPropertyChanged(AIndex);
  939. end;
  940. Procedure TDebuggee.Setstatus(AIndex : Integer; const AValue : TStatusMessage);
  941. begin
  942. If (Fstatus=AValue) then exit;
  943. Fstatus:=AValue;
  944. MarkPropertyChanged(AIndex);
  945. end;
  946. Procedure TDebuggee.SetsourceContexts(AIndex : Integer; const AValue : TDebuggeeTypesourceContextsArray);
  947. begin
  948. If (FsourceContexts=AValue) then exit;
  949. FsourceContexts:=AValue;
  950. MarkPropertyChanged(AIndex);
  951. end;
  952. Procedure TDebuggee.SetextSourceContexts(AIndex : Integer; const AValue : TDebuggeeTypeextSourceContextsArray);
  953. begin
  954. If (FextSourceContexts=AValue) then exit;
  955. FextSourceContexts:=AValue;
  956. MarkPropertyChanged(AIndex);
  957. end;
  958. Procedure TDebuggee.Setlabels(AIndex : Integer; const AValue : TDebuggeeTypelabels);
  959. begin
  960. If (Flabels=AValue) then exit;
  961. Flabels:=AValue;
  962. MarkPropertyChanged(AIndex);
  963. end;
  964. //2.6.4. bug workaround
  965. {$IFDEF VER2_6}
  966. Procedure TDebuggee.SetArrayLength(Const AName : String; ALength : Longint);
  967. begin
  968. Case AName of
  969. 'sourcecontexts' : SetLength(FsourceContexts,ALength);
  970. 'extsourcecontexts' : SetLength(FextSourceContexts,ALength);
  971. else
  972. Inherited SetArrayLength(AName,ALength);
  973. end;
  974. end;
  975. {$ENDIF VER2_6}
  976. { --------------------------------------------------------------------
  977. TStatusMessage
  978. --------------------------------------------------------------------}
  979. Procedure TStatusMessage.SetisError(AIndex : Integer; const AValue : boolean);
  980. begin
  981. If (FisError=AValue) then exit;
  982. FisError:=AValue;
  983. MarkPropertyChanged(AIndex);
  984. end;
  985. Procedure TStatusMessage.SetrefersTo(AIndex : Integer; const AValue : String);
  986. begin
  987. If (FrefersTo=AValue) then exit;
  988. FrefersTo:=AValue;
  989. MarkPropertyChanged(AIndex);
  990. end;
  991. Procedure TStatusMessage.Setdescription(AIndex : Integer; const AValue : TFormatMessage);
  992. begin
  993. If (Fdescription=AValue) then exit;
  994. Fdescription:=AValue;
  995. MarkPropertyChanged(AIndex);
  996. end;
  997. { --------------------------------------------------------------------
  998. TFormatMessage
  999. --------------------------------------------------------------------}
  1000. Procedure TFormatMessage.Setformat(AIndex : Integer; const AValue : String);
  1001. begin
  1002. If (Fformat=AValue) then exit;
  1003. Fformat:=AValue;
  1004. MarkPropertyChanged(AIndex);
  1005. end;
  1006. Procedure TFormatMessage.Setparameters(AIndex : Integer; const AValue : TStringArray);
  1007. begin
  1008. If (Fparameters=AValue) then exit;
  1009. Fparameters:=AValue;
  1010. MarkPropertyChanged(AIndex);
  1011. end;
  1012. //2.6.4. bug workaround
  1013. {$IFDEF VER2_6}
  1014. Procedure TFormatMessage.SetArrayLength(Const AName : String; ALength : Longint);
  1015. begin
  1016. Case AName of
  1017. 'parameters' : SetLength(Fparameters,ALength);
  1018. else
  1019. Inherited SetArrayLength(AName,ALength);
  1020. end;
  1021. end;
  1022. {$ENDIF VER2_6}
  1023. { --------------------------------------------------------------------
  1024. TSourceContext
  1025. --------------------------------------------------------------------}
  1026. Procedure TSourceContext.SetcloudRepo(AIndex : Integer; const AValue : TCloudRepoSourceContext);
  1027. begin
  1028. If (FcloudRepo=AValue) then exit;
  1029. FcloudRepo:=AValue;
  1030. MarkPropertyChanged(AIndex);
  1031. end;
  1032. Procedure TSourceContext.SetcloudWorkspace(AIndex : Integer; const AValue : TCloudWorkspaceSourceContext);
  1033. begin
  1034. If (FcloudWorkspace=AValue) then exit;
  1035. FcloudWorkspace:=AValue;
  1036. MarkPropertyChanged(AIndex);
  1037. end;
  1038. Procedure TSourceContext.Setgerrit(AIndex : Integer; const AValue : TGerritSourceContext);
  1039. begin
  1040. If (Fgerrit=AValue) then exit;
  1041. Fgerrit:=AValue;
  1042. MarkPropertyChanged(AIndex);
  1043. end;
  1044. Procedure TSourceContext.Setgit(AIndex : Integer; const AValue : TGitSourceContext);
  1045. begin
  1046. If (Fgit=AValue) then exit;
  1047. Fgit:=AValue;
  1048. MarkPropertyChanged(AIndex);
  1049. end;
  1050. { --------------------------------------------------------------------
  1051. TCloudRepoSourceContext
  1052. --------------------------------------------------------------------}
  1053. Procedure TCloudRepoSourceContext.SetrepoId(AIndex : Integer; const AValue : TRepoId);
  1054. begin
  1055. If (FrepoId=AValue) then exit;
  1056. FrepoId:=AValue;
  1057. MarkPropertyChanged(AIndex);
  1058. end;
  1059. Procedure TCloudRepoSourceContext.SetrevisionId(AIndex : Integer; const AValue : String);
  1060. begin
  1061. If (FrevisionId=AValue) then exit;
  1062. FrevisionId:=AValue;
  1063. MarkPropertyChanged(AIndex);
  1064. end;
  1065. Procedure TCloudRepoSourceContext.SetaliasName(AIndex : Integer; const AValue : String);
  1066. begin
  1067. If (FaliasName=AValue) then exit;
  1068. FaliasName:=AValue;
  1069. MarkPropertyChanged(AIndex);
  1070. end;
  1071. Procedure TCloudRepoSourceContext.SetaliasContext(AIndex : Integer; const AValue : TAliasContext);
  1072. begin
  1073. If (FaliasContext=AValue) then exit;
  1074. FaliasContext:=AValue;
  1075. MarkPropertyChanged(AIndex);
  1076. end;
  1077. { --------------------------------------------------------------------
  1078. TRepoId
  1079. --------------------------------------------------------------------}
  1080. Procedure TRepoId.SetprojectRepoId(AIndex : Integer; const AValue : TProjectRepoId);
  1081. begin
  1082. If (FprojectRepoId=AValue) then exit;
  1083. FprojectRepoId:=AValue;
  1084. MarkPropertyChanged(AIndex);
  1085. end;
  1086. Procedure TRepoId.Setuid(AIndex : Integer; const AValue : String);
  1087. begin
  1088. If (Fuid=AValue) then exit;
  1089. Fuid:=AValue;
  1090. MarkPropertyChanged(AIndex);
  1091. end;
  1092. { --------------------------------------------------------------------
  1093. TProjectRepoId
  1094. --------------------------------------------------------------------}
  1095. Procedure TProjectRepoId.SetprojectId(AIndex : Integer; const AValue : String);
  1096. begin
  1097. If (FprojectId=AValue) then exit;
  1098. FprojectId:=AValue;
  1099. MarkPropertyChanged(AIndex);
  1100. end;
  1101. Procedure TProjectRepoId.SetrepoName(AIndex : Integer; const AValue : String);
  1102. begin
  1103. If (FrepoName=AValue) then exit;
  1104. FrepoName:=AValue;
  1105. MarkPropertyChanged(AIndex);
  1106. end;
  1107. { --------------------------------------------------------------------
  1108. TAliasContext
  1109. --------------------------------------------------------------------}
  1110. Procedure TAliasContext.Setkind(AIndex : Integer; const AValue : String);
  1111. begin
  1112. If (Fkind=AValue) then exit;
  1113. Fkind:=AValue;
  1114. MarkPropertyChanged(AIndex);
  1115. end;
  1116. Procedure TAliasContext.Setname(AIndex : Integer; const AValue : String);
  1117. begin
  1118. If (Fname=AValue) then exit;
  1119. Fname:=AValue;
  1120. MarkPropertyChanged(AIndex);
  1121. end;
  1122. { --------------------------------------------------------------------
  1123. TCloudWorkspaceSourceContext
  1124. --------------------------------------------------------------------}
  1125. Procedure TCloudWorkspaceSourceContext.SetworkspaceId(AIndex : Integer; const AValue : TCloudWorkspaceId);
  1126. begin
  1127. If (FworkspaceId=AValue) then exit;
  1128. FworkspaceId:=AValue;
  1129. MarkPropertyChanged(AIndex);
  1130. end;
  1131. Procedure TCloudWorkspaceSourceContext.SetsnapshotId(AIndex : Integer; const AValue : String);
  1132. begin
  1133. If (FsnapshotId=AValue) then exit;
  1134. FsnapshotId:=AValue;
  1135. MarkPropertyChanged(AIndex);
  1136. end;
  1137. { --------------------------------------------------------------------
  1138. TCloudWorkspaceId
  1139. --------------------------------------------------------------------}
  1140. Procedure TCloudWorkspaceId.SetrepoId(AIndex : Integer; const AValue : TRepoId);
  1141. begin
  1142. If (FrepoId=AValue) then exit;
  1143. FrepoId:=AValue;
  1144. MarkPropertyChanged(AIndex);
  1145. end;
  1146. Procedure TCloudWorkspaceId.Setname(AIndex : Integer; const AValue : String);
  1147. begin
  1148. If (Fname=AValue) then exit;
  1149. Fname:=AValue;
  1150. MarkPropertyChanged(AIndex);
  1151. end;
  1152. { --------------------------------------------------------------------
  1153. TGerritSourceContext
  1154. --------------------------------------------------------------------}
  1155. Procedure TGerritSourceContext.SethostUri(AIndex : Integer; const AValue : String);
  1156. begin
  1157. If (FhostUri=AValue) then exit;
  1158. FhostUri:=AValue;
  1159. MarkPropertyChanged(AIndex);
  1160. end;
  1161. Procedure TGerritSourceContext.SetgerritProject(AIndex : Integer; const AValue : String);
  1162. begin
  1163. If (FgerritProject=AValue) then exit;
  1164. FgerritProject:=AValue;
  1165. MarkPropertyChanged(AIndex);
  1166. end;
  1167. Procedure TGerritSourceContext.SetrevisionId(AIndex : Integer; const AValue : String);
  1168. begin
  1169. If (FrevisionId=AValue) then exit;
  1170. FrevisionId:=AValue;
  1171. MarkPropertyChanged(AIndex);
  1172. end;
  1173. Procedure TGerritSourceContext.SetaliasName(AIndex : Integer; const AValue : String);
  1174. begin
  1175. If (FaliasName=AValue) then exit;
  1176. FaliasName:=AValue;
  1177. MarkPropertyChanged(AIndex);
  1178. end;
  1179. Procedure TGerritSourceContext.SetaliasContext(AIndex : Integer; const AValue : TAliasContext);
  1180. begin
  1181. If (FaliasContext=AValue) then exit;
  1182. FaliasContext:=AValue;
  1183. MarkPropertyChanged(AIndex);
  1184. end;
  1185. { --------------------------------------------------------------------
  1186. TGitSourceContext
  1187. --------------------------------------------------------------------}
  1188. Procedure TGitSourceContext.Seturl(AIndex : Integer; const AValue : String);
  1189. begin
  1190. If (Furl=AValue) then exit;
  1191. Furl:=AValue;
  1192. MarkPropertyChanged(AIndex);
  1193. end;
  1194. Procedure TGitSourceContext.SetrevisionId(AIndex : Integer; const AValue : String);
  1195. begin
  1196. If (FrevisionId=AValue) then exit;
  1197. FrevisionId:=AValue;
  1198. MarkPropertyChanged(AIndex);
  1199. end;
  1200. { --------------------------------------------------------------------
  1201. TExtendedSourceContextTypelabels
  1202. --------------------------------------------------------------------}
  1203. Class Function TExtendedSourceContextTypelabels.AllowAdditionalProperties : Boolean;
  1204. begin
  1205. Result:=True;
  1206. end;
  1207. { --------------------------------------------------------------------
  1208. TExtendedSourceContext
  1209. --------------------------------------------------------------------}
  1210. Procedure TExtendedSourceContext.Setcontext(AIndex : Integer; const AValue : TSourceContext);
  1211. begin
  1212. If (Fcontext=AValue) then exit;
  1213. Fcontext:=AValue;
  1214. MarkPropertyChanged(AIndex);
  1215. end;
  1216. Procedure TExtendedSourceContext.Setlabels(AIndex : Integer; const AValue : TExtendedSourceContextTypelabels);
  1217. begin
  1218. If (Flabels=AValue) then exit;
  1219. Flabels:=AValue;
  1220. MarkPropertyChanged(AIndex);
  1221. end;
  1222. { --------------------------------------------------------------------
  1223. TRegisterDebuggeeResponse
  1224. --------------------------------------------------------------------}
  1225. Procedure TRegisterDebuggeeResponse.Setdebuggee(AIndex : Integer; const AValue : TDebuggee);
  1226. begin
  1227. If (Fdebuggee=AValue) then exit;
  1228. Fdebuggee:=AValue;
  1229. MarkPropertyChanged(AIndex);
  1230. end;
  1231. { --------------------------------------------------------------------
  1232. TListActiveBreakpointsResponse
  1233. --------------------------------------------------------------------}
  1234. Procedure TListActiveBreakpointsResponse.Setbreakpoints(AIndex : Integer; const AValue : TListActiveBreakpointsResponseTypebreakpointsArray);
  1235. begin
  1236. If (Fbreakpoints=AValue) then exit;
  1237. Fbreakpoints:=AValue;
  1238. MarkPropertyChanged(AIndex);
  1239. end;
  1240. Procedure TListActiveBreakpointsResponse.SetnextWaitToken(AIndex : Integer; const AValue : String);
  1241. begin
  1242. If (FnextWaitToken=AValue) then exit;
  1243. FnextWaitToken:=AValue;
  1244. MarkPropertyChanged(AIndex);
  1245. end;
  1246. Procedure TListActiveBreakpointsResponse.SetwaitExpired(AIndex : Integer; const AValue : boolean);
  1247. begin
  1248. If (FwaitExpired=AValue) then exit;
  1249. FwaitExpired:=AValue;
  1250. MarkPropertyChanged(AIndex);
  1251. end;
  1252. //2.6.4. bug workaround
  1253. {$IFDEF VER2_6}
  1254. Procedure TListActiveBreakpointsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1255. begin
  1256. Case AName of
  1257. 'breakpoints' : SetLength(Fbreakpoints,ALength);
  1258. else
  1259. Inherited SetArrayLength(AName,ALength);
  1260. end;
  1261. end;
  1262. {$ENDIF VER2_6}
  1263. { --------------------------------------------------------------------
  1264. TBreakpointTypelabels
  1265. --------------------------------------------------------------------}
  1266. Class Function TBreakpointTypelabels.AllowAdditionalProperties : Boolean;
  1267. begin
  1268. Result:=True;
  1269. end;
  1270. { --------------------------------------------------------------------
  1271. TBreakpoint
  1272. --------------------------------------------------------------------}
  1273. Procedure TBreakpoint.Setid(AIndex : Integer; const AValue : String);
  1274. begin
  1275. If (Fid=AValue) then exit;
  1276. Fid:=AValue;
  1277. MarkPropertyChanged(AIndex);
  1278. end;
  1279. Procedure TBreakpoint.Setaction(AIndex : Integer; const AValue : String);
  1280. begin
  1281. If (Faction=AValue) then exit;
  1282. Faction:=AValue;
  1283. MarkPropertyChanged(AIndex);
  1284. end;
  1285. Procedure TBreakpoint.Setlocation(AIndex : Integer; const AValue : TSourceLocation);
  1286. begin
  1287. If (Flocation=AValue) then exit;
  1288. Flocation:=AValue;
  1289. MarkPropertyChanged(AIndex);
  1290. end;
  1291. Procedure TBreakpoint.Setcondition(AIndex : Integer; const AValue : String);
  1292. begin
  1293. If (Fcondition=AValue) then exit;
  1294. Fcondition:=AValue;
  1295. MarkPropertyChanged(AIndex);
  1296. end;
  1297. Procedure TBreakpoint.Setexpressions(AIndex : Integer; const AValue : TStringArray);
  1298. begin
  1299. If (Fexpressions=AValue) then exit;
  1300. Fexpressions:=AValue;
  1301. MarkPropertyChanged(AIndex);
  1302. end;
  1303. Procedure TBreakpoint.SetlogMessageFormat(AIndex : Integer; const AValue : String);
  1304. begin
  1305. If (FlogMessageFormat=AValue) then exit;
  1306. FlogMessageFormat:=AValue;
  1307. MarkPropertyChanged(AIndex);
  1308. end;
  1309. Procedure TBreakpoint.SetlogLevel(AIndex : Integer; const AValue : String);
  1310. begin
  1311. If (FlogLevel=AValue) then exit;
  1312. FlogLevel:=AValue;
  1313. MarkPropertyChanged(AIndex);
  1314. end;
  1315. Procedure TBreakpoint.SetisFinalState(AIndex : Integer; const AValue : boolean);
  1316. begin
  1317. If (FisFinalState=AValue) then exit;
  1318. FisFinalState:=AValue;
  1319. MarkPropertyChanged(AIndex);
  1320. end;
  1321. Procedure TBreakpoint.SetcreateTime(AIndex : Integer; const AValue : String);
  1322. begin
  1323. If (FcreateTime=AValue) then exit;
  1324. FcreateTime:=AValue;
  1325. MarkPropertyChanged(AIndex);
  1326. end;
  1327. Procedure TBreakpoint.SetfinalTime(AIndex : Integer; const AValue : String);
  1328. begin
  1329. If (FfinalTime=AValue) then exit;
  1330. FfinalTime:=AValue;
  1331. MarkPropertyChanged(AIndex);
  1332. end;
  1333. Procedure TBreakpoint.SetuserEmail(AIndex : Integer; const AValue : String);
  1334. begin
  1335. If (FuserEmail=AValue) then exit;
  1336. FuserEmail:=AValue;
  1337. MarkPropertyChanged(AIndex);
  1338. end;
  1339. Procedure TBreakpoint.Setstatus(AIndex : Integer; const AValue : TStatusMessage);
  1340. begin
  1341. If (Fstatus=AValue) then exit;
  1342. Fstatus:=AValue;
  1343. MarkPropertyChanged(AIndex);
  1344. end;
  1345. Procedure TBreakpoint.SetstackFrames(AIndex : Integer; const AValue : TBreakpointTypestackFramesArray);
  1346. begin
  1347. If (FstackFrames=AValue) then exit;
  1348. FstackFrames:=AValue;
  1349. MarkPropertyChanged(AIndex);
  1350. end;
  1351. Procedure TBreakpoint.SetevaluatedExpressions(AIndex : Integer; const AValue : TBreakpointTypeevaluatedExpressionsArray);
  1352. begin
  1353. If (FevaluatedExpressions=AValue) then exit;
  1354. FevaluatedExpressions:=AValue;
  1355. MarkPropertyChanged(AIndex);
  1356. end;
  1357. Procedure TBreakpoint.SetvariableTable(AIndex : Integer; const AValue : TBreakpointTypevariableTableArray);
  1358. begin
  1359. If (FvariableTable=AValue) then exit;
  1360. FvariableTable:=AValue;
  1361. MarkPropertyChanged(AIndex);
  1362. end;
  1363. Procedure TBreakpoint.Setlabels(AIndex : Integer; const AValue : TBreakpointTypelabels);
  1364. begin
  1365. If (Flabels=AValue) then exit;
  1366. Flabels:=AValue;
  1367. MarkPropertyChanged(AIndex);
  1368. end;
  1369. //2.6.4. bug workaround
  1370. {$IFDEF VER2_6}
  1371. Procedure TBreakpoint.SetArrayLength(Const AName : String; ALength : Longint);
  1372. begin
  1373. Case AName of
  1374. 'expressions' : SetLength(Fexpressions,ALength);
  1375. 'stackframes' : SetLength(FstackFrames,ALength);
  1376. 'evaluatedexpressions' : SetLength(FevaluatedExpressions,ALength);
  1377. 'variabletable' : SetLength(FvariableTable,ALength);
  1378. else
  1379. Inherited SetArrayLength(AName,ALength);
  1380. end;
  1381. end;
  1382. {$ENDIF VER2_6}
  1383. { --------------------------------------------------------------------
  1384. TSourceLocation
  1385. --------------------------------------------------------------------}
  1386. Procedure TSourceLocation.Setpath(AIndex : Integer; const AValue : String);
  1387. begin
  1388. If (Fpath=AValue) then exit;
  1389. Fpath:=AValue;
  1390. MarkPropertyChanged(AIndex);
  1391. end;
  1392. Procedure TSourceLocation.Setline(AIndex : Integer; const AValue : integer);
  1393. begin
  1394. If (Fline=AValue) then exit;
  1395. Fline:=AValue;
  1396. MarkPropertyChanged(AIndex);
  1397. end;
  1398. { --------------------------------------------------------------------
  1399. TStackFrame
  1400. --------------------------------------------------------------------}
  1401. Procedure TStackFrame.Set_function(AIndex : Integer; const AValue : String);
  1402. begin
  1403. If (F_function=AValue) then exit;
  1404. F_function:=AValue;
  1405. MarkPropertyChanged(AIndex);
  1406. end;
  1407. Procedure TStackFrame.Setlocation(AIndex : Integer; const AValue : TSourceLocation);
  1408. begin
  1409. If (Flocation=AValue) then exit;
  1410. Flocation:=AValue;
  1411. MarkPropertyChanged(AIndex);
  1412. end;
  1413. Procedure TStackFrame.Setarguments(AIndex : Integer; const AValue : TStackFrameTypeargumentsArray);
  1414. begin
  1415. If (Farguments=AValue) then exit;
  1416. Farguments:=AValue;
  1417. MarkPropertyChanged(AIndex);
  1418. end;
  1419. Procedure TStackFrame.Setlocals(AIndex : Integer; const AValue : TStackFrameTypelocalsArray);
  1420. begin
  1421. If (Flocals=AValue) then exit;
  1422. Flocals:=AValue;
  1423. MarkPropertyChanged(AIndex);
  1424. end;
  1425. Class Function TStackFrame.ExportPropertyName(Const AName : String) :String;
  1426. begin
  1427. Case AName of
  1428. '_function' : Result:='function';
  1429. else
  1430. Result:=Inherited ExportPropertyName(AName);
  1431. end;
  1432. end;
  1433. //2.6.4. bug workaround
  1434. {$IFDEF VER2_6}
  1435. Procedure TStackFrame.SetArrayLength(Const AName : String; ALength : Longint);
  1436. begin
  1437. Case AName of
  1438. 'arguments' : SetLength(Farguments,ALength);
  1439. 'locals' : SetLength(Flocals,ALength);
  1440. else
  1441. Inherited SetArrayLength(AName,ALength);
  1442. end;
  1443. end;
  1444. {$ENDIF VER2_6}
  1445. { --------------------------------------------------------------------
  1446. TVariable
  1447. --------------------------------------------------------------------}
  1448. Procedure TVariable.Setname(AIndex : Integer; const AValue : String);
  1449. begin
  1450. If (Fname=AValue) then exit;
  1451. Fname:=AValue;
  1452. MarkPropertyChanged(AIndex);
  1453. end;
  1454. Procedure TVariable.Setvalue(AIndex : Integer; const AValue : String);
  1455. begin
  1456. If (Fvalue=AValue) then exit;
  1457. Fvalue:=AValue;
  1458. MarkPropertyChanged(AIndex);
  1459. end;
  1460. Procedure TVariable.Set_type(AIndex : Integer; const AValue : String);
  1461. begin
  1462. If (F_type=AValue) then exit;
  1463. F_type:=AValue;
  1464. MarkPropertyChanged(AIndex);
  1465. end;
  1466. Procedure TVariable.Setmembers(AIndex : Integer; const AValue : TVariableTypemembersArray);
  1467. begin
  1468. If (Fmembers=AValue) then exit;
  1469. Fmembers:=AValue;
  1470. MarkPropertyChanged(AIndex);
  1471. end;
  1472. Procedure TVariable.SetvarTableIndex(AIndex : Integer; const AValue : integer);
  1473. begin
  1474. If (FvarTableIndex=AValue) then exit;
  1475. FvarTableIndex:=AValue;
  1476. MarkPropertyChanged(AIndex);
  1477. end;
  1478. Procedure TVariable.Setstatus(AIndex : Integer; const AValue : TStatusMessage);
  1479. begin
  1480. If (Fstatus=AValue) then exit;
  1481. Fstatus:=AValue;
  1482. MarkPropertyChanged(AIndex);
  1483. end;
  1484. Class Function TVariable.ExportPropertyName(Const AName : String) :String;
  1485. begin
  1486. Case AName of
  1487. '_type' : Result:='type';
  1488. else
  1489. Result:=Inherited ExportPropertyName(AName);
  1490. end;
  1491. end;
  1492. //2.6.4. bug workaround
  1493. {$IFDEF VER2_6}
  1494. Procedure TVariable.SetArrayLength(Const AName : String; ALength : Longint);
  1495. begin
  1496. Case AName of
  1497. 'members' : SetLength(Fmembers,ALength);
  1498. else
  1499. Inherited SetArrayLength(AName,ALength);
  1500. end;
  1501. end;
  1502. {$ENDIF VER2_6}
  1503. { --------------------------------------------------------------------
  1504. TUpdateActiveBreakpointRequest
  1505. --------------------------------------------------------------------}
  1506. Procedure TUpdateActiveBreakpointRequest.Setbreakpoint(AIndex : Integer; const AValue : TBreakpoint);
  1507. begin
  1508. If (Fbreakpoint=AValue) then exit;
  1509. Fbreakpoint:=AValue;
  1510. MarkPropertyChanged(AIndex);
  1511. end;
  1512. { --------------------------------------------------------------------
  1513. TUpdateActiveBreakpointResponse
  1514. --------------------------------------------------------------------}
  1515. { --------------------------------------------------------------------
  1516. TSetBreakpointResponse
  1517. --------------------------------------------------------------------}
  1518. Procedure TSetBreakpointResponse.Setbreakpoint(AIndex : Integer; const AValue : TBreakpoint);
  1519. begin
  1520. If (Fbreakpoint=AValue) then exit;
  1521. Fbreakpoint:=AValue;
  1522. MarkPropertyChanged(AIndex);
  1523. end;
  1524. { --------------------------------------------------------------------
  1525. TGetBreakpointResponse
  1526. --------------------------------------------------------------------}
  1527. Procedure TGetBreakpointResponse.Setbreakpoint(AIndex : Integer; const AValue : TBreakpoint);
  1528. begin
  1529. If (Fbreakpoint=AValue) then exit;
  1530. Fbreakpoint:=AValue;
  1531. MarkPropertyChanged(AIndex);
  1532. end;
  1533. { --------------------------------------------------------------------
  1534. TEmpty
  1535. --------------------------------------------------------------------}
  1536. { --------------------------------------------------------------------
  1537. TListBreakpointsResponse
  1538. --------------------------------------------------------------------}
  1539. Procedure TListBreakpointsResponse.Setbreakpoints(AIndex : Integer; const AValue : TListBreakpointsResponseTypebreakpointsArray);
  1540. begin
  1541. If (Fbreakpoints=AValue) then exit;
  1542. Fbreakpoints:=AValue;
  1543. MarkPropertyChanged(AIndex);
  1544. end;
  1545. Procedure TListBreakpointsResponse.SetnextWaitToken(AIndex : Integer; const AValue : String);
  1546. begin
  1547. If (FnextWaitToken=AValue) then exit;
  1548. FnextWaitToken:=AValue;
  1549. MarkPropertyChanged(AIndex);
  1550. end;
  1551. //2.6.4. bug workaround
  1552. {$IFDEF VER2_6}
  1553. Procedure TListBreakpointsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1554. begin
  1555. Case AName of
  1556. 'breakpoints' : SetLength(Fbreakpoints,ALength);
  1557. else
  1558. Inherited SetArrayLength(AName,ALength);
  1559. end;
  1560. end;
  1561. {$ENDIF VER2_6}
  1562. { --------------------------------------------------------------------
  1563. TListDebuggeesResponse
  1564. --------------------------------------------------------------------}
  1565. Procedure TListDebuggeesResponse.Setdebuggees(AIndex : Integer; const AValue : TListDebuggeesResponseTypedebuggeesArray);
  1566. begin
  1567. If (Fdebuggees=AValue) then exit;
  1568. Fdebuggees:=AValue;
  1569. MarkPropertyChanged(AIndex);
  1570. end;
  1571. //2.6.4. bug workaround
  1572. {$IFDEF VER2_6}
  1573. Procedure TListDebuggeesResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1574. begin
  1575. Case AName of
  1576. 'debuggees' : SetLength(Fdebuggees,ALength);
  1577. else
  1578. Inherited SetArrayLength(AName,ALength);
  1579. end;
  1580. end;
  1581. {$ENDIF VER2_6}
  1582. { --------------------------------------------------------------------
  1583. TControllerDebuggeesBreakpointsResource
  1584. --------------------------------------------------------------------}
  1585. Class Function TControllerDebuggeesBreakpointsResource.ResourceName : String;
  1586. begin
  1587. Result:='breakpoints';
  1588. end;
  1589. Class Function TControllerDebuggeesBreakpointsResource.DefaultAPI : TGoogleAPIClass;
  1590. begin
  1591. Result:=TclouddebuggerAPI;
  1592. end;
  1593. Function TControllerDebuggeesBreakpointsResource.List(debuggeeId: string; AQuery : string = '') : TListActiveBreakpointsResponse;
  1594. Const
  1595. _HTTPMethod = 'GET';
  1596. _Path = 'v2/controller/debuggees/{debuggeeId}/breakpoints';
  1597. _Methodid = 'clouddebugger.controller.debuggees.breakpoints.list';
  1598. Var
  1599. _P : String;
  1600. begin
  1601. _P:=SubstitutePath(_Path,['debuggeeId',debuggeeId]);
  1602. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListActiveBreakpointsResponse) as TListActiveBreakpointsResponse;
  1603. end;
  1604. Function TControllerDebuggeesBreakpointsResource.List(debuggeeId: string; AQuery : TControllerDebuggeesBreakpointslistOptions) : TListActiveBreakpointsResponse;
  1605. Var
  1606. _Q : String;
  1607. begin
  1608. _Q:='';
  1609. AddToQuery(_Q,'waitToken',AQuery.waitToken);
  1610. AddToQuery(_Q,'successOnTimeout',AQuery.successOnTimeout);
  1611. Result:=List(debuggeeId,_Q);
  1612. end;
  1613. Function TControllerDebuggeesBreakpointsResource.Update(debuggeeId: string; id: string; aUpdateActiveBreakpointRequest : TUpdateActiveBreakpointRequest) : TUpdateActiveBreakpointResponse;
  1614. Const
  1615. _HTTPMethod = 'PUT';
  1616. _Path = 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}';
  1617. _Methodid = 'clouddebugger.controller.debuggees.breakpoints.update';
  1618. Var
  1619. _P : String;
  1620. begin
  1621. _P:=SubstitutePath(_Path,['debuggeeId',debuggeeId,'id',id]);
  1622. Result:=ServiceCall(_HTTPMethod,_P,'',aUpdateActiveBreakpointRequest,TUpdateActiveBreakpointResponse) as TUpdateActiveBreakpointResponse;
  1623. end;
  1624. { --------------------------------------------------------------------
  1625. TControllerDebuggeesResource
  1626. --------------------------------------------------------------------}
  1627. Class Function TControllerDebuggeesResource.ResourceName : String;
  1628. begin
  1629. Result:='debuggees';
  1630. end;
  1631. Class Function TControllerDebuggeesResource.DefaultAPI : TGoogleAPIClass;
  1632. begin
  1633. Result:=TclouddebuggerAPI;
  1634. end;
  1635. Function TControllerDebuggeesResource.Register(aRegisterDebuggeeRequest : TRegisterDebuggeeRequest) : TRegisterDebuggeeResponse;
  1636. Const
  1637. _HTTPMethod = 'POST';
  1638. _Path = 'v2/controller/debuggees/register';
  1639. _Methodid = 'clouddebugger.controller.debuggees.register';
  1640. begin
  1641. Result:=ServiceCall(_HTTPMethod,_Path,'',aRegisterDebuggeeRequest,TRegisterDebuggeeResponse) as TRegisterDebuggeeResponse;
  1642. end;
  1643. Function TControllerDebuggeesResource.GetBreakpointsInstance : TControllerDebuggeesBreakpointsResource;
  1644. begin
  1645. if (FBreakpointsInstance=Nil) then
  1646. FBreakpointsInstance:=CreateBreakpointsResource;
  1647. Result:=FBreakpointsInstance;
  1648. end;
  1649. Function TControllerDebuggeesResource.CreateBreakpointsResource : TControllerDebuggeesBreakpointsResource;
  1650. begin
  1651. Result:=CreateBreakpointsResource(Self);
  1652. end;
  1653. Function TControllerDebuggeesResource.CreateBreakpointsResource(AOwner : TComponent) : TControllerDebuggeesBreakpointsResource;
  1654. begin
  1655. Result:=TControllerDebuggeesBreakpointsResource.Create(AOwner);
  1656. Result.API:=Self.API;
  1657. end;
  1658. { --------------------------------------------------------------------
  1659. TControllerResource
  1660. --------------------------------------------------------------------}
  1661. Class Function TControllerResource.ResourceName : String;
  1662. begin
  1663. Result:='controller';
  1664. end;
  1665. Class Function TControllerResource.DefaultAPI : TGoogleAPIClass;
  1666. begin
  1667. Result:=TclouddebuggerAPI;
  1668. end;
  1669. Function TControllerResource.GetDebuggeesBreakpointsInstance : TControllerDebuggeesBreakpointsResource;
  1670. begin
  1671. if (FDebuggeesBreakpointsInstance=Nil) then
  1672. FDebuggeesBreakpointsInstance:=CreateDebuggeesBreakpointsResource;
  1673. Result:=FDebuggeesBreakpointsInstance;
  1674. end;
  1675. Function TControllerResource.CreateDebuggeesBreakpointsResource : TControllerDebuggeesBreakpointsResource;
  1676. begin
  1677. Result:=CreateDebuggeesBreakpointsResource(Self);
  1678. end;
  1679. Function TControllerResource.CreateDebuggeesBreakpointsResource(AOwner : TComponent) : TControllerDebuggeesBreakpointsResource;
  1680. begin
  1681. Result:=TControllerDebuggeesBreakpointsResource.Create(AOwner);
  1682. Result.API:=Self.API;
  1683. end;
  1684. Function TControllerResource.GetDebuggeesInstance : TControllerDebuggeesResource;
  1685. begin
  1686. if (FDebuggeesInstance=Nil) then
  1687. FDebuggeesInstance:=CreateDebuggeesResource;
  1688. Result:=FDebuggeesInstance;
  1689. end;
  1690. Function TControllerResource.CreateDebuggeesResource : TControllerDebuggeesResource;
  1691. begin
  1692. Result:=CreateDebuggeesResource(Self);
  1693. end;
  1694. Function TControllerResource.CreateDebuggeesResource(AOwner : TComponent) : TControllerDebuggeesResource;
  1695. begin
  1696. Result:=TControllerDebuggeesResource.Create(AOwner);
  1697. Result.API:=Self.API;
  1698. end;
  1699. { --------------------------------------------------------------------
  1700. TDebuggerDebuggeesBreakpointsResource
  1701. --------------------------------------------------------------------}
  1702. Class Function TDebuggerDebuggeesBreakpointsResource.ResourceName : String;
  1703. begin
  1704. Result:='breakpoints';
  1705. end;
  1706. Class Function TDebuggerDebuggeesBreakpointsResource.DefaultAPI : TGoogleAPIClass;
  1707. begin
  1708. Result:=TclouddebuggerAPI;
  1709. end;
  1710. Function TDebuggerDebuggeesBreakpointsResource._set(debuggeeId: string; aBreakpoint : TBreakpoint; AQuery : string = '') : TSetBreakpointResponse;
  1711. Const
  1712. _HTTPMethod = 'POST';
  1713. _Path = 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set';
  1714. _Methodid = 'clouddebugger.debugger.debuggees.breakpoints.set';
  1715. Var
  1716. _P : String;
  1717. begin
  1718. _P:=SubstitutePath(_Path,['debuggeeId',debuggeeId]);
  1719. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aBreakpoint,TSetBreakpointResponse) as TSetBreakpointResponse;
  1720. end;
  1721. Function TDebuggerDebuggeesBreakpointsResource._set(debuggeeId: string; aBreakpoint : TBreakpoint; AQuery : TDebuggerDebuggeesBreakpointssetOptions) : TSetBreakpointResponse;
  1722. Var
  1723. _Q : String;
  1724. begin
  1725. _Q:='';
  1726. AddToQuery(_Q,'clientVersion',AQuery.clientVersion);
  1727. Result:=_set(debuggeeId,aBreakpoint,_Q);
  1728. end;
  1729. Function TDebuggerDebuggeesBreakpointsResource.Get(debuggeeId: string; breakpointId: string; AQuery : string = '') : TGetBreakpointResponse;
  1730. Const
  1731. _HTTPMethod = 'GET';
  1732. _Path = 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}';
  1733. _Methodid = 'clouddebugger.debugger.debuggees.breakpoints.get';
  1734. Var
  1735. _P : String;
  1736. begin
  1737. _P:=SubstitutePath(_Path,['debuggeeId',debuggeeId,'breakpointId',breakpointId]);
  1738. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TGetBreakpointResponse) as TGetBreakpointResponse;
  1739. end;
  1740. Function TDebuggerDebuggeesBreakpointsResource.Get(debuggeeId: string; breakpointId: string; AQuery : TDebuggerDebuggeesBreakpointsgetOptions) : TGetBreakpointResponse;
  1741. Var
  1742. _Q : String;
  1743. begin
  1744. _Q:='';
  1745. AddToQuery(_Q,'clientVersion',AQuery.clientVersion);
  1746. Result:=Get(debuggeeId,breakpointId,_Q);
  1747. end;
  1748. Function TDebuggerDebuggeesBreakpointsResource.Delete(debuggeeId: string; breakpointId: string; AQuery : string = '') : TEmpty;
  1749. Const
  1750. _HTTPMethod = 'DELETE';
  1751. _Path = 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}';
  1752. _Methodid = 'clouddebugger.debugger.debuggees.breakpoints.delete';
  1753. Var
  1754. _P : String;
  1755. begin
  1756. _P:=SubstitutePath(_Path,['debuggeeId',debuggeeId,'breakpointId',breakpointId]);
  1757. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEmpty) as TEmpty;
  1758. end;
  1759. Function TDebuggerDebuggeesBreakpointsResource.Delete(debuggeeId: string; breakpointId: string; AQuery : TDebuggerDebuggeesBreakpointsdeleteOptions) : TEmpty;
  1760. Var
  1761. _Q : String;
  1762. begin
  1763. _Q:='';
  1764. AddToQuery(_Q,'clientVersion',AQuery.clientVersion);
  1765. Result:=Delete(debuggeeId,breakpointId,_Q);
  1766. end;
  1767. Function TDebuggerDebuggeesBreakpointsResource.List(debuggeeId: string; AQuery : string = '') : TListBreakpointsResponse;
  1768. Const
  1769. _HTTPMethod = 'GET';
  1770. _Path = 'v2/debugger/debuggees/{debuggeeId}/breakpoints';
  1771. _Methodid = 'clouddebugger.debugger.debuggees.breakpoints.list';
  1772. Var
  1773. _P : String;
  1774. begin
  1775. _P:=SubstitutePath(_Path,['debuggeeId',debuggeeId]);
  1776. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListBreakpointsResponse) as TListBreakpointsResponse;
  1777. end;
  1778. Function TDebuggerDebuggeesBreakpointsResource.List(debuggeeId: string; AQuery : TDebuggerDebuggeesBreakpointslistOptions) : TListBreakpointsResponse;
  1779. Var
  1780. _Q : String;
  1781. begin
  1782. _Q:='';
  1783. AddToQuery(_Q,'includeAllUsers',AQuery.includeAllUsers);
  1784. AddToQuery(_Q,'includeInactive',AQuery.includeInactive);
  1785. AddToQuery(_Q,'action.value',AQuery.actionvalue);
  1786. AddToQuery(_Q,'stripResults',AQuery.stripResults);
  1787. AddToQuery(_Q,'waitToken',AQuery.waitToken);
  1788. AddToQuery(_Q,'clientVersion',AQuery.clientVersion);
  1789. Result:=List(debuggeeId,_Q);
  1790. end;
  1791. { --------------------------------------------------------------------
  1792. TDebuggerDebuggeesResource
  1793. --------------------------------------------------------------------}
  1794. Class Function TDebuggerDebuggeesResource.ResourceName : String;
  1795. begin
  1796. Result:='debuggees';
  1797. end;
  1798. Class Function TDebuggerDebuggeesResource.DefaultAPI : TGoogleAPIClass;
  1799. begin
  1800. Result:=TclouddebuggerAPI;
  1801. end;
  1802. Function TDebuggerDebuggeesResource.List(AQuery : string = '') : TListDebuggeesResponse;
  1803. Const
  1804. _HTTPMethod = 'GET';
  1805. _Path = 'v2/debugger/debuggees';
  1806. _Methodid = 'clouddebugger.debugger.debuggees.list';
  1807. begin
  1808. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TListDebuggeesResponse) as TListDebuggeesResponse;
  1809. end;
  1810. Function TDebuggerDebuggeesResource.List(AQuery : TDebuggerDebuggeeslistOptions) : TListDebuggeesResponse;
  1811. Var
  1812. _Q : String;
  1813. begin
  1814. _Q:='';
  1815. AddToQuery(_Q,'project',AQuery.project);
  1816. AddToQuery(_Q,'includeInactive',AQuery.includeInactive);
  1817. AddToQuery(_Q,'clientVersion',AQuery.clientVersion);
  1818. Result:=List(_Q);
  1819. end;
  1820. Function TDebuggerDebuggeesResource.GetBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;
  1821. begin
  1822. if (FBreakpointsInstance=Nil) then
  1823. FBreakpointsInstance:=CreateBreakpointsResource;
  1824. Result:=FBreakpointsInstance;
  1825. end;
  1826. Function TDebuggerDebuggeesResource.CreateBreakpointsResource : TDebuggerDebuggeesBreakpointsResource;
  1827. begin
  1828. Result:=CreateBreakpointsResource(Self);
  1829. end;
  1830. Function TDebuggerDebuggeesResource.CreateBreakpointsResource(AOwner : TComponent) : TDebuggerDebuggeesBreakpointsResource;
  1831. begin
  1832. Result:=TDebuggerDebuggeesBreakpointsResource.Create(AOwner);
  1833. Result.API:=Self.API;
  1834. end;
  1835. { --------------------------------------------------------------------
  1836. TDebuggerResource
  1837. --------------------------------------------------------------------}
  1838. Class Function TDebuggerResource.ResourceName : String;
  1839. begin
  1840. Result:='debugger';
  1841. end;
  1842. Class Function TDebuggerResource.DefaultAPI : TGoogleAPIClass;
  1843. begin
  1844. Result:=TclouddebuggerAPI;
  1845. end;
  1846. Function TDebuggerResource.GetDebuggeesBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;
  1847. begin
  1848. if (FDebuggeesBreakpointsInstance=Nil) then
  1849. FDebuggeesBreakpointsInstance:=CreateDebuggeesBreakpointsResource;
  1850. Result:=FDebuggeesBreakpointsInstance;
  1851. end;
  1852. Function TDebuggerResource.CreateDebuggeesBreakpointsResource : TDebuggerDebuggeesBreakpointsResource;
  1853. begin
  1854. Result:=CreateDebuggeesBreakpointsResource(Self);
  1855. end;
  1856. Function TDebuggerResource.CreateDebuggeesBreakpointsResource(AOwner : TComponent) : TDebuggerDebuggeesBreakpointsResource;
  1857. begin
  1858. Result:=TDebuggerDebuggeesBreakpointsResource.Create(AOwner);
  1859. Result.API:=Self.API;
  1860. end;
  1861. Function TDebuggerResource.GetDebuggeesInstance : TDebuggerDebuggeesResource;
  1862. begin
  1863. if (FDebuggeesInstance=Nil) then
  1864. FDebuggeesInstance:=CreateDebuggeesResource;
  1865. Result:=FDebuggeesInstance;
  1866. end;
  1867. Function TDebuggerResource.CreateDebuggeesResource : TDebuggerDebuggeesResource;
  1868. begin
  1869. Result:=CreateDebuggeesResource(Self);
  1870. end;
  1871. Function TDebuggerResource.CreateDebuggeesResource(AOwner : TComponent) : TDebuggerDebuggeesResource;
  1872. begin
  1873. Result:=TDebuggerDebuggeesResource.Create(AOwner);
  1874. Result.API:=Self.API;
  1875. end;
  1876. { --------------------------------------------------------------------
  1877. TClouddebuggerAPI
  1878. --------------------------------------------------------------------}
  1879. Class Function TClouddebuggerAPI.APIName : String;
  1880. begin
  1881. Result:='clouddebugger';
  1882. end;
  1883. Class Function TClouddebuggerAPI.APIVersion : String;
  1884. begin
  1885. Result:='v2';
  1886. end;
  1887. Class Function TClouddebuggerAPI.APIRevision : String;
  1888. begin
  1889. Result:='20160309';
  1890. end;
  1891. Class Function TClouddebuggerAPI.APIID : String;
  1892. begin
  1893. Result:='clouddebugger:v2';
  1894. end;
  1895. Class Function TClouddebuggerAPI.APITitle : String;
  1896. begin
  1897. Result:='Google Cloud Debugger API';
  1898. end;
  1899. Class Function TClouddebuggerAPI.APIDescription : String;
  1900. begin
  1901. Result:='Examines the call stack and variables of a running application without stopping or slowing it down.';
  1902. end;
  1903. Class Function TClouddebuggerAPI.APIOwnerDomain : String;
  1904. begin
  1905. Result:='google.com';
  1906. end;
  1907. Class Function TClouddebuggerAPI.APIOwnerName : String;
  1908. begin
  1909. Result:='Google';
  1910. end;
  1911. Class Function TClouddebuggerAPI.APIIcon16 : String;
  1912. begin
  1913. Result:='http://www.google.com/images/icons/product/search-16.gif';
  1914. end;
  1915. Class Function TClouddebuggerAPI.APIIcon32 : String;
  1916. begin
  1917. Result:='http://www.google.com/images/icons/product/search-32.gif';
  1918. end;
  1919. Class Function TClouddebuggerAPI.APIdocumentationLink : String;
  1920. begin
  1921. Result:='https://cloud.google.com/tools/cloud-debugger';
  1922. end;
  1923. Class Function TClouddebuggerAPI.APIrootUrl : string;
  1924. begin
  1925. Result:='https://clouddebugger.googleapis.com/';
  1926. end;
  1927. Class Function TClouddebuggerAPI.APIbasePath : string;
  1928. begin
  1929. Result:='';
  1930. end;
  1931. Class Function TClouddebuggerAPI.APIbaseURL : String;
  1932. begin
  1933. Result:='https://clouddebugger.googleapis.com/';
  1934. end;
  1935. Class Function TClouddebuggerAPI.APIProtocol : string;
  1936. begin
  1937. Result:='rest';
  1938. end;
  1939. Class Function TClouddebuggerAPI.APIservicePath : string;
  1940. begin
  1941. Result:='';
  1942. end;
  1943. Class Function TClouddebuggerAPI.APIbatchPath : String;
  1944. begin
  1945. Result:='batch';
  1946. end;
  1947. Class Function TClouddebuggerAPI.APIAuthScopes : TScopeInfoArray;
  1948. begin
  1949. SetLength(Result,3);
  1950. Result[0].Name:='https://www.googleapis.com/auth/cloud-platform';
  1951. Result[0].Description:='View and manage your data across Google Cloud Platform services';
  1952. Result[1].Name:='https://www.googleapis.com/auth/cloud_debugger';
  1953. Result[1].Description:='Manage cloud debugger';
  1954. Result[2].Name:='https://www.googleapis.com/auth/cloud_debugletcontroller';
  1955. Result[2].Description:='Manage active breakpoints in cloud debugger';
  1956. end;
  1957. Class Function TClouddebuggerAPI.APINeedsAuth : Boolean;
  1958. begin
  1959. Result:=True;
  1960. end;
  1961. Class Procedure TClouddebuggerAPI.RegisterAPIResources;
  1962. begin
  1963. TRegisterDebuggeeRequest.RegisterObject;
  1964. TDebuggeeTypelabels.RegisterObject;
  1965. TDebuggee.RegisterObject;
  1966. TStatusMessage.RegisterObject;
  1967. TFormatMessage.RegisterObject;
  1968. TSourceContext.RegisterObject;
  1969. TCloudRepoSourceContext.RegisterObject;
  1970. TRepoId.RegisterObject;
  1971. TProjectRepoId.RegisterObject;
  1972. TAliasContext.RegisterObject;
  1973. TCloudWorkspaceSourceContext.RegisterObject;
  1974. TCloudWorkspaceId.RegisterObject;
  1975. TGerritSourceContext.RegisterObject;
  1976. TGitSourceContext.RegisterObject;
  1977. TExtendedSourceContextTypelabels.RegisterObject;
  1978. TExtendedSourceContext.RegisterObject;
  1979. TRegisterDebuggeeResponse.RegisterObject;
  1980. TListActiveBreakpointsResponse.RegisterObject;
  1981. TBreakpointTypelabels.RegisterObject;
  1982. TBreakpoint.RegisterObject;
  1983. TSourceLocation.RegisterObject;
  1984. TStackFrame.RegisterObject;
  1985. TVariable.RegisterObject;
  1986. TUpdateActiveBreakpointRequest.RegisterObject;
  1987. TUpdateActiveBreakpointResponse.RegisterObject;
  1988. TSetBreakpointResponse.RegisterObject;
  1989. TGetBreakpointResponse.RegisterObject;
  1990. TEmpty.RegisterObject;
  1991. TListBreakpointsResponse.RegisterObject;
  1992. TListDebuggeesResponse.RegisterObject;
  1993. end;
  1994. Function TClouddebuggerAPI.GetControllerDebuggeesBreakpointsInstance : TControllerDebuggeesBreakpointsResource;
  1995. begin
  1996. if (FControllerDebuggeesBreakpointsInstance=Nil) then
  1997. FControllerDebuggeesBreakpointsInstance:=CreateControllerDebuggeesBreakpointsResource;
  1998. Result:=FControllerDebuggeesBreakpointsInstance;
  1999. end;
  2000. Function TClouddebuggerAPI.CreateControllerDebuggeesBreakpointsResource : TControllerDebuggeesBreakpointsResource;
  2001. begin
  2002. Result:=CreateControllerDebuggeesBreakpointsResource(Self);
  2003. end;
  2004. Function TClouddebuggerAPI.CreateControllerDebuggeesBreakpointsResource(AOwner : TComponent) : TControllerDebuggeesBreakpointsResource;
  2005. begin
  2006. Result:=TControllerDebuggeesBreakpointsResource.Create(AOwner);
  2007. Result.API:=Self.API;
  2008. end;
  2009. Function TClouddebuggerAPI.GetControllerDebuggeesInstance : TControllerDebuggeesResource;
  2010. begin
  2011. if (FControllerDebuggeesInstance=Nil) then
  2012. FControllerDebuggeesInstance:=CreateControllerDebuggeesResource;
  2013. Result:=FControllerDebuggeesInstance;
  2014. end;
  2015. Function TClouddebuggerAPI.CreateControllerDebuggeesResource : TControllerDebuggeesResource;
  2016. begin
  2017. Result:=CreateControllerDebuggeesResource(Self);
  2018. end;
  2019. Function TClouddebuggerAPI.CreateControllerDebuggeesResource(AOwner : TComponent) : TControllerDebuggeesResource;
  2020. begin
  2021. Result:=TControllerDebuggeesResource.Create(AOwner);
  2022. Result.API:=Self.API;
  2023. end;
  2024. Function TClouddebuggerAPI.GetControllerInstance : TControllerResource;
  2025. begin
  2026. if (FControllerInstance=Nil) then
  2027. FControllerInstance:=CreateControllerResource;
  2028. Result:=FControllerInstance;
  2029. end;
  2030. Function TClouddebuggerAPI.CreateControllerResource : TControllerResource;
  2031. begin
  2032. Result:=CreateControllerResource(Self);
  2033. end;
  2034. Function TClouddebuggerAPI.CreateControllerResource(AOwner : TComponent) : TControllerResource;
  2035. begin
  2036. Result:=TControllerResource.Create(AOwner);
  2037. Result.API:=Self.API;
  2038. end;
  2039. Function TClouddebuggerAPI.GetDebuggerDebuggeesBreakpointsInstance : TDebuggerDebuggeesBreakpointsResource;
  2040. begin
  2041. if (FDebuggerDebuggeesBreakpointsInstance=Nil) then
  2042. FDebuggerDebuggeesBreakpointsInstance:=CreateDebuggerDebuggeesBreakpointsResource;
  2043. Result:=FDebuggerDebuggeesBreakpointsInstance;
  2044. end;
  2045. Function TClouddebuggerAPI.CreateDebuggerDebuggeesBreakpointsResource : TDebuggerDebuggeesBreakpointsResource;
  2046. begin
  2047. Result:=CreateDebuggerDebuggeesBreakpointsResource(Self);
  2048. end;
  2049. Function TClouddebuggerAPI.CreateDebuggerDebuggeesBreakpointsResource(AOwner : TComponent) : TDebuggerDebuggeesBreakpointsResource;
  2050. begin
  2051. Result:=TDebuggerDebuggeesBreakpointsResource.Create(AOwner);
  2052. Result.API:=Self.API;
  2053. end;
  2054. Function TClouddebuggerAPI.GetDebuggerDebuggeesInstance : TDebuggerDebuggeesResource;
  2055. begin
  2056. if (FDebuggerDebuggeesInstance=Nil) then
  2057. FDebuggerDebuggeesInstance:=CreateDebuggerDebuggeesResource;
  2058. Result:=FDebuggerDebuggeesInstance;
  2059. end;
  2060. Function TClouddebuggerAPI.CreateDebuggerDebuggeesResource : TDebuggerDebuggeesResource;
  2061. begin
  2062. Result:=CreateDebuggerDebuggeesResource(Self);
  2063. end;
  2064. Function TClouddebuggerAPI.CreateDebuggerDebuggeesResource(AOwner : TComponent) : TDebuggerDebuggeesResource;
  2065. begin
  2066. Result:=TDebuggerDebuggeesResource.Create(AOwner);
  2067. Result.API:=Self.API;
  2068. end;
  2069. Function TClouddebuggerAPI.GetDebuggerInstance : TDebuggerResource;
  2070. begin
  2071. if (FDebuggerInstance=Nil) then
  2072. FDebuggerInstance:=CreateDebuggerResource;
  2073. Result:=FDebuggerInstance;
  2074. end;
  2075. Function TClouddebuggerAPI.CreateDebuggerResource : TDebuggerResource;
  2076. begin
  2077. Result:=CreateDebuggerResource(Self);
  2078. end;
  2079. Function TClouddebuggerAPI.CreateDebuggerResource(AOwner : TComponent) : TDebuggerResource;
  2080. begin
  2081. Result:=TDebuggerResource.Create(AOwner);
  2082. Result.API:=Self.API;
  2083. end;
  2084. initialization
  2085. TClouddebuggerAPI.RegisterAPI;
  2086. end.