googledataproc.pp 129 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471
  1. unit googledataproc;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TCluster = Class;
  9. TClusterConfig = Class;
  10. TGceClusterConfig = Class;
  11. TInstanceGroupConfig = Class;
  12. TDiskConfig = Class;
  13. TManagedGroupConfig = Class;
  14. TSoftwareConfig = Class;
  15. TNodeInitializationAction = Class;
  16. TClusterStatus = Class;
  17. TOperation = Class;
  18. TStatus = Class;
  19. TListClustersResponse = Class;
  20. TDiagnoseClusterRequest = Class;
  21. TSubmitJobRequest = Class;
  22. TJob = Class;
  23. TJobReference = Class;
  24. TJobPlacement = Class;
  25. THadoopJob = Class;
  26. TLoggingConfig = Class;
  27. TSparkJob = Class;
  28. TPySparkJob = Class;
  29. THiveJob = Class;
  30. TQueryList = Class;
  31. TPigJob = Class;
  32. TSparkSqlJob = Class;
  33. TJobStatus = Class;
  34. TListJobsResponse = Class;
  35. TCancelJobRequest = Class;
  36. TEmpty = Class;
  37. TListOperationsResponse = Class;
  38. TDiagnoseClusterResults = Class;
  39. TClusterOperationMetadata = Class;
  40. TClusterOperationStatus = Class;
  41. TDiagnoseClusterOutputLocation = Class;
  42. TOperationMetadata = Class;
  43. TOperationStatus = Class;
  44. TClusterArray = Array of TCluster;
  45. TClusterConfigArray = Array of TClusterConfig;
  46. TGceClusterConfigArray = Array of TGceClusterConfig;
  47. TInstanceGroupConfigArray = Array of TInstanceGroupConfig;
  48. TDiskConfigArray = Array of TDiskConfig;
  49. TManagedGroupConfigArray = Array of TManagedGroupConfig;
  50. TSoftwareConfigArray = Array of TSoftwareConfig;
  51. TNodeInitializationActionArray = Array of TNodeInitializationAction;
  52. TClusterStatusArray = Array of TClusterStatus;
  53. TOperationArray = Array of TOperation;
  54. TStatusArray = Array of TStatus;
  55. TListClustersResponseArray = Array of TListClustersResponse;
  56. TDiagnoseClusterRequestArray = Array of TDiagnoseClusterRequest;
  57. TSubmitJobRequestArray = Array of TSubmitJobRequest;
  58. TJobArray = Array of TJob;
  59. TJobReferenceArray = Array of TJobReference;
  60. TJobPlacementArray = Array of TJobPlacement;
  61. THadoopJobArray = Array of THadoopJob;
  62. TLoggingConfigArray = Array of TLoggingConfig;
  63. TSparkJobArray = Array of TSparkJob;
  64. TPySparkJobArray = Array of TPySparkJob;
  65. THiveJobArray = Array of THiveJob;
  66. TQueryListArray = Array of TQueryList;
  67. TPigJobArray = Array of TPigJob;
  68. TSparkSqlJobArray = Array of TSparkSqlJob;
  69. TJobStatusArray = Array of TJobStatus;
  70. TListJobsResponseArray = Array of TListJobsResponse;
  71. TCancelJobRequestArray = Array of TCancelJobRequest;
  72. TEmptyArray = Array of TEmpty;
  73. TListOperationsResponseArray = Array of TListOperationsResponse;
  74. TDiagnoseClusterResultsArray = Array of TDiagnoseClusterResults;
  75. TClusterOperationMetadataArray = Array of TClusterOperationMetadata;
  76. TClusterOperationStatusArray = Array of TClusterOperationStatus;
  77. TDiagnoseClusterOutputLocationArray = Array of TDiagnoseClusterOutputLocation;
  78. TOperationMetadataArray = Array of TOperationMetadata;
  79. TOperationStatusArray = Array of TOperationStatus;
  80. //Anonymous types, using auto-generated names
  81. TGceClusterConfigTypemetadata = Class;
  82. TSoftwareConfigTypeproperties = Class;
  83. TOperationTypemetadata = Class;
  84. TOperationTyperesponse = Class;
  85. TStatusTypedetailsItem = Class;
  86. THadoopJobTypeproperties = Class;
  87. TLoggingConfigTypedriverLogLevels = Class;
  88. TSparkJobTypeproperties = Class;
  89. TPySparkJobTypeproperties = Class;
  90. THiveJobTypescriptVariables = Class;
  91. THiveJobTypeproperties = Class;
  92. TPigJobTypescriptVariables = Class;
  93. TPigJobTypeproperties = Class;
  94. TSparkSqlJobTypescriptVariables = Class;
  95. TSparkSqlJobTypeproperties = Class;
  96. TClusterTypestatusHistoryArray = Array of TClusterStatus;
  97. TClusterConfigTypeinitializationActionsArray = Array of TNodeInitializationAction;
  98. TStatusTypedetailsArray = Array of TStatusTypedetailsItem;
  99. TListClustersResponseTypeclustersArray = Array of TCluster;
  100. TJobTypestatusHistoryArray = Array of TJobStatus;
  101. TListJobsResponseTypejobsArray = Array of TJob;
  102. TListOperationsResponseTypeoperationsArray = Array of TOperation;
  103. TClusterOperationMetadataTypestatusHistoryArray = Array of TClusterOperationStatus;
  104. TOperationMetadataTypestatusHistoryArray = Array of TOperationStatus;
  105. { --------------------------------------------------------------------
  106. TCluster
  107. --------------------------------------------------------------------}
  108. TCluster = Class(TGoogleBaseObject)
  109. Private
  110. FprojectId : String;
  111. FclusterName : String;
  112. Fconfig : TClusterConfig;
  113. Fstatus : TClusterStatus;
  114. FstatusHistory : TClusterTypestatusHistoryArray;
  115. FclusterUuid : String;
  116. Protected
  117. //Property setters
  118. Procedure SetprojectId(AIndex : Integer; const AValue : String); virtual;
  119. Procedure SetclusterName(AIndex : Integer; const AValue : String); virtual;
  120. Procedure Setconfig(AIndex : Integer; const AValue : TClusterConfig); virtual;
  121. Procedure Setstatus(AIndex : Integer; const AValue : TClusterStatus); virtual;
  122. Procedure SetstatusHistory(AIndex : Integer; const AValue : TClusterTypestatusHistoryArray); virtual;
  123. Procedure SetclusterUuid(AIndex : Integer; const AValue : String); virtual;
  124. //2.6.4. bug workaround
  125. {$IFDEF VER2_6}
  126. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  127. {$ENDIF VER2_6}
  128. Public
  129. Published
  130. Property projectId : String Index 0 Read FprojectId Write SetprojectId;
  131. Property clusterName : String Index 8 Read FclusterName Write SetclusterName;
  132. Property config : TClusterConfig Index 16 Read Fconfig Write Setconfig;
  133. Property status : TClusterStatus Index 24 Read Fstatus Write Setstatus;
  134. Property statusHistory : TClusterTypestatusHistoryArray Index 32 Read FstatusHistory Write SetstatusHistory;
  135. Property clusterUuid : String Index 40 Read FclusterUuid Write SetclusterUuid;
  136. end;
  137. TClusterClass = Class of TCluster;
  138. { --------------------------------------------------------------------
  139. TClusterConfig
  140. --------------------------------------------------------------------}
  141. TClusterConfig = Class(TGoogleBaseObject)
  142. Private
  143. FconfigBucket : String;
  144. FgceClusterConfig : TGceClusterConfig;
  145. FmasterConfig : TInstanceGroupConfig;
  146. FworkerConfig : TInstanceGroupConfig;
  147. FsecondaryWorkerConfig : TInstanceGroupConfig;
  148. FsoftwareConfig : TSoftwareConfig;
  149. FinitializationActions : TClusterConfigTypeinitializationActionsArray;
  150. Protected
  151. //Property setters
  152. Procedure SetconfigBucket(AIndex : Integer; const AValue : String); virtual;
  153. Procedure SetgceClusterConfig(AIndex : Integer; const AValue : TGceClusterConfig); virtual;
  154. Procedure SetmasterConfig(AIndex : Integer; const AValue : TInstanceGroupConfig); virtual;
  155. Procedure SetworkerConfig(AIndex : Integer; const AValue : TInstanceGroupConfig); virtual;
  156. Procedure SetsecondaryWorkerConfig(AIndex : Integer; const AValue : TInstanceGroupConfig); virtual;
  157. Procedure SetsoftwareConfig(AIndex : Integer; const AValue : TSoftwareConfig); virtual;
  158. Procedure SetinitializationActions(AIndex : Integer; const AValue : TClusterConfigTypeinitializationActionsArray); virtual;
  159. //2.6.4. bug workaround
  160. {$IFDEF VER2_6}
  161. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  162. {$ENDIF VER2_6}
  163. Public
  164. Published
  165. Property configBucket : String Index 0 Read FconfigBucket Write SetconfigBucket;
  166. Property gceClusterConfig : TGceClusterConfig Index 8 Read FgceClusterConfig Write SetgceClusterConfig;
  167. Property masterConfig : TInstanceGroupConfig Index 16 Read FmasterConfig Write SetmasterConfig;
  168. Property workerConfig : TInstanceGroupConfig Index 24 Read FworkerConfig Write SetworkerConfig;
  169. Property secondaryWorkerConfig : TInstanceGroupConfig Index 32 Read FsecondaryWorkerConfig Write SetsecondaryWorkerConfig;
  170. Property softwareConfig : TSoftwareConfig Index 40 Read FsoftwareConfig Write SetsoftwareConfig;
  171. Property initializationActions : TClusterConfigTypeinitializationActionsArray Index 48 Read FinitializationActions Write SetinitializationActions;
  172. end;
  173. TClusterConfigClass = Class of TClusterConfig;
  174. { --------------------------------------------------------------------
  175. TGceClusterConfigTypemetadata
  176. --------------------------------------------------------------------}
  177. TGceClusterConfigTypemetadata = Class(TGoogleBaseObject)
  178. Private
  179. Protected
  180. //Property setters
  181. Public
  182. Class Function AllowAdditionalProperties : Boolean; override;
  183. Published
  184. end;
  185. TGceClusterConfigTypemetadataClass = Class of TGceClusterConfigTypemetadata;
  186. { --------------------------------------------------------------------
  187. TGceClusterConfig
  188. --------------------------------------------------------------------}
  189. TGceClusterConfig = Class(TGoogleBaseObject)
  190. Private
  191. FzoneUri : String;
  192. FnetworkUri : String;
  193. FsubnetworkUri : String;
  194. FserviceAccountScopes : TStringArray;
  195. Ftags : TStringArray;
  196. Fmetadata : TGceClusterConfigTypemetadata;
  197. Protected
  198. //Property setters
  199. Procedure SetzoneUri(AIndex : Integer; const AValue : String); virtual;
  200. Procedure SetnetworkUri(AIndex : Integer; const AValue : String); virtual;
  201. Procedure SetsubnetworkUri(AIndex : Integer; const AValue : String); virtual;
  202. Procedure SetserviceAccountScopes(AIndex : Integer; const AValue : TStringArray); virtual;
  203. Procedure Settags(AIndex : Integer; const AValue : TStringArray); virtual;
  204. Procedure Setmetadata(AIndex : Integer; const AValue : TGceClusterConfigTypemetadata); virtual;
  205. //2.6.4. bug workaround
  206. {$IFDEF VER2_6}
  207. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  208. {$ENDIF VER2_6}
  209. Public
  210. Published
  211. Property zoneUri : String Index 0 Read FzoneUri Write SetzoneUri;
  212. Property networkUri : String Index 8 Read FnetworkUri Write SetnetworkUri;
  213. Property subnetworkUri : String Index 16 Read FsubnetworkUri Write SetsubnetworkUri;
  214. Property serviceAccountScopes : TStringArray Index 24 Read FserviceAccountScopes Write SetserviceAccountScopes;
  215. Property tags : TStringArray Index 32 Read Ftags Write Settags;
  216. Property metadata : TGceClusterConfigTypemetadata Index 40 Read Fmetadata Write Setmetadata;
  217. end;
  218. TGceClusterConfigClass = Class of TGceClusterConfig;
  219. { --------------------------------------------------------------------
  220. TInstanceGroupConfig
  221. --------------------------------------------------------------------}
  222. TInstanceGroupConfig = Class(TGoogleBaseObject)
  223. Private
  224. FnumInstances : integer;
  225. FinstanceNames : TStringArray;
  226. FimageUri : String;
  227. FmachineTypeUri : String;
  228. FdiskConfig : TDiskConfig;
  229. FisPreemptible : boolean;
  230. FmanagedGroupConfig : TManagedGroupConfig;
  231. Protected
  232. //Property setters
  233. Procedure SetnumInstances(AIndex : Integer; const AValue : integer); virtual;
  234. Procedure SetinstanceNames(AIndex : Integer; const AValue : TStringArray); virtual;
  235. Procedure SetimageUri(AIndex : Integer; const AValue : String); virtual;
  236. Procedure SetmachineTypeUri(AIndex : Integer; const AValue : String); virtual;
  237. Procedure SetdiskConfig(AIndex : Integer; const AValue : TDiskConfig); virtual;
  238. Procedure SetisPreemptible(AIndex : Integer; const AValue : boolean); virtual;
  239. Procedure SetmanagedGroupConfig(AIndex : Integer; const AValue : TManagedGroupConfig); virtual;
  240. //2.6.4. bug workaround
  241. {$IFDEF VER2_6}
  242. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  243. {$ENDIF VER2_6}
  244. Public
  245. Published
  246. Property numInstances : integer Index 0 Read FnumInstances Write SetnumInstances;
  247. Property instanceNames : TStringArray Index 8 Read FinstanceNames Write SetinstanceNames;
  248. Property imageUri : String Index 16 Read FimageUri Write SetimageUri;
  249. Property machineTypeUri : String Index 24 Read FmachineTypeUri Write SetmachineTypeUri;
  250. Property diskConfig : TDiskConfig Index 32 Read FdiskConfig Write SetdiskConfig;
  251. Property isPreemptible : boolean Index 40 Read FisPreemptible Write SetisPreemptible;
  252. Property managedGroupConfig : TManagedGroupConfig Index 48 Read FmanagedGroupConfig Write SetmanagedGroupConfig;
  253. end;
  254. TInstanceGroupConfigClass = Class of TInstanceGroupConfig;
  255. { --------------------------------------------------------------------
  256. TDiskConfig
  257. --------------------------------------------------------------------}
  258. TDiskConfig = Class(TGoogleBaseObject)
  259. Private
  260. FbootDiskSizeGb : integer;
  261. FnumLocalSsds : integer;
  262. Protected
  263. //Property setters
  264. Procedure SetbootDiskSizeGb(AIndex : Integer; const AValue : integer); virtual;
  265. Procedure SetnumLocalSsds(AIndex : Integer; const AValue : integer); virtual;
  266. Public
  267. Published
  268. Property bootDiskSizeGb : integer Index 0 Read FbootDiskSizeGb Write SetbootDiskSizeGb;
  269. Property numLocalSsds : integer Index 8 Read FnumLocalSsds Write SetnumLocalSsds;
  270. end;
  271. TDiskConfigClass = Class of TDiskConfig;
  272. { --------------------------------------------------------------------
  273. TManagedGroupConfig
  274. --------------------------------------------------------------------}
  275. TManagedGroupConfig = Class(TGoogleBaseObject)
  276. Private
  277. FinstanceTemplateName : String;
  278. FinstanceGroupManagerName : String;
  279. Protected
  280. //Property setters
  281. Procedure SetinstanceTemplateName(AIndex : Integer; const AValue : String); virtual;
  282. Procedure SetinstanceGroupManagerName(AIndex : Integer; const AValue : String); virtual;
  283. Public
  284. Published
  285. Property instanceTemplateName : String Index 0 Read FinstanceTemplateName Write SetinstanceTemplateName;
  286. Property instanceGroupManagerName : String Index 8 Read FinstanceGroupManagerName Write SetinstanceGroupManagerName;
  287. end;
  288. TManagedGroupConfigClass = Class of TManagedGroupConfig;
  289. { --------------------------------------------------------------------
  290. TSoftwareConfigTypeproperties
  291. --------------------------------------------------------------------}
  292. TSoftwareConfigTypeproperties = Class(TGoogleBaseObject)
  293. Private
  294. Protected
  295. //Property setters
  296. Public
  297. Class Function AllowAdditionalProperties : Boolean; override;
  298. Published
  299. end;
  300. TSoftwareConfigTypepropertiesClass = Class of TSoftwareConfigTypeproperties;
  301. { --------------------------------------------------------------------
  302. TSoftwareConfig
  303. --------------------------------------------------------------------}
  304. TSoftwareConfig = Class(TGoogleBaseObject)
  305. Private
  306. FimageVersion : String;
  307. Fproperties : TSoftwareConfigTypeproperties;
  308. Protected
  309. //Property setters
  310. Procedure SetimageVersion(AIndex : Integer; const AValue : String); virtual;
  311. Procedure Setproperties(AIndex : Integer; const AValue : TSoftwareConfigTypeproperties); virtual;
  312. Public
  313. Published
  314. Property imageVersion : String Index 0 Read FimageVersion Write SetimageVersion;
  315. Property properties : TSoftwareConfigTypeproperties Index 8 Read Fproperties Write Setproperties;
  316. end;
  317. TSoftwareConfigClass = Class of TSoftwareConfig;
  318. { --------------------------------------------------------------------
  319. TNodeInitializationAction
  320. --------------------------------------------------------------------}
  321. TNodeInitializationAction = Class(TGoogleBaseObject)
  322. Private
  323. FexecutableFile : String;
  324. FexecutionTimeout : String;
  325. Protected
  326. //Property setters
  327. Procedure SetexecutableFile(AIndex : Integer; const AValue : String); virtual;
  328. Procedure SetexecutionTimeout(AIndex : Integer; const AValue : String); virtual;
  329. Public
  330. Published
  331. Property executableFile : String Index 0 Read FexecutableFile Write SetexecutableFile;
  332. Property executionTimeout : String Index 8 Read FexecutionTimeout Write SetexecutionTimeout;
  333. end;
  334. TNodeInitializationActionClass = Class of TNodeInitializationAction;
  335. { --------------------------------------------------------------------
  336. TClusterStatus
  337. --------------------------------------------------------------------}
  338. TClusterStatus = Class(TGoogleBaseObject)
  339. Private
  340. Fstate : String;
  341. Fdetail : String;
  342. FstateStartTime : String;
  343. Protected
  344. //Property setters
  345. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  346. Procedure Setdetail(AIndex : Integer; const AValue : String); virtual;
  347. Procedure SetstateStartTime(AIndex : Integer; const AValue : String); virtual;
  348. Public
  349. Published
  350. Property state : String Index 0 Read Fstate Write Setstate;
  351. Property detail : String Index 8 Read Fdetail Write Setdetail;
  352. Property stateStartTime : String Index 16 Read FstateStartTime Write SetstateStartTime;
  353. end;
  354. TClusterStatusClass = Class of TClusterStatus;
  355. { --------------------------------------------------------------------
  356. TOperationTypemetadata
  357. --------------------------------------------------------------------}
  358. TOperationTypemetadata = Class(TGoogleBaseObject)
  359. Private
  360. Protected
  361. //Property setters
  362. Public
  363. Class Function AllowAdditionalProperties : Boolean; override;
  364. Published
  365. end;
  366. TOperationTypemetadataClass = Class of TOperationTypemetadata;
  367. { --------------------------------------------------------------------
  368. TOperationTyperesponse
  369. --------------------------------------------------------------------}
  370. TOperationTyperesponse = Class(TGoogleBaseObject)
  371. Private
  372. Protected
  373. //Property setters
  374. Public
  375. Class Function AllowAdditionalProperties : Boolean; override;
  376. Published
  377. end;
  378. TOperationTyperesponseClass = Class of TOperationTyperesponse;
  379. { --------------------------------------------------------------------
  380. TOperation
  381. --------------------------------------------------------------------}
  382. TOperation = Class(TGoogleBaseObject)
  383. Private
  384. Fname : String;
  385. Fmetadata : TOperationTypemetadata;
  386. Fdone : boolean;
  387. Ferror : TStatus;
  388. Fresponse : TOperationTyperesponse;
  389. Protected
  390. //Property setters
  391. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  392. Procedure Setmetadata(AIndex : Integer; const AValue : TOperationTypemetadata); virtual;
  393. Procedure Setdone(AIndex : Integer; const AValue : boolean); virtual;
  394. Procedure Seterror(AIndex : Integer; const AValue : TStatus); virtual;
  395. Procedure Setresponse(AIndex : Integer; const AValue : TOperationTyperesponse); virtual;
  396. Public
  397. Published
  398. Property name : String Index 0 Read Fname Write Setname;
  399. Property metadata : TOperationTypemetadata Index 8 Read Fmetadata Write Setmetadata;
  400. Property done : boolean Index 16 Read Fdone Write Setdone;
  401. Property error : TStatus Index 24 Read Ferror Write Seterror;
  402. Property response : TOperationTyperesponse Index 32 Read Fresponse Write Setresponse;
  403. end;
  404. TOperationClass = Class of TOperation;
  405. { --------------------------------------------------------------------
  406. TStatusTypedetailsItem
  407. --------------------------------------------------------------------}
  408. TStatusTypedetailsItem = Class(TGoogleBaseObject)
  409. Private
  410. Protected
  411. //Property setters
  412. Public
  413. Class Function AllowAdditionalProperties : Boolean; override;
  414. Published
  415. end;
  416. TStatusTypedetailsItemClass = Class of TStatusTypedetailsItem;
  417. { --------------------------------------------------------------------
  418. TStatus
  419. --------------------------------------------------------------------}
  420. TStatus = Class(TGoogleBaseObject)
  421. Private
  422. Fcode : integer;
  423. Fmessage : String;
  424. Fdetails : TStatusTypedetailsArray;
  425. Protected
  426. //Property setters
  427. Procedure Setcode(AIndex : Integer; const AValue : integer); virtual;
  428. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  429. Procedure Setdetails(AIndex : Integer; const AValue : TStatusTypedetailsArray); virtual;
  430. //2.6.4. bug workaround
  431. {$IFDEF VER2_6}
  432. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  433. {$ENDIF VER2_6}
  434. Public
  435. Published
  436. Property code : integer Index 0 Read Fcode Write Setcode;
  437. Property message : String Index 8 Read Fmessage Write Setmessage;
  438. Property details : TStatusTypedetailsArray Index 16 Read Fdetails Write Setdetails;
  439. end;
  440. TStatusClass = Class of TStatus;
  441. { --------------------------------------------------------------------
  442. TListClustersResponse
  443. --------------------------------------------------------------------}
  444. TListClustersResponse = Class(TGoogleBaseObject)
  445. Private
  446. Fclusters : TListClustersResponseTypeclustersArray;
  447. FnextPageToken : String;
  448. Protected
  449. //Property setters
  450. Procedure Setclusters(AIndex : Integer; const AValue : TListClustersResponseTypeclustersArray); virtual;
  451. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  452. //2.6.4. bug workaround
  453. {$IFDEF VER2_6}
  454. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  455. {$ENDIF VER2_6}
  456. Public
  457. Published
  458. Property clusters : TListClustersResponseTypeclustersArray Index 0 Read Fclusters Write Setclusters;
  459. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  460. end;
  461. TListClustersResponseClass = Class of TListClustersResponse;
  462. { --------------------------------------------------------------------
  463. TDiagnoseClusterRequest
  464. --------------------------------------------------------------------}
  465. TDiagnoseClusterRequest = Class(TGoogleBaseObject)
  466. Private
  467. Protected
  468. //Property setters
  469. Public
  470. Published
  471. end;
  472. TDiagnoseClusterRequestClass = Class of TDiagnoseClusterRequest;
  473. { --------------------------------------------------------------------
  474. TSubmitJobRequest
  475. --------------------------------------------------------------------}
  476. TSubmitJobRequest = Class(TGoogleBaseObject)
  477. Private
  478. Fjob : TJob;
  479. Protected
  480. //Property setters
  481. Procedure Setjob(AIndex : Integer; const AValue : TJob); virtual;
  482. Public
  483. Published
  484. Property job : TJob Index 0 Read Fjob Write Setjob;
  485. end;
  486. TSubmitJobRequestClass = Class of TSubmitJobRequest;
  487. { --------------------------------------------------------------------
  488. TJob
  489. --------------------------------------------------------------------}
  490. TJob = Class(TGoogleBaseObject)
  491. Private
  492. Freference : TJobReference;
  493. Fplacement : TJobPlacement;
  494. FhadoopJob : THadoopJob;
  495. FsparkJob : TSparkJob;
  496. FpysparkJob : TPySparkJob;
  497. FhiveJob : THiveJob;
  498. FpigJob : TPigJob;
  499. FsparkSqlJob : TSparkSqlJob;
  500. Fstatus : TJobStatus;
  501. FstatusHistory : TJobTypestatusHistoryArray;
  502. FdriverOutputResourceUri : String;
  503. FdriverControlFilesUri : String;
  504. Protected
  505. //Property setters
  506. Procedure Setreference(AIndex : Integer; const AValue : TJobReference); virtual;
  507. Procedure Setplacement(AIndex : Integer; const AValue : TJobPlacement); virtual;
  508. Procedure SethadoopJob(AIndex : Integer; const AValue : THadoopJob); virtual;
  509. Procedure SetsparkJob(AIndex : Integer; const AValue : TSparkJob); virtual;
  510. Procedure SetpysparkJob(AIndex : Integer; const AValue : TPySparkJob); virtual;
  511. Procedure SethiveJob(AIndex : Integer; const AValue : THiveJob); virtual;
  512. Procedure SetpigJob(AIndex : Integer; const AValue : TPigJob); virtual;
  513. Procedure SetsparkSqlJob(AIndex : Integer; const AValue : TSparkSqlJob); virtual;
  514. Procedure Setstatus(AIndex : Integer; const AValue : TJobStatus); virtual;
  515. Procedure SetstatusHistory(AIndex : Integer; const AValue : TJobTypestatusHistoryArray); virtual;
  516. Procedure SetdriverOutputResourceUri(AIndex : Integer; const AValue : String); virtual;
  517. Procedure SetdriverControlFilesUri(AIndex : Integer; const AValue : String); virtual;
  518. //2.6.4. bug workaround
  519. {$IFDEF VER2_6}
  520. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  521. {$ENDIF VER2_6}
  522. Public
  523. Published
  524. Property reference : TJobReference Index 0 Read Freference Write Setreference;
  525. Property placement : TJobPlacement Index 8 Read Fplacement Write Setplacement;
  526. Property hadoopJob : THadoopJob Index 16 Read FhadoopJob Write SethadoopJob;
  527. Property sparkJob : TSparkJob Index 24 Read FsparkJob Write SetsparkJob;
  528. Property pysparkJob : TPySparkJob Index 32 Read FpysparkJob Write SetpysparkJob;
  529. Property hiveJob : THiveJob Index 40 Read FhiveJob Write SethiveJob;
  530. Property pigJob : TPigJob Index 48 Read FpigJob Write SetpigJob;
  531. Property sparkSqlJob : TSparkSqlJob Index 56 Read FsparkSqlJob Write SetsparkSqlJob;
  532. Property status : TJobStatus Index 64 Read Fstatus Write Setstatus;
  533. Property statusHistory : TJobTypestatusHistoryArray Index 72 Read FstatusHistory Write SetstatusHistory;
  534. Property driverOutputResourceUri : String Index 80 Read FdriverOutputResourceUri Write SetdriverOutputResourceUri;
  535. Property driverControlFilesUri : String Index 88 Read FdriverControlFilesUri Write SetdriverControlFilesUri;
  536. end;
  537. TJobClass = Class of TJob;
  538. { --------------------------------------------------------------------
  539. TJobReference
  540. --------------------------------------------------------------------}
  541. TJobReference = Class(TGoogleBaseObject)
  542. Private
  543. FprojectId : String;
  544. FjobId : String;
  545. Protected
  546. //Property setters
  547. Procedure SetprojectId(AIndex : Integer; const AValue : String); virtual;
  548. Procedure SetjobId(AIndex : Integer; const AValue : String); virtual;
  549. Public
  550. Published
  551. Property projectId : String Index 0 Read FprojectId Write SetprojectId;
  552. Property jobId : String Index 8 Read FjobId Write SetjobId;
  553. end;
  554. TJobReferenceClass = Class of TJobReference;
  555. { --------------------------------------------------------------------
  556. TJobPlacement
  557. --------------------------------------------------------------------}
  558. TJobPlacement = Class(TGoogleBaseObject)
  559. Private
  560. FclusterName : String;
  561. FclusterUuid : String;
  562. Protected
  563. //Property setters
  564. Procedure SetclusterName(AIndex : Integer; const AValue : String); virtual;
  565. Procedure SetclusterUuid(AIndex : Integer; const AValue : String); virtual;
  566. Public
  567. Published
  568. Property clusterName : String Index 0 Read FclusterName Write SetclusterName;
  569. Property clusterUuid : String Index 8 Read FclusterUuid Write SetclusterUuid;
  570. end;
  571. TJobPlacementClass = Class of TJobPlacement;
  572. { --------------------------------------------------------------------
  573. THadoopJobTypeproperties
  574. --------------------------------------------------------------------}
  575. THadoopJobTypeproperties = Class(TGoogleBaseObject)
  576. Private
  577. Protected
  578. //Property setters
  579. Public
  580. Class Function AllowAdditionalProperties : Boolean; override;
  581. Published
  582. end;
  583. THadoopJobTypepropertiesClass = Class of THadoopJobTypeproperties;
  584. { --------------------------------------------------------------------
  585. THadoopJob
  586. --------------------------------------------------------------------}
  587. THadoopJob = Class(TGoogleBaseObject)
  588. Private
  589. FmainJarFileUri : String;
  590. FmainClass : String;
  591. Fargs : TStringArray;
  592. FjarFileUris : TStringArray;
  593. FfileUris : TStringArray;
  594. FarchiveUris : TStringArray;
  595. Fproperties : THadoopJobTypeproperties;
  596. FloggingConfig : TLoggingConfig;
  597. Protected
  598. //Property setters
  599. Procedure SetmainJarFileUri(AIndex : Integer; const AValue : String); virtual;
  600. Procedure SetmainClass(AIndex : Integer; const AValue : String); virtual;
  601. Procedure Setargs(AIndex : Integer; const AValue : TStringArray); virtual;
  602. Procedure SetjarFileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  603. Procedure SetfileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  604. Procedure SetarchiveUris(AIndex : Integer; const AValue : TStringArray); virtual;
  605. Procedure Setproperties(AIndex : Integer; const AValue : THadoopJobTypeproperties); virtual;
  606. Procedure SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig); virtual;
  607. //2.6.4. bug workaround
  608. {$IFDEF VER2_6}
  609. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  610. {$ENDIF VER2_6}
  611. Public
  612. Published
  613. Property mainJarFileUri : String Index 0 Read FmainJarFileUri Write SetmainJarFileUri;
  614. Property mainClass : String Index 8 Read FmainClass Write SetmainClass;
  615. Property args : TStringArray Index 16 Read Fargs Write Setargs;
  616. Property jarFileUris : TStringArray Index 24 Read FjarFileUris Write SetjarFileUris;
  617. Property fileUris : TStringArray Index 32 Read FfileUris Write SetfileUris;
  618. Property archiveUris : TStringArray Index 40 Read FarchiveUris Write SetarchiveUris;
  619. Property properties : THadoopJobTypeproperties Index 48 Read Fproperties Write Setproperties;
  620. Property loggingConfig : TLoggingConfig Index 56 Read FloggingConfig Write SetloggingConfig;
  621. end;
  622. THadoopJobClass = Class of THadoopJob;
  623. { --------------------------------------------------------------------
  624. TLoggingConfigTypedriverLogLevels
  625. --------------------------------------------------------------------}
  626. TLoggingConfigTypedriverLogLevels = Class(TGoogleBaseObject)
  627. Private
  628. Protected
  629. //Property setters
  630. Public
  631. Class Function AllowAdditionalProperties : Boolean; override;
  632. Published
  633. end;
  634. TLoggingConfigTypedriverLogLevelsClass = Class of TLoggingConfigTypedriverLogLevels;
  635. { --------------------------------------------------------------------
  636. TLoggingConfig
  637. --------------------------------------------------------------------}
  638. TLoggingConfig = Class(TGoogleBaseObject)
  639. Private
  640. FdriverLogLevels : TLoggingConfigTypedriverLogLevels;
  641. Protected
  642. //Property setters
  643. Procedure SetdriverLogLevels(AIndex : Integer; const AValue : TLoggingConfigTypedriverLogLevels); virtual;
  644. Public
  645. Published
  646. Property driverLogLevels : TLoggingConfigTypedriverLogLevels Index 0 Read FdriverLogLevels Write SetdriverLogLevels;
  647. end;
  648. TLoggingConfigClass = Class of TLoggingConfig;
  649. { --------------------------------------------------------------------
  650. TSparkJobTypeproperties
  651. --------------------------------------------------------------------}
  652. TSparkJobTypeproperties = Class(TGoogleBaseObject)
  653. Private
  654. Protected
  655. //Property setters
  656. Public
  657. Class Function AllowAdditionalProperties : Boolean; override;
  658. Published
  659. end;
  660. TSparkJobTypepropertiesClass = Class of TSparkJobTypeproperties;
  661. { --------------------------------------------------------------------
  662. TSparkJob
  663. --------------------------------------------------------------------}
  664. TSparkJob = Class(TGoogleBaseObject)
  665. Private
  666. FmainJarFileUri : String;
  667. FmainClass : String;
  668. Fargs : TStringArray;
  669. FjarFileUris : TStringArray;
  670. FfileUris : TStringArray;
  671. FarchiveUris : TStringArray;
  672. Fproperties : TSparkJobTypeproperties;
  673. FloggingConfig : TLoggingConfig;
  674. Protected
  675. //Property setters
  676. Procedure SetmainJarFileUri(AIndex : Integer; const AValue : String); virtual;
  677. Procedure SetmainClass(AIndex : Integer; const AValue : String); virtual;
  678. Procedure Setargs(AIndex : Integer; const AValue : TStringArray); virtual;
  679. Procedure SetjarFileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  680. Procedure SetfileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  681. Procedure SetarchiveUris(AIndex : Integer; const AValue : TStringArray); virtual;
  682. Procedure Setproperties(AIndex : Integer; const AValue : TSparkJobTypeproperties); virtual;
  683. Procedure SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig); virtual;
  684. //2.6.4. bug workaround
  685. {$IFDEF VER2_6}
  686. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  687. {$ENDIF VER2_6}
  688. Public
  689. Published
  690. Property mainJarFileUri : String Index 0 Read FmainJarFileUri Write SetmainJarFileUri;
  691. Property mainClass : String Index 8 Read FmainClass Write SetmainClass;
  692. Property args : TStringArray Index 16 Read Fargs Write Setargs;
  693. Property jarFileUris : TStringArray Index 24 Read FjarFileUris Write SetjarFileUris;
  694. Property fileUris : TStringArray Index 32 Read FfileUris Write SetfileUris;
  695. Property archiveUris : TStringArray Index 40 Read FarchiveUris Write SetarchiveUris;
  696. Property properties : TSparkJobTypeproperties Index 48 Read Fproperties Write Setproperties;
  697. Property loggingConfig : TLoggingConfig Index 56 Read FloggingConfig Write SetloggingConfig;
  698. end;
  699. TSparkJobClass = Class of TSparkJob;
  700. { --------------------------------------------------------------------
  701. TPySparkJobTypeproperties
  702. --------------------------------------------------------------------}
  703. TPySparkJobTypeproperties = Class(TGoogleBaseObject)
  704. Private
  705. Protected
  706. //Property setters
  707. Public
  708. Class Function AllowAdditionalProperties : Boolean; override;
  709. Published
  710. end;
  711. TPySparkJobTypepropertiesClass = Class of TPySparkJobTypeproperties;
  712. { --------------------------------------------------------------------
  713. TPySparkJob
  714. --------------------------------------------------------------------}
  715. TPySparkJob = Class(TGoogleBaseObject)
  716. Private
  717. FmainPythonFileUri : String;
  718. Fargs : TStringArray;
  719. FpythonFileUris : TStringArray;
  720. FjarFileUris : TStringArray;
  721. FfileUris : TStringArray;
  722. FarchiveUris : TStringArray;
  723. Fproperties : TPySparkJobTypeproperties;
  724. FloggingConfig : TLoggingConfig;
  725. Protected
  726. //Property setters
  727. Procedure SetmainPythonFileUri(AIndex : Integer; const AValue : String); virtual;
  728. Procedure Setargs(AIndex : Integer; const AValue : TStringArray); virtual;
  729. Procedure SetpythonFileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  730. Procedure SetjarFileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  731. Procedure SetfileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  732. Procedure SetarchiveUris(AIndex : Integer; const AValue : TStringArray); virtual;
  733. Procedure Setproperties(AIndex : Integer; const AValue : TPySparkJobTypeproperties); virtual;
  734. Procedure SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig); virtual;
  735. //2.6.4. bug workaround
  736. {$IFDEF VER2_6}
  737. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  738. {$ENDIF VER2_6}
  739. Public
  740. Published
  741. Property mainPythonFileUri : String Index 0 Read FmainPythonFileUri Write SetmainPythonFileUri;
  742. Property args : TStringArray Index 8 Read Fargs Write Setargs;
  743. Property pythonFileUris : TStringArray Index 16 Read FpythonFileUris Write SetpythonFileUris;
  744. Property jarFileUris : TStringArray Index 24 Read FjarFileUris Write SetjarFileUris;
  745. Property fileUris : TStringArray Index 32 Read FfileUris Write SetfileUris;
  746. Property archiveUris : TStringArray Index 40 Read FarchiveUris Write SetarchiveUris;
  747. Property properties : TPySparkJobTypeproperties Index 48 Read Fproperties Write Setproperties;
  748. Property loggingConfig : TLoggingConfig Index 56 Read FloggingConfig Write SetloggingConfig;
  749. end;
  750. TPySparkJobClass = Class of TPySparkJob;
  751. { --------------------------------------------------------------------
  752. THiveJobTypescriptVariables
  753. --------------------------------------------------------------------}
  754. THiveJobTypescriptVariables = Class(TGoogleBaseObject)
  755. Private
  756. Protected
  757. //Property setters
  758. Public
  759. Class Function AllowAdditionalProperties : Boolean; override;
  760. Published
  761. end;
  762. THiveJobTypescriptVariablesClass = Class of THiveJobTypescriptVariables;
  763. { --------------------------------------------------------------------
  764. THiveJobTypeproperties
  765. --------------------------------------------------------------------}
  766. THiveJobTypeproperties = Class(TGoogleBaseObject)
  767. Private
  768. Protected
  769. //Property setters
  770. Public
  771. Class Function AllowAdditionalProperties : Boolean; override;
  772. Published
  773. end;
  774. THiveJobTypepropertiesClass = Class of THiveJobTypeproperties;
  775. { --------------------------------------------------------------------
  776. THiveJob
  777. --------------------------------------------------------------------}
  778. THiveJob = Class(TGoogleBaseObject)
  779. Private
  780. FqueryFileUri : String;
  781. FqueryList : TQueryList;
  782. FcontinueOnFailure : boolean;
  783. FscriptVariables : THiveJobTypescriptVariables;
  784. Fproperties : THiveJobTypeproperties;
  785. FjarFileUris : TStringArray;
  786. Protected
  787. //Property setters
  788. Procedure SetqueryFileUri(AIndex : Integer; const AValue : String); virtual;
  789. Procedure SetqueryList(AIndex : Integer; const AValue : TQueryList); virtual;
  790. Procedure SetcontinueOnFailure(AIndex : Integer; const AValue : boolean); virtual;
  791. Procedure SetscriptVariables(AIndex : Integer; const AValue : THiveJobTypescriptVariables); virtual;
  792. Procedure Setproperties(AIndex : Integer; const AValue : THiveJobTypeproperties); virtual;
  793. Procedure SetjarFileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  794. //2.6.4. bug workaround
  795. {$IFDEF VER2_6}
  796. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  797. {$ENDIF VER2_6}
  798. Public
  799. Published
  800. Property queryFileUri : String Index 0 Read FqueryFileUri Write SetqueryFileUri;
  801. Property queryList : TQueryList Index 8 Read FqueryList Write SetqueryList;
  802. Property continueOnFailure : boolean Index 16 Read FcontinueOnFailure Write SetcontinueOnFailure;
  803. Property scriptVariables : THiveJobTypescriptVariables Index 24 Read FscriptVariables Write SetscriptVariables;
  804. Property properties : THiveJobTypeproperties Index 32 Read Fproperties Write Setproperties;
  805. Property jarFileUris : TStringArray Index 40 Read FjarFileUris Write SetjarFileUris;
  806. end;
  807. THiveJobClass = Class of THiveJob;
  808. { --------------------------------------------------------------------
  809. TQueryList
  810. --------------------------------------------------------------------}
  811. TQueryList = Class(TGoogleBaseObject)
  812. Private
  813. Fqueries : TStringArray;
  814. Protected
  815. //Property setters
  816. Procedure Setqueries(AIndex : Integer; const AValue : TStringArray); virtual;
  817. //2.6.4. bug workaround
  818. {$IFDEF VER2_6}
  819. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  820. {$ENDIF VER2_6}
  821. Public
  822. Published
  823. Property queries : TStringArray Index 0 Read Fqueries Write Setqueries;
  824. end;
  825. TQueryListClass = Class of TQueryList;
  826. { --------------------------------------------------------------------
  827. TPigJobTypescriptVariables
  828. --------------------------------------------------------------------}
  829. TPigJobTypescriptVariables = Class(TGoogleBaseObject)
  830. Private
  831. Protected
  832. //Property setters
  833. Public
  834. Class Function AllowAdditionalProperties : Boolean; override;
  835. Published
  836. end;
  837. TPigJobTypescriptVariablesClass = Class of TPigJobTypescriptVariables;
  838. { --------------------------------------------------------------------
  839. TPigJobTypeproperties
  840. --------------------------------------------------------------------}
  841. TPigJobTypeproperties = Class(TGoogleBaseObject)
  842. Private
  843. Protected
  844. //Property setters
  845. Public
  846. Class Function AllowAdditionalProperties : Boolean; override;
  847. Published
  848. end;
  849. TPigJobTypepropertiesClass = Class of TPigJobTypeproperties;
  850. { --------------------------------------------------------------------
  851. TPigJob
  852. --------------------------------------------------------------------}
  853. TPigJob = Class(TGoogleBaseObject)
  854. Private
  855. FqueryFileUri : String;
  856. FqueryList : TQueryList;
  857. FcontinueOnFailure : boolean;
  858. FscriptVariables : TPigJobTypescriptVariables;
  859. Fproperties : TPigJobTypeproperties;
  860. FjarFileUris : TStringArray;
  861. FloggingConfig : TLoggingConfig;
  862. Protected
  863. //Property setters
  864. Procedure SetqueryFileUri(AIndex : Integer; const AValue : String); virtual;
  865. Procedure SetqueryList(AIndex : Integer; const AValue : TQueryList); virtual;
  866. Procedure SetcontinueOnFailure(AIndex : Integer; const AValue : boolean); virtual;
  867. Procedure SetscriptVariables(AIndex : Integer; const AValue : TPigJobTypescriptVariables); virtual;
  868. Procedure Setproperties(AIndex : Integer; const AValue : TPigJobTypeproperties); virtual;
  869. Procedure SetjarFileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  870. Procedure SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig); virtual;
  871. //2.6.4. bug workaround
  872. {$IFDEF VER2_6}
  873. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  874. {$ENDIF VER2_6}
  875. Public
  876. Published
  877. Property queryFileUri : String Index 0 Read FqueryFileUri Write SetqueryFileUri;
  878. Property queryList : TQueryList Index 8 Read FqueryList Write SetqueryList;
  879. Property continueOnFailure : boolean Index 16 Read FcontinueOnFailure Write SetcontinueOnFailure;
  880. Property scriptVariables : TPigJobTypescriptVariables Index 24 Read FscriptVariables Write SetscriptVariables;
  881. Property properties : TPigJobTypeproperties Index 32 Read Fproperties Write Setproperties;
  882. Property jarFileUris : TStringArray Index 40 Read FjarFileUris Write SetjarFileUris;
  883. Property loggingConfig : TLoggingConfig Index 48 Read FloggingConfig Write SetloggingConfig;
  884. end;
  885. TPigJobClass = Class of TPigJob;
  886. { --------------------------------------------------------------------
  887. TSparkSqlJobTypescriptVariables
  888. --------------------------------------------------------------------}
  889. TSparkSqlJobTypescriptVariables = Class(TGoogleBaseObject)
  890. Private
  891. Protected
  892. //Property setters
  893. Public
  894. Class Function AllowAdditionalProperties : Boolean; override;
  895. Published
  896. end;
  897. TSparkSqlJobTypescriptVariablesClass = Class of TSparkSqlJobTypescriptVariables;
  898. { --------------------------------------------------------------------
  899. TSparkSqlJobTypeproperties
  900. --------------------------------------------------------------------}
  901. TSparkSqlJobTypeproperties = Class(TGoogleBaseObject)
  902. Private
  903. Protected
  904. //Property setters
  905. Public
  906. Class Function AllowAdditionalProperties : Boolean; override;
  907. Published
  908. end;
  909. TSparkSqlJobTypepropertiesClass = Class of TSparkSqlJobTypeproperties;
  910. { --------------------------------------------------------------------
  911. TSparkSqlJob
  912. --------------------------------------------------------------------}
  913. TSparkSqlJob = Class(TGoogleBaseObject)
  914. Private
  915. FqueryFileUri : String;
  916. FqueryList : TQueryList;
  917. FscriptVariables : TSparkSqlJobTypescriptVariables;
  918. Fproperties : TSparkSqlJobTypeproperties;
  919. FjarFileUris : TStringArray;
  920. FloggingConfig : TLoggingConfig;
  921. Protected
  922. //Property setters
  923. Procedure SetqueryFileUri(AIndex : Integer; const AValue : String); virtual;
  924. Procedure SetqueryList(AIndex : Integer; const AValue : TQueryList); virtual;
  925. Procedure SetscriptVariables(AIndex : Integer; const AValue : TSparkSqlJobTypescriptVariables); virtual;
  926. Procedure Setproperties(AIndex : Integer; const AValue : TSparkSqlJobTypeproperties); virtual;
  927. Procedure SetjarFileUris(AIndex : Integer; const AValue : TStringArray); virtual;
  928. Procedure SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig); virtual;
  929. //2.6.4. bug workaround
  930. {$IFDEF VER2_6}
  931. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  932. {$ENDIF VER2_6}
  933. Public
  934. Published
  935. Property queryFileUri : String Index 0 Read FqueryFileUri Write SetqueryFileUri;
  936. Property queryList : TQueryList Index 8 Read FqueryList Write SetqueryList;
  937. Property scriptVariables : TSparkSqlJobTypescriptVariables Index 16 Read FscriptVariables Write SetscriptVariables;
  938. Property properties : TSparkSqlJobTypeproperties Index 24 Read Fproperties Write Setproperties;
  939. Property jarFileUris : TStringArray Index 32 Read FjarFileUris Write SetjarFileUris;
  940. Property loggingConfig : TLoggingConfig Index 40 Read FloggingConfig Write SetloggingConfig;
  941. end;
  942. TSparkSqlJobClass = Class of TSparkSqlJob;
  943. { --------------------------------------------------------------------
  944. TJobStatus
  945. --------------------------------------------------------------------}
  946. TJobStatus = Class(TGoogleBaseObject)
  947. Private
  948. Fstate : String;
  949. Fdetails : String;
  950. FstateStartTime : String;
  951. Protected
  952. //Property setters
  953. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  954. Procedure Setdetails(AIndex : Integer; const AValue : String); virtual;
  955. Procedure SetstateStartTime(AIndex : Integer; const AValue : String); virtual;
  956. Public
  957. Published
  958. Property state : String Index 0 Read Fstate Write Setstate;
  959. Property details : String Index 8 Read Fdetails Write Setdetails;
  960. Property stateStartTime : String Index 16 Read FstateStartTime Write SetstateStartTime;
  961. end;
  962. TJobStatusClass = Class of TJobStatus;
  963. { --------------------------------------------------------------------
  964. TListJobsResponse
  965. --------------------------------------------------------------------}
  966. TListJobsResponse = Class(TGoogleBaseObject)
  967. Private
  968. Fjobs : TListJobsResponseTypejobsArray;
  969. FnextPageToken : String;
  970. Protected
  971. //Property setters
  972. Procedure Setjobs(AIndex : Integer; const AValue : TListJobsResponseTypejobsArray); virtual;
  973. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  974. //2.6.4. bug workaround
  975. {$IFDEF VER2_6}
  976. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  977. {$ENDIF VER2_6}
  978. Public
  979. Published
  980. Property jobs : TListJobsResponseTypejobsArray Index 0 Read Fjobs Write Setjobs;
  981. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  982. end;
  983. TListJobsResponseClass = Class of TListJobsResponse;
  984. { --------------------------------------------------------------------
  985. TCancelJobRequest
  986. --------------------------------------------------------------------}
  987. TCancelJobRequest = Class(TGoogleBaseObject)
  988. Private
  989. Protected
  990. //Property setters
  991. Public
  992. Published
  993. end;
  994. TCancelJobRequestClass = Class of TCancelJobRequest;
  995. { --------------------------------------------------------------------
  996. TEmpty
  997. --------------------------------------------------------------------}
  998. TEmpty = Class(TGoogleBaseObject)
  999. Private
  1000. Protected
  1001. //Property setters
  1002. Public
  1003. Published
  1004. end;
  1005. TEmptyClass = Class of TEmpty;
  1006. { --------------------------------------------------------------------
  1007. TListOperationsResponse
  1008. --------------------------------------------------------------------}
  1009. TListOperationsResponse = Class(TGoogleBaseObject)
  1010. Private
  1011. Foperations : TListOperationsResponseTypeoperationsArray;
  1012. FnextPageToken : String;
  1013. Protected
  1014. //Property setters
  1015. Procedure Setoperations(AIndex : Integer; const AValue : TListOperationsResponseTypeoperationsArray); virtual;
  1016. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1017. //2.6.4. bug workaround
  1018. {$IFDEF VER2_6}
  1019. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1020. {$ENDIF VER2_6}
  1021. Public
  1022. Published
  1023. Property operations : TListOperationsResponseTypeoperationsArray Index 0 Read Foperations Write Setoperations;
  1024. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  1025. end;
  1026. TListOperationsResponseClass = Class of TListOperationsResponse;
  1027. { --------------------------------------------------------------------
  1028. TDiagnoseClusterResults
  1029. --------------------------------------------------------------------}
  1030. TDiagnoseClusterResults = Class(TGoogleBaseObject)
  1031. Private
  1032. FoutputUri : String;
  1033. Protected
  1034. //Property setters
  1035. Procedure SetoutputUri(AIndex : Integer; const AValue : String); virtual;
  1036. Public
  1037. Published
  1038. Property outputUri : String Index 0 Read FoutputUri Write SetoutputUri;
  1039. end;
  1040. TDiagnoseClusterResultsClass = Class of TDiagnoseClusterResults;
  1041. { --------------------------------------------------------------------
  1042. TClusterOperationMetadata
  1043. --------------------------------------------------------------------}
  1044. TClusterOperationMetadata = Class(TGoogleBaseObject)
  1045. Private
  1046. FclusterName : String;
  1047. FclusterUuid : String;
  1048. Fstatus : TClusterOperationStatus;
  1049. FstatusHistory : TClusterOperationMetadataTypestatusHistoryArray;
  1050. FoperationType : String;
  1051. Fdescription : String;
  1052. Protected
  1053. //Property setters
  1054. Procedure SetclusterName(AIndex : Integer; const AValue : String); virtual;
  1055. Procedure SetclusterUuid(AIndex : Integer; const AValue : String); virtual;
  1056. Procedure Setstatus(AIndex : Integer; const AValue : TClusterOperationStatus); virtual;
  1057. Procedure SetstatusHistory(AIndex : Integer; const AValue : TClusterOperationMetadataTypestatusHistoryArray); virtual;
  1058. Procedure SetoperationType(AIndex : Integer; const AValue : String); virtual;
  1059. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1060. //2.6.4. bug workaround
  1061. {$IFDEF VER2_6}
  1062. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1063. {$ENDIF VER2_6}
  1064. Public
  1065. Published
  1066. Property clusterName : String Index 0 Read FclusterName Write SetclusterName;
  1067. Property clusterUuid : String Index 8 Read FclusterUuid Write SetclusterUuid;
  1068. Property status : TClusterOperationStatus Index 16 Read Fstatus Write Setstatus;
  1069. Property statusHistory : TClusterOperationMetadataTypestatusHistoryArray Index 24 Read FstatusHistory Write SetstatusHistory;
  1070. Property operationType : String Index 32 Read FoperationType Write SetoperationType;
  1071. Property description : String Index 40 Read Fdescription Write Setdescription;
  1072. end;
  1073. TClusterOperationMetadataClass = Class of TClusterOperationMetadata;
  1074. { --------------------------------------------------------------------
  1075. TClusterOperationStatus
  1076. --------------------------------------------------------------------}
  1077. TClusterOperationStatus = Class(TGoogleBaseObject)
  1078. Private
  1079. Fstate : String;
  1080. FinnerState : String;
  1081. Fdetails : String;
  1082. FstateStartTime : String;
  1083. Protected
  1084. //Property setters
  1085. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  1086. Procedure SetinnerState(AIndex : Integer; const AValue : String); virtual;
  1087. Procedure Setdetails(AIndex : Integer; const AValue : String); virtual;
  1088. Procedure SetstateStartTime(AIndex : Integer; const AValue : String); virtual;
  1089. Public
  1090. Published
  1091. Property state : String Index 0 Read Fstate Write Setstate;
  1092. Property innerState : String Index 8 Read FinnerState Write SetinnerState;
  1093. Property details : String Index 16 Read Fdetails Write Setdetails;
  1094. Property stateStartTime : String Index 24 Read FstateStartTime Write SetstateStartTime;
  1095. end;
  1096. TClusterOperationStatusClass = Class of TClusterOperationStatus;
  1097. { --------------------------------------------------------------------
  1098. TDiagnoseClusterOutputLocation
  1099. --------------------------------------------------------------------}
  1100. TDiagnoseClusterOutputLocation = Class(TGoogleBaseObject)
  1101. Private
  1102. FoutputUri : String;
  1103. Protected
  1104. //Property setters
  1105. Procedure SetoutputUri(AIndex : Integer; const AValue : String); virtual;
  1106. Public
  1107. Published
  1108. Property outputUri : String Index 0 Read FoutputUri Write SetoutputUri;
  1109. end;
  1110. TDiagnoseClusterOutputLocationClass = Class of TDiagnoseClusterOutputLocation;
  1111. { --------------------------------------------------------------------
  1112. TOperationMetadata
  1113. --------------------------------------------------------------------}
  1114. TOperationMetadata = Class(TGoogleBaseObject)
  1115. Private
  1116. Fstate : String;
  1117. FinnerState : String;
  1118. Fdetails : String;
  1119. FinsertTime : String;
  1120. FstartTime : String;
  1121. FendTime : String;
  1122. FclusterName : String;
  1123. FclusterUuid : String;
  1124. Fstatus : TOperationStatus;
  1125. FstatusHistory : TOperationMetadataTypestatusHistoryArray;
  1126. FoperationType : String;
  1127. Fdescription : String;
  1128. Protected
  1129. //Property setters
  1130. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  1131. Procedure SetinnerState(AIndex : Integer; const AValue : String); virtual;
  1132. Procedure Setdetails(AIndex : Integer; const AValue : String); virtual;
  1133. Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
  1134. Procedure SetstartTime(AIndex : Integer; const AValue : String); virtual;
  1135. Procedure SetendTime(AIndex : Integer; const AValue : String); virtual;
  1136. Procedure SetclusterName(AIndex : Integer; const AValue : String); virtual;
  1137. Procedure SetclusterUuid(AIndex : Integer; const AValue : String); virtual;
  1138. Procedure Setstatus(AIndex : Integer; const AValue : TOperationStatus); virtual;
  1139. Procedure SetstatusHistory(AIndex : Integer; const AValue : TOperationMetadataTypestatusHistoryArray); virtual;
  1140. Procedure SetoperationType(AIndex : Integer; const AValue : String); virtual;
  1141. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1142. //2.6.4. bug workaround
  1143. {$IFDEF VER2_6}
  1144. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1145. {$ENDIF VER2_6}
  1146. Public
  1147. Published
  1148. Property state : String Index 0 Read Fstate Write Setstate;
  1149. Property innerState : String Index 8 Read FinnerState Write SetinnerState;
  1150. Property details : String Index 16 Read Fdetails Write Setdetails;
  1151. Property insertTime : String Index 24 Read FinsertTime Write SetinsertTime;
  1152. Property startTime : String Index 32 Read FstartTime Write SetstartTime;
  1153. Property endTime : String Index 40 Read FendTime Write SetendTime;
  1154. Property clusterName : String Index 48 Read FclusterName Write SetclusterName;
  1155. Property clusterUuid : String Index 56 Read FclusterUuid Write SetclusterUuid;
  1156. Property status : TOperationStatus Index 64 Read Fstatus Write Setstatus;
  1157. Property statusHistory : TOperationMetadataTypestatusHistoryArray Index 72 Read FstatusHistory Write SetstatusHistory;
  1158. Property operationType : String Index 80 Read FoperationType Write SetoperationType;
  1159. Property description : String Index 88 Read Fdescription Write Setdescription;
  1160. end;
  1161. TOperationMetadataClass = Class of TOperationMetadata;
  1162. { --------------------------------------------------------------------
  1163. TOperationStatus
  1164. --------------------------------------------------------------------}
  1165. TOperationStatus = Class(TGoogleBaseObject)
  1166. Private
  1167. Fstate : String;
  1168. FinnerState : String;
  1169. Fdetails : String;
  1170. FstateStartTime : String;
  1171. Protected
  1172. //Property setters
  1173. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  1174. Procedure SetinnerState(AIndex : Integer; const AValue : String); virtual;
  1175. Procedure Setdetails(AIndex : Integer; const AValue : String); virtual;
  1176. Procedure SetstateStartTime(AIndex : Integer; const AValue : String); virtual;
  1177. Public
  1178. Published
  1179. Property state : String Index 0 Read Fstate Write Setstate;
  1180. Property innerState : String Index 8 Read FinnerState Write SetinnerState;
  1181. Property details : String Index 16 Read Fdetails Write Setdetails;
  1182. Property stateStartTime : String Index 24 Read FstateStartTime Write SetstateStartTime;
  1183. end;
  1184. TOperationStatusClass = Class of TOperationStatus;
  1185. { --------------------------------------------------------------------
  1186. TProjectsRegionsClustersResource
  1187. --------------------------------------------------------------------}
  1188. //Optional query Options for TProjectsRegionsClustersResource, method Patch
  1189. TProjectsRegionsClustersPatchOptions = Record
  1190. updateMask : String;
  1191. end;
  1192. //Optional query Options for TProjectsRegionsClustersResource, method List
  1193. TProjectsRegionsClustersListOptions = Record
  1194. pageSize : integer;
  1195. pageToken : String;
  1196. end;
  1197. TProjectsRegionsClustersResource = Class(TGoogleResource)
  1198. Public
  1199. Class Function ResourceName : String; override;
  1200. Class Function DefaultAPI : TGoogleAPIClass; override;
  1201. Function Create(projectId: string; region: string; aCluster : TCluster) : TOperation;overload;
  1202. Function Patch(projectId: string; region: string; clusterName: string; aCluster : TCluster; AQuery : string = '') : TOperation;
  1203. Function Patch(projectId: string; region: string; clusterName: string; aCluster : TCluster; AQuery : TProjectsRegionsClusterspatchOptions) : TOperation;
  1204. Function Delete(projectId: string; region: string; clusterName: string) : TOperation;
  1205. Function Get(projectId: string; region: string; clusterName: string) : TCluster;
  1206. Function List(projectId: string; region: string; AQuery : string = '') : TListClustersResponse;
  1207. Function List(projectId: string; region: string; AQuery : TProjectsRegionsClusterslistOptions) : TListClustersResponse;
  1208. Function Diagnose(projectId: string; region: string; clusterName: string; aDiagnoseClusterRequest : TDiagnoseClusterRequest) : TOperation;
  1209. end;
  1210. { --------------------------------------------------------------------
  1211. TProjectsRegionsJobsResource
  1212. --------------------------------------------------------------------}
  1213. //Optional query Options for TProjectsRegionsJobsResource, method List
  1214. TProjectsRegionsJobsListOptions = Record
  1215. pageSize : integer;
  1216. pageToken : String;
  1217. clusterName : String;
  1218. jobStateMatcher : String;
  1219. end;
  1220. TProjectsRegionsJobsResource = Class(TGoogleResource)
  1221. Public
  1222. Class Function ResourceName : String; override;
  1223. Class Function DefaultAPI : TGoogleAPIClass; override;
  1224. Function Submit(projectId: string; region: string; aSubmitJobRequest : TSubmitJobRequest) : TJob;
  1225. Function Get(projectId: string; region: string; jobId: string) : TJob;
  1226. Function List(projectId: string; region: string; AQuery : string = '') : TListJobsResponse;
  1227. Function List(projectId: string; region: string; AQuery : TProjectsRegionsJobslistOptions) : TListJobsResponse;
  1228. Function Cancel(projectId: string; region: string; jobId: string; aCancelJobRequest : TCancelJobRequest) : TJob;
  1229. Function Delete(projectId: string; region: string; jobId: string) : TEmpty;
  1230. end;
  1231. { --------------------------------------------------------------------
  1232. TProjectsRegionsOperationsResource
  1233. --------------------------------------------------------------------}
  1234. //Optional query Options for TProjectsRegionsOperationsResource, method List
  1235. TProjectsRegionsOperationsListOptions = Record
  1236. filter : String;
  1237. pageSize : integer;
  1238. pageToken : String;
  1239. end;
  1240. TProjectsRegionsOperationsResource = Class(TGoogleResource)
  1241. Public
  1242. Class Function ResourceName : String; override;
  1243. Class Function DefaultAPI : TGoogleAPIClass; override;
  1244. Function Get(_name: string) : TOperation;
  1245. Function List(_name: string; AQuery : string = '') : TListOperationsResponse;
  1246. Function List(_name: string; AQuery : TProjectsRegionsOperationslistOptions) : TListOperationsResponse;
  1247. Function Cancel(_name: string) : TEmpty;
  1248. Function Delete(_name: string) : TEmpty;
  1249. end;
  1250. { --------------------------------------------------------------------
  1251. TProjectsRegionsResource
  1252. --------------------------------------------------------------------}
  1253. TProjectsRegionsResource = Class(TGoogleResource)
  1254. Private
  1255. FClustersInstance : TProjectsRegionsClustersResource;
  1256. FJobsInstance : TProjectsRegionsJobsResource;
  1257. FOperationsInstance : TProjectsRegionsOperationsResource;
  1258. Function GetClustersInstance : TProjectsRegionsClustersResource;virtual;
  1259. Function GetJobsInstance : TProjectsRegionsJobsResource;virtual;
  1260. Function GetOperationsInstance : TProjectsRegionsOperationsResource;virtual;
  1261. Public
  1262. Class Function ResourceName : String; override;
  1263. Class Function DefaultAPI : TGoogleAPIClass; override;
  1264. Function CreateClustersResource(AOwner : TComponent) : TProjectsRegionsClustersResource;virtual;overload;
  1265. Function CreateClustersResource : TProjectsRegionsClustersResource;virtual;overload;
  1266. Function CreateJobsResource(AOwner : TComponent) : TProjectsRegionsJobsResource;virtual;overload;
  1267. Function CreateJobsResource : TProjectsRegionsJobsResource;virtual;overload;
  1268. Function CreateOperationsResource(AOwner : TComponent) : TProjectsRegionsOperationsResource;virtual;overload;
  1269. Function CreateOperationsResource : TProjectsRegionsOperationsResource;virtual;overload;
  1270. Property ClustersResource : TProjectsRegionsClustersResource Read GetClustersInstance;
  1271. Property JobsResource : TProjectsRegionsJobsResource Read GetJobsInstance;
  1272. Property OperationsResource : TProjectsRegionsOperationsResource Read GetOperationsInstance;
  1273. end;
  1274. { --------------------------------------------------------------------
  1275. TProjectsResource
  1276. --------------------------------------------------------------------}
  1277. TProjectsResource = Class(TGoogleResource)
  1278. Private
  1279. FRegionsClustersInstance : TProjectsRegionsClustersResource;
  1280. FRegionsJobsInstance : TProjectsRegionsJobsResource;
  1281. FRegionsOperationsInstance : TProjectsRegionsOperationsResource;
  1282. FRegionsInstance : TProjectsRegionsResource;
  1283. Function GetRegionsClustersInstance : TProjectsRegionsClustersResource;virtual;
  1284. Function GetRegionsJobsInstance : TProjectsRegionsJobsResource;virtual;
  1285. Function GetRegionsOperationsInstance : TProjectsRegionsOperationsResource;virtual;
  1286. Function GetRegionsInstance : TProjectsRegionsResource;virtual;
  1287. Public
  1288. Class Function ResourceName : String; override;
  1289. Class Function DefaultAPI : TGoogleAPIClass; override;
  1290. Function CreateRegionsClustersResource(AOwner : TComponent) : TProjectsRegionsClustersResource;virtual;overload;
  1291. Function CreateRegionsClustersResource : TProjectsRegionsClustersResource;virtual;overload;
  1292. Function CreateRegionsJobsResource(AOwner : TComponent) : TProjectsRegionsJobsResource;virtual;overload;
  1293. Function CreateRegionsJobsResource : TProjectsRegionsJobsResource;virtual;overload;
  1294. Function CreateRegionsOperationsResource(AOwner : TComponent) : TProjectsRegionsOperationsResource;virtual;overload;
  1295. Function CreateRegionsOperationsResource : TProjectsRegionsOperationsResource;virtual;overload;
  1296. Function CreateRegionsResource(AOwner : TComponent) : TProjectsRegionsResource;virtual;overload;
  1297. Function CreateRegionsResource : TProjectsRegionsResource;virtual;overload;
  1298. Property RegionsClustersResource : TProjectsRegionsClustersResource Read GetRegionsClustersInstance;
  1299. Property RegionsJobsResource : TProjectsRegionsJobsResource Read GetRegionsJobsInstance;
  1300. Property RegionsOperationsResource : TProjectsRegionsOperationsResource Read GetRegionsOperationsInstance;
  1301. Property RegionsResource : TProjectsRegionsResource Read GetRegionsInstance;
  1302. end;
  1303. { --------------------------------------------------------------------
  1304. TDataprocAPI
  1305. --------------------------------------------------------------------}
  1306. TDataprocAPI = Class(TGoogleAPI)
  1307. Private
  1308. FProjectsRegionsClustersInstance : TProjectsRegionsClustersResource;
  1309. FProjectsRegionsJobsInstance : TProjectsRegionsJobsResource;
  1310. FProjectsRegionsOperationsInstance : TProjectsRegionsOperationsResource;
  1311. FProjectsRegionsInstance : TProjectsRegionsResource;
  1312. FProjectsInstance : TProjectsResource;
  1313. Function GetProjectsRegionsClustersInstance : TProjectsRegionsClustersResource;virtual;
  1314. Function GetProjectsRegionsJobsInstance : TProjectsRegionsJobsResource;virtual;
  1315. Function GetProjectsRegionsOperationsInstance : TProjectsRegionsOperationsResource;virtual;
  1316. Function GetProjectsRegionsInstance : TProjectsRegionsResource;virtual;
  1317. Function GetProjectsInstance : TProjectsResource;virtual;
  1318. Public
  1319. //Override class functions with API info
  1320. Class Function APIName : String; override;
  1321. Class Function APIVersion : String; override;
  1322. Class Function APIRevision : String; override;
  1323. Class Function APIID : String; override;
  1324. Class Function APITitle : String; override;
  1325. Class Function APIDescription : String; override;
  1326. Class Function APIOwnerDomain : String; override;
  1327. Class Function APIOwnerName : String; override;
  1328. Class Function APIIcon16 : String; override;
  1329. Class Function APIIcon32 : String; override;
  1330. Class Function APIdocumentationLink : String; override;
  1331. Class Function APIrootUrl : string; override;
  1332. Class Function APIbasePath : string;override;
  1333. Class Function APIbaseURL : String;override;
  1334. Class Function APIProtocol : string;override;
  1335. Class Function APIservicePath : string;override;
  1336. Class Function APIbatchPath : String;override;
  1337. Class Function APIAuthScopes : TScopeInfoArray;override;
  1338. Class Function APINeedsAuth : Boolean;override;
  1339. Class Procedure RegisterAPIResources; override;
  1340. //Add create function for resources
  1341. Function CreateProjectsRegionsClustersResource(AOwner : TComponent) : TProjectsRegionsClustersResource;virtual;overload;
  1342. Function CreateProjectsRegionsClustersResource : TProjectsRegionsClustersResource;virtual;overload;
  1343. Function CreateProjectsRegionsJobsResource(AOwner : TComponent) : TProjectsRegionsJobsResource;virtual;overload;
  1344. Function CreateProjectsRegionsJobsResource : TProjectsRegionsJobsResource;virtual;overload;
  1345. Function CreateProjectsRegionsOperationsResource(AOwner : TComponent) : TProjectsRegionsOperationsResource;virtual;overload;
  1346. Function CreateProjectsRegionsOperationsResource : TProjectsRegionsOperationsResource;virtual;overload;
  1347. Function CreateProjectsRegionsResource(AOwner : TComponent) : TProjectsRegionsResource;virtual;overload;
  1348. Function CreateProjectsRegionsResource : TProjectsRegionsResource;virtual;overload;
  1349. Function CreateProjectsResource(AOwner : TComponent) : TProjectsResource;virtual;overload;
  1350. Function CreateProjectsResource : TProjectsResource;virtual;overload;
  1351. //Add default on-demand instances for resources
  1352. Property ProjectsRegionsClustersResource : TProjectsRegionsClustersResource Read GetProjectsRegionsClustersInstance;
  1353. Property ProjectsRegionsJobsResource : TProjectsRegionsJobsResource Read GetProjectsRegionsJobsInstance;
  1354. Property ProjectsRegionsOperationsResource : TProjectsRegionsOperationsResource Read GetProjectsRegionsOperationsInstance;
  1355. Property ProjectsRegionsResource : TProjectsRegionsResource Read GetProjectsRegionsInstance;
  1356. Property ProjectsResource : TProjectsResource Read GetProjectsInstance;
  1357. end;
  1358. implementation
  1359. { --------------------------------------------------------------------
  1360. TCluster
  1361. --------------------------------------------------------------------}
  1362. Procedure TCluster.SetprojectId(AIndex : Integer; const AValue : String);
  1363. begin
  1364. If (FprojectId=AValue) then exit;
  1365. FprojectId:=AValue;
  1366. MarkPropertyChanged(AIndex);
  1367. end;
  1368. Procedure TCluster.SetclusterName(AIndex : Integer; const AValue : String);
  1369. begin
  1370. If (FclusterName=AValue) then exit;
  1371. FclusterName:=AValue;
  1372. MarkPropertyChanged(AIndex);
  1373. end;
  1374. Procedure TCluster.Setconfig(AIndex : Integer; const AValue : TClusterConfig);
  1375. begin
  1376. If (Fconfig=AValue) then exit;
  1377. Fconfig:=AValue;
  1378. MarkPropertyChanged(AIndex);
  1379. end;
  1380. Procedure TCluster.Setstatus(AIndex : Integer; const AValue : TClusterStatus);
  1381. begin
  1382. If (Fstatus=AValue) then exit;
  1383. Fstatus:=AValue;
  1384. MarkPropertyChanged(AIndex);
  1385. end;
  1386. Procedure TCluster.SetstatusHistory(AIndex : Integer; const AValue : TClusterTypestatusHistoryArray);
  1387. begin
  1388. If (FstatusHistory=AValue) then exit;
  1389. FstatusHistory:=AValue;
  1390. MarkPropertyChanged(AIndex);
  1391. end;
  1392. Procedure TCluster.SetclusterUuid(AIndex : Integer; const AValue : String);
  1393. begin
  1394. If (FclusterUuid=AValue) then exit;
  1395. FclusterUuid:=AValue;
  1396. MarkPropertyChanged(AIndex);
  1397. end;
  1398. //2.6.4. bug workaround
  1399. {$IFDEF VER2_6}
  1400. Procedure TCluster.SetArrayLength(Const AName : String; ALength : Longint);
  1401. begin
  1402. Case AName of
  1403. 'statushistory' : SetLength(FstatusHistory,ALength);
  1404. else
  1405. Inherited SetArrayLength(AName,ALength);
  1406. end;
  1407. end;
  1408. {$ENDIF VER2_6}
  1409. { --------------------------------------------------------------------
  1410. TClusterConfig
  1411. --------------------------------------------------------------------}
  1412. Procedure TClusterConfig.SetconfigBucket(AIndex : Integer; const AValue : String);
  1413. begin
  1414. If (FconfigBucket=AValue) then exit;
  1415. FconfigBucket:=AValue;
  1416. MarkPropertyChanged(AIndex);
  1417. end;
  1418. Procedure TClusterConfig.SetgceClusterConfig(AIndex : Integer; const AValue : TGceClusterConfig);
  1419. begin
  1420. If (FgceClusterConfig=AValue) then exit;
  1421. FgceClusterConfig:=AValue;
  1422. MarkPropertyChanged(AIndex);
  1423. end;
  1424. Procedure TClusterConfig.SetmasterConfig(AIndex : Integer; const AValue : TInstanceGroupConfig);
  1425. begin
  1426. If (FmasterConfig=AValue) then exit;
  1427. FmasterConfig:=AValue;
  1428. MarkPropertyChanged(AIndex);
  1429. end;
  1430. Procedure TClusterConfig.SetworkerConfig(AIndex : Integer; const AValue : TInstanceGroupConfig);
  1431. begin
  1432. If (FworkerConfig=AValue) then exit;
  1433. FworkerConfig:=AValue;
  1434. MarkPropertyChanged(AIndex);
  1435. end;
  1436. Procedure TClusterConfig.SetsecondaryWorkerConfig(AIndex : Integer; const AValue : TInstanceGroupConfig);
  1437. begin
  1438. If (FsecondaryWorkerConfig=AValue) then exit;
  1439. FsecondaryWorkerConfig:=AValue;
  1440. MarkPropertyChanged(AIndex);
  1441. end;
  1442. Procedure TClusterConfig.SetsoftwareConfig(AIndex : Integer; const AValue : TSoftwareConfig);
  1443. begin
  1444. If (FsoftwareConfig=AValue) then exit;
  1445. FsoftwareConfig:=AValue;
  1446. MarkPropertyChanged(AIndex);
  1447. end;
  1448. Procedure TClusterConfig.SetinitializationActions(AIndex : Integer; const AValue : TClusterConfigTypeinitializationActionsArray);
  1449. begin
  1450. If (FinitializationActions=AValue) then exit;
  1451. FinitializationActions:=AValue;
  1452. MarkPropertyChanged(AIndex);
  1453. end;
  1454. //2.6.4. bug workaround
  1455. {$IFDEF VER2_6}
  1456. Procedure TClusterConfig.SetArrayLength(Const AName : String; ALength : Longint);
  1457. begin
  1458. Case AName of
  1459. 'initializationactions' : SetLength(FinitializationActions,ALength);
  1460. else
  1461. Inherited SetArrayLength(AName,ALength);
  1462. end;
  1463. end;
  1464. {$ENDIF VER2_6}
  1465. { --------------------------------------------------------------------
  1466. TGceClusterConfigTypemetadata
  1467. --------------------------------------------------------------------}
  1468. Class Function TGceClusterConfigTypemetadata.AllowAdditionalProperties : Boolean;
  1469. begin
  1470. Result:=True;
  1471. end;
  1472. { --------------------------------------------------------------------
  1473. TGceClusterConfig
  1474. --------------------------------------------------------------------}
  1475. Procedure TGceClusterConfig.SetzoneUri(AIndex : Integer; const AValue : String);
  1476. begin
  1477. If (FzoneUri=AValue) then exit;
  1478. FzoneUri:=AValue;
  1479. MarkPropertyChanged(AIndex);
  1480. end;
  1481. Procedure TGceClusterConfig.SetnetworkUri(AIndex : Integer; const AValue : String);
  1482. begin
  1483. If (FnetworkUri=AValue) then exit;
  1484. FnetworkUri:=AValue;
  1485. MarkPropertyChanged(AIndex);
  1486. end;
  1487. Procedure TGceClusterConfig.SetsubnetworkUri(AIndex : Integer; const AValue : String);
  1488. begin
  1489. If (FsubnetworkUri=AValue) then exit;
  1490. FsubnetworkUri:=AValue;
  1491. MarkPropertyChanged(AIndex);
  1492. end;
  1493. Procedure TGceClusterConfig.SetserviceAccountScopes(AIndex : Integer; const AValue : TStringArray);
  1494. begin
  1495. If (FserviceAccountScopes=AValue) then exit;
  1496. FserviceAccountScopes:=AValue;
  1497. MarkPropertyChanged(AIndex);
  1498. end;
  1499. Procedure TGceClusterConfig.Settags(AIndex : Integer; const AValue : TStringArray);
  1500. begin
  1501. If (Ftags=AValue) then exit;
  1502. Ftags:=AValue;
  1503. MarkPropertyChanged(AIndex);
  1504. end;
  1505. Procedure TGceClusterConfig.Setmetadata(AIndex : Integer; const AValue : TGceClusterConfigTypemetadata);
  1506. begin
  1507. If (Fmetadata=AValue) then exit;
  1508. Fmetadata:=AValue;
  1509. MarkPropertyChanged(AIndex);
  1510. end;
  1511. //2.6.4. bug workaround
  1512. {$IFDEF VER2_6}
  1513. Procedure TGceClusterConfig.SetArrayLength(Const AName : String; ALength : Longint);
  1514. begin
  1515. Case AName of
  1516. 'serviceaccountscopes' : SetLength(FserviceAccountScopes,ALength);
  1517. 'tags' : SetLength(Ftags,ALength);
  1518. else
  1519. Inherited SetArrayLength(AName,ALength);
  1520. end;
  1521. end;
  1522. {$ENDIF VER2_6}
  1523. { --------------------------------------------------------------------
  1524. TInstanceGroupConfig
  1525. --------------------------------------------------------------------}
  1526. Procedure TInstanceGroupConfig.SetnumInstances(AIndex : Integer; const AValue : integer);
  1527. begin
  1528. If (FnumInstances=AValue) then exit;
  1529. FnumInstances:=AValue;
  1530. MarkPropertyChanged(AIndex);
  1531. end;
  1532. Procedure TInstanceGroupConfig.SetinstanceNames(AIndex : Integer; const AValue : TStringArray);
  1533. begin
  1534. If (FinstanceNames=AValue) then exit;
  1535. FinstanceNames:=AValue;
  1536. MarkPropertyChanged(AIndex);
  1537. end;
  1538. Procedure TInstanceGroupConfig.SetimageUri(AIndex : Integer; const AValue : String);
  1539. begin
  1540. If (FimageUri=AValue) then exit;
  1541. FimageUri:=AValue;
  1542. MarkPropertyChanged(AIndex);
  1543. end;
  1544. Procedure TInstanceGroupConfig.SetmachineTypeUri(AIndex : Integer; const AValue : String);
  1545. begin
  1546. If (FmachineTypeUri=AValue) then exit;
  1547. FmachineTypeUri:=AValue;
  1548. MarkPropertyChanged(AIndex);
  1549. end;
  1550. Procedure TInstanceGroupConfig.SetdiskConfig(AIndex : Integer; const AValue : TDiskConfig);
  1551. begin
  1552. If (FdiskConfig=AValue) then exit;
  1553. FdiskConfig:=AValue;
  1554. MarkPropertyChanged(AIndex);
  1555. end;
  1556. Procedure TInstanceGroupConfig.SetisPreemptible(AIndex : Integer; const AValue : boolean);
  1557. begin
  1558. If (FisPreemptible=AValue) then exit;
  1559. FisPreemptible:=AValue;
  1560. MarkPropertyChanged(AIndex);
  1561. end;
  1562. Procedure TInstanceGroupConfig.SetmanagedGroupConfig(AIndex : Integer; const AValue : TManagedGroupConfig);
  1563. begin
  1564. If (FmanagedGroupConfig=AValue) then exit;
  1565. FmanagedGroupConfig:=AValue;
  1566. MarkPropertyChanged(AIndex);
  1567. end;
  1568. //2.6.4. bug workaround
  1569. {$IFDEF VER2_6}
  1570. Procedure TInstanceGroupConfig.SetArrayLength(Const AName : String; ALength : Longint);
  1571. begin
  1572. Case AName of
  1573. 'instancenames' : SetLength(FinstanceNames,ALength);
  1574. else
  1575. Inherited SetArrayLength(AName,ALength);
  1576. end;
  1577. end;
  1578. {$ENDIF VER2_6}
  1579. { --------------------------------------------------------------------
  1580. TDiskConfig
  1581. --------------------------------------------------------------------}
  1582. Procedure TDiskConfig.SetbootDiskSizeGb(AIndex : Integer; const AValue : integer);
  1583. begin
  1584. If (FbootDiskSizeGb=AValue) then exit;
  1585. FbootDiskSizeGb:=AValue;
  1586. MarkPropertyChanged(AIndex);
  1587. end;
  1588. Procedure TDiskConfig.SetnumLocalSsds(AIndex : Integer; const AValue : integer);
  1589. begin
  1590. If (FnumLocalSsds=AValue) then exit;
  1591. FnumLocalSsds:=AValue;
  1592. MarkPropertyChanged(AIndex);
  1593. end;
  1594. { --------------------------------------------------------------------
  1595. TManagedGroupConfig
  1596. --------------------------------------------------------------------}
  1597. Procedure TManagedGroupConfig.SetinstanceTemplateName(AIndex : Integer; const AValue : String);
  1598. begin
  1599. If (FinstanceTemplateName=AValue) then exit;
  1600. FinstanceTemplateName:=AValue;
  1601. MarkPropertyChanged(AIndex);
  1602. end;
  1603. Procedure TManagedGroupConfig.SetinstanceGroupManagerName(AIndex : Integer; const AValue : String);
  1604. begin
  1605. If (FinstanceGroupManagerName=AValue) then exit;
  1606. FinstanceGroupManagerName:=AValue;
  1607. MarkPropertyChanged(AIndex);
  1608. end;
  1609. { --------------------------------------------------------------------
  1610. TSoftwareConfigTypeproperties
  1611. --------------------------------------------------------------------}
  1612. Class Function TSoftwareConfigTypeproperties.AllowAdditionalProperties : Boolean;
  1613. begin
  1614. Result:=True;
  1615. end;
  1616. { --------------------------------------------------------------------
  1617. TSoftwareConfig
  1618. --------------------------------------------------------------------}
  1619. Procedure TSoftwareConfig.SetimageVersion(AIndex : Integer; const AValue : String);
  1620. begin
  1621. If (FimageVersion=AValue) then exit;
  1622. FimageVersion:=AValue;
  1623. MarkPropertyChanged(AIndex);
  1624. end;
  1625. Procedure TSoftwareConfig.Setproperties(AIndex : Integer; const AValue : TSoftwareConfigTypeproperties);
  1626. begin
  1627. If (Fproperties=AValue) then exit;
  1628. Fproperties:=AValue;
  1629. MarkPropertyChanged(AIndex);
  1630. end;
  1631. { --------------------------------------------------------------------
  1632. TNodeInitializationAction
  1633. --------------------------------------------------------------------}
  1634. Procedure TNodeInitializationAction.SetexecutableFile(AIndex : Integer; const AValue : String);
  1635. begin
  1636. If (FexecutableFile=AValue) then exit;
  1637. FexecutableFile:=AValue;
  1638. MarkPropertyChanged(AIndex);
  1639. end;
  1640. Procedure TNodeInitializationAction.SetexecutionTimeout(AIndex : Integer; const AValue : String);
  1641. begin
  1642. If (FexecutionTimeout=AValue) then exit;
  1643. FexecutionTimeout:=AValue;
  1644. MarkPropertyChanged(AIndex);
  1645. end;
  1646. { --------------------------------------------------------------------
  1647. TClusterStatus
  1648. --------------------------------------------------------------------}
  1649. Procedure TClusterStatus.Setstate(AIndex : Integer; const AValue : String);
  1650. begin
  1651. If (Fstate=AValue) then exit;
  1652. Fstate:=AValue;
  1653. MarkPropertyChanged(AIndex);
  1654. end;
  1655. Procedure TClusterStatus.Setdetail(AIndex : Integer; const AValue : String);
  1656. begin
  1657. If (Fdetail=AValue) then exit;
  1658. Fdetail:=AValue;
  1659. MarkPropertyChanged(AIndex);
  1660. end;
  1661. Procedure TClusterStatus.SetstateStartTime(AIndex : Integer; const AValue : String);
  1662. begin
  1663. If (FstateStartTime=AValue) then exit;
  1664. FstateStartTime:=AValue;
  1665. MarkPropertyChanged(AIndex);
  1666. end;
  1667. { --------------------------------------------------------------------
  1668. TOperationTypemetadata
  1669. --------------------------------------------------------------------}
  1670. Class Function TOperationTypemetadata.AllowAdditionalProperties : Boolean;
  1671. begin
  1672. Result:=True;
  1673. end;
  1674. { --------------------------------------------------------------------
  1675. TOperationTyperesponse
  1676. --------------------------------------------------------------------}
  1677. Class Function TOperationTyperesponse.AllowAdditionalProperties : Boolean;
  1678. begin
  1679. Result:=True;
  1680. end;
  1681. { --------------------------------------------------------------------
  1682. TOperation
  1683. --------------------------------------------------------------------}
  1684. Procedure TOperation.Setname(AIndex : Integer; const AValue : String);
  1685. begin
  1686. If (Fname=AValue) then exit;
  1687. Fname:=AValue;
  1688. MarkPropertyChanged(AIndex);
  1689. end;
  1690. Procedure TOperation.Setmetadata(AIndex : Integer; const AValue : TOperationTypemetadata);
  1691. begin
  1692. If (Fmetadata=AValue) then exit;
  1693. Fmetadata:=AValue;
  1694. MarkPropertyChanged(AIndex);
  1695. end;
  1696. Procedure TOperation.Setdone(AIndex : Integer; const AValue : boolean);
  1697. begin
  1698. If (Fdone=AValue) then exit;
  1699. Fdone:=AValue;
  1700. MarkPropertyChanged(AIndex);
  1701. end;
  1702. Procedure TOperation.Seterror(AIndex : Integer; const AValue : TStatus);
  1703. begin
  1704. If (Ferror=AValue) then exit;
  1705. Ferror:=AValue;
  1706. MarkPropertyChanged(AIndex);
  1707. end;
  1708. Procedure TOperation.Setresponse(AIndex : Integer; const AValue : TOperationTyperesponse);
  1709. begin
  1710. If (Fresponse=AValue) then exit;
  1711. Fresponse:=AValue;
  1712. MarkPropertyChanged(AIndex);
  1713. end;
  1714. { --------------------------------------------------------------------
  1715. TStatusTypedetailsItem
  1716. --------------------------------------------------------------------}
  1717. Class Function TStatusTypedetailsItem.AllowAdditionalProperties : Boolean;
  1718. begin
  1719. Result:=True;
  1720. end;
  1721. { --------------------------------------------------------------------
  1722. TStatus
  1723. --------------------------------------------------------------------}
  1724. Procedure TStatus.Setcode(AIndex : Integer; const AValue : integer);
  1725. begin
  1726. If (Fcode=AValue) then exit;
  1727. Fcode:=AValue;
  1728. MarkPropertyChanged(AIndex);
  1729. end;
  1730. Procedure TStatus.Setmessage(AIndex : Integer; const AValue : String);
  1731. begin
  1732. If (Fmessage=AValue) then exit;
  1733. Fmessage:=AValue;
  1734. MarkPropertyChanged(AIndex);
  1735. end;
  1736. Procedure TStatus.Setdetails(AIndex : Integer; const AValue : TStatusTypedetailsArray);
  1737. begin
  1738. If (Fdetails=AValue) then exit;
  1739. Fdetails:=AValue;
  1740. MarkPropertyChanged(AIndex);
  1741. end;
  1742. //2.6.4. bug workaround
  1743. {$IFDEF VER2_6}
  1744. Procedure TStatus.SetArrayLength(Const AName : String; ALength : Longint);
  1745. begin
  1746. Case AName of
  1747. 'details' : SetLength(Fdetails,ALength);
  1748. else
  1749. Inherited SetArrayLength(AName,ALength);
  1750. end;
  1751. end;
  1752. {$ENDIF VER2_6}
  1753. { --------------------------------------------------------------------
  1754. TListClustersResponse
  1755. --------------------------------------------------------------------}
  1756. Procedure TListClustersResponse.Setclusters(AIndex : Integer; const AValue : TListClustersResponseTypeclustersArray);
  1757. begin
  1758. If (Fclusters=AValue) then exit;
  1759. Fclusters:=AValue;
  1760. MarkPropertyChanged(AIndex);
  1761. end;
  1762. Procedure TListClustersResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1763. begin
  1764. If (FnextPageToken=AValue) then exit;
  1765. FnextPageToken:=AValue;
  1766. MarkPropertyChanged(AIndex);
  1767. end;
  1768. //2.6.4. bug workaround
  1769. {$IFDEF VER2_6}
  1770. Procedure TListClustersResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1771. begin
  1772. Case AName of
  1773. 'clusters' : SetLength(Fclusters,ALength);
  1774. else
  1775. Inherited SetArrayLength(AName,ALength);
  1776. end;
  1777. end;
  1778. {$ENDIF VER2_6}
  1779. { --------------------------------------------------------------------
  1780. TDiagnoseClusterRequest
  1781. --------------------------------------------------------------------}
  1782. { --------------------------------------------------------------------
  1783. TSubmitJobRequest
  1784. --------------------------------------------------------------------}
  1785. Procedure TSubmitJobRequest.Setjob(AIndex : Integer; const AValue : TJob);
  1786. begin
  1787. If (Fjob=AValue) then exit;
  1788. Fjob:=AValue;
  1789. MarkPropertyChanged(AIndex);
  1790. end;
  1791. { --------------------------------------------------------------------
  1792. TJob
  1793. --------------------------------------------------------------------}
  1794. Procedure TJob.Setreference(AIndex : Integer; const AValue : TJobReference);
  1795. begin
  1796. If (Freference=AValue) then exit;
  1797. Freference:=AValue;
  1798. MarkPropertyChanged(AIndex);
  1799. end;
  1800. Procedure TJob.Setplacement(AIndex : Integer; const AValue : TJobPlacement);
  1801. begin
  1802. If (Fplacement=AValue) then exit;
  1803. Fplacement:=AValue;
  1804. MarkPropertyChanged(AIndex);
  1805. end;
  1806. Procedure TJob.SethadoopJob(AIndex : Integer; const AValue : THadoopJob);
  1807. begin
  1808. If (FhadoopJob=AValue) then exit;
  1809. FhadoopJob:=AValue;
  1810. MarkPropertyChanged(AIndex);
  1811. end;
  1812. Procedure TJob.SetsparkJob(AIndex : Integer; const AValue : TSparkJob);
  1813. begin
  1814. If (FsparkJob=AValue) then exit;
  1815. FsparkJob:=AValue;
  1816. MarkPropertyChanged(AIndex);
  1817. end;
  1818. Procedure TJob.SetpysparkJob(AIndex : Integer; const AValue : TPySparkJob);
  1819. begin
  1820. If (FpysparkJob=AValue) then exit;
  1821. FpysparkJob:=AValue;
  1822. MarkPropertyChanged(AIndex);
  1823. end;
  1824. Procedure TJob.SethiveJob(AIndex : Integer; const AValue : THiveJob);
  1825. begin
  1826. If (FhiveJob=AValue) then exit;
  1827. FhiveJob:=AValue;
  1828. MarkPropertyChanged(AIndex);
  1829. end;
  1830. Procedure TJob.SetpigJob(AIndex : Integer; const AValue : TPigJob);
  1831. begin
  1832. If (FpigJob=AValue) then exit;
  1833. FpigJob:=AValue;
  1834. MarkPropertyChanged(AIndex);
  1835. end;
  1836. Procedure TJob.SetsparkSqlJob(AIndex : Integer; const AValue : TSparkSqlJob);
  1837. begin
  1838. If (FsparkSqlJob=AValue) then exit;
  1839. FsparkSqlJob:=AValue;
  1840. MarkPropertyChanged(AIndex);
  1841. end;
  1842. Procedure TJob.Setstatus(AIndex : Integer; const AValue : TJobStatus);
  1843. begin
  1844. If (Fstatus=AValue) then exit;
  1845. Fstatus:=AValue;
  1846. MarkPropertyChanged(AIndex);
  1847. end;
  1848. Procedure TJob.SetstatusHistory(AIndex : Integer; const AValue : TJobTypestatusHistoryArray);
  1849. begin
  1850. If (FstatusHistory=AValue) then exit;
  1851. FstatusHistory:=AValue;
  1852. MarkPropertyChanged(AIndex);
  1853. end;
  1854. Procedure TJob.SetdriverOutputResourceUri(AIndex : Integer; const AValue : String);
  1855. begin
  1856. If (FdriverOutputResourceUri=AValue) then exit;
  1857. FdriverOutputResourceUri:=AValue;
  1858. MarkPropertyChanged(AIndex);
  1859. end;
  1860. Procedure TJob.SetdriverControlFilesUri(AIndex : Integer; const AValue : String);
  1861. begin
  1862. If (FdriverControlFilesUri=AValue) then exit;
  1863. FdriverControlFilesUri:=AValue;
  1864. MarkPropertyChanged(AIndex);
  1865. end;
  1866. //2.6.4. bug workaround
  1867. {$IFDEF VER2_6}
  1868. Procedure TJob.SetArrayLength(Const AName : String; ALength : Longint);
  1869. begin
  1870. Case AName of
  1871. 'statushistory' : SetLength(FstatusHistory,ALength);
  1872. else
  1873. Inherited SetArrayLength(AName,ALength);
  1874. end;
  1875. end;
  1876. {$ENDIF VER2_6}
  1877. { --------------------------------------------------------------------
  1878. TJobReference
  1879. --------------------------------------------------------------------}
  1880. Procedure TJobReference.SetprojectId(AIndex : Integer; const AValue : String);
  1881. begin
  1882. If (FprojectId=AValue) then exit;
  1883. FprojectId:=AValue;
  1884. MarkPropertyChanged(AIndex);
  1885. end;
  1886. Procedure TJobReference.SetjobId(AIndex : Integer; const AValue : String);
  1887. begin
  1888. If (FjobId=AValue) then exit;
  1889. FjobId:=AValue;
  1890. MarkPropertyChanged(AIndex);
  1891. end;
  1892. { --------------------------------------------------------------------
  1893. TJobPlacement
  1894. --------------------------------------------------------------------}
  1895. Procedure TJobPlacement.SetclusterName(AIndex : Integer; const AValue : String);
  1896. begin
  1897. If (FclusterName=AValue) then exit;
  1898. FclusterName:=AValue;
  1899. MarkPropertyChanged(AIndex);
  1900. end;
  1901. Procedure TJobPlacement.SetclusterUuid(AIndex : Integer; const AValue : String);
  1902. begin
  1903. If (FclusterUuid=AValue) then exit;
  1904. FclusterUuid:=AValue;
  1905. MarkPropertyChanged(AIndex);
  1906. end;
  1907. { --------------------------------------------------------------------
  1908. THadoopJobTypeproperties
  1909. --------------------------------------------------------------------}
  1910. Class Function THadoopJobTypeproperties.AllowAdditionalProperties : Boolean;
  1911. begin
  1912. Result:=True;
  1913. end;
  1914. { --------------------------------------------------------------------
  1915. THadoopJob
  1916. --------------------------------------------------------------------}
  1917. Procedure THadoopJob.SetmainJarFileUri(AIndex : Integer; const AValue : String);
  1918. begin
  1919. If (FmainJarFileUri=AValue) then exit;
  1920. FmainJarFileUri:=AValue;
  1921. MarkPropertyChanged(AIndex);
  1922. end;
  1923. Procedure THadoopJob.SetmainClass(AIndex : Integer; const AValue : String);
  1924. begin
  1925. If (FmainClass=AValue) then exit;
  1926. FmainClass:=AValue;
  1927. MarkPropertyChanged(AIndex);
  1928. end;
  1929. Procedure THadoopJob.Setargs(AIndex : Integer; const AValue : TStringArray);
  1930. begin
  1931. If (Fargs=AValue) then exit;
  1932. Fargs:=AValue;
  1933. MarkPropertyChanged(AIndex);
  1934. end;
  1935. Procedure THadoopJob.SetjarFileUris(AIndex : Integer; const AValue : TStringArray);
  1936. begin
  1937. If (FjarFileUris=AValue) then exit;
  1938. FjarFileUris:=AValue;
  1939. MarkPropertyChanged(AIndex);
  1940. end;
  1941. Procedure THadoopJob.SetfileUris(AIndex : Integer; const AValue : TStringArray);
  1942. begin
  1943. If (FfileUris=AValue) then exit;
  1944. FfileUris:=AValue;
  1945. MarkPropertyChanged(AIndex);
  1946. end;
  1947. Procedure THadoopJob.SetarchiveUris(AIndex : Integer; const AValue : TStringArray);
  1948. begin
  1949. If (FarchiveUris=AValue) then exit;
  1950. FarchiveUris:=AValue;
  1951. MarkPropertyChanged(AIndex);
  1952. end;
  1953. Procedure THadoopJob.Setproperties(AIndex : Integer; const AValue : THadoopJobTypeproperties);
  1954. begin
  1955. If (Fproperties=AValue) then exit;
  1956. Fproperties:=AValue;
  1957. MarkPropertyChanged(AIndex);
  1958. end;
  1959. Procedure THadoopJob.SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig);
  1960. begin
  1961. If (FloggingConfig=AValue) then exit;
  1962. FloggingConfig:=AValue;
  1963. MarkPropertyChanged(AIndex);
  1964. end;
  1965. //2.6.4. bug workaround
  1966. {$IFDEF VER2_6}
  1967. Procedure THadoopJob.SetArrayLength(Const AName : String; ALength : Longint);
  1968. begin
  1969. Case AName of
  1970. 'args' : SetLength(Fargs,ALength);
  1971. 'jarfileuris' : SetLength(FjarFileUris,ALength);
  1972. 'fileuris' : SetLength(FfileUris,ALength);
  1973. 'archiveuris' : SetLength(FarchiveUris,ALength);
  1974. else
  1975. Inherited SetArrayLength(AName,ALength);
  1976. end;
  1977. end;
  1978. {$ENDIF VER2_6}
  1979. { --------------------------------------------------------------------
  1980. TLoggingConfigTypedriverLogLevels
  1981. --------------------------------------------------------------------}
  1982. Class Function TLoggingConfigTypedriverLogLevels.AllowAdditionalProperties : Boolean;
  1983. begin
  1984. Result:=True;
  1985. end;
  1986. { --------------------------------------------------------------------
  1987. TLoggingConfig
  1988. --------------------------------------------------------------------}
  1989. Procedure TLoggingConfig.SetdriverLogLevels(AIndex : Integer; const AValue : TLoggingConfigTypedriverLogLevels);
  1990. begin
  1991. If (FdriverLogLevels=AValue) then exit;
  1992. FdriverLogLevels:=AValue;
  1993. MarkPropertyChanged(AIndex);
  1994. end;
  1995. { --------------------------------------------------------------------
  1996. TSparkJobTypeproperties
  1997. --------------------------------------------------------------------}
  1998. Class Function TSparkJobTypeproperties.AllowAdditionalProperties : Boolean;
  1999. begin
  2000. Result:=True;
  2001. end;
  2002. { --------------------------------------------------------------------
  2003. TSparkJob
  2004. --------------------------------------------------------------------}
  2005. Procedure TSparkJob.SetmainJarFileUri(AIndex : Integer; const AValue : String);
  2006. begin
  2007. If (FmainJarFileUri=AValue) then exit;
  2008. FmainJarFileUri:=AValue;
  2009. MarkPropertyChanged(AIndex);
  2010. end;
  2011. Procedure TSparkJob.SetmainClass(AIndex : Integer; const AValue : String);
  2012. begin
  2013. If (FmainClass=AValue) then exit;
  2014. FmainClass:=AValue;
  2015. MarkPropertyChanged(AIndex);
  2016. end;
  2017. Procedure TSparkJob.Setargs(AIndex : Integer; const AValue : TStringArray);
  2018. begin
  2019. If (Fargs=AValue) then exit;
  2020. Fargs:=AValue;
  2021. MarkPropertyChanged(AIndex);
  2022. end;
  2023. Procedure TSparkJob.SetjarFileUris(AIndex : Integer; const AValue : TStringArray);
  2024. begin
  2025. If (FjarFileUris=AValue) then exit;
  2026. FjarFileUris:=AValue;
  2027. MarkPropertyChanged(AIndex);
  2028. end;
  2029. Procedure TSparkJob.SetfileUris(AIndex : Integer; const AValue : TStringArray);
  2030. begin
  2031. If (FfileUris=AValue) then exit;
  2032. FfileUris:=AValue;
  2033. MarkPropertyChanged(AIndex);
  2034. end;
  2035. Procedure TSparkJob.SetarchiveUris(AIndex : Integer; const AValue : TStringArray);
  2036. begin
  2037. If (FarchiveUris=AValue) then exit;
  2038. FarchiveUris:=AValue;
  2039. MarkPropertyChanged(AIndex);
  2040. end;
  2041. Procedure TSparkJob.Setproperties(AIndex : Integer; const AValue : TSparkJobTypeproperties);
  2042. begin
  2043. If (Fproperties=AValue) then exit;
  2044. Fproperties:=AValue;
  2045. MarkPropertyChanged(AIndex);
  2046. end;
  2047. Procedure TSparkJob.SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig);
  2048. begin
  2049. If (FloggingConfig=AValue) then exit;
  2050. FloggingConfig:=AValue;
  2051. MarkPropertyChanged(AIndex);
  2052. end;
  2053. //2.6.4. bug workaround
  2054. {$IFDEF VER2_6}
  2055. Procedure TSparkJob.SetArrayLength(Const AName : String; ALength : Longint);
  2056. begin
  2057. Case AName of
  2058. 'args' : SetLength(Fargs,ALength);
  2059. 'jarfileuris' : SetLength(FjarFileUris,ALength);
  2060. 'fileuris' : SetLength(FfileUris,ALength);
  2061. 'archiveuris' : SetLength(FarchiveUris,ALength);
  2062. else
  2063. Inherited SetArrayLength(AName,ALength);
  2064. end;
  2065. end;
  2066. {$ENDIF VER2_6}
  2067. { --------------------------------------------------------------------
  2068. TPySparkJobTypeproperties
  2069. --------------------------------------------------------------------}
  2070. Class Function TPySparkJobTypeproperties.AllowAdditionalProperties : Boolean;
  2071. begin
  2072. Result:=True;
  2073. end;
  2074. { --------------------------------------------------------------------
  2075. TPySparkJob
  2076. --------------------------------------------------------------------}
  2077. Procedure TPySparkJob.SetmainPythonFileUri(AIndex : Integer; const AValue : String);
  2078. begin
  2079. If (FmainPythonFileUri=AValue) then exit;
  2080. FmainPythonFileUri:=AValue;
  2081. MarkPropertyChanged(AIndex);
  2082. end;
  2083. Procedure TPySparkJob.Setargs(AIndex : Integer; const AValue : TStringArray);
  2084. begin
  2085. If (Fargs=AValue) then exit;
  2086. Fargs:=AValue;
  2087. MarkPropertyChanged(AIndex);
  2088. end;
  2089. Procedure TPySparkJob.SetpythonFileUris(AIndex : Integer; const AValue : TStringArray);
  2090. begin
  2091. If (FpythonFileUris=AValue) then exit;
  2092. FpythonFileUris:=AValue;
  2093. MarkPropertyChanged(AIndex);
  2094. end;
  2095. Procedure TPySparkJob.SetjarFileUris(AIndex : Integer; const AValue : TStringArray);
  2096. begin
  2097. If (FjarFileUris=AValue) then exit;
  2098. FjarFileUris:=AValue;
  2099. MarkPropertyChanged(AIndex);
  2100. end;
  2101. Procedure TPySparkJob.SetfileUris(AIndex : Integer; const AValue : TStringArray);
  2102. begin
  2103. If (FfileUris=AValue) then exit;
  2104. FfileUris:=AValue;
  2105. MarkPropertyChanged(AIndex);
  2106. end;
  2107. Procedure TPySparkJob.SetarchiveUris(AIndex : Integer; const AValue : TStringArray);
  2108. begin
  2109. If (FarchiveUris=AValue) then exit;
  2110. FarchiveUris:=AValue;
  2111. MarkPropertyChanged(AIndex);
  2112. end;
  2113. Procedure TPySparkJob.Setproperties(AIndex : Integer; const AValue : TPySparkJobTypeproperties);
  2114. begin
  2115. If (Fproperties=AValue) then exit;
  2116. Fproperties:=AValue;
  2117. MarkPropertyChanged(AIndex);
  2118. end;
  2119. Procedure TPySparkJob.SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig);
  2120. begin
  2121. If (FloggingConfig=AValue) then exit;
  2122. FloggingConfig:=AValue;
  2123. MarkPropertyChanged(AIndex);
  2124. end;
  2125. //2.6.4. bug workaround
  2126. {$IFDEF VER2_6}
  2127. Procedure TPySparkJob.SetArrayLength(Const AName : String; ALength : Longint);
  2128. begin
  2129. Case AName of
  2130. 'args' : SetLength(Fargs,ALength);
  2131. 'pythonfileuris' : SetLength(FpythonFileUris,ALength);
  2132. 'jarfileuris' : SetLength(FjarFileUris,ALength);
  2133. 'fileuris' : SetLength(FfileUris,ALength);
  2134. 'archiveuris' : SetLength(FarchiveUris,ALength);
  2135. else
  2136. Inherited SetArrayLength(AName,ALength);
  2137. end;
  2138. end;
  2139. {$ENDIF VER2_6}
  2140. { --------------------------------------------------------------------
  2141. THiveJobTypescriptVariables
  2142. --------------------------------------------------------------------}
  2143. Class Function THiveJobTypescriptVariables.AllowAdditionalProperties : Boolean;
  2144. begin
  2145. Result:=True;
  2146. end;
  2147. { --------------------------------------------------------------------
  2148. THiveJobTypeproperties
  2149. --------------------------------------------------------------------}
  2150. Class Function THiveJobTypeproperties.AllowAdditionalProperties : Boolean;
  2151. begin
  2152. Result:=True;
  2153. end;
  2154. { --------------------------------------------------------------------
  2155. THiveJob
  2156. --------------------------------------------------------------------}
  2157. Procedure THiveJob.SetqueryFileUri(AIndex : Integer; const AValue : String);
  2158. begin
  2159. If (FqueryFileUri=AValue) then exit;
  2160. FqueryFileUri:=AValue;
  2161. MarkPropertyChanged(AIndex);
  2162. end;
  2163. Procedure THiveJob.SetqueryList(AIndex : Integer; const AValue : TQueryList);
  2164. begin
  2165. If (FqueryList=AValue) then exit;
  2166. FqueryList:=AValue;
  2167. MarkPropertyChanged(AIndex);
  2168. end;
  2169. Procedure THiveJob.SetcontinueOnFailure(AIndex : Integer; const AValue : boolean);
  2170. begin
  2171. If (FcontinueOnFailure=AValue) then exit;
  2172. FcontinueOnFailure:=AValue;
  2173. MarkPropertyChanged(AIndex);
  2174. end;
  2175. Procedure THiveJob.SetscriptVariables(AIndex : Integer; const AValue : THiveJobTypescriptVariables);
  2176. begin
  2177. If (FscriptVariables=AValue) then exit;
  2178. FscriptVariables:=AValue;
  2179. MarkPropertyChanged(AIndex);
  2180. end;
  2181. Procedure THiveJob.Setproperties(AIndex : Integer; const AValue : THiveJobTypeproperties);
  2182. begin
  2183. If (Fproperties=AValue) then exit;
  2184. Fproperties:=AValue;
  2185. MarkPropertyChanged(AIndex);
  2186. end;
  2187. Procedure THiveJob.SetjarFileUris(AIndex : Integer; const AValue : TStringArray);
  2188. begin
  2189. If (FjarFileUris=AValue) then exit;
  2190. FjarFileUris:=AValue;
  2191. MarkPropertyChanged(AIndex);
  2192. end;
  2193. //2.6.4. bug workaround
  2194. {$IFDEF VER2_6}
  2195. Procedure THiveJob.SetArrayLength(Const AName : String; ALength : Longint);
  2196. begin
  2197. Case AName of
  2198. 'jarfileuris' : SetLength(FjarFileUris,ALength);
  2199. else
  2200. Inherited SetArrayLength(AName,ALength);
  2201. end;
  2202. end;
  2203. {$ENDIF VER2_6}
  2204. { --------------------------------------------------------------------
  2205. TQueryList
  2206. --------------------------------------------------------------------}
  2207. Procedure TQueryList.Setqueries(AIndex : Integer; const AValue : TStringArray);
  2208. begin
  2209. If (Fqueries=AValue) then exit;
  2210. Fqueries:=AValue;
  2211. MarkPropertyChanged(AIndex);
  2212. end;
  2213. //2.6.4. bug workaround
  2214. {$IFDEF VER2_6}
  2215. Procedure TQueryList.SetArrayLength(Const AName : String; ALength : Longint);
  2216. begin
  2217. Case AName of
  2218. 'queries' : SetLength(Fqueries,ALength);
  2219. else
  2220. Inherited SetArrayLength(AName,ALength);
  2221. end;
  2222. end;
  2223. {$ENDIF VER2_6}
  2224. { --------------------------------------------------------------------
  2225. TPigJobTypescriptVariables
  2226. --------------------------------------------------------------------}
  2227. Class Function TPigJobTypescriptVariables.AllowAdditionalProperties : Boolean;
  2228. begin
  2229. Result:=True;
  2230. end;
  2231. { --------------------------------------------------------------------
  2232. TPigJobTypeproperties
  2233. --------------------------------------------------------------------}
  2234. Class Function TPigJobTypeproperties.AllowAdditionalProperties : Boolean;
  2235. begin
  2236. Result:=True;
  2237. end;
  2238. { --------------------------------------------------------------------
  2239. TPigJob
  2240. --------------------------------------------------------------------}
  2241. Procedure TPigJob.SetqueryFileUri(AIndex : Integer; const AValue : String);
  2242. begin
  2243. If (FqueryFileUri=AValue) then exit;
  2244. FqueryFileUri:=AValue;
  2245. MarkPropertyChanged(AIndex);
  2246. end;
  2247. Procedure TPigJob.SetqueryList(AIndex : Integer; const AValue : TQueryList);
  2248. begin
  2249. If (FqueryList=AValue) then exit;
  2250. FqueryList:=AValue;
  2251. MarkPropertyChanged(AIndex);
  2252. end;
  2253. Procedure TPigJob.SetcontinueOnFailure(AIndex : Integer; const AValue : boolean);
  2254. begin
  2255. If (FcontinueOnFailure=AValue) then exit;
  2256. FcontinueOnFailure:=AValue;
  2257. MarkPropertyChanged(AIndex);
  2258. end;
  2259. Procedure TPigJob.SetscriptVariables(AIndex : Integer; const AValue : TPigJobTypescriptVariables);
  2260. begin
  2261. If (FscriptVariables=AValue) then exit;
  2262. FscriptVariables:=AValue;
  2263. MarkPropertyChanged(AIndex);
  2264. end;
  2265. Procedure TPigJob.Setproperties(AIndex : Integer; const AValue : TPigJobTypeproperties);
  2266. begin
  2267. If (Fproperties=AValue) then exit;
  2268. Fproperties:=AValue;
  2269. MarkPropertyChanged(AIndex);
  2270. end;
  2271. Procedure TPigJob.SetjarFileUris(AIndex : Integer; const AValue : TStringArray);
  2272. begin
  2273. If (FjarFileUris=AValue) then exit;
  2274. FjarFileUris:=AValue;
  2275. MarkPropertyChanged(AIndex);
  2276. end;
  2277. Procedure TPigJob.SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig);
  2278. begin
  2279. If (FloggingConfig=AValue) then exit;
  2280. FloggingConfig:=AValue;
  2281. MarkPropertyChanged(AIndex);
  2282. end;
  2283. //2.6.4. bug workaround
  2284. {$IFDEF VER2_6}
  2285. Procedure TPigJob.SetArrayLength(Const AName : String; ALength : Longint);
  2286. begin
  2287. Case AName of
  2288. 'jarfileuris' : SetLength(FjarFileUris,ALength);
  2289. else
  2290. Inherited SetArrayLength(AName,ALength);
  2291. end;
  2292. end;
  2293. {$ENDIF VER2_6}
  2294. { --------------------------------------------------------------------
  2295. TSparkSqlJobTypescriptVariables
  2296. --------------------------------------------------------------------}
  2297. Class Function TSparkSqlJobTypescriptVariables.AllowAdditionalProperties : Boolean;
  2298. begin
  2299. Result:=True;
  2300. end;
  2301. { --------------------------------------------------------------------
  2302. TSparkSqlJobTypeproperties
  2303. --------------------------------------------------------------------}
  2304. Class Function TSparkSqlJobTypeproperties.AllowAdditionalProperties : Boolean;
  2305. begin
  2306. Result:=True;
  2307. end;
  2308. { --------------------------------------------------------------------
  2309. TSparkSqlJob
  2310. --------------------------------------------------------------------}
  2311. Procedure TSparkSqlJob.SetqueryFileUri(AIndex : Integer; const AValue : String);
  2312. begin
  2313. If (FqueryFileUri=AValue) then exit;
  2314. FqueryFileUri:=AValue;
  2315. MarkPropertyChanged(AIndex);
  2316. end;
  2317. Procedure TSparkSqlJob.SetqueryList(AIndex : Integer; const AValue : TQueryList);
  2318. begin
  2319. If (FqueryList=AValue) then exit;
  2320. FqueryList:=AValue;
  2321. MarkPropertyChanged(AIndex);
  2322. end;
  2323. Procedure TSparkSqlJob.SetscriptVariables(AIndex : Integer; const AValue : TSparkSqlJobTypescriptVariables);
  2324. begin
  2325. If (FscriptVariables=AValue) then exit;
  2326. FscriptVariables:=AValue;
  2327. MarkPropertyChanged(AIndex);
  2328. end;
  2329. Procedure TSparkSqlJob.Setproperties(AIndex : Integer; const AValue : TSparkSqlJobTypeproperties);
  2330. begin
  2331. If (Fproperties=AValue) then exit;
  2332. Fproperties:=AValue;
  2333. MarkPropertyChanged(AIndex);
  2334. end;
  2335. Procedure TSparkSqlJob.SetjarFileUris(AIndex : Integer; const AValue : TStringArray);
  2336. begin
  2337. If (FjarFileUris=AValue) then exit;
  2338. FjarFileUris:=AValue;
  2339. MarkPropertyChanged(AIndex);
  2340. end;
  2341. Procedure TSparkSqlJob.SetloggingConfig(AIndex : Integer; const AValue : TLoggingConfig);
  2342. begin
  2343. If (FloggingConfig=AValue) then exit;
  2344. FloggingConfig:=AValue;
  2345. MarkPropertyChanged(AIndex);
  2346. end;
  2347. //2.6.4. bug workaround
  2348. {$IFDEF VER2_6}
  2349. Procedure TSparkSqlJob.SetArrayLength(Const AName : String; ALength : Longint);
  2350. begin
  2351. Case AName of
  2352. 'jarfileuris' : SetLength(FjarFileUris,ALength);
  2353. else
  2354. Inherited SetArrayLength(AName,ALength);
  2355. end;
  2356. end;
  2357. {$ENDIF VER2_6}
  2358. { --------------------------------------------------------------------
  2359. TJobStatus
  2360. --------------------------------------------------------------------}
  2361. Procedure TJobStatus.Setstate(AIndex : Integer; const AValue : String);
  2362. begin
  2363. If (Fstate=AValue) then exit;
  2364. Fstate:=AValue;
  2365. MarkPropertyChanged(AIndex);
  2366. end;
  2367. Procedure TJobStatus.Setdetails(AIndex : Integer; const AValue : String);
  2368. begin
  2369. If (Fdetails=AValue) then exit;
  2370. Fdetails:=AValue;
  2371. MarkPropertyChanged(AIndex);
  2372. end;
  2373. Procedure TJobStatus.SetstateStartTime(AIndex : Integer; const AValue : String);
  2374. begin
  2375. If (FstateStartTime=AValue) then exit;
  2376. FstateStartTime:=AValue;
  2377. MarkPropertyChanged(AIndex);
  2378. end;
  2379. { --------------------------------------------------------------------
  2380. TListJobsResponse
  2381. --------------------------------------------------------------------}
  2382. Procedure TListJobsResponse.Setjobs(AIndex : Integer; const AValue : TListJobsResponseTypejobsArray);
  2383. begin
  2384. If (Fjobs=AValue) then exit;
  2385. Fjobs:=AValue;
  2386. MarkPropertyChanged(AIndex);
  2387. end;
  2388. Procedure TListJobsResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  2389. begin
  2390. If (FnextPageToken=AValue) then exit;
  2391. FnextPageToken:=AValue;
  2392. MarkPropertyChanged(AIndex);
  2393. end;
  2394. //2.6.4. bug workaround
  2395. {$IFDEF VER2_6}
  2396. Procedure TListJobsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2397. begin
  2398. Case AName of
  2399. 'jobs' : SetLength(Fjobs,ALength);
  2400. else
  2401. Inherited SetArrayLength(AName,ALength);
  2402. end;
  2403. end;
  2404. {$ENDIF VER2_6}
  2405. { --------------------------------------------------------------------
  2406. TCancelJobRequest
  2407. --------------------------------------------------------------------}
  2408. { --------------------------------------------------------------------
  2409. TEmpty
  2410. --------------------------------------------------------------------}
  2411. { --------------------------------------------------------------------
  2412. TListOperationsResponse
  2413. --------------------------------------------------------------------}
  2414. Procedure TListOperationsResponse.Setoperations(AIndex : Integer; const AValue : TListOperationsResponseTypeoperationsArray);
  2415. begin
  2416. If (Foperations=AValue) then exit;
  2417. Foperations:=AValue;
  2418. MarkPropertyChanged(AIndex);
  2419. end;
  2420. Procedure TListOperationsResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  2421. begin
  2422. If (FnextPageToken=AValue) then exit;
  2423. FnextPageToken:=AValue;
  2424. MarkPropertyChanged(AIndex);
  2425. end;
  2426. //2.6.4. bug workaround
  2427. {$IFDEF VER2_6}
  2428. Procedure TListOperationsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2429. begin
  2430. Case AName of
  2431. 'operations' : SetLength(Foperations,ALength);
  2432. else
  2433. Inherited SetArrayLength(AName,ALength);
  2434. end;
  2435. end;
  2436. {$ENDIF VER2_6}
  2437. { --------------------------------------------------------------------
  2438. TDiagnoseClusterResults
  2439. --------------------------------------------------------------------}
  2440. Procedure TDiagnoseClusterResults.SetoutputUri(AIndex : Integer; const AValue : String);
  2441. begin
  2442. If (FoutputUri=AValue) then exit;
  2443. FoutputUri:=AValue;
  2444. MarkPropertyChanged(AIndex);
  2445. end;
  2446. { --------------------------------------------------------------------
  2447. TClusterOperationMetadata
  2448. --------------------------------------------------------------------}
  2449. Procedure TClusterOperationMetadata.SetclusterName(AIndex : Integer; const AValue : String);
  2450. begin
  2451. If (FclusterName=AValue) then exit;
  2452. FclusterName:=AValue;
  2453. MarkPropertyChanged(AIndex);
  2454. end;
  2455. Procedure TClusterOperationMetadata.SetclusterUuid(AIndex : Integer; const AValue : String);
  2456. begin
  2457. If (FclusterUuid=AValue) then exit;
  2458. FclusterUuid:=AValue;
  2459. MarkPropertyChanged(AIndex);
  2460. end;
  2461. Procedure TClusterOperationMetadata.Setstatus(AIndex : Integer; const AValue : TClusterOperationStatus);
  2462. begin
  2463. If (Fstatus=AValue) then exit;
  2464. Fstatus:=AValue;
  2465. MarkPropertyChanged(AIndex);
  2466. end;
  2467. Procedure TClusterOperationMetadata.SetstatusHistory(AIndex : Integer; const AValue : TClusterOperationMetadataTypestatusHistoryArray);
  2468. begin
  2469. If (FstatusHistory=AValue) then exit;
  2470. FstatusHistory:=AValue;
  2471. MarkPropertyChanged(AIndex);
  2472. end;
  2473. Procedure TClusterOperationMetadata.SetoperationType(AIndex : Integer; const AValue : String);
  2474. begin
  2475. If (FoperationType=AValue) then exit;
  2476. FoperationType:=AValue;
  2477. MarkPropertyChanged(AIndex);
  2478. end;
  2479. Procedure TClusterOperationMetadata.Setdescription(AIndex : Integer; const AValue : String);
  2480. begin
  2481. If (Fdescription=AValue) then exit;
  2482. Fdescription:=AValue;
  2483. MarkPropertyChanged(AIndex);
  2484. end;
  2485. //2.6.4. bug workaround
  2486. {$IFDEF VER2_6}
  2487. Procedure TClusterOperationMetadata.SetArrayLength(Const AName : String; ALength : Longint);
  2488. begin
  2489. Case AName of
  2490. 'statushistory' : SetLength(FstatusHistory,ALength);
  2491. else
  2492. Inherited SetArrayLength(AName,ALength);
  2493. end;
  2494. end;
  2495. {$ENDIF VER2_6}
  2496. { --------------------------------------------------------------------
  2497. TClusterOperationStatus
  2498. --------------------------------------------------------------------}
  2499. Procedure TClusterOperationStatus.Setstate(AIndex : Integer; const AValue : String);
  2500. begin
  2501. If (Fstate=AValue) then exit;
  2502. Fstate:=AValue;
  2503. MarkPropertyChanged(AIndex);
  2504. end;
  2505. Procedure TClusterOperationStatus.SetinnerState(AIndex : Integer; const AValue : String);
  2506. begin
  2507. If (FinnerState=AValue) then exit;
  2508. FinnerState:=AValue;
  2509. MarkPropertyChanged(AIndex);
  2510. end;
  2511. Procedure TClusterOperationStatus.Setdetails(AIndex : Integer; const AValue : String);
  2512. begin
  2513. If (Fdetails=AValue) then exit;
  2514. Fdetails:=AValue;
  2515. MarkPropertyChanged(AIndex);
  2516. end;
  2517. Procedure TClusterOperationStatus.SetstateStartTime(AIndex : Integer; const AValue : String);
  2518. begin
  2519. If (FstateStartTime=AValue) then exit;
  2520. FstateStartTime:=AValue;
  2521. MarkPropertyChanged(AIndex);
  2522. end;
  2523. { --------------------------------------------------------------------
  2524. TDiagnoseClusterOutputLocation
  2525. --------------------------------------------------------------------}
  2526. Procedure TDiagnoseClusterOutputLocation.SetoutputUri(AIndex : Integer; const AValue : String);
  2527. begin
  2528. If (FoutputUri=AValue) then exit;
  2529. FoutputUri:=AValue;
  2530. MarkPropertyChanged(AIndex);
  2531. end;
  2532. { --------------------------------------------------------------------
  2533. TOperationMetadata
  2534. --------------------------------------------------------------------}
  2535. Procedure TOperationMetadata.Setstate(AIndex : Integer; const AValue : String);
  2536. begin
  2537. If (Fstate=AValue) then exit;
  2538. Fstate:=AValue;
  2539. MarkPropertyChanged(AIndex);
  2540. end;
  2541. Procedure TOperationMetadata.SetinnerState(AIndex : Integer; const AValue : String);
  2542. begin
  2543. If (FinnerState=AValue) then exit;
  2544. FinnerState:=AValue;
  2545. MarkPropertyChanged(AIndex);
  2546. end;
  2547. Procedure TOperationMetadata.Setdetails(AIndex : Integer; const AValue : String);
  2548. begin
  2549. If (Fdetails=AValue) then exit;
  2550. Fdetails:=AValue;
  2551. MarkPropertyChanged(AIndex);
  2552. end;
  2553. Procedure TOperationMetadata.SetinsertTime(AIndex : Integer; const AValue : String);
  2554. begin
  2555. If (FinsertTime=AValue) then exit;
  2556. FinsertTime:=AValue;
  2557. MarkPropertyChanged(AIndex);
  2558. end;
  2559. Procedure TOperationMetadata.SetstartTime(AIndex : Integer; const AValue : String);
  2560. begin
  2561. If (FstartTime=AValue) then exit;
  2562. FstartTime:=AValue;
  2563. MarkPropertyChanged(AIndex);
  2564. end;
  2565. Procedure TOperationMetadata.SetendTime(AIndex : Integer; const AValue : String);
  2566. begin
  2567. If (FendTime=AValue) then exit;
  2568. FendTime:=AValue;
  2569. MarkPropertyChanged(AIndex);
  2570. end;
  2571. Procedure TOperationMetadata.SetclusterName(AIndex : Integer; const AValue : String);
  2572. begin
  2573. If (FclusterName=AValue) then exit;
  2574. FclusterName:=AValue;
  2575. MarkPropertyChanged(AIndex);
  2576. end;
  2577. Procedure TOperationMetadata.SetclusterUuid(AIndex : Integer; const AValue : String);
  2578. begin
  2579. If (FclusterUuid=AValue) then exit;
  2580. FclusterUuid:=AValue;
  2581. MarkPropertyChanged(AIndex);
  2582. end;
  2583. Procedure TOperationMetadata.Setstatus(AIndex : Integer; const AValue : TOperationStatus);
  2584. begin
  2585. If (Fstatus=AValue) then exit;
  2586. Fstatus:=AValue;
  2587. MarkPropertyChanged(AIndex);
  2588. end;
  2589. Procedure TOperationMetadata.SetstatusHistory(AIndex : Integer; const AValue : TOperationMetadataTypestatusHistoryArray);
  2590. begin
  2591. If (FstatusHistory=AValue) then exit;
  2592. FstatusHistory:=AValue;
  2593. MarkPropertyChanged(AIndex);
  2594. end;
  2595. Procedure TOperationMetadata.SetoperationType(AIndex : Integer; const AValue : String);
  2596. begin
  2597. If (FoperationType=AValue) then exit;
  2598. FoperationType:=AValue;
  2599. MarkPropertyChanged(AIndex);
  2600. end;
  2601. Procedure TOperationMetadata.Setdescription(AIndex : Integer; const AValue : String);
  2602. begin
  2603. If (Fdescription=AValue) then exit;
  2604. Fdescription:=AValue;
  2605. MarkPropertyChanged(AIndex);
  2606. end;
  2607. //2.6.4. bug workaround
  2608. {$IFDEF VER2_6}
  2609. Procedure TOperationMetadata.SetArrayLength(Const AName : String; ALength : Longint);
  2610. begin
  2611. Case AName of
  2612. 'statushistory' : SetLength(FstatusHistory,ALength);
  2613. else
  2614. Inherited SetArrayLength(AName,ALength);
  2615. end;
  2616. end;
  2617. {$ENDIF VER2_6}
  2618. { --------------------------------------------------------------------
  2619. TOperationStatus
  2620. --------------------------------------------------------------------}
  2621. Procedure TOperationStatus.Setstate(AIndex : Integer; const AValue : String);
  2622. begin
  2623. If (Fstate=AValue) then exit;
  2624. Fstate:=AValue;
  2625. MarkPropertyChanged(AIndex);
  2626. end;
  2627. Procedure TOperationStatus.SetinnerState(AIndex : Integer; const AValue : String);
  2628. begin
  2629. If (FinnerState=AValue) then exit;
  2630. FinnerState:=AValue;
  2631. MarkPropertyChanged(AIndex);
  2632. end;
  2633. Procedure TOperationStatus.Setdetails(AIndex : Integer; const AValue : String);
  2634. begin
  2635. If (Fdetails=AValue) then exit;
  2636. Fdetails:=AValue;
  2637. MarkPropertyChanged(AIndex);
  2638. end;
  2639. Procedure TOperationStatus.SetstateStartTime(AIndex : Integer; const AValue : String);
  2640. begin
  2641. If (FstateStartTime=AValue) then exit;
  2642. FstateStartTime:=AValue;
  2643. MarkPropertyChanged(AIndex);
  2644. end;
  2645. { --------------------------------------------------------------------
  2646. TProjectsRegionsClustersResource
  2647. --------------------------------------------------------------------}
  2648. Class Function TProjectsRegionsClustersResource.ResourceName : String;
  2649. begin
  2650. Result:='clusters';
  2651. end;
  2652. Class Function TProjectsRegionsClustersResource.DefaultAPI : TGoogleAPIClass;
  2653. begin
  2654. Result:=TdataprocAPI;
  2655. end;
  2656. Function TProjectsRegionsClustersResource.Create(projectId: string; region: string; aCluster : TCluster) : TOperation;
  2657. Const
  2658. _HTTPMethod = 'POST';
  2659. _Path = 'v1/projects/{projectId}/regions/{region}/clusters';
  2660. _Methodid = 'dataproc.projects.regions.clusters.create';
  2661. Var
  2662. _P : String;
  2663. begin
  2664. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region]);
  2665. Result:=ServiceCall(_HTTPMethod,_P,'',aCluster,TOperation) as TOperation;
  2666. end;
  2667. Function TProjectsRegionsClustersResource.Patch(projectId: string; region: string; clusterName: string; aCluster : TCluster; AQuery : string = '') : TOperation;
  2668. Const
  2669. _HTTPMethod = 'PATCH';
  2670. _Path = 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}';
  2671. _Methodid = 'dataproc.projects.regions.clusters.patch';
  2672. Var
  2673. _P : String;
  2674. begin
  2675. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region,'clusterName',clusterName]);
  2676. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCluster,TOperation) as TOperation;
  2677. end;
  2678. Function TProjectsRegionsClustersResource.Patch(projectId: string; region: string; clusterName: string; aCluster : TCluster; AQuery : TProjectsRegionsClusterspatchOptions) : TOperation;
  2679. Var
  2680. _Q : String;
  2681. begin
  2682. _Q:='';
  2683. AddToQuery(_Q,'updateMask',AQuery.updateMask);
  2684. Result:=Patch(projectId,region,clusterName,aCluster,_Q);
  2685. end;
  2686. Function TProjectsRegionsClustersResource.Delete(projectId: string; region: string; clusterName: string) : TOperation;
  2687. Const
  2688. _HTTPMethod = 'DELETE';
  2689. _Path = 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}';
  2690. _Methodid = 'dataproc.projects.regions.clusters.delete';
  2691. Var
  2692. _P : String;
  2693. begin
  2694. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region,'clusterName',clusterName]);
  2695. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOperation) as TOperation;
  2696. end;
  2697. Function TProjectsRegionsClustersResource.Get(projectId: string; region: string; clusterName: string) : TCluster;
  2698. Const
  2699. _HTTPMethod = 'GET';
  2700. _Path = 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}';
  2701. _Methodid = 'dataproc.projects.regions.clusters.get';
  2702. Var
  2703. _P : String;
  2704. begin
  2705. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region,'clusterName',clusterName]);
  2706. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TCluster) as TCluster;
  2707. end;
  2708. Function TProjectsRegionsClustersResource.List(projectId: string; region: string; AQuery : string = '') : TListClustersResponse;
  2709. Const
  2710. _HTTPMethod = 'GET';
  2711. _Path = 'v1/projects/{projectId}/regions/{region}/clusters';
  2712. _Methodid = 'dataproc.projects.regions.clusters.list';
  2713. Var
  2714. _P : String;
  2715. begin
  2716. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region]);
  2717. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListClustersResponse) as TListClustersResponse;
  2718. end;
  2719. Function TProjectsRegionsClustersResource.List(projectId: string; region: string; AQuery : TProjectsRegionsClusterslistOptions) : TListClustersResponse;
  2720. Var
  2721. _Q : String;
  2722. begin
  2723. _Q:='';
  2724. AddToQuery(_Q,'pageSize',AQuery.pageSize);
  2725. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2726. Result:=List(projectId,region,_Q);
  2727. end;
  2728. Function TProjectsRegionsClustersResource.Diagnose(projectId: string; region: string; clusterName: string; aDiagnoseClusterRequest : TDiagnoseClusterRequest) : TOperation;
  2729. Const
  2730. _HTTPMethod = 'POST';
  2731. _Path = 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose';
  2732. _Methodid = 'dataproc.projects.regions.clusters.diagnose';
  2733. Var
  2734. _P : String;
  2735. begin
  2736. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region,'clusterName',clusterName]);
  2737. Result:=ServiceCall(_HTTPMethod,_P,'',aDiagnoseClusterRequest,TOperation) as TOperation;
  2738. end;
  2739. { --------------------------------------------------------------------
  2740. TProjectsRegionsJobsResource
  2741. --------------------------------------------------------------------}
  2742. Class Function TProjectsRegionsJobsResource.ResourceName : String;
  2743. begin
  2744. Result:='jobs';
  2745. end;
  2746. Class Function TProjectsRegionsJobsResource.DefaultAPI : TGoogleAPIClass;
  2747. begin
  2748. Result:=TdataprocAPI;
  2749. end;
  2750. Function TProjectsRegionsJobsResource.Submit(projectId: string; region: string; aSubmitJobRequest : TSubmitJobRequest) : TJob;
  2751. Const
  2752. _HTTPMethod = 'POST';
  2753. _Path = 'v1/projects/{projectId}/regions/{region}/jobs:submit';
  2754. _Methodid = 'dataproc.projects.regions.jobs.submit';
  2755. Var
  2756. _P : String;
  2757. begin
  2758. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region]);
  2759. Result:=ServiceCall(_HTTPMethod,_P,'',aSubmitJobRequest,TJob) as TJob;
  2760. end;
  2761. Function TProjectsRegionsJobsResource.Get(projectId: string; region: string; jobId: string) : TJob;
  2762. Const
  2763. _HTTPMethod = 'GET';
  2764. _Path = 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}';
  2765. _Methodid = 'dataproc.projects.regions.jobs.get';
  2766. Var
  2767. _P : String;
  2768. begin
  2769. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region,'jobId',jobId]);
  2770. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TJob) as TJob;
  2771. end;
  2772. Function TProjectsRegionsJobsResource.List(projectId: string; region: string; AQuery : string = '') : TListJobsResponse;
  2773. Const
  2774. _HTTPMethod = 'GET';
  2775. _Path = 'v1/projects/{projectId}/regions/{region}/jobs';
  2776. _Methodid = 'dataproc.projects.regions.jobs.list';
  2777. Var
  2778. _P : String;
  2779. begin
  2780. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region]);
  2781. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListJobsResponse) as TListJobsResponse;
  2782. end;
  2783. Function TProjectsRegionsJobsResource.List(projectId: string; region: string; AQuery : TProjectsRegionsJobslistOptions) : TListJobsResponse;
  2784. Var
  2785. _Q : String;
  2786. begin
  2787. _Q:='';
  2788. AddToQuery(_Q,'pageSize',AQuery.pageSize);
  2789. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2790. AddToQuery(_Q,'clusterName',AQuery.clusterName);
  2791. AddToQuery(_Q,'jobStateMatcher',AQuery.jobStateMatcher);
  2792. Result:=List(projectId,region,_Q);
  2793. end;
  2794. Function TProjectsRegionsJobsResource.Cancel(projectId: string; region: string; jobId: string; aCancelJobRequest : TCancelJobRequest) : TJob;
  2795. Const
  2796. _HTTPMethod = 'POST';
  2797. _Path = 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel';
  2798. _Methodid = 'dataproc.projects.regions.jobs.cancel';
  2799. Var
  2800. _P : String;
  2801. begin
  2802. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region,'jobId',jobId]);
  2803. Result:=ServiceCall(_HTTPMethod,_P,'',aCancelJobRequest,TJob) as TJob;
  2804. end;
  2805. Function TProjectsRegionsJobsResource.Delete(projectId: string; region: string; jobId: string) : TEmpty;
  2806. Const
  2807. _HTTPMethod = 'DELETE';
  2808. _Path = 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}';
  2809. _Methodid = 'dataproc.projects.regions.jobs.delete';
  2810. Var
  2811. _P : String;
  2812. begin
  2813. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region,'jobId',jobId]);
  2814. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
  2815. end;
  2816. { --------------------------------------------------------------------
  2817. TProjectsRegionsOperationsResource
  2818. --------------------------------------------------------------------}
  2819. Class Function TProjectsRegionsOperationsResource.ResourceName : String;
  2820. begin
  2821. Result:='operations';
  2822. end;
  2823. Class Function TProjectsRegionsOperationsResource.DefaultAPI : TGoogleAPIClass;
  2824. begin
  2825. Result:=TdataprocAPI;
  2826. end;
  2827. Function TProjectsRegionsOperationsResource.Get(_name: string) : TOperation;
  2828. Const
  2829. _HTTPMethod = 'GET';
  2830. _Path = 'v1/{+name}';
  2831. _Methodid = 'dataproc.projects.regions.operations.get';
  2832. Var
  2833. _P : String;
  2834. begin
  2835. _P:=SubstitutePath(_Path,['name',_name]);
  2836. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOperation) as TOperation;
  2837. end;
  2838. Function TProjectsRegionsOperationsResource.List(_name: string; AQuery : string = '') : TListOperationsResponse;
  2839. Const
  2840. _HTTPMethod = 'GET';
  2841. _Path = 'v1/{+name}';
  2842. _Methodid = 'dataproc.projects.regions.operations.list';
  2843. Var
  2844. _P : String;
  2845. begin
  2846. _P:=SubstitutePath(_Path,['name',_name]);
  2847. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListOperationsResponse) as TListOperationsResponse;
  2848. end;
  2849. Function TProjectsRegionsOperationsResource.List(_name: string; AQuery : TProjectsRegionsOperationslistOptions) : TListOperationsResponse;
  2850. Var
  2851. _Q : String;
  2852. begin
  2853. _Q:='';
  2854. AddToQuery(_Q,'filter',AQuery.filter);
  2855. AddToQuery(_Q,'pageSize',AQuery.pageSize);
  2856. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2857. Result:=List(_name,_Q);
  2858. end;
  2859. Function TProjectsRegionsOperationsResource.Cancel(_name: string) : TEmpty;
  2860. Const
  2861. _HTTPMethod = 'POST';
  2862. _Path = 'v1/{+name}:cancel';
  2863. _Methodid = 'dataproc.projects.regions.operations.cancel';
  2864. Var
  2865. _P : String;
  2866. begin
  2867. _P:=SubstitutePath(_Path,['name',_name]);
  2868. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
  2869. end;
  2870. Function TProjectsRegionsOperationsResource.Delete(_name: string) : TEmpty;
  2871. Const
  2872. _HTTPMethod = 'DELETE';
  2873. _Path = 'v1/{+name}';
  2874. _Methodid = 'dataproc.projects.regions.operations.delete';
  2875. Var
  2876. _P : String;
  2877. begin
  2878. _P:=SubstitutePath(_Path,['name',_name]);
  2879. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
  2880. end;
  2881. { --------------------------------------------------------------------
  2882. TProjectsRegionsResource
  2883. --------------------------------------------------------------------}
  2884. Class Function TProjectsRegionsResource.ResourceName : String;
  2885. begin
  2886. Result:='regions';
  2887. end;
  2888. Class Function TProjectsRegionsResource.DefaultAPI : TGoogleAPIClass;
  2889. begin
  2890. Result:=TdataprocAPI;
  2891. end;
  2892. Function TProjectsRegionsResource.GetClustersInstance : TProjectsRegionsClustersResource;
  2893. begin
  2894. if (FClustersInstance=Nil) then
  2895. FClustersInstance:=CreateClustersResource;
  2896. Result:=FClustersInstance;
  2897. end;
  2898. Function TProjectsRegionsResource.CreateClustersResource : TProjectsRegionsClustersResource;
  2899. begin
  2900. Result:=CreateClustersResource(Self);
  2901. end;
  2902. Function TProjectsRegionsResource.CreateClustersResource(AOwner : TComponent) : TProjectsRegionsClustersResource;
  2903. begin
  2904. Result:=TProjectsRegionsClustersResource.Create(AOwner);
  2905. Result.API:=Self.API;
  2906. end;
  2907. Function TProjectsRegionsResource.GetJobsInstance : TProjectsRegionsJobsResource;
  2908. begin
  2909. if (FJobsInstance=Nil) then
  2910. FJobsInstance:=CreateJobsResource;
  2911. Result:=FJobsInstance;
  2912. end;
  2913. Function TProjectsRegionsResource.CreateJobsResource : TProjectsRegionsJobsResource;
  2914. begin
  2915. Result:=CreateJobsResource(Self);
  2916. end;
  2917. Function TProjectsRegionsResource.CreateJobsResource(AOwner : TComponent) : TProjectsRegionsJobsResource;
  2918. begin
  2919. Result:=TProjectsRegionsJobsResource.Create(AOwner);
  2920. Result.API:=Self.API;
  2921. end;
  2922. Function TProjectsRegionsResource.GetOperationsInstance : TProjectsRegionsOperationsResource;
  2923. begin
  2924. if (FOperationsInstance=Nil) then
  2925. FOperationsInstance:=CreateOperationsResource;
  2926. Result:=FOperationsInstance;
  2927. end;
  2928. Function TProjectsRegionsResource.CreateOperationsResource : TProjectsRegionsOperationsResource;
  2929. begin
  2930. Result:=CreateOperationsResource(Self);
  2931. end;
  2932. Function TProjectsRegionsResource.CreateOperationsResource(AOwner : TComponent) : TProjectsRegionsOperationsResource;
  2933. begin
  2934. Result:=TProjectsRegionsOperationsResource.Create(AOwner);
  2935. Result.API:=Self.API;
  2936. end;
  2937. { --------------------------------------------------------------------
  2938. TProjectsResource
  2939. --------------------------------------------------------------------}
  2940. Class Function TProjectsResource.ResourceName : String;
  2941. begin
  2942. Result:='projects';
  2943. end;
  2944. Class Function TProjectsResource.DefaultAPI : TGoogleAPIClass;
  2945. begin
  2946. Result:=TdataprocAPI;
  2947. end;
  2948. Function TProjectsResource.GetRegionsClustersInstance : TProjectsRegionsClustersResource;
  2949. begin
  2950. if (FRegionsClustersInstance=Nil) then
  2951. FRegionsClustersInstance:=CreateRegionsClustersResource;
  2952. Result:=FRegionsClustersInstance;
  2953. end;
  2954. Function TProjectsResource.CreateRegionsClustersResource : TProjectsRegionsClustersResource;
  2955. begin
  2956. Result:=CreateRegionsClustersResource(Self);
  2957. end;
  2958. Function TProjectsResource.CreateRegionsClustersResource(AOwner : TComponent) : TProjectsRegionsClustersResource;
  2959. begin
  2960. Result:=TProjectsRegionsClustersResource.Create(AOwner);
  2961. Result.API:=Self.API;
  2962. end;
  2963. Function TProjectsResource.GetRegionsJobsInstance : TProjectsRegionsJobsResource;
  2964. begin
  2965. if (FRegionsJobsInstance=Nil) then
  2966. FRegionsJobsInstance:=CreateRegionsJobsResource;
  2967. Result:=FRegionsJobsInstance;
  2968. end;
  2969. Function TProjectsResource.CreateRegionsJobsResource : TProjectsRegionsJobsResource;
  2970. begin
  2971. Result:=CreateRegionsJobsResource(Self);
  2972. end;
  2973. Function TProjectsResource.CreateRegionsJobsResource(AOwner : TComponent) : TProjectsRegionsJobsResource;
  2974. begin
  2975. Result:=TProjectsRegionsJobsResource.Create(AOwner);
  2976. Result.API:=Self.API;
  2977. end;
  2978. Function TProjectsResource.GetRegionsOperationsInstance : TProjectsRegionsOperationsResource;
  2979. begin
  2980. if (FRegionsOperationsInstance=Nil) then
  2981. FRegionsOperationsInstance:=CreateRegionsOperationsResource;
  2982. Result:=FRegionsOperationsInstance;
  2983. end;
  2984. Function TProjectsResource.CreateRegionsOperationsResource : TProjectsRegionsOperationsResource;
  2985. begin
  2986. Result:=CreateRegionsOperationsResource(Self);
  2987. end;
  2988. Function TProjectsResource.CreateRegionsOperationsResource(AOwner : TComponent) : TProjectsRegionsOperationsResource;
  2989. begin
  2990. Result:=TProjectsRegionsOperationsResource.Create(AOwner);
  2991. Result.API:=Self.API;
  2992. end;
  2993. Function TProjectsResource.GetRegionsInstance : TProjectsRegionsResource;
  2994. begin
  2995. if (FRegionsInstance=Nil) then
  2996. FRegionsInstance:=CreateRegionsResource;
  2997. Result:=FRegionsInstance;
  2998. end;
  2999. Function TProjectsResource.CreateRegionsResource : TProjectsRegionsResource;
  3000. begin
  3001. Result:=CreateRegionsResource(Self);
  3002. end;
  3003. Function TProjectsResource.CreateRegionsResource(AOwner : TComponent) : TProjectsRegionsResource;
  3004. begin
  3005. Result:=TProjectsRegionsResource.Create(AOwner);
  3006. Result.API:=Self.API;
  3007. end;
  3008. { --------------------------------------------------------------------
  3009. TDataprocAPI
  3010. --------------------------------------------------------------------}
  3011. Class Function TDataprocAPI.APIName : String;
  3012. begin
  3013. Result:='dataproc';
  3014. end;
  3015. Class Function TDataprocAPI.APIVersion : String;
  3016. begin
  3017. Result:='v1';
  3018. end;
  3019. Class Function TDataprocAPI.APIRevision : String;
  3020. begin
  3021. Result:='20160503';
  3022. end;
  3023. Class Function TDataprocAPI.APIID : String;
  3024. begin
  3025. Result:='dataproc:v1';
  3026. end;
  3027. Class Function TDataprocAPI.APITitle : String;
  3028. begin
  3029. Result:='Google Cloud Dataproc API';
  3030. end;
  3031. Class Function TDataprocAPI.APIDescription : String;
  3032. begin
  3033. Result:='Manages Hadoop-based clusters and jobs on Google Cloud Platform.';
  3034. end;
  3035. Class Function TDataprocAPI.APIOwnerDomain : String;
  3036. begin
  3037. Result:='google.com';
  3038. end;
  3039. Class Function TDataprocAPI.APIOwnerName : String;
  3040. begin
  3041. Result:='Google';
  3042. end;
  3043. Class Function TDataprocAPI.APIIcon16 : String;
  3044. begin
  3045. Result:='http://www.google.com/images/icons/product/search-16.gif';
  3046. end;
  3047. Class Function TDataprocAPI.APIIcon32 : String;
  3048. begin
  3049. Result:='http://www.google.com/images/icons/product/search-32.gif';
  3050. end;
  3051. Class Function TDataprocAPI.APIdocumentationLink : String;
  3052. begin
  3053. Result:='https://cloud.google.com/dataproc/';
  3054. end;
  3055. Class Function TDataprocAPI.APIrootUrl : string;
  3056. begin
  3057. Result:='https://dataproc.googleapis.com/';
  3058. end;
  3059. Class Function TDataprocAPI.APIbasePath : string;
  3060. begin
  3061. Result:='';
  3062. end;
  3063. Class Function TDataprocAPI.APIbaseURL : String;
  3064. begin
  3065. Result:='https://dataproc.googleapis.com/';
  3066. end;
  3067. Class Function TDataprocAPI.APIProtocol : string;
  3068. begin
  3069. Result:='rest';
  3070. end;
  3071. Class Function TDataprocAPI.APIservicePath : string;
  3072. begin
  3073. Result:='';
  3074. end;
  3075. Class Function TDataprocAPI.APIbatchPath : String;
  3076. begin
  3077. Result:='batch';
  3078. end;
  3079. Class Function TDataprocAPI.APIAuthScopes : TScopeInfoArray;
  3080. begin
  3081. SetLength(Result,1);
  3082. Result[0].Name:='https://www.googleapis.com/auth/cloud-platform';
  3083. Result[0].Description:='View and manage your data across Google Cloud Platform services';
  3084. end;
  3085. Class Function TDataprocAPI.APINeedsAuth : Boolean;
  3086. begin
  3087. Result:=True;
  3088. end;
  3089. Class Procedure TDataprocAPI.RegisterAPIResources;
  3090. begin
  3091. TCluster.RegisterObject;
  3092. TClusterConfig.RegisterObject;
  3093. TGceClusterConfigTypemetadata.RegisterObject;
  3094. TGceClusterConfig.RegisterObject;
  3095. TInstanceGroupConfig.RegisterObject;
  3096. TDiskConfig.RegisterObject;
  3097. TManagedGroupConfig.RegisterObject;
  3098. TSoftwareConfigTypeproperties.RegisterObject;
  3099. TSoftwareConfig.RegisterObject;
  3100. TNodeInitializationAction.RegisterObject;
  3101. TClusterStatus.RegisterObject;
  3102. TOperationTypemetadata.RegisterObject;
  3103. TOperationTyperesponse.RegisterObject;
  3104. TOperation.RegisterObject;
  3105. TStatusTypedetailsItem.RegisterObject;
  3106. TStatus.RegisterObject;
  3107. TListClustersResponse.RegisterObject;
  3108. TDiagnoseClusterRequest.RegisterObject;
  3109. TSubmitJobRequest.RegisterObject;
  3110. TJob.RegisterObject;
  3111. TJobReference.RegisterObject;
  3112. TJobPlacement.RegisterObject;
  3113. THadoopJobTypeproperties.RegisterObject;
  3114. THadoopJob.RegisterObject;
  3115. TLoggingConfigTypedriverLogLevels.RegisterObject;
  3116. TLoggingConfig.RegisterObject;
  3117. TSparkJobTypeproperties.RegisterObject;
  3118. TSparkJob.RegisterObject;
  3119. TPySparkJobTypeproperties.RegisterObject;
  3120. TPySparkJob.RegisterObject;
  3121. THiveJobTypescriptVariables.RegisterObject;
  3122. THiveJobTypeproperties.RegisterObject;
  3123. THiveJob.RegisterObject;
  3124. TQueryList.RegisterObject;
  3125. TPigJobTypescriptVariables.RegisterObject;
  3126. TPigJobTypeproperties.RegisterObject;
  3127. TPigJob.RegisterObject;
  3128. TSparkSqlJobTypescriptVariables.RegisterObject;
  3129. TSparkSqlJobTypeproperties.RegisterObject;
  3130. TSparkSqlJob.RegisterObject;
  3131. TJobStatus.RegisterObject;
  3132. TListJobsResponse.RegisterObject;
  3133. TCancelJobRequest.RegisterObject;
  3134. TEmpty.RegisterObject;
  3135. TListOperationsResponse.RegisterObject;
  3136. TDiagnoseClusterResults.RegisterObject;
  3137. TClusterOperationMetadata.RegisterObject;
  3138. TClusterOperationStatus.RegisterObject;
  3139. TDiagnoseClusterOutputLocation.RegisterObject;
  3140. TOperationMetadata.RegisterObject;
  3141. TOperationStatus.RegisterObject;
  3142. end;
  3143. Function TDataprocAPI.GetProjectsRegionsClustersInstance : TProjectsRegionsClustersResource;
  3144. begin
  3145. if (FProjectsRegionsClustersInstance=Nil) then
  3146. FProjectsRegionsClustersInstance:=CreateProjectsRegionsClustersResource;
  3147. Result:=FProjectsRegionsClustersInstance;
  3148. end;
  3149. Function TDataprocAPI.CreateProjectsRegionsClustersResource : TProjectsRegionsClustersResource;
  3150. begin
  3151. Result:=CreateProjectsRegionsClustersResource(Self);
  3152. end;
  3153. Function TDataprocAPI.CreateProjectsRegionsClustersResource(AOwner : TComponent) : TProjectsRegionsClustersResource;
  3154. begin
  3155. Result:=TProjectsRegionsClustersResource.Create(AOwner);
  3156. Result.API:=Self.API;
  3157. end;
  3158. Function TDataprocAPI.GetProjectsRegionsJobsInstance : TProjectsRegionsJobsResource;
  3159. begin
  3160. if (FProjectsRegionsJobsInstance=Nil) then
  3161. FProjectsRegionsJobsInstance:=CreateProjectsRegionsJobsResource;
  3162. Result:=FProjectsRegionsJobsInstance;
  3163. end;
  3164. Function TDataprocAPI.CreateProjectsRegionsJobsResource : TProjectsRegionsJobsResource;
  3165. begin
  3166. Result:=CreateProjectsRegionsJobsResource(Self);
  3167. end;
  3168. Function TDataprocAPI.CreateProjectsRegionsJobsResource(AOwner : TComponent) : TProjectsRegionsJobsResource;
  3169. begin
  3170. Result:=TProjectsRegionsJobsResource.Create(AOwner);
  3171. Result.API:=Self.API;
  3172. end;
  3173. Function TDataprocAPI.GetProjectsRegionsOperationsInstance : TProjectsRegionsOperationsResource;
  3174. begin
  3175. if (FProjectsRegionsOperationsInstance=Nil) then
  3176. FProjectsRegionsOperationsInstance:=CreateProjectsRegionsOperationsResource;
  3177. Result:=FProjectsRegionsOperationsInstance;
  3178. end;
  3179. Function TDataprocAPI.CreateProjectsRegionsOperationsResource : TProjectsRegionsOperationsResource;
  3180. begin
  3181. Result:=CreateProjectsRegionsOperationsResource(Self);
  3182. end;
  3183. Function TDataprocAPI.CreateProjectsRegionsOperationsResource(AOwner : TComponent) : TProjectsRegionsOperationsResource;
  3184. begin
  3185. Result:=TProjectsRegionsOperationsResource.Create(AOwner);
  3186. Result.API:=Self.API;
  3187. end;
  3188. Function TDataprocAPI.GetProjectsRegionsInstance : TProjectsRegionsResource;
  3189. begin
  3190. if (FProjectsRegionsInstance=Nil) then
  3191. FProjectsRegionsInstance:=CreateProjectsRegionsResource;
  3192. Result:=FProjectsRegionsInstance;
  3193. end;
  3194. Function TDataprocAPI.CreateProjectsRegionsResource : TProjectsRegionsResource;
  3195. begin
  3196. Result:=CreateProjectsRegionsResource(Self);
  3197. end;
  3198. Function TDataprocAPI.CreateProjectsRegionsResource(AOwner : TComponent) : TProjectsRegionsResource;
  3199. begin
  3200. Result:=TProjectsRegionsResource.Create(AOwner);
  3201. Result.API:=Self.API;
  3202. end;
  3203. Function TDataprocAPI.GetProjectsInstance : TProjectsResource;
  3204. begin
  3205. if (FProjectsInstance=Nil) then
  3206. FProjectsInstance:=CreateProjectsResource;
  3207. Result:=FProjectsInstance;
  3208. end;
  3209. Function TDataprocAPI.CreateProjectsResource : TProjectsResource;
  3210. begin
  3211. Result:=CreateProjectsResource(Self);
  3212. end;
  3213. Function TDataprocAPI.CreateProjectsResource(AOwner : TComponent) : TProjectsResource;
  3214. begin
  3215. Result:=TProjectsResource.Create(AOwner);
  3216. Result.API:=Self.API;
  3217. end;
  3218. initialization
  3219. TDataprocAPI.RegisterAPI;
  3220. end.