googlemanager.pp 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313
  1. unit googlemanager;
  2. {
  3. **********************************************************************
  4. This file is part of the Free Component Library (FCL)
  5. Copyright (c) 2015 The free pascal team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************
  12. }
  13. //Generated on: 16-5-15 08:53:05
  14. {$MODE objfpc}
  15. {$H+}
  16. interface
  17. uses sysutils, classes, googleservice, restbase, googlebase;
  18. type
  19. //Top-level schema types
  20. TAccessConfig = Class;
  21. TAction = Class;
  22. TAllowedRule = Class;
  23. TAutoscalingModule = Class;
  24. TAutoscalingModuleStatus = Class;
  25. TDeployState = Class;
  26. TDeployment = Class;
  27. TDeploymentsListResponse = Class;
  28. TDiskAttachment = Class;
  29. TEnvVariable = Class;
  30. TExistingDisk = Class;
  31. TFirewallModule = Class;
  32. TFirewallModuleStatus = Class;
  33. THealthCheckModule = Class;
  34. THealthCheckModuleStatus = Class;
  35. TLbModule = Class;
  36. TLbModuleStatus = Class;
  37. TMetadata = Class;
  38. TMetadataItem = Class;
  39. TModule = Class;
  40. TModuleStatus = Class;
  41. TNetworkInterface = Class;
  42. TNetworkModule = Class;
  43. TNetworkModuleStatus = Class;
  44. TNewDisk = Class;
  45. TNewDiskInitializeParams = Class;
  46. TParamOverride = Class;
  47. TReplicaPoolModule = Class;
  48. TReplicaPoolModuleStatus = Class;
  49. TReplicaPoolParams = Class;
  50. TReplicaPoolParamsV1Beta1 = Class;
  51. TServiceAccount = Class;
  52. TTag = Class;
  53. TTemplate = Class;
  54. TTemplatesListResponse = Class;
  55. TAccessConfigArray = Array of TAccessConfig;
  56. TActionArray = Array of TAction;
  57. TAllowedRuleArray = Array of TAllowedRule;
  58. TAutoscalingModuleArray = Array of TAutoscalingModule;
  59. TAutoscalingModuleStatusArray = Array of TAutoscalingModuleStatus;
  60. TDeployStateArray = Array of TDeployState;
  61. TDeploymentArray = Array of TDeployment;
  62. TDeploymentsListResponseArray = Array of TDeploymentsListResponse;
  63. TDiskAttachmentArray = Array of TDiskAttachment;
  64. TEnvVariableArray = Array of TEnvVariable;
  65. TExistingDiskArray = Array of TExistingDisk;
  66. TFirewallModuleArray = Array of TFirewallModule;
  67. TFirewallModuleStatusArray = Array of TFirewallModuleStatus;
  68. THealthCheckModuleArray = Array of THealthCheckModule;
  69. THealthCheckModuleStatusArray = Array of THealthCheckModuleStatus;
  70. TLbModuleArray = Array of TLbModule;
  71. TLbModuleStatusArray = Array of TLbModuleStatus;
  72. TMetadataArray = Array of TMetadata;
  73. TMetadataItemArray = Array of TMetadataItem;
  74. TModuleArray = Array of TModule;
  75. TModuleStatusArray = Array of TModuleStatus;
  76. TNetworkInterfaceArray = Array of TNetworkInterface;
  77. TNetworkModuleArray = Array of TNetworkModule;
  78. TNetworkModuleStatusArray = Array of TNetworkModuleStatus;
  79. TNewDiskArray = Array of TNewDisk;
  80. TNewDiskInitializeParamsArray = Array of TNewDiskInitializeParams;
  81. TParamOverrideArray = Array of TParamOverride;
  82. TReplicaPoolModuleArray = Array of TReplicaPoolModule;
  83. TReplicaPoolModuleStatusArray = Array of TReplicaPoolModuleStatus;
  84. TReplicaPoolParamsArray = Array of TReplicaPoolParams;
  85. TReplicaPoolParamsV1Beta1Array = Array of TReplicaPoolParamsV1Beta1;
  86. TServiceAccountArray = Array of TServiceAccount;
  87. TTagArray = Array of TTag;
  88. TTemplateArray = Array of TTemplate;
  89. TTemplatesListResponseArray = Array of TTemplatesListResponse;
  90. //Anonymous types, using auto-generated names
  91. TDeploymentTypemodules = Class;
  92. TReplicaPoolModuleTypeenvVariables = Class;
  93. TTemplateTypeactions = Class;
  94. TTemplateTypemodules = Class;
  95. TDeploymentTypeoverridesArray = Array of TParamOverride;
  96. TDeploymentsListResponseTyperesourcesArray = Array of TDeployment;
  97. TFirewallModuleTypeallowedArray = Array of TAllowedRule;
  98. TMetadataTypeitemsArray = Array of TMetadataItem;
  99. TNetworkInterfaceTypeaccessConfigsArray = Array of TAccessConfig;
  100. TReplicaPoolParamsV1Beta1TypedisksToAttachArray = Array of TExistingDisk;
  101. TReplicaPoolParamsV1Beta1TypedisksToCreateArray = Array of TNewDisk;
  102. TReplicaPoolParamsV1Beta1TypenetworkInterfacesArray = Array of TNetworkInterface;
  103. TReplicaPoolParamsV1Beta1TypeserviceAccountsArray = Array of TServiceAccount;
  104. TTemplatesListResponseTyperesourcesArray = Array of TTemplate;
  105. { --------------------------------------------------------------------
  106. TAccessConfig
  107. --------------------------------------------------------------------}
  108. TAccessConfig = Class(TGoogleBaseObject)
  109. Private
  110. Fname : String;
  111. FnatIp : String;
  112. F_type : String;
  113. Protected
  114. Class Function ExportPropertyName(Const AName : String) : string; override;
  115. //Property setters
  116. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  117. Procedure SetnatIp(AIndex : Integer; const AValue : String); virtual;
  118. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  119. Public
  120. Published
  121. Property name : String Index 0 Read Fname Write Setname;
  122. Property natIp : String Index 8 Read FnatIp Write SetnatIp;
  123. Property _type : String Index 16 Read F_type Write Set_type;
  124. end;
  125. TAccessConfigClass = Class of TAccessConfig;
  126. { --------------------------------------------------------------------
  127. TAction
  128. --------------------------------------------------------------------}
  129. TAction = Class(TGoogleBaseObject)
  130. Private
  131. Fcommands : TStringArray;
  132. FtimeoutMs : integer;
  133. Protected
  134. //Property setters
  135. Procedure Setcommands(AIndex : Integer; AValue : TStringArray); virtual;
  136. Procedure SettimeoutMs(AIndex : Integer; AValue : integer); virtual;
  137. //2.6.4. bug workaround
  138. {$IFDEF VER2_6}
  139. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  140. {$ENDIF VER2_6}
  141. Public
  142. Published
  143. Property commands : TStringArray Index 0 Read Fcommands Write Setcommands;
  144. Property timeoutMs : integer Index 8 Read FtimeoutMs Write SettimeoutMs;
  145. end;
  146. TActionClass = Class of TAction;
  147. { --------------------------------------------------------------------
  148. TAllowedRule
  149. --------------------------------------------------------------------}
  150. TAllowedRule = Class(TGoogleBaseObject)
  151. Private
  152. FIPProtocol : String;
  153. Fports : TStringArray;
  154. Protected
  155. //Property setters
  156. Procedure SetIPProtocol(AIndex : Integer; const AValue : String); virtual;
  157. Procedure Setports(AIndex : Integer; AValue : TStringArray); virtual;
  158. //2.6.4. bug workaround
  159. {$IFDEF VER2_6}
  160. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  161. {$ENDIF VER2_6}
  162. Public
  163. Published
  164. Property IPProtocol : String Index 0 Read FIPProtocol Write SetIPProtocol;
  165. Property ports : TStringArray Index 8 Read Fports Write Setports;
  166. end;
  167. TAllowedRuleClass = Class of TAllowedRule;
  168. { --------------------------------------------------------------------
  169. TAutoscalingModule
  170. --------------------------------------------------------------------}
  171. TAutoscalingModule = Class(TGoogleBaseObject)
  172. Private
  173. FcoolDownPeriodSec : integer;
  174. Fdescription : String;
  175. FmaxNumReplicas : integer;
  176. FminNumReplicas : integer;
  177. FsignalType : String;
  178. FtargetModule : String;
  179. FtargetUtilization : double;
  180. Protected
  181. //Property setters
  182. Procedure SetcoolDownPeriodSec(AIndex : Integer; AValue : integer); virtual;
  183. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  184. Procedure SetmaxNumReplicas(AIndex : Integer; AValue : integer); virtual;
  185. Procedure SetminNumReplicas(AIndex : Integer; AValue : integer); virtual;
  186. Procedure SetsignalType(AIndex : Integer; const AValue : String); virtual;
  187. Procedure SettargetModule(AIndex : Integer; const AValue : String); virtual;
  188. Procedure SettargetUtilization(AIndex : Integer; AValue : double); virtual;
  189. Public
  190. Published
  191. Property coolDownPeriodSec : integer Index 0 Read FcoolDownPeriodSec Write SetcoolDownPeriodSec;
  192. Property description : String Index 8 Read Fdescription Write Setdescription;
  193. Property maxNumReplicas : integer Index 16 Read FmaxNumReplicas Write SetmaxNumReplicas;
  194. Property minNumReplicas : integer Index 24 Read FminNumReplicas Write SetminNumReplicas;
  195. Property signalType : String Index 32 Read FsignalType Write SetsignalType;
  196. Property targetModule : String Index 40 Read FtargetModule Write SettargetModule;
  197. Property targetUtilization : double Index 48 Read FtargetUtilization Write SettargetUtilization;
  198. end;
  199. TAutoscalingModuleClass = Class of TAutoscalingModule;
  200. { --------------------------------------------------------------------
  201. TAutoscalingModuleStatus
  202. --------------------------------------------------------------------}
  203. TAutoscalingModuleStatus = Class(TGoogleBaseObject)
  204. Private
  205. FautoscalingConfigUrl : String;
  206. Protected
  207. //Property setters
  208. Procedure SetautoscalingConfigUrl(AIndex : Integer; const AValue : String); virtual;
  209. Public
  210. Published
  211. Property autoscalingConfigUrl : String Index 0 Read FautoscalingConfigUrl Write SetautoscalingConfigUrl;
  212. end;
  213. TAutoscalingModuleStatusClass = Class of TAutoscalingModuleStatus;
  214. { --------------------------------------------------------------------
  215. TDeployState
  216. --------------------------------------------------------------------}
  217. TDeployState = Class(TGoogleBaseObject)
  218. Private
  219. Fdetails : String;
  220. Fstatus : String;
  221. Protected
  222. //Property setters
  223. Procedure Setdetails(AIndex : Integer; const AValue : String); virtual;
  224. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  225. Public
  226. Published
  227. Property details : String Index 0 Read Fdetails Write Setdetails;
  228. Property status : String Index 8 Read Fstatus Write Setstatus;
  229. end;
  230. TDeployStateClass = Class of TDeployState;
  231. { --------------------------------------------------------------------
  232. TDeploymentTypemodules
  233. --------------------------------------------------------------------}
  234. TDeploymentTypemodules = Class(TGoogleBaseObject)
  235. Private
  236. Protected
  237. //Property setters
  238. Public
  239. Class Function AllowAdditionalProperties : Boolean; override;
  240. Published
  241. end;
  242. TDeploymentTypemodulesClass = Class of TDeploymentTypemodules;
  243. { --------------------------------------------------------------------
  244. TDeployment
  245. --------------------------------------------------------------------}
  246. TDeployment = Class(TGoogleBaseObject)
  247. Private
  248. FcreationDate : String;
  249. Fdescription : String;
  250. Fmodules : TDeploymentTypemodules;
  251. Fname : String;
  252. Foverrides : TDeploymentTypeoverridesArray;
  253. Fstate : TDeployState;
  254. FtemplateName : String;
  255. Protected
  256. //Property setters
  257. Procedure SetcreationDate(AIndex : Integer; const AValue : String); virtual;
  258. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  259. Procedure Setmodules(AIndex : Integer; AValue : TDeploymentTypemodules); virtual;
  260. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  261. Procedure Setoverrides(AIndex : Integer; AValue : TDeploymentTypeoverridesArray); virtual;
  262. Procedure Setstate(AIndex : Integer; AValue : TDeployState); virtual;
  263. Procedure SettemplateName(AIndex : Integer; const AValue : String); virtual;
  264. //2.6.4. bug workaround
  265. {$IFDEF VER2_6}
  266. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  267. {$ENDIF VER2_6}
  268. Public
  269. Published
  270. Property creationDate : String Index 0 Read FcreationDate Write SetcreationDate;
  271. Property description : String Index 8 Read Fdescription Write Setdescription;
  272. Property modules : TDeploymentTypemodules Index 16 Read Fmodules Write Setmodules;
  273. Property name : String Index 24 Read Fname Write Setname;
  274. Property overrides : TDeploymentTypeoverridesArray Index 32 Read Foverrides Write Setoverrides;
  275. Property state : TDeployState Index 40 Read Fstate Write Setstate;
  276. Property templateName : String Index 48 Read FtemplateName Write SettemplateName;
  277. end;
  278. TDeploymentClass = Class of TDeployment;
  279. { --------------------------------------------------------------------
  280. TDeploymentsListResponse
  281. --------------------------------------------------------------------}
  282. TDeploymentsListResponse = Class(TGoogleBaseObject)
  283. Private
  284. FnextPageToken : String;
  285. Fresources : TDeploymentsListResponseTyperesourcesArray;
  286. Protected
  287. //Property setters
  288. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  289. Procedure Setresources(AIndex : Integer; AValue : TDeploymentsListResponseTyperesourcesArray); virtual;
  290. //2.6.4. bug workaround
  291. {$IFDEF VER2_6}
  292. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  293. {$ENDIF VER2_6}
  294. Public
  295. Published
  296. Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
  297. Property resources : TDeploymentsListResponseTyperesourcesArray Index 8 Read Fresources Write Setresources;
  298. end;
  299. TDeploymentsListResponseClass = Class of TDeploymentsListResponse;
  300. { --------------------------------------------------------------------
  301. TDiskAttachment
  302. --------------------------------------------------------------------}
  303. TDiskAttachment = Class(TGoogleBaseObject)
  304. Private
  305. FdeviceName : String;
  306. Findex : integer;
  307. Protected
  308. //Property setters
  309. Procedure SetdeviceName(AIndex : Integer; const AValue : String); virtual;
  310. Procedure Setindex(AIndex : Integer; AValue : integer); virtual;
  311. Public
  312. Published
  313. Property deviceName : String Index 0 Read FdeviceName Write SetdeviceName;
  314. Property index : integer Index 8 Read Findex Write Setindex;
  315. end;
  316. TDiskAttachmentClass = Class of TDiskAttachment;
  317. { --------------------------------------------------------------------
  318. TEnvVariable
  319. --------------------------------------------------------------------}
  320. TEnvVariable = Class(TGoogleBaseObject)
  321. Private
  322. Fhidden : boolean;
  323. Fvalue : String;
  324. Protected
  325. //Property setters
  326. Procedure Sethidden(AIndex : Integer; AValue : boolean); virtual;
  327. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  328. Public
  329. Published
  330. Property hidden : boolean Index 0 Read Fhidden Write Sethidden;
  331. Property value : String Index 8 Read Fvalue Write Setvalue;
  332. end;
  333. TEnvVariableClass = Class of TEnvVariable;
  334. { --------------------------------------------------------------------
  335. TExistingDisk
  336. --------------------------------------------------------------------}
  337. TExistingDisk = Class(TGoogleBaseObject)
  338. Private
  339. Fattachment : TDiskAttachment;
  340. Fsource : String;
  341. Protected
  342. //Property setters
  343. Procedure Setattachment(AIndex : Integer; AValue : TDiskAttachment); virtual;
  344. Procedure Setsource(AIndex : Integer; const AValue : String); virtual;
  345. Public
  346. Published
  347. Property attachment : TDiskAttachment Index 0 Read Fattachment Write Setattachment;
  348. Property source : String Index 8 Read Fsource Write Setsource;
  349. end;
  350. TExistingDiskClass = Class of TExistingDisk;
  351. { --------------------------------------------------------------------
  352. TFirewallModule
  353. --------------------------------------------------------------------}
  354. TFirewallModule = Class(TGoogleBaseObject)
  355. Private
  356. Fallowed : TFirewallModuleTypeallowedArray;
  357. Fdescription : String;
  358. Fnetwork : String;
  359. FsourceRanges : TStringArray;
  360. FsourceTags : TStringArray;
  361. FtargetTags : TStringArray;
  362. Protected
  363. //Property setters
  364. Procedure Setallowed(AIndex : Integer; AValue : TFirewallModuleTypeallowedArray); virtual;
  365. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  366. Procedure Setnetwork(AIndex : Integer; const AValue : String); virtual;
  367. Procedure SetsourceRanges(AIndex : Integer; AValue : TStringArray); virtual;
  368. Procedure SetsourceTags(AIndex : Integer; AValue : TStringArray); virtual;
  369. Procedure SettargetTags(AIndex : Integer; AValue : TStringArray); virtual;
  370. //2.6.4. bug workaround
  371. {$IFDEF VER2_6}
  372. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  373. {$ENDIF VER2_6}
  374. Public
  375. Published
  376. Property allowed : TFirewallModuleTypeallowedArray Index 0 Read Fallowed Write Setallowed;
  377. Property description : String Index 8 Read Fdescription Write Setdescription;
  378. Property network : String Index 16 Read Fnetwork Write Setnetwork;
  379. Property sourceRanges : TStringArray Index 24 Read FsourceRanges Write SetsourceRanges;
  380. Property sourceTags : TStringArray Index 32 Read FsourceTags Write SetsourceTags;
  381. Property targetTags : TStringArray Index 40 Read FtargetTags Write SettargetTags;
  382. end;
  383. TFirewallModuleClass = Class of TFirewallModule;
  384. { --------------------------------------------------------------------
  385. TFirewallModuleStatus
  386. --------------------------------------------------------------------}
  387. TFirewallModuleStatus = Class(TGoogleBaseObject)
  388. Private
  389. FfirewallUrl : String;
  390. Protected
  391. //Property setters
  392. Procedure SetfirewallUrl(AIndex : Integer; const AValue : String); virtual;
  393. Public
  394. Published
  395. Property firewallUrl : String Index 0 Read FfirewallUrl Write SetfirewallUrl;
  396. end;
  397. TFirewallModuleStatusClass = Class of TFirewallModuleStatus;
  398. { --------------------------------------------------------------------
  399. THealthCheckModule
  400. --------------------------------------------------------------------}
  401. THealthCheckModule = Class(TGoogleBaseObject)
  402. Private
  403. FcheckIntervalSec : integer;
  404. Fdescription : String;
  405. FhealthyThreshold : integer;
  406. Fhost : String;
  407. Fpath : String;
  408. Fport : integer;
  409. FtimeoutSec : integer;
  410. FunhealthyThreshold : integer;
  411. Protected
  412. //Property setters
  413. Procedure SetcheckIntervalSec(AIndex : Integer; AValue : integer); virtual;
  414. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  415. Procedure SethealthyThreshold(AIndex : Integer; AValue : integer); virtual;
  416. Procedure Sethost(AIndex : Integer; const AValue : String); virtual;
  417. Procedure Setpath(AIndex : Integer; const AValue : String); virtual;
  418. Procedure Setport(AIndex : Integer; AValue : integer); virtual;
  419. Procedure SettimeoutSec(AIndex : Integer; AValue : integer); virtual;
  420. Procedure SetunhealthyThreshold(AIndex : Integer; AValue : integer); virtual;
  421. Public
  422. Published
  423. Property checkIntervalSec : integer Index 0 Read FcheckIntervalSec Write SetcheckIntervalSec;
  424. Property description : String Index 8 Read Fdescription Write Setdescription;
  425. Property healthyThreshold : integer Index 16 Read FhealthyThreshold Write SethealthyThreshold;
  426. Property host : String Index 24 Read Fhost Write Sethost;
  427. Property path : String Index 32 Read Fpath Write Setpath;
  428. Property port : integer Index 40 Read Fport Write Setport;
  429. Property timeoutSec : integer Index 48 Read FtimeoutSec Write SettimeoutSec;
  430. Property unhealthyThreshold : integer Index 56 Read FunhealthyThreshold Write SetunhealthyThreshold;
  431. end;
  432. THealthCheckModuleClass = Class of THealthCheckModule;
  433. { --------------------------------------------------------------------
  434. THealthCheckModuleStatus
  435. --------------------------------------------------------------------}
  436. THealthCheckModuleStatus = Class(TGoogleBaseObject)
  437. Private
  438. FhealthCheckUrl : String;
  439. Protected
  440. //Property setters
  441. Procedure SethealthCheckUrl(AIndex : Integer; const AValue : String); virtual;
  442. Public
  443. Published
  444. Property healthCheckUrl : String Index 0 Read FhealthCheckUrl Write SethealthCheckUrl;
  445. end;
  446. THealthCheckModuleStatusClass = Class of THealthCheckModuleStatus;
  447. { --------------------------------------------------------------------
  448. TLbModule
  449. --------------------------------------------------------------------}
  450. TLbModule = Class(TGoogleBaseObject)
  451. Private
  452. Fdescription : String;
  453. FhealthChecks : TStringArray;
  454. FipAddress : String;
  455. FipProtocol : String;
  456. FportRange : String;
  457. FsessionAffinity : String;
  458. FtargetModules : TStringArray;
  459. Protected
  460. //Property setters
  461. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  462. Procedure SethealthChecks(AIndex : Integer; AValue : TStringArray); virtual;
  463. Procedure SetipAddress(AIndex : Integer; const AValue : String); virtual;
  464. Procedure SetipProtocol(AIndex : Integer; const AValue : String); virtual;
  465. Procedure SetportRange(AIndex : Integer; const AValue : String); virtual;
  466. Procedure SetsessionAffinity(AIndex : Integer; const AValue : String); virtual;
  467. Procedure SettargetModules(AIndex : Integer; AValue : TStringArray); virtual;
  468. //2.6.4. bug workaround
  469. {$IFDEF VER2_6}
  470. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  471. {$ENDIF VER2_6}
  472. Public
  473. Published
  474. Property description : String Index 0 Read Fdescription Write Setdescription;
  475. Property healthChecks : TStringArray Index 8 Read FhealthChecks Write SethealthChecks;
  476. Property ipAddress : String Index 16 Read FipAddress Write SetipAddress;
  477. Property ipProtocol : String Index 24 Read FipProtocol Write SetipProtocol;
  478. Property portRange : String Index 32 Read FportRange Write SetportRange;
  479. Property sessionAffinity : String Index 40 Read FsessionAffinity Write SetsessionAffinity;
  480. Property targetModules : TStringArray Index 48 Read FtargetModules Write SettargetModules;
  481. end;
  482. TLbModuleClass = Class of TLbModule;
  483. { --------------------------------------------------------------------
  484. TLbModuleStatus
  485. --------------------------------------------------------------------}
  486. TLbModuleStatus = Class(TGoogleBaseObject)
  487. Private
  488. FforwardingRuleUrl : String;
  489. FtargetPoolUrl : String;
  490. Protected
  491. //Property setters
  492. Procedure SetforwardingRuleUrl(AIndex : Integer; const AValue : String); virtual;
  493. Procedure SettargetPoolUrl(AIndex : Integer; const AValue : String); virtual;
  494. Public
  495. Published
  496. Property forwardingRuleUrl : String Index 0 Read FforwardingRuleUrl Write SetforwardingRuleUrl;
  497. Property targetPoolUrl : String Index 8 Read FtargetPoolUrl Write SettargetPoolUrl;
  498. end;
  499. TLbModuleStatusClass = Class of TLbModuleStatus;
  500. { --------------------------------------------------------------------
  501. TMetadata
  502. --------------------------------------------------------------------}
  503. TMetadata = Class(TGoogleBaseObject)
  504. Private
  505. FfingerPrint : String;
  506. Fitems : TMetadataTypeitemsArray;
  507. Protected
  508. //Property setters
  509. Procedure SetfingerPrint(AIndex : Integer; const AValue : String); virtual;
  510. Procedure Setitems(AIndex : Integer; AValue : TMetadataTypeitemsArray); virtual;
  511. //2.6.4. bug workaround
  512. {$IFDEF VER2_6}
  513. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  514. {$ENDIF VER2_6}
  515. Public
  516. Published
  517. Property fingerPrint : String Index 0 Read FfingerPrint Write SetfingerPrint;
  518. Property items : TMetadataTypeitemsArray Index 8 Read Fitems Write Setitems;
  519. end;
  520. TMetadataClass = Class of TMetadata;
  521. { --------------------------------------------------------------------
  522. TMetadataItem
  523. --------------------------------------------------------------------}
  524. TMetadataItem = Class(TGoogleBaseObject)
  525. Private
  526. Fkey : String;
  527. Fvalue : String;
  528. Protected
  529. //Property setters
  530. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  531. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  532. Public
  533. Published
  534. Property key : String Index 0 Read Fkey Write Setkey;
  535. Property value : String Index 8 Read Fvalue Write Setvalue;
  536. end;
  537. TMetadataItemClass = Class of TMetadataItem;
  538. { --------------------------------------------------------------------
  539. TModule
  540. --------------------------------------------------------------------}
  541. TModule = Class(TGoogleBaseObject)
  542. Private
  543. FautoscalingModule : TAutoscalingModule;
  544. FfirewallModule : TFirewallModule;
  545. FhealthCheckModule : THealthCheckModule;
  546. FlbModule : TLbModule;
  547. FnetworkModule : TNetworkModule;
  548. FreplicaPoolModule : TReplicaPoolModule;
  549. F_type : String;
  550. Protected
  551. Class Function ExportPropertyName(Const AName : String) : string; override;
  552. //Property setters
  553. Procedure SetautoscalingModule(AIndex : Integer; AValue : TAutoscalingModule); virtual;
  554. Procedure SetfirewallModule(AIndex : Integer; AValue : TFirewallModule); virtual;
  555. Procedure SethealthCheckModule(AIndex : Integer; AValue : THealthCheckModule); virtual;
  556. Procedure SetlbModule(AIndex : Integer; AValue : TLbModule); virtual;
  557. Procedure SetnetworkModule(AIndex : Integer; AValue : TNetworkModule); virtual;
  558. Procedure SetreplicaPoolModule(AIndex : Integer; AValue : TReplicaPoolModule); virtual;
  559. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  560. Public
  561. Published
  562. Property autoscalingModule : TAutoscalingModule Index 0 Read FautoscalingModule Write SetautoscalingModule;
  563. Property firewallModule : TFirewallModule Index 8 Read FfirewallModule Write SetfirewallModule;
  564. Property healthCheckModule : THealthCheckModule Index 16 Read FhealthCheckModule Write SethealthCheckModule;
  565. Property lbModule : TLbModule Index 24 Read FlbModule Write SetlbModule;
  566. Property networkModule : TNetworkModule Index 32 Read FnetworkModule Write SetnetworkModule;
  567. Property replicaPoolModule : TReplicaPoolModule Index 40 Read FreplicaPoolModule Write SetreplicaPoolModule;
  568. Property _type : String Index 48 Read F_type Write Set_type;
  569. end;
  570. TModuleClass = Class of TModule;
  571. { --------------------------------------------------------------------
  572. TModuleStatus
  573. --------------------------------------------------------------------}
  574. TModuleStatus = Class(TGoogleBaseObject)
  575. Private
  576. FautoscalingModuleStatus : TAutoscalingModuleStatus;
  577. FfirewallModuleStatus : TFirewallModuleStatus;
  578. FhealthCheckModuleStatus : THealthCheckModuleStatus;
  579. FlbModuleStatus : TLbModuleStatus;
  580. FnetworkModuleStatus : TNetworkModuleStatus;
  581. FreplicaPoolModuleStatus : TReplicaPoolModuleStatus;
  582. Fstate : TDeployState;
  583. F_type : String;
  584. Protected
  585. Class Function ExportPropertyName(Const AName : String) : string; override;
  586. //Property setters
  587. Procedure SetautoscalingModuleStatus(AIndex : Integer; AValue : TAutoscalingModuleStatus); virtual;
  588. Procedure SetfirewallModuleStatus(AIndex : Integer; AValue : TFirewallModuleStatus); virtual;
  589. Procedure SethealthCheckModuleStatus(AIndex : Integer; AValue : THealthCheckModuleStatus); virtual;
  590. Procedure SetlbModuleStatus(AIndex : Integer; AValue : TLbModuleStatus); virtual;
  591. Procedure SetnetworkModuleStatus(AIndex : Integer; AValue : TNetworkModuleStatus); virtual;
  592. Procedure SetreplicaPoolModuleStatus(AIndex : Integer; AValue : TReplicaPoolModuleStatus); virtual;
  593. Procedure Setstate(AIndex : Integer; AValue : TDeployState); virtual;
  594. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  595. Public
  596. Published
  597. Property autoscalingModuleStatus : TAutoscalingModuleStatus Index 0 Read FautoscalingModuleStatus Write SetautoscalingModuleStatus;
  598. Property firewallModuleStatus : TFirewallModuleStatus Index 8 Read FfirewallModuleStatus Write SetfirewallModuleStatus;
  599. Property healthCheckModuleStatus : THealthCheckModuleStatus Index 16 Read FhealthCheckModuleStatus Write SethealthCheckModuleStatus;
  600. Property lbModuleStatus : TLbModuleStatus Index 24 Read FlbModuleStatus Write SetlbModuleStatus;
  601. Property networkModuleStatus : TNetworkModuleStatus Index 32 Read FnetworkModuleStatus Write SetnetworkModuleStatus;
  602. Property replicaPoolModuleStatus : TReplicaPoolModuleStatus Index 40 Read FreplicaPoolModuleStatus Write SetreplicaPoolModuleStatus;
  603. Property state : TDeployState Index 48 Read Fstate Write Setstate;
  604. Property _type : String Index 56 Read F_type Write Set_type;
  605. end;
  606. TModuleStatusClass = Class of TModuleStatus;
  607. { --------------------------------------------------------------------
  608. TNetworkInterface
  609. --------------------------------------------------------------------}
  610. TNetworkInterface = Class(TGoogleBaseObject)
  611. Private
  612. FaccessConfigs : TNetworkInterfaceTypeaccessConfigsArray;
  613. Fname : String;
  614. Fnetwork : String;
  615. FnetworkIp : String;
  616. Protected
  617. //Property setters
  618. Procedure SetaccessConfigs(AIndex : Integer; AValue : TNetworkInterfaceTypeaccessConfigsArray); virtual;
  619. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  620. Procedure Setnetwork(AIndex : Integer; const AValue : String); virtual;
  621. Procedure SetnetworkIp(AIndex : Integer; const AValue : String); virtual;
  622. //2.6.4. bug workaround
  623. {$IFDEF VER2_6}
  624. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  625. {$ENDIF VER2_6}
  626. Public
  627. Published
  628. Property accessConfigs : TNetworkInterfaceTypeaccessConfigsArray Index 0 Read FaccessConfigs Write SetaccessConfigs;
  629. Property name : String Index 8 Read Fname Write Setname;
  630. Property network : String Index 16 Read Fnetwork Write Setnetwork;
  631. Property networkIp : String Index 24 Read FnetworkIp Write SetnetworkIp;
  632. end;
  633. TNetworkInterfaceClass = Class of TNetworkInterface;
  634. { --------------------------------------------------------------------
  635. TNetworkModule
  636. --------------------------------------------------------------------}
  637. TNetworkModule = Class(TGoogleBaseObject)
  638. Private
  639. FIPv4Range : String;
  640. Fdescription : String;
  641. FgatewayIPv4 : String;
  642. Protected
  643. //Property setters
  644. Procedure SetIPv4Range(AIndex : Integer; const AValue : String); virtual;
  645. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  646. Procedure SetgatewayIPv4(AIndex : Integer; const AValue : String); virtual;
  647. Public
  648. Published
  649. Property IPv4Range : String Index 0 Read FIPv4Range Write SetIPv4Range;
  650. Property description : String Index 8 Read Fdescription Write Setdescription;
  651. Property gatewayIPv4 : String Index 16 Read FgatewayIPv4 Write SetgatewayIPv4;
  652. end;
  653. TNetworkModuleClass = Class of TNetworkModule;
  654. { --------------------------------------------------------------------
  655. TNetworkModuleStatus
  656. --------------------------------------------------------------------}
  657. TNetworkModuleStatus = Class(TGoogleBaseObject)
  658. Private
  659. FnetworkUrl : String;
  660. Protected
  661. //Property setters
  662. Procedure SetnetworkUrl(AIndex : Integer; const AValue : String); virtual;
  663. Public
  664. Published
  665. Property networkUrl : String Index 0 Read FnetworkUrl Write SetnetworkUrl;
  666. end;
  667. TNetworkModuleStatusClass = Class of TNetworkModuleStatus;
  668. { --------------------------------------------------------------------
  669. TNewDisk
  670. --------------------------------------------------------------------}
  671. TNewDisk = Class(TGoogleBaseObject)
  672. Private
  673. Fattachment : TDiskAttachment;
  674. FautoDelete : boolean;
  675. Fboot : boolean;
  676. FinitializeParams : TNewDiskInitializeParams;
  677. Protected
  678. //Property setters
  679. Procedure Setattachment(AIndex : Integer; AValue : TDiskAttachment); virtual;
  680. Procedure SetautoDelete(AIndex : Integer; AValue : boolean); virtual;
  681. Procedure Setboot(AIndex : Integer; AValue : boolean); virtual;
  682. Procedure SetinitializeParams(AIndex : Integer; AValue : TNewDiskInitializeParams); virtual;
  683. Public
  684. Published
  685. Property attachment : TDiskAttachment Index 0 Read Fattachment Write Setattachment;
  686. Property autoDelete : boolean Index 8 Read FautoDelete Write SetautoDelete;
  687. Property boot : boolean Index 16 Read Fboot Write Setboot;
  688. Property initializeParams : TNewDiskInitializeParams Index 24 Read FinitializeParams Write SetinitializeParams;
  689. end;
  690. TNewDiskClass = Class of TNewDisk;
  691. { --------------------------------------------------------------------
  692. TNewDiskInitializeParams
  693. --------------------------------------------------------------------}
  694. TNewDiskInitializeParams = Class(TGoogleBaseObject)
  695. Private
  696. FdiskSizeGb : String;
  697. FdiskType : String;
  698. FsourceImage : String;
  699. Protected
  700. //Property setters
  701. Procedure SetdiskSizeGb(AIndex : Integer; const AValue : String); virtual;
  702. Procedure SetdiskType(AIndex : Integer; const AValue : String); virtual;
  703. Procedure SetsourceImage(AIndex : Integer; const AValue : String); virtual;
  704. Public
  705. Published
  706. Property diskSizeGb : String Index 0 Read FdiskSizeGb Write SetdiskSizeGb;
  707. Property diskType : String Index 8 Read FdiskType Write SetdiskType;
  708. Property sourceImage : String Index 16 Read FsourceImage Write SetsourceImage;
  709. end;
  710. TNewDiskInitializeParamsClass = Class of TNewDiskInitializeParams;
  711. { --------------------------------------------------------------------
  712. TParamOverride
  713. --------------------------------------------------------------------}
  714. TParamOverride = Class(TGoogleBaseObject)
  715. Private
  716. Fpath : String;
  717. Fvalue : String;
  718. Protected
  719. //Property setters
  720. Procedure Setpath(AIndex : Integer; const AValue : String); virtual;
  721. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  722. Public
  723. Published
  724. Property path : String Index 0 Read Fpath Write Setpath;
  725. Property value : String Index 8 Read Fvalue Write Setvalue;
  726. end;
  727. TParamOverrideClass = Class of TParamOverride;
  728. { --------------------------------------------------------------------
  729. TReplicaPoolModuleTypeenvVariables
  730. --------------------------------------------------------------------}
  731. TReplicaPoolModuleTypeenvVariables = Class(TGoogleBaseObject)
  732. Private
  733. Protected
  734. //Property setters
  735. Public
  736. Class Function AllowAdditionalProperties : Boolean; override;
  737. Published
  738. end;
  739. TReplicaPoolModuleTypeenvVariablesClass = Class of TReplicaPoolModuleTypeenvVariables;
  740. { --------------------------------------------------------------------
  741. TReplicaPoolModule
  742. --------------------------------------------------------------------}
  743. TReplicaPoolModule = Class(TGoogleBaseObject)
  744. Private
  745. FenvVariables : TReplicaPoolModuleTypeenvVariables;
  746. FhealthChecks : TStringArray;
  747. FnumReplicas : integer;
  748. FreplicaPoolParams : TReplicaPoolParams;
  749. FresourceView : String;
  750. Protected
  751. //Property setters
  752. Procedure SetenvVariables(AIndex : Integer; AValue : TReplicaPoolModuleTypeenvVariables); virtual;
  753. Procedure SethealthChecks(AIndex : Integer; AValue : TStringArray); virtual;
  754. Procedure SetnumReplicas(AIndex : Integer; AValue : integer); virtual;
  755. Procedure SetreplicaPoolParams(AIndex : Integer; AValue : TReplicaPoolParams); virtual;
  756. Procedure SetresourceView(AIndex : Integer; const AValue : String); virtual;
  757. //2.6.4. bug workaround
  758. {$IFDEF VER2_6}
  759. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  760. {$ENDIF VER2_6}
  761. Public
  762. Published
  763. Property envVariables : TReplicaPoolModuleTypeenvVariables Index 0 Read FenvVariables Write SetenvVariables;
  764. Property healthChecks : TStringArray Index 8 Read FhealthChecks Write SethealthChecks;
  765. Property numReplicas : integer Index 16 Read FnumReplicas Write SetnumReplicas;
  766. Property replicaPoolParams : TReplicaPoolParams Index 24 Read FreplicaPoolParams Write SetreplicaPoolParams;
  767. Property resourceView : String Index 32 Read FresourceView Write SetresourceView;
  768. end;
  769. TReplicaPoolModuleClass = Class of TReplicaPoolModule;
  770. { --------------------------------------------------------------------
  771. TReplicaPoolModuleStatus
  772. --------------------------------------------------------------------}
  773. TReplicaPoolModuleStatus = Class(TGoogleBaseObject)
  774. Private
  775. FreplicaPoolUrl : String;
  776. FresourceViewUrl : String;
  777. Protected
  778. //Property setters
  779. Procedure SetreplicaPoolUrl(AIndex : Integer; const AValue : String); virtual;
  780. Procedure SetresourceViewUrl(AIndex : Integer; const AValue : String); virtual;
  781. Public
  782. Published
  783. Property replicaPoolUrl : String Index 0 Read FreplicaPoolUrl Write SetreplicaPoolUrl;
  784. Property resourceViewUrl : String Index 8 Read FresourceViewUrl Write SetresourceViewUrl;
  785. end;
  786. TReplicaPoolModuleStatusClass = Class of TReplicaPoolModuleStatus;
  787. { --------------------------------------------------------------------
  788. TReplicaPoolParams
  789. --------------------------------------------------------------------}
  790. TReplicaPoolParams = Class(TGoogleBaseObject)
  791. Private
  792. Fv1beta1 : TReplicaPoolParamsV1Beta1;
  793. Protected
  794. //Property setters
  795. Procedure Setv1beta1(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1); virtual;
  796. Public
  797. Published
  798. Property v1beta1 : TReplicaPoolParamsV1Beta1 Index 0 Read Fv1beta1 Write Setv1beta1;
  799. end;
  800. TReplicaPoolParamsClass = Class of TReplicaPoolParams;
  801. { --------------------------------------------------------------------
  802. TReplicaPoolParamsV1Beta1
  803. --------------------------------------------------------------------}
  804. TReplicaPoolParamsV1Beta1 = Class(TGoogleBaseObject)
  805. Private
  806. FautoRestart : boolean;
  807. FbaseInstanceName : String;
  808. FcanIpForward : boolean;
  809. Fdescription : String;
  810. FdisksToAttach : TReplicaPoolParamsV1Beta1TypedisksToAttachArray;
  811. FdisksToCreate : TReplicaPoolParamsV1Beta1TypedisksToCreateArray;
  812. FinitAction : String;
  813. FmachineType : String;
  814. Fmetadata : TMetadata;
  815. FnetworkInterfaces : TReplicaPoolParamsV1Beta1TypenetworkInterfacesArray;
  816. FonHostMaintenance : String;
  817. FserviceAccounts : TReplicaPoolParamsV1Beta1TypeserviceAccountsArray;
  818. Ftags : TTag;
  819. Fzone : String;
  820. Protected
  821. //Property setters
  822. Procedure SetautoRestart(AIndex : Integer; AValue : boolean); virtual;
  823. Procedure SetbaseInstanceName(AIndex : Integer; const AValue : String); virtual;
  824. Procedure SetcanIpForward(AIndex : Integer; AValue : boolean); virtual;
  825. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  826. Procedure SetdisksToAttach(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1TypedisksToAttachArray); virtual;
  827. Procedure SetdisksToCreate(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1TypedisksToCreateArray); virtual;
  828. Procedure SetinitAction(AIndex : Integer; const AValue : String); virtual;
  829. Procedure SetmachineType(AIndex : Integer; const AValue : String); virtual;
  830. Procedure Setmetadata(AIndex : Integer; AValue : TMetadata); virtual;
  831. Procedure SetnetworkInterfaces(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1TypenetworkInterfacesArray); virtual;
  832. Procedure SetonHostMaintenance(AIndex : Integer; const AValue : String); virtual;
  833. Procedure SetserviceAccounts(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1TypeserviceAccountsArray); virtual;
  834. Procedure Settags(AIndex : Integer; AValue : TTag); virtual;
  835. Procedure Setzone(AIndex : Integer; const AValue : String); virtual;
  836. //2.6.4. bug workaround
  837. {$IFDEF VER2_6}
  838. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  839. {$ENDIF VER2_6}
  840. Public
  841. Published
  842. Property autoRestart : boolean Index 0 Read FautoRestart Write SetautoRestart;
  843. Property baseInstanceName : String Index 8 Read FbaseInstanceName Write SetbaseInstanceName;
  844. Property canIpForward : boolean Index 16 Read FcanIpForward Write SetcanIpForward;
  845. Property description : String Index 24 Read Fdescription Write Setdescription;
  846. Property disksToAttach : TReplicaPoolParamsV1Beta1TypedisksToAttachArray Index 32 Read FdisksToAttach Write SetdisksToAttach;
  847. Property disksToCreate : TReplicaPoolParamsV1Beta1TypedisksToCreateArray Index 40 Read FdisksToCreate Write SetdisksToCreate;
  848. Property initAction : String Index 48 Read FinitAction Write SetinitAction;
  849. Property machineType : String Index 56 Read FmachineType Write SetmachineType;
  850. Property metadata : TMetadata Index 64 Read Fmetadata Write Setmetadata;
  851. Property networkInterfaces : TReplicaPoolParamsV1Beta1TypenetworkInterfacesArray Index 72 Read FnetworkInterfaces Write SetnetworkInterfaces;
  852. Property onHostMaintenance : String Index 80 Read FonHostMaintenance Write SetonHostMaintenance;
  853. Property serviceAccounts : TReplicaPoolParamsV1Beta1TypeserviceAccountsArray Index 88 Read FserviceAccounts Write SetserviceAccounts;
  854. Property tags : TTag Index 96 Read Ftags Write Settags;
  855. Property zone : String Index 104 Read Fzone Write Setzone;
  856. end;
  857. TReplicaPoolParamsV1Beta1Class = Class of TReplicaPoolParamsV1Beta1;
  858. { --------------------------------------------------------------------
  859. TServiceAccount
  860. --------------------------------------------------------------------}
  861. TServiceAccount = Class(TGoogleBaseObject)
  862. Private
  863. Femail : String;
  864. Fscopes : TStringArray;
  865. Protected
  866. //Property setters
  867. Procedure Setemail(AIndex : Integer; const AValue : String); virtual;
  868. Procedure Setscopes(AIndex : Integer; AValue : TStringArray); virtual;
  869. //2.6.4. bug workaround
  870. {$IFDEF VER2_6}
  871. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  872. {$ENDIF VER2_6}
  873. Public
  874. Published
  875. Property email : String Index 0 Read Femail Write Setemail;
  876. Property scopes : TStringArray Index 8 Read Fscopes Write Setscopes;
  877. end;
  878. TServiceAccountClass = Class of TServiceAccount;
  879. { --------------------------------------------------------------------
  880. TTag
  881. --------------------------------------------------------------------}
  882. TTag = Class(TGoogleBaseObject)
  883. Private
  884. FfingerPrint : String;
  885. Fitems : TStringArray;
  886. Protected
  887. //Property setters
  888. Procedure SetfingerPrint(AIndex : Integer; const AValue : String); virtual;
  889. Procedure Setitems(AIndex : Integer; AValue : TStringArray); virtual;
  890. //2.6.4. bug workaround
  891. {$IFDEF VER2_6}
  892. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  893. {$ENDIF VER2_6}
  894. Public
  895. Published
  896. Property fingerPrint : String Index 0 Read FfingerPrint Write SetfingerPrint;
  897. Property items : TStringArray Index 8 Read Fitems Write Setitems;
  898. end;
  899. TTagClass = Class of TTag;
  900. { --------------------------------------------------------------------
  901. TTemplateTypeactions
  902. --------------------------------------------------------------------}
  903. TTemplateTypeactions = Class(TGoogleBaseObject)
  904. Private
  905. Protected
  906. //Property setters
  907. Public
  908. Class Function AllowAdditionalProperties : Boolean; override;
  909. Published
  910. end;
  911. TTemplateTypeactionsClass = Class of TTemplateTypeactions;
  912. { --------------------------------------------------------------------
  913. TTemplateTypemodules
  914. --------------------------------------------------------------------}
  915. TTemplateTypemodules = Class(TGoogleBaseObject)
  916. Private
  917. Protected
  918. //Property setters
  919. Public
  920. Class Function AllowAdditionalProperties : Boolean; override;
  921. Published
  922. end;
  923. TTemplateTypemodulesClass = Class of TTemplateTypemodules;
  924. { --------------------------------------------------------------------
  925. TTemplate
  926. --------------------------------------------------------------------}
  927. TTemplate = Class(TGoogleBaseObject)
  928. Private
  929. Factions : TTemplateTypeactions;
  930. Fdescription : String;
  931. Fmodules : TTemplateTypemodules;
  932. Fname : String;
  933. Protected
  934. //Property setters
  935. Procedure Setactions(AIndex : Integer; AValue : TTemplateTypeactions); virtual;
  936. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  937. Procedure Setmodules(AIndex : Integer; AValue : TTemplateTypemodules); virtual;
  938. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  939. Public
  940. Published
  941. Property actions : TTemplateTypeactions Index 0 Read Factions Write Setactions;
  942. Property description : String Index 8 Read Fdescription Write Setdescription;
  943. Property modules : TTemplateTypemodules Index 16 Read Fmodules Write Setmodules;
  944. Property name : String Index 24 Read Fname Write Setname;
  945. end;
  946. TTemplateClass = Class of TTemplate;
  947. { --------------------------------------------------------------------
  948. TTemplatesListResponse
  949. --------------------------------------------------------------------}
  950. TTemplatesListResponse = Class(TGoogleBaseObject)
  951. Private
  952. FnextPageToken : String;
  953. Fresources : TTemplatesListResponseTyperesourcesArray;
  954. Protected
  955. //Property setters
  956. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  957. Procedure Setresources(AIndex : Integer; AValue : TTemplatesListResponseTyperesourcesArray); virtual;
  958. //2.6.4. bug workaround
  959. {$IFDEF VER2_6}
  960. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  961. {$ENDIF VER2_6}
  962. Public
  963. Published
  964. Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
  965. Property resources : TTemplatesListResponseTyperesourcesArray Index 8 Read Fresources Write Setresources;
  966. end;
  967. TTemplatesListResponseClass = Class of TTemplatesListResponse;
  968. { --------------------------------------------------------------------
  969. TDeploymentsResource
  970. --------------------------------------------------------------------}
  971. //Optional query Options for TDeploymentsResource, method List
  972. TDeploymentsListOptions = Record
  973. maxResults : integer;
  974. pageToken : String;
  975. end;
  976. TDeploymentsResource = Class(TGoogleResource)
  977. Public
  978. Class Function ResourceName : String; override;
  979. Class Function DefaultAPI : TGoogleAPIClass; override;
  980. Procedure Delete(deploymentName: string; projectId: string; region: string);
  981. Function Get(deploymentName: string; projectId: string; region: string) : TDeployment;
  982. Function Insert(projectId: string; region: string; aDeployment : TDeployment) : TDeployment;
  983. Function List(projectId: string; region: string; AQuery : string = '') : TDeploymentsListResponse;
  984. Function List(projectId: string; region: string; AQuery : TDeploymentslistOptions) : TDeploymentsListResponse;
  985. end;
  986. { --------------------------------------------------------------------
  987. TTemplatesResource
  988. --------------------------------------------------------------------}
  989. //Optional query Options for TTemplatesResource, method List
  990. TTemplatesListOptions = Record
  991. maxResults : integer;
  992. pageToken : String;
  993. end;
  994. TTemplatesResource = Class(TGoogleResource)
  995. Public
  996. Class Function ResourceName : String; override;
  997. Class Function DefaultAPI : TGoogleAPIClass; override;
  998. Procedure Delete(projectId: string; templateName: string);
  999. Function Get(projectId: string; templateName: string) : TTemplate;
  1000. Function Insert(projectId: string; aTemplate : TTemplate) : TTemplate;
  1001. Function List(projectId: string; AQuery : string = '') : TTemplatesListResponse;
  1002. Function List(projectId: string; AQuery : TTemplateslistOptions) : TTemplatesListResponse;
  1003. end;
  1004. { --------------------------------------------------------------------
  1005. TManagerAPI
  1006. --------------------------------------------------------------------}
  1007. TManagerAPI = Class(TGoogleAPI)
  1008. Private
  1009. FDeploymentsInstance : TDeploymentsResource;
  1010. FTemplatesInstance : TTemplatesResource;
  1011. Function GetDeploymentsInstance : TDeploymentsResource;virtual;
  1012. Function GetTemplatesInstance : TTemplatesResource;virtual;
  1013. Public
  1014. //Override class functions with API info
  1015. Class Function APIName : String; override;
  1016. Class Function APIVersion : String; override;
  1017. Class Function APIRevision : String; override;
  1018. Class Function APIID : String; override;
  1019. Class Function APITitle : String; override;
  1020. Class Function APIDescription : String; override;
  1021. Class Function APIOwnerDomain : String; override;
  1022. Class Function APIOwnerName : String; override;
  1023. Class Function APIIcon16 : String; override;
  1024. Class Function APIIcon32 : String; override;
  1025. Class Function APIdocumentationLink : String; override;
  1026. Class Function APIrootUrl : string; override;
  1027. Class Function APIbasePath : string;override;
  1028. Class Function APIbaseURL : String;override;
  1029. Class Function APIProtocol : string;override;
  1030. Class Function APIservicePath : string;override;
  1031. Class Function APIbatchPath : String;override;
  1032. Class Function APIAuthScopes : TScopeInfoArray;override;
  1033. Class Function APINeedsAuth : Boolean;override;
  1034. Class Procedure RegisterAPIResources; override;
  1035. //Add create function for resources
  1036. Function CreateDeploymentsResource(AOwner : TComponent) : TDeploymentsResource;virtual;overload;
  1037. Function CreateDeploymentsResource : TDeploymentsResource;virtual;overload;
  1038. Function CreateTemplatesResource(AOwner : TComponent) : TTemplatesResource;virtual;overload;
  1039. Function CreateTemplatesResource : TTemplatesResource;virtual;overload;
  1040. //Add default on-demand instances for resources
  1041. Property DeploymentsResource : TDeploymentsResource Read GetDeploymentsInstance;
  1042. Property TemplatesResource : TTemplatesResource Read GetTemplatesInstance;
  1043. end;
  1044. implementation
  1045. { --------------------------------------------------------------------
  1046. TAccessConfig
  1047. --------------------------------------------------------------------}
  1048. Procedure TAccessConfig.Setname(AIndex : Integer; const AValue : String);
  1049. begin
  1050. If (Fname=AValue) then exit;
  1051. Fname:=AValue;
  1052. MarkPropertyChanged(AIndex);
  1053. end;
  1054. Procedure TAccessConfig.SetnatIp(AIndex : Integer; const AValue : String);
  1055. begin
  1056. If (FnatIp=AValue) then exit;
  1057. FnatIp:=AValue;
  1058. MarkPropertyChanged(AIndex);
  1059. end;
  1060. Procedure TAccessConfig.Set_type(AIndex : Integer; const AValue : String);
  1061. begin
  1062. If (F_type=AValue) then exit;
  1063. F_type:=AValue;
  1064. MarkPropertyChanged(AIndex);
  1065. end;
  1066. Class Function TAccessConfig.ExportPropertyName(Const AName : String) :String;
  1067. begin
  1068. Case AName of
  1069. '_type' : Result:='type';
  1070. else
  1071. Result:=Inherited ExportPropertyName(AName);
  1072. end;
  1073. end;
  1074. { --------------------------------------------------------------------
  1075. TAction
  1076. --------------------------------------------------------------------}
  1077. Procedure TAction.Setcommands(AIndex : Integer; AValue : TStringArray);
  1078. begin
  1079. If (Fcommands=AValue) then exit;
  1080. Fcommands:=AValue;
  1081. MarkPropertyChanged(AIndex);
  1082. end;
  1083. Procedure TAction.SettimeoutMs(AIndex : Integer; AValue : integer);
  1084. begin
  1085. If (FtimeoutMs=AValue) then exit;
  1086. FtimeoutMs:=AValue;
  1087. MarkPropertyChanged(AIndex);
  1088. end;
  1089. //2.6.4. bug workaround
  1090. {$IFDEF VER2_6}
  1091. Procedure TAction.SetArrayLength(Const AName : String; ALength : Longint);
  1092. begin
  1093. Case AName of
  1094. 'commands' : SetLength(Fcommands,ALength);
  1095. else
  1096. Inherited SetArrayLength(AName,ALength);
  1097. end;
  1098. end;
  1099. {$ENDIF VER2_6}
  1100. { --------------------------------------------------------------------
  1101. TAllowedRule
  1102. --------------------------------------------------------------------}
  1103. Procedure TAllowedRule.SetIPProtocol(AIndex : Integer; const AValue : String);
  1104. begin
  1105. If (FIPProtocol=AValue) then exit;
  1106. FIPProtocol:=AValue;
  1107. MarkPropertyChanged(AIndex);
  1108. end;
  1109. Procedure TAllowedRule.Setports(AIndex : Integer; AValue : TStringArray);
  1110. begin
  1111. If (Fports=AValue) then exit;
  1112. Fports:=AValue;
  1113. MarkPropertyChanged(AIndex);
  1114. end;
  1115. //2.6.4. bug workaround
  1116. {$IFDEF VER2_6}
  1117. Procedure TAllowedRule.SetArrayLength(Const AName : String; ALength : Longint);
  1118. begin
  1119. Case AName of
  1120. 'ports' : SetLength(Fports,ALength);
  1121. else
  1122. Inherited SetArrayLength(AName,ALength);
  1123. end;
  1124. end;
  1125. {$ENDIF VER2_6}
  1126. { --------------------------------------------------------------------
  1127. TAutoscalingModule
  1128. --------------------------------------------------------------------}
  1129. Procedure TAutoscalingModule.SetcoolDownPeriodSec(AIndex : Integer; AValue : integer);
  1130. begin
  1131. If (FcoolDownPeriodSec=AValue) then exit;
  1132. FcoolDownPeriodSec:=AValue;
  1133. MarkPropertyChanged(AIndex);
  1134. end;
  1135. Procedure TAutoscalingModule.Setdescription(AIndex : Integer; const AValue : String);
  1136. begin
  1137. If (Fdescription=AValue) then exit;
  1138. Fdescription:=AValue;
  1139. MarkPropertyChanged(AIndex);
  1140. end;
  1141. Procedure TAutoscalingModule.SetmaxNumReplicas(AIndex : Integer; AValue : integer);
  1142. begin
  1143. If (FmaxNumReplicas=AValue) then exit;
  1144. FmaxNumReplicas:=AValue;
  1145. MarkPropertyChanged(AIndex);
  1146. end;
  1147. Procedure TAutoscalingModule.SetminNumReplicas(AIndex : Integer; AValue : integer);
  1148. begin
  1149. If (FminNumReplicas=AValue) then exit;
  1150. FminNumReplicas:=AValue;
  1151. MarkPropertyChanged(AIndex);
  1152. end;
  1153. Procedure TAutoscalingModule.SetsignalType(AIndex : Integer; const AValue : String);
  1154. begin
  1155. If (FsignalType=AValue) then exit;
  1156. FsignalType:=AValue;
  1157. MarkPropertyChanged(AIndex);
  1158. end;
  1159. Procedure TAutoscalingModule.SettargetModule(AIndex : Integer; const AValue : String);
  1160. begin
  1161. If (FtargetModule=AValue) then exit;
  1162. FtargetModule:=AValue;
  1163. MarkPropertyChanged(AIndex);
  1164. end;
  1165. Procedure TAutoscalingModule.SettargetUtilization(AIndex : Integer; AValue : double);
  1166. begin
  1167. If (FtargetUtilization=AValue) then exit;
  1168. FtargetUtilization:=AValue;
  1169. MarkPropertyChanged(AIndex);
  1170. end;
  1171. { --------------------------------------------------------------------
  1172. TAutoscalingModuleStatus
  1173. --------------------------------------------------------------------}
  1174. Procedure TAutoscalingModuleStatus.SetautoscalingConfigUrl(AIndex : Integer; const AValue : String);
  1175. begin
  1176. If (FautoscalingConfigUrl=AValue) then exit;
  1177. FautoscalingConfigUrl:=AValue;
  1178. MarkPropertyChanged(AIndex);
  1179. end;
  1180. { --------------------------------------------------------------------
  1181. TDeployState
  1182. --------------------------------------------------------------------}
  1183. Procedure TDeployState.Setdetails(AIndex : Integer; const AValue : String);
  1184. begin
  1185. If (Fdetails=AValue) then exit;
  1186. Fdetails:=AValue;
  1187. MarkPropertyChanged(AIndex);
  1188. end;
  1189. Procedure TDeployState.Setstatus(AIndex : Integer; const AValue : String);
  1190. begin
  1191. If (Fstatus=AValue) then exit;
  1192. Fstatus:=AValue;
  1193. MarkPropertyChanged(AIndex);
  1194. end;
  1195. { --------------------------------------------------------------------
  1196. TDeploymentTypemodules
  1197. --------------------------------------------------------------------}
  1198. Class Function TDeploymentTypemodules.AllowAdditionalProperties : Boolean;
  1199. begin
  1200. Result:=True;
  1201. end;
  1202. { --------------------------------------------------------------------
  1203. TDeployment
  1204. --------------------------------------------------------------------}
  1205. Procedure TDeployment.SetcreationDate(AIndex : Integer; const AValue : String);
  1206. begin
  1207. If (FcreationDate=AValue) then exit;
  1208. FcreationDate:=AValue;
  1209. MarkPropertyChanged(AIndex);
  1210. end;
  1211. Procedure TDeployment.Setdescription(AIndex : Integer; const AValue : String);
  1212. begin
  1213. If (Fdescription=AValue) then exit;
  1214. Fdescription:=AValue;
  1215. MarkPropertyChanged(AIndex);
  1216. end;
  1217. Procedure TDeployment.Setmodules(AIndex : Integer; AValue : TDeploymentTypemodules);
  1218. begin
  1219. If (Fmodules=AValue) then exit;
  1220. Fmodules:=AValue;
  1221. MarkPropertyChanged(AIndex);
  1222. end;
  1223. Procedure TDeployment.Setname(AIndex : Integer; const AValue : String);
  1224. begin
  1225. If (Fname=AValue) then exit;
  1226. Fname:=AValue;
  1227. MarkPropertyChanged(AIndex);
  1228. end;
  1229. Procedure TDeployment.Setoverrides(AIndex : Integer; AValue : TDeploymentTypeoverridesArray);
  1230. begin
  1231. If (Foverrides=AValue) then exit;
  1232. Foverrides:=AValue;
  1233. MarkPropertyChanged(AIndex);
  1234. end;
  1235. Procedure TDeployment.Setstate(AIndex : Integer; AValue : TDeployState);
  1236. begin
  1237. If (Fstate=AValue) then exit;
  1238. Fstate:=AValue;
  1239. MarkPropertyChanged(AIndex);
  1240. end;
  1241. Procedure TDeployment.SettemplateName(AIndex : Integer; const AValue : String);
  1242. begin
  1243. If (FtemplateName=AValue) then exit;
  1244. FtemplateName:=AValue;
  1245. MarkPropertyChanged(AIndex);
  1246. end;
  1247. //2.6.4. bug workaround
  1248. {$IFDEF VER2_6}
  1249. Procedure TDeployment.SetArrayLength(Const AName : String; ALength : Longint);
  1250. begin
  1251. Case AName of
  1252. 'overrides' : SetLength(Foverrides,ALength);
  1253. else
  1254. Inherited SetArrayLength(AName,ALength);
  1255. end;
  1256. end;
  1257. {$ENDIF VER2_6}
  1258. { --------------------------------------------------------------------
  1259. TDeploymentsListResponse
  1260. --------------------------------------------------------------------}
  1261. Procedure TDeploymentsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  1262. begin
  1263. If (FnextPageToken=AValue) then exit;
  1264. FnextPageToken:=AValue;
  1265. MarkPropertyChanged(AIndex);
  1266. end;
  1267. Procedure TDeploymentsListResponse.Setresources(AIndex : Integer; AValue : TDeploymentsListResponseTyperesourcesArray);
  1268. begin
  1269. If (Fresources=AValue) then exit;
  1270. Fresources:=AValue;
  1271. MarkPropertyChanged(AIndex);
  1272. end;
  1273. //2.6.4. bug workaround
  1274. {$IFDEF VER2_6}
  1275. Procedure TDeploymentsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1276. begin
  1277. Case AName of
  1278. 'resources' : SetLength(Fresources,ALength);
  1279. else
  1280. Inherited SetArrayLength(AName,ALength);
  1281. end;
  1282. end;
  1283. {$ENDIF VER2_6}
  1284. { --------------------------------------------------------------------
  1285. TDiskAttachment
  1286. --------------------------------------------------------------------}
  1287. Procedure TDiskAttachment.SetdeviceName(AIndex : Integer; const AValue : String);
  1288. begin
  1289. If (FdeviceName=AValue) then exit;
  1290. FdeviceName:=AValue;
  1291. MarkPropertyChanged(AIndex);
  1292. end;
  1293. Procedure TDiskAttachment.Setindex(AIndex : Integer; AValue : integer);
  1294. begin
  1295. If (Findex=AValue) then exit;
  1296. Findex:=AValue;
  1297. MarkPropertyChanged(AIndex);
  1298. end;
  1299. { --------------------------------------------------------------------
  1300. TEnvVariable
  1301. --------------------------------------------------------------------}
  1302. Procedure TEnvVariable.Sethidden(AIndex : Integer; AValue : boolean);
  1303. begin
  1304. If (Fhidden=AValue) then exit;
  1305. Fhidden:=AValue;
  1306. MarkPropertyChanged(AIndex);
  1307. end;
  1308. Procedure TEnvVariable.Setvalue(AIndex : Integer; const AValue : String);
  1309. begin
  1310. If (Fvalue=AValue) then exit;
  1311. Fvalue:=AValue;
  1312. MarkPropertyChanged(AIndex);
  1313. end;
  1314. { --------------------------------------------------------------------
  1315. TExistingDisk
  1316. --------------------------------------------------------------------}
  1317. Procedure TExistingDisk.Setattachment(AIndex : Integer; AValue : TDiskAttachment);
  1318. begin
  1319. If (Fattachment=AValue) then exit;
  1320. Fattachment:=AValue;
  1321. MarkPropertyChanged(AIndex);
  1322. end;
  1323. Procedure TExistingDisk.Setsource(AIndex : Integer; const AValue : String);
  1324. begin
  1325. If (Fsource=AValue) then exit;
  1326. Fsource:=AValue;
  1327. MarkPropertyChanged(AIndex);
  1328. end;
  1329. { --------------------------------------------------------------------
  1330. TFirewallModule
  1331. --------------------------------------------------------------------}
  1332. Procedure TFirewallModule.Setallowed(AIndex : Integer; AValue : TFirewallModuleTypeallowedArray);
  1333. begin
  1334. If (Fallowed=AValue) then exit;
  1335. Fallowed:=AValue;
  1336. MarkPropertyChanged(AIndex);
  1337. end;
  1338. Procedure TFirewallModule.Setdescription(AIndex : Integer; const AValue : String);
  1339. begin
  1340. If (Fdescription=AValue) then exit;
  1341. Fdescription:=AValue;
  1342. MarkPropertyChanged(AIndex);
  1343. end;
  1344. Procedure TFirewallModule.Setnetwork(AIndex : Integer; const AValue : String);
  1345. begin
  1346. If (Fnetwork=AValue) then exit;
  1347. Fnetwork:=AValue;
  1348. MarkPropertyChanged(AIndex);
  1349. end;
  1350. Procedure TFirewallModule.SetsourceRanges(AIndex : Integer; AValue : TStringArray);
  1351. begin
  1352. If (FsourceRanges=AValue) then exit;
  1353. FsourceRanges:=AValue;
  1354. MarkPropertyChanged(AIndex);
  1355. end;
  1356. Procedure TFirewallModule.SetsourceTags(AIndex : Integer; AValue : TStringArray);
  1357. begin
  1358. If (FsourceTags=AValue) then exit;
  1359. FsourceTags:=AValue;
  1360. MarkPropertyChanged(AIndex);
  1361. end;
  1362. Procedure TFirewallModule.SettargetTags(AIndex : Integer; AValue : TStringArray);
  1363. begin
  1364. If (FtargetTags=AValue) then exit;
  1365. FtargetTags:=AValue;
  1366. MarkPropertyChanged(AIndex);
  1367. end;
  1368. //2.6.4. bug workaround
  1369. {$IFDEF VER2_6}
  1370. Procedure TFirewallModule.SetArrayLength(Const AName : String; ALength : Longint);
  1371. begin
  1372. Case AName of
  1373. 'allowed' : SetLength(Fallowed,ALength);
  1374. 'sourceranges' : SetLength(FsourceRanges,ALength);
  1375. 'sourcetags' : SetLength(FsourceTags,ALength);
  1376. 'targettags' : SetLength(FtargetTags,ALength);
  1377. else
  1378. Inherited SetArrayLength(AName,ALength);
  1379. end;
  1380. end;
  1381. {$ENDIF VER2_6}
  1382. { --------------------------------------------------------------------
  1383. TFirewallModuleStatus
  1384. --------------------------------------------------------------------}
  1385. Procedure TFirewallModuleStatus.SetfirewallUrl(AIndex : Integer; const AValue : String);
  1386. begin
  1387. If (FfirewallUrl=AValue) then exit;
  1388. FfirewallUrl:=AValue;
  1389. MarkPropertyChanged(AIndex);
  1390. end;
  1391. { --------------------------------------------------------------------
  1392. THealthCheckModule
  1393. --------------------------------------------------------------------}
  1394. Procedure THealthCheckModule.SetcheckIntervalSec(AIndex : Integer; AValue : integer);
  1395. begin
  1396. If (FcheckIntervalSec=AValue) then exit;
  1397. FcheckIntervalSec:=AValue;
  1398. MarkPropertyChanged(AIndex);
  1399. end;
  1400. Procedure THealthCheckModule.Setdescription(AIndex : Integer; const AValue : String);
  1401. begin
  1402. If (Fdescription=AValue) then exit;
  1403. Fdescription:=AValue;
  1404. MarkPropertyChanged(AIndex);
  1405. end;
  1406. Procedure THealthCheckModule.SethealthyThreshold(AIndex : Integer; AValue : integer);
  1407. begin
  1408. If (FhealthyThreshold=AValue) then exit;
  1409. FhealthyThreshold:=AValue;
  1410. MarkPropertyChanged(AIndex);
  1411. end;
  1412. Procedure THealthCheckModule.Sethost(AIndex : Integer; const AValue : String);
  1413. begin
  1414. If (Fhost=AValue) then exit;
  1415. Fhost:=AValue;
  1416. MarkPropertyChanged(AIndex);
  1417. end;
  1418. Procedure THealthCheckModule.Setpath(AIndex : Integer; const AValue : String);
  1419. begin
  1420. If (Fpath=AValue) then exit;
  1421. Fpath:=AValue;
  1422. MarkPropertyChanged(AIndex);
  1423. end;
  1424. Procedure THealthCheckModule.Setport(AIndex : Integer; AValue : integer);
  1425. begin
  1426. If (Fport=AValue) then exit;
  1427. Fport:=AValue;
  1428. MarkPropertyChanged(AIndex);
  1429. end;
  1430. Procedure THealthCheckModule.SettimeoutSec(AIndex : Integer; AValue : integer);
  1431. begin
  1432. If (FtimeoutSec=AValue) then exit;
  1433. FtimeoutSec:=AValue;
  1434. MarkPropertyChanged(AIndex);
  1435. end;
  1436. Procedure THealthCheckModule.SetunhealthyThreshold(AIndex : Integer; AValue : integer);
  1437. begin
  1438. If (FunhealthyThreshold=AValue) then exit;
  1439. FunhealthyThreshold:=AValue;
  1440. MarkPropertyChanged(AIndex);
  1441. end;
  1442. { --------------------------------------------------------------------
  1443. THealthCheckModuleStatus
  1444. --------------------------------------------------------------------}
  1445. Procedure THealthCheckModuleStatus.SethealthCheckUrl(AIndex : Integer; const AValue : String);
  1446. begin
  1447. If (FhealthCheckUrl=AValue) then exit;
  1448. FhealthCheckUrl:=AValue;
  1449. MarkPropertyChanged(AIndex);
  1450. end;
  1451. { --------------------------------------------------------------------
  1452. TLbModule
  1453. --------------------------------------------------------------------}
  1454. Procedure TLbModule.Setdescription(AIndex : Integer; const AValue : String);
  1455. begin
  1456. If (Fdescription=AValue) then exit;
  1457. Fdescription:=AValue;
  1458. MarkPropertyChanged(AIndex);
  1459. end;
  1460. Procedure TLbModule.SethealthChecks(AIndex : Integer; AValue : TStringArray);
  1461. begin
  1462. If (FhealthChecks=AValue) then exit;
  1463. FhealthChecks:=AValue;
  1464. MarkPropertyChanged(AIndex);
  1465. end;
  1466. Procedure TLbModule.SetipAddress(AIndex : Integer; const AValue : String);
  1467. begin
  1468. If (FipAddress=AValue) then exit;
  1469. FipAddress:=AValue;
  1470. MarkPropertyChanged(AIndex);
  1471. end;
  1472. Procedure TLbModule.SetipProtocol(AIndex : Integer; const AValue : String);
  1473. begin
  1474. If (FipProtocol=AValue) then exit;
  1475. FipProtocol:=AValue;
  1476. MarkPropertyChanged(AIndex);
  1477. end;
  1478. Procedure TLbModule.SetportRange(AIndex : Integer; const AValue : String);
  1479. begin
  1480. If (FportRange=AValue) then exit;
  1481. FportRange:=AValue;
  1482. MarkPropertyChanged(AIndex);
  1483. end;
  1484. Procedure TLbModule.SetsessionAffinity(AIndex : Integer; const AValue : String);
  1485. begin
  1486. If (FsessionAffinity=AValue) then exit;
  1487. FsessionAffinity:=AValue;
  1488. MarkPropertyChanged(AIndex);
  1489. end;
  1490. Procedure TLbModule.SettargetModules(AIndex : Integer; AValue : TStringArray);
  1491. begin
  1492. If (FtargetModules=AValue) then exit;
  1493. FtargetModules:=AValue;
  1494. MarkPropertyChanged(AIndex);
  1495. end;
  1496. //2.6.4. bug workaround
  1497. {$IFDEF VER2_6}
  1498. Procedure TLbModule.SetArrayLength(Const AName : String; ALength : Longint);
  1499. begin
  1500. Case AName of
  1501. 'healthchecks' : SetLength(FhealthChecks,ALength);
  1502. 'targetmodules' : SetLength(FtargetModules,ALength);
  1503. else
  1504. Inherited SetArrayLength(AName,ALength);
  1505. end;
  1506. end;
  1507. {$ENDIF VER2_6}
  1508. { --------------------------------------------------------------------
  1509. TLbModuleStatus
  1510. --------------------------------------------------------------------}
  1511. Procedure TLbModuleStatus.SetforwardingRuleUrl(AIndex : Integer; const AValue : String);
  1512. begin
  1513. If (FforwardingRuleUrl=AValue) then exit;
  1514. FforwardingRuleUrl:=AValue;
  1515. MarkPropertyChanged(AIndex);
  1516. end;
  1517. Procedure TLbModuleStatus.SettargetPoolUrl(AIndex : Integer; const AValue : String);
  1518. begin
  1519. If (FtargetPoolUrl=AValue) then exit;
  1520. FtargetPoolUrl:=AValue;
  1521. MarkPropertyChanged(AIndex);
  1522. end;
  1523. { --------------------------------------------------------------------
  1524. TMetadata
  1525. --------------------------------------------------------------------}
  1526. Procedure TMetadata.SetfingerPrint(AIndex : Integer; const AValue : String);
  1527. begin
  1528. If (FfingerPrint=AValue) then exit;
  1529. FfingerPrint:=AValue;
  1530. MarkPropertyChanged(AIndex);
  1531. end;
  1532. Procedure TMetadata.Setitems(AIndex : Integer; AValue : TMetadataTypeitemsArray);
  1533. begin
  1534. If (Fitems=AValue) then exit;
  1535. Fitems:=AValue;
  1536. MarkPropertyChanged(AIndex);
  1537. end;
  1538. //2.6.4. bug workaround
  1539. {$IFDEF VER2_6}
  1540. Procedure TMetadata.SetArrayLength(Const AName : String; ALength : Longint);
  1541. begin
  1542. Case AName of
  1543. 'items' : SetLength(Fitems,ALength);
  1544. else
  1545. Inherited SetArrayLength(AName,ALength);
  1546. end;
  1547. end;
  1548. {$ENDIF VER2_6}
  1549. { --------------------------------------------------------------------
  1550. TMetadataItem
  1551. --------------------------------------------------------------------}
  1552. Procedure TMetadataItem.Setkey(AIndex : Integer; const AValue : String);
  1553. begin
  1554. If (Fkey=AValue) then exit;
  1555. Fkey:=AValue;
  1556. MarkPropertyChanged(AIndex);
  1557. end;
  1558. Procedure TMetadataItem.Setvalue(AIndex : Integer; const AValue : String);
  1559. begin
  1560. If (Fvalue=AValue) then exit;
  1561. Fvalue:=AValue;
  1562. MarkPropertyChanged(AIndex);
  1563. end;
  1564. { --------------------------------------------------------------------
  1565. TModule
  1566. --------------------------------------------------------------------}
  1567. Procedure TModule.SetautoscalingModule(AIndex : Integer; AValue : TAutoscalingModule);
  1568. begin
  1569. If (FautoscalingModule=AValue) then exit;
  1570. FautoscalingModule:=AValue;
  1571. MarkPropertyChanged(AIndex);
  1572. end;
  1573. Procedure TModule.SetfirewallModule(AIndex : Integer; AValue : TFirewallModule);
  1574. begin
  1575. If (FfirewallModule=AValue) then exit;
  1576. FfirewallModule:=AValue;
  1577. MarkPropertyChanged(AIndex);
  1578. end;
  1579. Procedure TModule.SethealthCheckModule(AIndex : Integer; AValue : THealthCheckModule);
  1580. begin
  1581. If (FhealthCheckModule=AValue) then exit;
  1582. FhealthCheckModule:=AValue;
  1583. MarkPropertyChanged(AIndex);
  1584. end;
  1585. Procedure TModule.SetlbModule(AIndex : Integer; AValue : TLbModule);
  1586. begin
  1587. If (FlbModule=AValue) then exit;
  1588. FlbModule:=AValue;
  1589. MarkPropertyChanged(AIndex);
  1590. end;
  1591. Procedure TModule.SetnetworkModule(AIndex : Integer; AValue : TNetworkModule);
  1592. begin
  1593. If (FnetworkModule=AValue) then exit;
  1594. FnetworkModule:=AValue;
  1595. MarkPropertyChanged(AIndex);
  1596. end;
  1597. Procedure TModule.SetreplicaPoolModule(AIndex : Integer; AValue : TReplicaPoolModule);
  1598. begin
  1599. If (FreplicaPoolModule=AValue) then exit;
  1600. FreplicaPoolModule:=AValue;
  1601. MarkPropertyChanged(AIndex);
  1602. end;
  1603. Procedure TModule.Set_type(AIndex : Integer; const AValue : String);
  1604. begin
  1605. If (F_type=AValue) then exit;
  1606. F_type:=AValue;
  1607. MarkPropertyChanged(AIndex);
  1608. end;
  1609. Class Function TModule.ExportPropertyName(Const AName : String) :String;
  1610. begin
  1611. Case AName of
  1612. '_type' : Result:='type';
  1613. else
  1614. Result:=Inherited ExportPropertyName(AName);
  1615. end;
  1616. end;
  1617. { --------------------------------------------------------------------
  1618. TModuleStatus
  1619. --------------------------------------------------------------------}
  1620. Procedure TModuleStatus.SetautoscalingModuleStatus(AIndex : Integer; AValue : TAutoscalingModuleStatus);
  1621. begin
  1622. If (FautoscalingModuleStatus=AValue) then exit;
  1623. FautoscalingModuleStatus:=AValue;
  1624. MarkPropertyChanged(AIndex);
  1625. end;
  1626. Procedure TModuleStatus.SetfirewallModuleStatus(AIndex : Integer; AValue : TFirewallModuleStatus);
  1627. begin
  1628. If (FfirewallModuleStatus=AValue) then exit;
  1629. FfirewallModuleStatus:=AValue;
  1630. MarkPropertyChanged(AIndex);
  1631. end;
  1632. Procedure TModuleStatus.SethealthCheckModuleStatus(AIndex : Integer; AValue : THealthCheckModuleStatus);
  1633. begin
  1634. If (FhealthCheckModuleStatus=AValue) then exit;
  1635. FhealthCheckModuleStatus:=AValue;
  1636. MarkPropertyChanged(AIndex);
  1637. end;
  1638. Procedure TModuleStatus.SetlbModuleStatus(AIndex : Integer; AValue : TLbModuleStatus);
  1639. begin
  1640. If (FlbModuleStatus=AValue) then exit;
  1641. FlbModuleStatus:=AValue;
  1642. MarkPropertyChanged(AIndex);
  1643. end;
  1644. Procedure TModuleStatus.SetnetworkModuleStatus(AIndex : Integer; AValue : TNetworkModuleStatus);
  1645. begin
  1646. If (FnetworkModuleStatus=AValue) then exit;
  1647. FnetworkModuleStatus:=AValue;
  1648. MarkPropertyChanged(AIndex);
  1649. end;
  1650. Procedure TModuleStatus.SetreplicaPoolModuleStatus(AIndex : Integer; AValue : TReplicaPoolModuleStatus);
  1651. begin
  1652. If (FreplicaPoolModuleStatus=AValue) then exit;
  1653. FreplicaPoolModuleStatus:=AValue;
  1654. MarkPropertyChanged(AIndex);
  1655. end;
  1656. Procedure TModuleStatus.Setstate(AIndex : Integer; AValue : TDeployState);
  1657. begin
  1658. If (Fstate=AValue) then exit;
  1659. Fstate:=AValue;
  1660. MarkPropertyChanged(AIndex);
  1661. end;
  1662. Procedure TModuleStatus.Set_type(AIndex : Integer; const AValue : String);
  1663. begin
  1664. If (F_type=AValue) then exit;
  1665. F_type:=AValue;
  1666. MarkPropertyChanged(AIndex);
  1667. end;
  1668. Class Function TModuleStatus.ExportPropertyName(Const AName : String) :String;
  1669. begin
  1670. Case AName of
  1671. '_type' : Result:='type';
  1672. else
  1673. Result:=Inherited ExportPropertyName(AName);
  1674. end;
  1675. end;
  1676. { --------------------------------------------------------------------
  1677. TNetworkInterface
  1678. --------------------------------------------------------------------}
  1679. Procedure TNetworkInterface.SetaccessConfigs(AIndex : Integer; AValue : TNetworkInterfaceTypeaccessConfigsArray);
  1680. begin
  1681. If (FaccessConfigs=AValue) then exit;
  1682. FaccessConfigs:=AValue;
  1683. MarkPropertyChanged(AIndex);
  1684. end;
  1685. Procedure TNetworkInterface.Setname(AIndex : Integer; const AValue : String);
  1686. begin
  1687. If (Fname=AValue) then exit;
  1688. Fname:=AValue;
  1689. MarkPropertyChanged(AIndex);
  1690. end;
  1691. Procedure TNetworkInterface.Setnetwork(AIndex : Integer; const AValue : String);
  1692. begin
  1693. If (Fnetwork=AValue) then exit;
  1694. Fnetwork:=AValue;
  1695. MarkPropertyChanged(AIndex);
  1696. end;
  1697. Procedure TNetworkInterface.SetnetworkIp(AIndex : Integer; const AValue : String);
  1698. begin
  1699. If (FnetworkIp=AValue) then exit;
  1700. FnetworkIp:=AValue;
  1701. MarkPropertyChanged(AIndex);
  1702. end;
  1703. //2.6.4. bug workaround
  1704. {$IFDEF VER2_6}
  1705. Procedure TNetworkInterface.SetArrayLength(Const AName : String; ALength : Longint);
  1706. begin
  1707. Case AName of
  1708. 'accessconfigs' : SetLength(FaccessConfigs,ALength);
  1709. else
  1710. Inherited SetArrayLength(AName,ALength);
  1711. end;
  1712. end;
  1713. {$ENDIF VER2_6}
  1714. { --------------------------------------------------------------------
  1715. TNetworkModule
  1716. --------------------------------------------------------------------}
  1717. Procedure TNetworkModule.SetIPv4Range(AIndex : Integer; const AValue : String);
  1718. begin
  1719. If (FIPv4Range=AValue) then exit;
  1720. FIPv4Range:=AValue;
  1721. MarkPropertyChanged(AIndex);
  1722. end;
  1723. Procedure TNetworkModule.Setdescription(AIndex : Integer; const AValue : String);
  1724. begin
  1725. If (Fdescription=AValue) then exit;
  1726. Fdescription:=AValue;
  1727. MarkPropertyChanged(AIndex);
  1728. end;
  1729. Procedure TNetworkModule.SetgatewayIPv4(AIndex : Integer; const AValue : String);
  1730. begin
  1731. If (FgatewayIPv4=AValue) then exit;
  1732. FgatewayIPv4:=AValue;
  1733. MarkPropertyChanged(AIndex);
  1734. end;
  1735. { --------------------------------------------------------------------
  1736. TNetworkModuleStatus
  1737. --------------------------------------------------------------------}
  1738. Procedure TNetworkModuleStatus.SetnetworkUrl(AIndex : Integer; const AValue : String);
  1739. begin
  1740. If (FnetworkUrl=AValue) then exit;
  1741. FnetworkUrl:=AValue;
  1742. MarkPropertyChanged(AIndex);
  1743. end;
  1744. { --------------------------------------------------------------------
  1745. TNewDisk
  1746. --------------------------------------------------------------------}
  1747. Procedure TNewDisk.Setattachment(AIndex : Integer; AValue : TDiskAttachment);
  1748. begin
  1749. If (Fattachment=AValue) then exit;
  1750. Fattachment:=AValue;
  1751. MarkPropertyChanged(AIndex);
  1752. end;
  1753. Procedure TNewDisk.SetautoDelete(AIndex : Integer; AValue : boolean);
  1754. begin
  1755. If (FautoDelete=AValue) then exit;
  1756. FautoDelete:=AValue;
  1757. MarkPropertyChanged(AIndex);
  1758. end;
  1759. Procedure TNewDisk.Setboot(AIndex : Integer; AValue : boolean);
  1760. begin
  1761. If (Fboot=AValue) then exit;
  1762. Fboot:=AValue;
  1763. MarkPropertyChanged(AIndex);
  1764. end;
  1765. Procedure TNewDisk.SetinitializeParams(AIndex : Integer; AValue : TNewDiskInitializeParams);
  1766. begin
  1767. If (FinitializeParams=AValue) then exit;
  1768. FinitializeParams:=AValue;
  1769. MarkPropertyChanged(AIndex);
  1770. end;
  1771. { --------------------------------------------------------------------
  1772. TNewDiskInitializeParams
  1773. --------------------------------------------------------------------}
  1774. Procedure TNewDiskInitializeParams.SetdiskSizeGb(AIndex : Integer; const AValue : String);
  1775. begin
  1776. If (FdiskSizeGb=AValue) then exit;
  1777. FdiskSizeGb:=AValue;
  1778. MarkPropertyChanged(AIndex);
  1779. end;
  1780. Procedure TNewDiskInitializeParams.SetdiskType(AIndex : Integer; const AValue : String);
  1781. begin
  1782. If (FdiskType=AValue) then exit;
  1783. FdiskType:=AValue;
  1784. MarkPropertyChanged(AIndex);
  1785. end;
  1786. Procedure TNewDiskInitializeParams.SetsourceImage(AIndex : Integer; const AValue : String);
  1787. begin
  1788. If (FsourceImage=AValue) then exit;
  1789. FsourceImage:=AValue;
  1790. MarkPropertyChanged(AIndex);
  1791. end;
  1792. { --------------------------------------------------------------------
  1793. TParamOverride
  1794. --------------------------------------------------------------------}
  1795. Procedure TParamOverride.Setpath(AIndex : Integer; const AValue : String);
  1796. begin
  1797. If (Fpath=AValue) then exit;
  1798. Fpath:=AValue;
  1799. MarkPropertyChanged(AIndex);
  1800. end;
  1801. Procedure TParamOverride.Setvalue(AIndex : Integer; const AValue : String);
  1802. begin
  1803. If (Fvalue=AValue) then exit;
  1804. Fvalue:=AValue;
  1805. MarkPropertyChanged(AIndex);
  1806. end;
  1807. { --------------------------------------------------------------------
  1808. TReplicaPoolModuleTypeenvVariables
  1809. --------------------------------------------------------------------}
  1810. Class Function TReplicaPoolModuleTypeenvVariables.AllowAdditionalProperties : Boolean;
  1811. begin
  1812. Result:=True;
  1813. end;
  1814. { --------------------------------------------------------------------
  1815. TReplicaPoolModule
  1816. --------------------------------------------------------------------}
  1817. Procedure TReplicaPoolModule.SetenvVariables(AIndex : Integer; AValue : TReplicaPoolModuleTypeenvVariables);
  1818. begin
  1819. If (FenvVariables=AValue) then exit;
  1820. FenvVariables:=AValue;
  1821. MarkPropertyChanged(AIndex);
  1822. end;
  1823. Procedure TReplicaPoolModule.SethealthChecks(AIndex : Integer; AValue : TStringArray);
  1824. begin
  1825. If (FhealthChecks=AValue) then exit;
  1826. FhealthChecks:=AValue;
  1827. MarkPropertyChanged(AIndex);
  1828. end;
  1829. Procedure TReplicaPoolModule.SetnumReplicas(AIndex : Integer; AValue : integer);
  1830. begin
  1831. If (FnumReplicas=AValue) then exit;
  1832. FnumReplicas:=AValue;
  1833. MarkPropertyChanged(AIndex);
  1834. end;
  1835. Procedure TReplicaPoolModule.SetreplicaPoolParams(AIndex : Integer; AValue : TReplicaPoolParams);
  1836. begin
  1837. If (FreplicaPoolParams=AValue) then exit;
  1838. FreplicaPoolParams:=AValue;
  1839. MarkPropertyChanged(AIndex);
  1840. end;
  1841. Procedure TReplicaPoolModule.SetresourceView(AIndex : Integer; const AValue : String);
  1842. begin
  1843. If (FresourceView=AValue) then exit;
  1844. FresourceView:=AValue;
  1845. MarkPropertyChanged(AIndex);
  1846. end;
  1847. //2.6.4. bug workaround
  1848. {$IFDEF VER2_6}
  1849. Procedure TReplicaPoolModule.SetArrayLength(Const AName : String; ALength : Longint);
  1850. begin
  1851. Case AName of
  1852. 'healthchecks' : SetLength(FhealthChecks,ALength);
  1853. else
  1854. Inherited SetArrayLength(AName,ALength);
  1855. end;
  1856. end;
  1857. {$ENDIF VER2_6}
  1858. { --------------------------------------------------------------------
  1859. TReplicaPoolModuleStatus
  1860. --------------------------------------------------------------------}
  1861. Procedure TReplicaPoolModuleStatus.SetreplicaPoolUrl(AIndex : Integer; const AValue : String);
  1862. begin
  1863. If (FreplicaPoolUrl=AValue) then exit;
  1864. FreplicaPoolUrl:=AValue;
  1865. MarkPropertyChanged(AIndex);
  1866. end;
  1867. Procedure TReplicaPoolModuleStatus.SetresourceViewUrl(AIndex : Integer; const AValue : String);
  1868. begin
  1869. If (FresourceViewUrl=AValue) then exit;
  1870. FresourceViewUrl:=AValue;
  1871. MarkPropertyChanged(AIndex);
  1872. end;
  1873. { --------------------------------------------------------------------
  1874. TReplicaPoolParams
  1875. --------------------------------------------------------------------}
  1876. Procedure TReplicaPoolParams.Setv1beta1(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1);
  1877. begin
  1878. If (Fv1beta1=AValue) then exit;
  1879. Fv1beta1:=AValue;
  1880. MarkPropertyChanged(AIndex);
  1881. end;
  1882. { --------------------------------------------------------------------
  1883. TReplicaPoolParamsV1Beta1
  1884. --------------------------------------------------------------------}
  1885. Procedure TReplicaPoolParamsV1Beta1.SetautoRestart(AIndex : Integer; AValue : boolean);
  1886. begin
  1887. If (FautoRestart=AValue) then exit;
  1888. FautoRestart:=AValue;
  1889. MarkPropertyChanged(AIndex);
  1890. end;
  1891. Procedure TReplicaPoolParamsV1Beta1.SetbaseInstanceName(AIndex : Integer; const AValue : String);
  1892. begin
  1893. If (FbaseInstanceName=AValue) then exit;
  1894. FbaseInstanceName:=AValue;
  1895. MarkPropertyChanged(AIndex);
  1896. end;
  1897. Procedure TReplicaPoolParamsV1Beta1.SetcanIpForward(AIndex : Integer; AValue : boolean);
  1898. begin
  1899. If (FcanIpForward=AValue) then exit;
  1900. FcanIpForward:=AValue;
  1901. MarkPropertyChanged(AIndex);
  1902. end;
  1903. Procedure TReplicaPoolParamsV1Beta1.Setdescription(AIndex : Integer; const AValue : String);
  1904. begin
  1905. If (Fdescription=AValue) then exit;
  1906. Fdescription:=AValue;
  1907. MarkPropertyChanged(AIndex);
  1908. end;
  1909. Procedure TReplicaPoolParamsV1Beta1.SetdisksToAttach(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1TypedisksToAttachArray);
  1910. begin
  1911. If (FdisksToAttach=AValue) then exit;
  1912. FdisksToAttach:=AValue;
  1913. MarkPropertyChanged(AIndex);
  1914. end;
  1915. Procedure TReplicaPoolParamsV1Beta1.SetdisksToCreate(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1TypedisksToCreateArray);
  1916. begin
  1917. If (FdisksToCreate=AValue) then exit;
  1918. FdisksToCreate:=AValue;
  1919. MarkPropertyChanged(AIndex);
  1920. end;
  1921. Procedure TReplicaPoolParamsV1Beta1.SetinitAction(AIndex : Integer; const AValue : String);
  1922. begin
  1923. If (FinitAction=AValue) then exit;
  1924. FinitAction:=AValue;
  1925. MarkPropertyChanged(AIndex);
  1926. end;
  1927. Procedure TReplicaPoolParamsV1Beta1.SetmachineType(AIndex : Integer; const AValue : String);
  1928. begin
  1929. If (FmachineType=AValue) then exit;
  1930. FmachineType:=AValue;
  1931. MarkPropertyChanged(AIndex);
  1932. end;
  1933. Procedure TReplicaPoolParamsV1Beta1.Setmetadata(AIndex : Integer; AValue : TMetadata);
  1934. begin
  1935. If (Fmetadata=AValue) then exit;
  1936. Fmetadata:=AValue;
  1937. MarkPropertyChanged(AIndex);
  1938. end;
  1939. Procedure TReplicaPoolParamsV1Beta1.SetnetworkInterfaces(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1TypenetworkInterfacesArray);
  1940. begin
  1941. If (FnetworkInterfaces=AValue) then exit;
  1942. FnetworkInterfaces:=AValue;
  1943. MarkPropertyChanged(AIndex);
  1944. end;
  1945. Procedure TReplicaPoolParamsV1Beta1.SetonHostMaintenance(AIndex : Integer; const AValue : String);
  1946. begin
  1947. If (FonHostMaintenance=AValue) then exit;
  1948. FonHostMaintenance:=AValue;
  1949. MarkPropertyChanged(AIndex);
  1950. end;
  1951. Procedure TReplicaPoolParamsV1Beta1.SetserviceAccounts(AIndex : Integer; AValue : TReplicaPoolParamsV1Beta1TypeserviceAccountsArray);
  1952. begin
  1953. If (FserviceAccounts=AValue) then exit;
  1954. FserviceAccounts:=AValue;
  1955. MarkPropertyChanged(AIndex);
  1956. end;
  1957. Procedure TReplicaPoolParamsV1Beta1.Settags(AIndex : Integer; AValue : TTag);
  1958. begin
  1959. If (Ftags=AValue) then exit;
  1960. Ftags:=AValue;
  1961. MarkPropertyChanged(AIndex);
  1962. end;
  1963. Procedure TReplicaPoolParamsV1Beta1.Setzone(AIndex : Integer; const AValue : String);
  1964. begin
  1965. If (Fzone=AValue) then exit;
  1966. Fzone:=AValue;
  1967. MarkPropertyChanged(AIndex);
  1968. end;
  1969. //2.6.4. bug workaround
  1970. {$IFDEF VER2_6}
  1971. Procedure TReplicaPoolParamsV1Beta1.SetArrayLength(Const AName : String; ALength : Longint);
  1972. begin
  1973. Case AName of
  1974. 'diskstoattach' : SetLength(FdisksToAttach,ALength);
  1975. 'diskstocreate' : SetLength(FdisksToCreate,ALength);
  1976. 'networkinterfaces' : SetLength(FnetworkInterfaces,ALength);
  1977. 'serviceaccounts' : SetLength(FserviceAccounts,ALength);
  1978. else
  1979. Inherited SetArrayLength(AName,ALength);
  1980. end;
  1981. end;
  1982. {$ENDIF VER2_6}
  1983. { --------------------------------------------------------------------
  1984. TServiceAccount
  1985. --------------------------------------------------------------------}
  1986. Procedure TServiceAccount.Setemail(AIndex : Integer; const AValue : String);
  1987. begin
  1988. If (Femail=AValue) then exit;
  1989. Femail:=AValue;
  1990. MarkPropertyChanged(AIndex);
  1991. end;
  1992. Procedure TServiceAccount.Setscopes(AIndex : Integer; AValue : TStringArray);
  1993. begin
  1994. If (Fscopes=AValue) then exit;
  1995. Fscopes:=AValue;
  1996. MarkPropertyChanged(AIndex);
  1997. end;
  1998. //2.6.4. bug workaround
  1999. {$IFDEF VER2_6}
  2000. Procedure TServiceAccount.SetArrayLength(Const AName : String; ALength : Longint);
  2001. begin
  2002. Case AName of
  2003. 'scopes' : SetLength(Fscopes,ALength);
  2004. else
  2005. Inherited SetArrayLength(AName,ALength);
  2006. end;
  2007. end;
  2008. {$ENDIF VER2_6}
  2009. { --------------------------------------------------------------------
  2010. TTag
  2011. --------------------------------------------------------------------}
  2012. Procedure TTag.SetfingerPrint(AIndex : Integer; const AValue : String);
  2013. begin
  2014. If (FfingerPrint=AValue) then exit;
  2015. FfingerPrint:=AValue;
  2016. MarkPropertyChanged(AIndex);
  2017. end;
  2018. Procedure TTag.Setitems(AIndex : Integer; AValue : TStringArray);
  2019. begin
  2020. If (Fitems=AValue) then exit;
  2021. Fitems:=AValue;
  2022. MarkPropertyChanged(AIndex);
  2023. end;
  2024. //2.6.4. bug workaround
  2025. {$IFDEF VER2_6}
  2026. Procedure TTag.SetArrayLength(Const AName : String; ALength : Longint);
  2027. begin
  2028. Case AName of
  2029. 'items' : SetLength(Fitems,ALength);
  2030. else
  2031. Inherited SetArrayLength(AName,ALength);
  2032. end;
  2033. end;
  2034. {$ENDIF VER2_6}
  2035. { --------------------------------------------------------------------
  2036. TTemplateTypeactions
  2037. --------------------------------------------------------------------}
  2038. Class Function TTemplateTypeactions.AllowAdditionalProperties : Boolean;
  2039. begin
  2040. Result:=True;
  2041. end;
  2042. { --------------------------------------------------------------------
  2043. TTemplateTypemodules
  2044. --------------------------------------------------------------------}
  2045. Class Function TTemplateTypemodules.AllowAdditionalProperties : Boolean;
  2046. begin
  2047. Result:=True;
  2048. end;
  2049. { --------------------------------------------------------------------
  2050. TTemplate
  2051. --------------------------------------------------------------------}
  2052. Procedure TTemplate.Setactions(AIndex : Integer; AValue : TTemplateTypeactions);
  2053. begin
  2054. If (Factions=AValue) then exit;
  2055. Factions:=AValue;
  2056. MarkPropertyChanged(AIndex);
  2057. end;
  2058. Procedure TTemplate.Setdescription(AIndex : Integer; const AValue : String);
  2059. begin
  2060. If (Fdescription=AValue) then exit;
  2061. Fdescription:=AValue;
  2062. MarkPropertyChanged(AIndex);
  2063. end;
  2064. Procedure TTemplate.Setmodules(AIndex : Integer; AValue : TTemplateTypemodules);
  2065. begin
  2066. If (Fmodules=AValue) then exit;
  2067. Fmodules:=AValue;
  2068. MarkPropertyChanged(AIndex);
  2069. end;
  2070. Procedure TTemplate.Setname(AIndex : Integer; const AValue : String);
  2071. begin
  2072. If (Fname=AValue) then exit;
  2073. Fname:=AValue;
  2074. MarkPropertyChanged(AIndex);
  2075. end;
  2076. { --------------------------------------------------------------------
  2077. TTemplatesListResponse
  2078. --------------------------------------------------------------------}
  2079. Procedure TTemplatesListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  2080. begin
  2081. If (FnextPageToken=AValue) then exit;
  2082. FnextPageToken:=AValue;
  2083. MarkPropertyChanged(AIndex);
  2084. end;
  2085. Procedure TTemplatesListResponse.Setresources(AIndex : Integer; AValue : TTemplatesListResponseTyperesourcesArray);
  2086. begin
  2087. If (Fresources=AValue) then exit;
  2088. Fresources:=AValue;
  2089. MarkPropertyChanged(AIndex);
  2090. end;
  2091. //2.6.4. bug workaround
  2092. {$IFDEF VER2_6}
  2093. Procedure TTemplatesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2094. begin
  2095. Case AName of
  2096. 'resources' : SetLength(Fresources,ALength);
  2097. else
  2098. Inherited SetArrayLength(AName,ALength);
  2099. end;
  2100. end;
  2101. {$ENDIF VER2_6}
  2102. { --------------------------------------------------------------------
  2103. TDeploymentsResource
  2104. --------------------------------------------------------------------}
  2105. Class Function TDeploymentsResource.ResourceName : String;
  2106. begin
  2107. Result:='deployments';
  2108. end;
  2109. Class Function TDeploymentsResource.DefaultAPI : TGoogleAPIClass;
  2110. begin
  2111. Result:=TmanagerAPI;
  2112. end;
  2113. Procedure TDeploymentsResource.Delete(deploymentName: string; projectId: string; region: string);
  2114. Const
  2115. _HTTPMethod = 'DELETE';
  2116. _Path = '{projectId}/regions/{region}/deployments/{deploymentName}';
  2117. _Methodid = 'manager.deployments.delete';
  2118. Var
  2119. _P : String;
  2120. begin
  2121. _P:=SubstitutePath(_Path,['deploymentName',deploymentName,'projectId',projectId,'region',region]);
  2122. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  2123. end;
  2124. Function TDeploymentsResource.Get(deploymentName: string; projectId: string; region: string) : TDeployment;
  2125. Const
  2126. _HTTPMethod = 'GET';
  2127. _Path = '{projectId}/regions/{region}/deployments/{deploymentName}';
  2128. _Methodid = 'manager.deployments.get';
  2129. Var
  2130. _P : String;
  2131. begin
  2132. _P:=SubstitutePath(_Path,['deploymentName',deploymentName,'projectId',projectId,'region',region]);
  2133. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TDeployment) as TDeployment;
  2134. end;
  2135. Function TDeploymentsResource.Insert(projectId: string; region: string; aDeployment : TDeployment) : TDeployment;
  2136. Const
  2137. _HTTPMethod = 'POST';
  2138. _Path = '{projectId}/regions/{region}/deployments';
  2139. _Methodid = 'manager.deployments.insert';
  2140. Var
  2141. _P : String;
  2142. begin
  2143. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region]);
  2144. Result:=ServiceCall(_HTTPMethod,_P,'',aDeployment,TDeployment) as TDeployment;
  2145. end;
  2146. Function TDeploymentsResource.List(projectId: string; region: string; AQuery : string = '') : TDeploymentsListResponse;
  2147. Const
  2148. _HTTPMethod = 'GET';
  2149. _Path = '{projectId}/regions/{region}/deployments';
  2150. _Methodid = 'manager.deployments.list';
  2151. Var
  2152. _P : String;
  2153. begin
  2154. _P:=SubstitutePath(_Path,['projectId',projectId,'region',region]);
  2155. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TDeploymentsListResponse) as TDeploymentsListResponse;
  2156. end;
  2157. Function TDeploymentsResource.List(projectId: string; region: string; AQuery : TDeploymentslistOptions) : TDeploymentsListResponse;
  2158. Var
  2159. _Q : String;
  2160. begin
  2161. _Q:='';
  2162. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  2163. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2164. Result:=List(projectId,region,_Q);
  2165. end;
  2166. { --------------------------------------------------------------------
  2167. TTemplatesResource
  2168. --------------------------------------------------------------------}
  2169. Class Function TTemplatesResource.ResourceName : String;
  2170. begin
  2171. Result:='templates';
  2172. end;
  2173. Class Function TTemplatesResource.DefaultAPI : TGoogleAPIClass;
  2174. begin
  2175. Result:=TmanagerAPI;
  2176. end;
  2177. Procedure TTemplatesResource.Delete(projectId: string; templateName: string);
  2178. Const
  2179. _HTTPMethod = 'DELETE';
  2180. _Path = '{projectId}/templates/{templateName}';
  2181. _Methodid = 'manager.templates.delete';
  2182. Var
  2183. _P : String;
  2184. begin
  2185. _P:=SubstitutePath(_Path,['projectId',projectId,'templateName',templateName]);
  2186. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  2187. end;
  2188. Function TTemplatesResource.Get(projectId: string; templateName: string) : TTemplate;
  2189. Const
  2190. _HTTPMethod = 'GET';
  2191. _Path = '{projectId}/templates/{templateName}';
  2192. _Methodid = 'manager.templates.get';
  2193. Var
  2194. _P : String;
  2195. begin
  2196. _P:=SubstitutePath(_Path,['projectId',projectId,'templateName',templateName]);
  2197. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TTemplate) as TTemplate;
  2198. end;
  2199. Function TTemplatesResource.Insert(projectId: string; aTemplate : TTemplate) : TTemplate;
  2200. Const
  2201. _HTTPMethod = 'POST';
  2202. _Path = '{projectId}/templates';
  2203. _Methodid = 'manager.templates.insert';
  2204. Var
  2205. _P : String;
  2206. begin
  2207. _P:=SubstitutePath(_Path,['projectId',projectId]);
  2208. Result:=ServiceCall(_HTTPMethod,_P,'',aTemplate,TTemplate) as TTemplate;
  2209. end;
  2210. Function TTemplatesResource.List(projectId: string; AQuery : string = '') : TTemplatesListResponse;
  2211. Const
  2212. _HTTPMethod = 'GET';
  2213. _Path = '{projectId}/templates';
  2214. _Methodid = 'manager.templates.list';
  2215. Var
  2216. _P : String;
  2217. begin
  2218. _P:=SubstitutePath(_Path,['projectId',projectId]);
  2219. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTemplatesListResponse) as TTemplatesListResponse;
  2220. end;
  2221. Function TTemplatesResource.List(projectId: string; AQuery : TTemplateslistOptions) : TTemplatesListResponse;
  2222. Var
  2223. _Q : String;
  2224. begin
  2225. _Q:='';
  2226. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  2227. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  2228. Result:=List(projectId,_Q);
  2229. end;
  2230. { --------------------------------------------------------------------
  2231. TManagerAPI
  2232. --------------------------------------------------------------------}
  2233. Class Function TManagerAPI.APIName : String;
  2234. begin
  2235. Result:='manager';
  2236. end;
  2237. Class Function TManagerAPI.APIVersion : String;
  2238. begin
  2239. Result:='v1beta2';
  2240. end;
  2241. Class Function TManagerAPI.APIRevision : String;
  2242. begin
  2243. Result:='20140915';
  2244. end;
  2245. Class Function TManagerAPI.APIID : String;
  2246. begin
  2247. Result:='manager:v1beta2';
  2248. end;
  2249. Class Function TManagerAPI.APITitle : String;
  2250. begin
  2251. Result:='Deployment Manager API';
  2252. end;
  2253. Class Function TManagerAPI.APIDescription : String;
  2254. begin
  2255. Result:='The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.';
  2256. end;
  2257. Class Function TManagerAPI.APIOwnerDomain : String;
  2258. begin
  2259. Result:='google.com';
  2260. end;
  2261. Class Function TManagerAPI.APIOwnerName : String;
  2262. begin
  2263. Result:='Google';
  2264. end;
  2265. Class Function TManagerAPI.APIIcon16 : String;
  2266. begin
  2267. Result:='http://www.google.com/images/icons/product/search-16.gif';
  2268. end;
  2269. Class Function TManagerAPI.APIIcon32 : String;
  2270. begin
  2271. Result:='http://www.google.com/images/icons/product/search-32.gif';
  2272. end;
  2273. Class Function TManagerAPI.APIdocumentationLink : String;
  2274. begin
  2275. Result:='https://developers.google.com/deployment-manager/';
  2276. end;
  2277. Class Function TManagerAPI.APIrootUrl : string;
  2278. begin
  2279. Result:='https://www.googleapis.com:443/';
  2280. end;
  2281. Class Function TManagerAPI.APIbasePath : string;
  2282. begin
  2283. Result:='/manager/v1beta2/projects/';
  2284. end;
  2285. Class Function TManagerAPI.APIbaseURL : String;
  2286. begin
  2287. Result:='https://www.googleapis.com:443/manager/v1beta2/projects/';
  2288. end;
  2289. Class Function TManagerAPI.APIProtocol : string;
  2290. begin
  2291. Result:='rest';
  2292. end;
  2293. Class Function TManagerAPI.APIservicePath : string;
  2294. begin
  2295. Result:='manager/v1beta2/projects/';
  2296. end;
  2297. Class Function TManagerAPI.APIbatchPath : String;
  2298. begin
  2299. Result:='batch';
  2300. end;
  2301. Class Function TManagerAPI.APIAuthScopes : TScopeInfoArray;
  2302. begin
  2303. SetLength(Result,6);
  2304. Result[0].Name:='https://www.googleapis.com/auth/appengine.admin';
  2305. Result[0].Description:='View and manage your applications deployed on Google App Engine';
  2306. Result[1].Name:='https://www.googleapis.com/auth/cloud-platform';
  2307. Result[1].Description:='View and manage your data across Google Cloud Platform services';
  2308. Result[2].Name:='https://www.googleapis.com/auth/compute';
  2309. Result[2].Description:='View and manage your Google Compute Engine resources';
  2310. Result[3].Name:='https://www.googleapis.com/auth/devstorage.read_write';
  2311. Result[3].Description:='Manage your data in Google Cloud Storage';
  2312. Result[4].Name:='https://www.googleapis.com/auth/ndev.cloudman';
  2313. Result[4].Description:='View and manage your Google Cloud Platform management resources and deployment status information';
  2314. Result[5].Name:='https://www.googleapis.com/auth/ndev.cloudman.readonly';
  2315. Result[5].Description:='View your Google Cloud Platform management resources and deployment status information';
  2316. end;
  2317. Class Function TManagerAPI.APINeedsAuth : Boolean;
  2318. begin
  2319. Result:=True;
  2320. end;
  2321. Class Procedure TManagerAPI.RegisterAPIResources;
  2322. begin
  2323. TAccessConfig.RegisterObject;
  2324. TAction.RegisterObject;
  2325. TAllowedRule.RegisterObject;
  2326. TAutoscalingModule.RegisterObject;
  2327. TAutoscalingModuleStatus.RegisterObject;
  2328. TDeployState.RegisterObject;
  2329. TDeploymentTypemodules.RegisterObject;
  2330. TDeployment.RegisterObject;
  2331. TDeploymentsListResponse.RegisterObject;
  2332. TDiskAttachment.RegisterObject;
  2333. TEnvVariable.RegisterObject;
  2334. TExistingDisk.RegisterObject;
  2335. TFirewallModule.RegisterObject;
  2336. TFirewallModuleStatus.RegisterObject;
  2337. THealthCheckModule.RegisterObject;
  2338. THealthCheckModuleStatus.RegisterObject;
  2339. TLbModule.RegisterObject;
  2340. TLbModuleStatus.RegisterObject;
  2341. TMetadata.RegisterObject;
  2342. TMetadataItem.RegisterObject;
  2343. TModule.RegisterObject;
  2344. TModuleStatus.RegisterObject;
  2345. TNetworkInterface.RegisterObject;
  2346. TNetworkModule.RegisterObject;
  2347. TNetworkModuleStatus.RegisterObject;
  2348. TNewDisk.RegisterObject;
  2349. TNewDiskInitializeParams.RegisterObject;
  2350. TParamOverride.RegisterObject;
  2351. TReplicaPoolModuleTypeenvVariables.RegisterObject;
  2352. TReplicaPoolModule.RegisterObject;
  2353. TReplicaPoolModuleStatus.RegisterObject;
  2354. TReplicaPoolParams.RegisterObject;
  2355. TReplicaPoolParamsV1Beta1.RegisterObject;
  2356. TServiceAccount.RegisterObject;
  2357. TTag.RegisterObject;
  2358. TTemplateTypeactions.RegisterObject;
  2359. TTemplateTypemodules.RegisterObject;
  2360. TTemplate.RegisterObject;
  2361. TTemplatesListResponse.RegisterObject;
  2362. end;
  2363. Function TManagerAPI.GetDeploymentsInstance : TDeploymentsResource;
  2364. begin
  2365. if (FDeploymentsInstance=Nil) then
  2366. FDeploymentsInstance:=CreateDeploymentsResource;
  2367. Result:=FDeploymentsInstance;
  2368. end;
  2369. Function TManagerAPI.CreateDeploymentsResource : TDeploymentsResource;
  2370. begin
  2371. Result:=CreateDeploymentsResource(Self);
  2372. end;
  2373. Function TManagerAPI.CreateDeploymentsResource(AOwner : TComponent) : TDeploymentsResource;
  2374. begin
  2375. Result:=TDeploymentsResource.Create(AOwner);
  2376. Result.API:=Self.API;
  2377. end;
  2378. Function TManagerAPI.GetTemplatesInstance : TTemplatesResource;
  2379. begin
  2380. if (FTemplatesInstance=Nil) then
  2381. FTemplatesInstance:=CreateTemplatesResource;
  2382. Result:=FTemplatesInstance;
  2383. end;
  2384. Function TManagerAPI.CreateTemplatesResource : TTemplatesResource;
  2385. begin
  2386. Result:=CreateTemplatesResource(Self);
  2387. end;
  2388. Function TManagerAPI.CreateTemplatesResource(AOwner : TComponent) : TTemplatesResource;
  2389. begin
  2390. Result:=TTemplatesResource.Create(AOwner);
  2391. Result.API:=Self.API;
  2392. end;
  2393. initialization
  2394. TManagerAPI.RegisterAPI;
  2395. end.