googledeploymentmanager.pp 93 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312
  1. unit googledeploymentmanager;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TConfigFile = Class;
  9. TDeployment = Class;
  10. TDeploymentLabelEntry = Class;
  11. TDeploymentUpdate = Class;
  12. TDeploymentUpdateLabelEntry = Class;
  13. TDeploymentsCancelPreviewRequest = Class;
  14. TDeploymentsListResponse = Class;
  15. TDeploymentsStopRequest = Class;
  16. TImportFile = Class;
  17. TManifest = Class;
  18. TManifestsListResponse = Class;
  19. TOperation = Class;
  20. TOperationsListResponse = Class;
  21. TResource = Class;
  22. TResourceUpdate = Class;
  23. TResourcesListResponse = Class;
  24. TTargetConfiguration = Class;
  25. TType = Class;
  26. TTypesListResponse = Class;
  27. TConfigFileArray = Array of TConfigFile;
  28. TDeploymentArray = Array of TDeployment;
  29. TDeploymentLabelEntryArray = Array of TDeploymentLabelEntry;
  30. TDeploymentUpdateArray = Array of TDeploymentUpdate;
  31. TDeploymentUpdateLabelEntryArray = Array of TDeploymentUpdateLabelEntry;
  32. TDeploymentsCancelPreviewRequestArray = Array of TDeploymentsCancelPreviewRequest;
  33. TDeploymentsListResponseArray = Array of TDeploymentsListResponse;
  34. TDeploymentsStopRequestArray = Array of TDeploymentsStopRequest;
  35. TImportFileArray = Array of TImportFile;
  36. TManifestArray = Array of TManifest;
  37. TManifestsListResponseArray = Array of TManifestsListResponse;
  38. TOperationArray = Array of TOperation;
  39. TOperationsListResponseArray = Array of TOperationsListResponse;
  40. TResourceArray = Array of TResource;
  41. TResourceUpdateArray = Array of TResourceUpdate;
  42. TResourcesListResponseArray = Array of TResourcesListResponse;
  43. TTargetConfigurationArray = Array of TTargetConfiguration;
  44. TTypeArray = Array of TType;
  45. TTypesListResponseArray = Array of TTypesListResponse;
  46. //Anonymous types, using auto-generated names
  47. TOperationTypeerrorTypeerrorsItem = Class;
  48. TOperationTypeerror = Class;
  49. TOperationTypewarningsItemTypedataItem = Class;
  50. TOperationTypewarningsItem = Class;
  51. TResourceTypewarningsItemTypedataItem = Class;
  52. TResourceTypewarningsItem = Class;
  53. TResourceUpdateTypeerrorTypeerrorsItem = Class;
  54. TResourceUpdateTypeerror = Class;
  55. TResourceUpdateTypewarningsItemTypedataItem = Class;
  56. TResourceUpdateTypewarningsItem = Class;
  57. TDeploymentTypelabelsArray = Array of TDeploymentLabelEntry;
  58. TDeploymentUpdateTypelabelsArray = Array of TDeploymentUpdateLabelEntry;
  59. TDeploymentsListResponseTypedeploymentsArray = Array of TDeployment;
  60. TManifestTypeimportsArray = Array of TImportFile;
  61. TManifestsListResponseTypemanifestsArray = Array of TManifest;
  62. TOperationTypeerrorTypeerrorsArray = Array of TOperationTypeerrorTypeerrorsItem;
  63. TOperationTypewarningsItemTypedataArray = Array of TOperationTypewarningsItemTypedataItem;
  64. TOperationTypewarningsArray = Array of TOperationTypewarningsItem;
  65. TOperationsListResponseTypeoperationsArray = Array of TOperation;
  66. TResourceTypewarningsItemTypedataArray = Array of TResourceTypewarningsItemTypedataItem;
  67. TResourceTypewarningsArray = Array of TResourceTypewarningsItem;
  68. TResourceUpdateTypeerrorTypeerrorsArray = Array of TResourceUpdateTypeerrorTypeerrorsItem;
  69. TResourceUpdateTypewarningsItemTypedataArray = Array of TResourceUpdateTypewarningsItemTypedataItem;
  70. TResourceUpdateTypewarningsArray = Array of TResourceUpdateTypewarningsItem;
  71. TResourcesListResponseTyperesourcesArray = Array of TResource;
  72. TTargetConfigurationTypeimportsArray = Array of TImportFile;
  73. TTypesListResponseTypetypesArray = Array of TType;
  74. { --------------------------------------------------------------------
  75. TConfigFile
  76. --------------------------------------------------------------------}
  77. TConfigFile = Class(TGoogleBaseObject)
  78. Private
  79. Fcontent : String;
  80. Protected
  81. //Property setters
  82. Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
  83. Public
  84. Published
  85. Property content : String Index 0 Read Fcontent Write Setcontent;
  86. end;
  87. TConfigFileClass = Class of TConfigFile;
  88. { --------------------------------------------------------------------
  89. TDeployment
  90. --------------------------------------------------------------------}
  91. TDeployment = Class(TGoogleBaseObject)
  92. Private
  93. Fdescription : String;
  94. Ffingerprint : String;
  95. Fid : String;
  96. FinsertTime : String;
  97. Flabels : TDeploymentTypelabelsArray;
  98. Fmanifest : String;
  99. Fname : String;
  100. Foperation : TOperation;
  101. FselfLink : String;
  102. Ftarget : TTargetConfiguration;
  103. Fupdate : TDeploymentUpdate;
  104. Protected
  105. //Property setters
  106. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  107. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  108. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  109. Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
  110. Procedure Setlabels(AIndex : Integer; const AValue : TDeploymentTypelabelsArray); virtual;
  111. Procedure Setmanifest(AIndex : Integer; const AValue : String); virtual;
  112. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  113. Procedure Setoperation(AIndex : Integer; const AValue : TOperation); virtual;
  114. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  115. Procedure Settarget(AIndex : Integer; const AValue : TTargetConfiguration); virtual;
  116. Procedure Setupdate(AIndex : Integer; const AValue : TDeploymentUpdate); virtual;
  117. //2.6.4. bug workaround
  118. {$IFDEF VER2_6}
  119. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  120. {$ENDIF VER2_6}
  121. Public
  122. Published
  123. Property description : String Index 0 Read Fdescription Write Setdescription;
  124. Property fingerprint : String Index 8 Read Ffingerprint Write Setfingerprint;
  125. Property id : String Index 16 Read Fid Write Setid;
  126. Property insertTime : String Index 24 Read FinsertTime Write SetinsertTime;
  127. Property labels : TDeploymentTypelabelsArray Index 32 Read Flabels Write Setlabels;
  128. Property manifest : String Index 40 Read Fmanifest Write Setmanifest;
  129. Property name : String Index 48 Read Fname Write Setname;
  130. Property operation : TOperation Index 56 Read Foperation Write Setoperation;
  131. Property selfLink : String Index 64 Read FselfLink Write SetselfLink;
  132. Property target : TTargetConfiguration Index 72 Read Ftarget Write Settarget;
  133. Property update : TDeploymentUpdate Index 80 Read Fupdate Write Setupdate;
  134. end;
  135. TDeploymentClass = Class of TDeployment;
  136. { --------------------------------------------------------------------
  137. TDeploymentLabelEntry
  138. --------------------------------------------------------------------}
  139. TDeploymentLabelEntry = Class(TGoogleBaseObject)
  140. Private
  141. Fkey : String;
  142. Fvalue : String;
  143. Protected
  144. //Property setters
  145. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  146. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  147. Public
  148. Published
  149. Property key : String Index 0 Read Fkey Write Setkey;
  150. Property value : String Index 8 Read Fvalue Write Setvalue;
  151. end;
  152. TDeploymentLabelEntryClass = Class of TDeploymentLabelEntry;
  153. { --------------------------------------------------------------------
  154. TDeploymentUpdate
  155. --------------------------------------------------------------------}
  156. TDeploymentUpdate = Class(TGoogleBaseObject)
  157. Private
  158. Flabels : TDeploymentUpdateTypelabelsArray;
  159. Fmanifest : String;
  160. Protected
  161. //Property setters
  162. Procedure Setlabels(AIndex : Integer; const AValue : TDeploymentUpdateTypelabelsArray); virtual;
  163. Procedure Setmanifest(AIndex : Integer; const AValue : String); virtual;
  164. //2.6.4. bug workaround
  165. {$IFDEF VER2_6}
  166. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  167. {$ENDIF VER2_6}
  168. Public
  169. Published
  170. Property labels : TDeploymentUpdateTypelabelsArray Index 0 Read Flabels Write Setlabels;
  171. Property manifest : String Index 8 Read Fmanifest Write Setmanifest;
  172. end;
  173. TDeploymentUpdateClass = Class of TDeploymentUpdate;
  174. { --------------------------------------------------------------------
  175. TDeploymentUpdateLabelEntry
  176. --------------------------------------------------------------------}
  177. TDeploymentUpdateLabelEntry = Class(TGoogleBaseObject)
  178. Private
  179. Fkey : String;
  180. Fvalue : String;
  181. Protected
  182. //Property setters
  183. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  184. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  185. Public
  186. Published
  187. Property key : String Index 0 Read Fkey Write Setkey;
  188. Property value : String Index 8 Read Fvalue Write Setvalue;
  189. end;
  190. TDeploymentUpdateLabelEntryClass = Class of TDeploymentUpdateLabelEntry;
  191. { --------------------------------------------------------------------
  192. TDeploymentsCancelPreviewRequest
  193. --------------------------------------------------------------------}
  194. TDeploymentsCancelPreviewRequest = Class(TGoogleBaseObject)
  195. Private
  196. Ffingerprint : String;
  197. Protected
  198. //Property setters
  199. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  200. Public
  201. Published
  202. Property fingerprint : String Index 0 Read Ffingerprint Write Setfingerprint;
  203. end;
  204. TDeploymentsCancelPreviewRequestClass = Class of TDeploymentsCancelPreviewRequest;
  205. { --------------------------------------------------------------------
  206. TDeploymentsListResponse
  207. --------------------------------------------------------------------}
  208. TDeploymentsListResponse = Class(TGoogleBaseObject)
  209. Private
  210. Fdeployments : TDeploymentsListResponseTypedeploymentsArray;
  211. FnextPageToken : String;
  212. Protected
  213. //Property setters
  214. Procedure Setdeployments(AIndex : Integer; const AValue : TDeploymentsListResponseTypedeploymentsArray); virtual;
  215. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  216. //2.6.4. bug workaround
  217. {$IFDEF VER2_6}
  218. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  219. {$ENDIF VER2_6}
  220. Public
  221. Published
  222. Property deployments : TDeploymentsListResponseTypedeploymentsArray Index 0 Read Fdeployments Write Setdeployments;
  223. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  224. end;
  225. TDeploymentsListResponseClass = Class of TDeploymentsListResponse;
  226. { --------------------------------------------------------------------
  227. TDeploymentsStopRequest
  228. --------------------------------------------------------------------}
  229. TDeploymentsStopRequest = Class(TGoogleBaseObject)
  230. Private
  231. Ffingerprint : String;
  232. Protected
  233. //Property setters
  234. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  235. Public
  236. Published
  237. Property fingerprint : String Index 0 Read Ffingerprint Write Setfingerprint;
  238. end;
  239. TDeploymentsStopRequestClass = Class of TDeploymentsStopRequest;
  240. { --------------------------------------------------------------------
  241. TImportFile
  242. --------------------------------------------------------------------}
  243. TImportFile = Class(TGoogleBaseObject)
  244. Private
  245. Fcontent : String;
  246. Fname : String;
  247. Protected
  248. //Property setters
  249. Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
  250. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  251. Public
  252. Published
  253. Property content : String Index 0 Read Fcontent Write Setcontent;
  254. Property name : String Index 8 Read Fname Write Setname;
  255. end;
  256. TImportFileClass = Class of TImportFile;
  257. { --------------------------------------------------------------------
  258. TManifest
  259. --------------------------------------------------------------------}
  260. TManifest = Class(TGoogleBaseObject)
  261. Private
  262. Fconfig : TConfigFile;
  263. FexpandedConfig : String;
  264. Fid : String;
  265. Fimports : TManifestTypeimportsArray;
  266. FinsertTime : String;
  267. Flayout : String;
  268. Fname : String;
  269. FselfLink : String;
  270. Protected
  271. //Property setters
  272. Procedure Setconfig(AIndex : Integer; const AValue : TConfigFile); virtual;
  273. Procedure SetexpandedConfig(AIndex : Integer; const AValue : String); virtual;
  274. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  275. Procedure Setimports(AIndex : Integer; const AValue : TManifestTypeimportsArray); virtual;
  276. Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
  277. Procedure Setlayout(AIndex : Integer; const AValue : String); virtual;
  278. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  279. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  280. //2.6.4. bug workaround
  281. {$IFDEF VER2_6}
  282. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  283. {$ENDIF VER2_6}
  284. Public
  285. Published
  286. Property config : TConfigFile Index 0 Read Fconfig Write Setconfig;
  287. Property expandedConfig : String Index 8 Read FexpandedConfig Write SetexpandedConfig;
  288. Property id : String Index 16 Read Fid Write Setid;
  289. Property imports : TManifestTypeimportsArray Index 24 Read Fimports Write Setimports;
  290. Property insertTime : String Index 32 Read FinsertTime Write SetinsertTime;
  291. Property layout : String Index 40 Read Flayout Write Setlayout;
  292. Property name : String Index 48 Read Fname Write Setname;
  293. Property selfLink : String Index 56 Read FselfLink Write SetselfLink;
  294. end;
  295. TManifestClass = Class of TManifest;
  296. { --------------------------------------------------------------------
  297. TManifestsListResponse
  298. --------------------------------------------------------------------}
  299. TManifestsListResponse = Class(TGoogleBaseObject)
  300. Private
  301. Fmanifests : TManifestsListResponseTypemanifestsArray;
  302. FnextPageToken : String;
  303. Protected
  304. //Property setters
  305. Procedure Setmanifests(AIndex : Integer; const AValue : TManifestsListResponseTypemanifestsArray); virtual;
  306. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  307. //2.6.4. bug workaround
  308. {$IFDEF VER2_6}
  309. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  310. {$ENDIF VER2_6}
  311. Public
  312. Published
  313. Property manifests : TManifestsListResponseTypemanifestsArray Index 0 Read Fmanifests Write Setmanifests;
  314. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  315. end;
  316. TManifestsListResponseClass = Class of TManifestsListResponse;
  317. { --------------------------------------------------------------------
  318. TOperationTypeerrorTypeerrorsItem
  319. --------------------------------------------------------------------}
  320. TOperationTypeerrorTypeerrorsItem = Class(TGoogleBaseObject)
  321. Private
  322. Fcode : String;
  323. Flocation : String;
  324. Fmessage : String;
  325. Protected
  326. //Property setters
  327. Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
  328. Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
  329. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  330. Public
  331. Published
  332. Property code : String Index 0 Read Fcode Write Setcode;
  333. Property location : String Index 8 Read Flocation Write Setlocation;
  334. Property message : String Index 16 Read Fmessage Write Setmessage;
  335. end;
  336. TOperationTypeerrorTypeerrorsItemClass = Class of TOperationTypeerrorTypeerrorsItem;
  337. { --------------------------------------------------------------------
  338. TOperationTypeerror
  339. --------------------------------------------------------------------}
  340. TOperationTypeerror = Class(TGoogleBaseObject)
  341. Private
  342. Ferrors : TOperationTypeerrorTypeerrorsArray;
  343. Protected
  344. //Property setters
  345. Procedure Seterrors(AIndex : Integer; const AValue : TOperationTypeerrorTypeerrorsArray); virtual;
  346. //2.6.4. bug workaround
  347. {$IFDEF VER2_6}
  348. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  349. {$ENDIF VER2_6}
  350. Public
  351. Published
  352. Property errors : TOperationTypeerrorTypeerrorsArray Index 0 Read Ferrors Write Seterrors;
  353. end;
  354. TOperationTypeerrorClass = Class of TOperationTypeerror;
  355. { --------------------------------------------------------------------
  356. TOperationTypewarningsItemTypedataItem
  357. --------------------------------------------------------------------}
  358. TOperationTypewarningsItemTypedataItem = Class(TGoogleBaseObject)
  359. Private
  360. Fkey : String;
  361. Fvalue : String;
  362. Protected
  363. //Property setters
  364. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  365. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  366. Public
  367. Published
  368. Property key : String Index 0 Read Fkey Write Setkey;
  369. Property value : String Index 8 Read Fvalue Write Setvalue;
  370. end;
  371. TOperationTypewarningsItemTypedataItemClass = Class of TOperationTypewarningsItemTypedataItem;
  372. { --------------------------------------------------------------------
  373. TOperationTypewarningsItem
  374. --------------------------------------------------------------------}
  375. TOperationTypewarningsItem = Class(TGoogleBaseObject)
  376. Private
  377. Fcode : String;
  378. Fdata : TOperationTypewarningsItemTypedataArray;
  379. Fmessage : String;
  380. Protected
  381. //Property setters
  382. Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
  383. Procedure Setdata(AIndex : Integer; const AValue : TOperationTypewarningsItemTypedataArray); virtual;
  384. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  385. //2.6.4. bug workaround
  386. {$IFDEF VER2_6}
  387. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  388. {$ENDIF VER2_6}
  389. Public
  390. Published
  391. Property code : String Index 0 Read Fcode Write Setcode;
  392. Property data : TOperationTypewarningsItemTypedataArray Index 8 Read Fdata Write Setdata;
  393. Property message : String Index 16 Read Fmessage Write Setmessage;
  394. end;
  395. TOperationTypewarningsItemClass = Class of TOperationTypewarningsItem;
  396. { --------------------------------------------------------------------
  397. TOperation
  398. --------------------------------------------------------------------}
  399. TOperation = Class(TGoogleBaseObject)
  400. Private
  401. FclientOperationId : String;
  402. FcreationTimestamp : String;
  403. Fdescription : String;
  404. FendTime : String;
  405. Ferror : TOperationTypeerror;
  406. FhttpErrorMessage : String;
  407. FhttpErrorStatusCode : integer;
  408. Fid : String;
  409. FinsertTime : String;
  410. Fkind : String;
  411. Fname : String;
  412. FoperationType : String;
  413. Fprogress : integer;
  414. Fregion : String;
  415. FselfLink : String;
  416. FstartTime : String;
  417. Fstatus : String;
  418. FstatusMessage : String;
  419. FtargetId : String;
  420. FtargetLink : String;
  421. Fuser : String;
  422. Fwarnings : TOperationTypewarningsArray;
  423. Fzone : String;
  424. Protected
  425. //Property setters
  426. Procedure SetclientOperationId(AIndex : Integer; const AValue : String); virtual;
  427. Procedure SetcreationTimestamp(AIndex : Integer; const AValue : String); virtual;
  428. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  429. Procedure SetendTime(AIndex : Integer; const AValue : String); virtual;
  430. Procedure Seterror(AIndex : Integer; const AValue : TOperationTypeerror); virtual;
  431. Procedure SethttpErrorMessage(AIndex : Integer; const AValue : String); virtual;
  432. Procedure SethttpErrorStatusCode(AIndex : Integer; const AValue : integer); virtual;
  433. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  434. Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
  435. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  436. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  437. Procedure SetoperationType(AIndex : Integer; const AValue : String); virtual;
  438. Procedure Setprogress(AIndex : Integer; const AValue : integer); virtual;
  439. Procedure Setregion(AIndex : Integer; const AValue : String); virtual;
  440. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  441. Procedure SetstartTime(AIndex : Integer; const AValue : String); virtual;
  442. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  443. Procedure SetstatusMessage(AIndex : Integer; const AValue : String); virtual;
  444. Procedure SettargetId(AIndex : Integer; const AValue : String); virtual;
  445. Procedure SettargetLink(AIndex : Integer; const AValue : String); virtual;
  446. Procedure Setuser(AIndex : Integer; const AValue : String); virtual;
  447. Procedure Setwarnings(AIndex : Integer; const AValue : TOperationTypewarningsArray); virtual;
  448. Procedure Setzone(AIndex : Integer; const AValue : String); virtual;
  449. //2.6.4. bug workaround
  450. {$IFDEF VER2_6}
  451. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  452. {$ENDIF VER2_6}
  453. Public
  454. Published
  455. Property clientOperationId : String Index 0 Read FclientOperationId Write SetclientOperationId;
  456. Property creationTimestamp : String Index 8 Read FcreationTimestamp Write SetcreationTimestamp;
  457. Property description : String Index 16 Read Fdescription Write Setdescription;
  458. Property endTime : String Index 24 Read FendTime Write SetendTime;
  459. Property error : TOperationTypeerror Index 32 Read Ferror Write Seterror;
  460. Property httpErrorMessage : String Index 40 Read FhttpErrorMessage Write SethttpErrorMessage;
  461. Property httpErrorStatusCode : integer Index 48 Read FhttpErrorStatusCode Write SethttpErrorStatusCode;
  462. Property id : String Index 56 Read Fid Write Setid;
  463. Property insertTime : String Index 64 Read FinsertTime Write SetinsertTime;
  464. Property kind : String Index 72 Read Fkind Write Setkind;
  465. Property name : String Index 80 Read Fname Write Setname;
  466. Property operationType : String Index 88 Read FoperationType Write SetoperationType;
  467. Property progress : integer Index 96 Read Fprogress Write Setprogress;
  468. Property region : String Index 104 Read Fregion Write Setregion;
  469. Property selfLink : String Index 112 Read FselfLink Write SetselfLink;
  470. Property startTime : String Index 120 Read FstartTime Write SetstartTime;
  471. Property status : String Index 128 Read Fstatus Write Setstatus;
  472. Property statusMessage : String Index 136 Read FstatusMessage Write SetstatusMessage;
  473. Property targetId : String Index 144 Read FtargetId Write SettargetId;
  474. Property targetLink : String Index 152 Read FtargetLink Write SettargetLink;
  475. Property user : String Index 160 Read Fuser Write Setuser;
  476. Property warnings : TOperationTypewarningsArray Index 168 Read Fwarnings Write Setwarnings;
  477. Property zone : String Index 176 Read Fzone Write Setzone;
  478. end;
  479. TOperationClass = Class of TOperation;
  480. { --------------------------------------------------------------------
  481. TOperationsListResponse
  482. --------------------------------------------------------------------}
  483. TOperationsListResponse = Class(TGoogleBaseObject)
  484. Private
  485. FnextPageToken : String;
  486. Foperations : TOperationsListResponseTypeoperationsArray;
  487. Protected
  488. //Property setters
  489. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  490. Procedure Setoperations(AIndex : Integer; const AValue : TOperationsListResponseTypeoperationsArray); virtual;
  491. //2.6.4. bug workaround
  492. {$IFDEF VER2_6}
  493. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  494. {$ENDIF VER2_6}
  495. Public
  496. Published
  497. Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
  498. Property operations : TOperationsListResponseTypeoperationsArray Index 8 Read Foperations Write Setoperations;
  499. end;
  500. TOperationsListResponseClass = Class of TOperationsListResponse;
  501. { --------------------------------------------------------------------
  502. TResourceTypewarningsItemTypedataItem
  503. --------------------------------------------------------------------}
  504. TResourceTypewarningsItemTypedataItem = Class(TGoogleBaseObject)
  505. Private
  506. Fkey : String;
  507. Fvalue : String;
  508. Protected
  509. //Property setters
  510. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  511. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  512. Public
  513. Published
  514. Property key : String Index 0 Read Fkey Write Setkey;
  515. Property value : String Index 8 Read Fvalue Write Setvalue;
  516. end;
  517. TResourceTypewarningsItemTypedataItemClass = Class of TResourceTypewarningsItemTypedataItem;
  518. { --------------------------------------------------------------------
  519. TResourceTypewarningsItem
  520. --------------------------------------------------------------------}
  521. TResourceTypewarningsItem = Class(TGoogleBaseObject)
  522. Private
  523. Fcode : String;
  524. Fdata : TResourceTypewarningsItemTypedataArray;
  525. Fmessage : String;
  526. Protected
  527. //Property setters
  528. Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
  529. Procedure Setdata(AIndex : Integer; const AValue : TResourceTypewarningsItemTypedataArray); virtual;
  530. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  531. //2.6.4. bug workaround
  532. {$IFDEF VER2_6}
  533. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  534. {$ENDIF VER2_6}
  535. Public
  536. Published
  537. Property code : String Index 0 Read Fcode Write Setcode;
  538. Property data : TResourceTypewarningsItemTypedataArray Index 8 Read Fdata Write Setdata;
  539. Property message : String Index 16 Read Fmessage Write Setmessage;
  540. end;
  541. TResourceTypewarningsItemClass = Class of TResourceTypewarningsItem;
  542. { --------------------------------------------------------------------
  543. TResource
  544. --------------------------------------------------------------------}
  545. TResource = Class(TGoogleBaseObject)
  546. Private
  547. FfinalProperties : String;
  548. Fid : String;
  549. FinsertTime : String;
  550. Fmanifest : String;
  551. Fname : String;
  552. Fproperties : String;
  553. F_type : String;
  554. Fupdate : TResourceUpdate;
  555. FupdateTime : String;
  556. Furl : String;
  557. Fwarnings : TResourceTypewarningsArray;
  558. Protected
  559. Class Function ExportPropertyName(Const AName : String) : string; override;
  560. //Property setters
  561. Procedure SetfinalProperties(AIndex : Integer; const AValue : String); virtual;
  562. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  563. Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
  564. Procedure Setmanifest(AIndex : Integer; const AValue : String); virtual;
  565. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  566. Procedure Setproperties(AIndex : Integer; const AValue : String); virtual;
  567. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  568. Procedure Setupdate(AIndex : Integer; const AValue : TResourceUpdate); virtual;
  569. Procedure SetupdateTime(AIndex : Integer; const AValue : String); virtual;
  570. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  571. Procedure Setwarnings(AIndex : Integer; const AValue : TResourceTypewarningsArray); virtual;
  572. //2.6.4. bug workaround
  573. {$IFDEF VER2_6}
  574. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  575. {$ENDIF VER2_6}
  576. Public
  577. Published
  578. Property finalProperties : String Index 0 Read FfinalProperties Write SetfinalProperties;
  579. Property id : String Index 8 Read Fid Write Setid;
  580. Property insertTime : String Index 16 Read FinsertTime Write SetinsertTime;
  581. Property manifest : String Index 24 Read Fmanifest Write Setmanifest;
  582. Property name : String Index 32 Read Fname Write Setname;
  583. Property properties : String Index 40 Read Fproperties Write Setproperties;
  584. Property _type : String Index 48 Read F_type Write Set_type;
  585. Property update : TResourceUpdate Index 56 Read Fupdate Write Setupdate;
  586. Property updateTime : String Index 64 Read FupdateTime Write SetupdateTime;
  587. Property url : String Index 72 Read Furl Write Seturl;
  588. Property warnings : TResourceTypewarningsArray Index 80 Read Fwarnings Write Setwarnings;
  589. end;
  590. TResourceClass = Class of TResource;
  591. { --------------------------------------------------------------------
  592. TResourceUpdateTypeerrorTypeerrorsItem
  593. --------------------------------------------------------------------}
  594. TResourceUpdateTypeerrorTypeerrorsItem = Class(TGoogleBaseObject)
  595. Private
  596. Fcode : String;
  597. Flocation : String;
  598. Fmessage : String;
  599. Protected
  600. //Property setters
  601. Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
  602. Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
  603. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  604. Public
  605. Published
  606. Property code : String Index 0 Read Fcode Write Setcode;
  607. Property location : String Index 8 Read Flocation Write Setlocation;
  608. Property message : String Index 16 Read Fmessage Write Setmessage;
  609. end;
  610. TResourceUpdateTypeerrorTypeerrorsItemClass = Class of TResourceUpdateTypeerrorTypeerrorsItem;
  611. { --------------------------------------------------------------------
  612. TResourceUpdateTypeerror
  613. --------------------------------------------------------------------}
  614. TResourceUpdateTypeerror = Class(TGoogleBaseObject)
  615. Private
  616. Ferrors : TResourceUpdateTypeerrorTypeerrorsArray;
  617. Protected
  618. //Property setters
  619. Procedure Seterrors(AIndex : Integer; const AValue : TResourceUpdateTypeerrorTypeerrorsArray); virtual;
  620. //2.6.4. bug workaround
  621. {$IFDEF VER2_6}
  622. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  623. {$ENDIF VER2_6}
  624. Public
  625. Published
  626. Property errors : TResourceUpdateTypeerrorTypeerrorsArray Index 0 Read Ferrors Write Seterrors;
  627. end;
  628. TResourceUpdateTypeerrorClass = Class of TResourceUpdateTypeerror;
  629. { --------------------------------------------------------------------
  630. TResourceUpdateTypewarningsItemTypedataItem
  631. --------------------------------------------------------------------}
  632. TResourceUpdateTypewarningsItemTypedataItem = Class(TGoogleBaseObject)
  633. Private
  634. Fkey : String;
  635. Fvalue : String;
  636. Protected
  637. //Property setters
  638. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  639. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  640. Public
  641. Published
  642. Property key : String Index 0 Read Fkey Write Setkey;
  643. Property value : String Index 8 Read Fvalue Write Setvalue;
  644. end;
  645. TResourceUpdateTypewarningsItemTypedataItemClass = Class of TResourceUpdateTypewarningsItemTypedataItem;
  646. { --------------------------------------------------------------------
  647. TResourceUpdateTypewarningsItem
  648. --------------------------------------------------------------------}
  649. TResourceUpdateTypewarningsItem = Class(TGoogleBaseObject)
  650. Private
  651. Fcode : String;
  652. Fdata : TResourceUpdateTypewarningsItemTypedataArray;
  653. Fmessage : String;
  654. Protected
  655. //Property setters
  656. Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
  657. Procedure Setdata(AIndex : Integer; const AValue : TResourceUpdateTypewarningsItemTypedataArray); virtual;
  658. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  659. //2.6.4. bug workaround
  660. {$IFDEF VER2_6}
  661. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  662. {$ENDIF VER2_6}
  663. Public
  664. Published
  665. Property code : String Index 0 Read Fcode Write Setcode;
  666. Property data : TResourceUpdateTypewarningsItemTypedataArray Index 8 Read Fdata Write Setdata;
  667. Property message : String Index 16 Read Fmessage Write Setmessage;
  668. end;
  669. TResourceUpdateTypewarningsItemClass = Class of TResourceUpdateTypewarningsItem;
  670. { --------------------------------------------------------------------
  671. TResourceUpdate
  672. --------------------------------------------------------------------}
  673. TResourceUpdate = Class(TGoogleBaseObject)
  674. Private
  675. Ferror : TResourceUpdateTypeerror;
  676. FfinalProperties : String;
  677. Fintent : String;
  678. Fmanifest : String;
  679. Fproperties : String;
  680. Fstate : String;
  681. Fwarnings : TResourceUpdateTypewarningsArray;
  682. Protected
  683. //Property setters
  684. Procedure Seterror(AIndex : Integer; const AValue : TResourceUpdateTypeerror); virtual;
  685. Procedure SetfinalProperties(AIndex : Integer; const AValue : String); virtual;
  686. Procedure Setintent(AIndex : Integer; const AValue : String); virtual;
  687. Procedure Setmanifest(AIndex : Integer; const AValue : String); virtual;
  688. Procedure Setproperties(AIndex : Integer; const AValue : String); virtual;
  689. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  690. Procedure Setwarnings(AIndex : Integer; const AValue : TResourceUpdateTypewarningsArray); virtual;
  691. //2.6.4. bug workaround
  692. {$IFDEF VER2_6}
  693. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  694. {$ENDIF VER2_6}
  695. Public
  696. Published
  697. Property error : TResourceUpdateTypeerror Index 0 Read Ferror Write Seterror;
  698. Property finalProperties : String Index 8 Read FfinalProperties Write SetfinalProperties;
  699. Property intent : String Index 16 Read Fintent Write Setintent;
  700. Property manifest : String Index 24 Read Fmanifest Write Setmanifest;
  701. Property properties : String Index 32 Read Fproperties Write Setproperties;
  702. Property state : String Index 40 Read Fstate Write Setstate;
  703. Property warnings : TResourceUpdateTypewarningsArray Index 48 Read Fwarnings Write Setwarnings;
  704. end;
  705. TResourceUpdateClass = Class of TResourceUpdate;
  706. { --------------------------------------------------------------------
  707. TResourcesListResponse
  708. --------------------------------------------------------------------}
  709. TResourcesListResponse = Class(TGoogleBaseObject)
  710. Private
  711. FnextPageToken : String;
  712. Fresources : TResourcesListResponseTyperesourcesArray;
  713. Protected
  714. //Property setters
  715. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  716. Procedure Setresources(AIndex : Integer; const AValue : TResourcesListResponseTyperesourcesArray); virtual;
  717. //2.6.4. bug workaround
  718. {$IFDEF VER2_6}
  719. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  720. {$ENDIF VER2_6}
  721. Public
  722. Published
  723. Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
  724. Property resources : TResourcesListResponseTyperesourcesArray Index 8 Read Fresources Write Setresources;
  725. end;
  726. TResourcesListResponseClass = Class of TResourcesListResponse;
  727. { --------------------------------------------------------------------
  728. TTargetConfiguration
  729. --------------------------------------------------------------------}
  730. TTargetConfiguration = Class(TGoogleBaseObject)
  731. Private
  732. Fconfig : TConfigFile;
  733. Fimports : TTargetConfigurationTypeimportsArray;
  734. Protected
  735. //Property setters
  736. Procedure Setconfig(AIndex : Integer; const AValue : TConfigFile); virtual;
  737. Procedure Setimports(AIndex : Integer; const AValue : TTargetConfigurationTypeimportsArray); virtual;
  738. //2.6.4. bug workaround
  739. {$IFDEF VER2_6}
  740. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  741. {$ENDIF VER2_6}
  742. Public
  743. Published
  744. Property config : TConfigFile Index 0 Read Fconfig Write Setconfig;
  745. Property imports : TTargetConfigurationTypeimportsArray Index 8 Read Fimports Write Setimports;
  746. end;
  747. TTargetConfigurationClass = Class of TTargetConfiguration;
  748. { --------------------------------------------------------------------
  749. TType
  750. --------------------------------------------------------------------}
  751. TType = Class(TGoogleBaseObject)
  752. Private
  753. Fid : String;
  754. FinsertTime : String;
  755. Fname : String;
  756. FselfLink : String;
  757. Protected
  758. //Property setters
  759. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  760. Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
  761. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  762. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  763. Public
  764. Published
  765. Property id : String Index 0 Read Fid Write Setid;
  766. Property insertTime : String Index 8 Read FinsertTime Write SetinsertTime;
  767. Property name : String Index 16 Read Fname Write Setname;
  768. Property selfLink : String Index 24 Read FselfLink Write SetselfLink;
  769. end;
  770. TTypeClass = Class of TType;
  771. { --------------------------------------------------------------------
  772. TTypesListResponse
  773. --------------------------------------------------------------------}
  774. TTypesListResponse = Class(TGoogleBaseObject)
  775. Private
  776. FnextPageToken : String;
  777. Ftypes : TTypesListResponseTypetypesArray;
  778. Protected
  779. //Property setters
  780. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  781. Procedure Settypes(AIndex : Integer; const AValue : TTypesListResponseTypetypesArray); virtual;
  782. //2.6.4. bug workaround
  783. {$IFDEF VER2_6}
  784. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  785. {$ENDIF VER2_6}
  786. Public
  787. Published
  788. Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
  789. Property types : TTypesListResponseTypetypesArray Index 8 Read Ftypes Write Settypes;
  790. end;
  791. TTypesListResponseClass = Class of TTypesListResponse;
  792. { --------------------------------------------------------------------
  793. TDeploymentsResource
  794. --------------------------------------------------------------------}
  795. //Optional query Options for TDeploymentsResource, method Insert
  796. TDeploymentsInsertOptions = Record
  797. preview : boolean;
  798. end;
  799. //Optional query Options for TDeploymentsResource, method List
  800. TDeploymentsListOptions = Record
  801. filter : String;
  802. maxResults : integer;
  803. pageToken : String;
  804. end;
  805. //Optional query Options for TDeploymentsResource, method Patch
  806. TDeploymentsPatchOptions = Record
  807. createPolicy : String;
  808. deletePolicy : String;
  809. preview : boolean;
  810. end;
  811. //Optional query Options for TDeploymentsResource, method Update
  812. TDeploymentsUpdateOptions = Record
  813. createPolicy : String;
  814. deletePolicy : String;
  815. preview : boolean;
  816. end;
  817. TDeploymentsResource = Class(TGoogleResource)
  818. Public
  819. Class Function ResourceName : String; override;
  820. Class Function DefaultAPI : TGoogleAPIClass; override;
  821. Function CancelPreview(deployment: string; project: string; aDeploymentsCancelPreviewRequest : TDeploymentsCancelPreviewRequest) : TOperation;
  822. Function Delete(deployment: string; project: string) : TOperation;
  823. Function Get(deployment: string; project: string) : TDeployment;
  824. Function Insert(project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
  825. Function Insert(project: string; aDeployment : TDeployment; AQuery : TDeploymentsinsertOptions) : TOperation;
  826. Function List(project: string; AQuery : string = '') : TDeploymentsListResponse;
  827. Function List(project: string; AQuery : TDeploymentslistOptions) : TDeploymentsListResponse;
  828. Function Patch(deployment: string; project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
  829. Function Patch(deployment: string; project: string; aDeployment : TDeployment; AQuery : TDeploymentspatchOptions) : TOperation;
  830. Function Stop(deployment: string; project: string; aDeploymentsStopRequest : TDeploymentsStopRequest) : TOperation;
  831. Function Update(deployment: string; project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
  832. Function Update(deployment: string; project: string; aDeployment : TDeployment; AQuery : TDeploymentsupdateOptions) : TOperation;
  833. end;
  834. { --------------------------------------------------------------------
  835. TManifestsResource
  836. --------------------------------------------------------------------}
  837. //Optional query Options for TManifestsResource, method List
  838. TManifestsListOptions = Record
  839. filter : String;
  840. maxResults : integer;
  841. pageToken : String;
  842. end;
  843. TManifestsResource = Class(TGoogleResource)
  844. Public
  845. Class Function ResourceName : String; override;
  846. Class Function DefaultAPI : TGoogleAPIClass; override;
  847. Function Get(deployment: string; manifest: string; project: string) : TManifest;
  848. Function List(deployment: string; project: string; AQuery : string = '') : TManifestsListResponse;
  849. Function List(deployment: string; project: string; AQuery : TManifestslistOptions) : TManifestsListResponse;
  850. end;
  851. { --------------------------------------------------------------------
  852. TOperationsResource
  853. --------------------------------------------------------------------}
  854. //Optional query Options for TOperationsResource, method List
  855. TOperationsListOptions = Record
  856. filter : String;
  857. maxResults : integer;
  858. pageToken : String;
  859. end;
  860. TOperationsResource = Class(TGoogleResource)
  861. Public
  862. Class Function ResourceName : String; override;
  863. Class Function DefaultAPI : TGoogleAPIClass; override;
  864. Function Get(operation: string; project: string) : TOperation;
  865. Function List(project: string; AQuery : string = '') : TOperationsListResponse;
  866. Function List(project: string; AQuery : TOperationslistOptions) : TOperationsListResponse;
  867. end;
  868. { --------------------------------------------------------------------
  869. TResourcesResource
  870. --------------------------------------------------------------------}
  871. //Optional query Options for TResourcesResource, method List
  872. TResourcesListOptions = Record
  873. filter : String;
  874. maxResults : integer;
  875. pageToken : String;
  876. end;
  877. TResourcesResource = Class(TGoogleResource)
  878. Public
  879. Class Function ResourceName : String; override;
  880. Class Function DefaultAPI : TGoogleAPIClass; override;
  881. Function Get(deployment: string; project: string; resource: string) : TResource;
  882. Function List(deployment: string; project: string; AQuery : string = '') : TResourcesListResponse;
  883. Function List(deployment: string; project: string; AQuery : TResourceslistOptions) : TResourcesListResponse;
  884. end;
  885. { --------------------------------------------------------------------
  886. TTypesResource
  887. --------------------------------------------------------------------}
  888. //Optional query Options for TTypesResource, method List
  889. TTypesListOptions = Record
  890. filter : String;
  891. maxResults : integer;
  892. pageToken : String;
  893. end;
  894. TTypesResource = Class(TGoogleResource)
  895. Public
  896. Class Function ResourceName : String; override;
  897. Class Function DefaultAPI : TGoogleAPIClass; override;
  898. Function List(project: string; AQuery : string = '') : TTypesListResponse;
  899. Function List(project: string; AQuery : TTypeslistOptions) : TTypesListResponse;
  900. end;
  901. { --------------------------------------------------------------------
  902. TDeploymentmanagerAPI
  903. --------------------------------------------------------------------}
  904. TDeploymentmanagerAPI = Class(TGoogleAPI)
  905. Private
  906. FDeploymentsInstance : TDeploymentsResource;
  907. FManifestsInstance : TManifestsResource;
  908. FOperationsInstance : TOperationsResource;
  909. FResourcesInstance : TResourcesResource;
  910. FTypesInstance : TTypesResource;
  911. Function GetDeploymentsInstance : TDeploymentsResource;virtual;
  912. Function GetManifestsInstance : TManifestsResource;virtual;
  913. Function GetOperationsInstance : TOperationsResource;virtual;
  914. Function GetResourcesInstance : TResourcesResource;virtual;
  915. Function GetTypesInstance : TTypesResource;virtual;
  916. Public
  917. //Override class functions with API info
  918. Class Function APIName : String; override;
  919. Class Function APIVersion : String; override;
  920. Class Function APIRevision : String; override;
  921. Class Function APIID : String; override;
  922. Class Function APITitle : String; override;
  923. Class Function APIDescription : String; override;
  924. Class Function APIOwnerDomain : String; override;
  925. Class Function APIOwnerName : String; override;
  926. Class Function APIIcon16 : String; override;
  927. Class Function APIIcon32 : String; override;
  928. Class Function APIdocumentationLink : String; override;
  929. Class Function APIrootUrl : string; override;
  930. Class Function APIbasePath : string;override;
  931. Class Function APIbaseURL : String;override;
  932. Class Function APIProtocol : string;override;
  933. Class Function APIservicePath : string;override;
  934. Class Function APIbatchPath : String;override;
  935. Class Function APIAuthScopes : TScopeInfoArray;override;
  936. Class Function APINeedsAuth : Boolean;override;
  937. Class Procedure RegisterAPIResources; override;
  938. //Add create function for resources
  939. Function CreateDeploymentsResource(AOwner : TComponent) : TDeploymentsResource;virtual;overload;
  940. Function CreateDeploymentsResource : TDeploymentsResource;virtual;overload;
  941. Function CreateManifestsResource(AOwner : TComponent) : TManifestsResource;virtual;overload;
  942. Function CreateManifestsResource : TManifestsResource;virtual;overload;
  943. Function CreateOperationsResource(AOwner : TComponent) : TOperationsResource;virtual;overload;
  944. Function CreateOperationsResource : TOperationsResource;virtual;overload;
  945. Function CreateResourcesResource(AOwner : TComponent) : TResourcesResource;virtual;overload;
  946. Function CreateResourcesResource : TResourcesResource;virtual;overload;
  947. Function CreateTypesResource(AOwner : TComponent) : TTypesResource;virtual;overload;
  948. Function CreateTypesResource : TTypesResource;virtual;overload;
  949. //Add default on-demand instances for resources
  950. Property DeploymentsResource : TDeploymentsResource Read GetDeploymentsInstance;
  951. Property ManifestsResource : TManifestsResource Read GetManifestsInstance;
  952. Property OperationsResource : TOperationsResource Read GetOperationsInstance;
  953. Property ResourcesResource : TResourcesResource Read GetResourcesInstance;
  954. Property TypesResource : TTypesResource Read GetTypesInstance;
  955. end;
  956. implementation
  957. { --------------------------------------------------------------------
  958. TConfigFile
  959. --------------------------------------------------------------------}
  960. Procedure TConfigFile.Setcontent(AIndex : Integer; const AValue : String);
  961. begin
  962. If (Fcontent=AValue) then exit;
  963. Fcontent:=AValue;
  964. MarkPropertyChanged(AIndex);
  965. end;
  966. { --------------------------------------------------------------------
  967. TDeployment
  968. --------------------------------------------------------------------}
  969. Procedure TDeployment.Setdescription(AIndex : Integer; const AValue : String);
  970. begin
  971. If (Fdescription=AValue) then exit;
  972. Fdescription:=AValue;
  973. MarkPropertyChanged(AIndex);
  974. end;
  975. Procedure TDeployment.Setfingerprint(AIndex : Integer; const AValue : String);
  976. begin
  977. If (Ffingerprint=AValue) then exit;
  978. Ffingerprint:=AValue;
  979. MarkPropertyChanged(AIndex);
  980. end;
  981. Procedure TDeployment.Setid(AIndex : Integer; const AValue : String);
  982. begin
  983. If (Fid=AValue) then exit;
  984. Fid:=AValue;
  985. MarkPropertyChanged(AIndex);
  986. end;
  987. Procedure TDeployment.SetinsertTime(AIndex : Integer; const AValue : String);
  988. begin
  989. If (FinsertTime=AValue) then exit;
  990. FinsertTime:=AValue;
  991. MarkPropertyChanged(AIndex);
  992. end;
  993. Procedure TDeployment.Setlabels(AIndex : Integer; const AValue : TDeploymentTypelabelsArray);
  994. begin
  995. If (Flabels=AValue) then exit;
  996. Flabels:=AValue;
  997. MarkPropertyChanged(AIndex);
  998. end;
  999. Procedure TDeployment.Setmanifest(AIndex : Integer; const AValue : String);
  1000. begin
  1001. If (Fmanifest=AValue) then exit;
  1002. Fmanifest:=AValue;
  1003. MarkPropertyChanged(AIndex);
  1004. end;
  1005. Procedure TDeployment.Setname(AIndex : Integer; const AValue : String);
  1006. begin
  1007. If (Fname=AValue) then exit;
  1008. Fname:=AValue;
  1009. MarkPropertyChanged(AIndex);
  1010. end;
  1011. Procedure TDeployment.Setoperation(AIndex : Integer; const AValue : TOperation);
  1012. begin
  1013. If (Foperation=AValue) then exit;
  1014. Foperation:=AValue;
  1015. MarkPropertyChanged(AIndex);
  1016. end;
  1017. Procedure TDeployment.SetselfLink(AIndex : Integer; const AValue : String);
  1018. begin
  1019. If (FselfLink=AValue) then exit;
  1020. FselfLink:=AValue;
  1021. MarkPropertyChanged(AIndex);
  1022. end;
  1023. Procedure TDeployment.Settarget(AIndex : Integer; const AValue : TTargetConfiguration);
  1024. begin
  1025. If (Ftarget=AValue) then exit;
  1026. Ftarget:=AValue;
  1027. MarkPropertyChanged(AIndex);
  1028. end;
  1029. Procedure TDeployment.Setupdate(AIndex : Integer; const AValue : TDeploymentUpdate);
  1030. begin
  1031. If (Fupdate=AValue) then exit;
  1032. Fupdate:=AValue;
  1033. MarkPropertyChanged(AIndex);
  1034. end;
  1035. //2.6.4. bug workaround
  1036. {$IFDEF VER2_6}
  1037. Procedure TDeployment.SetArrayLength(Const AName : String; ALength : Longint);
  1038. begin
  1039. Case AName of
  1040. 'labels' : SetLength(Flabels,ALength);
  1041. else
  1042. Inherited SetArrayLength(AName,ALength);
  1043. end;
  1044. end;
  1045. {$ENDIF VER2_6}
  1046. { --------------------------------------------------------------------
  1047. TDeploymentLabelEntry
  1048. --------------------------------------------------------------------}
  1049. Procedure TDeploymentLabelEntry.Setkey(AIndex : Integer; const AValue : String);
  1050. begin
  1051. If (Fkey=AValue) then exit;
  1052. Fkey:=AValue;
  1053. MarkPropertyChanged(AIndex);
  1054. end;
  1055. Procedure TDeploymentLabelEntry.Setvalue(AIndex : Integer; const AValue : String);
  1056. begin
  1057. If (Fvalue=AValue) then exit;
  1058. Fvalue:=AValue;
  1059. MarkPropertyChanged(AIndex);
  1060. end;
  1061. { --------------------------------------------------------------------
  1062. TDeploymentUpdate
  1063. --------------------------------------------------------------------}
  1064. Procedure TDeploymentUpdate.Setlabels(AIndex : Integer; const AValue : TDeploymentUpdateTypelabelsArray);
  1065. begin
  1066. If (Flabels=AValue) then exit;
  1067. Flabels:=AValue;
  1068. MarkPropertyChanged(AIndex);
  1069. end;
  1070. Procedure TDeploymentUpdate.Setmanifest(AIndex : Integer; const AValue : String);
  1071. begin
  1072. If (Fmanifest=AValue) then exit;
  1073. Fmanifest:=AValue;
  1074. MarkPropertyChanged(AIndex);
  1075. end;
  1076. //2.6.4. bug workaround
  1077. {$IFDEF VER2_6}
  1078. Procedure TDeploymentUpdate.SetArrayLength(Const AName : String; ALength : Longint);
  1079. begin
  1080. Case AName of
  1081. 'labels' : SetLength(Flabels,ALength);
  1082. else
  1083. Inherited SetArrayLength(AName,ALength);
  1084. end;
  1085. end;
  1086. {$ENDIF VER2_6}
  1087. { --------------------------------------------------------------------
  1088. TDeploymentUpdateLabelEntry
  1089. --------------------------------------------------------------------}
  1090. Procedure TDeploymentUpdateLabelEntry.Setkey(AIndex : Integer; const AValue : String);
  1091. begin
  1092. If (Fkey=AValue) then exit;
  1093. Fkey:=AValue;
  1094. MarkPropertyChanged(AIndex);
  1095. end;
  1096. Procedure TDeploymentUpdateLabelEntry.Setvalue(AIndex : Integer; const AValue : String);
  1097. begin
  1098. If (Fvalue=AValue) then exit;
  1099. Fvalue:=AValue;
  1100. MarkPropertyChanged(AIndex);
  1101. end;
  1102. { --------------------------------------------------------------------
  1103. TDeploymentsCancelPreviewRequest
  1104. --------------------------------------------------------------------}
  1105. Procedure TDeploymentsCancelPreviewRequest.Setfingerprint(AIndex : Integer; const AValue : String);
  1106. begin
  1107. If (Ffingerprint=AValue) then exit;
  1108. Ffingerprint:=AValue;
  1109. MarkPropertyChanged(AIndex);
  1110. end;
  1111. { --------------------------------------------------------------------
  1112. TDeploymentsListResponse
  1113. --------------------------------------------------------------------}
  1114. Procedure TDeploymentsListResponse.Setdeployments(AIndex : Integer; const AValue : TDeploymentsListResponseTypedeploymentsArray);
  1115. begin
  1116. If (Fdeployments=AValue) then exit;
  1117. Fdeployments:=AValue;
  1118. MarkPropertyChanged(AIndex);
  1119. end;
  1120. Procedure TDeploymentsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1121. begin
  1122. If (FnextPageToken=AValue) then exit;
  1123. FnextPageToken:=AValue;
  1124. MarkPropertyChanged(AIndex);
  1125. end;
  1126. //2.6.4. bug workaround
  1127. {$IFDEF VER2_6}
  1128. Procedure TDeploymentsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1129. begin
  1130. Case AName of
  1131. 'deployments' : SetLength(Fdeployments,ALength);
  1132. else
  1133. Inherited SetArrayLength(AName,ALength);
  1134. end;
  1135. end;
  1136. {$ENDIF VER2_6}
  1137. { --------------------------------------------------------------------
  1138. TDeploymentsStopRequest
  1139. --------------------------------------------------------------------}
  1140. Procedure TDeploymentsStopRequest.Setfingerprint(AIndex : Integer; const AValue : String);
  1141. begin
  1142. If (Ffingerprint=AValue) then exit;
  1143. Ffingerprint:=AValue;
  1144. MarkPropertyChanged(AIndex);
  1145. end;
  1146. { --------------------------------------------------------------------
  1147. TImportFile
  1148. --------------------------------------------------------------------}
  1149. Procedure TImportFile.Setcontent(AIndex : Integer; const AValue : String);
  1150. begin
  1151. If (Fcontent=AValue) then exit;
  1152. Fcontent:=AValue;
  1153. MarkPropertyChanged(AIndex);
  1154. end;
  1155. Procedure TImportFile.Setname(AIndex : Integer; const AValue : String);
  1156. begin
  1157. If (Fname=AValue) then exit;
  1158. Fname:=AValue;
  1159. MarkPropertyChanged(AIndex);
  1160. end;
  1161. { --------------------------------------------------------------------
  1162. TManifest
  1163. --------------------------------------------------------------------}
  1164. Procedure TManifest.Setconfig(AIndex : Integer; const AValue : TConfigFile);
  1165. begin
  1166. If (Fconfig=AValue) then exit;
  1167. Fconfig:=AValue;
  1168. MarkPropertyChanged(AIndex);
  1169. end;
  1170. Procedure TManifest.SetexpandedConfig(AIndex : Integer; const AValue : String);
  1171. begin
  1172. If (FexpandedConfig=AValue) then exit;
  1173. FexpandedConfig:=AValue;
  1174. MarkPropertyChanged(AIndex);
  1175. end;
  1176. Procedure TManifest.Setid(AIndex : Integer; const AValue : String);
  1177. begin
  1178. If (Fid=AValue) then exit;
  1179. Fid:=AValue;
  1180. MarkPropertyChanged(AIndex);
  1181. end;
  1182. Procedure TManifest.Setimports(AIndex : Integer; const AValue : TManifestTypeimportsArray);
  1183. begin
  1184. If (Fimports=AValue) then exit;
  1185. Fimports:=AValue;
  1186. MarkPropertyChanged(AIndex);
  1187. end;
  1188. Procedure TManifest.SetinsertTime(AIndex : Integer; const AValue : String);
  1189. begin
  1190. If (FinsertTime=AValue) then exit;
  1191. FinsertTime:=AValue;
  1192. MarkPropertyChanged(AIndex);
  1193. end;
  1194. Procedure TManifest.Setlayout(AIndex : Integer; const AValue : String);
  1195. begin
  1196. If (Flayout=AValue) then exit;
  1197. Flayout:=AValue;
  1198. MarkPropertyChanged(AIndex);
  1199. end;
  1200. Procedure TManifest.Setname(AIndex : Integer; const AValue : String);
  1201. begin
  1202. If (Fname=AValue) then exit;
  1203. Fname:=AValue;
  1204. MarkPropertyChanged(AIndex);
  1205. end;
  1206. Procedure TManifest.SetselfLink(AIndex : Integer; const AValue : String);
  1207. begin
  1208. If (FselfLink=AValue) then exit;
  1209. FselfLink:=AValue;
  1210. MarkPropertyChanged(AIndex);
  1211. end;
  1212. //2.6.4. bug workaround
  1213. {$IFDEF VER2_6}
  1214. Procedure TManifest.SetArrayLength(Const AName : String; ALength : Longint);
  1215. begin
  1216. Case AName of
  1217. 'imports' : SetLength(Fimports,ALength);
  1218. else
  1219. Inherited SetArrayLength(AName,ALength);
  1220. end;
  1221. end;
  1222. {$ENDIF VER2_6}
  1223. { --------------------------------------------------------------------
  1224. TManifestsListResponse
  1225. --------------------------------------------------------------------}
  1226. Procedure TManifestsListResponse.Setmanifests(AIndex : Integer; const AValue : TManifestsListResponseTypemanifestsArray);
  1227. begin
  1228. If (Fmanifests=AValue) then exit;
  1229. Fmanifests:=AValue;
  1230. MarkPropertyChanged(AIndex);
  1231. end;
  1232. Procedure TManifestsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1233. begin
  1234. If (FnextPageToken=AValue) then exit;
  1235. FnextPageToken:=AValue;
  1236. MarkPropertyChanged(AIndex);
  1237. end;
  1238. //2.6.4. bug workaround
  1239. {$IFDEF VER2_6}
  1240. Procedure TManifestsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1241. begin
  1242. Case AName of
  1243. 'manifests' : SetLength(Fmanifests,ALength);
  1244. else
  1245. Inherited SetArrayLength(AName,ALength);
  1246. end;
  1247. end;
  1248. {$ENDIF VER2_6}
  1249. { --------------------------------------------------------------------
  1250. TOperationTypeerrorTypeerrorsItem
  1251. --------------------------------------------------------------------}
  1252. Procedure TOperationTypeerrorTypeerrorsItem.Setcode(AIndex : Integer; const AValue : String);
  1253. begin
  1254. If (Fcode=AValue) then exit;
  1255. Fcode:=AValue;
  1256. MarkPropertyChanged(AIndex);
  1257. end;
  1258. Procedure TOperationTypeerrorTypeerrorsItem.Setlocation(AIndex : Integer; const AValue : String);
  1259. begin
  1260. If (Flocation=AValue) then exit;
  1261. Flocation:=AValue;
  1262. MarkPropertyChanged(AIndex);
  1263. end;
  1264. Procedure TOperationTypeerrorTypeerrorsItem.Setmessage(AIndex : Integer; const AValue : String);
  1265. begin
  1266. If (Fmessage=AValue) then exit;
  1267. Fmessage:=AValue;
  1268. MarkPropertyChanged(AIndex);
  1269. end;
  1270. { --------------------------------------------------------------------
  1271. TOperationTypeerror
  1272. --------------------------------------------------------------------}
  1273. Procedure TOperationTypeerror.Seterrors(AIndex : Integer; const AValue : TOperationTypeerrorTypeerrorsArray);
  1274. begin
  1275. If (Ferrors=AValue) then exit;
  1276. Ferrors:=AValue;
  1277. MarkPropertyChanged(AIndex);
  1278. end;
  1279. //2.6.4. bug workaround
  1280. {$IFDEF VER2_6}
  1281. Procedure TOperationTypeerror.SetArrayLength(Const AName : String; ALength : Longint);
  1282. begin
  1283. Case AName of
  1284. 'errors' : SetLength(Ferrors,ALength);
  1285. else
  1286. Inherited SetArrayLength(AName,ALength);
  1287. end;
  1288. end;
  1289. {$ENDIF VER2_6}
  1290. { --------------------------------------------------------------------
  1291. TOperationTypewarningsItemTypedataItem
  1292. --------------------------------------------------------------------}
  1293. Procedure TOperationTypewarningsItemTypedataItem.Setkey(AIndex : Integer; const AValue : String);
  1294. begin
  1295. If (Fkey=AValue) then exit;
  1296. Fkey:=AValue;
  1297. MarkPropertyChanged(AIndex);
  1298. end;
  1299. Procedure TOperationTypewarningsItemTypedataItem.Setvalue(AIndex : Integer; const AValue : String);
  1300. begin
  1301. If (Fvalue=AValue) then exit;
  1302. Fvalue:=AValue;
  1303. MarkPropertyChanged(AIndex);
  1304. end;
  1305. { --------------------------------------------------------------------
  1306. TOperationTypewarningsItem
  1307. --------------------------------------------------------------------}
  1308. Procedure TOperationTypewarningsItem.Setcode(AIndex : Integer; const AValue : String);
  1309. begin
  1310. If (Fcode=AValue) then exit;
  1311. Fcode:=AValue;
  1312. MarkPropertyChanged(AIndex);
  1313. end;
  1314. Procedure TOperationTypewarningsItem.Setdata(AIndex : Integer; const AValue : TOperationTypewarningsItemTypedataArray);
  1315. begin
  1316. If (Fdata=AValue) then exit;
  1317. Fdata:=AValue;
  1318. MarkPropertyChanged(AIndex);
  1319. end;
  1320. Procedure TOperationTypewarningsItem.Setmessage(AIndex : Integer; const AValue : String);
  1321. begin
  1322. If (Fmessage=AValue) then exit;
  1323. Fmessage:=AValue;
  1324. MarkPropertyChanged(AIndex);
  1325. end;
  1326. //2.6.4. bug workaround
  1327. {$IFDEF VER2_6}
  1328. Procedure TOperationTypewarningsItem.SetArrayLength(Const AName : String; ALength : Longint);
  1329. begin
  1330. Case AName of
  1331. 'data' : SetLength(Fdata,ALength);
  1332. else
  1333. Inherited SetArrayLength(AName,ALength);
  1334. end;
  1335. end;
  1336. {$ENDIF VER2_6}
  1337. { --------------------------------------------------------------------
  1338. TOperation
  1339. --------------------------------------------------------------------}
  1340. Procedure TOperation.SetclientOperationId(AIndex : Integer; const AValue : String);
  1341. begin
  1342. If (FclientOperationId=AValue) then exit;
  1343. FclientOperationId:=AValue;
  1344. MarkPropertyChanged(AIndex);
  1345. end;
  1346. Procedure TOperation.SetcreationTimestamp(AIndex : Integer; const AValue : String);
  1347. begin
  1348. If (FcreationTimestamp=AValue) then exit;
  1349. FcreationTimestamp:=AValue;
  1350. MarkPropertyChanged(AIndex);
  1351. end;
  1352. Procedure TOperation.Setdescription(AIndex : Integer; const AValue : String);
  1353. begin
  1354. If (Fdescription=AValue) then exit;
  1355. Fdescription:=AValue;
  1356. MarkPropertyChanged(AIndex);
  1357. end;
  1358. Procedure TOperation.SetendTime(AIndex : Integer; const AValue : String);
  1359. begin
  1360. If (FendTime=AValue) then exit;
  1361. FendTime:=AValue;
  1362. MarkPropertyChanged(AIndex);
  1363. end;
  1364. Procedure TOperation.Seterror(AIndex : Integer; const AValue : TOperationTypeerror);
  1365. begin
  1366. If (Ferror=AValue) then exit;
  1367. Ferror:=AValue;
  1368. MarkPropertyChanged(AIndex);
  1369. end;
  1370. Procedure TOperation.SethttpErrorMessage(AIndex : Integer; const AValue : String);
  1371. begin
  1372. If (FhttpErrorMessage=AValue) then exit;
  1373. FhttpErrorMessage:=AValue;
  1374. MarkPropertyChanged(AIndex);
  1375. end;
  1376. Procedure TOperation.SethttpErrorStatusCode(AIndex : Integer; const AValue : integer);
  1377. begin
  1378. If (FhttpErrorStatusCode=AValue) then exit;
  1379. FhttpErrorStatusCode:=AValue;
  1380. MarkPropertyChanged(AIndex);
  1381. end;
  1382. Procedure TOperation.Setid(AIndex : Integer; const AValue : String);
  1383. begin
  1384. If (Fid=AValue) then exit;
  1385. Fid:=AValue;
  1386. MarkPropertyChanged(AIndex);
  1387. end;
  1388. Procedure TOperation.SetinsertTime(AIndex : Integer; const AValue : String);
  1389. begin
  1390. If (FinsertTime=AValue) then exit;
  1391. FinsertTime:=AValue;
  1392. MarkPropertyChanged(AIndex);
  1393. end;
  1394. Procedure TOperation.Setkind(AIndex : Integer; const AValue : String);
  1395. begin
  1396. If (Fkind=AValue) then exit;
  1397. Fkind:=AValue;
  1398. MarkPropertyChanged(AIndex);
  1399. end;
  1400. Procedure TOperation.Setname(AIndex : Integer; const AValue : String);
  1401. begin
  1402. If (Fname=AValue) then exit;
  1403. Fname:=AValue;
  1404. MarkPropertyChanged(AIndex);
  1405. end;
  1406. Procedure TOperation.SetoperationType(AIndex : Integer; const AValue : String);
  1407. begin
  1408. If (FoperationType=AValue) then exit;
  1409. FoperationType:=AValue;
  1410. MarkPropertyChanged(AIndex);
  1411. end;
  1412. Procedure TOperation.Setprogress(AIndex : Integer; const AValue : integer);
  1413. begin
  1414. If (Fprogress=AValue) then exit;
  1415. Fprogress:=AValue;
  1416. MarkPropertyChanged(AIndex);
  1417. end;
  1418. Procedure TOperation.Setregion(AIndex : Integer; const AValue : String);
  1419. begin
  1420. If (Fregion=AValue) then exit;
  1421. Fregion:=AValue;
  1422. MarkPropertyChanged(AIndex);
  1423. end;
  1424. Procedure TOperation.SetselfLink(AIndex : Integer; const AValue : String);
  1425. begin
  1426. If (FselfLink=AValue) then exit;
  1427. FselfLink:=AValue;
  1428. MarkPropertyChanged(AIndex);
  1429. end;
  1430. Procedure TOperation.SetstartTime(AIndex : Integer; const AValue : String);
  1431. begin
  1432. If (FstartTime=AValue) then exit;
  1433. FstartTime:=AValue;
  1434. MarkPropertyChanged(AIndex);
  1435. end;
  1436. Procedure TOperation.Setstatus(AIndex : Integer; const AValue : String);
  1437. begin
  1438. If (Fstatus=AValue) then exit;
  1439. Fstatus:=AValue;
  1440. MarkPropertyChanged(AIndex);
  1441. end;
  1442. Procedure TOperation.SetstatusMessage(AIndex : Integer; const AValue : String);
  1443. begin
  1444. If (FstatusMessage=AValue) then exit;
  1445. FstatusMessage:=AValue;
  1446. MarkPropertyChanged(AIndex);
  1447. end;
  1448. Procedure TOperation.SettargetId(AIndex : Integer; const AValue : String);
  1449. begin
  1450. If (FtargetId=AValue) then exit;
  1451. FtargetId:=AValue;
  1452. MarkPropertyChanged(AIndex);
  1453. end;
  1454. Procedure TOperation.SettargetLink(AIndex : Integer; const AValue : String);
  1455. begin
  1456. If (FtargetLink=AValue) then exit;
  1457. FtargetLink:=AValue;
  1458. MarkPropertyChanged(AIndex);
  1459. end;
  1460. Procedure TOperation.Setuser(AIndex : Integer; const AValue : String);
  1461. begin
  1462. If (Fuser=AValue) then exit;
  1463. Fuser:=AValue;
  1464. MarkPropertyChanged(AIndex);
  1465. end;
  1466. Procedure TOperation.Setwarnings(AIndex : Integer; const AValue : TOperationTypewarningsArray);
  1467. begin
  1468. If (Fwarnings=AValue) then exit;
  1469. Fwarnings:=AValue;
  1470. MarkPropertyChanged(AIndex);
  1471. end;
  1472. Procedure TOperation.Setzone(AIndex : Integer; const AValue : String);
  1473. begin
  1474. If (Fzone=AValue) then exit;
  1475. Fzone:=AValue;
  1476. MarkPropertyChanged(AIndex);
  1477. end;
  1478. //2.6.4. bug workaround
  1479. {$IFDEF VER2_6}
  1480. Procedure TOperation.SetArrayLength(Const AName : String; ALength : Longint);
  1481. begin
  1482. Case AName of
  1483. 'warnings' : SetLength(Fwarnings,ALength);
  1484. else
  1485. Inherited SetArrayLength(AName,ALength);
  1486. end;
  1487. end;
  1488. {$ENDIF VER2_6}
  1489. { --------------------------------------------------------------------
  1490. TOperationsListResponse
  1491. --------------------------------------------------------------------}
  1492. Procedure TOperationsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1493. begin
  1494. If (FnextPageToken=AValue) then exit;
  1495. FnextPageToken:=AValue;
  1496. MarkPropertyChanged(AIndex);
  1497. end;
  1498. Procedure TOperationsListResponse.Setoperations(AIndex : Integer; const AValue : TOperationsListResponseTypeoperationsArray);
  1499. begin
  1500. If (Foperations=AValue) then exit;
  1501. Foperations:=AValue;
  1502. MarkPropertyChanged(AIndex);
  1503. end;
  1504. //2.6.4. bug workaround
  1505. {$IFDEF VER2_6}
  1506. Procedure TOperationsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1507. begin
  1508. Case AName of
  1509. 'operations' : SetLength(Foperations,ALength);
  1510. else
  1511. Inherited SetArrayLength(AName,ALength);
  1512. end;
  1513. end;
  1514. {$ENDIF VER2_6}
  1515. { --------------------------------------------------------------------
  1516. TResourceTypewarningsItemTypedataItem
  1517. --------------------------------------------------------------------}
  1518. Procedure TResourceTypewarningsItemTypedataItem.Setkey(AIndex : Integer; const AValue : String);
  1519. begin
  1520. If (Fkey=AValue) then exit;
  1521. Fkey:=AValue;
  1522. MarkPropertyChanged(AIndex);
  1523. end;
  1524. Procedure TResourceTypewarningsItemTypedataItem.Setvalue(AIndex : Integer; const AValue : String);
  1525. begin
  1526. If (Fvalue=AValue) then exit;
  1527. Fvalue:=AValue;
  1528. MarkPropertyChanged(AIndex);
  1529. end;
  1530. { --------------------------------------------------------------------
  1531. TResourceTypewarningsItem
  1532. --------------------------------------------------------------------}
  1533. Procedure TResourceTypewarningsItem.Setcode(AIndex : Integer; const AValue : String);
  1534. begin
  1535. If (Fcode=AValue) then exit;
  1536. Fcode:=AValue;
  1537. MarkPropertyChanged(AIndex);
  1538. end;
  1539. Procedure TResourceTypewarningsItem.Setdata(AIndex : Integer; const AValue : TResourceTypewarningsItemTypedataArray);
  1540. begin
  1541. If (Fdata=AValue) then exit;
  1542. Fdata:=AValue;
  1543. MarkPropertyChanged(AIndex);
  1544. end;
  1545. Procedure TResourceTypewarningsItem.Setmessage(AIndex : Integer; const AValue : String);
  1546. begin
  1547. If (Fmessage=AValue) then exit;
  1548. Fmessage:=AValue;
  1549. MarkPropertyChanged(AIndex);
  1550. end;
  1551. //2.6.4. bug workaround
  1552. {$IFDEF VER2_6}
  1553. Procedure TResourceTypewarningsItem.SetArrayLength(Const AName : String; ALength : Longint);
  1554. begin
  1555. Case AName of
  1556. 'data' : SetLength(Fdata,ALength);
  1557. else
  1558. Inherited SetArrayLength(AName,ALength);
  1559. end;
  1560. end;
  1561. {$ENDIF VER2_6}
  1562. { --------------------------------------------------------------------
  1563. TResource
  1564. --------------------------------------------------------------------}
  1565. Procedure TResource.SetfinalProperties(AIndex : Integer; const AValue : String);
  1566. begin
  1567. If (FfinalProperties=AValue) then exit;
  1568. FfinalProperties:=AValue;
  1569. MarkPropertyChanged(AIndex);
  1570. end;
  1571. Procedure TResource.Setid(AIndex : Integer; const AValue : String);
  1572. begin
  1573. If (Fid=AValue) then exit;
  1574. Fid:=AValue;
  1575. MarkPropertyChanged(AIndex);
  1576. end;
  1577. Procedure TResource.SetinsertTime(AIndex : Integer; const AValue : String);
  1578. begin
  1579. If (FinsertTime=AValue) then exit;
  1580. FinsertTime:=AValue;
  1581. MarkPropertyChanged(AIndex);
  1582. end;
  1583. Procedure TResource.Setmanifest(AIndex : Integer; const AValue : String);
  1584. begin
  1585. If (Fmanifest=AValue) then exit;
  1586. Fmanifest:=AValue;
  1587. MarkPropertyChanged(AIndex);
  1588. end;
  1589. Procedure TResource.Setname(AIndex : Integer; const AValue : String);
  1590. begin
  1591. If (Fname=AValue) then exit;
  1592. Fname:=AValue;
  1593. MarkPropertyChanged(AIndex);
  1594. end;
  1595. Procedure TResource.Setproperties(AIndex : Integer; const AValue : String);
  1596. begin
  1597. If (Fproperties=AValue) then exit;
  1598. Fproperties:=AValue;
  1599. MarkPropertyChanged(AIndex);
  1600. end;
  1601. Procedure TResource.Set_type(AIndex : Integer; const AValue : String);
  1602. begin
  1603. If (F_type=AValue) then exit;
  1604. F_type:=AValue;
  1605. MarkPropertyChanged(AIndex);
  1606. end;
  1607. Procedure TResource.Setupdate(AIndex : Integer; const AValue : TResourceUpdate);
  1608. begin
  1609. If (Fupdate=AValue) then exit;
  1610. Fupdate:=AValue;
  1611. MarkPropertyChanged(AIndex);
  1612. end;
  1613. Procedure TResource.SetupdateTime(AIndex : Integer; const AValue : String);
  1614. begin
  1615. If (FupdateTime=AValue) then exit;
  1616. FupdateTime:=AValue;
  1617. MarkPropertyChanged(AIndex);
  1618. end;
  1619. Procedure TResource.Seturl(AIndex : Integer; const AValue : String);
  1620. begin
  1621. If (Furl=AValue) then exit;
  1622. Furl:=AValue;
  1623. MarkPropertyChanged(AIndex);
  1624. end;
  1625. Procedure TResource.Setwarnings(AIndex : Integer; const AValue : TResourceTypewarningsArray);
  1626. begin
  1627. If (Fwarnings=AValue) then exit;
  1628. Fwarnings:=AValue;
  1629. MarkPropertyChanged(AIndex);
  1630. end;
  1631. Class Function TResource.ExportPropertyName(Const AName : String) :String;
  1632. begin
  1633. Case AName of
  1634. '_type' : Result:='type';
  1635. else
  1636. Result:=Inherited ExportPropertyName(AName);
  1637. end;
  1638. end;
  1639. //2.6.4. bug workaround
  1640. {$IFDEF VER2_6}
  1641. Procedure TResource.SetArrayLength(Const AName : String; ALength : Longint);
  1642. begin
  1643. Case AName of
  1644. 'warnings' : SetLength(Fwarnings,ALength);
  1645. else
  1646. Inherited SetArrayLength(AName,ALength);
  1647. end;
  1648. end;
  1649. {$ENDIF VER2_6}
  1650. { --------------------------------------------------------------------
  1651. TResourceUpdateTypeerrorTypeerrorsItem
  1652. --------------------------------------------------------------------}
  1653. Procedure TResourceUpdateTypeerrorTypeerrorsItem.Setcode(AIndex : Integer; const AValue : String);
  1654. begin
  1655. If (Fcode=AValue) then exit;
  1656. Fcode:=AValue;
  1657. MarkPropertyChanged(AIndex);
  1658. end;
  1659. Procedure TResourceUpdateTypeerrorTypeerrorsItem.Setlocation(AIndex : Integer; const AValue : String);
  1660. begin
  1661. If (Flocation=AValue) then exit;
  1662. Flocation:=AValue;
  1663. MarkPropertyChanged(AIndex);
  1664. end;
  1665. Procedure TResourceUpdateTypeerrorTypeerrorsItem.Setmessage(AIndex : Integer; const AValue : String);
  1666. begin
  1667. If (Fmessage=AValue) then exit;
  1668. Fmessage:=AValue;
  1669. MarkPropertyChanged(AIndex);
  1670. end;
  1671. { --------------------------------------------------------------------
  1672. TResourceUpdateTypeerror
  1673. --------------------------------------------------------------------}
  1674. Procedure TResourceUpdateTypeerror.Seterrors(AIndex : Integer; const AValue : TResourceUpdateTypeerrorTypeerrorsArray);
  1675. begin
  1676. If (Ferrors=AValue) then exit;
  1677. Ferrors:=AValue;
  1678. MarkPropertyChanged(AIndex);
  1679. end;
  1680. //2.6.4. bug workaround
  1681. {$IFDEF VER2_6}
  1682. Procedure TResourceUpdateTypeerror.SetArrayLength(Const AName : String; ALength : Longint);
  1683. begin
  1684. Case AName of
  1685. 'errors' : SetLength(Ferrors,ALength);
  1686. else
  1687. Inherited SetArrayLength(AName,ALength);
  1688. end;
  1689. end;
  1690. {$ENDIF VER2_6}
  1691. { --------------------------------------------------------------------
  1692. TResourceUpdateTypewarningsItemTypedataItem
  1693. --------------------------------------------------------------------}
  1694. Procedure TResourceUpdateTypewarningsItemTypedataItem.Setkey(AIndex : Integer; const AValue : String);
  1695. begin
  1696. If (Fkey=AValue) then exit;
  1697. Fkey:=AValue;
  1698. MarkPropertyChanged(AIndex);
  1699. end;
  1700. Procedure TResourceUpdateTypewarningsItemTypedataItem.Setvalue(AIndex : Integer; const AValue : String);
  1701. begin
  1702. If (Fvalue=AValue) then exit;
  1703. Fvalue:=AValue;
  1704. MarkPropertyChanged(AIndex);
  1705. end;
  1706. { --------------------------------------------------------------------
  1707. TResourceUpdateTypewarningsItem
  1708. --------------------------------------------------------------------}
  1709. Procedure TResourceUpdateTypewarningsItem.Setcode(AIndex : Integer; const AValue : String);
  1710. begin
  1711. If (Fcode=AValue) then exit;
  1712. Fcode:=AValue;
  1713. MarkPropertyChanged(AIndex);
  1714. end;
  1715. Procedure TResourceUpdateTypewarningsItem.Setdata(AIndex : Integer; const AValue : TResourceUpdateTypewarningsItemTypedataArray);
  1716. begin
  1717. If (Fdata=AValue) then exit;
  1718. Fdata:=AValue;
  1719. MarkPropertyChanged(AIndex);
  1720. end;
  1721. Procedure TResourceUpdateTypewarningsItem.Setmessage(AIndex : Integer; const AValue : String);
  1722. begin
  1723. If (Fmessage=AValue) then exit;
  1724. Fmessage:=AValue;
  1725. MarkPropertyChanged(AIndex);
  1726. end;
  1727. //2.6.4. bug workaround
  1728. {$IFDEF VER2_6}
  1729. Procedure TResourceUpdateTypewarningsItem.SetArrayLength(Const AName : String; ALength : Longint);
  1730. begin
  1731. Case AName of
  1732. 'data' : SetLength(Fdata,ALength);
  1733. else
  1734. Inherited SetArrayLength(AName,ALength);
  1735. end;
  1736. end;
  1737. {$ENDIF VER2_6}
  1738. { --------------------------------------------------------------------
  1739. TResourceUpdate
  1740. --------------------------------------------------------------------}
  1741. Procedure TResourceUpdate.Seterror(AIndex : Integer; const AValue : TResourceUpdateTypeerror);
  1742. begin
  1743. If (Ferror=AValue) then exit;
  1744. Ferror:=AValue;
  1745. MarkPropertyChanged(AIndex);
  1746. end;
  1747. Procedure TResourceUpdate.SetfinalProperties(AIndex : Integer; const AValue : String);
  1748. begin
  1749. If (FfinalProperties=AValue) then exit;
  1750. FfinalProperties:=AValue;
  1751. MarkPropertyChanged(AIndex);
  1752. end;
  1753. Procedure TResourceUpdate.Setintent(AIndex : Integer; const AValue : String);
  1754. begin
  1755. If (Fintent=AValue) then exit;
  1756. Fintent:=AValue;
  1757. MarkPropertyChanged(AIndex);
  1758. end;
  1759. Procedure TResourceUpdate.Setmanifest(AIndex : Integer; const AValue : String);
  1760. begin
  1761. If (Fmanifest=AValue) then exit;
  1762. Fmanifest:=AValue;
  1763. MarkPropertyChanged(AIndex);
  1764. end;
  1765. Procedure TResourceUpdate.Setproperties(AIndex : Integer; const AValue : String);
  1766. begin
  1767. If (Fproperties=AValue) then exit;
  1768. Fproperties:=AValue;
  1769. MarkPropertyChanged(AIndex);
  1770. end;
  1771. Procedure TResourceUpdate.Setstate(AIndex : Integer; const AValue : String);
  1772. begin
  1773. If (Fstate=AValue) then exit;
  1774. Fstate:=AValue;
  1775. MarkPropertyChanged(AIndex);
  1776. end;
  1777. Procedure TResourceUpdate.Setwarnings(AIndex : Integer; const AValue : TResourceUpdateTypewarningsArray);
  1778. begin
  1779. If (Fwarnings=AValue) then exit;
  1780. Fwarnings:=AValue;
  1781. MarkPropertyChanged(AIndex);
  1782. end;
  1783. //2.6.4. bug workaround
  1784. {$IFDEF VER2_6}
  1785. Procedure TResourceUpdate.SetArrayLength(Const AName : String; ALength : Longint);
  1786. begin
  1787. Case AName of
  1788. 'warnings' : SetLength(Fwarnings,ALength);
  1789. else
  1790. Inherited SetArrayLength(AName,ALength);
  1791. end;
  1792. end;
  1793. {$ENDIF VER2_6}
  1794. { --------------------------------------------------------------------
  1795. TResourcesListResponse
  1796. --------------------------------------------------------------------}
  1797. Procedure TResourcesListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1798. begin
  1799. If (FnextPageToken=AValue) then exit;
  1800. FnextPageToken:=AValue;
  1801. MarkPropertyChanged(AIndex);
  1802. end;
  1803. Procedure TResourcesListResponse.Setresources(AIndex : Integer; const AValue : TResourcesListResponseTyperesourcesArray);
  1804. begin
  1805. If (Fresources=AValue) then exit;
  1806. Fresources:=AValue;
  1807. MarkPropertyChanged(AIndex);
  1808. end;
  1809. //2.6.4. bug workaround
  1810. {$IFDEF VER2_6}
  1811. Procedure TResourcesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1812. begin
  1813. Case AName of
  1814. 'resources' : SetLength(Fresources,ALength);
  1815. else
  1816. Inherited SetArrayLength(AName,ALength);
  1817. end;
  1818. end;
  1819. {$ENDIF VER2_6}
  1820. { --------------------------------------------------------------------
  1821. TTargetConfiguration
  1822. --------------------------------------------------------------------}
  1823. Procedure TTargetConfiguration.Setconfig(AIndex : Integer; const AValue : TConfigFile);
  1824. begin
  1825. If (Fconfig=AValue) then exit;
  1826. Fconfig:=AValue;
  1827. MarkPropertyChanged(AIndex);
  1828. end;
  1829. Procedure TTargetConfiguration.Setimports(AIndex : Integer; const AValue : TTargetConfigurationTypeimportsArray);
  1830. begin
  1831. If (Fimports=AValue) then exit;
  1832. Fimports:=AValue;
  1833. MarkPropertyChanged(AIndex);
  1834. end;
  1835. //2.6.4. bug workaround
  1836. {$IFDEF VER2_6}
  1837. Procedure TTargetConfiguration.SetArrayLength(Const AName : String; ALength : Longint);
  1838. begin
  1839. Case AName of
  1840. 'imports' : SetLength(Fimports,ALength);
  1841. else
  1842. Inherited SetArrayLength(AName,ALength);
  1843. end;
  1844. end;
  1845. {$ENDIF VER2_6}
  1846. { --------------------------------------------------------------------
  1847. TType
  1848. --------------------------------------------------------------------}
  1849. Procedure TType.Setid(AIndex : Integer; const AValue : String);
  1850. begin
  1851. If (Fid=AValue) then exit;
  1852. Fid:=AValue;
  1853. MarkPropertyChanged(AIndex);
  1854. end;
  1855. Procedure TType.SetinsertTime(AIndex : Integer; const AValue : String);
  1856. begin
  1857. If (FinsertTime=AValue) then exit;
  1858. FinsertTime:=AValue;
  1859. MarkPropertyChanged(AIndex);
  1860. end;
  1861. Procedure TType.Setname(AIndex : Integer; const AValue : String);
  1862. begin
  1863. If (Fname=AValue) then exit;
  1864. Fname:=AValue;
  1865. MarkPropertyChanged(AIndex);
  1866. end;
  1867. Procedure TType.SetselfLink(AIndex : Integer; const AValue : String);
  1868. begin
  1869. If (FselfLink=AValue) then exit;
  1870. FselfLink:=AValue;
  1871. MarkPropertyChanged(AIndex);
  1872. end;
  1873. { --------------------------------------------------------------------
  1874. TTypesListResponse
  1875. --------------------------------------------------------------------}
  1876. Procedure TTypesListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1877. begin
  1878. If (FnextPageToken=AValue) then exit;
  1879. FnextPageToken:=AValue;
  1880. MarkPropertyChanged(AIndex);
  1881. end;
  1882. Procedure TTypesListResponse.Settypes(AIndex : Integer; const AValue : TTypesListResponseTypetypesArray);
  1883. begin
  1884. If (Ftypes=AValue) then exit;
  1885. Ftypes:=AValue;
  1886. MarkPropertyChanged(AIndex);
  1887. end;
  1888. //2.6.4. bug workaround
  1889. {$IFDEF VER2_6}
  1890. Procedure TTypesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1891. begin
  1892. Case AName of
  1893. 'types' : SetLength(Ftypes,ALength);
  1894. else
  1895. Inherited SetArrayLength(AName,ALength);
  1896. end;
  1897. end;
  1898. {$ENDIF VER2_6}
  1899. { --------------------------------------------------------------------
  1900. TDeploymentsResource
  1901. --------------------------------------------------------------------}
  1902. Class Function TDeploymentsResource.ResourceName : String;
  1903. begin
  1904. Result:='deployments';
  1905. end;
  1906. Class Function TDeploymentsResource.DefaultAPI : TGoogleAPIClass;
  1907. begin
  1908. Result:=TdeploymentmanagerAPI;
  1909. end;
  1910. Function TDeploymentsResource.CancelPreview(deployment: string; project: string; aDeploymentsCancelPreviewRequest : TDeploymentsCancelPreviewRequest) : TOperation;
  1911. Const
  1912. _HTTPMethod = 'POST';
  1913. _Path = '{project}/global/deployments/{deployment}/cancelPreview';
  1914. _Methodid = 'deploymentmanager.deployments.cancelPreview';
  1915. Var
  1916. _P : String;
  1917. begin
  1918. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
  1919. Result:=ServiceCall(_HTTPMethod,_P,'',aDeploymentsCancelPreviewRequest,TOperation) as TOperation;
  1920. end;
  1921. Function TDeploymentsResource.Delete(deployment: string; project: string) : TOperation;
  1922. Const
  1923. _HTTPMethod = 'DELETE';
  1924. _Path = '{project}/global/deployments/{deployment}';
  1925. _Methodid = 'deploymentmanager.deployments.delete';
  1926. Var
  1927. _P : String;
  1928. begin
  1929. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
  1930. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOperation) as TOperation;
  1931. end;
  1932. Function TDeploymentsResource.Get(deployment: string; project: string) : TDeployment;
  1933. Const
  1934. _HTTPMethod = 'GET';
  1935. _Path = '{project}/global/deployments/{deployment}';
  1936. _Methodid = 'deploymentmanager.deployments.get';
  1937. Var
  1938. _P : String;
  1939. begin
  1940. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
  1941. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TDeployment) as TDeployment;
  1942. end;
  1943. Function TDeploymentsResource.Insert(project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
  1944. Const
  1945. _HTTPMethod = 'POST';
  1946. _Path = '{project}/global/deployments';
  1947. _Methodid = 'deploymentmanager.deployments.insert';
  1948. Var
  1949. _P : String;
  1950. begin
  1951. _P:=SubstitutePath(_Path,['project',project]);
  1952. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDeployment,TOperation) as TOperation;
  1953. end;
  1954. Function TDeploymentsResource.Insert(project: string; aDeployment : TDeployment; AQuery : TDeploymentsinsertOptions) : TOperation;
  1955. Var
  1956. _Q : String;
  1957. begin
  1958. _Q:='';
  1959. AddToQuery(_Q,'preview',AQuery.preview);
  1960. Result:=Insert(project,aDeployment,_Q);
  1961. end;
  1962. Function TDeploymentsResource.List(project: string; AQuery : string = '') : TDeploymentsListResponse;
  1963. Const
  1964. _HTTPMethod = 'GET';
  1965. _Path = '{project}/global/deployments';
  1966. _Methodid = 'deploymentmanager.deployments.list';
  1967. Var
  1968. _P : String;
  1969. begin
  1970. _P:=SubstitutePath(_Path,['project',project]);
  1971. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TDeploymentsListResponse) as TDeploymentsListResponse;
  1972. end;
  1973. Function TDeploymentsResource.List(project: string; AQuery : TDeploymentslistOptions) : TDeploymentsListResponse;
  1974. Var
  1975. _Q : String;
  1976. begin
  1977. _Q:='';
  1978. AddToQuery(_Q,'filter',AQuery.filter);
  1979. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  1980. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  1981. Result:=List(project,_Q);
  1982. end;
  1983. Function TDeploymentsResource.Patch(deployment: string; project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
  1984. Const
  1985. _HTTPMethod = 'PATCH';
  1986. _Path = '{project}/global/deployments/{deployment}';
  1987. _Methodid = 'deploymentmanager.deployments.patch';
  1988. Var
  1989. _P : String;
  1990. begin
  1991. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
  1992. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDeployment,TOperation) as TOperation;
  1993. end;
  1994. Function TDeploymentsResource.Patch(deployment: string; project: string; aDeployment : TDeployment; AQuery : TDeploymentspatchOptions) : TOperation;
  1995. Var
  1996. _Q : String;
  1997. begin
  1998. _Q:='';
  1999. AddToQuery(_Q,'createPolicy',AQuery.createPolicy);
  2000. AddToQuery(_Q,'deletePolicy',AQuery.deletePolicy);
  2001. AddToQuery(_Q,'preview',AQuery.preview);
  2002. Result:=Patch(deployment,project,aDeployment,_Q);
  2003. end;
  2004. Function TDeploymentsResource.Stop(deployment: string; project: string; aDeploymentsStopRequest : TDeploymentsStopRequest) : TOperation;
  2005. Const
  2006. _HTTPMethod = 'POST';
  2007. _Path = '{project}/global/deployments/{deployment}/stop';
  2008. _Methodid = 'deploymentmanager.deployments.stop';
  2009. Var
  2010. _P : String;
  2011. begin
  2012. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
  2013. Result:=ServiceCall(_HTTPMethod,_P,'',aDeploymentsStopRequest,TOperation) as TOperation;
  2014. end;
  2015. Function TDeploymentsResource.Update(deployment: string; project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
  2016. Const
  2017. _HTTPMethod = 'PUT';
  2018. _Path = '{project}/global/deployments/{deployment}';
  2019. _Methodid = 'deploymentmanager.deployments.update';
  2020. Var
  2021. _P : String;
  2022. begin
  2023. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
  2024. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDeployment,TOperation) as TOperation;
  2025. end;
  2026. Function TDeploymentsResource.Update(deployment: string; project: string; aDeployment : TDeployment; AQuery : TDeploymentsupdateOptions) : TOperation;
  2027. Var
  2028. _Q : String;
  2029. begin
  2030. _Q:='';
  2031. AddToQuery(_Q,'createPolicy',AQuery.createPolicy);
  2032. AddToQuery(_Q,'deletePolicy',AQuery.deletePolicy);
  2033. AddToQuery(_Q,'preview',AQuery.preview);
  2034. Result:=Update(deployment,project,aDeployment,_Q);
  2035. end;
  2036. { --------------------------------------------------------------------
  2037. TManifestsResource
  2038. --------------------------------------------------------------------}
  2039. Class Function TManifestsResource.ResourceName : String;
  2040. begin
  2041. Result:='manifests';
  2042. end;
  2043. Class Function TManifestsResource.DefaultAPI : TGoogleAPIClass;
  2044. begin
  2045. Result:=TdeploymentmanagerAPI;
  2046. end;
  2047. Function TManifestsResource.Get(deployment: string; manifest: string; project: string) : TManifest;
  2048. Const
  2049. _HTTPMethod = 'GET';
  2050. _Path = '{project}/global/deployments/{deployment}/manifests/{manifest}';
  2051. _Methodid = 'deploymentmanager.manifests.get';
  2052. Var
  2053. _P : String;
  2054. begin
  2055. _P:=SubstitutePath(_Path,['deployment',deployment,'manifest',manifest,'project',project]);
  2056. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TManifest) as TManifest;
  2057. end;
  2058. Function TManifestsResource.List(deployment: string; project: string; AQuery : string = '') : TManifestsListResponse;
  2059. Const
  2060. _HTTPMethod = 'GET';
  2061. _Path = '{project}/global/deployments/{deployment}/manifests';
  2062. _Methodid = 'deploymentmanager.manifests.list';
  2063. Var
  2064. _P : String;
  2065. begin
  2066. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
  2067. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TManifestsListResponse) as TManifestsListResponse;
  2068. end;
  2069. Function TManifestsResource.List(deployment: string; project: string; AQuery : TManifestslistOptions) : TManifestsListResponse;
  2070. Var
  2071. _Q : String;
  2072. begin
  2073. _Q:='';
  2074. AddToQuery(_Q,'filter',AQuery.filter);
  2075. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  2076. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2077. Result:=List(deployment,project,_Q);
  2078. end;
  2079. { --------------------------------------------------------------------
  2080. TOperationsResource
  2081. --------------------------------------------------------------------}
  2082. Class Function TOperationsResource.ResourceName : String;
  2083. begin
  2084. Result:='operations';
  2085. end;
  2086. Class Function TOperationsResource.DefaultAPI : TGoogleAPIClass;
  2087. begin
  2088. Result:=TdeploymentmanagerAPI;
  2089. end;
  2090. Function TOperationsResource.Get(operation: string; project: string) : TOperation;
  2091. Const
  2092. _HTTPMethod = 'GET';
  2093. _Path = '{project}/global/operations/{operation}';
  2094. _Methodid = 'deploymentmanager.operations.get';
  2095. Var
  2096. _P : String;
  2097. begin
  2098. _P:=SubstitutePath(_Path,['operation',operation,'project',project]);
  2099. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOperation) as TOperation;
  2100. end;
  2101. Function TOperationsResource.List(project: string; AQuery : string = '') : TOperationsListResponse;
  2102. Const
  2103. _HTTPMethod = 'GET';
  2104. _Path = '{project}/global/operations';
  2105. _Methodid = 'deploymentmanager.operations.list';
  2106. Var
  2107. _P : String;
  2108. begin
  2109. _P:=SubstitutePath(_Path,['project',project]);
  2110. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TOperationsListResponse) as TOperationsListResponse;
  2111. end;
  2112. Function TOperationsResource.List(project: string; AQuery : TOperationslistOptions) : TOperationsListResponse;
  2113. Var
  2114. _Q : String;
  2115. begin
  2116. _Q:='';
  2117. AddToQuery(_Q,'filter',AQuery.filter);
  2118. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  2119. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2120. Result:=List(project,_Q);
  2121. end;
  2122. { --------------------------------------------------------------------
  2123. TResourcesResource
  2124. --------------------------------------------------------------------}
  2125. Class Function TResourcesResource.ResourceName : String;
  2126. begin
  2127. Result:='resources';
  2128. end;
  2129. Class Function TResourcesResource.DefaultAPI : TGoogleAPIClass;
  2130. begin
  2131. Result:=TdeploymentmanagerAPI;
  2132. end;
  2133. Function TResourcesResource.Get(deployment: string; project: string; resource: string) : TResource;
  2134. Const
  2135. _HTTPMethod = 'GET';
  2136. _Path = '{project}/global/deployments/{deployment}/resources/{resource}';
  2137. _Methodid = 'deploymentmanager.resources.get';
  2138. Var
  2139. _P : String;
  2140. begin
  2141. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project,'resource',resource]);
  2142. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TResource) as TResource;
  2143. end;
  2144. Function TResourcesResource.List(deployment: string; project: string; AQuery : string = '') : TResourcesListResponse;
  2145. Const
  2146. _HTTPMethod = 'GET';
  2147. _Path = '{project}/global/deployments/{deployment}/resources';
  2148. _Methodid = 'deploymentmanager.resources.list';
  2149. Var
  2150. _P : String;
  2151. begin
  2152. _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
  2153. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TResourcesListResponse) as TResourcesListResponse;
  2154. end;
  2155. Function TResourcesResource.List(deployment: string; project: string; AQuery : TResourceslistOptions) : TResourcesListResponse;
  2156. Var
  2157. _Q : String;
  2158. begin
  2159. _Q:='';
  2160. AddToQuery(_Q,'filter',AQuery.filter);
  2161. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  2162. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2163. Result:=List(deployment,project,_Q);
  2164. end;
  2165. { --------------------------------------------------------------------
  2166. TTypesResource
  2167. --------------------------------------------------------------------}
  2168. Class Function TTypesResource.ResourceName : String;
  2169. begin
  2170. Result:='types';
  2171. end;
  2172. Class Function TTypesResource.DefaultAPI : TGoogleAPIClass;
  2173. begin
  2174. Result:=TdeploymentmanagerAPI;
  2175. end;
  2176. Function TTypesResource.List(project: string; AQuery : string = '') : TTypesListResponse;
  2177. Const
  2178. _HTTPMethod = 'GET';
  2179. _Path = '{project}/global/types';
  2180. _Methodid = 'deploymentmanager.types.list';
  2181. Var
  2182. _P : String;
  2183. begin
  2184. _P:=SubstitutePath(_Path,['project',project]);
  2185. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTypesListResponse) as TTypesListResponse;
  2186. end;
  2187. Function TTypesResource.List(project: string; AQuery : TTypeslistOptions) : TTypesListResponse;
  2188. Var
  2189. _Q : String;
  2190. begin
  2191. _Q:='';
  2192. AddToQuery(_Q,'filter',AQuery.filter);
  2193. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  2194. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2195. Result:=List(project,_Q);
  2196. end;
  2197. { --------------------------------------------------------------------
  2198. TDeploymentmanagerAPI
  2199. --------------------------------------------------------------------}
  2200. Class Function TDeploymentmanagerAPI.APIName : String;
  2201. begin
  2202. Result:='deploymentmanager';
  2203. end;
  2204. Class Function TDeploymentmanagerAPI.APIVersion : String;
  2205. begin
  2206. Result:='v2';
  2207. end;
  2208. Class Function TDeploymentmanagerAPI.APIRevision : String;
  2209. begin
  2210. Result:='20160426';
  2211. end;
  2212. Class Function TDeploymentmanagerAPI.APIID : String;
  2213. begin
  2214. Result:='deploymentmanager:v2';
  2215. end;
  2216. Class Function TDeploymentmanagerAPI.APITitle : String;
  2217. begin
  2218. Result:='Google Cloud Deployment Manager API';
  2219. end;
  2220. Class Function TDeploymentmanagerAPI.APIDescription : String;
  2221. begin
  2222. Result:='Declares, configures, and deploys complex solutions on Google Cloud Platform.';
  2223. end;
  2224. Class Function TDeploymentmanagerAPI.APIOwnerDomain : String;
  2225. begin
  2226. Result:='google.com';
  2227. end;
  2228. Class Function TDeploymentmanagerAPI.APIOwnerName : String;
  2229. begin
  2230. Result:='Google';
  2231. end;
  2232. Class Function TDeploymentmanagerAPI.APIIcon16 : String;
  2233. begin
  2234. Result:='http://www.google.com/images/icons/product/search-16.gif';
  2235. end;
  2236. Class Function TDeploymentmanagerAPI.APIIcon32 : String;
  2237. begin
  2238. Result:='http://www.google.com/images/icons/product/search-32.gif';
  2239. end;
  2240. Class Function TDeploymentmanagerAPI.APIdocumentationLink : String;
  2241. begin
  2242. Result:='https://cloud.google.com/deployment-manager/';
  2243. end;
  2244. Class Function TDeploymentmanagerAPI.APIrootUrl : string;
  2245. begin
  2246. Result:='https://www.googleapis.com/';
  2247. end;
  2248. Class Function TDeploymentmanagerAPI.APIbasePath : string;
  2249. begin
  2250. Result:='/deploymentmanager/v2/projects/';
  2251. end;
  2252. Class Function TDeploymentmanagerAPI.APIbaseURL : String;
  2253. begin
  2254. Result:='https://www.googleapis.com/deploymentmanager/v2/projects/';
  2255. end;
  2256. Class Function TDeploymentmanagerAPI.APIProtocol : string;
  2257. begin
  2258. Result:='rest';
  2259. end;
  2260. Class Function TDeploymentmanagerAPI.APIservicePath : string;
  2261. begin
  2262. Result:='deploymentmanager/v2/projects/';
  2263. end;
  2264. Class Function TDeploymentmanagerAPI.APIbatchPath : String;
  2265. begin
  2266. Result:='batch';
  2267. end;
  2268. Class Function TDeploymentmanagerAPI.APIAuthScopes : TScopeInfoArray;
  2269. begin
  2270. SetLength(Result,4);
  2271. Result[0].Name:='https://www.googleapis.com/auth/cloud-platform';
  2272. Result[0].Description:='View and manage your data across Google Cloud Platform services';
  2273. Result[1].Name:='https://www.googleapis.com/auth/cloud-platform.read-only';
  2274. Result[1].Description:='View your data across Google Cloud Platform services';
  2275. Result[2].Name:='https://www.googleapis.com/auth/ndev.cloudman';
  2276. Result[2].Description:='View and manage your Google Cloud Platform management resources and deployment status information';
  2277. Result[3].Name:='https://www.googleapis.com/auth/ndev.cloudman.readonly';
  2278. Result[3].Description:='View your Google Cloud Platform management resources and deployment status information';
  2279. end;
  2280. Class Function TDeploymentmanagerAPI.APINeedsAuth : Boolean;
  2281. begin
  2282. Result:=True;
  2283. end;
  2284. Class Procedure TDeploymentmanagerAPI.RegisterAPIResources;
  2285. begin
  2286. TConfigFile.RegisterObject;
  2287. TDeployment.RegisterObject;
  2288. TDeploymentLabelEntry.RegisterObject;
  2289. TDeploymentUpdate.RegisterObject;
  2290. TDeploymentUpdateLabelEntry.RegisterObject;
  2291. TDeploymentsCancelPreviewRequest.RegisterObject;
  2292. TDeploymentsListResponse.RegisterObject;
  2293. TDeploymentsStopRequest.RegisterObject;
  2294. TImportFile.RegisterObject;
  2295. TManifest.RegisterObject;
  2296. TManifestsListResponse.RegisterObject;
  2297. TOperationTypeerrorTypeerrorsItem.RegisterObject;
  2298. TOperationTypeerror.RegisterObject;
  2299. TOperationTypewarningsItemTypedataItem.RegisterObject;
  2300. TOperationTypewarningsItem.RegisterObject;
  2301. TOperation.RegisterObject;
  2302. TOperationsListResponse.RegisterObject;
  2303. TResourceTypewarningsItemTypedataItem.RegisterObject;
  2304. TResourceTypewarningsItem.RegisterObject;
  2305. TResource.RegisterObject;
  2306. TResourceUpdateTypeerrorTypeerrorsItem.RegisterObject;
  2307. TResourceUpdateTypeerror.RegisterObject;
  2308. TResourceUpdateTypewarningsItemTypedataItem.RegisterObject;
  2309. TResourceUpdateTypewarningsItem.RegisterObject;
  2310. TResourceUpdate.RegisterObject;
  2311. TResourcesListResponse.RegisterObject;
  2312. TTargetConfiguration.RegisterObject;
  2313. TType.RegisterObject;
  2314. TTypesListResponse.RegisterObject;
  2315. end;
  2316. Function TDeploymentmanagerAPI.GetDeploymentsInstance : TDeploymentsResource;
  2317. begin
  2318. if (FDeploymentsInstance=Nil) then
  2319. FDeploymentsInstance:=CreateDeploymentsResource;
  2320. Result:=FDeploymentsInstance;
  2321. end;
  2322. Function TDeploymentmanagerAPI.CreateDeploymentsResource : TDeploymentsResource;
  2323. begin
  2324. Result:=CreateDeploymentsResource(Self);
  2325. end;
  2326. Function TDeploymentmanagerAPI.CreateDeploymentsResource(AOwner : TComponent) : TDeploymentsResource;
  2327. begin
  2328. Result:=TDeploymentsResource.Create(AOwner);
  2329. Result.API:=Self.API;
  2330. end;
  2331. Function TDeploymentmanagerAPI.GetManifestsInstance : TManifestsResource;
  2332. begin
  2333. if (FManifestsInstance=Nil) then
  2334. FManifestsInstance:=CreateManifestsResource;
  2335. Result:=FManifestsInstance;
  2336. end;
  2337. Function TDeploymentmanagerAPI.CreateManifestsResource : TManifestsResource;
  2338. begin
  2339. Result:=CreateManifestsResource(Self);
  2340. end;
  2341. Function TDeploymentmanagerAPI.CreateManifestsResource(AOwner : TComponent) : TManifestsResource;
  2342. begin
  2343. Result:=TManifestsResource.Create(AOwner);
  2344. Result.API:=Self.API;
  2345. end;
  2346. Function TDeploymentmanagerAPI.GetOperationsInstance : TOperationsResource;
  2347. begin
  2348. if (FOperationsInstance=Nil) then
  2349. FOperationsInstance:=CreateOperationsResource;
  2350. Result:=FOperationsInstance;
  2351. end;
  2352. Function TDeploymentmanagerAPI.CreateOperationsResource : TOperationsResource;
  2353. begin
  2354. Result:=CreateOperationsResource(Self);
  2355. end;
  2356. Function TDeploymentmanagerAPI.CreateOperationsResource(AOwner : TComponent) : TOperationsResource;
  2357. begin
  2358. Result:=TOperationsResource.Create(AOwner);
  2359. Result.API:=Self.API;
  2360. end;
  2361. Function TDeploymentmanagerAPI.GetResourcesInstance : TResourcesResource;
  2362. begin
  2363. if (FResourcesInstance=Nil) then
  2364. FResourcesInstance:=CreateResourcesResource;
  2365. Result:=FResourcesInstance;
  2366. end;
  2367. Function TDeploymentmanagerAPI.CreateResourcesResource : TResourcesResource;
  2368. begin
  2369. Result:=CreateResourcesResource(Self);
  2370. end;
  2371. Function TDeploymentmanagerAPI.CreateResourcesResource(AOwner : TComponent) : TResourcesResource;
  2372. begin
  2373. Result:=TResourcesResource.Create(AOwner);
  2374. Result.API:=Self.API;
  2375. end;
  2376. Function TDeploymentmanagerAPI.GetTypesInstance : TTypesResource;
  2377. begin
  2378. if (FTypesInstance=Nil) then
  2379. FTypesInstance:=CreateTypesResource;
  2380. Result:=FTypesInstance;
  2381. end;
  2382. Function TDeploymentmanagerAPI.CreateTypesResource : TTypesResource;
  2383. begin
  2384. Result:=CreateTypesResource(Self);
  2385. end;
  2386. Function TDeploymentmanagerAPI.CreateTypesResource(AOwner : TComponent) : TTypesResource;
  2387. begin
  2388. Result:=TTypesResource.Create(AOwner);
  2389. Result.API:=Self.API;
  2390. end;
  2391. initialization
  2392. TDeploymentmanagerAPI.RegisterAPI;
  2393. end.