googletagmanager.pp 187 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949
  1. unit googletagmanager;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAccount = Class;
  9. TAccountAccess = Class;
  10. TCondition = Class;
  11. TContainer = Class;
  12. TContainerAccess = Class;
  13. TContainerVersion = Class;
  14. TContainerVersionHeader = Class;
  15. TCreateContainerVersionRequestVersionOptions = Class;
  16. TCreateContainerVersionResponse = Class;
  17. TEnvironment = Class;
  18. TFolder = Class;
  19. TFolderEntities = Class;
  20. TListAccountUsersResponse = Class;
  21. TListAccountsResponse = Class;
  22. TListContainerVersionsResponse = Class;
  23. TListContainersResponse = Class;
  24. TListEnvironmentsResponse = Class;
  25. TListFoldersResponse = Class;
  26. TListTagsResponse = Class;
  27. TListTriggersResponse = Class;
  28. TListVariablesResponse = Class;
  29. TMacro = Class;
  30. TParameter = Class;
  31. TPublishContainerVersionResponse = Class;
  32. TRule = Class;
  33. TSetupTag = Class;
  34. TTag = Class;
  35. TTeardownTag = Class;
  36. TTrigger = Class;
  37. TUserAccess = Class;
  38. TVariable = Class;
  39. TAccountArray = Array of TAccount;
  40. TAccountAccessArray = Array of TAccountAccess;
  41. TConditionArray = Array of TCondition;
  42. TContainerArray = Array of TContainer;
  43. TContainerAccessArray = Array of TContainerAccess;
  44. TContainerVersionArray = Array of TContainerVersion;
  45. TContainerVersionHeaderArray = Array of TContainerVersionHeader;
  46. TCreateContainerVersionRequestVersionOptionsArray = Array of TCreateContainerVersionRequestVersionOptions;
  47. TCreateContainerVersionResponseArray = Array of TCreateContainerVersionResponse;
  48. TEnvironmentArray = Array of TEnvironment;
  49. TFolderArray = Array of TFolder;
  50. TFolderEntitiesArray = Array of TFolderEntities;
  51. TListAccountUsersResponseArray = Array of TListAccountUsersResponse;
  52. TListAccountsResponseArray = Array of TListAccountsResponse;
  53. TListContainerVersionsResponseArray = Array of TListContainerVersionsResponse;
  54. TListContainersResponseArray = Array of TListContainersResponse;
  55. TListEnvironmentsResponseArray = Array of TListEnvironmentsResponse;
  56. TListFoldersResponseArray = Array of TListFoldersResponse;
  57. TListTagsResponseArray = Array of TListTagsResponse;
  58. TListTriggersResponseArray = Array of TListTriggersResponse;
  59. TListVariablesResponseArray = Array of TListVariablesResponse;
  60. TMacroArray = Array of TMacro;
  61. TParameterArray = Array of TParameter;
  62. TPublishContainerVersionResponseArray = Array of TPublishContainerVersionResponse;
  63. TRuleArray = Array of TRule;
  64. TSetupTagArray = Array of TSetupTag;
  65. TTagArray = Array of TTag;
  66. TTeardownTagArray = Array of TTeardownTag;
  67. TTriggerArray = Array of TTrigger;
  68. TUserAccessArray = Array of TUserAccess;
  69. TVariableArray = Array of TVariable;
  70. //Anonymous types, using auto-generated names
  71. TConditionTypeparameterArray = Array of TParameter;
  72. TContainerVersionTypefolderArray = Array of TFolder;
  73. TContainerVersionTypemacroArray = Array of TMacro;
  74. TContainerVersionTyperuleArray = Array of TRule;
  75. TContainerVersionTypetagArray = Array of TTag;
  76. TContainerVersionTypetriggerArray = Array of TTrigger;
  77. TContainerVersionTypevariableArray = Array of TVariable;
  78. TFolderEntitiesTypetagArray = Array of TTag;
  79. TFolderEntitiesTypetriggerArray = Array of TTrigger;
  80. TFolderEntitiesTypevariableArray = Array of TVariable;
  81. TListAccountUsersResponseTypeuserAccessArray = Array of TUserAccess;
  82. TListAccountsResponseTypeaccountsArray = Array of TAccount;
  83. TListContainerVersionsResponseTypecontainerVersionArray = Array of TContainerVersion;
  84. TListContainerVersionsResponseTypecontainerVersionHeaderArray = Array of TContainerVersionHeader;
  85. TListContainersResponseTypecontainersArray = Array of TContainer;
  86. TListEnvironmentsResponseTypeenvironmentsArray = Array of TEnvironment;
  87. TListFoldersResponseTypefoldersArray = Array of TFolder;
  88. TListTagsResponseTypetagsArray = Array of TTag;
  89. TListTriggersResponseTypetriggersArray = Array of TTrigger;
  90. TListVariablesResponseTypevariablesArray = Array of TVariable;
  91. TMacroTypeparameterArray = Array of TParameter;
  92. TParameterTypelistArray = Array of TParameter;
  93. TParameterTypemapArray = Array of TParameter;
  94. TRuleTypeconditionArray = Array of TCondition;
  95. TTagTypeparameterArray = Array of TParameter;
  96. TTagTypesetupTagArray = Array of TSetupTag;
  97. TTagTypeteardownTagArray = Array of TTeardownTag;
  98. TTriggerTypeautoEventFilterArray = Array of TCondition;
  99. TTriggerTypecustomEventFilterArray = Array of TCondition;
  100. TTriggerTypefilterArray = Array of TCondition;
  101. TUserAccessTypecontainerAccessArray = Array of TContainerAccess;
  102. TVariableTypeparameterArray = Array of TParameter;
  103. { --------------------------------------------------------------------
  104. TAccount
  105. --------------------------------------------------------------------}
  106. TAccount = Class(TGoogleBaseObject)
  107. Private
  108. FaccountId : String;
  109. Ffingerprint : String;
  110. Fname : String;
  111. FshareData : boolean;
  112. Protected
  113. //Property setters
  114. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  115. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  116. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  117. Procedure SetshareData(AIndex : Integer; const AValue : boolean); virtual;
  118. Public
  119. Published
  120. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  121. Property fingerprint : String Index 8 Read Ffingerprint Write Setfingerprint;
  122. Property name : String Index 16 Read Fname Write Setname;
  123. Property shareData : boolean Index 24 Read FshareData Write SetshareData;
  124. end;
  125. TAccountClass = Class of TAccount;
  126. { --------------------------------------------------------------------
  127. TAccountAccess
  128. --------------------------------------------------------------------}
  129. TAccountAccess = Class(TGoogleBaseObject)
  130. Private
  131. Fpermission : TStringArray;
  132. Protected
  133. //Property setters
  134. Procedure Setpermission(AIndex : Integer; const AValue : TStringArray); virtual;
  135. //2.6.4. bug workaround
  136. {$IFDEF VER2_6}
  137. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  138. {$ENDIF VER2_6}
  139. Public
  140. Published
  141. Property permission : TStringArray Index 0 Read Fpermission Write Setpermission;
  142. end;
  143. TAccountAccessClass = Class of TAccountAccess;
  144. { --------------------------------------------------------------------
  145. TCondition
  146. --------------------------------------------------------------------}
  147. TCondition = Class(TGoogleBaseObject)
  148. Private
  149. Fparameter : TConditionTypeparameterArray;
  150. F_type : String;
  151. Protected
  152. Class Function ExportPropertyName(Const AName : String) : string; override;
  153. //Property setters
  154. Procedure Setparameter(AIndex : Integer; const AValue : TConditionTypeparameterArray); virtual;
  155. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  156. //2.6.4. bug workaround
  157. {$IFDEF VER2_6}
  158. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  159. {$ENDIF VER2_6}
  160. Public
  161. Published
  162. Property parameter : TConditionTypeparameterArray Index 0 Read Fparameter Write Setparameter;
  163. Property _type : String Index 8 Read F_type Write Set_type;
  164. end;
  165. TConditionClass = Class of TCondition;
  166. { --------------------------------------------------------------------
  167. TContainer
  168. --------------------------------------------------------------------}
  169. TContainer = Class(TGoogleBaseObject)
  170. Private
  171. FaccountId : String;
  172. FcontainerId : String;
  173. FdomainName : TStringArray;
  174. FenabledBuiltInVariable : TStringArray;
  175. Ffingerprint : String;
  176. Fname : String;
  177. Fnotes : String;
  178. FpublicId : String;
  179. FtimeZoneCountryId : String;
  180. FtimeZoneId : String;
  181. FusageContext : TStringArray;
  182. Protected
  183. //Property setters
  184. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  185. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  186. Procedure SetdomainName(AIndex : Integer; const AValue : TStringArray); virtual;
  187. Procedure SetenabledBuiltInVariable(AIndex : Integer; const AValue : TStringArray); virtual;
  188. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  189. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  190. Procedure Setnotes(AIndex : Integer; const AValue : String); virtual;
  191. Procedure SetpublicId(AIndex : Integer; const AValue : String); virtual;
  192. Procedure SettimeZoneCountryId(AIndex : Integer; const AValue : String); virtual;
  193. Procedure SettimeZoneId(AIndex : Integer; const AValue : String); virtual;
  194. Procedure SetusageContext(AIndex : Integer; const AValue : TStringArray); virtual;
  195. //2.6.4. bug workaround
  196. {$IFDEF VER2_6}
  197. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  198. {$ENDIF VER2_6}
  199. Public
  200. Published
  201. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  202. Property containerId : String Index 8 Read FcontainerId Write SetcontainerId;
  203. Property domainName : TStringArray Index 16 Read FdomainName Write SetdomainName;
  204. Property enabledBuiltInVariable : TStringArray Index 24 Read FenabledBuiltInVariable Write SetenabledBuiltInVariable;
  205. Property fingerprint : String Index 32 Read Ffingerprint Write Setfingerprint;
  206. Property name : String Index 40 Read Fname Write Setname;
  207. Property notes : String Index 48 Read Fnotes Write Setnotes;
  208. Property publicId : String Index 56 Read FpublicId Write SetpublicId;
  209. Property timeZoneCountryId : String Index 64 Read FtimeZoneCountryId Write SettimeZoneCountryId;
  210. Property timeZoneId : String Index 72 Read FtimeZoneId Write SettimeZoneId;
  211. Property usageContext : TStringArray Index 80 Read FusageContext Write SetusageContext;
  212. end;
  213. TContainerClass = Class of TContainer;
  214. { --------------------------------------------------------------------
  215. TContainerAccess
  216. --------------------------------------------------------------------}
  217. TContainerAccess = Class(TGoogleBaseObject)
  218. Private
  219. FcontainerId : String;
  220. Fpermission : TStringArray;
  221. Protected
  222. //Property setters
  223. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  224. Procedure Setpermission(AIndex : Integer; const AValue : TStringArray); virtual;
  225. //2.6.4. bug workaround
  226. {$IFDEF VER2_6}
  227. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  228. {$ENDIF VER2_6}
  229. Public
  230. Published
  231. Property containerId : String Index 0 Read FcontainerId Write SetcontainerId;
  232. Property permission : TStringArray Index 8 Read Fpermission Write Setpermission;
  233. end;
  234. TContainerAccessClass = Class of TContainerAccess;
  235. { --------------------------------------------------------------------
  236. TContainerVersion
  237. --------------------------------------------------------------------}
  238. TContainerVersion = Class(TGoogleBaseObject)
  239. Private
  240. FaccountId : String;
  241. Fcontainer : TContainer;
  242. FcontainerId : String;
  243. FcontainerVersionId : String;
  244. Fdeleted : boolean;
  245. Ffingerprint : String;
  246. Ffolder : TContainerVersionTypefolderArray;
  247. Fmacro : TContainerVersionTypemacroArray;
  248. Fname : String;
  249. Fnotes : String;
  250. Frule : TContainerVersionTyperuleArray;
  251. Ftag : TContainerVersionTypetagArray;
  252. Ftrigger : TContainerVersionTypetriggerArray;
  253. Fvariable : TContainerVersionTypevariableArray;
  254. Protected
  255. //Property setters
  256. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  257. Procedure Setcontainer(AIndex : Integer; const AValue : TContainer); virtual;
  258. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  259. Procedure SetcontainerVersionId(AIndex : Integer; const AValue : String); virtual;
  260. Procedure Setdeleted(AIndex : Integer; const AValue : boolean); virtual;
  261. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  262. Procedure Setfolder(AIndex : Integer; const AValue : TContainerVersionTypefolderArray); virtual;
  263. Procedure Setmacro(AIndex : Integer; const AValue : TContainerVersionTypemacroArray); virtual;
  264. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  265. Procedure Setnotes(AIndex : Integer; const AValue : String); virtual;
  266. Procedure Setrule(AIndex : Integer; const AValue : TContainerVersionTyperuleArray); virtual;
  267. Procedure Settag(AIndex : Integer; const AValue : TContainerVersionTypetagArray); virtual;
  268. Procedure Settrigger(AIndex : Integer; const AValue : TContainerVersionTypetriggerArray); virtual;
  269. Procedure Setvariable(AIndex : Integer; const AValue : TContainerVersionTypevariableArray); virtual;
  270. //2.6.4. bug workaround
  271. {$IFDEF VER2_6}
  272. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  273. {$ENDIF VER2_6}
  274. Public
  275. Published
  276. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  277. Property container : TContainer Index 8 Read Fcontainer Write Setcontainer;
  278. Property containerId : String Index 16 Read FcontainerId Write SetcontainerId;
  279. Property containerVersionId : String Index 24 Read FcontainerVersionId Write SetcontainerVersionId;
  280. Property deleted : boolean Index 32 Read Fdeleted Write Setdeleted;
  281. Property fingerprint : String Index 40 Read Ffingerprint Write Setfingerprint;
  282. Property folder : TContainerVersionTypefolderArray Index 48 Read Ffolder Write Setfolder;
  283. Property macro : TContainerVersionTypemacroArray Index 56 Read Fmacro Write Setmacro;
  284. Property name : String Index 64 Read Fname Write Setname;
  285. Property notes : String Index 72 Read Fnotes Write Setnotes;
  286. Property rule : TContainerVersionTyperuleArray Index 80 Read Frule Write Setrule;
  287. Property tag : TContainerVersionTypetagArray Index 88 Read Ftag Write Settag;
  288. Property trigger : TContainerVersionTypetriggerArray Index 96 Read Ftrigger Write Settrigger;
  289. Property variable : TContainerVersionTypevariableArray Index 104 Read Fvariable Write Setvariable;
  290. end;
  291. TContainerVersionClass = Class of TContainerVersion;
  292. { --------------------------------------------------------------------
  293. TContainerVersionHeader
  294. --------------------------------------------------------------------}
  295. TContainerVersionHeader = Class(TGoogleBaseObject)
  296. Private
  297. FaccountId : String;
  298. FcontainerId : String;
  299. FcontainerVersionId : String;
  300. Fdeleted : boolean;
  301. Fname : String;
  302. FnumMacros : String;
  303. FnumRules : String;
  304. FnumTags : String;
  305. FnumTriggers : String;
  306. FnumVariables : String;
  307. Protected
  308. //Property setters
  309. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  310. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  311. Procedure SetcontainerVersionId(AIndex : Integer; const AValue : String); virtual;
  312. Procedure Setdeleted(AIndex : Integer; const AValue : boolean); virtual;
  313. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  314. Procedure SetnumMacros(AIndex : Integer; const AValue : String); virtual;
  315. Procedure SetnumRules(AIndex : Integer; const AValue : String); virtual;
  316. Procedure SetnumTags(AIndex : Integer; const AValue : String); virtual;
  317. Procedure SetnumTriggers(AIndex : Integer; const AValue : String); virtual;
  318. Procedure SetnumVariables(AIndex : Integer; const AValue : String); virtual;
  319. Public
  320. Published
  321. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  322. Property containerId : String Index 8 Read FcontainerId Write SetcontainerId;
  323. Property containerVersionId : String Index 16 Read FcontainerVersionId Write SetcontainerVersionId;
  324. Property deleted : boolean Index 24 Read Fdeleted Write Setdeleted;
  325. Property name : String Index 32 Read Fname Write Setname;
  326. Property numMacros : String Index 40 Read FnumMacros Write SetnumMacros;
  327. Property numRules : String Index 48 Read FnumRules Write SetnumRules;
  328. Property numTags : String Index 56 Read FnumTags Write SetnumTags;
  329. Property numTriggers : String Index 64 Read FnumTriggers Write SetnumTriggers;
  330. Property numVariables : String Index 72 Read FnumVariables Write SetnumVariables;
  331. end;
  332. TContainerVersionHeaderClass = Class of TContainerVersionHeader;
  333. { --------------------------------------------------------------------
  334. TCreateContainerVersionRequestVersionOptions
  335. --------------------------------------------------------------------}
  336. TCreateContainerVersionRequestVersionOptions = Class(TGoogleBaseObject)
  337. Private
  338. Fname : String;
  339. Fnotes : String;
  340. FquickPreview : boolean;
  341. Protected
  342. //Property setters
  343. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  344. Procedure Setnotes(AIndex : Integer; const AValue : String); virtual;
  345. Procedure SetquickPreview(AIndex : Integer; const AValue : boolean); virtual;
  346. Public
  347. Published
  348. Property name : String Index 0 Read Fname Write Setname;
  349. Property notes : String Index 8 Read Fnotes Write Setnotes;
  350. Property quickPreview : boolean Index 16 Read FquickPreview Write SetquickPreview;
  351. end;
  352. TCreateContainerVersionRequestVersionOptionsClass = Class of TCreateContainerVersionRequestVersionOptions;
  353. { --------------------------------------------------------------------
  354. TCreateContainerVersionResponse
  355. --------------------------------------------------------------------}
  356. TCreateContainerVersionResponse = Class(TGoogleBaseObject)
  357. Private
  358. FcompilerError : boolean;
  359. FcontainerVersion : TContainerVersion;
  360. Protected
  361. //Property setters
  362. Procedure SetcompilerError(AIndex : Integer; const AValue : boolean); virtual;
  363. Procedure SetcontainerVersion(AIndex : Integer; const AValue : TContainerVersion); virtual;
  364. Public
  365. Published
  366. Property compilerError : boolean Index 0 Read FcompilerError Write SetcompilerError;
  367. Property containerVersion : TContainerVersion Index 8 Read FcontainerVersion Write SetcontainerVersion;
  368. end;
  369. TCreateContainerVersionResponseClass = Class of TCreateContainerVersionResponse;
  370. { --------------------------------------------------------------------
  371. TEnvironment
  372. --------------------------------------------------------------------}
  373. TEnvironment = Class(TGoogleBaseObject)
  374. Private
  375. FaccountId : String;
  376. FauthorizationCode : String;
  377. FauthorizationTimestampMs : String;
  378. FcontainerId : String;
  379. FcontainerVersionId : String;
  380. Fdescription : String;
  381. FenableDebug : boolean;
  382. FenvironmentId : String;
  383. Ffingerprint : String;
  384. Fname : String;
  385. F_type : String;
  386. Furl : String;
  387. Protected
  388. Class Function ExportPropertyName(Const AName : String) : string; override;
  389. //Property setters
  390. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  391. Procedure SetauthorizationCode(AIndex : Integer; const AValue : String); virtual;
  392. Procedure SetauthorizationTimestampMs(AIndex : Integer; const AValue : String); virtual;
  393. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  394. Procedure SetcontainerVersionId(AIndex : Integer; const AValue : String); virtual;
  395. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  396. Procedure SetenableDebug(AIndex : Integer; const AValue : boolean); virtual;
  397. Procedure SetenvironmentId(AIndex : Integer; const AValue : String); virtual;
  398. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  399. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  400. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  401. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  402. Public
  403. Published
  404. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  405. Property authorizationCode : String Index 8 Read FauthorizationCode Write SetauthorizationCode;
  406. Property authorizationTimestampMs : String Index 16 Read FauthorizationTimestampMs Write SetauthorizationTimestampMs;
  407. Property containerId : String Index 24 Read FcontainerId Write SetcontainerId;
  408. Property containerVersionId : String Index 32 Read FcontainerVersionId Write SetcontainerVersionId;
  409. Property description : String Index 40 Read Fdescription Write Setdescription;
  410. Property enableDebug : boolean Index 48 Read FenableDebug Write SetenableDebug;
  411. Property environmentId : String Index 56 Read FenvironmentId Write SetenvironmentId;
  412. Property fingerprint : String Index 64 Read Ffingerprint Write Setfingerprint;
  413. Property name : String Index 72 Read Fname Write Setname;
  414. Property _type : String Index 80 Read F_type Write Set_type;
  415. Property url : String Index 88 Read Furl Write Seturl;
  416. end;
  417. TEnvironmentClass = Class of TEnvironment;
  418. { --------------------------------------------------------------------
  419. TFolder
  420. --------------------------------------------------------------------}
  421. TFolder = Class(TGoogleBaseObject)
  422. Private
  423. FaccountId : String;
  424. FcontainerId : String;
  425. Ffingerprint : String;
  426. FfolderId : String;
  427. Fname : String;
  428. Protected
  429. //Property setters
  430. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  431. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  432. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  433. Procedure SetfolderId(AIndex : Integer; const AValue : String); virtual;
  434. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  435. Public
  436. Published
  437. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  438. Property containerId : String Index 8 Read FcontainerId Write SetcontainerId;
  439. Property fingerprint : String Index 16 Read Ffingerprint Write Setfingerprint;
  440. Property folderId : String Index 24 Read FfolderId Write SetfolderId;
  441. Property name : String Index 32 Read Fname Write Setname;
  442. end;
  443. TFolderClass = Class of TFolder;
  444. { --------------------------------------------------------------------
  445. TFolderEntities
  446. --------------------------------------------------------------------}
  447. TFolderEntities = Class(TGoogleBaseObject)
  448. Private
  449. Ftag : TFolderEntitiesTypetagArray;
  450. Ftrigger : TFolderEntitiesTypetriggerArray;
  451. Fvariable : TFolderEntitiesTypevariableArray;
  452. Protected
  453. //Property setters
  454. Procedure Settag(AIndex : Integer; const AValue : TFolderEntitiesTypetagArray); virtual;
  455. Procedure Settrigger(AIndex : Integer; const AValue : TFolderEntitiesTypetriggerArray); virtual;
  456. Procedure Setvariable(AIndex : Integer; const AValue : TFolderEntitiesTypevariableArray); virtual;
  457. //2.6.4. bug workaround
  458. {$IFDEF VER2_6}
  459. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  460. {$ENDIF VER2_6}
  461. Public
  462. Published
  463. Property tag : TFolderEntitiesTypetagArray Index 0 Read Ftag Write Settag;
  464. Property trigger : TFolderEntitiesTypetriggerArray Index 8 Read Ftrigger Write Settrigger;
  465. Property variable : TFolderEntitiesTypevariableArray Index 16 Read Fvariable Write Setvariable;
  466. end;
  467. TFolderEntitiesClass = Class of TFolderEntities;
  468. { --------------------------------------------------------------------
  469. TListAccountUsersResponse
  470. --------------------------------------------------------------------}
  471. TListAccountUsersResponse = Class(TGoogleBaseObject)
  472. Private
  473. FuserAccess : TListAccountUsersResponseTypeuserAccessArray;
  474. Protected
  475. //Property setters
  476. Procedure SetuserAccess(AIndex : Integer; const AValue : TListAccountUsersResponseTypeuserAccessArray); virtual;
  477. //2.6.4. bug workaround
  478. {$IFDEF VER2_6}
  479. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  480. {$ENDIF VER2_6}
  481. Public
  482. Published
  483. Property userAccess : TListAccountUsersResponseTypeuserAccessArray Index 0 Read FuserAccess Write SetuserAccess;
  484. end;
  485. TListAccountUsersResponseClass = Class of TListAccountUsersResponse;
  486. { --------------------------------------------------------------------
  487. TListAccountsResponse
  488. --------------------------------------------------------------------}
  489. TListAccountsResponse = Class(TGoogleBaseObject)
  490. Private
  491. Faccounts : TListAccountsResponseTypeaccountsArray;
  492. Protected
  493. //Property setters
  494. Procedure Setaccounts(AIndex : Integer; const AValue : TListAccountsResponseTypeaccountsArray); virtual;
  495. //2.6.4. bug workaround
  496. {$IFDEF VER2_6}
  497. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  498. {$ENDIF VER2_6}
  499. Public
  500. Published
  501. Property accounts : TListAccountsResponseTypeaccountsArray Index 0 Read Faccounts Write Setaccounts;
  502. end;
  503. TListAccountsResponseClass = Class of TListAccountsResponse;
  504. { --------------------------------------------------------------------
  505. TListContainerVersionsResponse
  506. --------------------------------------------------------------------}
  507. TListContainerVersionsResponse = Class(TGoogleBaseObject)
  508. Private
  509. FcontainerVersion : TListContainerVersionsResponseTypecontainerVersionArray;
  510. FcontainerVersionHeader : TListContainerVersionsResponseTypecontainerVersionHeaderArray;
  511. Protected
  512. //Property setters
  513. Procedure SetcontainerVersion(AIndex : Integer; const AValue : TListContainerVersionsResponseTypecontainerVersionArray); virtual;
  514. Procedure SetcontainerVersionHeader(AIndex : Integer; const AValue : TListContainerVersionsResponseTypecontainerVersionHeaderArray); virtual;
  515. //2.6.4. bug workaround
  516. {$IFDEF VER2_6}
  517. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  518. {$ENDIF VER2_6}
  519. Public
  520. Published
  521. Property containerVersion : TListContainerVersionsResponseTypecontainerVersionArray Index 0 Read FcontainerVersion Write SetcontainerVersion;
  522. Property containerVersionHeader : TListContainerVersionsResponseTypecontainerVersionHeaderArray Index 8 Read FcontainerVersionHeader Write SetcontainerVersionHeader;
  523. end;
  524. TListContainerVersionsResponseClass = Class of TListContainerVersionsResponse;
  525. { --------------------------------------------------------------------
  526. TListContainersResponse
  527. --------------------------------------------------------------------}
  528. TListContainersResponse = Class(TGoogleBaseObject)
  529. Private
  530. Fcontainers : TListContainersResponseTypecontainersArray;
  531. Protected
  532. //Property setters
  533. Procedure Setcontainers(AIndex : Integer; const AValue : TListContainersResponseTypecontainersArray); virtual;
  534. //2.6.4. bug workaround
  535. {$IFDEF VER2_6}
  536. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  537. {$ENDIF VER2_6}
  538. Public
  539. Published
  540. Property containers : TListContainersResponseTypecontainersArray Index 0 Read Fcontainers Write Setcontainers;
  541. end;
  542. TListContainersResponseClass = Class of TListContainersResponse;
  543. { --------------------------------------------------------------------
  544. TListEnvironmentsResponse
  545. --------------------------------------------------------------------}
  546. TListEnvironmentsResponse = Class(TGoogleBaseObject)
  547. Private
  548. Fenvironments : TListEnvironmentsResponseTypeenvironmentsArray;
  549. Protected
  550. //Property setters
  551. Procedure Setenvironments(AIndex : Integer; const AValue : TListEnvironmentsResponseTypeenvironmentsArray); virtual;
  552. //2.6.4. bug workaround
  553. {$IFDEF VER2_6}
  554. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  555. {$ENDIF VER2_6}
  556. Public
  557. Published
  558. Property environments : TListEnvironmentsResponseTypeenvironmentsArray Index 0 Read Fenvironments Write Setenvironments;
  559. end;
  560. TListEnvironmentsResponseClass = Class of TListEnvironmentsResponse;
  561. { --------------------------------------------------------------------
  562. TListFoldersResponse
  563. --------------------------------------------------------------------}
  564. TListFoldersResponse = Class(TGoogleBaseObject)
  565. Private
  566. Ffolders : TListFoldersResponseTypefoldersArray;
  567. Protected
  568. //Property setters
  569. Procedure Setfolders(AIndex : Integer; const AValue : TListFoldersResponseTypefoldersArray); virtual;
  570. //2.6.4. bug workaround
  571. {$IFDEF VER2_6}
  572. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  573. {$ENDIF VER2_6}
  574. Public
  575. Published
  576. Property folders : TListFoldersResponseTypefoldersArray Index 0 Read Ffolders Write Setfolders;
  577. end;
  578. TListFoldersResponseClass = Class of TListFoldersResponse;
  579. { --------------------------------------------------------------------
  580. TListTagsResponse
  581. --------------------------------------------------------------------}
  582. TListTagsResponse = Class(TGoogleBaseObject)
  583. Private
  584. Ftags : TListTagsResponseTypetagsArray;
  585. Protected
  586. //Property setters
  587. Procedure Settags(AIndex : Integer; const AValue : TListTagsResponseTypetagsArray); virtual;
  588. //2.6.4. bug workaround
  589. {$IFDEF VER2_6}
  590. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  591. {$ENDIF VER2_6}
  592. Public
  593. Published
  594. Property tags : TListTagsResponseTypetagsArray Index 0 Read Ftags Write Settags;
  595. end;
  596. TListTagsResponseClass = Class of TListTagsResponse;
  597. { --------------------------------------------------------------------
  598. TListTriggersResponse
  599. --------------------------------------------------------------------}
  600. TListTriggersResponse = Class(TGoogleBaseObject)
  601. Private
  602. Ftriggers : TListTriggersResponseTypetriggersArray;
  603. Protected
  604. //Property setters
  605. Procedure Settriggers(AIndex : Integer; const AValue : TListTriggersResponseTypetriggersArray); virtual;
  606. //2.6.4. bug workaround
  607. {$IFDEF VER2_6}
  608. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  609. {$ENDIF VER2_6}
  610. Public
  611. Published
  612. Property triggers : TListTriggersResponseTypetriggersArray Index 0 Read Ftriggers Write Settriggers;
  613. end;
  614. TListTriggersResponseClass = Class of TListTriggersResponse;
  615. { --------------------------------------------------------------------
  616. TListVariablesResponse
  617. --------------------------------------------------------------------}
  618. TListVariablesResponse = Class(TGoogleBaseObject)
  619. Private
  620. Fvariables : TListVariablesResponseTypevariablesArray;
  621. Protected
  622. //Property setters
  623. Procedure Setvariables(AIndex : Integer; const AValue : TListVariablesResponseTypevariablesArray); virtual;
  624. //2.6.4. bug workaround
  625. {$IFDEF VER2_6}
  626. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  627. {$ENDIF VER2_6}
  628. Public
  629. Published
  630. Property variables : TListVariablesResponseTypevariablesArray Index 0 Read Fvariables Write Setvariables;
  631. end;
  632. TListVariablesResponseClass = Class of TListVariablesResponse;
  633. { --------------------------------------------------------------------
  634. TMacro
  635. --------------------------------------------------------------------}
  636. TMacro = Class(TGoogleBaseObject)
  637. Private
  638. FaccountId : String;
  639. FcontainerId : String;
  640. FdisablingRuleId : TStringArray;
  641. FenablingRuleId : TStringArray;
  642. Ffingerprint : String;
  643. FmacroId : String;
  644. Fname : String;
  645. Fnotes : String;
  646. Fparameter : TMacroTypeparameterArray;
  647. FparentFolderId : String;
  648. FscheduleEndMs : String;
  649. FscheduleStartMs : String;
  650. F_type : String;
  651. Protected
  652. Class Function ExportPropertyName(Const AName : String) : string; override;
  653. //Property setters
  654. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  655. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  656. Procedure SetdisablingRuleId(AIndex : Integer; const AValue : TStringArray); virtual;
  657. Procedure SetenablingRuleId(AIndex : Integer; const AValue : TStringArray); virtual;
  658. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  659. Procedure SetmacroId(AIndex : Integer; const AValue : String); virtual;
  660. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  661. Procedure Setnotes(AIndex : Integer; const AValue : String); virtual;
  662. Procedure Setparameter(AIndex : Integer; const AValue : TMacroTypeparameterArray); virtual;
  663. Procedure SetparentFolderId(AIndex : Integer; const AValue : String); virtual;
  664. Procedure SetscheduleEndMs(AIndex : Integer; const AValue : String); virtual;
  665. Procedure SetscheduleStartMs(AIndex : Integer; const AValue : String); virtual;
  666. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  667. //2.6.4. bug workaround
  668. {$IFDEF VER2_6}
  669. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  670. {$ENDIF VER2_6}
  671. Public
  672. Published
  673. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  674. Property containerId : String Index 8 Read FcontainerId Write SetcontainerId;
  675. Property disablingRuleId : TStringArray Index 16 Read FdisablingRuleId Write SetdisablingRuleId;
  676. Property enablingRuleId : TStringArray Index 24 Read FenablingRuleId Write SetenablingRuleId;
  677. Property fingerprint : String Index 32 Read Ffingerprint Write Setfingerprint;
  678. Property macroId : String Index 40 Read FmacroId Write SetmacroId;
  679. Property name : String Index 48 Read Fname Write Setname;
  680. Property notes : String Index 56 Read Fnotes Write Setnotes;
  681. Property parameter : TMacroTypeparameterArray Index 64 Read Fparameter Write Setparameter;
  682. Property parentFolderId : String Index 72 Read FparentFolderId Write SetparentFolderId;
  683. Property scheduleEndMs : String Index 80 Read FscheduleEndMs Write SetscheduleEndMs;
  684. Property scheduleStartMs : String Index 88 Read FscheduleStartMs Write SetscheduleStartMs;
  685. Property _type : String Index 96 Read F_type Write Set_type;
  686. end;
  687. TMacroClass = Class of TMacro;
  688. { --------------------------------------------------------------------
  689. TParameter
  690. --------------------------------------------------------------------}
  691. TParameter = Class(TGoogleBaseObject)
  692. Private
  693. Fkey : String;
  694. Flist : TParameterTypelistArray;
  695. Fmap : TParameterTypemapArray;
  696. F_type : String;
  697. Fvalue : String;
  698. Protected
  699. Class Function ExportPropertyName(Const AName : String) : string; override;
  700. //Property setters
  701. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  702. Procedure Setlist(AIndex : Integer; const AValue : TParameterTypelistArray); virtual;
  703. Procedure Setmap(AIndex : Integer; const AValue : TParameterTypemapArray); virtual;
  704. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  705. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  706. //2.6.4. bug workaround
  707. {$IFDEF VER2_6}
  708. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  709. {$ENDIF VER2_6}
  710. Public
  711. Published
  712. Property key : String Index 0 Read Fkey Write Setkey;
  713. Property list : TParameterTypelistArray Index 8 Read Flist Write Setlist;
  714. Property map : TParameterTypemapArray Index 16 Read Fmap Write Setmap;
  715. Property _type : String Index 24 Read F_type Write Set_type;
  716. Property value : String Index 32 Read Fvalue Write Setvalue;
  717. end;
  718. TParameterClass = Class of TParameter;
  719. { --------------------------------------------------------------------
  720. TPublishContainerVersionResponse
  721. --------------------------------------------------------------------}
  722. TPublishContainerVersionResponse = Class(TGoogleBaseObject)
  723. Private
  724. FcompilerError : boolean;
  725. FcontainerVersion : TContainerVersion;
  726. Protected
  727. //Property setters
  728. Procedure SetcompilerError(AIndex : Integer; const AValue : boolean); virtual;
  729. Procedure SetcontainerVersion(AIndex : Integer; const AValue : TContainerVersion); virtual;
  730. Public
  731. Published
  732. Property compilerError : boolean Index 0 Read FcompilerError Write SetcompilerError;
  733. Property containerVersion : TContainerVersion Index 8 Read FcontainerVersion Write SetcontainerVersion;
  734. end;
  735. TPublishContainerVersionResponseClass = Class of TPublishContainerVersionResponse;
  736. { --------------------------------------------------------------------
  737. TRule
  738. --------------------------------------------------------------------}
  739. TRule = Class(TGoogleBaseObject)
  740. Private
  741. FaccountId : String;
  742. Fcondition : TRuleTypeconditionArray;
  743. FcontainerId : String;
  744. Ffingerprint : String;
  745. Fname : String;
  746. Fnotes : String;
  747. FruleId : String;
  748. Protected
  749. //Property setters
  750. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  751. Procedure Setcondition(AIndex : Integer; const AValue : TRuleTypeconditionArray); virtual;
  752. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  753. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  754. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  755. Procedure Setnotes(AIndex : Integer; const AValue : String); virtual;
  756. Procedure SetruleId(AIndex : Integer; const AValue : String); virtual;
  757. //2.6.4. bug workaround
  758. {$IFDEF VER2_6}
  759. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  760. {$ENDIF VER2_6}
  761. Public
  762. Published
  763. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  764. Property condition : TRuleTypeconditionArray Index 8 Read Fcondition Write Setcondition;
  765. Property containerId : String Index 16 Read FcontainerId Write SetcontainerId;
  766. Property fingerprint : String Index 24 Read Ffingerprint Write Setfingerprint;
  767. Property name : String Index 32 Read Fname Write Setname;
  768. Property notes : String Index 40 Read Fnotes Write Setnotes;
  769. Property ruleId : String Index 48 Read FruleId Write SetruleId;
  770. end;
  771. TRuleClass = Class of TRule;
  772. { --------------------------------------------------------------------
  773. TSetupTag
  774. --------------------------------------------------------------------}
  775. TSetupTag = Class(TGoogleBaseObject)
  776. Private
  777. FstopOnSetupFailure : boolean;
  778. FtagName : String;
  779. Protected
  780. //Property setters
  781. Procedure SetstopOnSetupFailure(AIndex : Integer; const AValue : boolean); virtual;
  782. Procedure SettagName(AIndex : Integer; const AValue : String); virtual;
  783. Public
  784. Published
  785. Property stopOnSetupFailure : boolean Index 0 Read FstopOnSetupFailure Write SetstopOnSetupFailure;
  786. Property tagName : String Index 8 Read FtagName Write SettagName;
  787. end;
  788. TSetupTagClass = Class of TSetupTag;
  789. { --------------------------------------------------------------------
  790. TTag
  791. --------------------------------------------------------------------}
  792. TTag = Class(TGoogleBaseObject)
  793. Private
  794. FaccountId : String;
  795. FblockingRuleId : TStringArray;
  796. FblockingTriggerId : TStringArray;
  797. FcontainerId : String;
  798. Ffingerprint : String;
  799. FfiringRuleId : TStringArray;
  800. FfiringTriggerId : TStringArray;
  801. FliveOnly : boolean;
  802. Fname : String;
  803. Fnotes : String;
  804. Fparameter : TTagTypeparameterArray;
  805. FparentFolderId : String;
  806. Fpriority : TParameter;
  807. FscheduleEndMs : String;
  808. FscheduleStartMs : String;
  809. FsetupTag : TTagTypesetupTagArray;
  810. FtagFiringOption : String;
  811. FtagId : String;
  812. FteardownTag : TTagTypeteardownTagArray;
  813. F_type : String;
  814. Protected
  815. Class Function ExportPropertyName(Const AName : String) : string; override;
  816. //Property setters
  817. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  818. Procedure SetblockingRuleId(AIndex : Integer; const AValue : TStringArray); virtual;
  819. Procedure SetblockingTriggerId(AIndex : Integer; const AValue : TStringArray); virtual;
  820. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  821. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  822. Procedure SetfiringRuleId(AIndex : Integer; const AValue : TStringArray); virtual;
  823. Procedure SetfiringTriggerId(AIndex : Integer; const AValue : TStringArray); virtual;
  824. Procedure SetliveOnly(AIndex : Integer; const AValue : boolean); virtual;
  825. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  826. Procedure Setnotes(AIndex : Integer; const AValue : String); virtual;
  827. Procedure Setparameter(AIndex : Integer; const AValue : TTagTypeparameterArray); virtual;
  828. Procedure SetparentFolderId(AIndex : Integer; const AValue : String); virtual;
  829. Procedure Setpriority(AIndex : Integer; const AValue : TParameter); virtual;
  830. Procedure SetscheduleEndMs(AIndex : Integer; const AValue : String); virtual;
  831. Procedure SetscheduleStartMs(AIndex : Integer; const AValue : String); virtual;
  832. Procedure SetsetupTag(AIndex : Integer; const AValue : TTagTypesetupTagArray); virtual;
  833. Procedure SettagFiringOption(AIndex : Integer; const AValue : String); virtual;
  834. Procedure SettagId(AIndex : Integer; const AValue : String); virtual;
  835. Procedure SetteardownTag(AIndex : Integer; const AValue : TTagTypeteardownTagArray); virtual;
  836. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  837. //2.6.4. bug workaround
  838. {$IFDEF VER2_6}
  839. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  840. {$ENDIF VER2_6}
  841. Public
  842. Published
  843. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  844. Property blockingRuleId : TStringArray Index 8 Read FblockingRuleId Write SetblockingRuleId;
  845. Property blockingTriggerId : TStringArray Index 16 Read FblockingTriggerId Write SetblockingTriggerId;
  846. Property containerId : String Index 24 Read FcontainerId Write SetcontainerId;
  847. Property fingerprint : String Index 32 Read Ffingerprint Write Setfingerprint;
  848. Property firingRuleId : TStringArray Index 40 Read FfiringRuleId Write SetfiringRuleId;
  849. Property firingTriggerId : TStringArray Index 48 Read FfiringTriggerId Write SetfiringTriggerId;
  850. Property liveOnly : boolean Index 56 Read FliveOnly Write SetliveOnly;
  851. Property name : String Index 64 Read Fname Write Setname;
  852. Property notes : String Index 72 Read Fnotes Write Setnotes;
  853. Property parameter : TTagTypeparameterArray Index 80 Read Fparameter Write Setparameter;
  854. Property parentFolderId : String Index 88 Read FparentFolderId Write SetparentFolderId;
  855. Property priority : TParameter Index 96 Read Fpriority Write Setpriority;
  856. Property scheduleEndMs : String Index 104 Read FscheduleEndMs Write SetscheduleEndMs;
  857. Property scheduleStartMs : String Index 112 Read FscheduleStartMs Write SetscheduleStartMs;
  858. Property setupTag : TTagTypesetupTagArray Index 120 Read FsetupTag Write SetsetupTag;
  859. Property tagFiringOption : String Index 128 Read FtagFiringOption Write SettagFiringOption;
  860. Property tagId : String Index 136 Read FtagId Write SettagId;
  861. Property teardownTag : TTagTypeteardownTagArray Index 144 Read FteardownTag Write SetteardownTag;
  862. Property _type : String Index 152 Read F_type Write Set_type;
  863. end;
  864. TTagClass = Class of TTag;
  865. { --------------------------------------------------------------------
  866. TTeardownTag
  867. --------------------------------------------------------------------}
  868. TTeardownTag = Class(TGoogleBaseObject)
  869. Private
  870. FstopTeardownOnFailure : boolean;
  871. FtagName : String;
  872. Protected
  873. //Property setters
  874. Procedure SetstopTeardownOnFailure(AIndex : Integer; const AValue : boolean); virtual;
  875. Procedure SettagName(AIndex : Integer; const AValue : String); virtual;
  876. Public
  877. Published
  878. Property stopTeardownOnFailure : boolean Index 0 Read FstopTeardownOnFailure Write SetstopTeardownOnFailure;
  879. Property tagName : String Index 8 Read FtagName Write SettagName;
  880. end;
  881. TTeardownTagClass = Class of TTeardownTag;
  882. { --------------------------------------------------------------------
  883. TTrigger
  884. --------------------------------------------------------------------}
  885. TTrigger = Class(TGoogleBaseObject)
  886. Private
  887. FaccountId : String;
  888. FautoEventFilter : TTriggerTypeautoEventFilterArray;
  889. FcheckValidation : TParameter;
  890. FcontainerId : String;
  891. FcustomEventFilter : TTriggerTypecustomEventFilterArray;
  892. FenableAllVideos : TParameter;
  893. FeventName : TParameter;
  894. Ffilter : TTriggerTypefilterArray;
  895. Ffingerprint : String;
  896. Finterval : TParameter;
  897. Flimit : TParameter;
  898. Fname : String;
  899. FparentFolderId : String;
  900. FtriggerId : String;
  901. F_type : String;
  902. FuniqueTriggerId : TParameter;
  903. FvideoPercentageList : TParameter;
  904. FwaitForTags : TParameter;
  905. FwaitForTagsTimeout : TParameter;
  906. Protected
  907. Class Function ExportPropertyName(Const AName : String) : string; override;
  908. //Property setters
  909. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  910. Procedure SetautoEventFilter(AIndex : Integer; const AValue : TTriggerTypeautoEventFilterArray); virtual;
  911. Procedure SetcheckValidation(AIndex : Integer; const AValue : TParameter); virtual;
  912. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  913. Procedure SetcustomEventFilter(AIndex : Integer; const AValue : TTriggerTypecustomEventFilterArray); virtual;
  914. Procedure SetenableAllVideos(AIndex : Integer; const AValue : TParameter); virtual;
  915. Procedure SeteventName(AIndex : Integer; const AValue : TParameter); virtual;
  916. Procedure Setfilter(AIndex : Integer; const AValue : TTriggerTypefilterArray); virtual;
  917. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  918. Procedure Setinterval(AIndex : Integer; const AValue : TParameter); virtual;
  919. Procedure Setlimit(AIndex : Integer; const AValue : TParameter); virtual;
  920. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  921. Procedure SetparentFolderId(AIndex : Integer; const AValue : String); virtual;
  922. Procedure SettriggerId(AIndex : Integer; const AValue : String); virtual;
  923. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  924. Procedure SetuniqueTriggerId(AIndex : Integer; const AValue : TParameter); virtual;
  925. Procedure SetvideoPercentageList(AIndex : Integer; const AValue : TParameter); virtual;
  926. Procedure SetwaitForTags(AIndex : Integer; const AValue : TParameter); virtual;
  927. Procedure SetwaitForTagsTimeout(AIndex : Integer; const AValue : TParameter); virtual;
  928. //2.6.4. bug workaround
  929. {$IFDEF VER2_6}
  930. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  931. {$ENDIF VER2_6}
  932. Public
  933. Published
  934. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  935. Property autoEventFilter : TTriggerTypeautoEventFilterArray Index 8 Read FautoEventFilter Write SetautoEventFilter;
  936. Property checkValidation : TParameter Index 16 Read FcheckValidation Write SetcheckValidation;
  937. Property containerId : String Index 24 Read FcontainerId Write SetcontainerId;
  938. Property customEventFilter : TTriggerTypecustomEventFilterArray Index 32 Read FcustomEventFilter Write SetcustomEventFilter;
  939. Property enableAllVideos : TParameter Index 40 Read FenableAllVideos Write SetenableAllVideos;
  940. Property eventName : TParameter Index 48 Read FeventName Write SeteventName;
  941. Property filter : TTriggerTypefilterArray Index 56 Read Ffilter Write Setfilter;
  942. Property fingerprint : String Index 64 Read Ffingerprint Write Setfingerprint;
  943. Property interval : TParameter Index 72 Read Finterval Write Setinterval;
  944. Property limit : TParameter Index 80 Read Flimit Write Setlimit;
  945. Property name : String Index 88 Read Fname Write Setname;
  946. Property parentFolderId : String Index 96 Read FparentFolderId Write SetparentFolderId;
  947. Property triggerId : String Index 104 Read FtriggerId Write SettriggerId;
  948. Property _type : String Index 112 Read F_type Write Set_type;
  949. Property uniqueTriggerId : TParameter Index 120 Read FuniqueTriggerId Write SetuniqueTriggerId;
  950. Property videoPercentageList : TParameter Index 128 Read FvideoPercentageList Write SetvideoPercentageList;
  951. Property waitForTags : TParameter Index 136 Read FwaitForTags Write SetwaitForTags;
  952. Property waitForTagsTimeout : TParameter Index 144 Read FwaitForTagsTimeout Write SetwaitForTagsTimeout;
  953. end;
  954. TTriggerClass = Class of TTrigger;
  955. { --------------------------------------------------------------------
  956. TUserAccess
  957. --------------------------------------------------------------------}
  958. TUserAccess = Class(TGoogleBaseObject)
  959. Private
  960. FaccountAccess : TAccountAccess;
  961. FaccountId : String;
  962. FcontainerAccess : TUserAccessTypecontainerAccessArray;
  963. FemailAddress : String;
  964. FpermissionId : String;
  965. Protected
  966. //Property setters
  967. Procedure SetaccountAccess(AIndex : Integer; const AValue : TAccountAccess); virtual;
  968. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  969. Procedure SetcontainerAccess(AIndex : Integer; const AValue : TUserAccessTypecontainerAccessArray); virtual;
  970. Procedure SetemailAddress(AIndex : Integer; const AValue : String); virtual;
  971. Procedure SetpermissionId(AIndex : Integer; const AValue : String); virtual;
  972. //2.6.4. bug workaround
  973. {$IFDEF VER2_6}
  974. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  975. {$ENDIF VER2_6}
  976. Public
  977. Published
  978. Property accountAccess : TAccountAccess Index 0 Read FaccountAccess Write SetaccountAccess;
  979. Property accountId : String Index 8 Read FaccountId Write SetaccountId;
  980. Property containerAccess : TUserAccessTypecontainerAccessArray Index 16 Read FcontainerAccess Write SetcontainerAccess;
  981. Property emailAddress : String Index 24 Read FemailAddress Write SetemailAddress;
  982. Property permissionId : String Index 32 Read FpermissionId Write SetpermissionId;
  983. end;
  984. TUserAccessClass = Class of TUserAccess;
  985. { --------------------------------------------------------------------
  986. TVariable
  987. --------------------------------------------------------------------}
  988. TVariable = Class(TGoogleBaseObject)
  989. Private
  990. FaccountId : String;
  991. FcontainerId : String;
  992. FdisablingTriggerId : TStringArray;
  993. FenablingTriggerId : TStringArray;
  994. Ffingerprint : String;
  995. Fname : String;
  996. Fnotes : String;
  997. Fparameter : TVariableTypeparameterArray;
  998. FparentFolderId : String;
  999. FscheduleEndMs : String;
  1000. FscheduleStartMs : String;
  1001. F_type : String;
  1002. FvariableId : String;
  1003. Protected
  1004. Class Function ExportPropertyName(Const AName : String) : string; override;
  1005. //Property setters
  1006. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1007. Procedure SetcontainerId(AIndex : Integer; const AValue : String); virtual;
  1008. Procedure SetdisablingTriggerId(AIndex : Integer; const AValue : TStringArray); virtual;
  1009. Procedure SetenablingTriggerId(AIndex : Integer; const AValue : TStringArray); virtual;
  1010. Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
  1011. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1012. Procedure Setnotes(AIndex : Integer; const AValue : String); virtual;
  1013. Procedure Setparameter(AIndex : Integer; const AValue : TVariableTypeparameterArray); virtual;
  1014. Procedure SetparentFolderId(AIndex : Integer; const AValue : String); virtual;
  1015. Procedure SetscheduleEndMs(AIndex : Integer; const AValue : String); virtual;
  1016. Procedure SetscheduleStartMs(AIndex : Integer; const AValue : String); virtual;
  1017. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1018. Procedure SetvariableId(AIndex : Integer; const AValue : String); virtual;
  1019. //2.6.4. bug workaround
  1020. {$IFDEF VER2_6}
  1021. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1022. {$ENDIF VER2_6}
  1023. Public
  1024. Published
  1025. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1026. Property containerId : String Index 8 Read FcontainerId Write SetcontainerId;
  1027. Property disablingTriggerId : TStringArray Index 16 Read FdisablingTriggerId Write SetdisablingTriggerId;
  1028. Property enablingTriggerId : TStringArray Index 24 Read FenablingTriggerId Write SetenablingTriggerId;
  1029. Property fingerprint : String Index 32 Read Ffingerprint Write Setfingerprint;
  1030. Property name : String Index 40 Read Fname Write Setname;
  1031. Property notes : String Index 48 Read Fnotes Write Setnotes;
  1032. Property parameter : TVariableTypeparameterArray Index 56 Read Fparameter Write Setparameter;
  1033. Property parentFolderId : String Index 64 Read FparentFolderId Write SetparentFolderId;
  1034. Property scheduleEndMs : String Index 72 Read FscheduleEndMs Write SetscheduleEndMs;
  1035. Property scheduleStartMs : String Index 80 Read FscheduleStartMs Write SetscheduleStartMs;
  1036. Property _type : String Index 88 Read F_type Write Set_type;
  1037. Property variableId : String Index 96 Read FvariableId Write SetvariableId;
  1038. end;
  1039. TVariableClass = Class of TVariable;
  1040. { --------------------------------------------------------------------
  1041. TAccountsContainersEnvironmentsResource
  1042. --------------------------------------------------------------------}
  1043. //Optional query Options for TAccountsContainersEnvironmentsResource, method Patch
  1044. TAccountsContainersEnvironmentsPatchOptions = Record
  1045. fingerprint : String;
  1046. end;
  1047. //Optional query Options for TAccountsContainersEnvironmentsResource, method Update
  1048. TAccountsContainersEnvironmentsUpdateOptions = Record
  1049. fingerprint : String;
  1050. end;
  1051. TAccountsContainersEnvironmentsResource = Class(TGoogleResource)
  1052. Public
  1053. Class Function ResourceName : String; override;
  1054. Class Function DefaultAPI : TGoogleAPIClass; override;
  1055. Function Create(accountId: string; containerId: string; aEnvironment : TEnvironment) : TEnvironment;overload;
  1056. Procedure Delete(accountId: string; containerId: string; environmentId: string);
  1057. Function Get(accountId: string; containerId: string; environmentId: string) : TEnvironment;
  1058. Function List(accountId: string; containerId: string) : TListEnvironmentsResponse;
  1059. Function Patch(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment; AQuery : string = '') : TEnvironment;
  1060. Function Patch(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment; AQuery : TAccountsContainersEnvironmentspatchOptions) : TEnvironment;
  1061. Function Update(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment; AQuery : string = '') : TEnvironment;
  1062. Function Update(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment; AQuery : TAccountsContainersEnvironmentsupdateOptions) : TEnvironment;
  1063. end;
  1064. { --------------------------------------------------------------------
  1065. TAccountsContainersFoldersEntitiesResource
  1066. --------------------------------------------------------------------}
  1067. TAccountsContainersFoldersEntitiesResource = Class(TGoogleResource)
  1068. Public
  1069. Class Function ResourceName : String; override;
  1070. Class Function DefaultAPI : TGoogleAPIClass; override;
  1071. Function List(accountId: string; containerId: string; folderId: string) : TFolderEntities;
  1072. end;
  1073. { --------------------------------------------------------------------
  1074. TAccountsContainersFoldersResource
  1075. --------------------------------------------------------------------}
  1076. //Optional query Options for TAccountsContainersFoldersResource, method Update
  1077. TAccountsContainersFoldersUpdateOptions = Record
  1078. fingerprint : String;
  1079. end;
  1080. TAccountsContainersFoldersResource = Class(TGoogleResource)
  1081. Private
  1082. FEntitiesInstance : TAccountsContainersFoldersEntitiesResource;
  1083. Function GetEntitiesInstance : TAccountsContainersFoldersEntitiesResource;virtual;
  1084. Public
  1085. Class Function ResourceName : String; override;
  1086. Class Function DefaultAPI : TGoogleAPIClass; override;
  1087. Function Create(accountId: string; containerId: string; aFolder : TFolder) : TFolder;overload;
  1088. Procedure Delete(accountId: string; containerId: string; folderId: string);
  1089. Function Get(accountId: string; containerId: string; folderId: string) : TFolder;
  1090. Function List(accountId: string; containerId: string) : TListFoldersResponse;
  1091. Function Update(accountId: string; containerId: string; folderId: string; aFolder : TFolder; AQuery : string = '') : TFolder;
  1092. Function Update(accountId: string; containerId: string; folderId: string; aFolder : TFolder; AQuery : TAccountsContainersFoldersupdateOptions) : TFolder;
  1093. Function CreateEntitiesResource(AOwner : TComponent) : TAccountsContainersFoldersEntitiesResource;virtual;overload;
  1094. Function CreateEntitiesResource : TAccountsContainersFoldersEntitiesResource;virtual;overload;
  1095. Property EntitiesResource : TAccountsContainersFoldersEntitiesResource Read GetEntitiesInstance;
  1096. end;
  1097. { --------------------------------------------------------------------
  1098. TAccountsContainersMove_foldersResource
  1099. --------------------------------------------------------------------}
  1100. //Optional query Options for TAccountsContainersMove_foldersResource, method Update
  1101. TAccountsContainersMove_foldersUpdateOptions = Record
  1102. tagId : String;
  1103. triggerId : String;
  1104. variableId : String;
  1105. end;
  1106. TAccountsContainersMove_foldersResource = Class(TGoogleResource)
  1107. Public
  1108. Class Function ResourceName : String; override;
  1109. Class Function DefaultAPI : TGoogleAPIClass; override;
  1110. Procedure Update(accountId: string; containerId: string; folderId: string; aFolder : TFolder; AQuery : string = '');
  1111. Procedure Update(accountId: string; containerId: string; folderId: string; aFolder : TFolder; AQuery : TAccountsContainersMove_foldersupdateOptions);
  1112. end;
  1113. { --------------------------------------------------------------------
  1114. TAccountsContainersReauthorize_environmentsResource
  1115. --------------------------------------------------------------------}
  1116. TAccountsContainersReauthorize_environmentsResource = Class(TGoogleResource)
  1117. Public
  1118. Class Function ResourceName : String; override;
  1119. Class Function DefaultAPI : TGoogleAPIClass; override;
  1120. Function Update(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment) : TEnvironment;
  1121. end;
  1122. { --------------------------------------------------------------------
  1123. TAccountsContainersTagsResource
  1124. --------------------------------------------------------------------}
  1125. //Optional query Options for TAccountsContainersTagsResource, method Update
  1126. TAccountsContainersTagsUpdateOptions = Record
  1127. fingerprint : String;
  1128. end;
  1129. TAccountsContainersTagsResource = Class(TGoogleResource)
  1130. Public
  1131. Class Function ResourceName : String; override;
  1132. Class Function DefaultAPI : TGoogleAPIClass; override;
  1133. Function Create(accountId: string; containerId: string; aTag : TTag) : TTag;overload;
  1134. Procedure Delete(accountId: string; containerId: string; tagId: string);
  1135. Function Get(accountId: string; containerId: string; tagId: string) : TTag;
  1136. Function List(accountId: string; containerId: string) : TListTagsResponse;
  1137. Function Update(accountId: string; containerId: string; tagId: string; aTag : TTag; AQuery : string = '') : TTag;
  1138. Function Update(accountId: string; containerId: string; tagId: string; aTag : TTag; AQuery : TAccountsContainersTagsupdateOptions) : TTag;
  1139. end;
  1140. { --------------------------------------------------------------------
  1141. TAccountsContainersTriggersResource
  1142. --------------------------------------------------------------------}
  1143. //Optional query Options for TAccountsContainersTriggersResource, method Update
  1144. TAccountsContainersTriggersUpdateOptions = Record
  1145. fingerprint : String;
  1146. end;
  1147. TAccountsContainersTriggersResource = Class(TGoogleResource)
  1148. Public
  1149. Class Function ResourceName : String; override;
  1150. Class Function DefaultAPI : TGoogleAPIClass; override;
  1151. Function Create(accountId: string; containerId: string; aTrigger : TTrigger) : TTrigger;overload;
  1152. Procedure Delete(accountId: string; containerId: string; triggerId: string);
  1153. Function Get(accountId: string; containerId: string; triggerId: string) : TTrigger;
  1154. Function List(accountId: string; containerId: string) : TListTriggersResponse;
  1155. Function Update(accountId: string; containerId: string; triggerId: string; aTrigger : TTrigger; AQuery : string = '') : TTrigger;
  1156. Function Update(accountId: string; containerId: string; triggerId: string; aTrigger : TTrigger; AQuery : TAccountsContainersTriggersupdateOptions) : TTrigger;
  1157. end;
  1158. { --------------------------------------------------------------------
  1159. TAccountsContainersVariablesResource
  1160. --------------------------------------------------------------------}
  1161. //Optional query Options for TAccountsContainersVariablesResource, method Update
  1162. TAccountsContainersVariablesUpdateOptions = Record
  1163. fingerprint : String;
  1164. end;
  1165. TAccountsContainersVariablesResource = Class(TGoogleResource)
  1166. Public
  1167. Class Function ResourceName : String; override;
  1168. Class Function DefaultAPI : TGoogleAPIClass; override;
  1169. Function Create(accountId: string; containerId: string; aVariable : TVariable) : TVariable;overload;
  1170. Procedure Delete(accountId: string; containerId: string; variableId: string);
  1171. Function Get(accountId: string; containerId: string; variableId: string) : TVariable;
  1172. Function List(accountId: string; containerId: string) : TListVariablesResponse;
  1173. Function Update(accountId: string; containerId: string; variableId: string; aVariable : TVariable; AQuery : string = '') : TVariable;
  1174. Function Update(accountId: string; containerId: string; variableId: string; aVariable : TVariable; AQuery : TAccountsContainersVariablesupdateOptions) : TVariable;
  1175. end;
  1176. { --------------------------------------------------------------------
  1177. TAccountsContainersVersionsResource
  1178. --------------------------------------------------------------------}
  1179. //Optional query Options for TAccountsContainersVersionsResource, method List
  1180. TAccountsContainersVersionsListOptions = Record
  1181. headers : boolean;
  1182. includeDeleted : boolean;
  1183. end;
  1184. //Optional query Options for TAccountsContainersVersionsResource, method Publish
  1185. TAccountsContainersVersionsPublishOptions = Record
  1186. fingerprint : String;
  1187. end;
  1188. //Optional query Options for TAccountsContainersVersionsResource, method Update
  1189. TAccountsContainersVersionsUpdateOptions = Record
  1190. fingerprint : String;
  1191. end;
  1192. TAccountsContainersVersionsResource = Class(TGoogleResource)
  1193. Public
  1194. Class Function ResourceName : String; override;
  1195. Class Function DefaultAPI : TGoogleAPIClass; override;
  1196. Function Create(accountId: string; containerId: string; aCreateContainerVersionRequestVersionOptions : TCreateContainerVersionRequestVersionOptions) : TCreateContainerVersionResponse;overload;
  1197. Procedure Delete(accountId: string; containerId: string; containerVersionId: string);
  1198. Function Get(accountId: string; containerId: string; containerVersionId: string) : TContainerVersion;
  1199. Function List(accountId: string; containerId: string; AQuery : string = '') : TListContainerVersionsResponse;
  1200. Function List(accountId: string; containerId: string; AQuery : TAccountsContainersVersionslistOptions) : TListContainerVersionsResponse;
  1201. Function Publish(accountId: string; containerId: string; containerVersionId: string; AQuery : string = '') : TPublishContainerVersionResponse;
  1202. Function Publish(accountId: string; containerId: string; containerVersionId: string; AQuery : TAccountsContainersVersionspublishOptions) : TPublishContainerVersionResponse;
  1203. Function Restore(accountId: string; containerId: string; containerVersionId: string) : TContainerVersion;
  1204. Function Undelete(accountId: string; containerId: string; containerVersionId: string) : TContainerVersion;
  1205. Function Update(accountId: string; containerId: string; containerVersionId: string; aContainerVersion : TContainerVersion; AQuery : string = '') : TContainerVersion;
  1206. Function Update(accountId: string; containerId: string; containerVersionId: string; aContainerVersion : TContainerVersion; AQuery : TAccountsContainersVersionsupdateOptions) : TContainerVersion;
  1207. end;
  1208. { --------------------------------------------------------------------
  1209. TAccountsContainersResource
  1210. --------------------------------------------------------------------}
  1211. //Optional query Options for TAccountsContainersResource, method Update
  1212. TAccountsContainersUpdateOptions = Record
  1213. fingerprint : String;
  1214. end;
  1215. TAccountsContainersResource = Class(TGoogleResource)
  1216. Private
  1217. FEnvironmentsInstance : TAccountsContainersEnvironmentsResource;
  1218. FFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;
  1219. FFoldersInstance : TAccountsContainersFoldersResource;
  1220. FMove_foldersInstance : TAccountsContainersMove_foldersResource;
  1221. FReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;
  1222. FTagsInstance : TAccountsContainersTagsResource;
  1223. FTriggersInstance : TAccountsContainersTriggersResource;
  1224. FVariablesInstance : TAccountsContainersVariablesResource;
  1225. FVersionsInstance : TAccountsContainersVersionsResource;
  1226. Function GetEnvironmentsInstance : TAccountsContainersEnvironmentsResource;virtual;
  1227. Function GetFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;virtual;
  1228. Function GetFoldersInstance : TAccountsContainersFoldersResource;virtual;
  1229. Function GetMove_foldersInstance : TAccountsContainersMove_foldersResource;virtual;
  1230. Function GetReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;virtual;
  1231. Function GetTagsInstance : TAccountsContainersTagsResource;virtual;
  1232. Function GetTriggersInstance : TAccountsContainersTriggersResource;virtual;
  1233. Function GetVariablesInstance : TAccountsContainersVariablesResource;virtual;
  1234. Function GetVersionsInstance : TAccountsContainersVersionsResource;virtual;
  1235. Public
  1236. Class Function ResourceName : String; override;
  1237. Class Function DefaultAPI : TGoogleAPIClass; override;
  1238. Function Create(accountId: string; aContainer : TContainer) : TContainer;overload;
  1239. Procedure Delete(accountId: string; containerId: string);
  1240. Function Get(accountId: string; containerId: string) : TContainer;
  1241. Function List(accountId: string) : TListContainersResponse;
  1242. Function Update(accountId: string; containerId: string; aContainer : TContainer; AQuery : string = '') : TContainer;
  1243. Function Update(accountId: string; containerId: string; aContainer : TContainer; AQuery : TAccountsContainersupdateOptions) : TContainer;
  1244. Function CreateEnvironmentsResource(AOwner : TComponent) : TAccountsContainersEnvironmentsResource;virtual;overload;
  1245. Function CreateEnvironmentsResource : TAccountsContainersEnvironmentsResource;virtual;overload;
  1246. Function CreateFoldersEntitiesResource(AOwner : TComponent) : TAccountsContainersFoldersEntitiesResource;virtual;overload;
  1247. Function CreateFoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource;virtual;overload;
  1248. Function CreateFoldersResource(AOwner : TComponent) : TAccountsContainersFoldersResource;virtual;overload;
  1249. Function CreateFoldersResource : TAccountsContainersFoldersResource;virtual;overload;
  1250. Function CreateMove_foldersResource(AOwner : TComponent) : TAccountsContainersMove_foldersResource;virtual;overload;
  1251. Function CreateMove_foldersResource : TAccountsContainersMove_foldersResource;virtual;overload;
  1252. Function CreateReauthorize_environmentsResource(AOwner : TComponent) : TAccountsContainersReauthorize_environmentsResource;virtual;overload;
  1253. Function CreateReauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource;virtual;overload;
  1254. Function CreateTagsResource(AOwner : TComponent) : TAccountsContainersTagsResource;virtual;overload;
  1255. Function CreateTagsResource : TAccountsContainersTagsResource;virtual;overload;
  1256. Function CreateTriggersResource(AOwner : TComponent) : TAccountsContainersTriggersResource;virtual;overload;
  1257. Function CreateTriggersResource : TAccountsContainersTriggersResource;virtual;overload;
  1258. Function CreateVariablesResource(AOwner : TComponent) : TAccountsContainersVariablesResource;virtual;overload;
  1259. Function CreateVariablesResource : TAccountsContainersVariablesResource;virtual;overload;
  1260. Function CreateVersionsResource(AOwner : TComponent) : TAccountsContainersVersionsResource;virtual;overload;
  1261. Function CreateVersionsResource : TAccountsContainersVersionsResource;virtual;overload;
  1262. Property EnvironmentsResource : TAccountsContainersEnvironmentsResource Read GetEnvironmentsInstance;
  1263. Property FoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource Read GetFoldersEntitiesInstance;
  1264. Property FoldersResource : TAccountsContainersFoldersResource Read GetFoldersInstance;
  1265. Property Move_foldersResource : TAccountsContainersMove_foldersResource Read GetMove_foldersInstance;
  1266. Property Reauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource Read GetReauthorize_environmentsInstance;
  1267. Property TagsResource : TAccountsContainersTagsResource Read GetTagsInstance;
  1268. Property TriggersResource : TAccountsContainersTriggersResource Read GetTriggersInstance;
  1269. Property VariablesResource : TAccountsContainersVariablesResource Read GetVariablesInstance;
  1270. Property VersionsResource : TAccountsContainersVersionsResource Read GetVersionsInstance;
  1271. end;
  1272. { --------------------------------------------------------------------
  1273. TAccountsPermissionsResource
  1274. --------------------------------------------------------------------}
  1275. TAccountsPermissionsResource = Class(TGoogleResource)
  1276. Public
  1277. Class Function ResourceName : String; override;
  1278. Class Function DefaultAPI : TGoogleAPIClass; override;
  1279. Function Create(accountId: string; aUserAccess : TUserAccess) : TUserAccess;overload;
  1280. Procedure Delete(accountId: string; permissionId: string);
  1281. Function Get(accountId: string; permissionId: string) : TUserAccess;
  1282. Function List(accountId: string) : TListAccountUsersResponse;
  1283. Function Update(accountId: string; permissionId: string; aUserAccess : TUserAccess) : TUserAccess;
  1284. end;
  1285. { --------------------------------------------------------------------
  1286. TAccountsResource
  1287. --------------------------------------------------------------------}
  1288. //Optional query Options for TAccountsResource, method Update
  1289. TAccountsUpdateOptions = Record
  1290. fingerprint : String;
  1291. end;
  1292. TAccountsResource = Class(TGoogleResource)
  1293. Private
  1294. FContainersEnvironmentsInstance : TAccountsContainersEnvironmentsResource;
  1295. FContainersFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;
  1296. FContainersFoldersInstance : TAccountsContainersFoldersResource;
  1297. FContainersMove_foldersInstance : TAccountsContainersMove_foldersResource;
  1298. FContainersReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;
  1299. FContainersTagsInstance : TAccountsContainersTagsResource;
  1300. FContainersTriggersInstance : TAccountsContainersTriggersResource;
  1301. FContainersVariablesInstance : TAccountsContainersVariablesResource;
  1302. FContainersVersionsInstance : TAccountsContainersVersionsResource;
  1303. FContainersInstance : TAccountsContainersResource;
  1304. FPermissionsInstance : TAccountsPermissionsResource;
  1305. Function GetContainersEnvironmentsInstance : TAccountsContainersEnvironmentsResource;virtual;
  1306. Function GetContainersFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;virtual;
  1307. Function GetContainersFoldersInstance : TAccountsContainersFoldersResource;virtual;
  1308. Function GetContainersMove_foldersInstance : TAccountsContainersMove_foldersResource;virtual;
  1309. Function GetContainersReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;virtual;
  1310. Function GetContainersTagsInstance : TAccountsContainersTagsResource;virtual;
  1311. Function GetContainersTriggersInstance : TAccountsContainersTriggersResource;virtual;
  1312. Function GetContainersVariablesInstance : TAccountsContainersVariablesResource;virtual;
  1313. Function GetContainersVersionsInstance : TAccountsContainersVersionsResource;virtual;
  1314. Function GetContainersInstance : TAccountsContainersResource;virtual;
  1315. Function GetPermissionsInstance : TAccountsPermissionsResource;virtual;
  1316. Public
  1317. Class Function ResourceName : String; override;
  1318. Class Function DefaultAPI : TGoogleAPIClass; override;
  1319. Function Get(accountId: string) : TAccount;
  1320. Function List : TListAccountsResponse;
  1321. Function Update(accountId: string; aAccount : TAccount; AQuery : string = '') : TAccount;
  1322. Function Update(accountId: string; aAccount : TAccount; AQuery : TAccountsupdateOptions) : TAccount;
  1323. Function CreateContainersEnvironmentsResource(AOwner : TComponent) : TAccountsContainersEnvironmentsResource;virtual;overload;
  1324. Function CreateContainersEnvironmentsResource : TAccountsContainersEnvironmentsResource;virtual;overload;
  1325. Function CreateContainersFoldersEntitiesResource(AOwner : TComponent) : TAccountsContainersFoldersEntitiesResource;virtual;overload;
  1326. Function CreateContainersFoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource;virtual;overload;
  1327. Function CreateContainersFoldersResource(AOwner : TComponent) : TAccountsContainersFoldersResource;virtual;overload;
  1328. Function CreateContainersFoldersResource : TAccountsContainersFoldersResource;virtual;overload;
  1329. Function CreateContainersMove_foldersResource(AOwner : TComponent) : TAccountsContainersMove_foldersResource;virtual;overload;
  1330. Function CreateContainersMove_foldersResource : TAccountsContainersMove_foldersResource;virtual;overload;
  1331. Function CreateContainersReauthorize_environmentsResource(AOwner : TComponent) : TAccountsContainersReauthorize_environmentsResource;virtual;overload;
  1332. Function CreateContainersReauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource;virtual;overload;
  1333. Function CreateContainersTagsResource(AOwner : TComponent) : TAccountsContainersTagsResource;virtual;overload;
  1334. Function CreateContainersTagsResource : TAccountsContainersTagsResource;virtual;overload;
  1335. Function CreateContainersTriggersResource(AOwner : TComponent) : TAccountsContainersTriggersResource;virtual;overload;
  1336. Function CreateContainersTriggersResource : TAccountsContainersTriggersResource;virtual;overload;
  1337. Function CreateContainersVariablesResource(AOwner : TComponent) : TAccountsContainersVariablesResource;virtual;overload;
  1338. Function CreateContainersVariablesResource : TAccountsContainersVariablesResource;virtual;overload;
  1339. Function CreateContainersVersionsResource(AOwner : TComponent) : TAccountsContainersVersionsResource;virtual;overload;
  1340. Function CreateContainersVersionsResource : TAccountsContainersVersionsResource;virtual;overload;
  1341. Function CreateContainersResource(AOwner : TComponent) : TAccountsContainersResource;virtual;overload;
  1342. Function CreateContainersResource : TAccountsContainersResource;virtual;overload;
  1343. Function CreatePermissionsResource(AOwner : TComponent) : TAccountsPermissionsResource;virtual;overload;
  1344. Function CreatePermissionsResource : TAccountsPermissionsResource;virtual;overload;
  1345. Property ContainersEnvironmentsResource : TAccountsContainersEnvironmentsResource Read GetContainersEnvironmentsInstance;
  1346. Property ContainersFoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource Read GetContainersFoldersEntitiesInstance;
  1347. Property ContainersFoldersResource : TAccountsContainersFoldersResource Read GetContainersFoldersInstance;
  1348. Property ContainersMove_foldersResource : TAccountsContainersMove_foldersResource Read GetContainersMove_foldersInstance;
  1349. Property ContainersReauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource Read GetContainersReauthorize_environmentsInstance;
  1350. Property ContainersTagsResource : TAccountsContainersTagsResource Read GetContainersTagsInstance;
  1351. Property ContainersTriggersResource : TAccountsContainersTriggersResource Read GetContainersTriggersInstance;
  1352. Property ContainersVariablesResource : TAccountsContainersVariablesResource Read GetContainersVariablesInstance;
  1353. Property ContainersVersionsResource : TAccountsContainersVersionsResource Read GetContainersVersionsInstance;
  1354. Property ContainersResource : TAccountsContainersResource Read GetContainersInstance;
  1355. Property PermissionsResource : TAccountsPermissionsResource Read GetPermissionsInstance;
  1356. end;
  1357. { --------------------------------------------------------------------
  1358. TTagmanagerAPI
  1359. --------------------------------------------------------------------}
  1360. TTagmanagerAPI = Class(TGoogleAPI)
  1361. Private
  1362. FAccountsContainersEnvironmentsInstance : TAccountsContainersEnvironmentsResource;
  1363. FAccountsContainersFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;
  1364. FAccountsContainersFoldersInstance : TAccountsContainersFoldersResource;
  1365. FAccountsContainersMove_foldersInstance : TAccountsContainersMove_foldersResource;
  1366. FAccountsContainersReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;
  1367. FAccountsContainersTagsInstance : TAccountsContainersTagsResource;
  1368. FAccountsContainersTriggersInstance : TAccountsContainersTriggersResource;
  1369. FAccountsContainersVariablesInstance : TAccountsContainersVariablesResource;
  1370. FAccountsContainersVersionsInstance : TAccountsContainersVersionsResource;
  1371. FAccountsContainersInstance : TAccountsContainersResource;
  1372. FAccountsPermissionsInstance : TAccountsPermissionsResource;
  1373. FAccountsInstance : TAccountsResource;
  1374. Function GetAccountsContainersEnvironmentsInstance : TAccountsContainersEnvironmentsResource;virtual;
  1375. Function GetAccountsContainersFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;virtual;
  1376. Function GetAccountsContainersFoldersInstance : TAccountsContainersFoldersResource;virtual;
  1377. Function GetAccountsContainersMove_foldersInstance : TAccountsContainersMove_foldersResource;virtual;
  1378. Function GetAccountsContainersReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;virtual;
  1379. Function GetAccountsContainersTagsInstance : TAccountsContainersTagsResource;virtual;
  1380. Function GetAccountsContainersTriggersInstance : TAccountsContainersTriggersResource;virtual;
  1381. Function GetAccountsContainersVariablesInstance : TAccountsContainersVariablesResource;virtual;
  1382. Function GetAccountsContainersVersionsInstance : TAccountsContainersVersionsResource;virtual;
  1383. Function GetAccountsContainersInstance : TAccountsContainersResource;virtual;
  1384. Function GetAccountsPermissionsInstance : TAccountsPermissionsResource;virtual;
  1385. Function GetAccountsInstance : TAccountsResource;virtual;
  1386. Public
  1387. //Override class functions with API info
  1388. Class Function APIName : String; override;
  1389. Class Function APIVersion : String; override;
  1390. Class Function APIRevision : String; override;
  1391. Class Function APIID : String; override;
  1392. Class Function APITitle : String; override;
  1393. Class Function APIDescription : String; override;
  1394. Class Function APIOwnerDomain : String; override;
  1395. Class Function APIOwnerName : String; override;
  1396. Class Function APIIcon16 : String; override;
  1397. Class Function APIIcon32 : String; override;
  1398. Class Function APIdocumentationLink : String; override;
  1399. Class Function APIrootUrl : string; override;
  1400. Class Function APIbasePath : string;override;
  1401. Class Function APIbaseURL : String;override;
  1402. Class Function APIProtocol : string;override;
  1403. Class Function APIservicePath : string;override;
  1404. Class Function APIbatchPath : String;override;
  1405. Class Function APIAuthScopes : TScopeInfoArray;override;
  1406. Class Function APINeedsAuth : Boolean;override;
  1407. Class Procedure RegisterAPIResources; override;
  1408. //Add create function for resources
  1409. Function CreateAccountsContainersEnvironmentsResource(AOwner : TComponent) : TAccountsContainersEnvironmentsResource;virtual;overload;
  1410. Function CreateAccountsContainersEnvironmentsResource : TAccountsContainersEnvironmentsResource;virtual;overload;
  1411. Function CreateAccountsContainersFoldersEntitiesResource(AOwner : TComponent) : TAccountsContainersFoldersEntitiesResource;virtual;overload;
  1412. Function CreateAccountsContainersFoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource;virtual;overload;
  1413. Function CreateAccountsContainersFoldersResource(AOwner : TComponent) : TAccountsContainersFoldersResource;virtual;overload;
  1414. Function CreateAccountsContainersFoldersResource : TAccountsContainersFoldersResource;virtual;overload;
  1415. Function CreateAccountsContainersMove_foldersResource(AOwner : TComponent) : TAccountsContainersMove_foldersResource;virtual;overload;
  1416. Function CreateAccountsContainersMove_foldersResource : TAccountsContainersMove_foldersResource;virtual;overload;
  1417. Function CreateAccountsContainersReauthorize_environmentsResource(AOwner : TComponent) : TAccountsContainersReauthorize_environmentsResource;virtual;overload;
  1418. Function CreateAccountsContainersReauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource;virtual;overload;
  1419. Function CreateAccountsContainersTagsResource(AOwner : TComponent) : TAccountsContainersTagsResource;virtual;overload;
  1420. Function CreateAccountsContainersTagsResource : TAccountsContainersTagsResource;virtual;overload;
  1421. Function CreateAccountsContainersTriggersResource(AOwner : TComponent) : TAccountsContainersTriggersResource;virtual;overload;
  1422. Function CreateAccountsContainersTriggersResource : TAccountsContainersTriggersResource;virtual;overload;
  1423. Function CreateAccountsContainersVariablesResource(AOwner : TComponent) : TAccountsContainersVariablesResource;virtual;overload;
  1424. Function CreateAccountsContainersVariablesResource : TAccountsContainersVariablesResource;virtual;overload;
  1425. Function CreateAccountsContainersVersionsResource(AOwner : TComponent) : TAccountsContainersVersionsResource;virtual;overload;
  1426. Function CreateAccountsContainersVersionsResource : TAccountsContainersVersionsResource;virtual;overload;
  1427. Function CreateAccountsContainersResource(AOwner : TComponent) : TAccountsContainersResource;virtual;overload;
  1428. Function CreateAccountsContainersResource : TAccountsContainersResource;virtual;overload;
  1429. Function CreateAccountsPermissionsResource(AOwner : TComponent) : TAccountsPermissionsResource;virtual;overload;
  1430. Function CreateAccountsPermissionsResource : TAccountsPermissionsResource;virtual;overload;
  1431. Function CreateAccountsResource(AOwner : TComponent) : TAccountsResource;virtual;overload;
  1432. Function CreateAccountsResource : TAccountsResource;virtual;overload;
  1433. //Add default on-demand instances for resources
  1434. Property AccountsContainersEnvironmentsResource : TAccountsContainersEnvironmentsResource Read GetAccountsContainersEnvironmentsInstance;
  1435. Property AccountsContainersFoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource Read GetAccountsContainersFoldersEntitiesInstance;
  1436. Property AccountsContainersFoldersResource : TAccountsContainersFoldersResource Read GetAccountsContainersFoldersInstance;
  1437. Property AccountsContainersMove_foldersResource : TAccountsContainersMove_foldersResource Read GetAccountsContainersMove_foldersInstance;
  1438. Property AccountsContainersReauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource Read GetAccountsContainersReauthorize_environmentsInstance;
  1439. Property AccountsContainersTagsResource : TAccountsContainersTagsResource Read GetAccountsContainersTagsInstance;
  1440. Property AccountsContainersTriggersResource : TAccountsContainersTriggersResource Read GetAccountsContainersTriggersInstance;
  1441. Property AccountsContainersVariablesResource : TAccountsContainersVariablesResource Read GetAccountsContainersVariablesInstance;
  1442. Property AccountsContainersVersionsResource : TAccountsContainersVersionsResource Read GetAccountsContainersVersionsInstance;
  1443. Property AccountsContainersResource : TAccountsContainersResource Read GetAccountsContainersInstance;
  1444. Property AccountsPermissionsResource : TAccountsPermissionsResource Read GetAccountsPermissionsInstance;
  1445. Property AccountsResource : TAccountsResource Read GetAccountsInstance;
  1446. end;
  1447. implementation
  1448. { --------------------------------------------------------------------
  1449. TAccount
  1450. --------------------------------------------------------------------}
  1451. Procedure TAccount.SetaccountId(AIndex : Integer; const AValue : String);
  1452. begin
  1453. If (FaccountId=AValue) then exit;
  1454. FaccountId:=AValue;
  1455. MarkPropertyChanged(AIndex);
  1456. end;
  1457. Procedure TAccount.Setfingerprint(AIndex : Integer; const AValue : String);
  1458. begin
  1459. If (Ffingerprint=AValue) then exit;
  1460. Ffingerprint:=AValue;
  1461. MarkPropertyChanged(AIndex);
  1462. end;
  1463. Procedure TAccount.Setname(AIndex : Integer; const AValue : String);
  1464. begin
  1465. If (Fname=AValue) then exit;
  1466. Fname:=AValue;
  1467. MarkPropertyChanged(AIndex);
  1468. end;
  1469. Procedure TAccount.SetshareData(AIndex : Integer; const AValue : boolean);
  1470. begin
  1471. If (FshareData=AValue) then exit;
  1472. FshareData:=AValue;
  1473. MarkPropertyChanged(AIndex);
  1474. end;
  1475. { --------------------------------------------------------------------
  1476. TAccountAccess
  1477. --------------------------------------------------------------------}
  1478. Procedure TAccountAccess.Setpermission(AIndex : Integer; const AValue : TStringArray);
  1479. begin
  1480. If (Fpermission=AValue) then exit;
  1481. Fpermission:=AValue;
  1482. MarkPropertyChanged(AIndex);
  1483. end;
  1484. //2.6.4. bug workaround
  1485. {$IFDEF VER2_6}
  1486. Procedure TAccountAccess.SetArrayLength(Const AName : String; ALength : Longint);
  1487. begin
  1488. Case AName of
  1489. 'permission' : SetLength(Fpermission,ALength);
  1490. else
  1491. Inherited SetArrayLength(AName,ALength);
  1492. end;
  1493. end;
  1494. {$ENDIF VER2_6}
  1495. { --------------------------------------------------------------------
  1496. TCondition
  1497. --------------------------------------------------------------------}
  1498. Procedure TCondition.Setparameter(AIndex : Integer; const AValue : TConditionTypeparameterArray);
  1499. begin
  1500. If (Fparameter=AValue) then exit;
  1501. Fparameter:=AValue;
  1502. MarkPropertyChanged(AIndex);
  1503. end;
  1504. Procedure TCondition.Set_type(AIndex : Integer; const AValue : String);
  1505. begin
  1506. If (F_type=AValue) then exit;
  1507. F_type:=AValue;
  1508. MarkPropertyChanged(AIndex);
  1509. end;
  1510. Class Function TCondition.ExportPropertyName(Const AName : String) :String;
  1511. begin
  1512. Case AName of
  1513. '_type' : Result:='type';
  1514. else
  1515. Result:=Inherited ExportPropertyName(AName);
  1516. end;
  1517. end;
  1518. //2.6.4. bug workaround
  1519. {$IFDEF VER2_6}
  1520. Procedure TCondition.SetArrayLength(Const AName : String; ALength : Longint);
  1521. begin
  1522. Case AName of
  1523. 'parameter' : SetLength(Fparameter,ALength);
  1524. else
  1525. Inherited SetArrayLength(AName,ALength);
  1526. end;
  1527. end;
  1528. {$ENDIF VER2_6}
  1529. { --------------------------------------------------------------------
  1530. TContainer
  1531. --------------------------------------------------------------------}
  1532. Procedure TContainer.SetaccountId(AIndex : Integer; const AValue : String);
  1533. begin
  1534. If (FaccountId=AValue) then exit;
  1535. FaccountId:=AValue;
  1536. MarkPropertyChanged(AIndex);
  1537. end;
  1538. Procedure TContainer.SetcontainerId(AIndex : Integer; const AValue : String);
  1539. begin
  1540. If (FcontainerId=AValue) then exit;
  1541. FcontainerId:=AValue;
  1542. MarkPropertyChanged(AIndex);
  1543. end;
  1544. Procedure TContainer.SetdomainName(AIndex : Integer; const AValue : TStringArray);
  1545. begin
  1546. If (FdomainName=AValue) then exit;
  1547. FdomainName:=AValue;
  1548. MarkPropertyChanged(AIndex);
  1549. end;
  1550. Procedure TContainer.SetenabledBuiltInVariable(AIndex : Integer; const AValue : TStringArray);
  1551. begin
  1552. If (FenabledBuiltInVariable=AValue) then exit;
  1553. FenabledBuiltInVariable:=AValue;
  1554. MarkPropertyChanged(AIndex);
  1555. end;
  1556. Procedure TContainer.Setfingerprint(AIndex : Integer; const AValue : String);
  1557. begin
  1558. If (Ffingerprint=AValue) then exit;
  1559. Ffingerprint:=AValue;
  1560. MarkPropertyChanged(AIndex);
  1561. end;
  1562. Procedure TContainer.Setname(AIndex : Integer; const AValue : String);
  1563. begin
  1564. If (Fname=AValue) then exit;
  1565. Fname:=AValue;
  1566. MarkPropertyChanged(AIndex);
  1567. end;
  1568. Procedure TContainer.Setnotes(AIndex : Integer; const AValue : String);
  1569. begin
  1570. If (Fnotes=AValue) then exit;
  1571. Fnotes:=AValue;
  1572. MarkPropertyChanged(AIndex);
  1573. end;
  1574. Procedure TContainer.SetpublicId(AIndex : Integer; const AValue : String);
  1575. begin
  1576. If (FpublicId=AValue) then exit;
  1577. FpublicId:=AValue;
  1578. MarkPropertyChanged(AIndex);
  1579. end;
  1580. Procedure TContainer.SettimeZoneCountryId(AIndex : Integer; const AValue : String);
  1581. begin
  1582. If (FtimeZoneCountryId=AValue) then exit;
  1583. FtimeZoneCountryId:=AValue;
  1584. MarkPropertyChanged(AIndex);
  1585. end;
  1586. Procedure TContainer.SettimeZoneId(AIndex : Integer; const AValue : String);
  1587. begin
  1588. If (FtimeZoneId=AValue) then exit;
  1589. FtimeZoneId:=AValue;
  1590. MarkPropertyChanged(AIndex);
  1591. end;
  1592. Procedure TContainer.SetusageContext(AIndex : Integer; const AValue : TStringArray);
  1593. begin
  1594. If (FusageContext=AValue) then exit;
  1595. FusageContext:=AValue;
  1596. MarkPropertyChanged(AIndex);
  1597. end;
  1598. //2.6.4. bug workaround
  1599. {$IFDEF VER2_6}
  1600. Procedure TContainer.SetArrayLength(Const AName : String; ALength : Longint);
  1601. begin
  1602. Case AName of
  1603. 'domainname' : SetLength(FdomainName,ALength);
  1604. 'enabledbuiltinvariable' : SetLength(FenabledBuiltInVariable,ALength);
  1605. 'usagecontext' : SetLength(FusageContext,ALength);
  1606. else
  1607. Inherited SetArrayLength(AName,ALength);
  1608. end;
  1609. end;
  1610. {$ENDIF VER2_6}
  1611. { --------------------------------------------------------------------
  1612. TContainerAccess
  1613. --------------------------------------------------------------------}
  1614. Procedure TContainerAccess.SetcontainerId(AIndex : Integer; const AValue : String);
  1615. begin
  1616. If (FcontainerId=AValue) then exit;
  1617. FcontainerId:=AValue;
  1618. MarkPropertyChanged(AIndex);
  1619. end;
  1620. Procedure TContainerAccess.Setpermission(AIndex : Integer; const AValue : TStringArray);
  1621. begin
  1622. If (Fpermission=AValue) then exit;
  1623. Fpermission:=AValue;
  1624. MarkPropertyChanged(AIndex);
  1625. end;
  1626. //2.6.4. bug workaround
  1627. {$IFDEF VER2_6}
  1628. Procedure TContainerAccess.SetArrayLength(Const AName : String; ALength : Longint);
  1629. begin
  1630. Case AName of
  1631. 'permission' : SetLength(Fpermission,ALength);
  1632. else
  1633. Inherited SetArrayLength(AName,ALength);
  1634. end;
  1635. end;
  1636. {$ENDIF VER2_6}
  1637. { --------------------------------------------------------------------
  1638. TContainerVersion
  1639. --------------------------------------------------------------------}
  1640. Procedure TContainerVersion.SetaccountId(AIndex : Integer; const AValue : String);
  1641. begin
  1642. If (FaccountId=AValue) then exit;
  1643. FaccountId:=AValue;
  1644. MarkPropertyChanged(AIndex);
  1645. end;
  1646. Procedure TContainerVersion.Setcontainer(AIndex : Integer; const AValue : TContainer);
  1647. begin
  1648. If (Fcontainer=AValue) then exit;
  1649. Fcontainer:=AValue;
  1650. MarkPropertyChanged(AIndex);
  1651. end;
  1652. Procedure TContainerVersion.SetcontainerId(AIndex : Integer; const AValue : String);
  1653. begin
  1654. If (FcontainerId=AValue) then exit;
  1655. FcontainerId:=AValue;
  1656. MarkPropertyChanged(AIndex);
  1657. end;
  1658. Procedure TContainerVersion.SetcontainerVersionId(AIndex : Integer; const AValue : String);
  1659. begin
  1660. If (FcontainerVersionId=AValue) then exit;
  1661. FcontainerVersionId:=AValue;
  1662. MarkPropertyChanged(AIndex);
  1663. end;
  1664. Procedure TContainerVersion.Setdeleted(AIndex : Integer; const AValue : boolean);
  1665. begin
  1666. If (Fdeleted=AValue) then exit;
  1667. Fdeleted:=AValue;
  1668. MarkPropertyChanged(AIndex);
  1669. end;
  1670. Procedure TContainerVersion.Setfingerprint(AIndex : Integer; const AValue : String);
  1671. begin
  1672. If (Ffingerprint=AValue) then exit;
  1673. Ffingerprint:=AValue;
  1674. MarkPropertyChanged(AIndex);
  1675. end;
  1676. Procedure TContainerVersion.Setfolder(AIndex : Integer; const AValue : TContainerVersionTypefolderArray);
  1677. begin
  1678. If (Ffolder=AValue) then exit;
  1679. Ffolder:=AValue;
  1680. MarkPropertyChanged(AIndex);
  1681. end;
  1682. Procedure TContainerVersion.Setmacro(AIndex : Integer; const AValue : TContainerVersionTypemacroArray);
  1683. begin
  1684. If (Fmacro=AValue) then exit;
  1685. Fmacro:=AValue;
  1686. MarkPropertyChanged(AIndex);
  1687. end;
  1688. Procedure TContainerVersion.Setname(AIndex : Integer; const AValue : String);
  1689. begin
  1690. If (Fname=AValue) then exit;
  1691. Fname:=AValue;
  1692. MarkPropertyChanged(AIndex);
  1693. end;
  1694. Procedure TContainerVersion.Setnotes(AIndex : Integer; const AValue : String);
  1695. begin
  1696. If (Fnotes=AValue) then exit;
  1697. Fnotes:=AValue;
  1698. MarkPropertyChanged(AIndex);
  1699. end;
  1700. Procedure TContainerVersion.Setrule(AIndex : Integer; const AValue : TContainerVersionTyperuleArray);
  1701. begin
  1702. If (Frule=AValue) then exit;
  1703. Frule:=AValue;
  1704. MarkPropertyChanged(AIndex);
  1705. end;
  1706. Procedure TContainerVersion.Settag(AIndex : Integer; const AValue : TContainerVersionTypetagArray);
  1707. begin
  1708. If (Ftag=AValue) then exit;
  1709. Ftag:=AValue;
  1710. MarkPropertyChanged(AIndex);
  1711. end;
  1712. Procedure TContainerVersion.Settrigger(AIndex : Integer; const AValue : TContainerVersionTypetriggerArray);
  1713. begin
  1714. If (Ftrigger=AValue) then exit;
  1715. Ftrigger:=AValue;
  1716. MarkPropertyChanged(AIndex);
  1717. end;
  1718. Procedure TContainerVersion.Setvariable(AIndex : Integer; const AValue : TContainerVersionTypevariableArray);
  1719. begin
  1720. If (Fvariable=AValue) then exit;
  1721. Fvariable:=AValue;
  1722. MarkPropertyChanged(AIndex);
  1723. end;
  1724. //2.6.4. bug workaround
  1725. {$IFDEF VER2_6}
  1726. Procedure TContainerVersion.SetArrayLength(Const AName : String; ALength : Longint);
  1727. begin
  1728. Case AName of
  1729. 'folder' : SetLength(Ffolder,ALength);
  1730. 'macro' : SetLength(Fmacro,ALength);
  1731. 'rule' : SetLength(Frule,ALength);
  1732. 'tag' : SetLength(Ftag,ALength);
  1733. 'trigger' : SetLength(Ftrigger,ALength);
  1734. 'variable' : SetLength(Fvariable,ALength);
  1735. else
  1736. Inherited SetArrayLength(AName,ALength);
  1737. end;
  1738. end;
  1739. {$ENDIF VER2_6}
  1740. { --------------------------------------------------------------------
  1741. TContainerVersionHeader
  1742. --------------------------------------------------------------------}
  1743. Procedure TContainerVersionHeader.SetaccountId(AIndex : Integer; const AValue : String);
  1744. begin
  1745. If (FaccountId=AValue) then exit;
  1746. FaccountId:=AValue;
  1747. MarkPropertyChanged(AIndex);
  1748. end;
  1749. Procedure TContainerVersionHeader.SetcontainerId(AIndex : Integer; const AValue : String);
  1750. begin
  1751. If (FcontainerId=AValue) then exit;
  1752. FcontainerId:=AValue;
  1753. MarkPropertyChanged(AIndex);
  1754. end;
  1755. Procedure TContainerVersionHeader.SetcontainerVersionId(AIndex : Integer; const AValue : String);
  1756. begin
  1757. If (FcontainerVersionId=AValue) then exit;
  1758. FcontainerVersionId:=AValue;
  1759. MarkPropertyChanged(AIndex);
  1760. end;
  1761. Procedure TContainerVersionHeader.Setdeleted(AIndex : Integer; const AValue : boolean);
  1762. begin
  1763. If (Fdeleted=AValue) then exit;
  1764. Fdeleted:=AValue;
  1765. MarkPropertyChanged(AIndex);
  1766. end;
  1767. Procedure TContainerVersionHeader.Setname(AIndex : Integer; const AValue : String);
  1768. begin
  1769. If (Fname=AValue) then exit;
  1770. Fname:=AValue;
  1771. MarkPropertyChanged(AIndex);
  1772. end;
  1773. Procedure TContainerVersionHeader.SetnumMacros(AIndex : Integer; const AValue : String);
  1774. begin
  1775. If (FnumMacros=AValue) then exit;
  1776. FnumMacros:=AValue;
  1777. MarkPropertyChanged(AIndex);
  1778. end;
  1779. Procedure TContainerVersionHeader.SetnumRules(AIndex : Integer; const AValue : String);
  1780. begin
  1781. If (FnumRules=AValue) then exit;
  1782. FnumRules:=AValue;
  1783. MarkPropertyChanged(AIndex);
  1784. end;
  1785. Procedure TContainerVersionHeader.SetnumTags(AIndex : Integer; const AValue : String);
  1786. begin
  1787. If (FnumTags=AValue) then exit;
  1788. FnumTags:=AValue;
  1789. MarkPropertyChanged(AIndex);
  1790. end;
  1791. Procedure TContainerVersionHeader.SetnumTriggers(AIndex : Integer; const AValue : String);
  1792. begin
  1793. If (FnumTriggers=AValue) then exit;
  1794. FnumTriggers:=AValue;
  1795. MarkPropertyChanged(AIndex);
  1796. end;
  1797. Procedure TContainerVersionHeader.SetnumVariables(AIndex : Integer; const AValue : String);
  1798. begin
  1799. If (FnumVariables=AValue) then exit;
  1800. FnumVariables:=AValue;
  1801. MarkPropertyChanged(AIndex);
  1802. end;
  1803. { --------------------------------------------------------------------
  1804. TCreateContainerVersionRequestVersionOptions
  1805. --------------------------------------------------------------------}
  1806. Procedure TCreateContainerVersionRequestVersionOptions.Setname(AIndex : Integer; const AValue : String);
  1807. begin
  1808. If (Fname=AValue) then exit;
  1809. Fname:=AValue;
  1810. MarkPropertyChanged(AIndex);
  1811. end;
  1812. Procedure TCreateContainerVersionRequestVersionOptions.Setnotes(AIndex : Integer; const AValue : String);
  1813. begin
  1814. If (Fnotes=AValue) then exit;
  1815. Fnotes:=AValue;
  1816. MarkPropertyChanged(AIndex);
  1817. end;
  1818. Procedure TCreateContainerVersionRequestVersionOptions.SetquickPreview(AIndex : Integer; const AValue : boolean);
  1819. begin
  1820. If (FquickPreview=AValue) then exit;
  1821. FquickPreview:=AValue;
  1822. MarkPropertyChanged(AIndex);
  1823. end;
  1824. { --------------------------------------------------------------------
  1825. TCreateContainerVersionResponse
  1826. --------------------------------------------------------------------}
  1827. Procedure TCreateContainerVersionResponse.SetcompilerError(AIndex : Integer; const AValue : boolean);
  1828. begin
  1829. If (FcompilerError=AValue) then exit;
  1830. FcompilerError:=AValue;
  1831. MarkPropertyChanged(AIndex);
  1832. end;
  1833. Procedure TCreateContainerVersionResponse.SetcontainerVersion(AIndex : Integer; const AValue : TContainerVersion);
  1834. begin
  1835. If (FcontainerVersion=AValue) then exit;
  1836. FcontainerVersion:=AValue;
  1837. MarkPropertyChanged(AIndex);
  1838. end;
  1839. { --------------------------------------------------------------------
  1840. TEnvironment
  1841. --------------------------------------------------------------------}
  1842. Procedure TEnvironment.SetaccountId(AIndex : Integer; const AValue : String);
  1843. begin
  1844. If (FaccountId=AValue) then exit;
  1845. FaccountId:=AValue;
  1846. MarkPropertyChanged(AIndex);
  1847. end;
  1848. Procedure TEnvironment.SetauthorizationCode(AIndex : Integer; const AValue : String);
  1849. begin
  1850. If (FauthorizationCode=AValue) then exit;
  1851. FauthorizationCode:=AValue;
  1852. MarkPropertyChanged(AIndex);
  1853. end;
  1854. Procedure TEnvironment.SetauthorizationTimestampMs(AIndex : Integer; const AValue : String);
  1855. begin
  1856. If (FauthorizationTimestampMs=AValue) then exit;
  1857. FauthorizationTimestampMs:=AValue;
  1858. MarkPropertyChanged(AIndex);
  1859. end;
  1860. Procedure TEnvironment.SetcontainerId(AIndex : Integer; const AValue : String);
  1861. begin
  1862. If (FcontainerId=AValue) then exit;
  1863. FcontainerId:=AValue;
  1864. MarkPropertyChanged(AIndex);
  1865. end;
  1866. Procedure TEnvironment.SetcontainerVersionId(AIndex : Integer; const AValue : String);
  1867. begin
  1868. If (FcontainerVersionId=AValue) then exit;
  1869. FcontainerVersionId:=AValue;
  1870. MarkPropertyChanged(AIndex);
  1871. end;
  1872. Procedure TEnvironment.Setdescription(AIndex : Integer; const AValue : String);
  1873. begin
  1874. If (Fdescription=AValue) then exit;
  1875. Fdescription:=AValue;
  1876. MarkPropertyChanged(AIndex);
  1877. end;
  1878. Procedure TEnvironment.SetenableDebug(AIndex : Integer; const AValue : boolean);
  1879. begin
  1880. If (FenableDebug=AValue) then exit;
  1881. FenableDebug:=AValue;
  1882. MarkPropertyChanged(AIndex);
  1883. end;
  1884. Procedure TEnvironment.SetenvironmentId(AIndex : Integer; const AValue : String);
  1885. begin
  1886. If (FenvironmentId=AValue) then exit;
  1887. FenvironmentId:=AValue;
  1888. MarkPropertyChanged(AIndex);
  1889. end;
  1890. Procedure TEnvironment.Setfingerprint(AIndex : Integer; const AValue : String);
  1891. begin
  1892. If (Ffingerprint=AValue) then exit;
  1893. Ffingerprint:=AValue;
  1894. MarkPropertyChanged(AIndex);
  1895. end;
  1896. Procedure TEnvironment.Setname(AIndex : Integer; const AValue : String);
  1897. begin
  1898. If (Fname=AValue) then exit;
  1899. Fname:=AValue;
  1900. MarkPropertyChanged(AIndex);
  1901. end;
  1902. Procedure TEnvironment.Set_type(AIndex : Integer; const AValue : String);
  1903. begin
  1904. If (F_type=AValue) then exit;
  1905. F_type:=AValue;
  1906. MarkPropertyChanged(AIndex);
  1907. end;
  1908. Procedure TEnvironment.Seturl(AIndex : Integer; const AValue : String);
  1909. begin
  1910. If (Furl=AValue) then exit;
  1911. Furl:=AValue;
  1912. MarkPropertyChanged(AIndex);
  1913. end;
  1914. Class Function TEnvironment.ExportPropertyName(Const AName : String) :String;
  1915. begin
  1916. Case AName of
  1917. '_type' : Result:='type';
  1918. else
  1919. Result:=Inherited ExportPropertyName(AName);
  1920. end;
  1921. end;
  1922. { --------------------------------------------------------------------
  1923. TFolder
  1924. --------------------------------------------------------------------}
  1925. Procedure TFolder.SetaccountId(AIndex : Integer; const AValue : String);
  1926. begin
  1927. If (FaccountId=AValue) then exit;
  1928. FaccountId:=AValue;
  1929. MarkPropertyChanged(AIndex);
  1930. end;
  1931. Procedure TFolder.SetcontainerId(AIndex : Integer; const AValue : String);
  1932. begin
  1933. If (FcontainerId=AValue) then exit;
  1934. FcontainerId:=AValue;
  1935. MarkPropertyChanged(AIndex);
  1936. end;
  1937. Procedure TFolder.Setfingerprint(AIndex : Integer; const AValue : String);
  1938. begin
  1939. If (Ffingerprint=AValue) then exit;
  1940. Ffingerprint:=AValue;
  1941. MarkPropertyChanged(AIndex);
  1942. end;
  1943. Procedure TFolder.SetfolderId(AIndex : Integer; const AValue : String);
  1944. begin
  1945. If (FfolderId=AValue) then exit;
  1946. FfolderId:=AValue;
  1947. MarkPropertyChanged(AIndex);
  1948. end;
  1949. Procedure TFolder.Setname(AIndex : Integer; const AValue : String);
  1950. begin
  1951. If (Fname=AValue) then exit;
  1952. Fname:=AValue;
  1953. MarkPropertyChanged(AIndex);
  1954. end;
  1955. { --------------------------------------------------------------------
  1956. TFolderEntities
  1957. --------------------------------------------------------------------}
  1958. Procedure TFolderEntities.Settag(AIndex : Integer; const AValue : TFolderEntitiesTypetagArray);
  1959. begin
  1960. If (Ftag=AValue) then exit;
  1961. Ftag:=AValue;
  1962. MarkPropertyChanged(AIndex);
  1963. end;
  1964. Procedure TFolderEntities.Settrigger(AIndex : Integer; const AValue : TFolderEntitiesTypetriggerArray);
  1965. begin
  1966. If (Ftrigger=AValue) then exit;
  1967. Ftrigger:=AValue;
  1968. MarkPropertyChanged(AIndex);
  1969. end;
  1970. Procedure TFolderEntities.Setvariable(AIndex : Integer; const AValue : TFolderEntitiesTypevariableArray);
  1971. begin
  1972. If (Fvariable=AValue) then exit;
  1973. Fvariable:=AValue;
  1974. MarkPropertyChanged(AIndex);
  1975. end;
  1976. //2.6.4. bug workaround
  1977. {$IFDEF VER2_6}
  1978. Procedure TFolderEntities.SetArrayLength(Const AName : String; ALength : Longint);
  1979. begin
  1980. Case AName of
  1981. 'tag' : SetLength(Ftag,ALength);
  1982. 'trigger' : SetLength(Ftrigger,ALength);
  1983. 'variable' : SetLength(Fvariable,ALength);
  1984. else
  1985. Inherited SetArrayLength(AName,ALength);
  1986. end;
  1987. end;
  1988. {$ENDIF VER2_6}
  1989. { --------------------------------------------------------------------
  1990. TListAccountUsersResponse
  1991. --------------------------------------------------------------------}
  1992. Procedure TListAccountUsersResponse.SetuserAccess(AIndex : Integer; const AValue : TListAccountUsersResponseTypeuserAccessArray);
  1993. begin
  1994. If (FuserAccess=AValue) then exit;
  1995. FuserAccess:=AValue;
  1996. MarkPropertyChanged(AIndex);
  1997. end;
  1998. //2.6.4. bug workaround
  1999. {$IFDEF VER2_6}
  2000. Procedure TListAccountUsersResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2001. begin
  2002. Case AName of
  2003. 'useraccess' : SetLength(FuserAccess,ALength);
  2004. else
  2005. Inherited SetArrayLength(AName,ALength);
  2006. end;
  2007. end;
  2008. {$ENDIF VER2_6}
  2009. { --------------------------------------------------------------------
  2010. TListAccountsResponse
  2011. --------------------------------------------------------------------}
  2012. Procedure TListAccountsResponse.Setaccounts(AIndex : Integer; const AValue : TListAccountsResponseTypeaccountsArray);
  2013. begin
  2014. If (Faccounts=AValue) then exit;
  2015. Faccounts:=AValue;
  2016. MarkPropertyChanged(AIndex);
  2017. end;
  2018. //2.6.4. bug workaround
  2019. {$IFDEF VER2_6}
  2020. Procedure TListAccountsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2021. begin
  2022. Case AName of
  2023. 'accounts' : SetLength(Faccounts,ALength);
  2024. else
  2025. Inherited SetArrayLength(AName,ALength);
  2026. end;
  2027. end;
  2028. {$ENDIF VER2_6}
  2029. { --------------------------------------------------------------------
  2030. TListContainerVersionsResponse
  2031. --------------------------------------------------------------------}
  2032. Procedure TListContainerVersionsResponse.SetcontainerVersion(AIndex : Integer; const AValue : TListContainerVersionsResponseTypecontainerVersionArray);
  2033. begin
  2034. If (FcontainerVersion=AValue) then exit;
  2035. FcontainerVersion:=AValue;
  2036. MarkPropertyChanged(AIndex);
  2037. end;
  2038. Procedure TListContainerVersionsResponse.SetcontainerVersionHeader(AIndex : Integer; const AValue : TListContainerVersionsResponseTypecontainerVersionHeaderArray);
  2039. begin
  2040. If (FcontainerVersionHeader=AValue) then exit;
  2041. FcontainerVersionHeader:=AValue;
  2042. MarkPropertyChanged(AIndex);
  2043. end;
  2044. //2.6.4. bug workaround
  2045. {$IFDEF VER2_6}
  2046. Procedure TListContainerVersionsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2047. begin
  2048. Case AName of
  2049. 'containerversion' : SetLength(FcontainerVersion,ALength);
  2050. 'containerversionheader' : SetLength(FcontainerVersionHeader,ALength);
  2051. else
  2052. Inherited SetArrayLength(AName,ALength);
  2053. end;
  2054. end;
  2055. {$ENDIF VER2_6}
  2056. { --------------------------------------------------------------------
  2057. TListContainersResponse
  2058. --------------------------------------------------------------------}
  2059. Procedure TListContainersResponse.Setcontainers(AIndex : Integer; const AValue : TListContainersResponseTypecontainersArray);
  2060. begin
  2061. If (Fcontainers=AValue) then exit;
  2062. Fcontainers:=AValue;
  2063. MarkPropertyChanged(AIndex);
  2064. end;
  2065. //2.6.4. bug workaround
  2066. {$IFDEF VER2_6}
  2067. Procedure TListContainersResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2068. begin
  2069. Case AName of
  2070. 'containers' : SetLength(Fcontainers,ALength);
  2071. else
  2072. Inherited SetArrayLength(AName,ALength);
  2073. end;
  2074. end;
  2075. {$ENDIF VER2_6}
  2076. { --------------------------------------------------------------------
  2077. TListEnvironmentsResponse
  2078. --------------------------------------------------------------------}
  2079. Procedure TListEnvironmentsResponse.Setenvironments(AIndex : Integer; const AValue : TListEnvironmentsResponseTypeenvironmentsArray);
  2080. begin
  2081. If (Fenvironments=AValue) then exit;
  2082. Fenvironments:=AValue;
  2083. MarkPropertyChanged(AIndex);
  2084. end;
  2085. //2.6.4. bug workaround
  2086. {$IFDEF VER2_6}
  2087. Procedure TListEnvironmentsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2088. begin
  2089. Case AName of
  2090. 'environments' : SetLength(Fenvironments,ALength);
  2091. else
  2092. Inherited SetArrayLength(AName,ALength);
  2093. end;
  2094. end;
  2095. {$ENDIF VER2_6}
  2096. { --------------------------------------------------------------------
  2097. TListFoldersResponse
  2098. --------------------------------------------------------------------}
  2099. Procedure TListFoldersResponse.Setfolders(AIndex : Integer; const AValue : TListFoldersResponseTypefoldersArray);
  2100. begin
  2101. If (Ffolders=AValue) then exit;
  2102. Ffolders:=AValue;
  2103. MarkPropertyChanged(AIndex);
  2104. end;
  2105. //2.6.4. bug workaround
  2106. {$IFDEF VER2_6}
  2107. Procedure TListFoldersResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2108. begin
  2109. Case AName of
  2110. 'folders' : SetLength(Ffolders,ALength);
  2111. else
  2112. Inherited SetArrayLength(AName,ALength);
  2113. end;
  2114. end;
  2115. {$ENDIF VER2_6}
  2116. { --------------------------------------------------------------------
  2117. TListTagsResponse
  2118. --------------------------------------------------------------------}
  2119. Procedure TListTagsResponse.Settags(AIndex : Integer; const AValue : TListTagsResponseTypetagsArray);
  2120. begin
  2121. If (Ftags=AValue) then exit;
  2122. Ftags:=AValue;
  2123. MarkPropertyChanged(AIndex);
  2124. end;
  2125. //2.6.4. bug workaround
  2126. {$IFDEF VER2_6}
  2127. Procedure TListTagsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2128. begin
  2129. Case AName of
  2130. 'tags' : SetLength(Ftags,ALength);
  2131. else
  2132. Inherited SetArrayLength(AName,ALength);
  2133. end;
  2134. end;
  2135. {$ENDIF VER2_6}
  2136. { --------------------------------------------------------------------
  2137. TListTriggersResponse
  2138. --------------------------------------------------------------------}
  2139. Procedure TListTriggersResponse.Settriggers(AIndex : Integer; const AValue : TListTriggersResponseTypetriggersArray);
  2140. begin
  2141. If (Ftriggers=AValue) then exit;
  2142. Ftriggers:=AValue;
  2143. MarkPropertyChanged(AIndex);
  2144. end;
  2145. //2.6.4. bug workaround
  2146. {$IFDEF VER2_6}
  2147. Procedure TListTriggersResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2148. begin
  2149. Case AName of
  2150. 'triggers' : SetLength(Ftriggers,ALength);
  2151. else
  2152. Inherited SetArrayLength(AName,ALength);
  2153. end;
  2154. end;
  2155. {$ENDIF VER2_6}
  2156. { --------------------------------------------------------------------
  2157. TListVariablesResponse
  2158. --------------------------------------------------------------------}
  2159. Procedure TListVariablesResponse.Setvariables(AIndex : Integer; const AValue : TListVariablesResponseTypevariablesArray);
  2160. begin
  2161. If (Fvariables=AValue) then exit;
  2162. Fvariables:=AValue;
  2163. MarkPropertyChanged(AIndex);
  2164. end;
  2165. //2.6.4. bug workaround
  2166. {$IFDEF VER2_6}
  2167. Procedure TListVariablesResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2168. begin
  2169. Case AName of
  2170. 'variables' : SetLength(Fvariables,ALength);
  2171. else
  2172. Inherited SetArrayLength(AName,ALength);
  2173. end;
  2174. end;
  2175. {$ENDIF VER2_6}
  2176. { --------------------------------------------------------------------
  2177. TMacro
  2178. --------------------------------------------------------------------}
  2179. Procedure TMacro.SetaccountId(AIndex : Integer; const AValue : String);
  2180. begin
  2181. If (FaccountId=AValue) then exit;
  2182. FaccountId:=AValue;
  2183. MarkPropertyChanged(AIndex);
  2184. end;
  2185. Procedure TMacro.SetcontainerId(AIndex : Integer; const AValue : String);
  2186. begin
  2187. If (FcontainerId=AValue) then exit;
  2188. FcontainerId:=AValue;
  2189. MarkPropertyChanged(AIndex);
  2190. end;
  2191. Procedure TMacro.SetdisablingRuleId(AIndex : Integer; const AValue : TStringArray);
  2192. begin
  2193. If (FdisablingRuleId=AValue) then exit;
  2194. FdisablingRuleId:=AValue;
  2195. MarkPropertyChanged(AIndex);
  2196. end;
  2197. Procedure TMacro.SetenablingRuleId(AIndex : Integer; const AValue : TStringArray);
  2198. begin
  2199. If (FenablingRuleId=AValue) then exit;
  2200. FenablingRuleId:=AValue;
  2201. MarkPropertyChanged(AIndex);
  2202. end;
  2203. Procedure TMacro.Setfingerprint(AIndex : Integer; const AValue : String);
  2204. begin
  2205. If (Ffingerprint=AValue) then exit;
  2206. Ffingerprint:=AValue;
  2207. MarkPropertyChanged(AIndex);
  2208. end;
  2209. Procedure TMacro.SetmacroId(AIndex : Integer; const AValue : String);
  2210. begin
  2211. If (FmacroId=AValue) then exit;
  2212. FmacroId:=AValue;
  2213. MarkPropertyChanged(AIndex);
  2214. end;
  2215. Procedure TMacro.Setname(AIndex : Integer; const AValue : String);
  2216. begin
  2217. If (Fname=AValue) then exit;
  2218. Fname:=AValue;
  2219. MarkPropertyChanged(AIndex);
  2220. end;
  2221. Procedure TMacro.Setnotes(AIndex : Integer; const AValue : String);
  2222. begin
  2223. If (Fnotes=AValue) then exit;
  2224. Fnotes:=AValue;
  2225. MarkPropertyChanged(AIndex);
  2226. end;
  2227. Procedure TMacro.Setparameter(AIndex : Integer; const AValue : TMacroTypeparameterArray);
  2228. begin
  2229. If (Fparameter=AValue) then exit;
  2230. Fparameter:=AValue;
  2231. MarkPropertyChanged(AIndex);
  2232. end;
  2233. Procedure TMacro.SetparentFolderId(AIndex : Integer; const AValue : String);
  2234. begin
  2235. If (FparentFolderId=AValue) then exit;
  2236. FparentFolderId:=AValue;
  2237. MarkPropertyChanged(AIndex);
  2238. end;
  2239. Procedure TMacro.SetscheduleEndMs(AIndex : Integer; const AValue : String);
  2240. begin
  2241. If (FscheduleEndMs=AValue) then exit;
  2242. FscheduleEndMs:=AValue;
  2243. MarkPropertyChanged(AIndex);
  2244. end;
  2245. Procedure TMacro.SetscheduleStartMs(AIndex : Integer; const AValue : String);
  2246. begin
  2247. If (FscheduleStartMs=AValue) then exit;
  2248. FscheduleStartMs:=AValue;
  2249. MarkPropertyChanged(AIndex);
  2250. end;
  2251. Procedure TMacro.Set_type(AIndex : Integer; const AValue : String);
  2252. begin
  2253. If (F_type=AValue) then exit;
  2254. F_type:=AValue;
  2255. MarkPropertyChanged(AIndex);
  2256. end;
  2257. Class Function TMacro.ExportPropertyName(Const AName : String) :String;
  2258. begin
  2259. Case AName of
  2260. '_type' : Result:='type';
  2261. else
  2262. Result:=Inherited ExportPropertyName(AName);
  2263. end;
  2264. end;
  2265. //2.6.4. bug workaround
  2266. {$IFDEF VER2_6}
  2267. Procedure TMacro.SetArrayLength(Const AName : String; ALength : Longint);
  2268. begin
  2269. Case AName of
  2270. 'disablingruleid' : SetLength(FdisablingRuleId,ALength);
  2271. 'enablingruleid' : SetLength(FenablingRuleId,ALength);
  2272. 'parameter' : SetLength(Fparameter,ALength);
  2273. else
  2274. Inherited SetArrayLength(AName,ALength);
  2275. end;
  2276. end;
  2277. {$ENDIF VER2_6}
  2278. { --------------------------------------------------------------------
  2279. TParameter
  2280. --------------------------------------------------------------------}
  2281. Procedure TParameter.Setkey(AIndex : Integer; const AValue : String);
  2282. begin
  2283. If (Fkey=AValue) then exit;
  2284. Fkey:=AValue;
  2285. MarkPropertyChanged(AIndex);
  2286. end;
  2287. Procedure TParameter.Setlist(AIndex : Integer; const AValue : TParameterTypelistArray);
  2288. begin
  2289. If (Flist=AValue) then exit;
  2290. Flist:=AValue;
  2291. MarkPropertyChanged(AIndex);
  2292. end;
  2293. Procedure TParameter.Setmap(AIndex : Integer; const AValue : TParameterTypemapArray);
  2294. begin
  2295. If (Fmap=AValue) then exit;
  2296. Fmap:=AValue;
  2297. MarkPropertyChanged(AIndex);
  2298. end;
  2299. Procedure TParameter.Set_type(AIndex : Integer; const AValue : String);
  2300. begin
  2301. If (F_type=AValue) then exit;
  2302. F_type:=AValue;
  2303. MarkPropertyChanged(AIndex);
  2304. end;
  2305. Procedure TParameter.Setvalue(AIndex : Integer; const AValue : String);
  2306. begin
  2307. If (Fvalue=AValue) then exit;
  2308. Fvalue:=AValue;
  2309. MarkPropertyChanged(AIndex);
  2310. end;
  2311. Class Function TParameter.ExportPropertyName(Const AName : String) :String;
  2312. begin
  2313. Case AName of
  2314. '_type' : Result:='type';
  2315. else
  2316. Result:=Inherited ExportPropertyName(AName);
  2317. end;
  2318. end;
  2319. //2.6.4. bug workaround
  2320. {$IFDEF VER2_6}
  2321. Procedure TParameter.SetArrayLength(Const AName : String; ALength : Longint);
  2322. begin
  2323. Case AName of
  2324. 'list' : SetLength(Flist,ALength);
  2325. 'map' : SetLength(Fmap,ALength);
  2326. else
  2327. Inherited SetArrayLength(AName,ALength);
  2328. end;
  2329. end;
  2330. {$ENDIF VER2_6}
  2331. { --------------------------------------------------------------------
  2332. TPublishContainerVersionResponse
  2333. --------------------------------------------------------------------}
  2334. Procedure TPublishContainerVersionResponse.SetcompilerError(AIndex : Integer; const AValue : boolean);
  2335. begin
  2336. If (FcompilerError=AValue) then exit;
  2337. FcompilerError:=AValue;
  2338. MarkPropertyChanged(AIndex);
  2339. end;
  2340. Procedure TPublishContainerVersionResponse.SetcontainerVersion(AIndex : Integer; const AValue : TContainerVersion);
  2341. begin
  2342. If (FcontainerVersion=AValue) then exit;
  2343. FcontainerVersion:=AValue;
  2344. MarkPropertyChanged(AIndex);
  2345. end;
  2346. { --------------------------------------------------------------------
  2347. TRule
  2348. --------------------------------------------------------------------}
  2349. Procedure TRule.SetaccountId(AIndex : Integer; const AValue : String);
  2350. begin
  2351. If (FaccountId=AValue) then exit;
  2352. FaccountId:=AValue;
  2353. MarkPropertyChanged(AIndex);
  2354. end;
  2355. Procedure TRule.Setcondition(AIndex : Integer; const AValue : TRuleTypeconditionArray);
  2356. begin
  2357. If (Fcondition=AValue) then exit;
  2358. Fcondition:=AValue;
  2359. MarkPropertyChanged(AIndex);
  2360. end;
  2361. Procedure TRule.SetcontainerId(AIndex : Integer; const AValue : String);
  2362. begin
  2363. If (FcontainerId=AValue) then exit;
  2364. FcontainerId:=AValue;
  2365. MarkPropertyChanged(AIndex);
  2366. end;
  2367. Procedure TRule.Setfingerprint(AIndex : Integer; const AValue : String);
  2368. begin
  2369. If (Ffingerprint=AValue) then exit;
  2370. Ffingerprint:=AValue;
  2371. MarkPropertyChanged(AIndex);
  2372. end;
  2373. Procedure TRule.Setname(AIndex : Integer; const AValue : String);
  2374. begin
  2375. If (Fname=AValue) then exit;
  2376. Fname:=AValue;
  2377. MarkPropertyChanged(AIndex);
  2378. end;
  2379. Procedure TRule.Setnotes(AIndex : Integer; const AValue : String);
  2380. begin
  2381. If (Fnotes=AValue) then exit;
  2382. Fnotes:=AValue;
  2383. MarkPropertyChanged(AIndex);
  2384. end;
  2385. Procedure TRule.SetruleId(AIndex : Integer; const AValue : String);
  2386. begin
  2387. If (FruleId=AValue) then exit;
  2388. FruleId:=AValue;
  2389. MarkPropertyChanged(AIndex);
  2390. end;
  2391. //2.6.4. bug workaround
  2392. {$IFDEF VER2_6}
  2393. Procedure TRule.SetArrayLength(Const AName : String; ALength : Longint);
  2394. begin
  2395. Case AName of
  2396. 'condition' : SetLength(Fcondition,ALength);
  2397. else
  2398. Inherited SetArrayLength(AName,ALength);
  2399. end;
  2400. end;
  2401. {$ENDIF VER2_6}
  2402. { --------------------------------------------------------------------
  2403. TSetupTag
  2404. --------------------------------------------------------------------}
  2405. Procedure TSetupTag.SetstopOnSetupFailure(AIndex : Integer; const AValue : boolean);
  2406. begin
  2407. If (FstopOnSetupFailure=AValue) then exit;
  2408. FstopOnSetupFailure:=AValue;
  2409. MarkPropertyChanged(AIndex);
  2410. end;
  2411. Procedure TSetupTag.SettagName(AIndex : Integer; const AValue : String);
  2412. begin
  2413. If (FtagName=AValue) then exit;
  2414. FtagName:=AValue;
  2415. MarkPropertyChanged(AIndex);
  2416. end;
  2417. { --------------------------------------------------------------------
  2418. TTag
  2419. --------------------------------------------------------------------}
  2420. Procedure TTag.SetaccountId(AIndex : Integer; const AValue : String);
  2421. begin
  2422. If (FaccountId=AValue) then exit;
  2423. FaccountId:=AValue;
  2424. MarkPropertyChanged(AIndex);
  2425. end;
  2426. Procedure TTag.SetblockingRuleId(AIndex : Integer; const AValue : TStringArray);
  2427. begin
  2428. If (FblockingRuleId=AValue) then exit;
  2429. FblockingRuleId:=AValue;
  2430. MarkPropertyChanged(AIndex);
  2431. end;
  2432. Procedure TTag.SetblockingTriggerId(AIndex : Integer; const AValue : TStringArray);
  2433. begin
  2434. If (FblockingTriggerId=AValue) then exit;
  2435. FblockingTriggerId:=AValue;
  2436. MarkPropertyChanged(AIndex);
  2437. end;
  2438. Procedure TTag.SetcontainerId(AIndex : Integer; const AValue : String);
  2439. begin
  2440. If (FcontainerId=AValue) then exit;
  2441. FcontainerId:=AValue;
  2442. MarkPropertyChanged(AIndex);
  2443. end;
  2444. Procedure TTag.Setfingerprint(AIndex : Integer; const AValue : String);
  2445. begin
  2446. If (Ffingerprint=AValue) then exit;
  2447. Ffingerprint:=AValue;
  2448. MarkPropertyChanged(AIndex);
  2449. end;
  2450. Procedure TTag.SetfiringRuleId(AIndex : Integer; const AValue : TStringArray);
  2451. begin
  2452. If (FfiringRuleId=AValue) then exit;
  2453. FfiringRuleId:=AValue;
  2454. MarkPropertyChanged(AIndex);
  2455. end;
  2456. Procedure TTag.SetfiringTriggerId(AIndex : Integer; const AValue : TStringArray);
  2457. begin
  2458. If (FfiringTriggerId=AValue) then exit;
  2459. FfiringTriggerId:=AValue;
  2460. MarkPropertyChanged(AIndex);
  2461. end;
  2462. Procedure TTag.SetliveOnly(AIndex : Integer; const AValue : boolean);
  2463. begin
  2464. If (FliveOnly=AValue) then exit;
  2465. FliveOnly:=AValue;
  2466. MarkPropertyChanged(AIndex);
  2467. end;
  2468. Procedure TTag.Setname(AIndex : Integer; const AValue : String);
  2469. begin
  2470. If (Fname=AValue) then exit;
  2471. Fname:=AValue;
  2472. MarkPropertyChanged(AIndex);
  2473. end;
  2474. Procedure TTag.Setnotes(AIndex : Integer; const AValue : String);
  2475. begin
  2476. If (Fnotes=AValue) then exit;
  2477. Fnotes:=AValue;
  2478. MarkPropertyChanged(AIndex);
  2479. end;
  2480. Procedure TTag.Setparameter(AIndex : Integer; const AValue : TTagTypeparameterArray);
  2481. begin
  2482. If (Fparameter=AValue) then exit;
  2483. Fparameter:=AValue;
  2484. MarkPropertyChanged(AIndex);
  2485. end;
  2486. Procedure TTag.SetparentFolderId(AIndex : Integer; const AValue : String);
  2487. begin
  2488. If (FparentFolderId=AValue) then exit;
  2489. FparentFolderId:=AValue;
  2490. MarkPropertyChanged(AIndex);
  2491. end;
  2492. Procedure TTag.Setpriority(AIndex : Integer; const AValue : TParameter);
  2493. begin
  2494. If (Fpriority=AValue) then exit;
  2495. Fpriority:=AValue;
  2496. MarkPropertyChanged(AIndex);
  2497. end;
  2498. Procedure TTag.SetscheduleEndMs(AIndex : Integer; const AValue : String);
  2499. begin
  2500. If (FscheduleEndMs=AValue) then exit;
  2501. FscheduleEndMs:=AValue;
  2502. MarkPropertyChanged(AIndex);
  2503. end;
  2504. Procedure TTag.SetscheduleStartMs(AIndex : Integer; const AValue : String);
  2505. begin
  2506. If (FscheduleStartMs=AValue) then exit;
  2507. FscheduleStartMs:=AValue;
  2508. MarkPropertyChanged(AIndex);
  2509. end;
  2510. Procedure TTag.SetsetupTag(AIndex : Integer; const AValue : TTagTypesetupTagArray);
  2511. begin
  2512. If (FsetupTag=AValue) then exit;
  2513. FsetupTag:=AValue;
  2514. MarkPropertyChanged(AIndex);
  2515. end;
  2516. Procedure TTag.SettagFiringOption(AIndex : Integer; const AValue : String);
  2517. begin
  2518. If (FtagFiringOption=AValue) then exit;
  2519. FtagFiringOption:=AValue;
  2520. MarkPropertyChanged(AIndex);
  2521. end;
  2522. Procedure TTag.SettagId(AIndex : Integer; const AValue : String);
  2523. begin
  2524. If (FtagId=AValue) then exit;
  2525. FtagId:=AValue;
  2526. MarkPropertyChanged(AIndex);
  2527. end;
  2528. Procedure TTag.SetteardownTag(AIndex : Integer; const AValue : TTagTypeteardownTagArray);
  2529. begin
  2530. If (FteardownTag=AValue) then exit;
  2531. FteardownTag:=AValue;
  2532. MarkPropertyChanged(AIndex);
  2533. end;
  2534. Procedure TTag.Set_type(AIndex : Integer; const AValue : String);
  2535. begin
  2536. If (F_type=AValue) then exit;
  2537. F_type:=AValue;
  2538. MarkPropertyChanged(AIndex);
  2539. end;
  2540. Class Function TTag.ExportPropertyName(Const AName : String) :String;
  2541. begin
  2542. Case AName of
  2543. '_type' : Result:='type';
  2544. else
  2545. Result:=Inherited ExportPropertyName(AName);
  2546. end;
  2547. end;
  2548. //2.6.4. bug workaround
  2549. {$IFDEF VER2_6}
  2550. Procedure TTag.SetArrayLength(Const AName : String; ALength : Longint);
  2551. begin
  2552. Case AName of
  2553. 'blockingruleid' : SetLength(FblockingRuleId,ALength);
  2554. 'blockingtriggerid' : SetLength(FblockingTriggerId,ALength);
  2555. 'firingruleid' : SetLength(FfiringRuleId,ALength);
  2556. 'firingtriggerid' : SetLength(FfiringTriggerId,ALength);
  2557. 'parameter' : SetLength(Fparameter,ALength);
  2558. 'setuptag' : SetLength(FsetupTag,ALength);
  2559. 'teardowntag' : SetLength(FteardownTag,ALength);
  2560. else
  2561. Inherited SetArrayLength(AName,ALength);
  2562. end;
  2563. end;
  2564. {$ENDIF VER2_6}
  2565. { --------------------------------------------------------------------
  2566. TTeardownTag
  2567. --------------------------------------------------------------------}
  2568. Procedure TTeardownTag.SetstopTeardownOnFailure(AIndex : Integer; const AValue : boolean);
  2569. begin
  2570. If (FstopTeardownOnFailure=AValue) then exit;
  2571. FstopTeardownOnFailure:=AValue;
  2572. MarkPropertyChanged(AIndex);
  2573. end;
  2574. Procedure TTeardownTag.SettagName(AIndex : Integer; const AValue : String);
  2575. begin
  2576. If (FtagName=AValue) then exit;
  2577. FtagName:=AValue;
  2578. MarkPropertyChanged(AIndex);
  2579. end;
  2580. { --------------------------------------------------------------------
  2581. TTrigger
  2582. --------------------------------------------------------------------}
  2583. Procedure TTrigger.SetaccountId(AIndex : Integer; const AValue : String);
  2584. begin
  2585. If (FaccountId=AValue) then exit;
  2586. FaccountId:=AValue;
  2587. MarkPropertyChanged(AIndex);
  2588. end;
  2589. Procedure TTrigger.SetautoEventFilter(AIndex : Integer; const AValue : TTriggerTypeautoEventFilterArray);
  2590. begin
  2591. If (FautoEventFilter=AValue) then exit;
  2592. FautoEventFilter:=AValue;
  2593. MarkPropertyChanged(AIndex);
  2594. end;
  2595. Procedure TTrigger.SetcheckValidation(AIndex : Integer; const AValue : TParameter);
  2596. begin
  2597. If (FcheckValidation=AValue) then exit;
  2598. FcheckValidation:=AValue;
  2599. MarkPropertyChanged(AIndex);
  2600. end;
  2601. Procedure TTrigger.SetcontainerId(AIndex : Integer; const AValue : String);
  2602. begin
  2603. If (FcontainerId=AValue) then exit;
  2604. FcontainerId:=AValue;
  2605. MarkPropertyChanged(AIndex);
  2606. end;
  2607. Procedure TTrigger.SetcustomEventFilter(AIndex : Integer; const AValue : TTriggerTypecustomEventFilterArray);
  2608. begin
  2609. If (FcustomEventFilter=AValue) then exit;
  2610. FcustomEventFilter:=AValue;
  2611. MarkPropertyChanged(AIndex);
  2612. end;
  2613. Procedure TTrigger.SetenableAllVideos(AIndex : Integer; const AValue : TParameter);
  2614. begin
  2615. If (FenableAllVideos=AValue) then exit;
  2616. FenableAllVideos:=AValue;
  2617. MarkPropertyChanged(AIndex);
  2618. end;
  2619. Procedure TTrigger.SeteventName(AIndex : Integer; const AValue : TParameter);
  2620. begin
  2621. If (FeventName=AValue) then exit;
  2622. FeventName:=AValue;
  2623. MarkPropertyChanged(AIndex);
  2624. end;
  2625. Procedure TTrigger.Setfilter(AIndex : Integer; const AValue : TTriggerTypefilterArray);
  2626. begin
  2627. If (Ffilter=AValue) then exit;
  2628. Ffilter:=AValue;
  2629. MarkPropertyChanged(AIndex);
  2630. end;
  2631. Procedure TTrigger.Setfingerprint(AIndex : Integer; const AValue : String);
  2632. begin
  2633. If (Ffingerprint=AValue) then exit;
  2634. Ffingerprint:=AValue;
  2635. MarkPropertyChanged(AIndex);
  2636. end;
  2637. Procedure TTrigger.Setinterval(AIndex : Integer; const AValue : TParameter);
  2638. begin
  2639. If (Finterval=AValue) then exit;
  2640. Finterval:=AValue;
  2641. MarkPropertyChanged(AIndex);
  2642. end;
  2643. Procedure TTrigger.Setlimit(AIndex : Integer; const AValue : TParameter);
  2644. begin
  2645. If (Flimit=AValue) then exit;
  2646. Flimit:=AValue;
  2647. MarkPropertyChanged(AIndex);
  2648. end;
  2649. Procedure TTrigger.Setname(AIndex : Integer; const AValue : String);
  2650. begin
  2651. If (Fname=AValue) then exit;
  2652. Fname:=AValue;
  2653. MarkPropertyChanged(AIndex);
  2654. end;
  2655. Procedure TTrigger.SetparentFolderId(AIndex : Integer; const AValue : String);
  2656. begin
  2657. If (FparentFolderId=AValue) then exit;
  2658. FparentFolderId:=AValue;
  2659. MarkPropertyChanged(AIndex);
  2660. end;
  2661. Procedure TTrigger.SettriggerId(AIndex : Integer; const AValue : String);
  2662. begin
  2663. If (FtriggerId=AValue) then exit;
  2664. FtriggerId:=AValue;
  2665. MarkPropertyChanged(AIndex);
  2666. end;
  2667. Procedure TTrigger.Set_type(AIndex : Integer; const AValue : String);
  2668. begin
  2669. If (F_type=AValue) then exit;
  2670. F_type:=AValue;
  2671. MarkPropertyChanged(AIndex);
  2672. end;
  2673. Procedure TTrigger.SetuniqueTriggerId(AIndex : Integer; const AValue : TParameter);
  2674. begin
  2675. If (FuniqueTriggerId=AValue) then exit;
  2676. FuniqueTriggerId:=AValue;
  2677. MarkPropertyChanged(AIndex);
  2678. end;
  2679. Procedure TTrigger.SetvideoPercentageList(AIndex : Integer; const AValue : TParameter);
  2680. begin
  2681. If (FvideoPercentageList=AValue) then exit;
  2682. FvideoPercentageList:=AValue;
  2683. MarkPropertyChanged(AIndex);
  2684. end;
  2685. Procedure TTrigger.SetwaitForTags(AIndex : Integer; const AValue : TParameter);
  2686. begin
  2687. If (FwaitForTags=AValue) then exit;
  2688. FwaitForTags:=AValue;
  2689. MarkPropertyChanged(AIndex);
  2690. end;
  2691. Procedure TTrigger.SetwaitForTagsTimeout(AIndex : Integer; const AValue : TParameter);
  2692. begin
  2693. If (FwaitForTagsTimeout=AValue) then exit;
  2694. FwaitForTagsTimeout:=AValue;
  2695. MarkPropertyChanged(AIndex);
  2696. end;
  2697. Class Function TTrigger.ExportPropertyName(Const AName : String) :String;
  2698. begin
  2699. Case AName of
  2700. '_type' : Result:='type';
  2701. else
  2702. Result:=Inherited ExportPropertyName(AName);
  2703. end;
  2704. end;
  2705. //2.6.4. bug workaround
  2706. {$IFDEF VER2_6}
  2707. Procedure TTrigger.SetArrayLength(Const AName : String; ALength : Longint);
  2708. begin
  2709. Case AName of
  2710. 'autoeventfilter' : SetLength(FautoEventFilter,ALength);
  2711. 'customeventfilter' : SetLength(FcustomEventFilter,ALength);
  2712. 'filter' : SetLength(Ffilter,ALength);
  2713. else
  2714. Inherited SetArrayLength(AName,ALength);
  2715. end;
  2716. end;
  2717. {$ENDIF VER2_6}
  2718. { --------------------------------------------------------------------
  2719. TUserAccess
  2720. --------------------------------------------------------------------}
  2721. Procedure TUserAccess.SetaccountAccess(AIndex : Integer; const AValue : TAccountAccess);
  2722. begin
  2723. If (FaccountAccess=AValue) then exit;
  2724. FaccountAccess:=AValue;
  2725. MarkPropertyChanged(AIndex);
  2726. end;
  2727. Procedure TUserAccess.SetaccountId(AIndex : Integer; const AValue : String);
  2728. begin
  2729. If (FaccountId=AValue) then exit;
  2730. FaccountId:=AValue;
  2731. MarkPropertyChanged(AIndex);
  2732. end;
  2733. Procedure TUserAccess.SetcontainerAccess(AIndex : Integer; const AValue : TUserAccessTypecontainerAccessArray);
  2734. begin
  2735. If (FcontainerAccess=AValue) then exit;
  2736. FcontainerAccess:=AValue;
  2737. MarkPropertyChanged(AIndex);
  2738. end;
  2739. Procedure TUserAccess.SetemailAddress(AIndex : Integer; const AValue : String);
  2740. begin
  2741. If (FemailAddress=AValue) then exit;
  2742. FemailAddress:=AValue;
  2743. MarkPropertyChanged(AIndex);
  2744. end;
  2745. Procedure TUserAccess.SetpermissionId(AIndex : Integer; const AValue : String);
  2746. begin
  2747. If (FpermissionId=AValue) then exit;
  2748. FpermissionId:=AValue;
  2749. MarkPropertyChanged(AIndex);
  2750. end;
  2751. //2.6.4. bug workaround
  2752. {$IFDEF VER2_6}
  2753. Procedure TUserAccess.SetArrayLength(Const AName : String; ALength : Longint);
  2754. begin
  2755. Case AName of
  2756. 'containeraccess' : SetLength(FcontainerAccess,ALength);
  2757. else
  2758. Inherited SetArrayLength(AName,ALength);
  2759. end;
  2760. end;
  2761. {$ENDIF VER2_6}
  2762. { --------------------------------------------------------------------
  2763. TVariable
  2764. --------------------------------------------------------------------}
  2765. Procedure TVariable.SetaccountId(AIndex : Integer; const AValue : String);
  2766. begin
  2767. If (FaccountId=AValue) then exit;
  2768. FaccountId:=AValue;
  2769. MarkPropertyChanged(AIndex);
  2770. end;
  2771. Procedure TVariable.SetcontainerId(AIndex : Integer; const AValue : String);
  2772. begin
  2773. If (FcontainerId=AValue) then exit;
  2774. FcontainerId:=AValue;
  2775. MarkPropertyChanged(AIndex);
  2776. end;
  2777. Procedure TVariable.SetdisablingTriggerId(AIndex : Integer; const AValue : TStringArray);
  2778. begin
  2779. If (FdisablingTriggerId=AValue) then exit;
  2780. FdisablingTriggerId:=AValue;
  2781. MarkPropertyChanged(AIndex);
  2782. end;
  2783. Procedure TVariable.SetenablingTriggerId(AIndex : Integer; const AValue : TStringArray);
  2784. begin
  2785. If (FenablingTriggerId=AValue) then exit;
  2786. FenablingTriggerId:=AValue;
  2787. MarkPropertyChanged(AIndex);
  2788. end;
  2789. Procedure TVariable.Setfingerprint(AIndex : Integer; const AValue : String);
  2790. begin
  2791. If (Ffingerprint=AValue) then exit;
  2792. Ffingerprint:=AValue;
  2793. MarkPropertyChanged(AIndex);
  2794. end;
  2795. Procedure TVariable.Setname(AIndex : Integer; const AValue : String);
  2796. begin
  2797. If (Fname=AValue) then exit;
  2798. Fname:=AValue;
  2799. MarkPropertyChanged(AIndex);
  2800. end;
  2801. Procedure TVariable.Setnotes(AIndex : Integer; const AValue : String);
  2802. begin
  2803. If (Fnotes=AValue) then exit;
  2804. Fnotes:=AValue;
  2805. MarkPropertyChanged(AIndex);
  2806. end;
  2807. Procedure TVariable.Setparameter(AIndex : Integer; const AValue : TVariableTypeparameterArray);
  2808. begin
  2809. If (Fparameter=AValue) then exit;
  2810. Fparameter:=AValue;
  2811. MarkPropertyChanged(AIndex);
  2812. end;
  2813. Procedure TVariable.SetparentFolderId(AIndex : Integer; const AValue : String);
  2814. begin
  2815. If (FparentFolderId=AValue) then exit;
  2816. FparentFolderId:=AValue;
  2817. MarkPropertyChanged(AIndex);
  2818. end;
  2819. Procedure TVariable.SetscheduleEndMs(AIndex : Integer; const AValue : String);
  2820. begin
  2821. If (FscheduleEndMs=AValue) then exit;
  2822. FscheduleEndMs:=AValue;
  2823. MarkPropertyChanged(AIndex);
  2824. end;
  2825. Procedure TVariable.SetscheduleStartMs(AIndex : Integer; const AValue : String);
  2826. begin
  2827. If (FscheduleStartMs=AValue) then exit;
  2828. FscheduleStartMs:=AValue;
  2829. MarkPropertyChanged(AIndex);
  2830. end;
  2831. Procedure TVariable.Set_type(AIndex : Integer; const AValue : String);
  2832. begin
  2833. If (F_type=AValue) then exit;
  2834. F_type:=AValue;
  2835. MarkPropertyChanged(AIndex);
  2836. end;
  2837. Procedure TVariable.SetvariableId(AIndex : Integer; const AValue : String);
  2838. begin
  2839. If (FvariableId=AValue) then exit;
  2840. FvariableId:=AValue;
  2841. MarkPropertyChanged(AIndex);
  2842. end;
  2843. Class Function TVariable.ExportPropertyName(Const AName : String) :String;
  2844. begin
  2845. Case AName of
  2846. '_type' : Result:='type';
  2847. else
  2848. Result:=Inherited ExportPropertyName(AName);
  2849. end;
  2850. end;
  2851. //2.6.4. bug workaround
  2852. {$IFDEF VER2_6}
  2853. Procedure TVariable.SetArrayLength(Const AName : String; ALength : Longint);
  2854. begin
  2855. Case AName of
  2856. 'disablingtriggerid' : SetLength(FdisablingTriggerId,ALength);
  2857. 'enablingtriggerid' : SetLength(FenablingTriggerId,ALength);
  2858. 'parameter' : SetLength(Fparameter,ALength);
  2859. else
  2860. Inherited SetArrayLength(AName,ALength);
  2861. end;
  2862. end;
  2863. {$ENDIF VER2_6}
  2864. { --------------------------------------------------------------------
  2865. TAccountsContainersEnvironmentsResource
  2866. --------------------------------------------------------------------}
  2867. Class Function TAccountsContainersEnvironmentsResource.ResourceName : String;
  2868. begin
  2869. Result:='environments';
  2870. end;
  2871. Class Function TAccountsContainersEnvironmentsResource.DefaultAPI : TGoogleAPIClass;
  2872. begin
  2873. Result:=TtagmanagerAPI;
  2874. end;
  2875. Function TAccountsContainersEnvironmentsResource.Create(accountId: string; containerId: string; aEnvironment : TEnvironment) : TEnvironment;
  2876. Const
  2877. _HTTPMethod = 'POST';
  2878. _Path = 'accounts/{accountId}/containers/{containerId}/environments';
  2879. _Methodid = 'tagmanager.accounts.containers.environments.create';
  2880. Var
  2881. _P : String;
  2882. begin
  2883. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  2884. Result:=ServiceCall(_HTTPMethod,_P,'',aEnvironment,TEnvironment) as TEnvironment;
  2885. end;
  2886. Procedure TAccountsContainersEnvironmentsResource.Delete(accountId: string; containerId: string; environmentId: string);
  2887. Const
  2888. _HTTPMethod = 'DELETE';
  2889. _Path = 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}';
  2890. _Methodid = 'tagmanager.accounts.containers.environments.delete';
  2891. Var
  2892. _P : String;
  2893. begin
  2894. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'environmentId',environmentId]);
  2895. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  2896. end;
  2897. Function TAccountsContainersEnvironmentsResource.Get(accountId: string; containerId: string; environmentId: string) : TEnvironment;
  2898. Const
  2899. _HTTPMethod = 'GET';
  2900. _Path = 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}';
  2901. _Methodid = 'tagmanager.accounts.containers.environments.get';
  2902. Var
  2903. _P : String;
  2904. begin
  2905. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'environmentId',environmentId]);
  2906. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEnvironment) as TEnvironment;
  2907. end;
  2908. Function TAccountsContainersEnvironmentsResource.List(accountId: string; containerId: string) : TListEnvironmentsResponse;
  2909. Const
  2910. _HTTPMethod = 'GET';
  2911. _Path = 'accounts/{accountId}/containers/{containerId}/environments';
  2912. _Methodid = 'tagmanager.accounts.containers.environments.list';
  2913. Var
  2914. _P : String;
  2915. begin
  2916. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  2917. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListEnvironmentsResponse) as TListEnvironmentsResponse;
  2918. end;
  2919. Function TAccountsContainersEnvironmentsResource.Patch(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment; AQuery : string = '') : TEnvironment;
  2920. Const
  2921. _HTTPMethod = 'PATCH';
  2922. _Path = 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}';
  2923. _Methodid = 'tagmanager.accounts.containers.environments.patch';
  2924. Var
  2925. _P : String;
  2926. begin
  2927. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'environmentId',environmentId]);
  2928. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aEnvironment,TEnvironment) as TEnvironment;
  2929. end;
  2930. Function TAccountsContainersEnvironmentsResource.Patch(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment; AQuery : TAccountsContainersEnvironmentspatchOptions) : TEnvironment;
  2931. Var
  2932. _Q : String;
  2933. begin
  2934. _Q:='';
  2935. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  2936. Result:=Patch(accountId,containerId,environmentId,aEnvironment,_Q);
  2937. end;
  2938. Function TAccountsContainersEnvironmentsResource.Update(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment; AQuery : string = '') : TEnvironment;
  2939. Const
  2940. _HTTPMethod = 'PUT';
  2941. _Path = 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}';
  2942. _Methodid = 'tagmanager.accounts.containers.environments.update';
  2943. Var
  2944. _P : String;
  2945. begin
  2946. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'environmentId',environmentId]);
  2947. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aEnvironment,TEnvironment) as TEnvironment;
  2948. end;
  2949. Function TAccountsContainersEnvironmentsResource.Update(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment; AQuery : TAccountsContainersEnvironmentsupdateOptions) : TEnvironment;
  2950. Var
  2951. _Q : String;
  2952. begin
  2953. _Q:='';
  2954. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  2955. Result:=Update(accountId,containerId,environmentId,aEnvironment,_Q);
  2956. end;
  2957. { --------------------------------------------------------------------
  2958. TAccountsContainersFoldersEntitiesResource
  2959. --------------------------------------------------------------------}
  2960. Class Function TAccountsContainersFoldersEntitiesResource.ResourceName : String;
  2961. begin
  2962. Result:='entities';
  2963. end;
  2964. Class Function TAccountsContainersFoldersEntitiesResource.DefaultAPI : TGoogleAPIClass;
  2965. begin
  2966. Result:=TtagmanagerAPI;
  2967. end;
  2968. Function TAccountsContainersFoldersEntitiesResource.List(accountId: string; containerId: string; folderId: string) : TFolderEntities;
  2969. Const
  2970. _HTTPMethod = 'GET';
  2971. _Path = 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities';
  2972. _Methodid = 'tagmanager.accounts.containers.folders.entities.list';
  2973. Var
  2974. _P : String;
  2975. begin
  2976. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'folderId',folderId]);
  2977. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TFolderEntities) as TFolderEntities;
  2978. end;
  2979. { --------------------------------------------------------------------
  2980. TAccountsContainersFoldersResource
  2981. --------------------------------------------------------------------}
  2982. Class Function TAccountsContainersFoldersResource.ResourceName : String;
  2983. begin
  2984. Result:='folders';
  2985. end;
  2986. Class Function TAccountsContainersFoldersResource.DefaultAPI : TGoogleAPIClass;
  2987. begin
  2988. Result:=TtagmanagerAPI;
  2989. end;
  2990. Function TAccountsContainersFoldersResource.Create(accountId: string; containerId: string; aFolder : TFolder) : TFolder;
  2991. Const
  2992. _HTTPMethod = 'POST';
  2993. _Path = 'accounts/{accountId}/containers/{containerId}/folders';
  2994. _Methodid = 'tagmanager.accounts.containers.folders.create';
  2995. Var
  2996. _P : String;
  2997. begin
  2998. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  2999. Result:=ServiceCall(_HTTPMethod,_P,'',aFolder,TFolder) as TFolder;
  3000. end;
  3001. Procedure TAccountsContainersFoldersResource.Delete(accountId: string; containerId: string; folderId: string);
  3002. Const
  3003. _HTTPMethod = 'DELETE';
  3004. _Path = 'accounts/{accountId}/containers/{containerId}/folders/{folderId}';
  3005. _Methodid = 'tagmanager.accounts.containers.folders.delete';
  3006. Var
  3007. _P : String;
  3008. begin
  3009. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'folderId',folderId]);
  3010. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3011. end;
  3012. Function TAccountsContainersFoldersResource.Get(accountId: string; containerId: string; folderId: string) : TFolder;
  3013. Const
  3014. _HTTPMethod = 'GET';
  3015. _Path = 'accounts/{accountId}/containers/{containerId}/folders/{folderId}';
  3016. _Methodid = 'tagmanager.accounts.containers.folders.get';
  3017. Var
  3018. _P : String;
  3019. begin
  3020. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'folderId',folderId]);
  3021. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TFolder) as TFolder;
  3022. end;
  3023. Function TAccountsContainersFoldersResource.List(accountId: string; containerId: string) : TListFoldersResponse;
  3024. Const
  3025. _HTTPMethod = 'GET';
  3026. _Path = 'accounts/{accountId}/containers/{containerId}/folders';
  3027. _Methodid = 'tagmanager.accounts.containers.folders.list';
  3028. Var
  3029. _P : String;
  3030. begin
  3031. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3032. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListFoldersResponse) as TListFoldersResponse;
  3033. end;
  3034. Function TAccountsContainersFoldersResource.Update(accountId: string; containerId: string; folderId: string; aFolder : TFolder; AQuery : string = '') : TFolder;
  3035. Const
  3036. _HTTPMethod = 'PUT';
  3037. _Path = 'accounts/{accountId}/containers/{containerId}/folders/{folderId}';
  3038. _Methodid = 'tagmanager.accounts.containers.folders.update';
  3039. Var
  3040. _P : String;
  3041. begin
  3042. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'folderId',folderId]);
  3043. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aFolder,TFolder) as TFolder;
  3044. end;
  3045. Function TAccountsContainersFoldersResource.Update(accountId: string; containerId: string; folderId: string; aFolder : TFolder; AQuery : TAccountsContainersFoldersupdateOptions) : TFolder;
  3046. Var
  3047. _Q : String;
  3048. begin
  3049. _Q:='';
  3050. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  3051. Result:=Update(accountId,containerId,folderId,aFolder,_Q);
  3052. end;
  3053. Function TAccountsContainersFoldersResource.GetEntitiesInstance : TAccountsContainersFoldersEntitiesResource;
  3054. begin
  3055. if (FEntitiesInstance=Nil) then
  3056. FEntitiesInstance:=CreateEntitiesResource;
  3057. Result:=FEntitiesInstance;
  3058. end;
  3059. Function TAccountsContainersFoldersResource.CreateEntitiesResource : TAccountsContainersFoldersEntitiesResource;
  3060. begin
  3061. Result:=CreateEntitiesResource(Self);
  3062. end;
  3063. Function TAccountsContainersFoldersResource.CreateEntitiesResource(AOwner : TComponent) : TAccountsContainersFoldersEntitiesResource;
  3064. begin
  3065. Result:=TAccountsContainersFoldersEntitiesResource.Create(AOwner);
  3066. Result.API:=Self.API;
  3067. end;
  3068. { --------------------------------------------------------------------
  3069. TAccountsContainersMove_foldersResource
  3070. --------------------------------------------------------------------}
  3071. Class Function TAccountsContainersMove_foldersResource.ResourceName : String;
  3072. begin
  3073. Result:='move_folders';
  3074. end;
  3075. Class Function TAccountsContainersMove_foldersResource.DefaultAPI : TGoogleAPIClass;
  3076. begin
  3077. Result:=TtagmanagerAPI;
  3078. end;
  3079. Procedure TAccountsContainersMove_foldersResource.Update(accountId: string; containerId: string; folderId: string; aFolder : TFolder; AQuery : string = '');
  3080. Const
  3081. _HTTPMethod = 'PUT';
  3082. _Path = 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}';
  3083. _Methodid = 'tagmanager.accounts.containers.move_folders.update';
  3084. Var
  3085. _P : String;
  3086. begin
  3087. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'folderId',folderId]);
  3088. ServiceCall(_HTTPMethod,_P,AQuery,aFolder,Nil);
  3089. end;
  3090. Procedure TAccountsContainersMove_foldersResource.Update(accountId: string; containerId: string; folderId: string; aFolder : TFolder; AQuery : TAccountsContainersMove_foldersupdateOptions);
  3091. Var
  3092. _Q : String;
  3093. begin
  3094. _Q:='';
  3095. AddToQuery(_Q,'tagId',AQuery.tagId);
  3096. AddToQuery(_Q,'triggerId',AQuery.triggerId);
  3097. AddToQuery(_Q,'variableId',AQuery.variableId);
  3098. Update(accountId,containerId,folderId,aFolder,_Q);
  3099. end;
  3100. { --------------------------------------------------------------------
  3101. TAccountsContainersReauthorize_environmentsResource
  3102. --------------------------------------------------------------------}
  3103. Class Function TAccountsContainersReauthorize_environmentsResource.ResourceName : String;
  3104. begin
  3105. Result:='reauthorize_environments';
  3106. end;
  3107. Class Function TAccountsContainersReauthorize_environmentsResource.DefaultAPI : TGoogleAPIClass;
  3108. begin
  3109. Result:=TtagmanagerAPI;
  3110. end;
  3111. Function TAccountsContainersReauthorize_environmentsResource.Update(accountId: string; containerId: string; environmentId: string; aEnvironment : TEnvironment) : TEnvironment;
  3112. Const
  3113. _HTTPMethod = 'PUT';
  3114. _Path = 'accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}';
  3115. _Methodid = 'tagmanager.accounts.containers.reauthorize_environments.update';
  3116. Var
  3117. _P : String;
  3118. begin
  3119. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'environmentId',environmentId]);
  3120. Result:=ServiceCall(_HTTPMethod,_P,'',aEnvironment,TEnvironment) as TEnvironment;
  3121. end;
  3122. { --------------------------------------------------------------------
  3123. TAccountsContainersTagsResource
  3124. --------------------------------------------------------------------}
  3125. Class Function TAccountsContainersTagsResource.ResourceName : String;
  3126. begin
  3127. Result:='tags';
  3128. end;
  3129. Class Function TAccountsContainersTagsResource.DefaultAPI : TGoogleAPIClass;
  3130. begin
  3131. Result:=TtagmanagerAPI;
  3132. end;
  3133. Function TAccountsContainersTagsResource.Create(accountId: string; containerId: string; aTag : TTag) : TTag;
  3134. Const
  3135. _HTTPMethod = 'POST';
  3136. _Path = 'accounts/{accountId}/containers/{containerId}/tags';
  3137. _Methodid = 'tagmanager.accounts.containers.tags.create';
  3138. Var
  3139. _P : String;
  3140. begin
  3141. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3142. Result:=ServiceCall(_HTTPMethod,_P,'',aTag,TTag) as TTag;
  3143. end;
  3144. Procedure TAccountsContainersTagsResource.Delete(accountId: string; containerId: string; tagId: string);
  3145. Const
  3146. _HTTPMethod = 'DELETE';
  3147. _Path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}';
  3148. _Methodid = 'tagmanager.accounts.containers.tags.delete';
  3149. Var
  3150. _P : String;
  3151. begin
  3152. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'tagId',tagId]);
  3153. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3154. end;
  3155. Function TAccountsContainersTagsResource.Get(accountId: string; containerId: string; tagId: string) : TTag;
  3156. Const
  3157. _HTTPMethod = 'GET';
  3158. _Path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}';
  3159. _Methodid = 'tagmanager.accounts.containers.tags.get';
  3160. Var
  3161. _P : String;
  3162. begin
  3163. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'tagId',tagId]);
  3164. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TTag) as TTag;
  3165. end;
  3166. Function TAccountsContainersTagsResource.List(accountId: string; containerId: string) : TListTagsResponse;
  3167. Const
  3168. _HTTPMethod = 'GET';
  3169. _Path = 'accounts/{accountId}/containers/{containerId}/tags';
  3170. _Methodid = 'tagmanager.accounts.containers.tags.list';
  3171. Var
  3172. _P : String;
  3173. begin
  3174. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3175. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListTagsResponse) as TListTagsResponse;
  3176. end;
  3177. Function TAccountsContainersTagsResource.Update(accountId: string; containerId: string; tagId: string; aTag : TTag; AQuery : string = '') : TTag;
  3178. Const
  3179. _HTTPMethod = 'PUT';
  3180. _Path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}';
  3181. _Methodid = 'tagmanager.accounts.containers.tags.update';
  3182. Var
  3183. _P : String;
  3184. begin
  3185. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'tagId',tagId]);
  3186. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aTag,TTag) as TTag;
  3187. end;
  3188. Function TAccountsContainersTagsResource.Update(accountId: string; containerId: string; tagId: string; aTag : TTag; AQuery : TAccountsContainersTagsupdateOptions) : TTag;
  3189. Var
  3190. _Q : String;
  3191. begin
  3192. _Q:='';
  3193. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  3194. Result:=Update(accountId,containerId,tagId,aTag,_Q);
  3195. end;
  3196. { --------------------------------------------------------------------
  3197. TAccountsContainersTriggersResource
  3198. --------------------------------------------------------------------}
  3199. Class Function TAccountsContainersTriggersResource.ResourceName : String;
  3200. begin
  3201. Result:='triggers';
  3202. end;
  3203. Class Function TAccountsContainersTriggersResource.DefaultAPI : TGoogleAPIClass;
  3204. begin
  3205. Result:=TtagmanagerAPI;
  3206. end;
  3207. Function TAccountsContainersTriggersResource.Create(accountId: string; containerId: string; aTrigger : TTrigger) : TTrigger;
  3208. Const
  3209. _HTTPMethod = 'POST';
  3210. _Path = 'accounts/{accountId}/containers/{containerId}/triggers';
  3211. _Methodid = 'tagmanager.accounts.containers.triggers.create';
  3212. Var
  3213. _P : String;
  3214. begin
  3215. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3216. Result:=ServiceCall(_HTTPMethod,_P,'',aTrigger,TTrigger) as TTrigger;
  3217. end;
  3218. Procedure TAccountsContainersTriggersResource.Delete(accountId: string; containerId: string; triggerId: string);
  3219. Const
  3220. _HTTPMethod = 'DELETE';
  3221. _Path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}';
  3222. _Methodid = 'tagmanager.accounts.containers.triggers.delete';
  3223. Var
  3224. _P : String;
  3225. begin
  3226. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'triggerId',triggerId]);
  3227. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3228. end;
  3229. Function TAccountsContainersTriggersResource.Get(accountId: string; containerId: string; triggerId: string) : TTrigger;
  3230. Const
  3231. _HTTPMethod = 'GET';
  3232. _Path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}';
  3233. _Methodid = 'tagmanager.accounts.containers.triggers.get';
  3234. Var
  3235. _P : String;
  3236. begin
  3237. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'triggerId',triggerId]);
  3238. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TTrigger) as TTrigger;
  3239. end;
  3240. Function TAccountsContainersTriggersResource.List(accountId: string; containerId: string) : TListTriggersResponse;
  3241. Const
  3242. _HTTPMethod = 'GET';
  3243. _Path = 'accounts/{accountId}/containers/{containerId}/triggers';
  3244. _Methodid = 'tagmanager.accounts.containers.triggers.list';
  3245. Var
  3246. _P : String;
  3247. begin
  3248. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3249. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListTriggersResponse) as TListTriggersResponse;
  3250. end;
  3251. Function TAccountsContainersTriggersResource.Update(accountId: string; containerId: string; triggerId: string; aTrigger : TTrigger; AQuery : string = '') : TTrigger;
  3252. Const
  3253. _HTTPMethod = 'PUT';
  3254. _Path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}';
  3255. _Methodid = 'tagmanager.accounts.containers.triggers.update';
  3256. Var
  3257. _P : String;
  3258. begin
  3259. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'triggerId',triggerId]);
  3260. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aTrigger,TTrigger) as TTrigger;
  3261. end;
  3262. Function TAccountsContainersTriggersResource.Update(accountId: string; containerId: string; triggerId: string; aTrigger : TTrigger; AQuery : TAccountsContainersTriggersupdateOptions) : TTrigger;
  3263. Var
  3264. _Q : String;
  3265. begin
  3266. _Q:='';
  3267. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  3268. Result:=Update(accountId,containerId,triggerId,aTrigger,_Q);
  3269. end;
  3270. { --------------------------------------------------------------------
  3271. TAccountsContainersVariablesResource
  3272. --------------------------------------------------------------------}
  3273. Class Function TAccountsContainersVariablesResource.ResourceName : String;
  3274. begin
  3275. Result:='variables';
  3276. end;
  3277. Class Function TAccountsContainersVariablesResource.DefaultAPI : TGoogleAPIClass;
  3278. begin
  3279. Result:=TtagmanagerAPI;
  3280. end;
  3281. Function TAccountsContainersVariablesResource.Create(accountId: string; containerId: string; aVariable : TVariable) : TVariable;
  3282. Const
  3283. _HTTPMethod = 'POST';
  3284. _Path = 'accounts/{accountId}/containers/{containerId}/variables';
  3285. _Methodid = 'tagmanager.accounts.containers.variables.create';
  3286. Var
  3287. _P : String;
  3288. begin
  3289. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3290. Result:=ServiceCall(_HTTPMethod,_P,'',aVariable,TVariable) as TVariable;
  3291. end;
  3292. Procedure TAccountsContainersVariablesResource.Delete(accountId: string; containerId: string; variableId: string);
  3293. Const
  3294. _HTTPMethod = 'DELETE';
  3295. _Path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}';
  3296. _Methodid = 'tagmanager.accounts.containers.variables.delete';
  3297. Var
  3298. _P : String;
  3299. begin
  3300. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'variableId',variableId]);
  3301. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3302. end;
  3303. Function TAccountsContainersVariablesResource.Get(accountId: string; containerId: string; variableId: string) : TVariable;
  3304. Const
  3305. _HTTPMethod = 'GET';
  3306. _Path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}';
  3307. _Methodid = 'tagmanager.accounts.containers.variables.get';
  3308. Var
  3309. _P : String;
  3310. begin
  3311. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'variableId',variableId]);
  3312. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TVariable) as TVariable;
  3313. end;
  3314. Function TAccountsContainersVariablesResource.List(accountId: string; containerId: string) : TListVariablesResponse;
  3315. Const
  3316. _HTTPMethod = 'GET';
  3317. _Path = 'accounts/{accountId}/containers/{containerId}/variables';
  3318. _Methodid = 'tagmanager.accounts.containers.variables.list';
  3319. Var
  3320. _P : String;
  3321. begin
  3322. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3323. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListVariablesResponse) as TListVariablesResponse;
  3324. end;
  3325. Function TAccountsContainersVariablesResource.Update(accountId: string; containerId: string; variableId: string; aVariable : TVariable; AQuery : string = '') : TVariable;
  3326. Const
  3327. _HTTPMethod = 'PUT';
  3328. _Path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}';
  3329. _Methodid = 'tagmanager.accounts.containers.variables.update';
  3330. Var
  3331. _P : String;
  3332. begin
  3333. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'variableId',variableId]);
  3334. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aVariable,TVariable) as TVariable;
  3335. end;
  3336. Function TAccountsContainersVariablesResource.Update(accountId: string; containerId: string; variableId: string; aVariable : TVariable; AQuery : TAccountsContainersVariablesupdateOptions) : TVariable;
  3337. Var
  3338. _Q : String;
  3339. begin
  3340. _Q:='';
  3341. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  3342. Result:=Update(accountId,containerId,variableId,aVariable,_Q);
  3343. end;
  3344. { --------------------------------------------------------------------
  3345. TAccountsContainersVersionsResource
  3346. --------------------------------------------------------------------}
  3347. Class Function TAccountsContainersVersionsResource.ResourceName : String;
  3348. begin
  3349. Result:='versions';
  3350. end;
  3351. Class Function TAccountsContainersVersionsResource.DefaultAPI : TGoogleAPIClass;
  3352. begin
  3353. Result:=TtagmanagerAPI;
  3354. end;
  3355. Function TAccountsContainersVersionsResource.Create(accountId: string; containerId: string; aCreateContainerVersionRequestVersionOptions : TCreateContainerVersionRequestVersionOptions) : TCreateContainerVersionResponse;
  3356. Const
  3357. _HTTPMethod = 'POST';
  3358. _Path = 'accounts/{accountId}/containers/{containerId}/versions';
  3359. _Methodid = 'tagmanager.accounts.containers.versions.create';
  3360. Var
  3361. _P : String;
  3362. begin
  3363. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3364. Result:=ServiceCall(_HTTPMethod,_P,'',aCreateContainerVersionRequestVersionOptions,TCreateContainerVersionResponse) as TCreateContainerVersionResponse;
  3365. end;
  3366. Procedure TAccountsContainersVersionsResource.Delete(accountId: string; containerId: string; containerVersionId: string);
  3367. Const
  3368. _HTTPMethod = 'DELETE';
  3369. _Path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}';
  3370. _Methodid = 'tagmanager.accounts.containers.versions.delete';
  3371. Var
  3372. _P : String;
  3373. begin
  3374. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'containerVersionId',containerVersionId]);
  3375. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3376. end;
  3377. Function TAccountsContainersVersionsResource.Get(accountId: string; containerId: string; containerVersionId: string) : TContainerVersion;
  3378. Const
  3379. _HTTPMethod = 'GET';
  3380. _Path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}';
  3381. _Methodid = 'tagmanager.accounts.containers.versions.get';
  3382. Var
  3383. _P : String;
  3384. begin
  3385. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'containerVersionId',containerVersionId]);
  3386. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TContainerVersion) as TContainerVersion;
  3387. end;
  3388. Function TAccountsContainersVersionsResource.List(accountId: string; containerId: string; AQuery : string = '') : TListContainerVersionsResponse;
  3389. Const
  3390. _HTTPMethod = 'GET';
  3391. _Path = 'accounts/{accountId}/containers/{containerId}/versions';
  3392. _Methodid = 'tagmanager.accounts.containers.versions.list';
  3393. Var
  3394. _P : String;
  3395. begin
  3396. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3397. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListContainerVersionsResponse) as TListContainerVersionsResponse;
  3398. end;
  3399. Function TAccountsContainersVersionsResource.List(accountId: string; containerId: string; AQuery : TAccountsContainersVersionslistOptions) : TListContainerVersionsResponse;
  3400. Var
  3401. _Q : String;
  3402. begin
  3403. _Q:='';
  3404. AddToQuery(_Q,'headers',AQuery.headers);
  3405. AddToQuery(_Q,'includeDeleted',AQuery.includeDeleted);
  3406. Result:=List(accountId,containerId,_Q);
  3407. end;
  3408. Function TAccountsContainersVersionsResource.Publish(accountId: string; containerId: string; containerVersionId: string; AQuery : string = '') : TPublishContainerVersionResponse;
  3409. Const
  3410. _HTTPMethod = 'POST';
  3411. _Path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish';
  3412. _Methodid = 'tagmanager.accounts.containers.versions.publish';
  3413. Var
  3414. _P : String;
  3415. begin
  3416. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'containerVersionId',containerVersionId]);
  3417. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPublishContainerVersionResponse) as TPublishContainerVersionResponse;
  3418. end;
  3419. Function TAccountsContainersVersionsResource.Publish(accountId: string; containerId: string; containerVersionId: string; AQuery : TAccountsContainersVersionspublishOptions) : TPublishContainerVersionResponse;
  3420. Var
  3421. _Q : String;
  3422. begin
  3423. _Q:='';
  3424. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  3425. Result:=Publish(accountId,containerId,containerVersionId,_Q);
  3426. end;
  3427. Function TAccountsContainersVersionsResource.Restore(accountId: string; containerId: string; containerVersionId: string) : TContainerVersion;
  3428. Const
  3429. _HTTPMethod = 'POST';
  3430. _Path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore';
  3431. _Methodid = 'tagmanager.accounts.containers.versions.restore';
  3432. Var
  3433. _P : String;
  3434. begin
  3435. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'containerVersionId',containerVersionId]);
  3436. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TContainerVersion) as TContainerVersion;
  3437. end;
  3438. Function TAccountsContainersVersionsResource.Undelete(accountId: string; containerId: string; containerVersionId: string) : TContainerVersion;
  3439. Const
  3440. _HTTPMethod = 'POST';
  3441. _Path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete';
  3442. _Methodid = 'tagmanager.accounts.containers.versions.undelete';
  3443. Var
  3444. _P : String;
  3445. begin
  3446. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'containerVersionId',containerVersionId]);
  3447. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TContainerVersion) as TContainerVersion;
  3448. end;
  3449. Function TAccountsContainersVersionsResource.Update(accountId: string; containerId: string; containerVersionId: string; aContainerVersion : TContainerVersion; AQuery : string = '') : TContainerVersion;
  3450. Const
  3451. _HTTPMethod = 'PUT';
  3452. _Path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}';
  3453. _Methodid = 'tagmanager.accounts.containers.versions.update';
  3454. Var
  3455. _P : String;
  3456. begin
  3457. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId,'containerVersionId',containerVersionId]);
  3458. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aContainerVersion,TContainerVersion) as TContainerVersion;
  3459. end;
  3460. Function TAccountsContainersVersionsResource.Update(accountId: string; containerId: string; containerVersionId: string; aContainerVersion : TContainerVersion; AQuery : TAccountsContainersVersionsupdateOptions) : TContainerVersion;
  3461. Var
  3462. _Q : String;
  3463. begin
  3464. _Q:='';
  3465. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  3466. Result:=Update(accountId,containerId,containerVersionId,aContainerVersion,_Q);
  3467. end;
  3468. { --------------------------------------------------------------------
  3469. TAccountsContainersResource
  3470. --------------------------------------------------------------------}
  3471. Class Function TAccountsContainersResource.ResourceName : String;
  3472. begin
  3473. Result:='containers';
  3474. end;
  3475. Class Function TAccountsContainersResource.DefaultAPI : TGoogleAPIClass;
  3476. begin
  3477. Result:=TtagmanagerAPI;
  3478. end;
  3479. Function TAccountsContainersResource.Create(accountId: string; aContainer : TContainer) : TContainer;
  3480. Const
  3481. _HTTPMethod = 'POST';
  3482. _Path = 'accounts/{accountId}/containers';
  3483. _Methodid = 'tagmanager.accounts.containers.create';
  3484. Var
  3485. _P : String;
  3486. begin
  3487. _P:=SubstitutePath(_Path,['accountId',accountId]);
  3488. Result:=ServiceCall(_HTTPMethod,_P,'',aContainer,TContainer) as TContainer;
  3489. end;
  3490. Procedure TAccountsContainersResource.Delete(accountId: string; containerId: string);
  3491. Const
  3492. _HTTPMethod = 'DELETE';
  3493. _Path = 'accounts/{accountId}/containers/{containerId}';
  3494. _Methodid = 'tagmanager.accounts.containers.delete';
  3495. Var
  3496. _P : String;
  3497. begin
  3498. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3499. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3500. end;
  3501. Function TAccountsContainersResource.Get(accountId: string; containerId: string) : TContainer;
  3502. Const
  3503. _HTTPMethod = 'GET';
  3504. _Path = 'accounts/{accountId}/containers/{containerId}';
  3505. _Methodid = 'tagmanager.accounts.containers.get';
  3506. Var
  3507. _P : String;
  3508. begin
  3509. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3510. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TContainer) as TContainer;
  3511. end;
  3512. Function TAccountsContainersResource.List(accountId: string) : TListContainersResponse;
  3513. Const
  3514. _HTTPMethod = 'GET';
  3515. _Path = 'accounts/{accountId}/containers';
  3516. _Methodid = 'tagmanager.accounts.containers.list';
  3517. Var
  3518. _P : String;
  3519. begin
  3520. _P:=SubstitutePath(_Path,['accountId',accountId]);
  3521. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListContainersResponse) as TListContainersResponse;
  3522. end;
  3523. Function TAccountsContainersResource.Update(accountId: string; containerId: string; aContainer : TContainer; AQuery : string = '') : TContainer;
  3524. Const
  3525. _HTTPMethod = 'PUT';
  3526. _Path = 'accounts/{accountId}/containers/{containerId}';
  3527. _Methodid = 'tagmanager.accounts.containers.update';
  3528. Var
  3529. _P : String;
  3530. begin
  3531. _P:=SubstitutePath(_Path,['accountId',accountId,'containerId',containerId]);
  3532. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aContainer,TContainer) as TContainer;
  3533. end;
  3534. Function TAccountsContainersResource.Update(accountId: string; containerId: string; aContainer : TContainer; AQuery : TAccountsContainersupdateOptions) : TContainer;
  3535. Var
  3536. _Q : String;
  3537. begin
  3538. _Q:='';
  3539. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  3540. Result:=Update(accountId,containerId,aContainer,_Q);
  3541. end;
  3542. Function TAccountsContainersResource.GetEnvironmentsInstance : TAccountsContainersEnvironmentsResource;
  3543. begin
  3544. if (FEnvironmentsInstance=Nil) then
  3545. FEnvironmentsInstance:=CreateEnvironmentsResource;
  3546. Result:=FEnvironmentsInstance;
  3547. end;
  3548. Function TAccountsContainersResource.CreateEnvironmentsResource : TAccountsContainersEnvironmentsResource;
  3549. begin
  3550. Result:=CreateEnvironmentsResource(Self);
  3551. end;
  3552. Function TAccountsContainersResource.CreateEnvironmentsResource(AOwner : TComponent) : TAccountsContainersEnvironmentsResource;
  3553. begin
  3554. Result:=TAccountsContainersEnvironmentsResource.Create(AOwner);
  3555. Result.API:=Self.API;
  3556. end;
  3557. Function TAccountsContainersResource.GetFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;
  3558. begin
  3559. if (FFoldersEntitiesInstance=Nil) then
  3560. FFoldersEntitiesInstance:=CreateFoldersEntitiesResource;
  3561. Result:=FFoldersEntitiesInstance;
  3562. end;
  3563. Function TAccountsContainersResource.CreateFoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource;
  3564. begin
  3565. Result:=CreateFoldersEntitiesResource(Self);
  3566. end;
  3567. Function TAccountsContainersResource.CreateFoldersEntitiesResource(AOwner : TComponent) : TAccountsContainersFoldersEntitiesResource;
  3568. begin
  3569. Result:=TAccountsContainersFoldersEntitiesResource.Create(AOwner);
  3570. Result.API:=Self.API;
  3571. end;
  3572. Function TAccountsContainersResource.GetFoldersInstance : TAccountsContainersFoldersResource;
  3573. begin
  3574. if (FFoldersInstance=Nil) then
  3575. FFoldersInstance:=CreateFoldersResource;
  3576. Result:=FFoldersInstance;
  3577. end;
  3578. Function TAccountsContainersResource.CreateFoldersResource : TAccountsContainersFoldersResource;
  3579. begin
  3580. Result:=CreateFoldersResource(Self);
  3581. end;
  3582. Function TAccountsContainersResource.CreateFoldersResource(AOwner : TComponent) : TAccountsContainersFoldersResource;
  3583. begin
  3584. Result:=TAccountsContainersFoldersResource.Create(AOwner);
  3585. Result.API:=Self.API;
  3586. end;
  3587. Function TAccountsContainersResource.GetMove_foldersInstance : TAccountsContainersMove_foldersResource;
  3588. begin
  3589. if (FMove_foldersInstance=Nil) then
  3590. FMove_foldersInstance:=CreateMove_foldersResource;
  3591. Result:=FMove_foldersInstance;
  3592. end;
  3593. Function TAccountsContainersResource.CreateMove_foldersResource : TAccountsContainersMove_foldersResource;
  3594. begin
  3595. Result:=CreateMove_foldersResource(Self);
  3596. end;
  3597. Function TAccountsContainersResource.CreateMove_foldersResource(AOwner : TComponent) : TAccountsContainersMove_foldersResource;
  3598. begin
  3599. Result:=TAccountsContainersMove_foldersResource.Create(AOwner);
  3600. Result.API:=Self.API;
  3601. end;
  3602. Function TAccountsContainersResource.GetReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;
  3603. begin
  3604. if (FReauthorize_environmentsInstance=Nil) then
  3605. FReauthorize_environmentsInstance:=CreateReauthorize_environmentsResource;
  3606. Result:=FReauthorize_environmentsInstance;
  3607. end;
  3608. Function TAccountsContainersResource.CreateReauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource;
  3609. begin
  3610. Result:=CreateReauthorize_environmentsResource(Self);
  3611. end;
  3612. Function TAccountsContainersResource.CreateReauthorize_environmentsResource(AOwner : TComponent) : TAccountsContainersReauthorize_environmentsResource;
  3613. begin
  3614. Result:=TAccountsContainersReauthorize_environmentsResource.Create(AOwner);
  3615. Result.API:=Self.API;
  3616. end;
  3617. Function TAccountsContainersResource.GetTagsInstance : TAccountsContainersTagsResource;
  3618. begin
  3619. if (FTagsInstance=Nil) then
  3620. FTagsInstance:=CreateTagsResource;
  3621. Result:=FTagsInstance;
  3622. end;
  3623. Function TAccountsContainersResource.CreateTagsResource : TAccountsContainersTagsResource;
  3624. begin
  3625. Result:=CreateTagsResource(Self);
  3626. end;
  3627. Function TAccountsContainersResource.CreateTagsResource(AOwner : TComponent) : TAccountsContainersTagsResource;
  3628. begin
  3629. Result:=TAccountsContainersTagsResource.Create(AOwner);
  3630. Result.API:=Self.API;
  3631. end;
  3632. Function TAccountsContainersResource.GetTriggersInstance : TAccountsContainersTriggersResource;
  3633. begin
  3634. if (FTriggersInstance=Nil) then
  3635. FTriggersInstance:=CreateTriggersResource;
  3636. Result:=FTriggersInstance;
  3637. end;
  3638. Function TAccountsContainersResource.CreateTriggersResource : TAccountsContainersTriggersResource;
  3639. begin
  3640. Result:=CreateTriggersResource(Self);
  3641. end;
  3642. Function TAccountsContainersResource.CreateTriggersResource(AOwner : TComponent) : TAccountsContainersTriggersResource;
  3643. begin
  3644. Result:=TAccountsContainersTriggersResource.Create(AOwner);
  3645. Result.API:=Self.API;
  3646. end;
  3647. Function TAccountsContainersResource.GetVariablesInstance : TAccountsContainersVariablesResource;
  3648. begin
  3649. if (FVariablesInstance=Nil) then
  3650. FVariablesInstance:=CreateVariablesResource;
  3651. Result:=FVariablesInstance;
  3652. end;
  3653. Function TAccountsContainersResource.CreateVariablesResource : TAccountsContainersVariablesResource;
  3654. begin
  3655. Result:=CreateVariablesResource(Self);
  3656. end;
  3657. Function TAccountsContainersResource.CreateVariablesResource(AOwner : TComponent) : TAccountsContainersVariablesResource;
  3658. begin
  3659. Result:=TAccountsContainersVariablesResource.Create(AOwner);
  3660. Result.API:=Self.API;
  3661. end;
  3662. Function TAccountsContainersResource.GetVersionsInstance : TAccountsContainersVersionsResource;
  3663. begin
  3664. if (FVersionsInstance=Nil) then
  3665. FVersionsInstance:=CreateVersionsResource;
  3666. Result:=FVersionsInstance;
  3667. end;
  3668. Function TAccountsContainersResource.CreateVersionsResource : TAccountsContainersVersionsResource;
  3669. begin
  3670. Result:=CreateVersionsResource(Self);
  3671. end;
  3672. Function TAccountsContainersResource.CreateVersionsResource(AOwner : TComponent) : TAccountsContainersVersionsResource;
  3673. begin
  3674. Result:=TAccountsContainersVersionsResource.Create(AOwner);
  3675. Result.API:=Self.API;
  3676. end;
  3677. { --------------------------------------------------------------------
  3678. TAccountsPermissionsResource
  3679. --------------------------------------------------------------------}
  3680. Class Function TAccountsPermissionsResource.ResourceName : String;
  3681. begin
  3682. Result:='permissions';
  3683. end;
  3684. Class Function TAccountsPermissionsResource.DefaultAPI : TGoogleAPIClass;
  3685. begin
  3686. Result:=TtagmanagerAPI;
  3687. end;
  3688. Function TAccountsPermissionsResource.Create(accountId: string; aUserAccess : TUserAccess) : TUserAccess;
  3689. Const
  3690. _HTTPMethod = 'POST';
  3691. _Path = 'accounts/{accountId}/permissions';
  3692. _Methodid = 'tagmanager.accounts.permissions.create';
  3693. Var
  3694. _P : String;
  3695. begin
  3696. _P:=SubstitutePath(_Path,['accountId',accountId]);
  3697. Result:=ServiceCall(_HTTPMethod,_P,'',aUserAccess,TUserAccess) as TUserAccess;
  3698. end;
  3699. Procedure TAccountsPermissionsResource.Delete(accountId: string; permissionId: string);
  3700. Const
  3701. _HTTPMethod = 'DELETE';
  3702. _Path = 'accounts/{accountId}/permissions/{permissionId}';
  3703. _Methodid = 'tagmanager.accounts.permissions.delete';
  3704. Var
  3705. _P : String;
  3706. begin
  3707. _P:=SubstitutePath(_Path,['accountId',accountId,'permissionId',permissionId]);
  3708. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3709. end;
  3710. Function TAccountsPermissionsResource.Get(accountId: string; permissionId: string) : TUserAccess;
  3711. Const
  3712. _HTTPMethod = 'GET';
  3713. _Path = 'accounts/{accountId}/permissions/{permissionId}';
  3714. _Methodid = 'tagmanager.accounts.permissions.get';
  3715. Var
  3716. _P : String;
  3717. begin
  3718. _P:=SubstitutePath(_Path,['accountId',accountId,'permissionId',permissionId]);
  3719. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUserAccess) as TUserAccess;
  3720. end;
  3721. Function TAccountsPermissionsResource.List(accountId: string) : TListAccountUsersResponse;
  3722. Const
  3723. _HTTPMethod = 'GET';
  3724. _Path = 'accounts/{accountId}/permissions';
  3725. _Methodid = 'tagmanager.accounts.permissions.list';
  3726. Var
  3727. _P : String;
  3728. begin
  3729. _P:=SubstitutePath(_Path,['accountId',accountId]);
  3730. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListAccountUsersResponse) as TListAccountUsersResponse;
  3731. end;
  3732. Function TAccountsPermissionsResource.Update(accountId: string; permissionId: string; aUserAccess : TUserAccess) : TUserAccess;
  3733. Const
  3734. _HTTPMethod = 'PUT';
  3735. _Path = 'accounts/{accountId}/permissions/{permissionId}';
  3736. _Methodid = 'tagmanager.accounts.permissions.update';
  3737. Var
  3738. _P : String;
  3739. begin
  3740. _P:=SubstitutePath(_Path,['accountId',accountId,'permissionId',permissionId]);
  3741. Result:=ServiceCall(_HTTPMethod,_P,'',aUserAccess,TUserAccess) as TUserAccess;
  3742. end;
  3743. { --------------------------------------------------------------------
  3744. TAccountsResource
  3745. --------------------------------------------------------------------}
  3746. Class Function TAccountsResource.ResourceName : String;
  3747. begin
  3748. Result:='accounts';
  3749. end;
  3750. Class Function TAccountsResource.DefaultAPI : TGoogleAPIClass;
  3751. begin
  3752. Result:=TtagmanagerAPI;
  3753. end;
  3754. Function TAccountsResource.Get(accountId: string) : TAccount;
  3755. Const
  3756. _HTTPMethod = 'GET';
  3757. _Path = 'accounts/{accountId}';
  3758. _Methodid = 'tagmanager.accounts.get';
  3759. Var
  3760. _P : String;
  3761. begin
  3762. _P:=SubstitutePath(_Path,['accountId',accountId]);
  3763. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAccount) as TAccount;
  3764. end;
  3765. Function TAccountsResource.List : TListAccountsResponse;
  3766. Const
  3767. _HTTPMethod = 'GET';
  3768. _Path = 'accounts';
  3769. _Methodid = 'tagmanager.accounts.list';
  3770. begin
  3771. Result:=ServiceCall(_HTTPMethod,_Path,'',Nil,TListAccountsResponse) as TListAccountsResponse;
  3772. end;
  3773. Function TAccountsResource.Update(accountId: string; aAccount : TAccount; AQuery : string = '') : TAccount;
  3774. Const
  3775. _HTTPMethod = 'PUT';
  3776. _Path = 'accounts/{accountId}';
  3777. _Methodid = 'tagmanager.accounts.update';
  3778. Var
  3779. _P : String;
  3780. begin
  3781. _P:=SubstitutePath(_Path,['accountId',accountId]);
  3782. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aAccount,TAccount) as TAccount;
  3783. end;
  3784. Function TAccountsResource.Update(accountId: string; aAccount : TAccount; AQuery : TAccountsupdateOptions) : TAccount;
  3785. Var
  3786. _Q : String;
  3787. begin
  3788. _Q:='';
  3789. AddToQuery(_Q,'fingerprint',AQuery.fingerprint);
  3790. Result:=Update(accountId,aAccount,_Q);
  3791. end;
  3792. Function TAccountsResource.GetContainersEnvironmentsInstance : TAccountsContainersEnvironmentsResource;
  3793. begin
  3794. if (FContainersEnvironmentsInstance=Nil) then
  3795. FContainersEnvironmentsInstance:=CreateContainersEnvironmentsResource;
  3796. Result:=FContainersEnvironmentsInstance;
  3797. end;
  3798. Function TAccountsResource.CreateContainersEnvironmentsResource : TAccountsContainersEnvironmentsResource;
  3799. begin
  3800. Result:=CreateContainersEnvironmentsResource(Self);
  3801. end;
  3802. Function TAccountsResource.CreateContainersEnvironmentsResource(AOwner : TComponent) : TAccountsContainersEnvironmentsResource;
  3803. begin
  3804. Result:=TAccountsContainersEnvironmentsResource.Create(AOwner);
  3805. Result.API:=Self.API;
  3806. end;
  3807. Function TAccountsResource.GetContainersFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;
  3808. begin
  3809. if (FContainersFoldersEntitiesInstance=Nil) then
  3810. FContainersFoldersEntitiesInstance:=CreateContainersFoldersEntitiesResource;
  3811. Result:=FContainersFoldersEntitiesInstance;
  3812. end;
  3813. Function TAccountsResource.CreateContainersFoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource;
  3814. begin
  3815. Result:=CreateContainersFoldersEntitiesResource(Self);
  3816. end;
  3817. Function TAccountsResource.CreateContainersFoldersEntitiesResource(AOwner : TComponent) : TAccountsContainersFoldersEntitiesResource;
  3818. begin
  3819. Result:=TAccountsContainersFoldersEntitiesResource.Create(AOwner);
  3820. Result.API:=Self.API;
  3821. end;
  3822. Function TAccountsResource.GetContainersFoldersInstance : TAccountsContainersFoldersResource;
  3823. begin
  3824. if (FContainersFoldersInstance=Nil) then
  3825. FContainersFoldersInstance:=CreateContainersFoldersResource;
  3826. Result:=FContainersFoldersInstance;
  3827. end;
  3828. Function TAccountsResource.CreateContainersFoldersResource : TAccountsContainersFoldersResource;
  3829. begin
  3830. Result:=CreateContainersFoldersResource(Self);
  3831. end;
  3832. Function TAccountsResource.CreateContainersFoldersResource(AOwner : TComponent) : TAccountsContainersFoldersResource;
  3833. begin
  3834. Result:=TAccountsContainersFoldersResource.Create(AOwner);
  3835. Result.API:=Self.API;
  3836. end;
  3837. Function TAccountsResource.GetContainersMove_foldersInstance : TAccountsContainersMove_foldersResource;
  3838. begin
  3839. if (FContainersMove_foldersInstance=Nil) then
  3840. FContainersMove_foldersInstance:=CreateContainersMove_foldersResource;
  3841. Result:=FContainersMove_foldersInstance;
  3842. end;
  3843. Function TAccountsResource.CreateContainersMove_foldersResource : TAccountsContainersMove_foldersResource;
  3844. begin
  3845. Result:=CreateContainersMove_foldersResource(Self);
  3846. end;
  3847. Function TAccountsResource.CreateContainersMove_foldersResource(AOwner : TComponent) : TAccountsContainersMove_foldersResource;
  3848. begin
  3849. Result:=TAccountsContainersMove_foldersResource.Create(AOwner);
  3850. Result.API:=Self.API;
  3851. end;
  3852. Function TAccountsResource.GetContainersReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;
  3853. begin
  3854. if (FContainersReauthorize_environmentsInstance=Nil) then
  3855. FContainersReauthorize_environmentsInstance:=CreateContainersReauthorize_environmentsResource;
  3856. Result:=FContainersReauthorize_environmentsInstance;
  3857. end;
  3858. Function TAccountsResource.CreateContainersReauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource;
  3859. begin
  3860. Result:=CreateContainersReauthorize_environmentsResource(Self);
  3861. end;
  3862. Function TAccountsResource.CreateContainersReauthorize_environmentsResource(AOwner : TComponent) : TAccountsContainersReauthorize_environmentsResource;
  3863. begin
  3864. Result:=TAccountsContainersReauthorize_environmentsResource.Create(AOwner);
  3865. Result.API:=Self.API;
  3866. end;
  3867. Function TAccountsResource.GetContainersTagsInstance : TAccountsContainersTagsResource;
  3868. begin
  3869. if (FContainersTagsInstance=Nil) then
  3870. FContainersTagsInstance:=CreateContainersTagsResource;
  3871. Result:=FContainersTagsInstance;
  3872. end;
  3873. Function TAccountsResource.CreateContainersTagsResource : TAccountsContainersTagsResource;
  3874. begin
  3875. Result:=CreateContainersTagsResource(Self);
  3876. end;
  3877. Function TAccountsResource.CreateContainersTagsResource(AOwner : TComponent) : TAccountsContainersTagsResource;
  3878. begin
  3879. Result:=TAccountsContainersTagsResource.Create(AOwner);
  3880. Result.API:=Self.API;
  3881. end;
  3882. Function TAccountsResource.GetContainersTriggersInstance : TAccountsContainersTriggersResource;
  3883. begin
  3884. if (FContainersTriggersInstance=Nil) then
  3885. FContainersTriggersInstance:=CreateContainersTriggersResource;
  3886. Result:=FContainersTriggersInstance;
  3887. end;
  3888. Function TAccountsResource.CreateContainersTriggersResource : TAccountsContainersTriggersResource;
  3889. begin
  3890. Result:=CreateContainersTriggersResource(Self);
  3891. end;
  3892. Function TAccountsResource.CreateContainersTriggersResource(AOwner : TComponent) : TAccountsContainersTriggersResource;
  3893. begin
  3894. Result:=TAccountsContainersTriggersResource.Create(AOwner);
  3895. Result.API:=Self.API;
  3896. end;
  3897. Function TAccountsResource.GetContainersVariablesInstance : TAccountsContainersVariablesResource;
  3898. begin
  3899. if (FContainersVariablesInstance=Nil) then
  3900. FContainersVariablesInstance:=CreateContainersVariablesResource;
  3901. Result:=FContainersVariablesInstance;
  3902. end;
  3903. Function TAccountsResource.CreateContainersVariablesResource : TAccountsContainersVariablesResource;
  3904. begin
  3905. Result:=CreateContainersVariablesResource(Self);
  3906. end;
  3907. Function TAccountsResource.CreateContainersVariablesResource(AOwner : TComponent) : TAccountsContainersVariablesResource;
  3908. begin
  3909. Result:=TAccountsContainersVariablesResource.Create(AOwner);
  3910. Result.API:=Self.API;
  3911. end;
  3912. Function TAccountsResource.GetContainersVersionsInstance : TAccountsContainersVersionsResource;
  3913. begin
  3914. if (FContainersVersionsInstance=Nil) then
  3915. FContainersVersionsInstance:=CreateContainersVersionsResource;
  3916. Result:=FContainersVersionsInstance;
  3917. end;
  3918. Function TAccountsResource.CreateContainersVersionsResource : TAccountsContainersVersionsResource;
  3919. begin
  3920. Result:=CreateContainersVersionsResource(Self);
  3921. end;
  3922. Function TAccountsResource.CreateContainersVersionsResource(AOwner : TComponent) : TAccountsContainersVersionsResource;
  3923. begin
  3924. Result:=TAccountsContainersVersionsResource.Create(AOwner);
  3925. Result.API:=Self.API;
  3926. end;
  3927. Function TAccountsResource.GetContainersInstance : TAccountsContainersResource;
  3928. begin
  3929. if (FContainersInstance=Nil) then
  3930. FContainersInstance:=CreateContainersResource;
  3931. Result:=FContainersInstance;
  3932. end;
  3933. Function TAccountsResource.CreateContainersResource : TAccountsContainersResource;
  3934. begin
  3935. Result:=CreateContainersResource(Self);
  3936. end;
  3937. Function TAccountsResource.CreateContainersResource(AOwner : TComponent) : TAccountsContainersResource;
  3938. begin
  3939. Result:=TAccountsContainersResource.Create(AOwner);
  3940. Result.API:=Self.API;
  3941. end;
  3942. Function TAccountsResource.GetPermissionsInstance : TAccountsPermissionsResource;
  3943. begin
  3944. if (FPermissionsInstance=Nil) then
  3945. FPermissionsInstance:=CreatePermissionsResource;
  3946. Result:=FPermissionsInstance;
  3947. end;
  3948. Function TAccountsResource.CreatePermissionsResource : TAccountsPermissionsResource;
  3949. begin
  3950. Result:=CreatePermissionsResource(Self);
  3951. end;
  3952. Function TAccountsResource.CreatePermissionsResource(AOwner : TComponent) : TAccountsPermissionsResource;
  3953. begin
  3954. Result:=TAccountsPermissionsResource.Create(AOwner);
  3955. Result.API:=Self.API;
  3956. end;
  3957. { --------------------------------------------------------------------
  3958. TTagmanagerAPI
  3959. --------------------------------------------------------------------}
  3960. Class Function TTagmanagerAPI.APIName : String;
  3961. begin
  3962. Result:='tagmanager';
  3963. end;
  3964. Class Function TTagmanagerAPI.APIVersion : String;
  3965. begin
  3966. Result:='v1';
  3967. end;
  3968. Class Function TTagmanagerAPI.APIRevision : String;
  3969. begin
  3970. Result:='20160310';
  3971. end;
  3972. Class Function TTagmanagerAPI.APIID : String;
  3973. begin
  3974. Result:='tagmanager:v1';
  3975. end;
  3976. Class Function TTagmanagerAPI.APITitle : String;
  3977. begin
  3978. Result:='Tag Manager API';
  3979. end;
  3980. Class Function TTagmanagerAPI.APIDescription : String;
  3981. begin
  3982. Result:='Accesses Tag Manager accounts and containers.';
  3983. end;
  3984. Class Function TTagmanagerAPI.APIOwnerDomain : String;
  3985. begin
  3986. Result:='google.com';
  3987. end;
  3988. Class Function TTagmanagerAPI.APIOwnerName : String;
  3989. begin
  3990. Result:='Google';
  3991. end;
  3992. Class Function TTagmanagerAPI.APIIcon16 : String;
  3993. begin
  3994. Result:='http://www.google.com/images/icons/product/search-16.gif';
  3995. end;
  3996. Class Function TTagmanagerAPI.APIIcon32 : String;
  3997. begin
  3998. Result:='http://www.google.com/images/icons/product/search-32.gif';
  3999. end;
  4000. Class Function TTagmanagerAPI.APIdocumentationLink : String;
  4001. begin
  4002. Result:='https://developers.google.com/tag-manager/api/v1/';
  4003. end;
  4004. Class Function TTagmanagerAPI.APIrootUrl : string;
  4005. begin
  4006. Result:='https://www.googleapis.com/';
  4007. end;
  4008. Class Function TTagmanagerAPI.APIbasePath : string;
  4009. begin
  4010. Result:='/tagmanager/v1/';
  4011. end;
  4012. Class Function TTagmanagerAPI.APIbaseURL : String;
  4013. begin
  4014. Result:='https://www.googleapis.com/tagmanager/v1/';
  4015. end;
  4016. Class Function TTagmanagerAPI.APIProtocol : string;
  4017. begin
  4018. Result:='rest';
  4019. end;
  4020. Class Function TTagmanagerAPI.APIservicePath : string;
  4021. begin
  4022. Result:='tagmanager/v1/';
  4023. end;
  4024. Class Function TTagmanagerAPI.APIbatchPath : String;
  4025. begin
  4026. Result:='batch';
  4027. end;
  4028. Class Function TTagmanagerAPI.APIAuthScopes : TScopeInfoArray;
  4029. begin
  4030. SetLength(Result,7);
  4031. Result[0].Name:='https://www.googleapis.com/auth/tagmanager.delete.containers';
  4032. Result[0].Description:='Delete your Google Tag Manager containers';
  4033. Result[1].Name:='https://www.googleapis.com/auth/tagmanager.edit.containers';
  4034. Result[1].Description:='Manage your Google Tag Manager containers';
  4035. Result[2].Name:='https://www.googleapis.com/auth/tagmanager.edit.containerversions';
  4036. Result[2].Description:='Manage your Google Tag Manager container versions';
  4037. Result[3].Name:='https://www.googleapis.com/auth/tagmanager.manage.accounts';
  4038. Result[3].Description:='Manage your Google Tag Manager accounts';
  4039. Result[4].Name:='https://www.googleapis.com/auth/tagmanager.manage.users';
  4040. Result[4].Description:='Manage user permissions of your Google Tag Manager data';
  4041. Result[5].Name:='https://www.googleapis.com/auth/tagmanager.publish';
  4042. Result[5].Description:='Publish your Google Tag Manager containers';
  4043. Result[6].Name:='https://www.googleapis.com/auth/tagmanager.readonly';
  4044. Result[6].Description:='View your Google Tag Manager containers';
  4045. end;
  4046. Class Function TTagmanagerAPI.APINeedsAuth : Boolean;
  4047. begin
  4048. Result:=True;
  4049. end;
  4050. Class Procedure TTagmanagerAPI.RegisterAPIResources;
  4051. begin
  4052. TAccount.RegisterObject;
  4053. TAccountAccess.RegisterObject;
  4054. TCondition.RegisterObject;
  4055. TContainer.RegisterObject;
  4056. TContainerAccess.RegisterObject;
  4057. TContainerVersion.RegisterObject;
  4058. TContainerVersionHeader.RegisterObject;
  4059. TCreateContainerVersionRequestVersionOptions.RegisterObject;
  4060. TCreateContainerVersionResponse.RegisterObject;
  4061. TEnvironment.RegisterObject;
  4062. TFolder.RegisterObject;
  4063. TFolderEntities.RegisterObject;
  4064. TListAccountUsersResponse.RegisterObject;
  4065. TListAccountsResponse.RegisterObject;
  4066. TListContainerVersionsResponse.RegisterObject;
  4067. TListContainersResponse.RegisterObject;
  4068. TListEnvironmentsResponse.RegisterObject;
  4069. TListFoldersResponse.RegisterObject;
  4070. TListTagsResponse.RegisterObject;
  4071. TListTriggersResponse.RegisterObject;
  4072. TListVariablesResponse.RegisterObject;
  4073. TMacro.RegisterObject;
  4074. TParameter.RegisterObject;
  4075. TPublishContainerVersionResponse.RegisterObject;
  4076. TRule.RegisterObject;
  4077. TSetupTag.RegisterObject;
  4078. TTag.RegisterObject;
  4079. TTeardownTag.RegisterObject;
  4080. TTrigger.RegisterObject;
  4081. TUserAccess.RegisterObject;
  4082. TVariable.RegisterObject;
  4083. end;
  4084. Function TTagmanagerAPI.GetAccountsContainersEnvironmentsInstance : TAccountsContainersEnvironmentsResource;
  4085. begin
  4086. if (FAccountsContainersEnvironmentsInstance=Nil) then
  4087. FAccountsContainersEnvironmentsInstance:=CreateAccountsContainersEnvironmentsResource;
  4088. Result:=FAccountsContainersEnvironmentsInstance;
  4089. end;
  4090. Function TTagmanagerAPI.CreateAccountsContainersEnvironmentsResource : TAccountsContainersEnvironmentsResource;
  4091. begin
  4092. Result:=CreateAccountsContainersEnvironmentsResource(Self);
  4093. end;
  4094. Function TTagmanagerAPI.CreateAccountsContainersEnvironmentsResource(AOwner : TComponent) : TAccountsContainersEnvironmentsResource;
  4095. begin
  4096. Result:=TAccountsContainersEnvironmentsResource.Create(AOwner);
  4097. Result.API:=Self.API;
  4098. end;
  4099. Function TTagmanagerAPI.GetAccountsContainersFoldersEntitiesInstance : TAccountsContainersFoldersEntitiesResource;
  4100. begin
  4101. if (FAccountsContainersFoldersEntitiesInstance=Nil) then
  4102. FAccountsContainersFoldersEntitiesInstance:=CreateAccountsContainersFoldersEntitiesResource;
  4103. Result:=FAccountsContainersFoldersEntitiesInstance;
  4104. end;
  4105. Function TTagmanagerAPI.CreateAccountsContainersFoldersEntitiesResource : TAccountsContainersFoldersEntitiesResource;
  4106. begin
  4107. Result:=CreateAccountsContainersFoldersEntitiesResource(Self);
  4108. end;
  4109. Function TTagmanagerAPI.CreateAccountsContainersFoldersEntitiesResource(AOwner : TComponent) : TAccountsContainersFoldersEntitiesResource;
  4110. begin
  4111. Result:=TAccountsContainersFoldersEntitiesResource.Create(AOwner);
  4112. Result.API:=Self.API;
  4113. end;
  4114. Function TTagmanagerAPI.GetAccountsContainersFoldersInstance : TAccountsContainersFoldersResource;
  4115. begin
  4116. if (FAccountsContainersFoldersInstance=Nil) then
  4117. FAccountsContainersFoldersInstance:=CreateAccountsContainersFoldersResource;
  4118. Result:=FAccountsContainersFoldersInstance;
  4119. end;
  4120. Function TTagmanagerAPI.CreateAccountsContainersFoldersResource : TAccountsContainersFoldersResource;
  4121. begin
  4122. Result:=CreateAccountsContainersFoldersResource(Self);
  4123. end;
  4124. Function TTagmanagerAPI.CreateAccountsContainersFoldersResource(AOwner : TComponent) : TAccountsContainersFoldersResource;
  4125. begin
  4126. Result:=TAccountsContainersFoldersResource.Create(AOwner);
  4127. Result.API:=Self.API;
  4128. end;
  4129. Function TTagmanagerAPI.GetAccountsContainersMove_foldersInstance : TAccountsContainersMove_foldersResource;
  4130. begin
  4131. if (FAccountsContainersMove_foldersInstance=Nil) then
  4132. FAccountsContainersMove_foldersInstance:=CreateAccountsContainersMove_foldersResource;
  4133. Result:=FAccountsContainersMove_foldersInstance;
  4134. end;
  4135. Function TTagmanagerAPI.CreateAccountsContainersMove_foldersResource : TAccountsContainersMove_foldersResource;
  4136. begin
  4137. Result:=CreateAccountsContainersMove_foldersResource(Self);
  4138. end;
  4139. Function TTagmanagerAPI.CreateAccountsContainersMove_foldersResource(AOwner : TComponent) : TAccountsContainersMove_foldersResource;
  4140. begin
  4141. Result:=TAccountsContainersMove_foldersResource.Create(AOwner);
  4142. Result.API:=Self.API;
  4143. end;
  4144. Function TTagmanagerAPI.GetAccountsContainersReauthorize_environmentsInstance : TAccountsContainersReauthorize_environmentsResource;
  4145. begin
  4146. if (FAccountsContainersReauthorize_environmentsInstance=Nil) then
  4147. FAccountsContainersReauthorize_environmentsInstance:=CreateAccountsContainersReauthorize_environmentsResource;
  4148. Result:=FAccountsContainersReauthorize_environmentsInstance;
  4149. end;
  4150. Function TTagmanagerAPI.CreateAccountsContainersReauthorize_environmentsResource : TAccountsContainersReauthorize_environmentsResource;
  4151. begin
  4152. Result:=CreateAccountsContainersReauthorize_environmentsResource(Self);
  4153. end;
  4154. Function TTagmanagerAPI.CreateAccountsContainersReauthorize_environmentsResource(AOwner : TComponent) : TAccountsContainersReauthorize_environmentsResource;
  4155. begin
  4156. Result:=TAccountsContainersReauthorize_environmentsResource.Create(AOwner);
  4157. Result.API:=Self.API;
  4158. end;
  4159. Function TTagmanagerAPI.GetAccountsContainersTagsInstance : TAccountsContainersTagsResource;
  4160. begin
  4161. if (FAccountsContainersTagsInstance=Nil) then
  4162. FAccountsContainersTagsInstance:=CreateAccountsContainersTagsResource;
  4163. Result:=FAccountsContainersTagsInstance;
  4164. end;
  4165. Function TTagmanagerAPI.CreateAccountsContainersTagsResource : TAccountsContainersTagsResource;
  4166. begin
  4167. Result:=CreateAccountsContainersTagsResource(Self);
  4168. end;
  4169. Function TTagmanagerAPI.CreateAccountsContainersTagsResource(AOwner : TComponent) : TAccountsContainersTagsResource;
  4170. begin
  4171. Result:=TAccountsContainersTagsResource.Create(AOwner);
  4172. Result.API:=Self.API;
  4173. end;
  4174. Function TTagmanagerAPI.GetAccountsContainersTriggersInstance : TAccountsContainersTriggersResource;
  4175. begin
  4176. if (FAccountsContainersTriggersInstance=Nil) then
  4177. FAccountsContainersTriggersInstance:=CreateAccountsContainersTriggersResource;
  4178. Result:=FAccountsContainersTriggersInstance;
  4179. end;
  4180. Function TTagmanagerAPI.CreateAccountsContainersTriggersResource : TAccountsContainersTriggersResource;
  4181. begin
  4182. Result:=CreateAccountsContainersTriggersResource(Self);
  4183. end;
  4184. Function TTagmanagerAPI.CreateAccountsContainersTriggersResource(AOwner : TComponent) : TAccountsContainersTriggersResource;
  4185. begin
  4186. Result:=TAccountsContainersTriggersResource.Create(AOwner);
  4187. Result.API:=Self.API;
  4188. end;
  4189. Function TTagmanagerAPI.GetAccountsContainersVariablesInstance : TAccountsContainersVariablesResource;
  4190. begin
  4191. if (FAccountsContainersVariablesInstance=Nil) then
  4192. FAccountsContainersVariablesInstance:=CreateAccountsContainersVariablesResource;
  4193. Result:=FAccountsContainersVariablesInstance;
  4194. end;
  4195. Function TTagmanagerAPI.CreateAccountsContainersVariablesResource : TAccountsContainersVariablesResource;
  4196. begin
  4197. Result:=CreateAccountsContainersVariablesResource(Self);
  4198. end;
  4199. Function TTagmanagerAPI.CreateAccountsContainersVariablesResource(AOwner : TComponent) : TAccountsContainersVariablesResource;
  4200. begin
  4201. Result:=TAccountsContainersVariablesResource.Create(AOwner);
  4202. Result.API:=Self.API;
  4203. end;
  4204. Function TTagmanagerAPI.GetAccountsContainersVersionsInstance : TAccountsContainersVersionsResource;
  4205. begin
  4206. if (FAccountsContainersVersionsInstance=Nil) then
  4207. FAccountsContainersVersionsInstance:=CreateAccountsContainersVersionsResource;
  4208. Result:=FAccountsContainersVersionsInstance;
  4209. end;
  4210. Function TTagmanagerAPI.CreateAccountsContainersVersionsResource : TAccountsContainersVersionsResource;
  4211. begin
  4212. Result:=CreateAccountsContainersVersionsResource(Self);
  4213. end;
  4214. Function TTagmanagerAPI.CreateAccountsContainersVersionsResource(AOwner : TComponent) : TAccountsContainersVersionsResource;
  4215. begin
  4216. Result:=TAccountsContainersVersionsResource.Create(AOwner);
  4217. Result.API:=Self.API;
  4218. end;
  4219. Function TTagmanagerAPI.GetAccountsContainersInstance : TAccountsContainersResource;
  4220. begin
  4221. if (FAccountsContainersInstance=Nil) then
  4222. FAccountsContainersInstance:=CreateAccountsContainersResource;
  4223. Result:=FAccountsContainersInstance;
  4224. end;
  4225. Function TTagmanagerAPI.CreateAccountsContainersResource : TAccountsContainersResource;
  4226. begin
  4227. Result:=CreateAccountsContainersResource(Self);
  4228. end;
  4229. Function TTagmanagerAPI.CreateAccountsContainersResource(AOwner : TComponent) : TAccountsContainersResource;
  4230. begin
  4231. Result:=TAccountsContainersResource.Create(AOwner);
  4232. Result.API:=Self.API;
  4233. end;
  4234. Function TTagmanagerAPI.GetAccountsPermissionsInstance : TAccountsPermissionsResource;
  4235. begin
  4236. if (FAccountsPermissionsInstance=Nil) then
  4237. FAccountsPermissionsInstance:=CreateAccountsPermissionsResource;
  4238. Result:=FAccountsPermissionsInstance;
  4239. end;
  4240. Function TTagmanagerAPI.CreateAccountsPermissionsResource : TAccountsPermissionsResource;
  4241. begin
  4242. Result:=CreateAccountsPermissionsResource(Self);
  4243. end;
  4244. Function TTagmanagerAPI.CreateAccountsPermissionsResource(AOwner : TComponent) : TAccountsPermissionsResource;
  4245. begin
  4246. Result:=TAccountsPermissionsResource.Create(AOwner);
  4247. Result.API:=Self.API;
  4248. end;
  4249. Function TTagmanagerAPI.GetAccountsInstance : TAccountsResource;
  4250. begin
  4251. if (FAccountsInstance=Nil) then
  4252. FAccountsInstance:=CreateAccountsResource;
  4253. Result:=FAccountsInstance;
  4254. end;
  4255. Function TTagmanagerAPI.CreateAccountsResource : TAccountsResource;
  4256. begin
  4257. Result:=CreateAccountsResource(Self);
  4258. end;
  4259. Function TTagmanagerAPI.CreateAccountsResource(AOwner : TComponent) : TAccountsResource;
  4260. begin
  4261. Result:=TAccountsResource.Create(AOwner);
  4262. Result.API:=Self.API;
  4263. end;
  4264. initialization
  4265. TTagmanagerAPI.RegisterAPI;
  4266. end.